Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
feat(ui): scaffold @langgenius/dify-ui and migrate design tokens (#35256)
yyhaf7d5e60b475
diff --git a/packages/dify-ui/AGENTS.md b/packages/dify-ui/AGENTS.mdnew file mode 100644index 00000000000..6875f8b4e9d--- /dev/null+++ b/packages/dify-ui/AGENTS.md@@ -0,0 +1,27 @@+# @langgenius/dify-ui++This package provides shared design tokens (colors, shadows, typography), the `cn()` utility, and a Tailwind CSS preset consumed by `web/`.++## Border Radius: Figma Token → Tailwind Class Mapping++The Figma design system uses `--radius/*` tokens whose scale is **offset by one step** from Tailwind CSS v4 defaults. When translating Figma specs to code, always use this mapping — never use `radius-*` as a CSS class, and never extend `borderRadius` in the preset.++| Figma Token | Value | Tailwind Class |+|---|---|---|+| `--radius/2xs` | 2px | `rounded-xs` |+| `--radius/xs` | 4px | `rounded-sm` |+| `--radius/sm` | 6px | `rounded-md` |+| `--radius/md` | 8px | `rounded-lg` |+| `--radius/lg` | 10px | `rounded-[10px]` |+| `--radius/xl` | 12px | `rounded-xl` |+| `--radius/2xl` | 16px | `rounded-2xl` |+| `--radius/3xl` | 20px | `rounded-[20px]` |+| `--radius/6xl` | 28px | `rounded-[28px]` |+| `--radius/full` | 999px | `rounded-full` |++### Rules++- **Do not** add custom `borderRadius` values to `tailwind-preset.ts`. We use Tailwind v4 defaults and arbitrary values (`rounded-[Npx]`) for sizes without a standard equivalent.+- **Do not** use `radius-*` as CSS class names. The old `@utility radius-*` definitions have been removed.+- When the Figma MCP returns `rounded-[var(--radius/sm, 6px)]`, convert it to the standard Tailwind class from the table above (e.g. `rounded-md`).+- For values without a standard Tailwind equivalent (10px, 20px, 28px), use arbitrary values like `rounded-[10px]`.diff --git a/packages/dify-ui/package.json b/packages/dify-ui/package.jsonnew file mode 100644index 00000000000..d8314a6be35--- /dev/null+++ b/packages/dify-ui/package.json@@ -0,0 +1,24 @@+{+ "name": "@langgenius/dify-ui",+ "version": "0.0.1",+ "private": true,+ "type": "module",+ "exports": {+ "./styles.css": "./src/styles/styles.css",+ "./tailwind-preset": {+ "import": "./src/tailwind-preset.ts",+ "types": "./src/tailwind-preset.ts"+ },+ "./cn": {+ "import": "./src/cn.ts",+ "types": "./src/cn.ts"+ }+ },+ "dependencies": {+ "clsx": "catalog:",+ "tailwind-merge": "catalog:"+ },+ "devDependencies": {+ "tailwindcss": "catalog:"+ }+}diff --git a/web/utils/classnames.ts b/packages/dify-ui/src/cn.tssimilarity index 100%rename from web/utils/classnames.tsrename to packages/dify-ui/src/cn.tsdiff --git a/packages/dify-ui/src/styles/styles.css b/packages/dify-ui/src/styles/styles.cssnew file mode 100644index 00000000000..a712e9c5db4--- /dev/null+++ b/packages/dify-ui/src/styles/styles.css@@ -0,0 +1,3 @@+@import '../themes/light.css' layer(base);+@import '../themes/dark.css' layer(base);+@import './utilities.css';diff --git a/packages/dify-ui/src/styles/utilities.css b/packages/dify-ui/src/styles/utilities.cssnew file mode 100644index 00000000000..69b15d4c106--- /dev/null+++ b/packages/dify-ui/src/styles/utilities.css@@ -0,0 +1,272 @@+@utility system-kbd {+ font-size: 12px;+ font-weight: 500;+ line-height: 16px;+}++@utility system-2xs-regular-uppercase {+ font-size: 10px;+ font-weight: 400;+ text-transform: uppercase;+ line-height: 12px;+}++@utility system-2xs-regular {+ font-size: 10px;+ font-weight: 400;+ line-height: 12px;+}++@utility system-2xs-medium {+ font-size: 10px;+ font-weight: 500;+ line-height: 12px;+}++@utility system-2xs-medium-uppercase {+ font-size: 10px;+ font-weight: 500;+ text-transform: uppercase;+ line-height: 12px;+}++@utility system-2xs-semibold-uppercase {+ font-size: 10px;+ font-weight: 600;+ text-transform: uppercase;+ line-height: 12px;+}++@utility system-xs-regular {+ font-size: 12px;+ font-weight: 400;+ line-height: 16px;+}++@utility system-xs-regular-uppercase {+ font-size: 12px;+ font-weight: 400;+ text-transform: uppercase;+ line-height: 16px;+}++@utility system-xs-medium {+ font-size: 12px;+ font-weight: 500;+ line-height: 16px;+}++@utility system-xs-medium-uppercase {+ font-size: 12px;+ font-weight: 500;+ text-transform: uppercase;+ line-height: 16px;+}++@utility system-xs-semibold {+ font-size: 12px;+ font-weight: 600;+ line-height: 16px;+}++@utility system-xs-semibold-uppercase {+ font-size: 12px;+ font-weight: 600;+ text-transform: uppercase;+ line-height: 16px;+}++@utility system-sm-regular {+ font-size: 13px;+ font-weight: 400;+ line-height: 16px;+}++@utility system-sm-medium {+ font-size: 13px;+ font-weight: 500;+ line-height: 16px;+}++@utility system-sm-medium-uppercase {+ font-size: 13px;+ font-weight: 500;+ text-transform: uppercase;+ line-height: 16px;+}++@utility system-sm-semibold {+ font-size: 13px;+ font-weight: 600;+ line-height: 16px;+}++@utility system-sm-semibold-uppercase {+ font-size: 13px;+ font-weight: 600;+ text-transform: uppercase;+ line-height: 16px;+}++@utility system-md-regular {+ font-size: 14px;+ font-weight: 400;+ line-height: 20px;+}++@utility system-md-medium {+ font-size: 14px;+ font-weight: 500;+ line-height: 20px;+}++@utility system-md-semibold {+ font-size: 14px;+ font-weight: 600;+ line-height: 20px;+}++@utility system-md-semibold-uppercase {+ font-size: 14px;+ font-weight: 600;+ text-transform: uppercase;+ line-height: 20px;+}++@utility system-xl-medium {+ font-size: 16px;+ font-weight: 500;+ line-height: 24px;+}++@utility system-xl-semibold {+ font-size: 16px;+ font-weight: 600;+ line-height: 24px;+}++@utility code-xs-regular {+ font-size: 12px;+ font-weight: 400;+ line-height: 1.5;+}++@utility code-sm-regular {+ font-size: 13px;+ font-weight: 400;+ line-height: 1.5;+}++@utility code-sm-semibold {+ font-size: 13px;+ font-weight: 600;+ line-height: 1.5;+}++@utility body-xs-regular {+ font-size: 12px;+ font-weight: 400;+ line-height: 16px;+}++@utility body-xs-medium {+ font-size: 12px;+ font-weight: 500;+ line-height: 16px;+}++@utility body-sm-regular {+ font-size: 13px;+ font-weight: 400;+ line-height: 16px;+}++@utility body-sm-medium {+ font-size: 13px;+ font-weight: 500;+ line-height: 16px;+}++@utility body-md-regular {+ font-size: 14px;+ font-weight: 400;+ line-height: 20px;+}++@utility body-md-medium {+ font-size: 14px;+ font-weight: 500;+ line-height: 20px;+}++@utility body-lg-regular {+ font-size: 15px;+ font-weight: 400;+ line-height: 20px;+}++@utility body-2xl-regular {+ font-size: 18px;+ font-weight: 400;+ line-height: 1.5;+}++@utility title-xs-semi-bold {+ font-size: 12px;+ font-weight: 600;+ line-height: 16px;+}++@utility title-sm-semi-bold {+ font-size: 13px;+ font-weight: 600;+ line-height: 16px;+}++@utility title-md-semi-bold {+ font-size: 14px;+ font-weight: 600;+ line-height: 20px;+}++@utility title-lg-bold {+ font-size: 15px;+ font-weight: 700;+ line-height: 1.2;+}++@utility title-xl-semi-bold {+ font-size: 16px;+ font-weight: 600;+ line-height: 1.2;+}++@utility title-2xl-semi-bold {+ font-size: 18px;+ font-weight: 600;+ line-height: 1.2;+}++@utility title-3xl-semi-bold {+ font-size: 20px;+ font-weight: 600;+ line-height: 1.2;+}++@utility title-3xl-bold {+ font-size: 20px;+ font-weight: 700;+ line-height: 1.2;+}++@utility title-4xl-semi-bold {+ font-size: 24px;+ font-weight: 600;+ line-height: 1.2;+}++@utility title-5xl-bold {+ font-size: 30px;+ font-weight: 700;+ line-height: 1.2;+}diff --git a/packages/dify-ui/src/tailwind-preset.ts b/packages/dify-ui/src/tailwind-preset.tsnew file mode 100644index 00000000000..2dbf4781b02--- /dev/null+++ b/packages/dify-ui/src/tailwind-preset.ts@@ -0,0 +1,87 @@+import tailwindThemeVarDefine from './themes/tailwind-theme-var-define'++const difyUIPreset = {+ theme: {+ extend: {+ colors: {+ gray: {+ 25: '#fcfcfd',+ 50: '#f9fafb',+ 100: '#f2f4f7',+ 200: '#eaecf0',+ 300: '#d0d5dd',+ 400: '#98a2b3',+ 500: '#667085',+ 600: '#344054',+ 700: '#475467',+ 800: '#1d2939',+ 900: '#101828',+ },+ primary: {+ 25: '#f5f8ff',+ 50: '#eff4ff',+ 100: '#d1e0ff',+ 200: '#b2ccff',+ 300: '#84adff',+ 400: '#528bff',+ 500: '#2970ff',+ 600: '#155eef',+ 700: '#004eeb',+ 800: '#0040c1',+ 900: '#00359e',+ },+ blue: {+ 500: '#E1EFFE',+ },+ green: {+ 50: '#F3FAF7',+ 100: '#DEF7EC',+ 800: '#03543F',+ },+ yellow: {+ 100: '#FDF6B2',+ 800: '#723B13',+ },+ purple: {+ 50: '#F6F5FF',+ 200: '#DCD7FE',+ },+ indigo: {+ 25: '#F5F8FF',+ 50: '#EEF4FF',+ 100: '#E0EAFF',+ 300: '#A4BCFD',+ 400: '#8098F9',+ 600: '#444CE7',+ 800: '#2D31A6',+ },+ ...tailwindThemeVarDefine,+ },+ boxShadow: {+ 'xs': '0px 1px 2px 0px rgba(16, 24, 40, 0.05)',+ 'sm': '0px 1px 2px 0px rgba(16, 24, 40, 0.06), 0px 1px 3px 0px rgba(16, 24, 40, 0.10)',+ 'sm-no-bottom': '0px -1px 2px 0px rgba(16, 24, 40, 0.06), 0px -1px 3px 0px rgba(16, 24, 40, 0.10)',+ 'md': '0px 2px 4px -2px rgba(16, 24, 40, 0.06), 0px 4px 8px -2px rgba(16, 24, 40, 0.10)',+ 'lg': '0px 4px 6px -2px rgba(16, 24, 40, 0.03), 0px 12px 16px -4px rgba(16, 24, 40, 0.08)',+ 'xl': '0px 8px 8px -4px rgba(16, 24, 40, 0.03), 0px 20px 24px -4px rgba(16, 24, 40, 0.08)',+ '2xl': '0px 24px 48px -12px rgba(16, 24, 40, 0.18)',+ '3xl': '0px 32px 64px -12px rgba(16, 24, 40, 0.14)',+ 'status-indicator-green-shadow': '0px 2px 6px 0px var(--color-components-badge-status-light-success-halo), 0px 0px 0px 1px var(--color-components-badge-status-light-border-outer)',+ 'status-indicator-warning-shadow': '0px 2px 6px 0px var(--color-components-badge-status-light-warning-halo), 0px 0px 0px 1px var(--color-components-badge-status-light-border-outer)',+ 'status-indicator-red-shadow': '0px 2px 6px 0px var(--color-components-badge-status-light-error-halo), 0px 0px 0px 1px var(--color-components-badge-status-light-border-outer)',+ 'status-indicator-blue-shadow': '0px 2px 6px 0px var(--color-components-badge-status-light-normal-halo), 0px 0px 0px 1px var(--color-components-badge-status-light-border-outer)',+ 'status-indicator-gray-shadow': '0px 1px 2px 0px var(--color-components-badge-status-light-disabled-halo), 0px 0px 0px 1px var(--color-components-badge-status-light-border-outer)',+ },+ opacity: {+ 2: '0.02',+ 8: '0.08',+ },+ fontSize: {+ '2xs': '0.625rem',+ },+ },+ },+ plugins: [],+}++export default difyUIPresetdiff --git a/web/themes/dark.css b/packages/dify-ui/src/themes/dark.csssimilarity index 100%rename from web/themes/dark.cssrename to packages/dify-ui/src/themes/dark.cssdiff --git a/web/themes/light.css b/packages/dify-ui/src/themes/light.csssimilarity index 100%rename from web/themes/light.cssrename to packages/dify-ui/src/themes/light.cssdiff --git a/web/themes/tailwind-theme-var-define.ts b/packages/dify-ui/src/themes/tailwind-theme-var-define.tssimilarity index 100%rename from web/themes/tailwind-theme-var-define.tsrename to packages/dify-ui/src/themes/tailwind-theme-var-define.tsdiff --git a/packages/dify-ui/tsconfig.json b/packages/dify-ui/tsconfig.jsonnew file mode 100644index 00000000000..3e912baba07--- /dev/null+++ b/packages/dify-ui/tsconfig.json@@ -0,0 +1,18 @@+{+ "compilerOptions": {+ "target": "ES2022",+ "module": "ESNext",+ "moduleResolution": "bundler",+ "strict": true,+ "esModuleInterop": true,+ "skipLibCheck": true,+ "declaration": true,+ "declarationMap": true,+ "sourceMap": true,+ "outDir": "dist",+ "rootDir": "src",+ "isolatedModules": true,+ "verbatimModuleSyntax": true+ },+ "include": ["src"]+}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 44449816012..094faf78cb0 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -599,6 +599,19 @@ importers:specifier: 'catalog:'version: 0.1.16(@types/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ packages/dify-ui:+ dependencies:+ clsx:+ specifier: 'catalog:'+ version: 2.1.1+ tailwind-merge:+ specifier: 'catalog:'+ version: 3.5.0+ devDependencies:+ tailwindcss:+ specifier: 'catalog:'+ version: 4.2.2+packages/iconify-collections:devDependencies:iconify-import-svg:@@ -739,9 +752,6 @@ importers:client-only:specifier: 'catalog:'version: 0.0.1- clsx:- specifier: 'catalog:'- version: 2.1.1cmdk:specifier: 'catalog:'version: 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])@@ -922,9 +932,6 @@ importers:string-ts:specifier: 'catalog:'version: 2.3.1- tailwind-merge:- specifier: 'catalog:'- version: 3.5.0tldts:specifier: 'catalog:'version: 7.0.28@@ -971,6 +978,9 @@ importers:'@iconify-json/ri':specifier: 'catalog:'version: 1.2.10+ '@langgenius/dify-ui':+ specifier: workspace:*+ version: link:../packages/dify-ui'@mdx-js/loader':specifier: 'catalog:'version: 3.1.1([email protected]([email protected]))@@ -1126,7 +1136,7 @@ importers:version: 4.12.12knip:specifier: 'catalog:'- version: 6.4.1(@emnapi/[email protected])(@emnapi/[email protected])+ version: 6.4.1(@emnapi/[email protected])(@emnapi/[email protected])postcss:specifier: 'catalog:'version: 8.5.9@@ -1553,14 +1563,17 @@ packages:peerDependencies:tailwindcss: '*'- '@emnapi/[email protected]':- resolution: {integrity: sha512-mukuNALVsoix/w1BJwFzwXBN/dHeejQtuVzcDsfOEsdpCumXb/E9j8w11h5S54tT1xhifGfbbSm/ICrObRb3KA==}+ '@emnapi/[email protected]':+ resolution: {integrity: sha512-UC+ZhH3XtczQYfOlu3lNEkdW/p4dsJ1r/bP7H8+rhao3TTTMO1ATq/4DdIi23XuGoFY+Cz0JmCbdVl0hz9jZcA==}'@emnapi/[email protected]':resolution: {integrity: sha512-VYi5+ZVLhpgK4hQ0TAjiQiZ6ol0oe4mBx7mVv7IflsiEp0OWoVsp/+f9Vc1hOhE0TtkORVrI1GvzyreqpgWtkA==}- '@emnapi/[email protected]':- resolution: {integrity: sha512-N10dEJNSsUx41Z6pZsXU8FjPjpBEplgH24sfkmITrBED1/U2Esum9F3lfLrMjKHHjmi557zQn7kR9R+XWXu5Rg==}+ '@emnapi/[email protected]':+ resolution: {integrity: sha512-3U4+MIWHImeyu1wnmVygh5WlgfYDtyf0k8AbLhMFxOipihf6nrWC4syIm/SwEeec0mNSafiiNnMJwbza/Is6Lw==}++ '@emnapi/[email protected]':+ resolution: {integrity: sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==}'@emoji-mart/[email protected]':resolution: {integrity: sha512-no2pQMWiBy6gpBEiqGeU77/bFejDqUTRY7KX+0+iur13op3bqUsXdnwoZs6Xb1zbv0gAj5VvS1PWoUUckSr5Dw==}@@ -8007,6 +8020,10 @@ packages:resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==}engines: {node: '>=12.0.0'}+ resolution: {integrity: sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==}+ engines: {node: '>=12.0.0'}+resolution: {integrity: sha512-Pugqs6M0m7Lv1I7FtxN4aoyToKg1C4tu+/381vH35y8oENM/Ai7f7C4StcoK4/+BSw9ebcS8jRiVrORFKCALLw==}engines: {node: ^20.0.0 || >=22.0.0}@@ -9153,9 +9170,9 @@ snapshots:'@iconify/utils': 3.1.0tailwindcss: 4.2.2- '@emnapi/[email protected]':+ '@emnapi/[email protected]':dependencies:- '@emnapi/wasi-threads': 1.2.0+ '@emnapi/wasi-threads': 1.2.1tslib: 2.8.1optional: true@@ -9164,7 +9181,12 @@ snapshots:tslib: 2.8.1optional: true- '@emnapi/[email protected]':+ '@emnapi/[email protected]':+ dependencies:+ tslib: 2.8.1+ optional: true++ '@emnapi/[email protected]':dependencies:tslib: 2.8.1optional: true@@ -9944,10 +9966,10 @@ snapshots:react: 19.2.5react-dom: 19.2.5([email protected])dependencies:- '@emnapi/core': 1.9.1- '@emnapi/runtime': 1.9.1+ '@emnapi/core': 1.9.2+ '@emnapi/runtime': 1.9.2'@tybys/wasm-util': 0.10.1optional: true@@ -10120,9 +10142,9 @@ snapshots:'@oxc-parser/[email protected]':optional: truedependencies:- '@napi-rs/wasm-runtime': 1.1.2(@emnapi/[email protected])(@emnapi/[email protected])+ '@napi-rs/wasm-runtime': 1.1.2(@emnapi/[email protected])(@emnapi/[email protected])transitivePeerDependencies:- '@emnapi/core'- '@emnapi/runtime'@@ -10191,9 +10213,9 @@ snapshots:'@oxc-resolver/[email protected]':optional: truedependencies:- '@napi-rs/wasm-runtime': 1.1.2(@emnapi/[email protected])(@emnapi/[email protected])+ '@napi-rs/wasm-runtime': 1.1.2(@emnapi/[email protected])(@emnapi/[email protected])transitivePeerDependencies:- '@emnapi/core'- '@emnapi/runtime'@@ -11758,7 +11780,7 @@ snapshots:debug: 4.4.3([email protected])minimatch: 10.2.4semver: 7.7.4- tinyglobby: 0.2.15+ tinyglobby: 0.2.16ts-api-utils: 2.5.0([email protected])typescript: 6.0.2transitivePeerDependencies:@@ -14140,7 +14162,7 @@ snapshots:dependencies:'@nodelib/fs.walk': 1.2.8fast-glob: 3.3.3@@ -14148,8 +14170,8 @@ snapshots:get-tsconfig: 4.13.7jiti: 2.6.1minimist: 1.2.8- oxc-parser: 0.121.0(@emnapi/[email protected])(@emnapi/[email protected])- oxc-resolver: 11.19.1(@emnapi/[email protected])(@emnapi/[email protected])+ oxc-parser: 0.121.0(@emnapi/[email protected])(@emnapi/[email protected])+ oxc-resolver: 11.19.1(@emnapi/[email protected])(@emnapi/[email protected])picocolors: 1.1.1picomatch: 4.0.4smol-toml: 1.6.1@@ -15056,7 +15078,7 @@ snapshots:type-check: 0.4.0word-wrap: 1.2.5dependencies:'@oxc-project/types': 0.121.0optionalDependencies:@@ -15076,7 +15098,7 @@ snapshots:'@oxc-parser/binding-linux-x64-gnu': 0.121.0'@oxc-parser/binding-linux-x64-musl': 0.121.0'@oxc-parser/binding-openharmony-arm64': 0.121.0- '@oxc-parser/binding-wasm32-wasi': 0.121.0(@emnapi/[email protected])(@emnapi/[email protected])+ '@oxc-parser/binding-wasm32-wasi': 0.121.0(@emnapi/[email protected])(@emnapi/[email protected])'@oxc-parser/binding-win32-arm64-msvc': 0.121.0'@oxc-parser/binding-win32-ia32-msvc': 0.121.0'@oxc-parser/binding-win32-x64-msvc': 0.121.0@@ -15084,7 +15106,7 @@ snapshots:- '@emnapi/core'- '@emnapi/runtime'optionalDependencies:'@oxc-resolver/binding-android-arm-eabi': 11.19.1'@oxc-resolver/binding-android-arm64': 11.19.1@@ -15102,7 +15124,7 @@ snapshots:'@oxc-resolver/binding-linux-x64-gnu': 11.19.1'@oxc-resolver/binding-linux-x64-musl': 11.19.1'@oxc-resolver/binding-openharmony-arm64': 11.19.1- '@oxc-resolver/binding-wasm32-wasi': 11.19.1(@emnapi/[email protected])(@emnapi/[email protected])+ '@oxc-resolver/binding-wasm32-wasi': 11.19.1(@emnapi/[email protected])(@emnapi/[email protected])'@oxc-resolver/binding-win32-arm64-msvc': 11.19.1'@oxc-resolver/binding-win32-ia32-msvc': 11.19.1'@oxc-resolver/binding-win32-x64-msvc': 11.19.1@@ -16241,6 +16263,11 @@ snapshots:fdir: 6.5.0([email protected])picomatch: 4.0.4+ dependencies:+ fdir: 6.5.0([email protected])+ picomatch: 4.0.4+diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 98f1fcfa869..cd72c6bc0ec 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -1,57 +1,22 @@-catalogMode: prefer-trustPolicy: no-downgrade-trustPolicyExclude:-blockExoticSubdeps: true-strictDepBuilds: true-allowBuilds:- "@parcel/watcher": false- canvas: false- esbuild: false- sharp: falsepackages:- web- e2e- sdks/nodejs-client- packages/*-overrides:- "@lexical/code": npm:[email protected]- "@monaco-editor/loader": 1.7.0- brace-expansion@>=2.0.0 <2.0.3: 2.0.3- canvas: ^3.2.2- dompurify@>=3.1.3 <=3.3.1: 3.3.2- esbuild@<0.27.2: 0.27.2- flatted@<=3.4.1: 3.4.2- glob@>=10.2.0 <10.5.0: 11.1.0- is-core-module: npm:@nolyfill/is-core-module@^1.0.39- lodash@>=4.0.0 <= 4.17.23: 4.18.0- lodash-es@>=4.0.0 <= 4.17.23: 4.18.0- picomatch@<2.3.2: 2.3.2- picomatch@>=4.0.0 <4.0.4: 4.0.4- rollup@>=4.0.0 <4.59.0: 4.59.0- safe-buffer: ^5.2.1- safer-buffer: npm:@nolyfill/safer-buffer@^1.0.44- side-channel: npm:@nolyfill/side-channel@^1.0.44- smol-toml@<1.6.1: 1.6.1- solid-js: 1.9.11- string-width: ~8.2.0- svgo@>=3.0.0 <3.3.3: 3.3.3- tar@<=7.5.10: 7.5.11- undici@>=7.0.0 <7.24.0: 7.24.0- vite: npm:@voidzero-dev/[email protected]- vitest: npm:@voidzero-dev/[email protected]- yaml@>=2.0.0 <2.8.3: 2.8.3- yauzl@<3.2.1: 3.2.1+allowBuilds:+ "@parcel/watcher": false+ canvas: false+ esbuild: false+ sharp: false+blockExoticSubdeps: truecatalog:"@amplitude/analytics-browser": 2.39.0"@amplitude/plugin-session-replay-browser": 1.27.7"@antfu/eslint-config": 8.2.0"@base-ui/react": 1.4.0- "@date-fns/tz": 1.4.1"@chromatic-com/storybook": 5.1.2"@cucumber/cucumber": 12.8.0+ "@date-fns/tz": 1.4.1"@egoist/tailwindcss-icons": 1.9.2"@emoji-mart/data": 1.2.1"@eslint-react/eslint-plugin": 3.0.0@@ -107,6 +72,7 @@ catalog:"@testing-library/jest-dom": 6.9.1"@testing-library/react": 16.3.2"@testing-library/user-event": 14.6.1+ '@tsdown/css': 0.21.8"@tsslint/cli": 3.0.3"@tsslint/compat-eslint": 3.0.3"@tsslint/config": 3.0.3@@ -230,3 +196,38 @@ catalog:zod: 4.3.6zundo: 2.3.0zustand: 5.0.12+catalogMode: prefer+overrides:+ "@lexical/code": npm:[email protected]+ "@monaco-editor/loader": 1.7.0+ brace-expansion@>=2.0.0 <2.0.3: 2.0.3+ canvas: ^3.2.2+ dompurify@>=3.1.3 <=3.3.1: 3.3.2+ esbuild@<0.27.2: 0.27.2+ flatted@<=3.4.1: 3.4.2+ glob@>=10.2.0 <10.5.0: 11.1.0+ is-core-module: npm:@nolyfill/is-core-module@^1.0.39+ lodash-es@>=4.0.0 <= 4.17.23: 4.18.0+ lodash@>=4.0.0 <= 4.17.23: 4.18.0+ picomatch@<2.3.2: 2.3.2+ picomatch@>=4.0.0 <4.0.4: 4.0.4+ rollup@>=4.0.0 <4.59.0: 4.59.0+ safe-buffer: ^5.2.1+ safer-buffer: npm:@nolyfill/safer-buffer@^1.0.44+ side-channel: npm:@nolyfill/side-channel@^1.0.44+ smol-toml@<1.6.1: 1.6.1+ solid-js: 1.9.11+ string-width: ~8.2.0+ svgo@>=3.0.0 <3.3.3: 3.3.3+ tar@<=7.5.10: 7.5.11+ undici@>=7.0.0 <7.24.0: 7.24.0+ vite: npm:@voidzero-dev/[email protected]+ vitest: npm:@voidzero-dev/[email protected]+ yaml@>=2.0.0 <2.8.3: 2.8.3+ yauzl@<3.2.1: 3.2.1+strictDepBuilds: true+trustPolicy: no-downgrade+trustPolicyExclude:diff --git a/web/AGENTS.md b/web/AGENTS.mdindex 97f74441a71..4a705bf4b8a 100644--- a/web/AGENTS.md+++ b/web/AGENTS.md@@ -12,6 +12,10 @@- `frontend-query-mutation` is the source of truth for Dify frontend contracts, query and mutation call-site patterns, conditional queries, invalidation, and mutation error handling.+## Design Token Mapping++- When translating Figma designs to code, read `../packages/dify-ui/AGENTS.md` for the Figma `--radius/*` token to Tailwind `rounded-*` class mapping. The two scales are offset by one step.+## Automated Test Generation- Use `./docs/test.md` as the canonical instruction set for generating frontend automated tests.diff --git a/web/README.md b/web/README.mdindex 2d69a94dbd9..382c8042643 100644--- a/web/README.md+++ b/web/README.md@@ -136,7 +136,6 @@ pnpm -C web testIf you are not familiar with writing tests, refer to:-- [classnames.spec.ts] - Utility function test example- [index.spec.tsx] - Component test example### Analyze Component Complexity@@ -166,7 +165,6 @@ The Dify community can be found on [Discord community], where you can ask questi[Storybook]: https://storybook.js.org[Vite+]: https://viteplus.dev[Vitest]: https://vitest.dev-[classnames.spec.ts]: ./utils/classnames.spec.ts[index.spec.tsx]: ./app/components/base/button/index.spec.tsx[pnpm]: https://pnpm.io[vinext]: https://github.com/cloudflare/vinextdiff --git a/web/__tests__/plugins/plugin-auth-flow.test.tsx b/web/__tests__/plugins/plugin-auth-flow.test.tsxindex a2ec8703ca8..c4d28e3f34b 100644--- a/web/__tests__/plugins/plugin-auth-flow.test.tsx+++ b/web/__tests__/plugins/plugin-auth-flow.test.tsx@@ -31,7 +31,7 @@ vi.mock('@/context/app-context', () => ({}),}))-vi.mock('@/utils/classnames', () => ({+vi.mock('@langgenius/dify-ui/cn', () => ({cn: (...args: unknown[]) => args.filter(Boolean).join(' '),}))diff --git a/web/__tests__/plugins/plugin-card-rendering.test.tsx b/web/__tests__/plugins/plugin-card-rendering.test.tsxindex 5bd7f0c8bf8..fb0163f344a 100644--- a/web/__tests__/plugins/plugin-card-rendering.test.tsx+++ b/web/__tests__/plugins/plugin-card-rendering.test.tsx@@ -32,7 +32,7 @@ vi.mock('@/types/app', async () => {return vi.importActual<typeof import('@/types/app')>('@/types/app')})-vi.mock('@/utils/classnames', () => ({+vi.mock('@langgenius/dify-ui/cn', () => ({cn: (...args: unknown[]) => args.filter(a => typeof a === 'string' && a).join(' '),}))diff --git a/web/__tests__/tools/tool-browsing-and-filtering.test.tsx b/web/__tests__/tools/tool-browsing-and-filtering.test.tsxindex dbefb1fdc3f..aa8f59ca31b 100644--- a/web/__tests__/tools/tool-browsing-and-filtering.test.tsx+++ b/web/__tests__/tools/tool-browsing-and-filtering.test.tsx@@ -226,7 +226,7 @@ vi.mock('@/app/components/tools/mcp', () => ({default: () => <div data-testid="mcp-list">MCP List</div>,}))-vi.mock('@/utils/classnames', () => ({+vi.mock('@langgenius/dify-ui/cn', () => ({cn: (...args: unknown[]) => args.filter(Boolean).join(' '),}))diff --git a/web/__tests__/tools/tool-provider-detail-flow.test.tsx b/web/__tests__/tools/tool-provider-detail-flow.test.tsxindex ce5ffe531e8..c52871c946b 100644--- a/web/__tests__/tools/tool-provider-detail-flow.test.tsx+++ b/web/__tests__/tools/tool-provider-detail-flow.test.tsx@@ -112,7 +112,7 @@ vi.mock('@/service/use-tools', () => ({useInvalidateAllWorkflowTools: () => vi.fn(),}))-vi.mock('@/utils/classnames', () => ({+vi.mock('@langgenius/dify-ui/cn', () => ({cn: (...args: unknown[]) => args.filter(Boolean).join(' '),}))diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/layout-main.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/layout-main.tsxindex d3f15bdf460..8a1a6fd1315 100644--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/layout-main.tsx+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/layout-main.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { NavIcon } from '@/app/components/app-sidebar/nav-link'import type { App } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import {RiDashboard2Fill,RiDashboard2Line,@@ -28,7 +29,6 @@ import dynamic from '@/next/dynamic'import { usePathname, useRouter } from '@/next/navigation'import { fetchAppDetailDirect } from '@/service/apps'import { AppModeEnum } from '@/types/app'-import { cn } from '@/utils/classnames'import s from './style.module.css'const TagManagementModal = dynamic(() => import('@/app/components/base/tag-management'), {diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/date-picker.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/date-picker.tsxindex 368c3dcfc38..dbc429cbdc6 100644--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/date-picker.tsx+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/date-picker.tsx@@ -2,6 +2,7 @@import type { Dayjs } from 'dayjs'import type { FC } from 'react'import type { TriggerProps } from '@/app/components/base/date-and-time-picker/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiCalendarLine } from '@remixicon/react'import dayjs from 'dayjs'import { noop } from 'es-toolkit/function'@@ -9,7 +10,6 @@ import * as React from 'react'import { useCallback } from 'react'import Picker from '@/app/components/base/date-and-time-picker/date-picker'import { useLocale } from '@/context/i18n'-import { cn } from '@/utils/classnames'import { formatToLocalTime } from '@/utils/format'type Props = {@@ -30,7 +30,7 @@ const DatePicker: FC<Props> = ({const renderDate = useCallback(({ value, handleClickTrigger, isOpen }: TriggerProps) => {return (- <div className={cn('system-sm-regular flex h-7 cursor-pointer items-center rounded-lg px-1 text-components-input-text-filled hover:bg-state-base-hover', isOpen && 'bg-state-base-hover')} onClick={handleClickTrigger}>+ <div className={cn('flex h-7 cursor-pointer items-center rounded-lg px-1 system-sm-regular text-components-input-text-filled hover:bg-state-base-hover', isOpen && 'bg-state-base-hover')} onClick={handleClickTrigger}>{value ? formatToLocalTime(value, locale, 'MMM D') : ''}</div>)diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/range-selector.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/range-selector.tsxindex a4bf0251393..a89b77e9e3d 100644--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/range-selector.tsx+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/range-selector.tsx@@ -3,13 +3,13 @@ import type { FC } from 'react'import type { PeriodParamsWithTimeRange, TimeRange } from '@/app/components/app/overview/app-chart'import type { Item } from '@/app/components/base/select'import type { I18nKeysByPrefix } from '@/types/i18n'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine, RiCheckLine } from '@remixicon/react'import dayjs from 'dayjs'import * as React from 'react'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'import { SimpleSelect } from '@/app/components/base/select'-import { cn } from '@/utils/classnames'const today = dayjs()@@ -44,7 +44,7 @@ const RangeSelector: FC<Props> = ({const renderTrigger = useCallback((item: Item | null, isOpen: boolean) => {return (- <div className={cn('flex h-8 cursor-pointer items-center space-x-1.5 rounded-lg bg-components-input-bg-normal pl-3 pr-2', isOpen && 'bg-state-base-hover-alt')}>+ <div className={cn('flex h-8 cursor-pointer items-center space-x-1.5 rounded-lg bg-components-input-bg-normal pr-2 pl-3', isOpen && 'bg-state-base-hover-alt')}><div className="system-sm-regular text-components-input-text-filled">{isCustomRange ? t('filter.period.custom', { ns: 'appLog' }) : item?.name}</div><RiArrowDownSLine className={cn('size-4 text-text-quaternary', isOpen && 'text-text-secondary')} /></div>@@ -57,13 +57,13 @@ const RangeSelector: FC<Props> = ({{selected && (<spanclassName={cn(- 'absolute left-2 top-[9px] flex items-center text-text-accent',+ 'absolute top-[9px] left-2 flex items-center text-text-accent',)}><RiCheckLine className="h-4 w-4" aria-hidden="true" /></span>)}- <span className={cn('system-md-regular block truncate')}>{item.name}</span>+ <span className={cn('block truncate system-md-regular')}>{item.name}</span></>)}, [])diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-button.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-button.tsxindex 17ca5d78cf5..29de1a1eaeb 100644--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-button.tsx+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-button.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { PopupProps } from './config-popup'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback, useRef, useState } from 'react'import {@@ -9,7 +10,6 @@ import {PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'import ConfigPopup from './config-popup'type Props = {diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-popup.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-popup.tsxindex 138d238b478..15b81e1ad6f 100644--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-popup.tsx+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-popup.tsx@@ -1,6 +1,7 @@'use client'import type { FC, JSX } from 'react'import type { AliyunConfig, ArizeConfig, DatabricksConfig, LangFuseConfig, LangSmithConfig, MLflowConfig, OpikConfig, PhoenixConfig, TencentConfig, WeaveConfig } from './type'+import { cn } from '@langgenius/dify-ui/cn'import { useBoolean } from 'ahooks'import * as React from 'react'import { useCallback, useState } from 'react'@@ -9,7 +10,6 @@ import Divider from '@/app/components/base/divider'import Switch from '@/app/components/base/switch'import Tooltip from '@/app/components/base/tooltip'import Indicator from '@/app/components/header/indicator'-import { cn } from '@/utils/classnames'import ProviderConfigModal from './provider-config-modal'import ProviderPanel from './provider-panel'import TracingIcon from './tracing-icon'@@ -331,7 +331,7 @@ const ConfigPopup: FC<PopupProps> = ({</div><div className="flex items-center"><Indicator color={enabled ? 'green' : 'gray'} />- <div className={cn('system-xs-semibold-uppercase ml-1 text-text-tertiary', enabled && 'text-util-colors-green-green-600')}>+ <div className={cn('ml-1 system-xs-semibold-uppercase text-text-tertiary', enabled && 'text-util-colors-green-green-600')}>{t(`${I18N_PREFIX}.${enabled ? 'enabled' : 'disabled'}`, { ns: 'app' })}</div>{!readOnly && (@@ -350,7 +350,7 @@ const ConfigPopup: FC<PopupProps> = ({</div></div>- <div className="system-xs-regular mt-2 text-text-tertiary">+ <div className="mt-2 system-xs-regular text-text-tertiary">{t(`${I18N_PREFIX}.tracingDescription`, { ns: 'app' })}</div><Divider className="my-3" />@@ -379,7 +379,7 @@ const ConfigPopup: FC<PopupProps> = ({<div className="mt-2 max-h-40 space-y-2 overflow-y-auto">{configuredProviderPanel()}</div>- <div className="system-xs-medium-uppercase mt-3 text-text-tertiary">{t(`${I18N_PREFIX}.configProviderTitle.moreProvider`, { ns: 'app' })}</div>+ <div className="mt-3 system-xs-medium-uppercase text-text-tertiary">{t(`${I18N_PREFIX}.configProviderTitle.moreProvider`, { ns: 'app' })}</div><div className="mt-2 max-h-40 space-y-2 overflow-y-auto">{moreProviderPanel()}</div>diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/field.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/field.tsxindex 7c472498304..2b56ecfeea3 100644--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/field.tsx+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/field.tsx@@ -1,8 +1,8 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import Input from '@/app/components/base/input'-import { cn } from '@/utils/classnames'type Props = {className?: stringdiff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/panel.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/panel.tsxindex 239427159c1..9c42f858254 100644--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/panel.tsx+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/panel.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { AliyunConfig, ArizeConfig, DatabricksConfig, LangFuseConfig, LangSmithConfig, MLflowConfig, OpikConfig, PhoenixConfig, TencentConfig, WeaveConfig } from './type'import type { TracingStatus } from '@/models/app'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowDownDoubleLine,RiEqualizer2Line,@@ -18,7 +19,6 @@ import Indicator from '@/app/components/header/indicator'import { useAppContext } from '@/context/app-context'import { usePathname } from '@/next/navigation'import { fetchTracingConfig as doFetchTracingConfig, fetchTracingStatus, updateTracingStatus } from '@/service/apps'-import { cn } from '@/utils/classnames'import ConfigButton from './config-button'import TracingIcon from './tracing-icon'import { TracingProvider } from './type'@@ -247,11 +247,11 @@ const Panel: FC = () => {><divclassName={cn(- 'flex cursor-pointer select-none items-center rounded-xl border-l-[0.5px] border-t border-effects-highlight bg-background-default-dodge p-2 shadow-xs hover:border-effects-highlight-lightmode-off hover:bg-background-default-lighter',+ 'flex cursor-pointer items-center rounded-xl border-t border-l-[0.5px] border-effects-highlight bg-background-default-dodge p-2 shadow-xs select-none hover:border-effects-highlight-lightmode-off hover:bg-background-default-lighter',)}><TracingIcon size="md" />- <div className="system-sm-semibold mx-2 text-text-secondary">{t(`${I18N_PREFIX}.title`, { ns: 'app' })}</div>+ <div className="mx-2 system-sm-semibold text-text-secondary">{t(`${I18N_PREFIX}.title`, { ns: 'app' })}</div><div className="rounded-md p-1"><RiEqualizer2Line className="h-4 w-4 text-text-tertiary" /></div>@@ -286,12 +286,12 @@ const Panel: FC = () => {><divclassName={cn(- 'flex cursor-pointer select-none items-center rounded-xl border-l-[0.5px] border-t border-effects-highlight bg-background-default-dodge p-2 shadow-xs hover:border-effects-highlight-lightmode-off hover:bg-background-default-lighter',+ 'flex cursor-pointer items-center rounded-xl border-t border-l-[0.5px] border-effects-highlight bg-background-default-dodge p-2 shadow-xs select-none hover:border-effects-highlight-lightmode-off hover:bg-background-default-lighter',)}>- <div className="ml-4 mr-1 flex items-center">+ <div className="mr-1 ml-4 flex items-center"><Indicator color={enabled ? 'green' : 'gray'} />- <div className="system-xs-semibold-uppercase ml-1.5 text-text-tertiary">+ <div className="ml-1.5 system-xs-semibold-uppercase text-text-tertiary">{t(`${I18N_PREFIX}.${enabled ? 'enabled' : 'disabled'}`, { ns: 'app' })}</div></div>diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-panel.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-panel.tsxindex 076a5cd7d8d..ed7f4ab962b 100644--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-panel.tsx+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-panel.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {RiEqualizer2Line,} from '@remixicon/react'@@ -8,7 +9,6 @@ import { useCallback } from 'react'import { useTranslation } from 'react-i18next'import { AliyunIconBig, ArizeIconBig, DatabricksIconBig, LangfuseIconBig, LangsmithIconBig, MlflowIconBig, OpikIconBig, PhoenixIconBig, TencentIconBig, WeaveIconBig } from '@/app/components/base/icons/src/public/tracing'import { Eye as View } from '@/app/components/base/icons/src/vender/solid/general'-import { cn } from '@/utils/classnames'import { TracingProvider } from './type'const I18N_PREFIX = 'tracing'@@ -82,7 +82,7 @@ const ProviderPanel: FC<Props> = ({<div className="flex items-center justify-between space-x-1"><div className="flex items-center"><Icon className="h-6" />- {isChosen && <div className="system-2xs-medium-uppercase ml-1 flex h-4 items-center radius-xs border border-text-accent-secondary px-1 text-text-accent-secondary">{t(`${I18N_PREFIX}.inUse`, { ns: 'app' })}</div>}+ {isChosen && <div className="ml-1 flex h-4 items-center rounded-sm border border-text-accent-secondary px-1 system-2xs-medium-uppercase text-text-accent-secondary">{t(`${I18N_PREFIX}.inUse`, { ns: 'app' })}</div>}</div>{!readOnly && (<div className="flex items-center justify-between space-x-1">@@ -102,7 +102,7 @@ const ProviderPanel: FC<Props> = ({</div>)}</div>- <div className="system-xs-regular mt-2 text-text-tertiary">+ <div className="mt-2 system-xs-regular text-text-tertiary">{t(`${I18N_PREFIX}.${type}.description`, { ns: 'app' })}</div></div>diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/tracing-icon.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/tracing-icon.tsxindex 9bf1ddc50dc..cdc0f753a6a 100644--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/tracing-icon.tsx+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/tracing-icon.tsx@@ -1,8 +1,8 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { TracingIcon as Icon } from '@/app/components/base/icons/src/public/tracing'-import { cn } from '@/utils/classnames'type Props = {className?: string@@ -10,7 +10,7 @@ type Props = {}const sizeClassMap = {- lg: 'w-9 h-9 p-2 radius-lg',+ lg: 'w-9 h-9 p-2 rounded-[10px]',md: 'w-6 h-6 p-1 rounded-lg',}diff --git a/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout-main.tsx b/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout-main.tsxindex 092e47278f4..ba3272c1a7a 100644--- a/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout-main.tsx+++ b/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout-main.tsx@@ -1,6 +1,7 @@'use client'import type { RemixiconComponentType } from '@remixicon/react'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {RiEqualizer2Fill,RiEqualizer2Line,@@ -24,7 +25,6 @@ import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'import useDocumentTitle from '@/hooks/use-document-title'import { usePathname } from '@/next/navigation'import { useDatasetDetail, useDatasetRelatedApps } from '@/service/knowledge/use-dataset'-import { cn } from '@/utils/classnames'type IAppDetailLayoutProps = {children: React.ReactNodediff --git a/web/app/(humanInputLayout)/form/[token]/form.tsx b/web/app/(humanInputLayout)/form/[token]/form.tsxindex 898dab8f4a1..be305851010 100644--- a/web/app/(humanInputLayout)/form/[token]/form.tsx+++ b/web/app/(humanInputLayout)/form/[token]/form.tsx@@ -3,6 +3,7 @@ import type { ButtonProps } from '@/app/components/base/ui/button'import type { FormInputItem, UserAction } from '@/app/components/workflow/nodes/human-input/types'import type { SiteInfo } from '@/models/share'import type { HumanInputFormError } from '@/service/use-share'+import { cn } from '@langgenius/dify-ui/cn'import {RiCheckboxCircleFill,RiErrorWarningFill,@@ -22,7 +23,6 @@ import { Button } from '@/app/components/base/ui/button'import useDocumentTitle from '@/hooks/use-document-title'import { useParams } from '@/next/navigation'import { useGetHumanInputForm, useSubmitHumanInputForm } from '@/service/use-share'-import { cn } from '@/utils/classnames'export type FormData = {site: { site: SiteInfo }@@ -101,7 +101,7 @@ const FormContent = () => {return (<div className={cn('flex h-full w-full flex-col items-center justify-center')}><div className="max-w-[640px] min-w-[480px]">- <div className="border-components-divider-subtle flex h-[320px] flex-col gap-4 radius-3xl border bg-chat-bubble-bg p-10 pb-9 shadow-lg backdrop-blur-xs">+ <div className="border-components-divider-subtle flex h-[320px] flex-col gap-4 rounded-[20px] border bg-chat-bubble-bg p-10 pb-9 shadow-lg backdrop-blur-xs"><div className="h-[56px] w-[56px] shrink-0 rounded-2xl border border-components-panel-border-subtle bg-background-default-dodge p-3"><RiCheckboxCircleFill className="h-8 w-8 text-text-success" /></div>@@ -129,7 +129,7 @@ const FormContent = () => {return (<div className={cn('flex h-full w-full flex-col items-center justify-center')}><div className="max-w-[640px] min-w-[480px]">- <div className="border-components-divider-subtle flex h-[320px] flex-col gap-4 radius-3xl border bg-chat-bubble-bg p-10 pb-9 shadow-lg backdrop-blur-xs">+ <div className="border-components-divider-subtle flex h-[320px] flex-col gap-4 rounded-[20px] border bg-chat-bubble-bg p-10 pb-9 shadow-lg backdrop-blur-xs"><div className="flex h-14 w-14 shrink-0 items-center justify-center rounded-2xl border border-components-panel-border-subtle bg-background-default-dodge p-3"><RiInformation2Fill className="h-8 w-8 text-text-accent" /></div>@@ -157,7 +157,7 @@ const FormContent = () => {return (<div className={cn('flex h-full w-full flex-col items-center justify-center')}><div className="max-w-[640px] min-w-[480px]">- <div className="border-components-divider-subtle flex h-[320px] flex-col gap-4 radius-3xl border bg-chat-bubble-bg p-10 pb-9 shadow-lg backdrop-blur-xs">+ <div className="border-components-divider-subtle flex h-[320px] flex-col gap-4 rounded-[20px] border bg-chat-bubble-bg p-10 pb-9 shadow-lg backdrop-blur-xs"><div className="flex h-14 w-14 shrink-0 items-center justify-center rounded-2xl border border-components-panel-border-subtle bg-background-default-dodge p-3"><RiInformation2Fill className="h-8 w-8 text-text-accent" /></div>@@ -185,7 +185,7 @@ const FormContent = () => {return (<div className={cn('flex h-full w-full flex-col items-center justify-center')}><div className="max-w-[640px] min-w-[480px]">- <div className="border-components-divider-subtle flex h-[320px] flex-col gap-4 radius-3xl border bg-chat-bubble-bg p-10 pb-9 shadow-lg backdrop-blur-xs">+ <div className="border-components-divider-subtle flex h-[320px] flex-col gap-4 rounded-[20px] border bg-chat-bubble-bg p-10 pb-9 shadow-lg backdrop-blur-xs"><div className="flex h-14 w-14 shrink-0 items-center justify-center rounded-2xl border border-components-panel-border-subtle bg-background-default-dodge p-3"><RiErrorWarningFill className="h-8 w-8 text-text-destructive" /></div>@@ -211,7 +211,7 @@ const FormContent = () => {return (<div className={cn('flex h-full w-full flex-col items-center justify-center')}><div className="max-w-[640px] min-w-[480px]">- <div className="border-components-divider-subtle flex h-[320px] flex-col gap-4 radius-3xl border bg-chat-bubble-bg p-10 pb-9 shadow-lg backdrop-blur-xs">+ <div className="border-components-divider-subtle flex h-[320px] flex-col gap-4 rounded-[20px] border bg-chat-bubble-bg p-10 pb-9 shadow-lg backdrop-blur-xs"><div className="flex h-14 w-14 shrink-0 items-center justify-center rounded-2xl border border-components-panel-border-subtle bg-background-default-dodge p-3"><RiErrorWarningFill className="h-8 w-8 text-text-destructive" /></div>@@ -248,7 +248,7 @@ const FormContent = () => {<div className="grow system-xl-semibold text-text-primary">{site.title}</div></div><div className="h-0 w-full grow overflow-y-auto">- <div className="border-components-divider-subtle radius-3xl border bg-chat-bubble-bg p-4 shadow-lg backdrop-blur-xs">+ <div className="border-components-divider-subtle rounded-[20px] border bg-chat-bubble-bg p-4 shadow-lg backdrop-blur-xs">{contentList.map((content, index) => (<ContentItemkey={index}diff --git a/web/app/(shareLayout)/webapp-reset-password/layout.tsx b/web/app/(shareLayout)/webapp-reset-password/layout.tsxindex a71317c8b9e..1a035bfb443 100644--- a/web/app/(shareLayout)/webapp-reset-password/layout.tsx+++ b/web/app/(shareLayout)/webapp-reset-password/layout.tsx@@ -1,8 +1,8 @@'use client'-import Header from '@/app/signin/_header'+import { cn } from '@langgenius/dify-ui/cn'+import Header from '@/app/signin/_header'import { useGlobalPublicStore } from '@/context/global-public-context'-import { cn } from '@/utils/classnames'export default function SignInLayout({ children }: any) {const { systemFeatures } = useGlobalPublicStore()@@ -24,7 +24,7 @@ export default function SignInLayout({ children }: any) {</div></div>{!systemFeatures.branding.enabled && (- <div className="system-xs-regular px-8 py-6 text-text-tertiary">+ <div className="px-8 py-6 system-xs-regular text-text-tertiary">©{' '}{new Date().getFullYear()}diff --git a/web/app/(shareLayout)/webapp-reset-password/set-password/page.tsx b/web/app/(shareLayout)/webapp-reset-password/set-password/page.tsxindex 5b89084ea12..df102e609a9 100644--- a/web/app/(shareLayout)/webapp-reset-password/set-password/page.tsx+++ b/web/app/(shareLayout)/webapp-reset-password/set-password/page.tsx@@ -1,4 +1,5 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import { RiCheckboxCircleFill } from '@remixicon/react'import { useCountDown } from 'ahooks'import { useCallback, useState } from 'react'@@ -9,7 +10,6 @@ import { toast } from '@/app/components/base/ui/toast'import { validPassword } from '@/config'import { useRouter, useSearchParams } from '@/next/navigation'import { changeWebAppPasswordWithToken } from '@/service/common'-import { cn } from '@/utils/classnames'const ChangePasswordForm = () => {const { t } = useTranslation()diff --git a/web/app/(shareLayout)/webapp-signin/layout.tsx b/web/app/(shareLayout)/webapp-signin/layout.tsxindex 21cb0e1f579..5451b451946 100644--- a/web/app/(shareLayout)/webapp-signin/layout.tsx+++ b/web/app/(shareLayout)/webapp-signin/layout.tsx@@ -1,10 +1,10 @@'use client'import type { PropsWithChildren } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'import { useGlobalPublicStore } from '@/context/global-public-context'import useDocumentTitle from '@/hooks/use-document-title'-import { cn } from '@/utils/classnames'export default function SignInLayout({ children }: PropsWithChildren) {const { t } = useTranslation()@@ -21,7 +21,7 @@ export default function SignInLayout({ children }: PropsWithChildren) {</div></div>{systemFeatures.branding.enabled === false && (- <div className="system-xs-regular px-8 py-6 text-text-tertiary">+ <div className="px-8 py-6 system-xs-regular text-text-tertiary">©{' '}{new Date().getFullYear()}diff --git a/web/app/(shareLayout)/webapp-signin/normalForm.tsx b/web/app/(shareLayout)/webapp-signin/normalForm.tsxindex ed97e648065..436c7e64bb3 100644--- a/web/app/(shareLayout)/webapp-signin/normalForm.tsx+++ b/web/app/(shareLayout)/webapp-signin/normalForm.tsx@@ -1,4 +1,5 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import { RiContractLine, RiDoorLockLine, RiErrorWarningFill } from '@remixicon/react'import * as React from 'react'import { useCallback, useEffect, useState } from 'react'@@ -8,7 +9,6 @@ import { IS_CE_EDITION } from '@/config'import { useGlobalPublicStore } from '@/context/global-public-context'import Link from '@/next/link'import { LicenseStatus } from '@/types/feature'-import { cn } from '@/utils/classnames'import MailAndCodeAuth from './components/mail-and-code-auth'import MailAndPasswordAuth from './components/mail-and-password-auth'import SSOAuth from './components/sso-auth'@@ -58,10 +58,10 @@ const NormalForm = () => {<div className="rounded-lg bg-linear-to-r from-workflow-workflow-progress-bg-1 to-workflow-workflow-progress-bg-2 p-4"><div className="shadows-shadow-lg relative mb-2 flex h-10 w-10 items-center justify-center rounded-xl bg-components-card-bg shadow"><RiContractLine className="h-5 w-5" />- <RiErrorWarningFill className="absolute -right-1 -top-1 h-4 w-4 text-text-warning-secondary" />+ <RiErrorWarningFill className="absolute -top-1 -right-1 h-4 w-4 text-text-warning-secondary" /></div><p className="system-sm-medium text-text-primary">{t('licenseLost', { ns: 'login' })}</p>- <p className="system-xs-regular mt-1 text-text-tertiary">{t('licenseLostTip', { ns: 'login' })}</p>+ <p className="mt-1 system-xs-regular text-text-tertiary">{t('licenseLostTip', { ns: 'login' })}</p></div></div></div>@@ -74,10 +74,10 @@ const NormalForm = () => {<div className="rounded-lg bg-linear-to-r from-workflow-workflow-progress-bg-1 to-workflow-workflow-progress-bg-2 p-4"><div className="shadows-shadow-lg relative mb-2 flex h-10 w-10 items-center justify-center rounded-xl bg-components-card-bg shadow"><RiContractLine className="h-5 w-5" />- <RiErrorWarningFill className="absolute -right-1 -top-1 h-4 w-4 text-text-warning-secondary" />+ <RiErrorWarningFill className="absolute -top-1 -right-1 h-4 w-4 text-text-warning-secondary" /></div><p className="system-sm-medium text-text-primary">{t('licenseExpired', { ns: 'login' })}</p>- <p className="system-xs-regular mt-1 text-text-tertiary">{t('licenseExpiredTip', { ns: 'login' })}</p>+ <p className="mt-1 system-xs-regular text-text-tertiary">{t('licenseExpiredTip', { ns: 'login' })}</p></div></div></div>@@ -90,10 +90,10 @@ const NormalForm = () => {<div className="rounded-lg bg-linear-to-r from-workflow-workflow-progress-bg-1 to-workflow-workflow-progress-bg-2 p-4"><div className="shadows-shadow-lg relative mb-2 flex h-10 w-10 items-center justify-center rounded-xl bg-components-card-bg shadow"><RiContractLine className="h-5 w-5" />- <RiErrorWarningFill className="absolute -right-1 -top-1 h-4 w-4 text-text-warning-secondary" />+ <RiErrorWarningFill className="absolute -top-1 -right-1 h-4 w-4 text-text-warning-secondary" /></div><p className="system-sm-medium text-text-primary">{t('licenseInactive', { ns: 'login' })}</p>- <p className="system-xs-regular mt-1 text-text-tertiary">{t('licenseInactiveTip', { ns: 'login' })}</p>+ <p className="mt-1 system-xs-regular text-text-tertiary">{t('licenseInactiveTip', { ns: 'login' })}</p></div></div></div>@@ -105,7 +105,7 @@ const NormalForm = () => {<div className="mx-auto mt-8 w-full"><div className="mx-auto w-full"><h2 className="title-4xl-semi-bold text-text-primary">{systemFeatures.branding.enabled ? t('pageTitleForE', { ns: 'login' }) : t('pageTitle', { ns: 'login' })}</h2>- <p className="body-md-regular mt-2 text-text-tertiary">{t('welcome', { ns: 'login' })}</p>+ <p className="mt-2 body-md-regular text-text-tertiary">{t('welcome', { ns: 'login' })}</p></div><div className="relative"><div className="mt-6 flex flex-col gap-3">@@ -122,7 +122,7 @@ const NormalForm = () => {<div className="h-px w-full bg-linear-to-r from-background-gradient-mask-transparent via-divider-regular to-background-gradient-mask-transparent"></div></div><div className="relative flex justify-center">- <span className="system-xs-medium-uppercase px-2 text-text-tertiary">{t('or', { ns: 'login' })}</span>+ <span className="px-2 system-xs-medium-uppercase text-text-tertiary">{t('or', { ns: 'login' })}</span></div></div>)}@@ -159,7 +159,7 @@ const NormalForm = () => {<RiDoorLockLine className="h-5 w-5" /></div><p className="system-sm-medium text-text-primary">{t('noLoginMethod', { ns: 'login' })}</p>- <p className="system-xs-regular mt-1 text-text-tertiary">{t('noLoginMethodTip', { ns: 'login' })}</p>+ <p className="mt-1 system-xs-regular text-text-tertiary">{t('noLoginMethodTip', { ns: 'login' })}</p></div><div className="relative my-2 py-2"><div className="absolute inset-0 flex items-center" aria-hidden="true">@@ -170,7 +170,7 @@ const NormalForm = () => {)}{!systemFeatures.branding.enabled && (<>- <div className="system-xs-regular mt-2 block w-full text-text-tertiary">+ <div className="mt-2 block w-full system-xs-regular text-text-tertiary">{t('tosDesc', { ns: 'login' })} <Link@@ -192,7 +192,7 @@ const NormalForm = () => {</Link></div>{IS_CE_EDITION && (- <div className="w-hull system-xs-regular mt-2 block text-text-tertiary">+ <div className="w-hull mt-2 block system-xs-regular text-text-tertiary">{t('goToInit', { ns: 'login' })} <Linkdiff --git a/web/app/account/(commonLayout)/avatar.tsx b/web/app/account/(commonLayout)/avatar.tsxindex b81c96df745..538e09b0fd9 100644--- a/web/app/account/(commonLayout)/avatar.tsx+++ b/web/app/account/(commonLayout)/avatar.tsx@@ -44,7 +44,7 @@ export default function AppSelector() {<MenuButtonclassName={`p-1x inline-flex- items-center radius-3xl text-sm+ items-center rounded-[20px] text-smtext-text-primarymobile:px-1${open && 'bg-components-panel-bg-blur'}@@ -64,7 +64,7 @@ export default function AppSelector() {><MenuItemsclassName="- absolute -right-2 -top-1 w-60 max-w-80+ absolute -top-1 -right-2 w-60 max-w-80origin-top-right divide-y divide-divider-subtle rounded-lg bg-components-panel-bg-blurshadow-lg"diff --git a/web/app/account/oauth/authorize/layout.tsx b/web/app/account/oauth/authorize/layout.tsxindex 7f6b270b457..9460e7fc542 100644--- a/web/app/account/oauth/authorize/layout.tsx+++ b/web/app/account/oauth/authorize/layout.tsx@@ -1,12 +1,12 @@'use client'-import Loading from '@/app/components/base/loading'+import { cn } from '@langgenius/dify-ui/cn'+import Loading from '@/app/components/base/loading'import Header from '@/app/signin/_header'import { AppContextProvider } from '@/context/app-context-provider'import { useGlobalPublicStore } from '@/context/global-public-context'import useDocumentTitle from '@/hooks/use-document-title'import { useIsLogin } from '@/service/use-common'-import { cn } from '@/utils/classnames'export default function SignInLayout({ children }: any) {const { systemFeatures } = useGlobalPublicStore()@@ -38,7 +38,7 @@ export default function SignInLayout({ children }: any) {</div></div>{systemFeatures.branding.enabled === false && (- <div className="px-8 py-6 text-text-tertiary system-xs-regular">+ <div className="px-8 py-6 system-xs-regular text-text-tertiary">©{' '}{new Date().getFullYear()}diff --git a/web/app/activate/activateForm.tsx b/web/app/activate/activateForm.tsxindex 62dd7f885f5..9b0a5f5b212 100644--- a/web/app/activate/activateForm.tsx+++ b/web/app/activate/activateForm.tsx@@ -1,13 +1,13 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import { useEffect } from 'react'import { useTranslation } from 'react-i18next'import Loading from '@/app/components/base/loading'import { Button } from '@/app/components/base/ui/button'-import useDocumentTitle from '@/hooks/use-document-title'+import useDocumentTitle from '@/hooks/use-document-title'import { useRouter, useSearchParams } from '@/next/navigation'import { useInvitationCheck } from '@/service/use-common'-import { cn } from '@/utils/classnames'const ActivateForm = () => {useDocumentTitle('')@@ -55,7 +55,7 @@ const ActivateForm = () => {{checkRes && !checkRes.is_valid && (<div className="flex flex-col md:w-[400px]"><div className="mx-auto w-full">- <div className="mb-3 flex h-20 w-20 items-center justify-center radius-3xl border border-divider-regular bg-components-option-card-option-bg p-5 text-[40px] font-bold shadow-lg">🤷♂️</div>+ <div className="mb-3 flex h-20 w-20 items-center justify-center rounded-[20px] border border-divider-regular bg-components-option-card-option-bg p-5 text-[40px] font-bold shadow-lg">🤷♂️</div><h2 className="text-[32px] font-bold text-text-primary">{t('invalid', { ns: 'login' })}</h2></div><div className="mx-auto mt-6 w-full">diff --git a/web/app/activate/page.tsx b/web/app/activate/page.tsxindex 5852ef54e4e..e7ab413005a 100644--- a/web/app/activate/page.tsx+++ b/web/app/activate/page.tsx@@ -1,7 +1,7 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useGlobalPublicStore } from '@/context/global-public-context'-import { cn } from '@/utils/classnames'import Header from '../signin/_header'import ActivateForm from './activateForm'diff --git a/web/app/components/app-sidebar/__tests__/text-squeeze-fix-verification.spec.tsx b/web/app/components/app-sidebar/__tests__/text-squeeze-fix-verification.spec.tsxindex a3868a8330e..b8a06e6697f 100644--- a/web/app/components/app-sidebar/__tests__/text-squeeze-fix-verification.spec.tsx+++ b/web/app/components/app-sidebar/__tests__/text-squeeze-fix-verification.spec.tsx@@ -12,7 +12,7 @@ vi.mock('@/next/navigation', () => ({}))// Mock classnames utility-vi.mock('@/utils/classnames', () => ({+vi.mock('@langgenius/dify-ui/cn', () => ({default: (...classes: unknown[]) => classes.filter(Boolean).join(' '),}))diff --git a/web/app/components/app-sidebar/app-info/app-info-trigger.tsx b/web/app/components/app-sidebar/app-info/app-info-trigger.tsxindex 07a41124e31..0e0d085e309 100644--- a/web/app/components/app-sidebar/app-info/app-info-trigger.tsx+++ b/web/app/components/app-sidebar/app-info/app-info-trigger.tsx@@ -1,8 +1,8 @@import type { App, AppSSO } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import { RiEqualizer2Line } from '@remixicon/react'import * as React from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import AppIcon from '../../base/app-icon'import { getAppModeLabel } from './app-mode-labels'@@ -52,9 +52,9 @@ const AppInfoTrigger = ({ appDetail, expand, onClick }: AppInfoTriggerProps) =>{expand && (<div className="flex flex-col items-start gap-1"><div className="flex w-full">- <div className="truncate whitespace-nowrap text-text-secondary system-md-semibold">{appDetail.name}</div>+ <div className="truncate system-md-semibold whitespace-nowrap text-text-secondary">{appDetail.name}</div></div>- <div className="whitespace-nowrap text-text-tertiary system-2xs-medium-uppercase">+ <div className="system-2xs-medium-uppercase whitespace-nowrap text-text-tertiary">{getAppModeLabel(appDetail.mode, t)}</div></div>diff --git a/web/app/components/app-sidebar/app-info/app-operations.tsx b/web/app/components/app-sidebar/app-info/app-operations.tsxindex 95ede2decfc..a3e67c8a595 100644--- a/web/app/components/app-sidebar/app-info/app-operations.tsx+++ b/web/app/components/app-sidebar/app-info/app-operations.tsx@@ -188,7 +188,7 @@ const AppOperations = ({</Button></PortalToFollowElemTrigger><PortalToFollowElemContent className="z-30">- <div className="flex min-w-[264px] flex-col radius-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur p-1 shadow-lg backdrop-blur-[5px]">+ <div className="flex min-w-[264px] flex-col rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur p-1 shadow-lg backdrop-blur-[5px]">{moreOperations.map(item => item.type === 'divider'? (<div key={item.id} className="my-1 h-px bg-divider-subtle" />diff --git a/web/app/components/app-sidebar/app-sidebar-dropdown.tsx b/web/app/components/app-sidebar/app-sidebar-dropdown.tsxindex d1a3ec935bb..361fc94d69b 100644--- a/web/app/components/app-sidebar/app-sidebar-dropdown.tsx+++ b/web/app/components/app-sidebar/app-sidebar-dropdown.tsx@@ -1,4 +1,5 @@import type { NavIcon } from './nav-link'+import { cn } from '@langgenius/dify-ui/cn'import {RiEqualizer2Line,RiMenuLine,@@ -13,7 +14,6 @@ import {PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'import { useAppContext } from '@/context/app-context'-import { cn } from '@/utils/classnames'import AppIcon from '../base/app-icon'import Divider from '../base/divider'import AppInfo from './app-info'@@ -50,7 +50,7 @@ const AppSidebarDropdown = ({ navigation }: Props) => {return (<>- <div className="fixed left-2 top-2 z-20">+ <div className="fixed top-2 left-2 z-20"><PortalToFollowElemopen={open}onOpenChange={setOpen}@@ -60,7 +60,7 @@ const AppSidebarDropdown = ({ navigation }: Props) => {}}><PortalToFollowElemTrigger onClick={handleTrigger}>- <div className={cn('flex cursor-pointer items-center radius-lg border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg p-1 shadow-lg backdrop-blur-xs hover:bg-background-default-hover', open && 'bg-background-default-hover')}>+ <div className={cn('flex cursor-pointer items-center rounded-[10px] border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg p-1 shadow-lg backdrop-blur-xs hover:bg-background-default-hover', open && 'bg-background-default-hover')}><AppIconsize="small"iconType={appDetail.icon_type}@@ -97,16 +97,16 @@ const AppSidebarDropdown = ({ navigation }: Props) => {</div><div className="flex flex-col items-start gap-1"><div className="flex w-full">- <div className="truncate text-text-secondary system-md-semibold">{appDetail.name}</div>+ <div className="truncate system-md-semibold text-text-secondary">{appDetail.name}</div></div>- <div className="text-text-tertiary system-2xs-medium-uppercase">{getAppModeLabel(appDetail.mode, t)}</div>+ <div className="system-2xs-medium-uppercase text-text-tertiary">{getAppModeLabel(appDetail.mode, t)}</div></div></div></div><div className="px-4"><Divider bgStyle="gradient" /></div>- <nav className="space-y-0.5 px-3 pb-6 pt-4">+ <nav className="space-y-0.5 px-3 pt-4 pb-6">{navigation.map((item, index) => {return (<NavLink key={index} mode="expand" iconMap={{ selected: item.selectedIcon, normal: item.icon }} name={item.name} href={item.href} />diff --git a/web/app/components/app-sidebar/dataset-info/dropdown.tsx b/web/app/components/app-sidebar/dataset-info/dropdown.tsxindex 33092865f83..9abebfcc88b 100644--- a/web/app/components/app-sidebar/dataset-info/dropdown.tsx+++ b/web/app/components/app-sidebar/dataset-info/dropdown.tsx@@ -1,4 +1,5 @@import type { DataSet } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { RiMoreFill } from '@remixicon/react'import * as React from 'react'import { useCallback, useState } from 'react'@@ -11,7 +12,6 @@ import { checkIsUsedInApp, deleteDataset } from '@/service/datasets'import { datasetDetailQueryKeyPrefix, useInvalidDatasetList } from '@/service/knowledge/use-dataset'import { useInvalid } from '@/service/use-base'import { useExportPipelineDSL } from '@/service/use-pipeline'-import { cn } from '@/utils/classnames'import { downloadBlob } from '@/utils/download'import ActionButton from '../../base/action-button'import { PortalToFollowElem, PortalToFollowElemContent, PortalToFollowElemTrigger } from '../../base/portal-to-follow-elem'diff --git a/web/app/components/app-sidebar/dataset-info/index.tsx b/web/app/components/app-sidebar/dataset-info/index.tsxindex e46c4e40858..02b2251eb8b 100644--- a/web/app/components/app-sidebar/dataset-info/index.tsx+++ b/web/app/components/app-sidebar/dataset-info/index.tsx@@ -1,13 +1,13 @@'use client'import type { FC } from 'react'import type { DataSet } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useMemo } from 'react'import { useTranslation } from 'react-i18next'import { useDatasetDetailContextWithSelector } from '@/context/dataset-detail'import { useKnowledge } from '@/hooks/use-knowledge'import { DOC_FORM_TEXT } from '@/models/datasets'-import { cn } from '@/utils/classnames'import AppIcon from '../../base/app-icon'import Effect from '../../base/effect'import Dropdown from './dropdown'@@ -36,7 +36,7 @@ const DatasetInfo: FC<DatasetInfoProps> = ({return (<div className={cn('relative flex flex-col', expand ? '' : 'p-1')}>{expand && (- <Effect className="-left-5 top-[-22px] opacity-15" />+ <Effect className="top-[-22px] -left-5 opacity-15" />)}<div className="flex flex-col gap-2 p-2">@@ -57,19 +57,19 @@ const DatasetInfo: FC<DatasetInfoProps> = ({)}</div>{!expand && (- <div className="-mb-2 -mt-1 flex items-center justify-center">+ <div className="-mt-1 -mb-2 flex items-center justify-center"><Dropdown expand={false} /></div>)}{expand && (<div className="flex flex-col gap-y-1 pb-0.5"><div- className="truncate text-text-secondary system-md-semibold"+ className="truncate system-md-semibold text-text-secondary"title={dataset.name}>{dataset.name}</div>- <div className="text-text-tertiary system-2xs-medium-uppercase">+ <div className="system-2xs-medium-uppercase text-text-tertiary">{isExternalProvider && t('externalTag', { ns: 'dataset' })}{!!(!isExternalProvider && isPipelinePublished && dataset.doc_form && dataset.indexing_technique) && (<div className="flex items-center gap-x-2">@@ -79,7 +79,7 @@ const DatasetInfo: FC<DatasetInfoProps> = ({)}</div>{!!dataset.description && (- <p className="line-clamp-3 text-text-tertiary system-xs-regular first-letter:capitalize">+ <p className="line-clamp-3 system-xs-regular text-text-tertiary first-letter:capitalize">{dataset.description}</p>)}diff --git a/web/app/components/app-sidebar/dataset-sidebar-dropdown.tsx b/web/app/components/app-sidebar/dataset-sidebar-dropdown.tsxindex 6512cb830b9..de2563b3779 100644--- a/web/app/components/app-sidebar/dataset-sidebar-dropdown.tsx+++ b/web/app/components/app-sidebar/dataset-sidebar-dropdown.tsx@@ -1,5 +1,6 @@import type { NavIcon } from './nav-link'import type { DataSet } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import {RiMenuLine,} from '@remixicon/react'@@ -15,7 +16,6 @@ import { useDatasetDetailContextWithSelector } from '@/context/dataset-detail'import { useKnowledge } from '@/hooks/use-knowledge'import { DOC_FORM_TEXT } from '@/models/datasets'import { useDatasetRelatedApps } from '@/service/knowledge/use-dataset'-import { cn } from '@/utils/classnames'import AppIcon from '../base/app-icon'import Divider from '../base/divider'import Effect from '../base/effect'@@ -65,7 +65,7 @@ const DatasetSidebarDropdown = ({return (<>- <div className="fixed left-2 top-2 z-20">+ <div className="fixed top-2 left-2 z-20"><PortalToFollowElemopen={open}onOpenChange={setOpen}@@ -77,7 +77,7 @@ const DatasetSidebarDropdown = ({<PortalToFollowElemTrigger onClick={handleTrigger}><divclassName={cn(- 'flex cursor-pointer items-center radius-lg border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg p-1 shadow-lg backdrop-blur-xs hover:bg-background-default-hover',+ 'flex cursor-pointer items-center rounded-[10px] border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg p-1 shadow-lg backdrop-blur-xs hover:bg-background-default-hover',open && 'bg-background-default-hover',)}>@@ -93,7 +93,7 @@ const DatasetSidebarDropdown = ({</PortalToFollowElemTrigger><PortalToFollowElemContent className="z-50"><div className="relative w-[216px] rounded-xl border-[0.5px] border-components-panel-border bg-background-default-subtle shadow-lg">- <Effect className="-left-5 top-[-22px] opacity-15" />+ <Effect className="top-[-22px] -left-5 opacity-15" /><div className="flex flex-col gap-y-2 p-4"><div className="flex items-center justify-between"><AppIcon@@ -107,12 +107,12 @@ const DatasetSidebarDropdown = ({</div><div className="flex flex-col gap-y-1 pb-0.5"><div- className="truncate text-text-secondary system-md-semibold"+ className="truncate system-md-semibold text-text-secondary"title={dataset.name}>{dataset.name}</div>- <div className="text-text-tertiary system-2xs-medium-uppercase">+ <div className="system-2xs-medium-uppercase text-text-tertiary">{isExternalProvider && t('externalTag', { ns: 'dataset' })}{!!(!isExternalProvider && dataset.doc_form && dataset.indexing_technique) && (<div className="flex items-center gap-x-2">@@ -123,7 +123,7 @@ const DatasetSidebarDropdown = ({</div></div>{!!dataset.description && (- <p className="line-clamp-3 text-text-tertiary system-xs-regular first-letter:capitalize">+ <p className="line-clamp-3 system-xs-regular text-text-tertiary first-letter:capitalize">{dataset.description}</p>)}diff --git a/web/app/components/app-sidebar/index.tsx b/web/app/components/app-sidebar/index.tsxindex f86cd617e39..716b73abf56 100644--- a/web/app/components/app-sidebar/index.tsx+++ b/web/app/components/app-sidebar/index.tsx@@ -1,4 +1,5 @@import type { NavIcon } from './nav-link'+import { cn } from '@langgenius/dify-ui/cn'import { useHover, useKeyPress } from 'ahooks'import * as React from 'react'import { useCallback, useEffect, useState } from 'react'@@ -7,7 +8,6 @@ import { useStore as useAppStore } from '@/app/components/app/store'import { useEventEmitterContextContext } from '@/context/event-emitter'import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'import { usePathname } from '@/next/navigation'-import { cn } from '@/utils/classnames'import Divider from '../base/divider'import { getKeyboardKeyCodeBySystem } from '../workflow/utils'import AppInfo from './app-info'@@ -124,7 +124,7 @@ const AppDetailNav = ({/>{!isMobile && isHoveringSidebar && (<ToggleButton- className="absolute -right-3 top-[-3.5px] z-20"+ className="absolute top-[-3.5px] -right-3 z-20"expand={expand}handleToggle={handleToggle}/>diff --git a/web/app/components/app-sidebar/nav-link/index.tsx b/web/app/components/app-sidebar/nav-link/index.tsxindex cf986a7407e..a2f737da162 100644--- a/web/app/components/app-sidebar/nav-link/index.tsx+++ b/web/app/components/app-sidebar/nav-link/index.tsx@@ -1,9 +1,9 @@'use client'import type { RemixiconComponentType } from '@remixicon/react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import Link from '@/next/link'import { useSelectedLayoutSegment } from '@/next/navigation'-import { cn } from '@/utils/classnames'export type NavIcon = React.ComponentType<React.PropsWithoutRef<React.ComponentProps<'svg'>> & {@@ -54,7 +54,7 @@ const NavLink = ({key={name}type="button"disabled- className={cn('flex h-8 cursor-not-allowed items-center rounded-lg text-components-menu-item-text opacity-30 system-sm-medium hover:bg-components-menu-item-bg-hover', 'pl-3 pr-1')}+ className={cn('flex h-8 cursor-not-allowed items-center rounded-lg system-sm-medium text-components-menu-item-text opacity-30 hover:bg-components-menu-item-bg-hover', 'pr-1 pl-3')}title={mode === 'collapse' ? name : ''}aria-disabled>@@ -75,8 +75,8 @@ const NavLink = ({key={name}href={href}className={cn(isActive- ? 'border-b-[0.25px] border-l-[0.75px] border-r-[0.25px] border-t-[0.75px] border-effects-highlight-lightmode-off bg-components-menu-item-bg-active text-text-accent-light-mode-only system-sm-semibold'- : 'text-components-menu-item-text system-sm-medium hover:bg-components-menu-item-bg-hover hover:text-components-menu-item-text-hover', 'flex h-8 items-center rounded-lg pl-3 pr-1')}+ ? 'border-t-[0.75px] border-r-[0.25px] border-b-[0.25px] border-l-[0.75px] border-effects-highlight-lightmode-off bg-components-menu-item-bg-active system-sm-semibold text-text-accent-light-mode-only'+ : 'system-sm-medium text-components-menu-item-text hover:bg-components-menu-item-bg-hover hover:text-components-menu-item-text-hover', 'flex h-8 items-center rounded-lg pr-1 pl-3')}title={mode === 'collapse' ? name : ''}>{renderIcon()}diff --git a/web/app/components/app-sidebar/toggle-button.tsx b/web/app/components/app-sidebar/toggle-button.tsxindex 8c17f7ad880..5800ff2263f 100644--- a/web/app/components/app-sidebar/toggle-button.tsx+++ b/web/app/components/app-sidebar/toggle-button.tsx@@ -1,8 +1,8 @@+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowLeftSLine, RiArrowRightSLine } from '@remixicon/react'import * as React from 'react'import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import Tooltip from '../base/tooltip'import ShortcutsName from '../workflow/shortcuts-name'diff --git a/web/app/components/app/annotation/batch-action.tsx b/web/app/components/app/annotation/batch-action.tsxindex e59e57b392c..da7d0c70dd2 100644--- a/web/app/components/app/annotation/batch-action.tsx+++ b/web/app/components/app/annotation/batch-action.tsx@@ -1,4 +1,5 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiDeleteBinLine } from '@remixicon/react'import { useBoolean } from 'ahooks'import * as React from 'react'@@ -12,7 +13,6 @@ import {AlertDialogContent,AlertDialogTitle,} from '@/app/components/base/ui/alert-dialog'-import { cn } from '@/utils/classnames'const i18nPrefix = 'batchAction'@@ -47,7 +47,7 @@ const BatchAction: FC<IBatchActionProps> = ({}return (<div className={cn('pointer-events-none flex w-full justify-center', className)}>- <div className="pointer-events-auto flex items-center gap-x-1 radius-lg border border-components-actionbar-border-accent bg-components-actionbar-bg-accent p-1 shadow-xl shadow-shadow-shadow-5 backdrop-blur-[5px]">+ <div className="pointer-events-auto flex items-center gap-x-1 rounded-[10px] border border-components-actionbar-border-accent bg-components-actionbar-bg-accent p-1 shadow-xl shadow-shadow-shadow-5 backdrop-blur-[5px]"><div className="inline-flex items-center gap-x-2 py-1 pr-3 pl-2"><span className="flex h-5 w-5 items-center justify-center rounded-md bg-text-accent px-1 py-0.5 text-xs font-medium text-text-primary-on-surface">{selectedIds.length}diff --git a/web/app/components/app/annotation/batch-add-annotation-modal/csv-uploader.tsx b/web/app/components/app/annotation/batch-add-annotation-modal/csv-uploader.tsxindex 9978887820c..02dcf27aea6 100644--- a/web/app/components/app/annotation/batch-add-annotation-modal/csv-uploader.tsx+++ b/web/app/components/app/annotation/batch-add-annotation-modal/csv-uploader.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiDeleteBinLine } from '@remixicon/react'import * as React from 'react'import { useEffect, useRef, useState } from 'react'@@ -7,7 +8,6 @@ import { useTranslation } from 'react-i18next'import { Csv as CSVIcon } from '@/app/components/base/icons/src/public/files'import { Button } from '@/app/components/base/ui/button'import { toast } from '@/app/components/base/ui/toast'-import { cn } from '@/utils/classnames'export type Props = {file: File | undefineddiff --git a/web/app/components/app/annotation/edit-annotation-modal/edit-item/index.tsx b/web/app/components/app/annotation/edit-annotation-modal/edit-item/index.tsxindex 152724e0e9d..4a62569816f 100644--- a/web/app/components/app/annotation/edit-annotation-modal/edit-item/index.tsx+++ b/web/app/components/app/annotation/edit-annotation-modal/edit-item/index.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiDeleteBinLine, RiEditFill, RiEditLine } from '@remixicon/react'import * as React from 'react'import { useEffect, useState } from 'react'@@ -7,7 +8,6 @@ import { useTranslation } from 'react-i18next'import { Robot, User } from '@/app/components/base/icons/src/public/avatar'import Textarea from '@/app/components/base/textarea'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'export enum EditItemType {Query = 'query',diff --git a/web/app/components/app/annotation/header-opts/index.tsx b/web/app/components/app/annotation/header-opts/index.tsxindex 9dfb3bad42a..101898b87e0 100644--- a/web/app/components/app/annotation/header-opts/index.tsx+++ b/web/app/components/app/annotation/header-opts/index.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { AnnotationItemBasic } from '../type'import { Menu, MenuButton, MenuItems, Transition } from '@headlessui/react'+import { cn } from '@langgenius/dify-ui/cn'import {RiAddLine,RiDeleteBinLine,@@ -18,10 +19,9 @@ import { FileDownload02, FilePlus02 } from '@/app/components/base/icons/src/vendimport CustomPopover from '@/app/components/base/popover'import { Button } from '@/app/components/base/ui/button'import { useLocale } from '@/context/i18n'-import { LanguagesSupported } from '@/i18n-config/language'+import { LanguagesSupported } from '@/i18n-config/language'import { clearAllAnnotations, fetchExportAnnotationList } from '@/service/annotation'-import { cn } from '@/utils/classnames'import { downloadBlob } from '@/utils/download'import AddAnnotationModal from '../add-annotation-modal'import BatchAddModal from '../batch-add-annotation-modal'diff --git a/web/app/components/app/annotation/index.tsx b/web/app/components/app/annotation/index.tsxindex 17ec32dc23c..b9224218499 100644--- a/web/app/components/app/annotation/index.tsx+++ b/web/app/components/app/annotation/index.tsx@@ -4,6 +4,7 @@ import type { QueryParam } from './filter'import type { AnnotationItem, AnnotationItemBasic } from './type'import type { AnnotationReplyConfig } from '@/models/debug'import type { App } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import { RiEqualizer2Line } from '@remixicon/react'import { useDebounce } from 'ahooks'import * as React from 'react'@@ -22,7 +23,6 @@ import { useProviderContext } from '@/context/provider-context'import { addAnnotation, delAnnotation, delAnnotations, fetchAnnotationConfig as doFetchAnnotationConfig, editAnnotation, fetchAnnotationList, queryAnnotationJobStatus, updateAnnotationScore, updateAnnotationStatus } from '@/service/annotation'import { AppModeEnum } from '@/types/app'import { sleep } from '@/utils'-import { cn } from '@/utils/classnames'import EmptyElement from './empty-element'import Filter from './filter'import HeaderOpts from './header-opts'@@ -144,7 +144,7 @@ const Annotation: FC<Props> = (props) => {return (<div className="flex h-full flex-col">- <p className="text-text-tertiary system-sm-regular">{t('description', { ns: 'appLog' })}</p>+ <p className="system-sm-regular text-text-tertiary">{t('description', { ns: 'appLog' })}</p><div className="relative flex h-full flex-1 flex-col py-4"><Filter appId={appDetail.id} queryParams={queryParams} setQueryParams={setQueryParams}><div className="flex items-center space-x-2">@@ -152,7 +152,7 @@ const Annotation: FC<Props> = (props) => {<><div className={cn(!annotationConfig?.enabled && 'pr-2', 'flex h-7 items-center space-x-1 rounded-lg border border-components-panel-border bg-components-panel-bg-blur pl-2')}><MessageFast className="h-4 w-4 text-util-colors-indigo-indigo-600" />- <div className="text-text-primary system-sm-medium">{t('name', { ns: 'appAnnotation' })}</div>+ <div className="system-sm-medium text-text-primary">{t('name', { ns: 'appAnnotation' })}</div><Switchkey={controlRefreshSwitch}value={annotationConfig?.enabled ?? false}diff --git a/web/app/components/app/annotation/list.tsx b/web/app/components/app/annotation/list.tsxindex 75818f731c2..caad4dd5236 100644--- a/web/app/components/app/annotation/list.tsx+++ b/web/app/components/app/annotation/list.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { AnnotationItem } from './type'+import { cn } from '@langgenius/dify-ui/cn'import { RiDeleteBinLine, RiEditLine } from '@remixicon/react'import * as React from 'react'import { useCallback, useMemo } from 'react'@@ -8,7 +9,6 @@ import { useTranslation } from 'react-i18next'import ActionButton from '@/app/components/base/action-button'import Checkbox from '@/app/components/base/checkbox'import useTimestamp from '@/hooks/use-timestamp'-import { cn } from '@/utils/classnames'import BatchAction from './batch-action'import RemoveAnnotationConfirmModal from './remove-annotation-confirm-modal'@@ -60,7 +60,7 @@ const List: FC<Props> = ({<table className={cn('w-full min-w-[440px] border-collapse border-0')}><thead className="system-xs-medium-uppercase text-text-tertiary"><tr>- <td className="w-12 whitespace-nowrap rounded-l-lg bg-background-section-burn px-2">+ <td className="w-12 rounded-l-lg bg-background-section-burn px-2 whitespace-nowrap"><CheckboxclassName="mr-2"checked={isAllSelected}@@ -68,11 +68,11 @@ const List: FC<Props> = ({onCheck={handleSelectAll}/></td>- <td className="w-5 whitespace-nowrap bg-background-section-burn pl-2 pr-1">{t('table.header.question', { ns: 'appAnnotation' })}</td>- <td className="whitespace-nowrap bg-background-section-burn py-1.5 pl-3">{t('table.header.answer', { ns: 'appAnnotation' })}</td>- <td className="whitespace-nowrap bg-background-section-burn py-1.5 pl-3">{t('table.header.createdAt', { ns: 'appAnnotation' })}</td>- <td className="whitespace-nowrap bg-background-section-burn py-1.5 pl-3">{t('table.header.hits', { ns: 'appAnnotation' })}</td>- <td className="w-[96px] whitespace-nowrap rounded-r-lg bg-background-section-burn py-1.5 pl-3">{t('table.header.actions', { ns: 'appAnnotation' })}</td>+ <td className="w-5 bg-background-section-burn pr-1 pl-2 whitespace-nowrap">{t('table.header.question', { ns: 'appAnnotation' })}</td>+ <td className="bg-background-section-burn py-1.5 pl-3 whitespace-nowrap">{t('table.header.answer', { ns: 'appAnnotation' })}</td>+ <td className="bg-background-section-burn py-1.5 pl-3 whitespace-nowrap">{t('table.header.createdAt', { ns: 'appAnnotation' })}</td>+ <td className="bg-background-section-burn py-1.5 pl-3 whitespace-nowrap">{t('table.header.hits', { ns: 'appAnnotation' })}</td>+ <td className="w-[96px] rounded-r-lg bg-background-section-burn py-1.5 pl-3 whitespace-nowrap">{t('table.header.actions', { ns: 'appAnnotation' })}</td></tr></thead><tbody className="system-sm-regular text-text-secondary">@@ -99,13 +99,13 @@ const List: FC<Props> = ({/></td><td- className="max-w-[250px] overflow-hidden text-ellipsis whitespace-nowrap p-3 pr-2"+ className="max-w-[250px] overflow-hidden p-3 pr-2 text-ellipsis whitespace-nowrap"title={item.question}>{item.question}</td><td- className="max-w-[250px] overflow-hidden text-ellipsis whitespace-nowrap p-3 pr-2"+ className="max-w-[250px] overflow-hidden p-3 pr-2 text-ellipsis whitespace-nowrap"title={item.answer}>{item.answer}diff --git a/web/app/components/app/annotation/view-annotation-modal/index.tsx b/web/app/components/app/annotation/view-annotation-modal/index.tsxindex d9ebe093f54..8a5b53aa87a 100644--- a/web/app/components/app/annotation/view-annotation-modal/index.tsx+++ b/web/app/components/app/annotation/view-annotation-modal/index.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { AnnotationItem, HitHistoryItem } from '../type'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useEffect, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -20,7 +21,6 @@ import {import { APP_PAGE_LIMIT } from '@/config'import useTimestamp from '@/hooks/use-timestamp'import { fetchHitHistoryList } from '@/service/annotation'-import { cn } from '@/utils/classnames'import EditItem, { EditItemType } from '../edit-annotation-modal/edit-item'import HitHistoryNoData from './hit-history-no-data'@@ -146,12 +146,12 @@ const ViewAnnotationModal: FC<Props> = ({<table className={cn('w-full min-w-[440px] border-collapse border-0')}><thead className="system-xs-medium-uppercase text-text-tertiary"><tr>- <td className="w-5 whitespace-nowrap rounded-l-lg bg-background-section-burn pl-2 pr-1">{t('hitHistoryTable.query', { ns: 'appAnnotation' })}</td>- <td className="whitespace-nowrap bg-background-section-burn py-1.5 pl-3">{t('hitHistoryTable.match', { ns: 'appAnnotation' })}</td>- <td className="whitespace-nowrap bg-background-section-burn py-1.5 pl-3">{t('hitHistoryTable.response', { ns: 'appAnnotation' })}</td>- <td className="whitespace-nowrap bg-background-section-burn py-1.5 pl-3">{t('hitHistoryTable.source', { ns: 'appAnnotation' })}</td>- <td className="whitespace-nowrap bg-background-section-burn py-1.5 pl-3">{t('hitHistoryTable.score', { ns: 'appAnnotation' })}</td>- <td className="w-[160px] whitespace-nowrap rounded-r-lg bg-background-section-burn py-1.5 pl-3">{t('hitHistoryTable.time', { ns: 'appAnnotation' })}</td>+ <td className="w-5 rounded-l-lg bg-background-section-burn pr-1 pl-2 whitespace-nowrap">{t('hitHistoryTable.query', { ns: 'appAnnotation' })}</td>+ <td className="bg-background-section-burn py-1.5 pl-3 whitespace-nowrap">{t('hitHistoryTable.match', { ns: 'appAnnotation' })}</td>+ <td className="bg-background-section-burn py-1.5 pl-3 whitespace-nowrap">{t('hitHistoryTable.response', { ns: 'appAnnotation' })}</td>+ <td className="bg-background-section-burn py-1.5 pl-3 whitespace-nowrap">{t('hitHistoryTable.source', { ns: 'appAnnotation' })}</td>+ <td className="bg-background-section-burn py-1.5 pl-3 whitespace-nowrap">{t('hitHistoryTable.score', { ns: 'appAnnotation' })}</td>+ <td className="w-[160px] rounded-r-lg bg-background-section-burn py-1.5 pl-3 whitespace-nowrap">{t('hitHistoryTable.time', { ns: 'appAnnotation' })}</td></tr></thead><tbody className="system-sm-regular text-text-secondary">@@ -161,19 +161,19 @@ const ViewAnnotationModal: FC<Props> = ({className="cursor-pointer border-b border-divider-subtle hover:bg-background-default-hover"><td- className="max-w-[250px] overflow-hidden text-ellipsis whitespace-nowrap p-3 pr-2"+ className="max-w-[250px] overflow-hidden p-3 pr-2 text-ellipsis whitespace-nowrap"title={item.question}>{item.question}</td><td- className="max-w-[250px] overflow-hidden text-ellipsis whitespace-nowrap p-3 pr-2"+ className="max-w-[250px] overflow-hidden p-3 pr-2 text-ellipsis whitespace-nowrap"title={item.match}>{item.match}</td><td- className="max-w-[250px] overflow-hidden text-ellipsis whitespace-nowrap p-3 pr-2"+ className="max-w-[250px] overflow-hidden p-3 pr-2 text-ellipsis whitespace-nowrap"title={item.response}>{item.response}@@ -250,7 +250,7 @@ const ViewAnnotationModal: FC<Props> = ({)}foot={id? (- <div className="system-sm-medium flex h-16 items-center justify-between rounded-bl-xl rounded-br-xl border-t border-divider-subtle bg-background-section-burn px-4 text-text-tertiary">+ <div className="flex h-16 items-center justify-between rounded-br-xl rounded-bl-xl border-t border-divider-subtle bg-background-section-burn px-4 system-sm-medium text-text-tertiary"><divclassName="flex cursor-pointer items-center space-x-2 pl-3"onClick={() => setShowModal(true)}diff --git a/web/app/components/app/app-access-control/access-control-dialog.tsx b/web/app/components/app/app-access-control/access-control-dialog.tsxindex dd7c74e233b..bbf5329c9dd 100644--- a/web/app/components/app/app-access-control/access-control-dialog.tsx+++ b/web/app/components/app/app-access-control/access-control-dialog.tsx@@ -1,8 +1,8 @@import type { ReactNode } from 'react'import { Dialog, Transition } from '@headlessui/react'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine } from '@remixicon/react'import { Fragment, useCallback } from 'react'-import { cn } from '@/utils/classnames'type DialogProps = {className?: string@@ -46,7 +46,7 @@ const AccessControlDialog = ({leaveTo="opacity-0 scale-95"><Dialog.Panel className={cn('relative h-auto min-h-[323px] w-[600px] overflow-y-auto rounded-2xl bg-components-panel-bg p-0 shadow-xl transition-all', className)}>- <div onClick={() => close()} className="absolute right-5 top-5 z-10 flex h-8 w-8 cursor-pointer items-center justify-center">+ <div onClick={() => close()} className="absolute top-5 right-5 z-10 flex h-8 w-8 cursor-pointer items-center justify-center"><RiCloseLine className="h-5 w-5 text-text-tertiary" /></div>{children}diff --git a/web/app/components/app/app-access-control/access-control-item.tsx b/web/app/components/app/app-access-control/access-control-item.tsxindex da6e69c42e4..cc2cf94f0c4 100644--- a/web/app/components/app/app-access-control/access-control-item.tsx+++ b/web/app/components/app/app-access-control/access-control-item.tsx@@ -13,7 +13,7 @@ const AccessControlItem: FC<AccessControlItemProps> = ({ type, children }) => {if (currentMenu !== type) {return (<div- className="cursor-pointer radius-lg border+ className="cursor-pointer rounded-[10px] borderborder-components-option-card-option-border bg-components-option-card-option-bghover:border-components-option-card-option-border-hover hover:bg-components-option-card-option-bg-hover"onClick={() => setCurrentMenu(type)}@@ -24,7 +24,7 @@ const AccessControlItem: FC<AccessControlItemProps> = ({ type, children }) => {}return (- <div className="radius-lg border-[1.5px]+ <div className="rounded-[10px] border-[1.5px]border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg shadow-sm">{children}diff --git a/web/app/components/app/app-access-control/add-member-or-group-pop.tsx b/web/app/components/app/app-access-control/add-member-or-group-pop.tsxindex f4c960f1bf4..f457e3a2c4f 100644--- a/web/app/components/app/app-access-control/add-member-or-group-pop.tsx+++ b/web/app/components/app/app-access-control/add-member-or-group-pop.tsx@@ -1,6 +1,7 @@'use client'import type { AccessControlAccount, AccessControlGroup, Subject, SubjectAccount, SubjectGroup } from '@/models/access-control'import { FloatingOverlay } from '@floating-ui/react'+import { cn } from '@langgenius/dify-ui/cn'import { RiAddCircleFill, RiArrowRightSLine, RiOrganizationChart } from '@remixicon/react'import { useDebounce } from 'ahooks'import { useCallback, useEffect, useRef, useState } from 'react'@@ -10,7 +11,6 @@ import { Button } from '@/app/components/base/ui/button'import { useSelector } from '@/context/app-context'import { SubjectType } from '@/models/access-control'import { useSearchForWhiteListCandidates } from '@/service/access-control'-import { cn } from '@/utils/classnames'import useAccessControlStore from '../../../../context/access-control-store'import Checkbox from '../../base/checkbox'import Input from '../../base/input'diff --git a/web/app/components/app/app-publisher/suggested-action.tsx b/web/app/components/app/app-publisher/suggested-action.tsxindex 56879d8fead..db13364eb92 100644--- a/web/app/components/app/app-publisher/suggested-action.tsx+++ b/web/app/components/app/app-publisher/suggested-action.tsx@@ -1,6 +1,6 @@import type { HTMLProps, PropsWithChildren } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowRightUpLine } from '@remixicon/react'-import { cn } from '@/utils/classnames'type SuggestedActionProps = PropsWithChildren<HTMLProps<HTMLAnchorElement> & {icon?: React.ReactNode@@ -24,7 +24,7 @@ const SuggestedAction = ({ icon, link, disabled, children, className, onClick, .{...props}><div className="relative h-4 w-4">{icon}</div>- <div className="system-sm-medium shrink grow basis-0">{children}</div>+ <div className="shrink grow basis-0 system-sm-medium">{children}</div><RiArrowRightUpLine className="h-3.5 w-3.5" /></a>)diff --git a/web/app/components/app/configuration/base/feature-panel/index.tsx b/web/app/components/app/configuration/base/feature-panel/index.tsxindex 77ee7bc8dd4..806de184129 100644--- a/web/app/components/app/configuration/base/feature-panel/index.tsx+++ b/web/app/components/app/configuration/base/feature-panel/index.tsx@@ -1,7 +1,7 @@'use client'import type { FC, ReactNode } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'type IFeaturePanelProps = {className?: string@@ -23,7 +23,7 @@ const FeaturePanel: FC<IFeaturePanelProps> = ({children,}) => {return (- <div className={cn('rounded-xl border-l-[0.5px] border-t-[0.5px] border-effects-highlight bg-background-section-burn pb-3', noBodySpacing && 'pb-0', className)}>+ <div className={cn('rounded-xl border-t-[0.5px] border-l-[0.5px] border-effects-highlight bg-background-section-burn pb-3', noBodySpacing && 'pb-0', className)}>{/* Header */}<div className={cn('px-3 pt-2', hasHeaderBottomBorder && 'border-b border-divider-subtle')} data-testid="feature-panel-header"><div className="flex h-8 items-center justify-between">diff --git a/web/app/components/app/configuration/base/operation-btn/index.tsx b/web/app/components/app/configuration/base/operation-btn/index.tsxindex e3bdfd01ba4..52b2be6494f 100644--- a/web/app/components/app/configuration/base/operation-btn/index.tsx+++ b/web/app/components/app/configuration/base/operation-btn/index.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {RiAddLine,RiEditLine,@@ -7,7 +8,6 @@ import {import { noop } from 'es-toolkit/function'import * as React from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'type IOperationBtnProps = {className?: string@@ -30,7 +30,7 @@ const OperationBtn: FC<IOperationBtnProps> = ({const { t } = useTranslation()return (<div- className={cn('flex h-7 cursor-pointer select-none items-center space-x-1 rounded-md px-3 text-text-secondary hover:bg-state-base-hover', className)}+ className={cn('flex h-7 cursor-pointer items-center space-x-1 rounded-md px-3 text-text-secondary select-none hover:bg-state-base-hover', className)}onClick={onClick}><div>diff --git a/web/app/components/app/configuration/base/warning-mask/has-not-set-api.tsx b/web/app/components/app/configuration/base/warning-mask/has-not-set-api.tsxindex 25587c5e581..6d234c6a9cd 100644--- a/web/app/components/app/configuration/base/warning-mask/has-not-set-api.tsx+++ b/web/app/components/app/configuration/base/warning-mask/has-not-set-api.tsx@@ -15,21 +15,21 @@ const HasNotSetAPI: FC<IHasNotSetAPIProps> = ({return (<div className="flex grow flex-col items-center justify-center pb-[120px]"><div className="flex w-full max-w-[400px] flex-col gap-2 px-4 py-4">- <div className="flex h-10 w-10 items-center justify-center radius-lg">- <div className="flex h-full w-full items-center justify-center overflow-hidden radius-lg border-[0.5px] border-components-card-border bg-components-card-bg p-1 shadow-lg backdrop-blur-[5px]">+ <div className="flex h-10 w-10 items-center justify-center rounded-[10px]">+ <div className="flex h-full w-full items-center justify-center overflow-hidden rounded-[10px] border-[0.5px] border-components-card-border bg-components-card-bg p-1 shadow-lg backdrop-blur-[5px]"><span className="i-ri-brain-2-line h-5 w-5 text-text-tertiary" /></div></div><div className="flex flex-col gap-1">- <div className="text-text-secondary system-md-semibold">{t('noModelProviderConfigured', { ns: 'appDebug' })}</div>- <div className="text-text-tertiary system-xs-regular">{t('noModelProviderConfiguredTip', { ns: 'appDebug' })}</div>+ <div className="system-md-semibold text-text-secondary">{t('noModelProviderConfigured', { ns: 'appDebug' })}</div>+ <div className="system-xs-regular text-text-tertiary">{t('noModelProviderConfiguredTip', { ns: 'appDebug' })}</div></div><buttontype="button"className="flex w-fit items-center gap-1 rounded-lg border-[0.5px] border-components-button-secondary-border bg-components-button-secondary-bg px-3 py-2 shadow-xs backdrop-blur-[5px]"onClick={onSetting}>- <span className="text-components-button-secondary-accent-text system-sm-medium">{t('manageModels', { ns: 'appDebug' })}</span>+ <span className="system-sm-medium text-components-button-secondary-accent-text">{t('manageModels', { ns: 'appDebug' })}</span><span className="i-ri-arrow-right-line h-4 w-4 text-components-button-secondary-accent-text" /></button></div>diff --git a/web/app/components/app/configuration/config-prompt/advanced-prompt-input.tsx b/web/app/components/app/configuration/config-prompt/advanced-prompt-input.tsxindex 2cd33759f82..2783f66c3f3 100644--- a/web/app/components/app/configuration/config-prompt/advanced-prompt-input.tsx+++ b/web/app/components/app/configuration/config-prompt/advanced-prompt-input.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { ExternalDataTool } from '@/models/common'import type { PromptRole, PromptVariable } from '@/models/debug'+import { cn } from '@langgenius/dify-ui/cn'import {RiDeleteBinLine,RiErrorWarningFill,@@ -30,7 +31,6 @@ import ConfigContext from '@/context/debug-configuration'import { useEventEmitterContextContext } from '@/context/event-emitter'import { useModalContext } from '@/context/modal-context'import { AppModeEnum } from '@/types/app'-import { cn } from '@/utils/classnames'import { getNewVar, getVars } from '@/utils/var'import ConfirmAddVar from './confirm-add-var'import MessageTypeSelector from './message-type-selector'diff --git a/web/app/components/app/configuration/config-prompt/message-type-selector.tsx b/web/app/components/app/configuration/config-prompt/message-type-selector.tsxindex 0b404eea90f..41e16abe92c 100644--- a/web/app/components/app/configuration/config-prompt/message-type-selector.tsx+++ b/web/app/components/app/configuration/config-prompt/message-type-selector.tsx@@ -1,10 +1,10 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { useBoolean, useClickAway } from 'ahooks'import * as React from 'react'import { ChevronSelectorVertical } from '@/app/components/base/icons/src/vender/line/arrows'import { PromptRole } from '@/models/debug'-import { cn } from '@/utils/classnames'type Props = {value: PromptRole@@ -25,10 +25,10 @@ const MessageTypeSelector: FC<Props> = ({<div className="relative left-[-8px]" ref={ref}><divonClick={toggleShow}- className={cn(showOption && 'bg-indigo-100', 'flex h-7 cursor-pointer items-center space-x-0.5 rounded-lg pl-1.5 pr-1 text-indigo-800')}+ className={cn(showOption && 'bg-indigo-100', 'flex h-7 cursor-pointer items-center space-x-0.5 rounded-lg pr-1 pl-1.5 text-indigo-800')}><div className="text-sm font-semibold uppercase">{value}</div>- <ChevronSelectorVertical className="h-3 w-3 " />+ <ChevronSelectorVertical className="h-3 w-3" /></div>{showOption && (<div className="absolute top-[30px] z-10 rounded-lg border border-components-panel-border bg-components-panel-bg p-1 shadow-lg">@@ -39,7 +39,7 @@ const MessageTypeSelector: FC<Props> = ({setHide()onChange(type)}}- className="flex h-9 min-w-[44px] cursor-pointer items-center rounded-lg px-3 text-sm font-medium uppercase text-text-secondary hover:bg-state-base-hover"+ className="flex h-9 min-w-[44px] cursor-pointer items-center rounded-lg px-3 text-sm font-medium text-text-secondary uppercase hover:bg-state-base-hover">{type}</div>diff --git a/web/app/components/app/configuration/config-prompt/prompt-editor-height-resize-wrap.tsx b/web/app/components/app/configuration/config-prompt/prompt-editor-height-resize-wrap.tsxindex 0320169676c..ac8029a2e7d 100644--- a/web/app/components/app/configuration/config-prompt/prompt-editor-height-resize-wrap.tsx+++ b/web/app/components/app/configuration/config-prompt/prompt-editor-height-resize-wrap.tsx@@ -1,9 +1,9 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { useDebounceFn } from 'ahooks'import * as React from 'react'import { useCallback, useEffect, useState } from 'react'-import { cn } from '@/utils/classnames'type Props = {className?: stringdiff --git a/web/app/components/app/configuration/config-prompt/simple-prompt-input.tsx b/web/app/components/app/configuration/config-prompt/simple-prompt-input.tsxindex da1949af603..0f6d2b94a67 100644--- a/web/app/components/app/configuration/config-prompt/simple-prompt-input.tsx+++ b/web/app/components/app/configuration/config-prompt/simple-prompt-input.tsx@@ -3,6 +3,7 @@ import type { FC } from 'react'import type { ExternalDataTool } from '@/models/common'import type { PromptVariable } from '@/models/debug'import type { GenRes } from '@/service/debug'+import { cn } from '@langgenius/dify-ui/cn'import { useBoolean } from 'ahooks'import { noop } from 'es-toolkit/function'import { produce } from 'immer'@@ -28,7 +29,6 @@ import { useEventEmitterContextContext } from '@/context/event-emitter'import { useModalContext } from '@/context/modal-context'import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'import { AppModeEnum } from '@/types/app'-import { cn } from '@/utils/classnames'import { getNewVar, getVars } from '@/utils/var'import ConfirmAddVar from './confirm-add-var'import PromptEditorHeightResizeWrap from './prompt-editor-height-resize-wrap'@@ -179,14 +179,14 @@ const Prompt: FC<ISimplePromptInput> = ({<div className={cn('relative rounded-xl bg-linear-to-r from-components-input-border-active-prompt-1 to-components-input-border-active-prompt-2 p-0.5 shadow-xs')}><div className="rounded-xl bg-background-section-burn">{!noTitle && (- <div className="flex h-11 items-center justify-between pl-3 pr-2.5">+ <div className="flex h-11 items-center justify-between pr-2.5 pl-3"><div className="flex items-center space-x-1">- <div className="h2 text-text-secondary system-sm-semibold-uppercase">{mode !== AppModeEnum.COMPLETION ? t('chatSubTitle', { ns: 'appDebug' }) : t('completionSubTitle', { ns: 'appDebug' })}</div>+ <div className="system-sm-semibold-uppercase text-text-secondary">{mode !== AppModeEnum.COMPLETION ? t('chatSubTitle', { ns: 'appDebug' }) : t('completionSubTitle', { ns: 'appDebug' })}</div>{!readonly && (<Tooltip><TooltipTriggerrender={(- <span className="i-ri-question-line ml-1 h-4 w-4 shrink-0 text-text-quaternary" />+ <span className="ml-1 i-ri-question-line h-4 w-4 shrink-0 text-text-quaternary" />)}/><TooltipContent>diff --git a/web/app/components/app/configuration/config-var/config-modal/field.tsx b/web/app/components/app/configuration/config-var/config-modal/field.tsxindex f9ef303252b..6ed837812bc 100644--- a/web/app/components/app/configuration/config-var/config-modal/field.tsx+++ b/web/app/components/app/configuration/config-var/config-modal/field.tsx@@ -1,8 +1,8 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'type Props = {className?: string@@ -20,10 +20,10 @@ const Field: FC<Props> = ({const { t } = useTranslation()return (<div className={cn(className)}>- <div className="leading-8! text-text-secondary system-sm-semibold">+ <div className="system-sm-semibold leading-8! text-text-secondary">{title}{isOptional && (- <span className="ml-1 text-text-tertiary system-xs-regular">+ <span className="ml-1 system-xs-regular text-text-tertiary">({t('variableConfig.optional', { ns: 'appDebug' })})diff --git a/web/app/components/app/configuration/config-var/config-modal/form-fields.tsx b/web/app/components/app/configuration/config-var/config-modal/form-fields.tsxindex c2a02f47100..fa318ae35da 100644--- a/web/app/components/app/configuration/config-var/config-modal/form-fields.tsx+++ b/web/app/components/app/configuration/config-var/config-modal/form-fields.tsx@@ -206,7 +206,7 @@ const ConfigModalFormFields: FC<ConfigModalFormFieldsProps> = ({value={jsonSchemaStr}onChange={onJSONSchemaChange}noWrapper- className="h-[80px] overflow-y-auto radius-lg bg-components-input-bg-normal p-1"+ className="h-[80px] overflow-y-auto rounded-[10px] bg-components-input-bg-normal p-1"placeholder={<div className="whitespace-pre">{jsonConfigPlaceHolder}</div>}/></Field>diff --git a/web/app/components/app/configuration/config-var/config-modal/type-select.tsx b/web/app/components/app/configuration/config-var/config-modal/type-select.tsxindex 00720b0579b..5fd7c88b829 100644--- a/web/app/components/app/configuration/config-var/config-modal/type-select.tsx+++ b/web/app/components/app/configuration/config-var/config-modal/type-select.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { InputVarType } from '@/app/components/workflow/types'import { ChevronDownIcon } from '@heroicons/react/20/solid'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useState } from 'react'import Badge from '@/app/components/base/badge'@@ -12,7 +13,6 @@ import {} from '@/app/components/base/portal-to-follow-elem'import InputVarTypeIcon from '@/app/components/workflow/nodes/_base/components/input-var-type-icon'import { inputVarTypeToVarType } from '@/app/components/workflow/nodes/_base/components/variable/utils'-import { cn } from '@/utils/classnames'export type Item = {value: InputVarTypediff --git a/web/app/components/app/configuration/config-var/config-select/index.tsx b/web/app/components/app/configuration/config-var/config-select/index.tsxindex 6a5b12c417c..24bc3b4a061 100644--- a/web/app/components/app/configuration/config-var/config-select/index.tsx+++ b/web/app/components/app/configuration/config-var/config-select/index.tsx@@ -1,11 +1,11 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiAddLine, RiDeleteBinLine, RiDraggable } from '@remixicon/react'import * as React from 'react'import { useState } from 'react'import { useTranslation } from 'react-i18next'import { ReactSortable } from 'react-sortablejs'-import { cn } from '@/utils/classnames'export type Options = string[]type IConfigSelectProps = {@@ -63,13 +63,13 @@ const ConfigSelect: FC<IConfigSelectProps> = ({return item}))}}- className="h-9 w-full grow cursor-pointer overflow-x-auto rounded-lg border-0 bg-transparent pl-1.5 pr-8 text-sm leading-9 text-text-secondary focus:outline-hidden"+ className="h-9 w-full grow cursor-pointer overflow-x-auto rounded-lg border-0 bg-transparent pr-8 pl-1.5 text-sm leading-9 text-text-secondary focus:outline-hidden"onFocus={() => setFocusID(index)}onBlur={() => setFocusID(null)}/><divrole="button"- className="absolute right-1.5 top-1/2 block translate-y-[-50%] cursor-pointer rounded-md p-1 text-text-tertiary hover:bg-state-destructive-hover hover:text-text-destructive"+ className="absolute top-1/2 right-1.5 block translate-y-[-50%] cursor-pointer rounded-md p-1 text-text-tertiary hover:bg-state-destructive-hover hover:text-text-destructive"onClick={() => {onChange(options.filter((_, i) => index !== i))setDeletingID(null)@@ -87,7 +87,7 @@ const ConfigSelect: FC<IConfigSelectProps> = ({<divonClick={() => { onChange([...options, '']) }}- className="mt-1 flex h-9 cursor-pointer items-center gap-2 rounded-lg bg-components-button-tertiary-bg px-3 text-components-button-tertiary-text hover:bg-components-button-tertiary-bg-hover"+ className="mt-1 flex h-9 cursor-pointer items-center gap-2 rounded-lg bg-components-button-tertiary-bg px-3 text-components-button-tertiary-text hover:bg-components-button-tertiary-bg-hover"><RiAddLine className="h-4 w-4" /><div className="system-sm-medium text-[13px]">{t('variableConfig.addOption', { ns: 'appDebug' })}</div>diff --git a/web/app/components/app/configuration/config-var/index.tsx b/web/app/components/app/configuration/config-var/index.tsxindex 1c25d06f107..951680c0357 100644--- a/web/app/components/app/configuration/config-var/index.tsx+++ b/web/app/components/app/configuration/config-var/index.tsx@@ -4,6 +4,7 @@ import type { InputVar } from '@/app/components/workflow/types'import type { ExternalDataTool } from '@/models/common'import type { PromptVariable } from '@/models/debug'import type { I18nKeysByPrefix } from '@/types/i18n'+import { cn } from '@langgenius/dify-ui/cn'import { useBoolean } from 'ahooks'import { produce } from 'immer'import * as React from 'react'@@ -27,7 +28,6 @@ import ConfigContext from '@/context/debug-configuration'import { useEventEmitterContextContext } from '@/context/event-emitter'import { useModalContext } from '@/context/modal-context'import { AppModeEnum } from '@/types/app'-import { cn } from '@/utils/classnames'import { getNewVar, hasDuplicateStr } from '@/utils/var'import Panel from '../base/feature-panel'import EditModal from './config-modal'diff --git a/web/app/components/app/configuration/config-var/select-type-item/index.tsx b/web/app/components/app/configuration/config-var/select-type-item/index.tsxindex 7385dfd4c8c..d65f5fa1747 100644--- a/web/app/components/app/configuration/config-var/select-type-item/index.tsx+++ b/web/app/components/app/configuration/config-var/select-type-item/index.tsx@@ -2,10 +2,10 @@import type { FC } from 'react'import type { InputVarType } from '@/app/components/workflow/types'import type { I18nKeysByPrefix } from '@/types/i18n'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import InputVarTypeIcon from '@/app/components/workflow/nodes/_base/components/input-var-type-icon'-import { cn } from '@/utils/classnames'type ISelectTypeItemProps = {type: InputVarType@@ -33,7 +33,7 @@ const SelectTypeItem: FC<ISelectTypeItemProps> = ({<divclassName={cn('flex h-[58px] flex-col items-center justify-center space-y-1 rounded-lg border border-components-option-card-option-border bg-components-option-card-option-bg text-text-secondary',- selected ? 'system-xs-medium border-[1.5px] border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg shadow-xs' : ' system-xs-regular cursor-pointer hover:border-components-option-card-option-border-hover hover:bg-components-option-card-option-bg-hover hover:shadow-xs',+ selected ? 'border-[1.5px] border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg system-xs-medium shadow-xs' : 'cursor-pointer system-xs-regular hover:border-components-option-card-option-border-hover hover:bg-components-option-card-option-bg-hover hover:shadow-xs',)}onClick={onClick}>diff --git a/web/app/components/app/configuration/config-var/var-item.tsx b/web/app/components/app/configuration/config-var/var-item.tsxindex b26249dac8c..80c0bf6ac66 100644--- a/web/app/components/app/configuration/config-var/var-item.tsx+++ b/web/app/components/app/configuration/config-var/var-item.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { IInputTypeIconProps } from './input-type-icon'+import { cn } from '@langgenius/dify-ui/cn'import {RiDeleteBinLine,RiDraggable,@@ -10,7 +11,6 @@ import * as React from 'react'import { useState } from 'react'import Badge from '@/app/components/base/badge'import { BracketsX as VarIcon } from '@/app/components/base/icons/src/vender/line/development'-import { cn } from '@/utils/classnames'import IconTypeIcon from './input-type-icon'type ItemProps = {@@ -39,22 +39,22 @@ const VarItem: FC<ItemProps> = ({const [isDeleting, setIsDeleting] = useState(false)return (- <div className={cn('group relative mb-1 flex h-[34px] w-full items-center rounded-lg border-[0.5px] border-components-panel-border-subtle bg-components-panel-on-panel-item-bg pl-2.5 pr-3 shadow-xs last-of-type:mb-0 hover:bg-components-panel-on-panel-item-bg-hover hover:shadow-sm', isDeleting && 'border-state-destructive-border hover:bg-state-destructive-hover', readonly && 'cursor-not-allowed', className)}>+ <div className={cn('group relative mb-1 flex h-[34px] w-full items-center rounded-lg border-[0.5px] border-components-panel-border-subtle bg-components-panel-on-panel-item-bg pr-3 pl-2.5 shadow-xs last-of-type:mb-0 hover:bg-components-panel-on-panel-item-bg-hover hover:shadow-sm', isDeleting && 'border-state-destructive-border hover:bg-state-destructive-hover', readonly && 'cursor-not-allowed', className)}><VarIcon className={cn('mr-1 h-4 w-4 shrink-0 text-text-accent', canDrag && 'group-hover:opacity-0')} />{canDrag && (- <RiDraggable className="absolute left-3 top-3 hidden h-3 w-3 cursor-pointer text-text-tertiary group-hover:block" />+ <RiDraggable className="absolute top-3 left-3 hidden h-3 w-3 cursor-pointer text-text-tertiary group-hover:block" />)}<div className="flex w-0 grow items-center"><div className="truncate" title={`${name} · ${label}`}><span className="system-sm-medium text-text-secondary">{name}</span>- <span className="system-xs-regular px-1 text-text-quaternary">·</span>+ <span className="px-1 system-xs-regular text-text-quaternary">·</span><span className="system-xs-medium text-text-tertiary">{label}</span></div></div><div className="shrink-0"><div className={cn('flex items-center', !readonly && 'group-hover:hidden')}>{required && <Badge text="required" />}- <span className="system-xs-regular pl-2 pr-1 text-text-tertiary">{type}</span>+ <span className="pr-1 pl-2 system-xs-regular text-text-tertiary">{type}</span><IconTypeIcon type={type as IInputTypeIconProps['type']} className="text-text-tertiary" /></div><div className={cn('hidden items-center justify-end rounded-lg', !readonly && 'group-hover:flex')}>@@ -66,7 +66,7 @@ const VarItem: FC<ItemProps> = ({</div><divdata-testid="var-item-delete-btn"- className="flex h-6 w-6 cursor-pointer items-center justify-center text-text-tertiary hover:text-text-destructive"+ className="flex h-6 w-6 cursor-pointer items-center justify-center text-text-tertiary hover:text-text-destructive"onClick={onRemove}onMouseOver={() => setIsDeleting(true)}onMouseLeave={() => setIsDeleting(false)}diff --git a/web/app/components/app/configuration/config-vision/index.tsx b/web/app/components/app/configuration/config-vision/index.tsxindex e04be8597b8..aec8d808c18 100644--- a/web/app/components/app/configuration/config-vision/index.tsx+++ b/web/app/components/app/configuration/config-vision/index.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { noop } from 'es-toolkit/function'import { produce } from 'immer'import * as React from 'react'@@ -16,7 +17,6 @@ import { SupportUploadFileTypes } from '@/app/components/workflow/types'// import OptionCard from '@/app/components/workflow/nodes/_base/components/option-card'import ConfigContext from '@/context/debug-configuration'import { Resolution } from '@/types/app'-import { cn } from '@/utils/classnames'import ParamConfig from './param-config'const ConfigVision: FC = () => {@@ -62,14 +62,14 @@ const ConfigVision: FC = () => {return nullreturn (- <div className="mt-2 flex items-center gap-2 rounded-xl border-l-[0.5px] border-t-[0.5px] border-effects-highlight bg-background-section-burn p-2">+ <div className="mt-2 flex items-center gap-2 rounded-xl border-t-[0.5px] border-l-[0.5px] border-effects-highlight bg-background-section-burn p-2"><div className="shrink-0 p-1"><div className="rounded-lg border-[0.5px] border-divider-subtle bg-util-colors-indigo-indigo-600 p-1 shadow-xs"><Vision className="h-4 w-4 text-text-primary-on-surface" /></div></div><div className="flex grow items-center">- <div className="system-sm-semibold mr-1 text-text-secondary">{t('vision.name', { ns: 'appDebug' })}</div>+ <div className="mr-1 system-sm-semibold text-text-secondary">{t('vision.name', { ns: 'appDebug' })}</div><TooltippopupContent={(<div className="w-[180px]">@@ -100,7 +100,7 @@ const ConfigVision: FC = () => {selected={file?.image?.detail === Resolution.high}onSelect={noop}className={cn(- 'cursor-not-allowed rounded-lg px-3 hover:shadow-none',+ 'cursor-not-allowed rounded-lg px-3 hover:shadow-none',file?.image?.detail !== Resolution.high && 'hover:border-components-option-card-option-border',)}/>@@ -109,7 +109,7 @@ const ConfigVision: FC = () => {selected={file?.image?.detail === Resolution.low}onSelect={noop}className={cn(- 'cursor-not-allowed rounded-lg px-3 hover:shadow-none',+ 'cursor-not-allowed rounded-lg px-3 hover:shadow-none',file?.image?.detail !== Resolution.low && 'hover:border-components-option-card-option-border',)}/>@@ -119,7 +119,7 @@ const ConfigVision: FC = () => {: (<><ParamConfig />- <div className="ml-1 mr-3 h-3.5 w-px bg-divider-regular"></div>+ <div className="mr-3 ml-1 h-3.5 w-px bg-divider-regular"></div><Switchvalue={isImageEnabled}onChange={handleChange}diff --git a/web/app/components/app/configuration/config-vision/param-config.tsx b/web/app/components/app/configuration/config-vision/param-config.tsxindex 887ebed2a0d..ded130ba7af 100644--- a/web/app/components/app/configuration/config-vision/param-config.tsx+++ b/web/app/components/app/configuration/config-vision/param-config.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiSettings2Line } from '@remixicon/react'import { memo, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -9,7 +10,6 @@ import {PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import ParamConfigContent from './param-config-content'const ParamsConfig: FC = () => {diff --git a/web/app/components/app/configuration/config/agent/agent-setting/item-panel.tsx b/web/app/components/app/configuration/config/agent/agent-setting/item-panel.tsxindex 92d32396084..56f1863ec15 100644--- a/web/app/components/app/configuration/config/agent/agent-setting/item-panel.tsx+++ b/web/app/components/app/configuration/config/agent/agent-setting/item-panel.tsx@@ -1,8 +1,8 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import Tooltip from '@/app/components/base/tooltip'-import { cn } from '@/utils/classnames'type Props = {className?: string@@ -23,7 +23,7 @@ const ItemPanel: FC<Props> = ({<div className={cn(className, 'flex h-12 items-center justify-between rounded-lg bg-background-section-burn px-3')}><div className="flex items-center">{icon}- <div className="ml-3 mr-1 text-sm font-semibold leading-6 text-text-secondary">{name}</div>+ <div className="mr-1 ml-3 text-sm leading-6 font-semibold text-text-secondary">{name}</div><TooltippopupContent={(<div className="w-[180px]">diff --git a/web/app/components/app/configuration/config/agent/agent-tools/index.tsx b/web/app/components/app/configuration/config/agent/agent-tools/index.tsxindex 16212afa735..87546b94b49 100644--- a/web/app/components/app/configuration/config/agent/agent-tools/index.tsx+++ b/web/app/components/app/configuration/config/agent/agent-tools/index.tsx@@ -4,6 +4,7 @@ import type { Collection } from '@/app/components/tools/types'import type { ToolDefaultValue, ToolValue } from '@/app/components/workflow/block-selector/types'import type { ToolWithProvider } from '@/app/components/workflow/types'import type { AgentTool } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import {RiDeleteBinLine,RiEqualizer2Line,@@ -32,7 +33,6 @@ import ConfigContext from '@/context/debug-configuration'import { useMittContextSelector } from '@/context/mitt-context'import { useAllBuiltInTools, useAllCustomTools, useAllMCPTools, useAllWorkflowTools } from '@/service/use-tools'import { canFindTool } from '@/utils'-import { cn } from '@/utils/classnames'import { useFormattingChangedDispatcher } from '../../../debug/hooks'import SettingBuiltInTool from './setting-built-in-tool'diff --git a/web/app/components/app/configuration/config/agent/agent-tools/setting-built-in-tool.tsx b/web/app/components/app/configuration/config/agent/agent-tools/setting-built-in-tool.tsxindex 757465b5ee1..ae9ec962c76 100644--- a/web/app/components/app/configuration/config/agent/agent-tools/setting-built-in-tool.tsx+++ b/web/app/components/app/configuration/config/agent/agent-tools/setting-built-in-tool.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { Collection, Tool } from '@/app/components/tools/types'import type { ToolWithProvider } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowLeftLine,RiCloseLine,@@ -28,7 +29,6 @@ import { toolParametersToFormSchemas } from '@/app/components/tools/utils/to-forimport { useLocale } from '@/context/i18n'import { getLanguage } from '@/i18n-config/language'import { fetchBuiltInToolList, fetchCustomToolList, fetchModelToolList, fetchWorkflowToolList } from '@/service/tools'-import { cn } from '@/utils/classnames'type Props = {showBackButton?: booleandiff --git a/web/app/components/app/configuration/config/assistant-type-picker/index.tsx b/web/app/components/app/configuration/config/assistant-type-picker/index.tsxindex 27adbf253ec..df0baa2f360 100644--- a/web/app/components/app/configuration/config/assistant-type-picker/index.tsx+++ b/web/app/components/app/configuration/config/assistant-type-picker/index.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { AgentConfig } from '@/models/debug'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine } from '@remixicon/react'import * as React from 'react'import { useState } from 'react'@@ -15,7 +16,6 @@ import {PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'import Radio from '@/app/components/base/radio/ui'-import { cn } from '@/utils/classnames'import AgentSetting from '../agent/agent-setting'type Props = {@@ -45,15 +45,15 @@ const SelectItem: FC<ItemProps> = ({ text, value, Icon, isChecked, description,onClick={() => !disabled && onClick(value)}><div className="flex items-center justify-between">- <div className="flex items-center ">+ <div className="flex items-center"><div className="mr-3 rounded-lg bg-indigo-50 p-1"><Icon className="h-4 w-4 text-indigo-600" /></div>- <div className="text-sm font-medium leading-5 text-gray-900">{text}</div>+ <div className="text-sm leading-5 font-medium text-gray-900">{text}</div></div><Radio isChecked={isChecked} /></div>- <div className="ml-9 text-xs font-normal leading-[18px] text-gray-500">{description}</div>+ <div className="ml-9 text-xs leading-[18px] font-normal text-gray-500">{description}</div></div>)}@@ -84,7 +84,7 @@ const AssistantTypePicker: FC<Props> = ({<><div className="my-4 h-px bg-gray-100"></div><div- className={cn(isAgent ? 'group cursor-pointer hover:bg-primary-50' : 'opacity-30', 'rounded-xl bg-gray-50 p-3 pr-4 ')}+ className={cn(isAgent ? 'group cursor-pointer hover:bg-primary-50' : 'opacity-30', 'rounded-xl bg-gray-50 p-3 pr-4')}onClick={() => {if (isAgent) {setOpen(false)@@ -93,15 +93,15 @@ const AssistantTypePicker: FC<Props> = ({}}><div className="flex items-center justify-between">- <div className="flex items-center ">+ <div className="flex items-center"><div className="mr-3 rounded-lg bg-gray-200 p-1 group-hover:bg-white"><Settings04 className="h-4 w-4 text-gray-600 group-hover:text-[#155EEF]" /></div>- <div className="text-sm font-medium leading-5 text-gray-900 group-hover:text-[#155EEF]">{t('agent.setting.name', { ns: 'appDebug' })}</div>+ <div className="text-sm leading-5 font-medium text-gray-900 group-hover:text-[#155EEF]">{t('agent.setting.name', { ns: 'appDebug' })}</div></div><ArrowUpRight className="h-4 w-4 text-gray-500 group-hover:text-[#155EEF]" /></div>- <div className="ml-9 text-xs font-normal leading-[18px] text-gray-500">{t('agent.setting.description', { ns: 'appDebug' })}</div>+ <div className="ml-9 text-xs leading-[18px] font-normal text-gray-500">{t('agent.setting.description', { ns: 'appDebug' })}</div></div></>)@@ -117,7 +117,7 @@ const AssistantTypePicker: FC<Props> = ({}}><PortalToFollowElemTrigger onClick={() => setOpen(v => !v)}>- <div className={cn(open && 'bg-gray-50', 'flex h-8 cursor-pointer select-none items-center space-x-1 rounded-lg border border-black/5 px-3 text-indigo-600')}>+ <div className={cn(open && 'bg-gray-50', 'flex h-8 cursor-pointer items-center space-x-1 rounded-lg border border-black/5 px-3 text-indigo-600 select-none')}>{isAgent ? <BubbleText className="h-3 w-3" /> : <CuteRobot className="h-3 w-3" />}<div className="text-xs font-medium">{t(`assistantType.${isAgent ? 'agentAssistant' : 'chatAssistant'}.name`, { ns: 'appDebug' })}</div><RiArrowDownSLine className="h-3 w-3" />@@ -125,7 +125,7 @@ const AssistantTypePicker: FC<Props> = ({</PortalToFollowElemTrigger><PortalToFollowElemContent style={{ zIndex: 1000 }}><div className="relative left-0.5 w-[480px] rounded-xl border border-black/8 bg-white p-6 shadow-lg">- <div className="mb-2 text-sm font-semibold leading-5 text-gray-900">{t('assistantType.name', { ns: 'appDebug' })}</div>+ <div className="mb-2 text-sm leading-5 font-semibold text-gray-900">{t('assistantType.name', { ns: 'appDebug' })}</div><SelectItemIcon={BubbleText}value="chat"diff --git a/web/app/components/app/configuration/config/automatic/idea-output.tsx b/web/app/components/app/configuration/config/automatic/idea-output.tsxindex 4972708d091..16be6d91767 100644--- a/web/app/components/app/configuration/config/automatic/idea-output.tsx+++ b/web/app/components/app/configuration/config/automatic/idea-output.tsx@@ -1,11 +1,11 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { useBoolean } from 'ahooks'import * as React from 'react'import { useTranslation } from 'react-i18next'import { ArrowDownRoundFill } from '@/app/components/base/icons/src/vender/solid/general'import Textarea from '@/app/components/base/textarea'-import { cn } from '@/utils/classnames'const i18nPrefix = 'generate'@@ -27,10 +27,10 @@ const IdeaOutput: FC<Props> = ({return (<div className="mt-4 text-[0px]"><div- className="mb-1.5 flex cursor-pointer items-center text-sm font-medium leading-5 text-text-primary"+ className="mb-1.5 flex cursor-pointer items-center text-sm leading-5 font-medium text-text-primary"onClick={toggleFoldIdeaOutput}>- <div className="system-sm-semibold-uppercase mr-1 text-text-secondary">{t(`${i18nPrefix}.idealOutput`, { ns: 'appDebug' })}</div>+ <div className="mr-1 system-sm-semibold-uppercase text-text-secondary">{t(`${i18nPrefix}.idealOutput`, { ns: 'appDebug' })}</div><div className="system-xs-regular text-text-tertiary">({t(`${i18nPrefix}.optional`, { ns: 'appDebug' })}diff --git a/web/app/components/app/configuration/config/automatic/instruction-editor.tsx b/web/app/components/app/configuration/config/automatic/instruction-editor.tsxindex 94a8d2480a0..5596b335df1 100644--- a/web/app/components/app/configuration/config/automatic/instruction-editor.tsx+++ b/web/app/components/app/configuration/config/automatic/instruction-editor.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { GeneratorType } from './types'import type { Node, NodeOutPutVar, ValueSelector } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import PromptEditor from '@/app/components/base/prompt-editor'@@ -9,7 +10,6 @@ import { PROMPT_EDITOR_INSERT_QUICKLY } from '@/app/components/base/prompt-editoimport { Type } from '@/app/components/workflow/nodes/llm/types'import { BlockEnum } from '@/app/components/workflow/types'import { useEventEmitterContextContext } from '@/context/event-emitter'-import { cn } from '@/utils/classnames'type Props = {editorKey: string@@ -45,7 +45,7 @@ const InstructionEditor: FC<Props> = ({const isCode = generatorType === 'code'const placeholder = isCode? (- <div className="system-sm-regular whitespace-break-spaces leading-6! text-text-placeholder">+ <div className="system-sm-regular leading-6! whitespace-break-spaces text-text-placeholder">{t(`${i18nPrefix}.codeGenInstructionPlaceHolderLine`, { ns: 'appDebug' })}</div>)@@ -67,7 +67,7 @@ const InstructionEditor: FC<Props> = ({return (<div className="relative"><PromptEditor- wrapperClassName="border border-components-input-bg-normal! bg-components-input-bg-normal hover:border-components-input-bg-hover! radius-lg px-4 pt-3"+ wrapperClassName="border border-components-input-bg-normal! bg-components-input-bg-normal hover:border-components-input-bg-hover! rounded-[10px] px-4 pt-3"key={editorKey}instanceId={editorKey}placeholder={placeholder}@@ -109,9 +109,9 @@ const InstructionEditor: FC<Props> = ({editableisSupportFileVar={false}/>- <div className="system-xs-regular absolute bottom-0 left-4 flex h-8 items-center space-x-0.5 text-components-input-text-placeholder">+ <div className="absolute bottom-0 left-4 flex h-8 items-center space-x-0.5 system-xs-regular text-components-input-text-placeholder"><span>{t('generate.press', { ns: 'appDebug' })}</span>- <span className="system-kbd flex h-4 w-3.5 items-center justify-center radius-xs bg-components-kbd-bg-gray text-text-placeholder">/</span>+ <span className="flex h-4 w-3.5 items-center justify-center rounded-sm bg-components-kbd-bg-gray system-kbd text-text-placeholder">/</span><span>{t('generate.to', { ns: 'appDebug' })}</span><span onClick={handleInsertVariable} className="ml-1! cursor-pointer hover:border-b hover:border-dotted hover:border-text-tertiary hover:text-text-tertiary">{t('generate.insertContext', { ns: 'appDebug' })}</span></div>diff --git a/web/app/components/app/configuration/config/automatic/prompt-toast.tsx b/web/app/components/app/configuration/config/automatic/prompt-toast.tsxindex cd99e8e999a..8a17e6b0ce2 100644--- a/web/app/components/app/configuration/config/automatic/prompt-toast.tsx+++ b/web/app/components/app/configuration/config/automatic/prompt-toast.tsx@@ -1,9 +1,9 @@+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine, RiSparklingFill } from '@remixicon/react'import { useBoolean } from 'ahooks'import * as React from 'react'import { useTranslation } from 'react-i18next'import { Markdown } from '@/app/components/base/markdown'-import { cn } from '@/utils/classnames'import s from './style.module.css'type Props = {@@ -43,7 +43,7 @@ const PromptToast = ({<RiArrowDownSLine className={cn('size-4 cursor-pointer text-text-tertiary', isFold && '-rotate-90')} onClick={toggleFold} /></div>{!isFold && (- <div className="pb-4 pr-4">+ <div className="pr-4 pb-4"><Markdown className="text-sm!" content={message} /></div>)}diff --git a/web/app/components/app/configuration/config/automatic/version-selector.tsx b/web/app/components/app/configuration/config/automatic/version-selector.tsxindex c345410c341..25846e9b546 100644--- a/web/app/components/app/configuration/config/automatic/version-selector.tsx+++ b/web/app/components/app/configuration/config/automatic/version-selector.tsx@@ -1,10 +1,10 @@+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine, RiCheckLine } from '@remixicon/react'import { useBoolean } from 'ahooks'import * as React from 'react'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'import { PortalToFollowElem, PortalToFollowElemContent, PortalToFollowElemTrigger } from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'type VersionSelectorProps = {versionLen: number@@ -52,14 +52,14 @@ const VersionSelector: React.FC<VersionSelectorProps> = ({ versionLen, value, onasChild>- <div className={cn('system-xs-medium flex items-center text-text-tertiary', isOpen && 'text-text-secondary', moreThanOneVersion && 'cursor-pointer')}>+ <div className={cn('flex items-center system-xs-medium text-text-tertiary', isOpen && 'text-text-secondary', moreThanOneVersion && 'cursor-pointer')}><div>{t('generate.version', { ns: 'appDebug' })}{' '}{value + 1}{isLatest && ` · ${t('generate.latest', { ns: 'appDebug' })}`}</div>- {moreThanOneVersion && <RiArrowDownSLine className="size-3 " />}+ {moreThanOneVersion && <RiArrowDownSLine className="size-3" />}</div></PortalToFollowElemTrigger><PortalToFollowElemContent className={cn(@@ -71,7 +71,7 @@ const VersionSelector: React.FC<VersionSelectorProps> = ({ versionLen, value, on'w-[208px] rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur p-1 shadow-lg',)}>- <div className={cn('system-xs-medium-uppercase flex h-[22px] items-center px-3 pl-3 text-text-tertiary')}>+ <div className={cn('flex h-[22px] items-center px-3 pl-3 system-xs-medium-uppercase text-text-tertiary')}>{t('generate.versions', { ns: 'appDebug' })}</div>{@@ -79,7 +79,7 @@ const VersionSelector: React.FC<VersionSelectorProps> = ({ versionLen, value, on<divkey={option.value}className={cn(- 'system-sm-medium flex h-7 cursor-pointer items-center rounded-lg px-2 text-text-secondary hover:bg-state-base-hover',+ 'flex h-7 cursor-pointer items-center rounded-lg px-2 system-sm-medium text-text-secondary hover:bg-state-base-hover',)}title={option.label}onClick={() => {diff --git a/web/app/components/app/configuration/dataset-config/card-item/index.tsx b/web/app/components/app/configuration/dataset-config/card-item/index.tsxindex ac38c50e59c..8eb856feb39 100644--- a/web/app/components/app/configuration/dataset-config/card-item/index.tsx+++ b/web/app/components/app/configuration/dataset-config/card-item/index.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { DataSet } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import {RiDeleteBinLine,RiEditLine,@@ -14,7 +15,6 @@ import Badge from '@/app/components/base/badge'import Drawer from '@/app/components/base/drawer'import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'import { useKnowledge } from '@/hooks/use-knowledge'-import { cn } from '@/utils/classnames'import SettingsModal from '../settings-modal'type ItemProps = {@@ -68,7 +68,7 @@ const Item: FC<ItemProps> = ({background={iconInfo.icon_type === 'image' ? undefined : iconInfo.icon_background}imageUrl={iconInfo.icon_type === 'image' ? iconInfo.icon_url : undefined}/>- <div className="system-sm-medium w-0 grow truncate text-text-secondary" title={config.name}>{config.name}</div>+ <div className="w-0 grow truncate system-sm-medium text-text-secondary" title={config.name}>{config.name}</div></div><div className="ml-2 hidden shrink-0 items-center space-x-1 group-hover:flex">{diff --git a/web/app/components/app/configuration/dataset-config/context-var/index.tsx b/web/app/components/app/configuration/dataset-config/context-var/index.tsxindex 41b839681ba..634277c469f 100644--- a/web/app/components/app/configuration/dataset-config/context-var/index.tsx+++ b/web/app/components/app/configuration/dataset-config/context-var/index.tsx@@ -1,11 +1,11 @@'use client'import type { FC } from 'react'import type { Props } from './var-picker'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import { BracketsX } from '@/app/components/base/icons/src/vender/line/development'import Tooltip from '@/app/components/base/tooltip'-import { cn } from '@/utils/classnames'import VarPicker from './var-picker'const ContextVar: FC<Props> = (props) => {@@ -14,7 +14,7 @@ const ContextVar: FC<Props> = (props) => {const currItem = options.find(item => item.value === value)const notSetVar = !currItemreturn (- <div className={cn(notSetVar ? 'rounded-bl-xl rounded-br-xl border-[#FEF0C7] bg-[#FEF0C7]' : 'border-components-panel-border-subtle', 'flex h-12 items-center justify-between border-t px-3 ')}>+ <div className={cn(notSetVar ? 'rounded-br-xl rounded-bl-xl border-[#FEF0C7] bg-[#FEF0C7]' : 'border-components-panel-border-subtle', 'flex h-12 items-center justify-between border-t px-3')}><div className="flex shrink-0 items-center space-x-1"><div className="p-1"><BracketsX className="h-4 w-4 text-text-accent" />diff --git a/web/app/components/app/configuration/dataset-config/context-var/var-picker.tsx b/web/app/components/app/configuration/dataset-config/context-var/var-picker.tsxindex d5c8ef46820..d29b2e34dfe 100644--- a/web/app/components/app/configuration/dataset-config/context-var/var-picker.tsx+++ b/web/app/components/app/configuration/dataset-config/context-var/var-picker.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { IInputTypeIconProps } from '@/app/components/app/configuration/config-var/input-type-icon'import { ChevronDownIcon } from '@heroicons/react/24/outline'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useState } from 'react'import { useTranslation } from 'react-i18next'@@ -11,7 +12,6 @@ import {PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'type Option = { name: string, value: string, type: string }export type Props = {@@ -57,11 +57,11 @@ const VarPicker: FC<Props> = ({<PortalToFollowElemTrigger className={cn(triggerClassName)} onClick={() => setOpen(v => !v)}><div className={cn(className,- notSetVar ? 'border-[#FEDF89] bg-[#FFFCF5] text-[#DC6803]' : ' border-components-button-secondary-border text-text-accent hover:bg-components-button-secondary-bg',+ notSetVar ? 'border-[#FEDF89] bg-[#FFFCF5] text-[#DC6803]' : 'border-components-button-secondary-border text-text-accent hover:bg-components-button-secondary-bg',open ? 'bg-components-button-secondary-bg' : 'bg-transparent',`- flex h-8 cursor-pointer items-center justify-center space-x-1 rounded-lg border px-2 text-[13px]- font-medium shadow-xs+ flex h-8 cursor-pointer items-center justify-center space-x-1 rounded-lg border px-2 text-[13px]+ font-medium shadow-xs`,)}>@@ -82,7 +82,7 @@ const VarPicker: FC<Props> = ({<PortalToFollowElemContent style={{ zIndex: 1000 }}>{options.length > 0? (- <div className="max-h-[50vh] w-[240px] overflow-y-auto rounded-lg border border-components-panel-border bg-components-panel-bg p-1 shadow-lg">+ <div className="max-h-[50vh] w-[240px] overflow-y-auto rounded-lg border border-components-panel-border bg-components-panel-bg p-1 shadow-lg">{options.map(({ name, value, type }, index) => (<divkey={index}diff --git a/web/app/components/app/configuration/dataset-config/index.tsx b/web/app/components/app/configuration/dataset-config/index.tsxindex 6de77cad9eb..a89725419e1 100644--- a/web/app/components/app/configuration/dataset-config/index.tsx+++ b/web/app/components/app/configuration/dataset-config/index.tsx@@ -8,6 +8,7 @@ import type {MetadataFilteringModeEnum,} from '@/app/components/workflow/nodes/knowledge-retrieval/types'import type { DataSet } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { intersectionBy } from 'es-toolkit/compat'import { produce } from 'immer'import * as React from 'react'@@ -30,7 +31,6 @@ import {import { useSelector as useAppContextSelector } from '@/context/app-context'import ConfigContext from '@/context/debug-configuration'import { AppModeEnum } from '@/types/app'-import { cn } from '@/utils/classnames'import { hasEditPermissionForDataset } from '@/utils/permission'import FeaturePanel from '../base/feature-panel'import OperationBtn from '../base/operation-btn'@@ -291,7 +291,7 @@ const DatasetConfig: FC<Props> = ({ readonly, hideMetadataFilter }) => {): (<div className="mt-1 px-3 pb-3">- <div className="pb-1 pt-2 text-xs text-text-tertiary">{t('feature.dataSet.noData', { ns: 'appDebug' })}</div>+ <div className="pt-2 pb-1 text-xs text-text-tertiary">{t('feature.dataSet.noData', { ns: 'appDebug' })}</div></div>)}diff --git a/web/app/components/app/configuration/dataset-config/params-config/config-content.tsx b/web/app/components/app/configuration/dataset-config/params-config/config-content.tsxindex 00fa66c4268..47ece57eb05 100644--- a/web/app/components/app/configuration/dataset-config/params-config/config-content.tsx+++ b/web/app/components/app/configuration/dataset-config/params-config/config-content.tsx@@ -9,6 +9,7 @@ import type {import type {DatasetConfigs,} from '@/models/debug'+import { cn } from '@langgenius/dify-ui/cn'import { memo, useCallback, useEffect, useMemo } from 'react'import { useTranslation } from 'react-i18next'import Divider from '@/app/components/base/divider'@@ -24,7 +25,6 @@ import ModelSelector from '@/app/components/header/account-setting/model-provideimport { useSelectedDatasetsMode } from '@/app/components/workflow/nodes/knowledge-retrieval/hooks'import { RerankingModeEnum } from '@/models/datasets'import { RETRIEVE_TYPE } from '@/types/app'-import { cn } from '@/utils/classnames'import WeightedScore from './weighted-score'type Props = {@@ -188,14 +188,14 @@ const ConfigContent: FC<Props> = ({return (<div>- <div className="text-text-primary system-xl-semibold">{t('retrievalSettings', { ns: 'dataset' })}</div>- <div className="text-text-tertiary system-xs-regular">+ <div className="system-xl-semibold text-text-primary">{t('retrievalSettings', { ns: 'dataset' })}</div>+ <div className="system-xs-regular text-text-tertiary">{t('defaultRetrievalTip', { ns: 'dataset' })}</div>{type === RETRIEVE_TYPE.multiWay && (<><div className="my-2 flex flex-col items-center py-1">- <div className="mb-2 mr-2 shrink-0 text-text-secondary system-xs-semibold-uppercase">+ <div className="mr-2 mb-2 shrink-0 system-xs-semibold-uppercase text-text-secondary">{t('rerankSettings', { ns: 'dataset' })}</div><Divider bgStyle="gradient" className="m-0 h-px!" />@@ -203,21 +203,21 @@ const ConfigContent: FC<Props> = ({{selectedDatasetsMode.inconsistentEmbeddingModel&& (- <div className="mt-4 text-text-warning system-xs-medium">+ <div className="mt-4 system-xs-medium text-text-warning">{t('inconsistentEmbeddingModelTip', { ns: 'dataset' })}</div>)}{selectedDatasetsMode.mixtureInternalAndExternal && (- <div className="mt-4 text-text-warning system-xs-medium">+ <div className="mt-4 system-xs-medium text-text-warning">{t('mixtureInternalAndExternalTip', { ns: 'dataset' })}</div>)}{selectedDatasetsMode.allExternal && (- <div className="mt-4 text-text-warning system-xs-medium">+ <div className="mt-4 system-xs-medium text-text-warning">{t('allExternalTip', { ns: 'dataset' })}</div>)@@ -225,7 +225,7 @@ const ConfigContent: FC<Props> = ({{selectedDatasetsMode.mixtureHighQualityAndEconomic&& (- <div className="mt-4 text-text-warning system-xs-medium">+ <div className="mt-4 system-xs-medium text-text-warning">{t('mixtureHighQualityAndEconomicTip', { ns: 'dataset' })}</div>)@@ -238,7 +238,7 @@ const ConfigContent: FC<Props> = ({<divkey={option.value}className={cn(- 'flex h-8 w-[calc((100%-8px)/2)] cursor-pointer items-center justify-center rounded-lg border border-components-option-card-option-border bg-components-option-card-option-bg text-text-secondary system-sm-medium',+ 'flex h-8 w-[calc((100%-8px)/2)] cursor-pointer items-center justify-center rounded-lg border border-components-option-card-option-border bg-components-option-card-option-bg system-sm-medium text-text-secondary',selectedRerankMode === option.value && 'border-[1.5px] border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg text-text-primary',)}onClick={() => handleRerankModeChange(option.value)}@@ -272,7 +272,7 @@ const ConfigContent: FC<Props> = ({/>)}- <div className="ml-1 leading-[32px] text-text-secondary system-sm-semibold">{t('modelProvider.rerankModel.key', { ns: 'common' })}</div>+ <div className="ml-1 system-sm-semibold leading-[32px] text-text-secondary">{t('modelProvider.rerankModel.key', { ns: 'common' })}</div><TooltippopupContent={(<div className="w-[200px]">@@ -362,7 +362,7 @@ const ConfigContent: FC<Props> = ({{isInWorkflow && type === RETRIEVE_TYPE.oneWay && (<div className="mt-4"><div className="flex items-center space-x-0.5">- <div className="text-[13px] font-medium leading-[32px] text-text-primary">{t('modelProvider.systemReasoningModel.key', { ns: 'common' })}</div>+ <div className="text-[13px] leading-[32px] font-medium text-text-primary">{t('modelProvider.systemReasoningModel.key', { ns: 'common' })}</div><TooltippopupContent={t('modelProvider.systemReasoningModel.tip', { ns: 'common' })}/>diff --git a/web/app/components/app/configuration/dataset-config/params-config/index.tsx b/web/app/components/app/configuration/dataset-config/params-config/index.tsxindex 5c40afba9f8..ce78ad6e999 100644--- a/web/app/components/app/configuration/dataset-config/params-config/index.tsx+++ b/web/app/components/app/configuration/dataset-config/params-config/index.tsx@@ -1,6 +1,7 @@'use client'import type { DataSet } from '@/models/datasets'import type { DatasetConfigs } from '@/models/debug'+import { cn } from '@langgenius/dify-ui/cn'import { RiEqualizer2Line } from '@remixicon/react'import { memo, useEffect, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -16,7 +17,6 @@ import {import ConfigContext from '@/context/debug-configuration'import { RerankingModeEnum } from '@/models/datasets'import { RETRIEVE_TYPE } from '@/types/app'-import { cn } from '@/utils/classnames'import ConfigContent from './config-content'type ParamsConfigProps = {diff --git a/web/app/components/app/configuration/dataset-config/select-dataset/index.tsx b/web/app/components/app/configuration/dataset-config/select-dataset/index.tsxindex 21ed5134b00..ff371fc2df3 100644--- a/web/app/components/app/configuration/dataset-config/select-dataset/index.tsx+++ b/web/app/components/app/configuration/dataset-config/select-dataset/index.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { DataSet } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { useInfiniteScroll } from 'ahooks'import * as React from 'react'import { useMemo, useRef, useState } from 'react'@@ -15,7 +16,6 @@ import FeatureIcon from '@/app/components/header/account-setting/model-provider-import { useKnowledge } from '@/hooks/use-knowledge'import Link from '@/next/link'import { useInfiniteDatasets } from '@/service/knowledge/use-dataset'-import { cn } from '@/utils/classnames'type ISelectDataSetProps = {isShow: booleandiff --git a/web/app/components/app/configuration/dataset-config/settings-modal/index.tsx b/web/app/components/app/configuration/dataset-config/settings-modal/index.tsxindex dc8823cacb4..872d0813079 100644--- a/web/app/components/app/configuration/dataset-config/settings-modal/index.tsx+++ b/web/app/components/app/configuration/dataset-config/settings-modal/index.tsx@@ -2,6 +2,7 @@ import type { FC } from 'react'import type { Member } from '@/models/common'import type { DataSet } from '@/models/datasets'import type { RetrievalConfig } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine } from '@remixicon/react'import { isEqual } from 'es-toolkit/predicate'import { useEffect, useMemo, useRef, useState } from 'react'@@ -25,7 +26,6 @@ import { useModalContext } from '@/context/modal-context'import { DatasetPermission } from '@/models/datasets'import { updateDatasetSetting } from '@/service/datasets'import { useMembers } from '@/service/use-common'-import { cn } from '@/utils/classnames'import { RetrievalChangeTip, RetrievalSection } from './retrieval-section'type SettingsModalProps = {diff --git a/web/app/components/app/configuration/dataset-config/settings-modal/retrieval-section.tsx b/web/app/components/app/configuration/dataset-config/settings-modal/retrieval-section.tsxindex 6d478de9087..c67c50f1d18 100644--- a/web/app/components/app/configuration/dataset-config/settings-modal/retrieval-section.tsx+++ b/web/app/components/app/configuration/dataset-config/settings-modal/retrieval-section.tsx@@ -2,6 +2,7 @@ import type { FC } from 'react'import type { DataSet } from '@/models/datasets'import type { RetrievalConfig } from '@/types/app'import type { DocPathWithoutLang } from '@/types/doc-paths'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine } from '@remixicon/react'import Divider from '@/app/components/base/divider'import { AlertTriangle } from '@/app/components/base/icons/src/vender/solid/alertsAndFeedback'@@ -10,7 +11,6 @@ import EconomicalRetrievalMethodConfig from '@/app/components/datasets/common/ecimport RetrievalMethodConfig from '@/app/components/datasets/common/retrieval-method-config'import { IndexingType } from '@/app/components/datasets/create/step-two'import RetrievalSettings from '@/app/components/datasets/external-knowledge-base/create/RetrievalSettings'-import { cn } from '@/utils/classnames'type CommonSectionProps = {rowClass: string@@ -58,7 +58,7 @@ const ExternalRetrievalSection: FC<ExternalRetrievalSectionProps> = ({<div className="w-full max-w-[480px]"><div className="flex h-full items-center gap-1 rounded-lg bg-components-input-bg-normal px-3 py-2"><ApiConnectionMod className="h-4 w-4 text-text-secondary" />- <div className="system-sm-medium overflow-hidden text-ellipsis text-text-secondary">+ <div className="overflow-hidden system-sm-medium text-ellipsis text-text-secondary">{currentDataset?.external_knowledge_info.external_knowledge_api_name}</div><div className="system-xs-regular text-text-tertiary">·</div>@@ -102,7 +102,7 @@ const InternalRetrievalSection: FC<InternalRetrievalSectionProps> = ({<div className={cn(labelClass, 'w-auto min-w-[168px]')}><div><div className="system-sm-semibold text-text-secondary">{t('form.retrievalSetting.title', { ns: 'datasetSettings' })}</div>- <div className="text-xs font-normal leading-[18px] text-text-tertiary">+ <div className="text-xs leading-[18px] font-normal text-text-tertiary"><a target="_blank" rel="noopener noreferrer" href={docLink('/use-dify/knowledge/create-knowledge/setting-indexing-methods')} className="text-text-accent">{t('form.retrievalSetting.learnMore', { ns: 'datasetSettings' })}</a>{t('form.retrievalSetting.description', { ns: 'datasetSettings' })}</div>@@ -198,10 +198,10 @@ export const RetrievalChangeTip: FC<RetrievalChangeTipProps> = ({return nullreturn (- <div className="absolute bottom-[76px] left-[30px] right-[30px] z-10 flex h-10 items-center justify-between rounded-lg border border-[#FEF0C7] bg-[#FFFAEB] px-3 shadow-lg">+ <div className="absolute right-[30px] bottom-[76px] left-[30px] z-10 flex h-10 items-center justify-between rounded-lg border border-[#FEF0C7] bg-[#FFFAEB] px-3 shadow-lg"><div className="flex items-center"><AlertTriangle className="mr-1 h-3 w-3 text-[#F79009]" />- <div className="text-xs font-medium leading-[18px] text-gray-700">{message}</div>+ <div className="text-xs leading-[18px] font-medium text-gray-700">{message}</div></div><buttontype="button"diff --git a/web/app/components/app/configuration/debug/chat-user-input.tsx b/web/app/components/app/configuration/debug/chat-user-input.tsxindex 114a9f8f627..b1285b712c4 100644--- a/web/app/components/app/configuration/debug/chat-user-input.tsx+++ b/web/app/components/app/configuration/debug/chat-user-input.tsx@@ -1,4 +1,5 @@import type { Inputs } from '@/models/debug'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useEffect } from 'react'import { useTranslation } from 'react-i18next'@@ -8,7 +9,6 @@ import Select from '@/app/components/base/select'import Textarea from '@/app/components/base/textarea'import BoolInput from '@/app/components/workflow/nodes/_base/components/before-run-form/bool-input'import ConfigContext from '@/context/debug-configuration'-import { cn } from '@/utils/classnames'type Props = {inputs: Inputs@@ -67,7 +67,7 @@ const ChatUserInput = ({return (<div className={cn('z-1 rounded-xl border-[0.5px] border-components-panel-border-subtle bg-components-panel-on-panel-item-bg shadow-xs')}>- <div className="px-4 pb-4 pt-3">+ <div className="px-4 pt-3 pb-4">{promptVariables.map(({ key, name, type, options, max_length, required }, index) => (<divkey={key}@@ -75,7 +75,7 @@ const ChatUserInput = ({><div>{type !== 'checkbox' && (- <div className="system-sm-semibold mb-1 flex h-6 items-center gap-1 text-text-secondary">+ <div className="mb-1 flex h-6 items-center gap-1 system-sm-semibold text-text-secondary"><div className="truncate">{name || key}</div>{!required && <span className="system-xs-regular text-text-tertiary">{t('panel.optional', { ns: 'workflow' })}</span>}</div>diff --git a/web/app/components/app/configuration/debug/index.tsx b/web/app/components/app/configuration/debug/index.tsxindex 8bd8acadb59..88bca7111ce 100644--- a/web/app/components/app/configuration/debug/index.tsx+++ b/web/app/components/app/configuration/debug/index.tsx@@ -511,8 +511,8 @@ const Debug: FC<IDebug> = ({{modelConfig.provider && isAPIKeySet && !modelConfig.model_id && (<div className="flex grow flex-col items-center justify-center pb-[120px]"><div className="flex w-full max-w-[400px] flex-col gap-2 px-4 py-4">- <div className="flex h-10 w-10 items-center justify-center radius-lg">- <div className="flex h-full w-full items-center justify-center overflow-hidden radius-lg border-[0.5px] border-components-card-border bg-components-card-bg p-1 shadow-lg backdrop-blur-[5px]">+ <div className="flex h-10 w-10 items-center justify-center rounded-[10px]">+ <div className="flex h-full w-full items-center justify-center overflow-hidden rounded-[10px] border-[0.5px] border-components-card-border bg-components-card-bg p-1 shadow-lg backdrop-blur-[5px]"><span className="i-ri-brain-2-line h-5 w-5 text-text-tertiary" /></div></div>diff --git a/web/app/components/app/configuration/prompt-value-panel/index.tsx b/web/app/components/app/configuration/prompt-value-panel/index.tsxindex 24397128c6a..a9df145ca1b 100644--- a/web/app/components/app/configuration/prompt-value-panel/index.tsx+++ b/web/app/components/app/configuration/prompt-value-panel/index.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { Inputs } from '@/models/debug'import type { VisionFile, VisionSettings } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowDownSLine,RiArrowRightSLine,@@ -22,7 +23,6 @@ import { Button } from '@/app/components/base/ui/button'import BoolInput from '@/app/components/workflow/nodes/_base/components/before-run-form/bool-input'import ConfigContext from '@/context/debug-configuration'import { AppModeEnum, ModelModeType } from '@/types/app'-import { cn } from '@/utils/classnames'export type IPromptValuePanelProps = {appType: AppModeEnumdiff --git a/web/app/components/app/create-app-dialog/app-card/index.tsx b/web/app/components/app/create-app-dialog/app-card/index.tsxindex 2674d3ab1ec..9241461608d 100644--- a/web/app/components/app/create-app-dialog/app-card/index.tsx+++ b/web/app/components/app/create-app-dialog/app-card/index.tsx@@ -1,6 +1,7 @@'use client'import type { App } from '@/models/explore'import { PlusIcon } from '@heroicons/react/20/solid'+import { cn } from '@langgenius/dify-ui/cn'import { RiInformation2Line } from '@remixicon/react'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'@@ -9,7 +10,6 @@ import AppIcon from '@/app/components/base/app-icon'import { Button } from '@/app/components/base/ui/button'import AppListContext from '@/context/app-list-context'import { useGlobalPublicStore } from '@/context/global-public-context'-import { cn } from '@/utils/classnames'import { AppTypeIcon, AppTypeLabel } from '../../type-selector'type AppCardProps = {@@ -45,7 +45,7 @@ const AppCard = ({imageUrl={appBasicInfo.icon_url}/><AppTypeIcon- wrapperClassName="absolute -bottom-0.5 -right-0.5 w-4 h-4 radius-xs border border-divider-regular outline-solid outline-components-panel-on-panel-item-bg"+ wrapperClassName="absolute -bottom-0.5 -right-0.5 w-4 h-4 rounded-sm border border-divider-regular outline-solid outline-components-panel-on-panel-item-bg"className="h-3 w-3"type={appBasicInfo.mode}/>diff --git a/web/app/components/app/create-app-dialog/app-list/index.tsx b/web/app/components/app/create-app-dialog/app-list/index.tsxindex daf49115c86..19089d6364b 100644--- a/web/app/components/app/create-app-dialog/app-list/index.tsx+++ b/web/app/components/app/create-app-dialog/app-list/index.tsx@@ -2,6 +2,7 @@import type { CreateAppModalProps } from '@/app/components/explore/create-app-modal'import type { App } from '@/models/explore'+import { cn } from '@langgenius/dify-ui/cn'import { RiRobot2Line } from '@remixicon/react'import { useDebounceFn } from 'ahooks'import * as React from 'react'@@ -23,7 +24,6 @@ import { fetchAppDetail } from '@/service/explore'import { useExploreAppList } from '@/service/use-explore'import { AppModeEnum } from '@/types/app'import { getRedirection } from '@/utils/app-redirection'-import { cn } from '@/utils/classnames'import { trackCreateApp } from '@/utils/create-app-tracking'import AppCard from '../app-card'import Sidebar, { AppCategories, AppCategoryLabel } from './sidebar'@@ -183,7 +183,7 @@ const Apps = ({<div className="h-full flex-1 shrink-0 grow overflow-auto border-l border-divider-burn p-6 pt-2">{searchFilteredList && searchFilteredList.length > 0 && (<>- <div className="pb-1 pt-4">+ <div className="pt-4 pb-1">{searchKeywords? <p className="title-md-semi-bold text-text-tertiary">{searchFilteredList.length > 1 ? t('newApp.foundResults', { ns: 'app', count: searchFilteredList.length }) : t('newApp.foundResult', { ns: 'app', count: searchFilteredList.length })}</p>: (@@ -194,7 +194,7 @@ const Apps = ({</div><divclassName={cn(- 'grid shrink-0 grid-cols-1 content-start gap-3 sm:grid-cols-1 md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5 2k:grid-cols-6',+ 'grid shrink-0 grid-cols-1 content-start gap-3 2k:grid-cols-6 sm:grid-cols-1 md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5',)}>{searchFilteredList.map(app => (diff --git a/web/app/components/app/create-app-dialog/app-list/sidebar.tsx b/web/app/components/app/create-app-dialog/app-list/sidebar.tsxindex ced14465c18..128e597259f 100644--- a/web/app/components/app/create-app-dialog/app-list/sidebar.tsx+++ b/web/app/components/app/create-app-dialog/app-list/sidebar.tsx@@ -1,8 +1,8 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import { RiStickyNoteAddLine, RiThumbUpLine } from '@remixicon/react'import { useTranslation } from 'react-i18next'import Divider from '@/app/components/base/divider'-import { cn } from '@/utils/classnames'export enum AppCategories {RECOMMENDED = 'Recommended',@@ -22,7 +22,7 @@ export default function Sidebar({ current, categories, onClick, onCreateFromBlan<ul className="pt-0.5"><CategoryItem category={AppCategories.RECOMMENDED} active={current === AppCategories.RECOMMENDED} onClick={onClick} /></ul>- <div className="system-xs-medium-uppercase mb-0.5 mt-3 px-3 pb-1 pt-2 text-text-tertiary">{t('newAppFromTemplate.byCategories', { ns: 'app' })}</div>+ <div className="mt-3 mb-0.5 px-3 pt-2 pb-1 system-xs-medium-uppercase text-text-tertiary">{t('newAppFromTemplate.byCategories', { ns: 'app' })}</div><ul className="flex grow flex-col gap-0.5">{categories.map(category => (<CategoryItem key={category} category={category} active={current === category} onClick={onClick} />))}</ul>diff --git a/web/app/components/app/create-app-modal/index.tsx b/web/app/components/app/create-app-modal/index.tsxindex 61681892d26..073107755f0 100644--- a/web/app/components/app/create-app-modal/index.tsx+++ b/web/app/components/app/create-app-modal/index.tsx@@ -1,8 +1,9 @@'use client'import type { AppIconSelection } from '../../base/app-icon-picker'-import { RiArrowRightLine, RiArrowRightSLine, RiExchange2Fill } from '@remixicon/react'+import { cn } from '@langgenius/dify-ui/cn'+import { RiArrowRightLine, RiArrowRightSLine, RiExchange2Fill } from '@remixicon/react'import { useDebounceFn, useKeyPress } from 'ahooks'import { useCallback, useEffect, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -23,7 +24,6 @@ import { useRouter } from '@/next/navigation'import { createApp } from '@/service/apps'import { AppModeEnum } from '@/types/app'import { getRedirection } from '@/utils/app-redirection'-import { cn } from '@/utils/classnames'import { trackCreateApp } from '@/utils/create-app-tracking'import { basePath } from '@/utils/var'import AppIconPicker from '../../base/app-icon-picker'diff --git a/web/app/components/app/create-from-dsl-modal/index.tsx b/web/app/components/app/create-from-dsl-modal/index.tsxindex d588610f718..d4b857ee6b5 100644--- a/web/app/components/app/create-from-dsl-modal/index.tsx+++ b/web/app/components/app/create-from-dsl-modal/index.tsx@@ -1,6 +1,7 @@'use client'import type { MouseEventHandler } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine } from '@remixicon/react'import { useDebounceFn, useKeyPress } from 'ahooks'import { noop } from 'es-toolkit/function'@@ -25,7 +26,6 @@ import {importDSLConfirm,} from '@/service/apps'import { getRedirection } from '@/utils/app-redirection'-import { cn } from '@/utils/classnames'import { trackCreateApp } from '@/utils/create-app-tracking'import ShortcutsName from '../../workflow/shortcuts-name'import Uploader from './uploader'diff --git a/web/app/components/app/create-from-dsl-modal/uploader.tsx b/web/app/components/app/create-from-dsl-modal/uploader.tsxindex 7480da4b5f7..1daa7e9f7b0 100644--- a/web/app/components/app/create-from-dsl-modal/uploader.tsx+++ b/web/app/components/app/create-from-dsl-modal/uploader.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {RiDeleteBinLine,RiUploadCloud2Line,@@ -10,7 +11,6 @@ import { useTranslation } from 'react-i18next'import ActionButton from '@/app/components/base/action-button'import { Yaml as YamlIcon } from '@/app/components/base/icons/src/public/files'import { toast } from '@/app/components/base/ui/toast'-import { cn } from '@/utils/classnames'import { formatFileSize } from '@/utils/format'type Props = {@@ -107,7 +107,7 @@ const Uploader: FC<Props> = ({/><div ref={dropRef}>{!file && (- <div className={cn('flex h-12 items-center radius-lg border border-dashed border-components-dropzone-border bg-components-dropzone-bg text-sm font-normal', dragging && 'border-components-dropzone-border-accent bg-components-dropzone-bg-accent')}>+ <div className={cn('flex h-12 items-center rounded-[10px] border border-dashed border-components-dropzone-border bg-components-dropzone-bg text-sm font-normal', dragging && 'border-components-dropzone-border-accent bg-components-dropzone-bg-accent')}><div className="flex w-full items-center justify-center space-x-2"><RiUploadCloud2Line className="h-6 w-6 text-text-tertiary" /><div className="text-text-tertiary">@@ -115,7 +115,7 @@ const Uploader: FC<Props> = ({<span className="cursor-pointer pl-1 text-text-accent" onClick={selectHandle}>{t('dslUploader.browse', { ns: 'app' })}</span></div></div>- {dragging && <div ref={dragRef} className="absolute left-0 top-0 h-full w-full" />}+ {dragging && <div ref={dragRef} className="absolute top-0 left-0 h-full w-full" />}</div>)}{file && (@@ -124,8 +124,8 @@ const Uploader: FC<Props> = ({<YamlIcon className="h-6 w-6 shrink-0" /></div><div className="flex grow flex-col items-start gap-0.5 py-1 pr-2">- <span className="font-inter max-w-[calc(100%-30px)] overflow-hidden text-ellipsis whitespace-nowrap text-[12px] font-medium leading-4 text-text-secondary">{file.name}</span>- <div className="font-inter flex h-3 items-center gap-1 self-stretch text-[10px] font-medium uppercase leading-3 text-text-tertiary">+ <span className="font-inter max-w-[calc(100%-30px)] overflow-hidden text-[12px] leading-4 font-medium text-ellipsis whitespace-nowrap text-text-secondary">{file.name}</span>+ <div className="font-inter flex h-3 items-center gap-1 self-stretch text-[10px] leading-3 font-medium text-text-tertiary uppercase"><span>{displayName}</span><span className="text-text-quaternary">·</span><span>{formatFileSize(file.size)}</span>diff --git a/web/app/components/app/duplicate-modal/index.tsx b/web/app/components/app/duplicate-modal/index.tsxindex 2fe1d2124d1..c28ead78216 100644--- a/web/app/components/app/duplicate-modal/index.tsx+++ b/web/app/components/app/duplicate-modal/index.tsx@@ -1,5 +1,6 @@'use client'import type { AppIconType } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine } from '@remixicon/react'import { noop } from 'es-toolkit/function'import * as React from 'react'@@ -12,7 +13,6 @@ import { Button } from '@/app/components/base/ui/button'import { toast } from '@/app/components/base/ui/toast'import AppsFull from '@/app/components/billing/apps-full-in-dialog'import { useProviderContext } from '@/context/provider-context'-import { cn } from '@/utils/classnames'import AppIconPicker from '../../base/app-icon-picker'export type DuplicateAppModalProps = {diff --git a/web/app/components/app/in-site-message/index.tsx b/web/app/components/app/in-site-message/index.tsxindex fd7ced191ef..5482086483b 100644--- a/web/app/components/app/in-site-message/index.tsx+++ b/web/app/components/app/in-site-message/index.tsx@@ -1,10 +1,10 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import { useEffect, useMemo, useState } from 'react'import { trackEvent } from '@/app/components/base/amplitude'import { MarkdownWithDirective } from '@/app/components/base/markdown-with-directive'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'type InSiteMessageAction = 'link' | 'close'type InSiteMessageButtonType = 'primary' | 'default'diff --git a/web/app/components/app/log-annotation/index.tsx b/web/app/components/app/log-annotation/index.tsxindex c5c21289df2..857b306f105 100644--- a/web/app/components/app/log-annotation/index.tsx+++ b/web/app/components/app/log-annotation/index.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useMemo } from 'react'import { useTranslation } from 'react-i18next'@@ -12,7 +13,6 @@ import Loading from '@/app/components/base/loading'import TabSlider from '@/app/components/base/tab-slider-plain'import { useRouter } from '@/next/navigation'import { AppModeEnum } from '@/types/app'-import { cn } from '@/utils/classnames'type Props = {pageType: PageTypediff --git a/web/app/components/app/log/list.tsx b/web/app/components/app/log/list.tsxindex 01621e0d2ab..551bae02123 100644--- a/web/app/components/app/log/list.tsx+++ b/web/app/components/app/log/list.tsx@@ -8,6 +8,7 @@ import {HandThumbDownIcon,HandThumbUpIcon,} from '@heroicons/react/24/outline'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine, RiEditFill } from '@remixicon/react'import dayjs from 'dayjs'import timezone from 'dayjs/plugin/timezone'@@ -38,7 +39,6 @@ import { fetchChatMessages, updateLogMessageAnnotations, updateLogMessageFeedbacimport { AppSourceType } from '@/service/share'import { useChatConversationDetail, useCompletionConversationDetail } from '@/service/use-log'import { AppModeEnum } from '@/types/app'-import { cn } from '@/utils/classnames'import PromptLogModal from '../../base/prompt-log-modal'import Indicator from '../../header/indicator'import {@@ -404,11 +404,11 @@ function DetailPanel({ detail, onFeedback }: IDetailPanel) {return (<div ref={ref} className="flex h-full flex-col rounded-xl border-[0.5px] border-components-panel-border">{/* Panel Header */}- <div className="flex shrink-0 items-center gap-2 rounded-t-xl bg-components-panel-bg pb-2 pl-4 pr-3 pt-3">+ <div className="flex shrink-0 items-center gap-2 rounded-t-xl bg-components-panel-bg pt-3 pr-3 pb-2 pl-4"><div className="shrink-0">- <div className="mb-0.5 text-text-primary system-xs-semibold-uppercase">{isChatMode ? t('detail.conversationId', { ns: 'appLog' }) : t('detail.time', { ns: 'appLog' })}</div>+ <div className="mb-0.5 system-xs-semibold-uppercase text-text-primary">{isChatMode ? t('detail.conversationId', { ns: 'appLog' }) : t('detail.time', { ns: 'appLog' })}</div>{isChatMode && (- <div className="flex items-center text-text-secondary system-2xs-regular-uppercase">+ <div className="flex items-center system-2xs-regular-uppercase text-text-secondary"><TooltippopupContent={detail.id}>@@ -418,7 +418,7 @@ function DetailPanel({ detail, onFeedback }: IDetailPanel) {</div>)}{!isChatMode && (- <div className="text-text-secondary system-2xs-regular-uppercase">{formatTime(detail.created_at, t('dateTimeFormat', { ns: 'appLog' }) as string)}</div>+ <div className="system-2xs-regular-uppercase text-text-secondary">{formatTime(detail.created_at, t('dateTimeFormat', { ns: 'appLog' }) as string)}</div>)}</div><div className="flex grow flex-wrap items-center justify-end gap-y-1">@@ -444,7 +444,7 @@ function DetailPanel({ detail, onFeedback }: IDetailPanel) {? (<div className="px-6 py-4"><div className="flex h-[18px] items-center space-x-3">- <div className="text-text-tertiary system-xs-semibold-uppercase">{t('table.header.output', { ns: 'appLog' })}</div>+ <div className="system-xs-semibold-uppercase text-text-tertiary">{t('table.header.output', { ns: 'appLog' })}</div><divclassName="h-px grow"style={{@@ -536,7 +536,7 @@ function DetailPanel({ detail, onFeedback }: IDetailPanel) {</div>{hasMore && (<div className="py-3 text-center">- <div className="text-text-tertiary system-xs-regular">+ <div className="system-xs-regular text-text-tertiary">{t('detail.loading', { ns: 'appLog' })}...</div>@@ -778,7 +778,7 @@ const ConversationList: FC<IConversationList> = ({ logs, appDetail, onRefresh }))}popupClassName={(isHighlight && !isChatMode) ? '' : 'hidden!'}>- <div className={cn(isEmptyStyle ? 'text-text-quaternary' : 'text-text-secondary', !isHighlight ? '' : 'bg-orange-100', 'overflow-hidden text-ellipsis whitespace-nowrap system-sm-regular')}>+ <div className={cn(isEmptyStyle ? 'text-text-quaternary' : 'text-text-secondary', !isHighlight ? '' : 'bg-orange-100', 'overflow-hidden system-sm-regular text-ellipsis whitespace-nowrap')}>{value || '-'}</div></Tooltip>@@ -791,20 +791,20 @@ const ConversationList: FC<IConversationList> = ({ logs, appDetail, onRefresh })return (<div className="relative mt-2 grow overflow-x-auto"><table className={cn('w-full min-w-[440px] border-collapse border-0')}>- <thead className="text-text-tertiary system-xs-medium-uppercase">+ <thead className="system-xs-medium-uppercase text-text-tertiary"><tr>- <td className="w-5 whitespace-nowrap rounded-l-lg bg-background-section-burn pl-2 pr-1"></td>- <td className="whitespace-nowrap bg-background-section-burn py-1.5 pl-3">{isChatMode ? t('table.header.summary', { ns: 'appLog' }) : t('table.header.input', { ns: 'appLog' })}</td>- <td className="whitespace-nowrap bg-background-section-burn py-1.5 pl-3">{t('table.header.endUser', { ns: 'appLog' })}</td>- {isChatflow && <td className="whitespace-nowrap bg-background-section-burn py-1.5 pl-3">{t('table.header.status', { ns: 'appLog' })}</td>}- <td className="whitespace-nowrap bg-background-section-burn py-1.5 pl-3">{isChatMode ? t('table.header.messageCount', { ns: 'appLog' }) : t('table.header.output', { ns: 'appLog' })}</td>- <td className="whitespace-nowrap bg-background-section-burn py-1.5 pl-3">{t('table.header.userRate', { ns: 'appLog' })}</td>- <td className="whitespace-nowrap bg-background-section-burn py-1.5 pl-3">{t('table.header.adminRate', { ns: 'appLog' })}</td>- <td className="whitespace-nowrap bg-background-section-burn py-1.5 pl-3">{t('table.header.updatedTime', { ns: 'appLog' })}</td>- <td className="whitespace-nowrap rounded-r-lg bg-background-section-burn py-1.5 pl-3">{t('table.header.time', { ns: 'appLog' })}</td>+ <td className="w-5 rounded-l-lg bg-background-section-burn pr-1 pl-2 whitespace-nowrap"></td>+ <td className="bg-background-section-burn py-1.5 pl-3 whitespace-nowrap">{isChatMode ? t('table.header.summary', { ns: 'appLog' }) : t('table.header.input', { ns: 'appLog' })}</td>+ <td className="bg-background-section-burn py-1.5 pl-3 whitespace-nowrap">{t('table.header.endUser', { ns: 'appLog' })}</td>+ {isChatflow && <td className="bg-background-section-burn py-1.5 pl-3 whitespace-nowrap">{t('table.header.status', { ns: 'appLog' })}</td>}+ <td className="bg-background-section-burn py-1.5 pl-3 whitespace-nowrap">{isChatMode ? t('table.header.messageCount', { ns: 'appLog' }) : t('table.header.output', { ns: 'appLog' })}</td>+ <td className="bg-background-section-burn py-1.5 pl-3 whitespace-nowrap">{t('table.header.userRate', { ns: 'appLog' })}</td>+ <td className="bg-background-section-burn py-1.5 pl-3 whitespace-nowrap">{t('table.header.adminRate', { ns: 'appLog' })}</td>+ <td className="bg-background-section-burn py-1.5 pl-3 whitespace-nowrap">{t('table.header.updatedTime', { ns: 'appLog' })}</td>+ <td className="rounded-r-lg bg-background-section-burn py-1.5 pl-3 whitespace-nowrap">{t('table.header.time', { ns: 'appLog' })}</td></tr></thead>- <tbody className="text-text-secondary system-sm-regular">+ <tbody className="system-sm-regular text-text-secondary">{logs.data.map((log: any) => {const { endUser, isLeftEmpty, isRightEmpty, leftValue, rightValue } = getConversationRowValues({isChatMode,diff --git a/web/app/components/app/log/model-info.tsx b/web/app/components/app/log/model-info.tsxindex 035f50d1651..5fe0eb590b1 100644--- a/web/app/components/app/log/model-info.tsx+++ b/web/app/components/app/log/model-info.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {RiInformation2Line,} from '@remixicon/react'@@ -13,7 +14,6 @@ import {import { useTextGenerationCurrentProviderAndModelAndModelList } from '@/app/components/header/account-setting/model-provider-page/hooks'import ModelIcon from '@/app/components/header/account-setting/model-provider-page/model-icon'import ModelName from '@/app/components/header/account-setting/model-provider-page/model-name'-import { cn } from '@/utils/classnames'const PARAM_MAP = {temperature: 'Temperature',@@ -57,7 +57,7 @@ const ModelInfo: FC<Props> = ({return (<div className={cn('flex items-center rounded-lg')}>- <div className="mr-px flex h-8 shrink-0 items-center gap-1 rounded-l-lg bg-components-input-bg-normal pl-1.5 pr-2">+ <div className="mr-px flex h-8 shrink-0 items-center gap-1 rounded-l-lg bg-components-input-bg-normal pr-2 pl-1.5"><ModelIconclassName="h-5! w-5!"provider={currentProvider}@@ -88,8 +88,8 @@ const ModelInfo: FC<Props> = ({</div></PortalToFollowElemTrigger><PortalToFollowElemContent className="z-1002">- <div className="relative w-[280px] overflow-hidden rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg px-4 pb-2 pt-3 shadow-xl">- <div className="system-sm-semibold-uppercase mb-1 h-6 text-text-secondary">{t('detail.modelParams', { ns: 'appLog' })}</div>+ <div className="relative w-[280px] overflow-hidden rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg px-4 pt-3 pb-2 shadow-xl">+ <div className="mb-1 h-6 system-sm-semibold-uppercase text-text-secondary">{t('detail.modelParams', { ns: 'appLog' })}</div><div className="py-1">{['temperature', 'top_p', 'presence_penalty', 'max_tokens', 'stop'].map((param: string, index: number) => {return (diff --git a/web/app/components/app/log/var-panel.tsx b/web/app/components/app/log/var-panel.tsxindex 5e0e20e1b47..7e75f54a0ab 100644--- a/web/app/components/app/log/var-panel.tsx+++ b/web/app/components/app/log/var-panel.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowDownSLine,RiArrowRightSLine,@@ -10,7 +11,6 @@ import { useState } from 'react'import { useTranslation } from 'react-i18next'import { Variable02 } from '@/app/components/base/icons/src/vender/solid/development'import ImagePreview from '@/app/components/base/image-uploader/image-preview'-import { cn } from '@/utils/classnames'type Props = {varList: { label: string, value: string }[]@@ -26,13 +26,13 @@ const VarPanel: FC<Props> = ({const [imagePreviewUrl, setImagePreviewUrl] = useState('')return (- <div className="radius-lg border border-divider-subtle bg-chat-bubble-bg">+ <div className="rounded-[10px] border border-divider-subtle bg-chat-bubble-bg"><div- className={cn('flex cursor-pointer items-center gap-1 border-b border-divider-subtle px-3 pb-2 pt-2.5 text-text-secondary', isCollapse && 'border-0 pb-2.5')}+ className={cn('flex cursor-pointer items-center gap-1 border-b border-divider-subtle px-3 pt-2.5 pb-2 text-text-secondary', isCollapse && 'border-0 pb-2.5')}onClick={toggleCollapse}><Variable02 className="h-4 w-4" />- <div className="system-md-medium grow">{t('detail.variables', { ns: 'appLog' })}</div>+ <div className="grow system-md-medium">{t('detail.variables', { ns: 'appLog' })}</div>{isCollapse? <RiArrowRightSLine className="h-4 w-4" />@@ -42,19 +42,19 @@ const VarPanel: FC<Props> = ({{!isCollapse && (<div className="flex max-h-[500px] flex-col gap-2 overflow-y-auto p-3">{varList.map(({ label, value }, index) => (- <div key={index} className="system-xs-medium flex py-2">+ <div key={index} className="flex py-2 system-xs-medium"><div className="flex w-[128px] shrink-0 text-text-accent"><span className="shrink-0 opacity-60">{'{{'}</span><span className="truncate">{label}</span><span className="shrink-0 opacity-60">{'}}'}</span></div>- <div className="whitespace-pre-wrap pl-2.5 text-text-secondary">{value}</div>+ <div className="pl-2.5 whitespace-pre-wrap text-text-secondary">{value}</div></div>))}{message_files.length > 0 && (<div className="mt-1 flex py-2">- <div className="system-xs-medium w-[128px] shrink-0 text-text-tertiary">{t('detail.uploadImages', { ns: 'appLog' })}</div>+ <div className="w-[128px] shrink-0 system-xs-medium text-text-tertiary">{t('detail.uploadImages', { ns: 'appLog' })}</div><div className="flex space-x-2">{message_files.map((url, index) => (<divdiff --git a/web/app/components/app/overview/apikey-info-panel/index.tsx b/web/app/components/app/overview/apikey-info-panel/index.tsxindex e8071ff7ae8..9df9204183e 100644--- a/web/app/components/app/overview/apikey-info-panel/index.tsx+++ b/web/app/components/app/overview/apikey-info-panel/index.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine } from '@remixicon/react'import * as React from 'react'import { useState } from 'react'@@ -10,7 +11,6 @@ import { ACCOUNT_SETTING_TAB } from '@/app/components/header/account-setting/conimport { IS_CE_EDITION } from '@/config'import { useModalContext } from '@/context/modal-context'import { useProviderContext } from '@/context/provider-context'-import { cn } from '@/utils/classnames'const APIKeyInfoPanel: FC = () => {const isCloud = !IS_CE_EDITIONdiff --git a/web/app/components/app/overview/embedded/index.tsx b/web/app/components/app/overview/embedded/index.tsxindex d9d954051b9..547d80f0feb 100644--- a/web/app/components/app/overview/embedded/index.tsx+++ b/web/app/components/app/overview/embedded/index.tsx@@ -1,4 +1,5 @@import type { SiteInfo } from '@/models/share'+import { cn } from '@langgenius/dify-ui/cn'import {RiClipboardFill,RiClipboardLine,@@ -13,7 +14,6 @@ import Modal from '@/app/components/base/modal'import Tooltip from '@/app/components/base/tooltip'import { IS_CE_EDITION } from '@/config'import { useAppContext } from '@/context/app-context'-import { cn } from '@/utils/classnames'import { basePath } from '@/utils/var'import style from './style.module.css'@@ -139,7 +139,7 @@ const Embedded = ({ siteInfo, isShow, onClose, appBaseUrl, accessToken, classNamwrapperClassName={className}closable={true}>- <div className="system-sm-medium mb-4 mt-8 text-text-primary">+ <div className="mt-8 mb-4 system-sm-medium text-text-primary">{t(`${prefixEmbedded}.explanation`, { ns: 'appOverview' })}</div><div className="flex flex-wrap items-center justify-between gap-y-2">@@ -165,13 +165,13 @@ const Embedded = ({ siteInfo, isShow, onClose, appBaseUrl, accessToken, classNam<div className="mt-6 w-full"><div className={cn('inline-flex w-full items-center justify-center gap-2 rounded-lg py-3', 'shrink-0 cursor-pointer bg-primary-600 text-white hover:bg-primary-600/75 hover:shadow-sm')}><div className={`relative h-4 w-4 ${style.pluginInstallIcon}`}></div>- <div className="font-['Inter'] text-sm font-medium leading-tight text-white" onClick={navigateToChromeUrl}>{t(`${prefixEmbedded}.chromePlugin`, { ns: 'appOverview' })}</div>+ <div className="font-['Inter'] text-sm leading-tight font-medium text-white" onClick={navigateToChromeUrl}>{t(`${prefixEmbedded}.chromePlugin`, { ns: 'appOverview' })}</div></div></div>)}<div className={cn('inline-flex w-full flex-col items-start justify-start rounded-lg border-[0.5px] border-components-panel-border bg-background-section', 'mt-6')}>- <div className="inline-flex items-center justify-start gap-2 self-stretch rounded-t-lg bg-background-section-burn py-1 pl-3 pr-1">- <div className="system-sm-medium shrink-0 grow text-text-secondary">+ <div className="inline-flex items-center justify-start gap-2 self-stretch rounded-t-lg bg-background-section-burn py-1 pr-1 pl-3">+ <div className="shrink-0 grow system-sm-medium text-text-secondary">{t(`${prefixEmbedded}.${option}`, { ns: 'appOverview' })}</div><Tooltipdiff --git a/web/app/components/app/overview/settings/index.tsx b/web/app/components/app/overview/settings/index.tsxindex 131a0f9fd5d..e94977ed9f2 100644--- a/web/app/components/app/overview/settings/index.tsx+++ b/web/app/components/app/overview/settings/index.tsx@@ -3,6 +3,7 @@ import type { FC } from 'react'import type { AppIconSelection } from '@/app/components/base/app-icon-picker'import type { AppDetailResponse } from '@/models/app'import type { AppIconType, AppSSO, Language } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowRightSLine, RiCloseLine } from '@remixicon/react'import * as React from 'react'import { useCallback, useEffect, useRef, useState } from 'react'@@ -27,7 +28,6 @@ import { useProviderContext } from '@/context/provider-context'import { languages } from '@/i18n-config/language'import Link from '@/next/link'import { AppModeEnum } from '@/types/app'-import { cn } from '@/utils/classnames'type ISettingsModalProps = {isChat: booleandiff --git a/web/app/components/app/switch-app-modal/index.tsx b/web/app/components/app/switch-app-modal/index.tsxindex aa7f1974eca..272214c5eea 100644--- a/web/app/components/app/switch-app-modal/index.tsx+++ b/web/app/components/app/switch-app-modal/index.tsx@@ -1,6 +1,7 @@'use client'import type { App } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine } from '@remixicon/react'import { noop } from 'es-toolkit/function'import { useEffect, useState } from 'react'@@ -11,7 +12,6 @@ import Checkbox from '@/app/components/base/checkbox'import { AlertTriangle } from '@/app/components/base/icons/src/vender/solid/alertsAndFeedback'import Input from '@/app/components/base/input'import Modal from '@/app/components/base/modal'-import { Button } from '@/app/components/base/ui/button'import {AlertDialog,AlertDialogActions,@@ -21,6 +21,7 @@ import {AlertDialogDescription,AlertDialogTitle,} from '@/app/components/base/ui/alert-dialog'+import { Button } from '@/app/components/base/ui/button'import { toast } from '@/app/components/base/ui/toast'import AppsFull from '@/app/components/billing/apps-full-in-dialog'import { NEED_REFRESH_APP_LIST_KEY } from '@/config'@@ -30,7 +31,6 @@ import { useRouter } from '@/next/navigation'import { deleteApp, switchApp } from '@/service/apps'import { AppModeEnum } from '@/types/app'import { getRedirection } from '@/utils/app-redirection'-import { cn } from '@/utils/classnames'import AppIconPicker from '../../base/app-icon-picker'type SwitchAppModalProps = {diff --git a/web/app/components/app/text-generate/item/action-groups.tsx b/web/app/components/app/text-generate/item/action-groups.tsxindex 783d488a780..9d9ba6daa38 100644--- a/web/app/components/app/text-generate/item/action-groups.tsx+++ b/web/app/components/app/text-generate/item/action-groups.tsx@@ -72,7 +72,7 @@ const GenerationActionGroups: FC<GenerationActionGroupsProps> = ({return (<>{!isInWebApp && (appSourceType !== AppSourceTypeEnum.installedApp) && !isResponding && (- <div className="ml-1 flex items-center gap-0.5 radius-lg border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg p-0.5 shadow-md backdrop-blur-xs">+ <div className="ml-1 flex items-center gap-0.5 rounded-[10px] border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg p-0.5 shadow-md backdrop-blur-xs"><ActionButtonaria-label={t('operation.log', { ns: 'common' })}disabled={isError || !messageId}@@ -83,7 +83,7 @@ const GenerationActionGroups: FC<GenerationActionGroupsProps> = ({</ActionButton></div>)}- <div className="ml-1 flex items-center gap-0.5 radius-lg border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg p-0.5 shadow-md backdrop-blur-xs">+ <div className="ml-1 flex items-center gap-0.5 rounded-[10px] border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg p-0.5 shadow-md backdrop-blur-xs">{moreLikeThis && !isTryApp && (<ActionButtonaria-label={t('feature.moreLikeThis.title', { ns: 'appDebug' })}@@ -139,7 +139,7 @@ const GenerationActionGroups: FC<GenerationActionGroupsProps> = ({)}</div>{(supportFeedback || isInWebApp) && !isWorkflow && !isTryApp && !isError && messageId && (- <div className="ml-1 flex items-center gap-0.5 radius-lg border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg p-0.5 shadow-md backdrop-blur-xs">+ <div className="ml-1 flex items-center gap-0.5 rounded-[10px] border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg p-0.5 shadow-md backdrop-blur-xs">{!feedback?.rating && (<><ActionButtondiff --git a/web/app/components/app/text-generate/item/index.tsx b/web/app/components/app/text-generate/item/index.tsxindex 7eb7c9ad2bf..a6f5e6875b1 100644--- a/web/app/components/app/text-generate/item/index.tsx+++ b/web/app/components/app/text-generate/item/index.tsx@@ -3,6 +3,7 @@ import type { FC } from 'react'import type { FeedbackType } from '@/app/components/base/chat/chat/type'import type { WorkflowProcess } from '@/app/components/base/chat/types'import type { SiteInfo } from '@/models/share'+import { cn } from '@langgenius/dify-ui/cn'import {RiPlayList2Line,RiSparklingFill,@@ -20,7 +21,6 @@ import { useParams } from '@/next/navigation'import { fetchTextGenerationMessage } from '@/service/debug'import { AppSourceType, fetchMoreLikeThis, submitHumanInputForm, updateFeedback } from '@/service/share'import { submitHumanInputForm as submitHumanInputFormService } from '@/service/workflow'-import { cn } from '@/utils/classnames'import GenerationActionGroups from './action-groups'import {buildPromptLogItem,@@ -213,7 +213,7 @@ const GenerationItem: FC<IGenerationItemProps> = ({workflowProcessData={workflowProcessData}/>{!workflowProcessData && taskId && (- <div className={cn('system-2xs-medium-uppercase sticky left-0 top-0 flex w-full items-center rounded-t-2xl bg-components-actionbar-bg p-4 pb-3 text-text-accent-secondary', isError && 'text-text-destructive')}>+ <div className={cn('sticky top-0 left-0 flex w-full items-center rounded-t-2xl bg-components-actionbar-bg p-4 pb-3 system-2xs-medium-uppercase text-text-accent-secondary', isError && 'text-text-destructive')}><RiPlayList2Line className="mr-1 h-3 w-3" /><span>{t('generation.execution', { ns: 'share' })}</span><span className="px-1">·</span>@@ -221,7 +221,7 @@ const GenerationItem: FC<IGenerationItemProps> = ({</div>)}{isError && (- <div className="body-lg-regular p-4 pt-0 text-text-quaternary">{t('generation.batchFailed.outputPlaceholder', { ns: 'share' })}</div>+ <div className="p-4 pt-0 body-lg-regular text-text-quaternary">{t('generation.batchFailed.outputPlaceholder', { ns: 'share' })}</div>)}{!workflowProcessData && !isError && (typeof content === 'string') && (<div className={cn('p-4', taskId && 'pt-0')}>@@ -231,7 +231,7 @@ const GenerationItem: FC<IGenerationItemProps> = ({</div>{/* meta data */}<div className={cn(- 'system-xs-regular relative mt-1 h-4 px-4 text-text-quaternary',+ 'relative mt-1 h-4 px-4 system-xs-regular text-text-quaternary',isMobile && ((childMessageId || isQuerying) && depth < MAX_GENERATION_DEPTH) && 'pl-10',)}>@@ -243,7 +243,7 @@ const GenerationItem: FC<IGenerationItemProps> = ({</span>)}{/* action buttons */}- <div className="absolute bottom-1 right-2 flex items-center">+ <div className="absolute right-2 bottom-1 flex items-center"><GenerationActionGroupsappSourceType={appSourceType}content={content}diff --git a/web/app/components/app/text-generate/item/workflow-body.tsx b/web/app/components/app/text-generate/item/workflow-body.tsxindex 96c27dd8038..d5a076ace93 100644--- a/web/app/components/app/text-generate/item/workflow-body.tsx+++ b/web/app/components/app/text-generate/item/workflow-body.tsx@@ -2,12 +2,12 @@import type { FC } from 'react'import type { WorkflowProcess } from '@/app/components/base/chat/types'import type { SiteInfo } from '@/models/share'+import { cn } from '@langgenius/dify-ui/cn'import { RiPlayList2Line } from '@remixicon/react'import { useTranslation } from 'react-i18next'import HumanInputFilledFormList from '@/app/components/base/chat/chat/answer/human-input-filled-form-list'import HumanInputFormList from '@/app/components/base/chat/chat/answer/human-input-form-list'import WorkflowProcessItem from '@/app/components/base/chat/chat/answer/workflow-process'-import { cn } from '@/utils/classnames'import ResultTab from './result-tab'import { getGenerationTaskLabel } from './utils'diff --git a/web/app/components/app/text-generate/saved-items/index.tsx b/web/app/components/app/text-generate/saved-items/index.tsxindex a7f52f18845..605461dbd72 100644--- a/web/app/components/app/text-generate/saved-items/index.tsx+++ b/web/app/components/app/text-generate/saved-items/index.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { SavedMessage } from '@/models/debug'+import { cn } from '@langgenius/dify-ui/cn'import {RiClipboardLine,RiDeleteBinLine,@@ -12,7 +13,6 @@ import ActionButton from '@/app/components/base/action-button'import { Markdown } from '@/app/components/base/markdown'import NewAudioButton from '@/app/components/base/new-audio-button'import { toast } from '@/app/components/base/ui/toast'-import { cn } from '@/utils/classnames'import NoData from './no-data'export type ISavedItemsProps = {@@ -48,15 +48,15 @@ const SavedItems: FC<ISavedItemsProps> = ({><Markdown content={answer} /></div>- <div className="system-xs-regular mt-1 h-4 px-4 text-text-quaternary">+ <div className="mt-1 h-4 px-4 system-xs-regular text-text-quaternary"><span>{answer.length}{' '}{t('unit.char', { ns: 'common' })}</span></div>- <div className="absolute bottom-1 right-2">- <div className="ml-1 flex items-center gap-0.5 radius-lg border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg p-0.5 shadow-md backdrop-blur-xs">+ <div className="absolute right-2 bottom-1">+ <div className="ml-1 flex items-center gap-0.5 rounded-[10px] border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg p-0.5 shadow-md backdrop-blur-xs">{isShowTextToSpeech && <NewAudioButton value={answer} />}<ActionButton onClick={() => {copy(answer)diff --git a/web/app/components/app/text-generate/saved-items/no-data/index.tsx b/web/app/components/app/text-generate/saved-items/no-data/index.tsxindex cf7c9b6f89a..2bf6e9b20a3 100644--- a/web/app/components/app/text-generate/saved-items/no-data/index.tsx+++ b/web/app/components/app/text-generate/saved-items/no-data/index.tsx@@ -19,7 +19,7 @@ const NoData: FC<INoDataProps> = ({return (<div className="rounded-xl bg-background-section-burn p-6">- <div className="flex h-10 w-10 items-center justify-center radius-lg border-[0.5px] border-components-card-border bg-components-card-bg-alt shadow-lg backdrop-blur-xs">+ <div className="flex h-10 w-10 items-center justify-center rounded-[10px] border-[0.5px] border-components-card-border bg-components-card-bg-alt shadow-lg backdrop-blur-xs"><RiBookmark3Line className="h-4 w-4 text-text-accent" /></div><div className="mt-3">diff --git a/web/app/components/app/type-selector/index.tsx b/web/app/components/app/type-selector/index.tsxindex cb4db155d42..6b8f8985c21 100644--- a/web/app/components/app/type-selector/index.tsx+++ b/web/app/components/app/type-selector/index.tsx@@ -1,3 +1,4 @@+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine, RiCloseCircleFill, RiExchange2Fill, RiFilter3Line } from '@remixicon/react'import * as React from 'react'import { useState } from 'react'@@ -9,7 +10,6 @@ import {PopoverTrigger,} from '@/app/components/base/ui/popover'import { AppModeEnum } from '@/types/app'-import { cn } from '@/utils/classnames'type AppSelectorProps = {value: Array<AppModeEnum>@@ -44,7 +44,7 @@ const AppTypeSelector = ({ value, onChange }: AppSelectorProps) => {<buttontype="button"aria-label={t('operation.clear', { ns: 'common' })}- className="group absolute right-2 top-1/2 h-4 w-4 -translate-y-1/2"+ className="group absolute top-1/2 right-2 h-4 w-4 -translate-y-1/2"onClick={() => onChange([])}><RiCloseCircleFill@@ -137,7 +137,7 @@ function AppTypeSelectTrigger({ values }: { readonly values: AppSelectorProps['v)}><RiFilter3Line className="h-4 w-4 text-text-tertiary" />- <div className="system-sm-medium min-w-[65px] grow text-center text-text-tertiary">{t('typeSelector.all', { ns: 'app' })}</div>+ <div className="min-w-[65px] grow text-center system-sm-medium text-text-tertiary">{t('typeSelector.all', { ns: 'app' })}</div><RiArrowDownSLine className="h-4 w-4 text-text-tertiary" /></div>)@@ -175,14 +175,14 @@ function AppTypeSelectorItem({ checked, type, onClick }: AppTypeSelectorItemProp<li><buttontype="button"- className="flex w-full items-center space-x-2 rounded-lg py-1 pl-2 pr-1 text-left hover:bg-state-base-hover"+ className="flex w-full items-center space-x-2 rounded-lg py-1 pr-1 pl-2 text-left hover:bg-state-base-hover"aria-pressed={checked}onClick={onClick}><spanaria-hidden="true"className={cn(- 'flex h-4 w-4 shrink-0 items-center justify-center radius-xs shadow-xs shadow-shadow-shadow-3',+ 'flex h-4 w-4 shrink-0 items-center justify-center rounded-sm shadow-xs shadow-shadow-shadow-3',checked? 'bg-components-checkbox-bg text-components-checkbox-icon': 'border border-components-checkbox-border bg-components-checkbox-bg-unchecked',diff --git a/web/app/components/app/workflow-log/list.tsx b/web/app/components/app/workflow-log/list.tsxindex 18ec914c7db..e514962d9b4 100644--- a/web/app/components/app/workflow-log/list.tsx+++ b/web/app/components/app/workflow-log/list.tsx@@ -3,6 +3,7 @@ import type { FC } from 'react'import type { WorkflowAppLogDetail, WorkflowLogsResponse, WorkflowRunTriggeredFrom } from '@/models/log'import type { App } from '@/types/app'import { ArrowDownIcon } from '@heroicons/react/24/outline'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useEffect, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -12,7 +13,6 @@ import Indicator from '@/app/components/header/indicator'import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'import useTimestamp from '@/hooks/use-timestamp'import { AppModeEnum } from '@/types/app'-import { cn } from '@/utils/classnames'import DetailPanel from './detail'import TriggerByDisplay from './trigger-by-display'@@ -59,7 +59,7 @@ const WorkflowAppLogList: FC<ILogs> = ({ logs, appDetail, onRefresh }) => {const statusTdRender = (status: string) => {if (status === 'succeeded') {return (- <div className="system-xs-semibold-uppercase inline-flex items-center gap-1">+ <div className="inline-flex items-center gap-1 system-xs-semibold-uppercase"><Indicator color="green" /><span className="text-util-colors-green-green-600">Success</span></div>@@ -67,7 +67,7 @@ const WorkflowAppLogList: FC<ILogs> = ({ logs, appDetail, onRefresh }) => {}if (status === 'failed') {return (- <div className="system-xs-semibold-uppercase inline-flex items-center gap-1">+ <div className="inline-flex items-center gap-1 system-xs-semibold-uppercase"><Indicator color="red" /><span className="text-util-colors-red-red-600">Failure</span></div>@@ -75,7 +75,7 @@ const WorkflowAppLogList: FC<ILogs> = ({ logs, appDetail, onRefresh }) => {}if (status === 'stopped') {return (- <div className="system-xs-semibold-uppercase inline-flex items-center gap-1">+ <div className="inline-flex items-center gap-1 system-xs-semibold-uppercase"><Indicator color="yellow" /><span className="text-util-colors-warning-warning-600">Stop</span></div>@@ -83,7 +83,7 @@ const WorkflowAppLogList: FC<ILogs> = ({ logs, appDetail, onRefresh }) => {}if (status === 'paused') {return (- <div className="system-xs-semibold-uppercase inline-flex items-center gap-1">+ <div className="inline-flex items-center gap-1 system-xs-semibold-uppercase"><Indicator color="yellow" /><span className="text-util-colors-warning-warning-600">Pending</span></div>@@ -91,7 +91,7 @@ const WorkflowAppLogList: FC<ILogs> = ({ logs, appDetail, onRefresh }) => {}if (status === 'running') {return (- <div className="system-xs-semibold-uppercase inline-flex items-center gap-1">+ <div className="inline-flex items-center gap-1 system-xs-semibold-uppercase"><Indicator color="blue" /><span className="text-util-colors-blue-light-blue-light-600">Running</span></div>@@ -99,7 +99,7 @@ const WorkflowAppLogList: FC<ILogs> = ({ logs, appDetail, onRefresh }) => {}if (status === 'partial-succeeded') {return (- <div className="system-xs-semibold-uppercase inline-flex items-center gap-1">+ <div className="inline-flex items-center gap-1 system-xs-semibold-uppercase"><Indicator color="green" /><span className="text-util-colors-green-green-600">Partial Success</span></div>@@ -121,8 +121,8 @@ const WorkflowAppLogList: FC<ILogs> = ({ logs, appDetail, onRefresh }) => {<table className={cn('mt-2 w-full min-w-[440px] border-collapse border-0')}><thead className="system-xs-medium-uppercase text-text-tertiary"><tr>- <td className="w-5 whitespace-nowrap rounded-l-lg bg-background-section-burn pl-2 pr-1"></td>- <td className="whitespace-nowrap bg-background-section-burn py-1.5 pl-3">+ <td className="w-5 rounded-l-lg bg-background-section-burn pr-1 pl-2 whitespace-nowrap"></td>+ <td className="bg-background-section-burn py-1.5 pl-3 whitespace-nowrap"><div className="flex cursor-pointer items-center hover:text-text-secondary" onClick={handleSort}>{t('table.header.startTime', { ns: 'appLog' })}<ArrowDownIcon@@ -130,11 +130,11 @@ const WorkflowAppLogList: FC<ILogs> = ({ logs, appDetail, onRefresh }) => {/></div></td>- <td className="whitespace-nowrap bg-background-section-burn py-1.5 pl-3">{t('table.header.status', { ns: 'appLog' })}</td>- <td className="whitespace-nowrap bg-background-section-burn py-1.5 pl-3">{t('table.header.runtime', { ns: 'appLog' })}</td>- <td className="whitespace-nowrap bg-background-section-burn py-1.5 pl-3">{t('table.header.tokens', { ns: 'appLog' })}</td>- <td className={cn('whitespace-nowrap bg-background-section-burn py-1.5 pl-3', !isWorkflow ? 'rounded-r-lg' : '')}>{t('table.header.user', { ns: 'appLog' })}</td>- {isWorkflow && <td className="whitespace-nowrap rounded-r-lg bg-background-section-burn py-1.5 pl-3">{t('table.header.triggered_from', { ns: 'appLog' })}</td>}+ <td className="bg-background-section-burn py-1.5 pl-3 whitespace-nowrap">{t('table.header.status', { ns: 'appLog' })}</td>+ <td className="bg-background-section-burn py-1.5 pl-3 whitespace-nowrap">{t('table.header.runtime', { ns: 'appLog' })}</td>+ <td className="bg-background-section-burn py-1.5 pl-3 whitespace-nowrap">{t('table.header.tokens', { ns: 'appLog' })}</td>+ <td className={cn('bg-background-section-burn py-1.5 pl-3 whitespace-nowrap', !isWorkflow ? 'rounded-r-lg' : '')}>{t('table.header.user', { ns: 'appLog' })}</td>+ {isWorkflow && <td className="rounded-r-lg bg-background-section-burn py-1.5 pl-3 whitespace-nowrap">{t('table.header.triggered_from', { ns: 'appLog' })}</td>}</tr></thead><tbody className="system-sm-regular text-text-secondary">diff --git a/web/app/components/apps/app-card.tsx b/web/app/components/apps/app-card.tsxindex 1cc504d7468..f4136b5270d 100644--- a/web/app/components/apps/app-card.tsx+++ b/web/app/components/apps/app-card.tsx@@ -6,6 +6,7 @@ import type { Tag } from '@/app/components/base/tag-management/constant'import type { CreateAppModalProps } from '@/app/components/explore/create-app-modal'import type { EnvironmentVariable } from '@/app/components/workflow/types'import type { App } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import { RiBuildingLine, RiGlobalLine, RiLockLine, RiMoreFill, RiVerifiedBadgeLine } from '@remixicon/react'import * as React from 'react'import { useCallback, useEffect, useId, useMemo, useState } from 'react'@@ -42,7 +43,6 @@ import { useDeleteAppMutation } from '@/service/use-apps'import { fetchWorkflowDraft } from '@/service/workflow'import { AppModeEnum } from '@/types/app'import { getRedirection } from '@/utils/app-redirection'-import { cn } from '@/utils/classnames'import { downloadBlob } from '@/utils/download'import { formatTime } from '@/utils/time'import { basePath } from '@/utils/var'@@ -281,14 +281,14 @@ const AppCard = ({ app, onRefresh }: AppCardProps) => {return (<div className="relative flex w-full flex-col py-1" onMouseLeave={onMouseLeave}><button type="button" className="mx-1 flex h-8 cursor-pointer items-center gap-2 rounded-lg px-3 hover:bg-state-base-hover" onClick={onClickSettings}>- <span className="text-text-secondary system-sm-regular">{t('editApp', { ns: 'app' })}</span>+ <span className="system-sm-regular text-text-secondary">{t('editApp', { ns: 'app' })}</span></button><Divider className="my-1" /><button type="button" className="mx-1 flex h-8 cursor-pointer items-center gap-2 rounded-lg px-3 hover:bg-state-base-hover" onClick={onClickDuplicate}>- <span className="text-text-secondary system-sm-regular">{t('duplicate', { ns: 'app' })}</span>+ <span className="system-sm-regular text-text-secondary">{t('duplicate', { ns: 'app' })}</span></button><button type="button" className="mx-1 flex h-8 cursor-pointer items-center gap-2 rounded-lg px-3 hover:bg-state-base-hover" onClick={onClickExport}>- <span className="text-text-secondary system-sm-regular">{t('export', { ns: 'app' })}</span>+ <span className="system-sm-regular text-text-secondary">{t('export', { ns: 'app' })}</span></button>{(app.mode === AppModeEnum.COMPLETION || app.mode === AppModeEnum.CHAT) && (<>@@ -309,7 +309,7 @@ const AppCard = ({ app, onRefresh }: AppCardProps) => {<><Divider className="my-1" /><button type="button" className="mx-1 flex h-8 cursor-pointer items-center gap-2 rounded-lg px-3 hover:bg-state-base-hover" onClick={onClickInstalledApp}>- <span className="text-text-secondary system-sm-regular">{t('openInExplore', { ns: 'app' })}</span>+ <span className="system-sm-regular text-text-secondary">{t('openInExplore', { ns: 'app' })}</span></button></>)@@ -317,7 +317,7 @@ const AppCard = ({ app, onRefresh }: AppCardProps) => {<><Divider className="my-1" /><button type="button" className="mx-1 flex h-8 cursor-pointer items-center gap-2 rounded-lg px-3 hover:bg-state-base-hover" onClick={onClickInstalledApp}>- <span className="text-text-secondary system-sm-regular">{t('openInExplore', { ns: 'app' })}</span>+ <span className="system-sm-regular text-text-secondary">{t('openInExplore', { ns: 'app' })}</span></button></>)@@ -339,7 +339,7 @@ const AppCard = ({ app, onRefresh }: AppCardProps) => {className="group mx-1 flex h-8 cursor-pointer items-center gap-2 rounded-lg px-3 py-[6px] hover:bg-state-destructive-hover"onClick={onClickDelete}>- <span className="text-text-secondary system-sm-regular group-hover:text-text-destructive">+ <span className="system-sm-regular text-text-secondary group-hover:text-text-destructive">{t('operation.delete', { ns: 'common' })}</span></button>@@ -369,7 +369,7 @@ const AppCard = ({ app, onRefresh }: AppCardProps) => {}}className="group relative col-span-1 inline-flex h-[160px] cursor-pointer flex-col rounded-xl border border-solid border-components-card-border bg-components-card-bg shadow-sm transition-all duration-200 ease-in-out hover:shadow-lg">- <div className="flex h-[66px] shrink-0 grow-0 items-center gap-3 px-[14px] pb-3 pt-[14px]">+ <div className="flex h-[66px] shrink-0 grow-0 items-center gap-3 px-[14px] pt-[14px] pb-3"><div className="relative shrink-0"><AppIconsize="large"@@ -381,10 +381,10 @@ const AppCard = ({ app, onRefresh }: AppCardProps) => {<AppTypeIcon type={app.mode} wrapperClassName="absolute -bottom-0.5 -right-0.5 w-4 h-4 shadow-sm" className="h-3 w-3" /></div><div className="w-0 grow py-px">- <div className="flex items-center text-sm font-semibold leading-5 text-text-secondary">+ <div className="flex items-center text-sm leading-5 font-semibold text-text-secondary"><div className="truncate" title={app.name}>{app.name}</div></div>- <div className="flex items-center gap-1 text-[10px] font-medium leading-[18px] text-text-tertiary">+ <div className="flex items-center gap-1 text-[10px] leading-[18px] font-medium text-text-tertiary"><div className="truncate" title={app.author_name}>{app.author_name}</div><div>·</div><div className="truncate" title={EditTimeText}>{EditTimeText}</div>@@ -421,7 +421,7 @@ const AppCard = ({ app, onRefresh }: AppCardProps) => {{app.description}</div></div>- <div className="absolute bottom-1 left-0 right-0 flex h-[42px] shrink-0 items-center pb-[6px] pl-[14px] pr-[6px] pt-1">+ <div className="absolute right-0 bottom-1 left-0 flex h-[42px] shrink-0 items-center pt-1 pr-[6px] pb-[6px] pl-[14px]">{isCurrentWorkspaceEditor && (<><divdiff --git a/web/app/components/apps/list.tsx b/web/app/components/apps/list.tsxindex 2ef344f816a..5e15102a49a 100644--- a/web/app/components/apps/list.tsx+++ b/web/app/components/apps/list.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { useDebounceFn } from 'ahooks'import { parseAsStringLiteral, useQueryState } from 'nuqs'import { useCallback, useEffect, useRef, useState } from 'react'@@ -17,7 +18,6 @@ import { CheckModal } from '@/hooks/use-pay'import dynamic from '@/next/dynamic'import { useInfiniteAppList } from '@/service/use-apps'import { AppModeEnum, AppModes } from '@/types/app'-import { cn } from '@/utils/classnames'import AppCard from './app-card'import { AppCardSkeleton } from './app-card-skeleton'import Empty from './empty'@@ -115,12 +115,12 @@ const List: FC<Props> = ({const anchorRef = useRef<HTMLDivElement>(null)const options = [- { value: 'all', text: t('types.all', { ns: 'app' }), icon: <span className="i-ri-apps-2-line mr-1 h-[14px] w-[14px]" /> },- { value: AppModeEnum.WORKFLOW, text: t('types.workflow', { ns: 'app' }), icon: <span className="i-ri-exchange-2-line mr-1 h-[14px] w-[14px]" /> },- { value: AppModeEnum.ADVANCED_CHAT, text: t('types.advanced', { ns: 'app' }), icon: <span className="i-ri-message-3-line mr-1 h-[14px] w-[14px]" /> },- { value: AppModeEnum.CHAT, text: t('types.chatbot', { ns: 'app' }), icon: <span className="i-ri-message-3-line mr-1 h-[14px] w-[14px]" /> },- { value: AppModeEnum.AGENT_CHAT, text: t('types.agent', { ns: 'app' }), icon: <span className="i-ri-robot-3-line mr-1 h-[14px] w-[14px]" /> },- { value: AppModeEnum.COMPLETION, text: t('types.completion', { ns: 'app' }), icon: <span className="i-ri-file-4-line mr-1 h-[14px] w-[14px]" /> },+ { value: 'all', text: t('types.all', { ns: 'app' }), icon: <span className="mr-1 i-ri-apps-2-line h-[14px] w-[14px]" /> },+ { value: AppModeEnum.WORKFLOW, text: t('types.workflow', { ns: 'app' }), icon: <span className="mr-1 i-ri-exchange-2-line h-[14px] w-[14px]" /> },+ { value: AppModeEnum.ADVANCED_CHAT, text: t('types.advanced', { ns: 'app' }), icon: <span className="mr-1 i-ri-message-3-line h-[14px] w-[14px]" /> },+ { value: AppModeEnum.CHAT, text: t('types.chatbot', { ns: 'app' }), icon: <span className="mr-1 i-ri-message-3-line h-[14px] w-[14px]" /> },+ { value: AppModeEnum.AGENT_CHAT, text: t('types.agent', { ns: 'app' }), icon: <span className="mr-1 i-ri-robot-3-line h-[14px] w-[14px]" /> },+ { value: AppModeEnum.COMPLETION, text: t('types.completion', { ns: 'app' }), icon: <span className="mr-1 i-ri-file-4-line h-[14px] w-[14px]" /> },]useEffect(() => {@@ -195,7 +195,7 @@ const List: FC<Props> = ({</div>)}- <div className="sticky top-0 z-10 flex flex-wrap items-center justify-between gap-y-2 bg-background-body px-12 pb-5 pt-7">+ <div className="sticky top-0 z-10 flex flex-wrap items-center justify-between gap-y-2 bg-background-body px-12 pt-7 pb-5"><TabSliderNewvalue={activeTab}onChange={(nextValue) => {@@ -223,7 +223,7 @@ const List: FC<Props> = ({</div></div><div className={cn(- 'relative grid grow grid-cols-1 content-start gap-4 px-12 pt-2 sm:grid-cols-1 md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5 2k:grid-cols-6',+ 'relative grid grow grid-cols-1 content-start gap-4 px-12 pt-2 2k:grid-cols-6 sm:grid-cols-1 md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5',!hasAnyApp && 'overflow-hidden',)}>diff --git a/web/app/components/apps/new-app-card.tsx b/web/app/components/apps/new-app-card.tsxindex 31a374f6f7a..fa9d1ac9524 100644--- a/web/app/components/apps/new-app-card.tsx+++ b/web/app/components/apps/new-app-card.tsx@@ -1,5 +1,6 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useEffect, useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -13,7 +14,6 @@ import {useRouter,useSearchParams,} from '@/next/navigation'-import { cn } from '@/utils/classnames'const CreateAppModal = dynamic(() => import('@/app/components/app/create-app-modal'), {ssr: false,@@ -74,19 +74,19 @@ const CreateAppCard = ({)}><div className="grow rounded-t-xl p-2">- <div className="px-6 pb-1 pt-2 text-xs font-medium leading-[18px] text-text-tertiary">{t('createApp', { ns: 'app' })}</div>- <button type="button" className="mb-1 flex w-full cursor-pointer items-center rounded-lg px-6 py-[7px] text-[13px] font-medium leading-[18px] text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary" onClick={() => setShowNewAppModal(true)}>+ <div className="px-6 pt-2 pb-1 text-xs leading-[18px] font-medium text-text-tertiary">{t('createApp', { ns: 'app' })}</div>+ <button type="button" className="mb-1 flex w-full cursor-pointer items-center rounded-lg px-6 py-[7px] text-[13px] leading-[18px] font-medium text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary" onClick={() => setShowNewAppModal(true)}><FilePlus01 className="mr-2 h-4 w-4 shrink-0" />{t('newApp.startFromBlank', { ns: 'app' })}</button>- <button type="button" className="flex w-full cursor-pointer items-center rounded-lg px-6 py-[7px] text-[13px] font-medium leading-[18px] text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary" onClick={() => setShowNewAppTemplateDialog(true)}>+ <button type="button" className="flex w-full cursor-pointer items-center rounded-lg px-6 py-[7px] text-[13px] leading-[18px] font-medium text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary" onClick={() => setShowNewAppTemplateDialog(true)}><FilePlus02 className="mr-2 h-4 w-4 shrink-0" />{t('newApp.startFromTemplate', { ns: 'app' })}</button><buttontype="button"onClick={() => setShowCreateFromDSLModal(true)}- className="flex w-full cursor-pointer items-center rounded-lg px-6 py-[7px] text-[13px] font-medium leading-[18px] text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary"+ className="flex w-full cursor-pointer items-center rounded-lg px-6 py-[7px] text-[13px] leading-[18px] font-medium text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary"><FileArrow01 className="mr-2 h-4 w-4 shrink-0" />{t('importDSL', { ns: 'app' })}diff --git a/web/app/components/base/action-button/index.tsx b/web/app/components/base/action-button/index.tsxindex d182193b007..ec84fa06d87 100644--- a/web/app/components/base/action-button/index.tsx+++ b/web/app/components/base/action-button/index.tsx@@ -1,8 +1,8 @@import type { VariantProps } from 'class-variance-authority'import type { CSSProperties } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { cva } from 'class-variance-authority'import * as React from 'react'-import { cn } from '@/utils/classnames'enum ActionButtonState {Destructive = 'destructive',diff --git a/web/app/components/base/agent-log-modal/detail.tsx b/web/app/components/base/agent-log-modal/detail.tsxindex 45f34c97111..8080c52c467 100644--- a/web/app/components/base/agent-log-modal/detail.tsx+++ b/web/app/components/base/agent-log-modal/detail.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { IChatItem } from '@/app/components/base/chat/chat/type'import type { AgentIteration, AgentLogDetailResponse } from '@/models/log'+import { cn } from '@langgenius/dify-ui/cn'import { uniq } from 'es-toolkit/array'import { flatten } from 'es-toolkit/compat'import * as React from 'react'@@ -11,7 +12,6 @@ import { useStore as useAppStore } from '@/app/components/app/store'import Loading from '@/app/components/base/loading'import { toast } from '@/app/components/base/ui/toast'import { fetchAgentLogDetail } from '@/service/log'-import { cn } from '@/utils/classnames'import ResultPanel from './result'import TracingPanel from './tracing'@@ -67,10 +67,10 @@ const AgentLogDetail: FC<AgentLogDetailProps> = ({ activeTab = 'DETAIL', convers<div className="relative flex grow flex-col">{/* tab */}<div className="flex shrink-0 items-center border-b-[0.5px] border-divider-regular px-4">- <div className={cn('mr-6 cursor-pointer border-b-2 border-transparent py-3 text-[13px] font-semibold leading-[18px] text-text-tertiary', currentTab === 'DETAIL' && '!border-[rgb(21,94,239)] text-text-secondary')} data-active={currentTab === 'DETAIL'} onClick={() => switchTab('DETAIL')}>+ <div className={cn('mr-6 cursor-pointer border-b-2 border-transparent py-3 text-[13px] leading-[18px] font-semibold text-text-tertiary', currentTab === 'DETAIL' && '!border-[rgb(21,94,239)] text-text-secondary')} data-active={currentTab === 'DETAIL'} onClick={() => switchTab('DETAIL')}>{t('detail', { ns: 'runLog' })}</div>- <div className={cn('mr-6 cursor-pointer border-b-2 border-transparent py-3 text-[13px] font-semibold leading-[18px] text-text-tertiary', currentTab === 'TRACING' && '!border-[rgb(21,94,239)] text-text-secondary')} data-active={currentTab === 'TRACING'} onClick={() => switchTab('TRACING')}>+ <div className={cn('mr-6 cursor-pointer border-b-2 border-transparent py-3 text-[13px] leading-[18px] font-semibold text-text-tertiary', currentTab === 'TRACING' && '!border-[rgb(21,94,239)] text-text-secondary')} data-active={currentTab === 'TRACING'} onClick={() => switchTab('TRACING')}>{t('tracing', { ns: 'runLog' })}</div></div>diff --git a/web/app/components/base/agent-log-modal/index.tsx b/web/app/components/base/agent-log-modal/index.tsxindex 6d41273e300..0739d0774a3 100644--- a/web/app/components/base/agent-log-modal/index.tsx+++ b/web/app/components/base/agent-log-modal/index.tsx@@ -1,10 +1,10 @@import type { FC } from 'react'import type { IChatItem } from '@/app/components/base/chat/chat/type'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine } from '@remixicon/react'import { useClickAway } from 'ahooks'import { useEffect, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import AgentLogDetail from './detail'type AgentLogModalProps = {@@ -46,7 +46,7 @@ const AgentLogModal: FC<AgentLogModalProps> = ({ref={ref}><h1 className="text-md shrink-0 px-4 py-1 font-semibold text-text-primary">{t('runDetail.workflowTitle', { ns: 'appLog' })}</h1>- <span className="absolute right-3 top-4 z-20 cursor-pointer p-1" onClick={onCancel}>+ <span className="absolute top-4 right-3 z-20 cursor-pointer p-1" onClick={onCancel}><RiCloseLine className="h-4 w-4 text-text-tertiary" /></span><AgentLogDetaildiff --git a/web/app/components/base/agent-log-modal/iteration.tsx b/web/app/components/base/agent-log-modal/iteration.tsxindex 85e782436cc..ebfb863f6f3 100644--- a/web/app/components/base/agent-log-modal/iteration.tsx+++ b/web/app/components/base/agent-log-modal/iteration.tsx@@ -1,9 +1,9 @@'use client'import type { FC } from 'react'import type { AgentIteration } from '@/models/log'+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'import Divider from '@/app/components/base/divider'-import { cn } from '@/utils/classnames'import ToolCall from './tool-call'type Props = {@@ -19,10 +19,10 @@ const Iteration: FC<Props> = ({ iterationInfo, isFinal, index }) => {<div className={cn('px-4 py-2')}><div className="flex items-center">{isFinal && (- <div className="mr-3 shrink-0 text-xs font-semibold leading-[18px] text-text-tertiary">{t('agentLogDetail.finalProcessing', { ns: 'appLog' })}</div>+ <div className="mr-3 shrink-0 text-xs leading-[18px] font-semibold text-text-tertiary">{t('agentLogDetail.finalProcessing', { ns: 'appLog' })}</div>)}{!isFinal && (- <div className="mr-3 shrink-0 text-xs font-semibold leading-[18px] text-text-tertiary">{`${t('agentLogDetail.iteration', { ns: 'appLog' }).toUpperCase()} ${index}`}</div>+ <div className="mr-3 shrink-0 text-xs leading-[18px] font-semibold text-text-tertiary">{`${t('agentLogDetail.iteration', { ns: 'appLog' }).toUpperCase()} ${index}`}</div>)}<Divider bgStyle="gradient" className="mx-0 h-px grow" /></div>diff --git a/web/app/components/base/agent-log-modal/tool-call.tsx b/web/app/components/base/agent-log-modal/tool-call.tsxindex 4751978575f..2059adf6180 100644--- a/web/app/components/base/agent-log-modal/tool-call.tsx+++ b/web/app/components/base/agent-log-modal/tool-call.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { ToolCall } from '@/models/log'+import { cn } from '@langgenius/dify-ui/cn'import {RiCheckboxCircleLine,RiErrorWarningLine,@@ -10,10 +11,9 @@ import { ChevronRight } from '@/app/components/base/icons/src/vender/line/arrowsimport BlockIcon from '@/app/components/workflow/block-icon'import CodeEditor from '@/app/components/workflow/nodes/_base/components/editor/code-editor'import { CodeLanguage } from '@/app/components/workflow/nodes/code/types'-import { BlockEnum } from '@/app/components/workflow/types'+import { BlockEnum } from '@/app/components/workflow/types'import { useLocale } from '@/context/i18n'-import { cn } from '@/utils/classnames'type Props = {toolCall: ToolCall@@ -51,7 +51,7 @@ const ToolCallItem: FC<Props> = ({ toolCall, isLLM = false, isFinal, tokens, obs<div className={cn('group rounded-2xl border border-components-panel-border bg-background-default shadow-xs transition-all hover:shadow-md')}><divclassName={cn(- 'flex cursor-pointer items-center py-3 pl-[6px] pr-3',+ 'flex cursor-pointer items-center py-3 pr-3 pl-[6px]',!collapseState && 'pb-2!',)}onClick={() => setCollapseState(!collapseState)}@@ -65,7 +65,7 @@ const ToolCallItem: FC<Props> = ({ toolCall, isLLM = false, isFinal, tokens, obs<BlockIcon className={cn('mr-2 shrink-0')} type={isLLM ? BlockEnum.LLM : BlockEnum.Tool} toolIcon={toolCall.tool_icon} /><divclassName={cn(- 'grow truncate text-[13px] font-semibold leading-[16px] text-text-secondary',+ 'grow truncate text-[13px] leading-[16px] font-semibold text-text-secondary',)}title={toolName}>diff --git a/web/app/components/base/alert.tsx b/web/app/components/base/alert.tsxindex 93e9d22e51b..8dfe0e4ff5d 100644--- a/web/app/components/base/alert.tsx+++ b/web/app/components/base/alert.tsx@@ -1,8 +1,8 @@+import { cn } from '@langgenius/dify-ui/cn'import { cva } from 'class-variance-authority'import {memo,} from 'react'-import { cn } from '@/utils/classnames'type Props = {type?: 'info'@@ -37,7 +37,7 @@ const Alert: React.FC<Props> = ({<span className="i-ri-information-2-fill text-text-accent" data-testid="info-icon" /></div><div className="p-1">- <div className="text-text-secondary system-xs-regular" data-testid="msg-container">+ <div className="system-xs-regular text-text-secondary" data-testid="msg-container">{message}</div></div>diff --git a/web/app/components/base/answer-icon/index.tsx b/web/app/components/base/answer-icon/index.tsxindex 1ae1b4f0766..36dd83be722 100644--- a/web/app/components/base/answer-icon/index.tsx+++ b/web/app/components/base/answer-icon/index.tsx@@ -3,8 +3,8 @@import type { FC } from 'react'import type { AppIconType } from '@/types/app'import data from '@emoji-mart/data'+import { cn } from '@langgenius/dify-ui/cn'import { init } from 'emoji-mart'-import { cn } from '@/utils/classnames'init({ data })diff --git a/web/app/components/base/app-icon-picker/ImageInput.tsx b/web/app/components/base/app-icon-picker/ImageInput.tsxindex 21ceae0fcf2..92a3f8a9f67 100644--- a/web/app/components/base/app-icon-picker/ImageInput.tsx+++ b/web/app/components/base/app-icon-picker/ImageInput.tsx@@ -2,12 +2,12 @@import type { ChangeEvent, FC } from 'react'import type { Area, CropperProps } from 'react-easy-crop'+import { cn } from '@langgenius/dify-ui/cn'import { createRef, useEffect, useState } from 'react'import Cropper from 'react-easy-crop'import { useTranslation } from 'react-i18next'-import { ALLOW_FILE_EXTENSIONS } from '@/types/app'-import { cn } from '@/utils/classnames'+import { ALLOW_FILE_EXTENSIONS } from '@/types/app'import { ImagePlus } from '../icons/src/vender/line/images'import { useDraggableUploader } from './hooks'import { checkIsAnimatedImage } from './utils'@@ -73,7 +73,7 @@ const ImageInput: FC<UploaderProps> = ({const handleShowImage = () => {if (isAnimatedImage) {return (- // eslint-disable-next-line next/no-img-element+<img src={inputImage?.url} alt="" data-testid="animated-image" />)}diff --git a/web/app/components/base/app-icon-picker/index.tsx b/web/app/components/base/app-icon-picker/index.tsxindex 7df6699f408..f90d78a9838 100644--- a/web/app/components/base/app-icon-picker/index.tsx+++ b/web/app/components/base/app-icon-picker/index.tsx@@ -2,13 +2,13 @@ import type { FC } from 'react'import type { Area } from 'react-easy-crop'import type { OnImageInput } from './ImageInput'import type { AppIconType, ImageFile } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import { RiImageCircleAiLine } from '@remixicon/react'import { noop } from 'es-toolkit/function'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'import { DISABLE_UPLOAD_IMAGE_AS_ICON } from '@/config'-import { cn } from '@/utils/classnames'import Divider from '../divider'import EmojiPickerInner from '../emoji-picker/Inner'import { useLocalFileUploader } from '../image-uploader/hooks'diff --git a/web/app/components/base/app-icon/__tests__/index.spec.tsx b/web/app/components/base/app-icon/__tests__/index.spec.tsxindex f408e958625..4bbea1e0ae5 100644--- a/web/app/components/base/app-icon/__tests__/index.spec.tsx+++ b/web/app/components/base/app-icon/__tests__/index.spec.tsx@@ -66,7 +66,7 @@ describe('AppIcon', () => {it('applies size classes correctly', () => {const { container: xsContainer } = render(<AppIcon size="xs" />)- expect(xsContainer.firstChild).toHaveClass('w-4 h-4 radius-xs')+ expect(xsContainer.firstChild).toHaveClass('w-4 h-4 rounded-sm')const { container: tinyContainer } = render(<AppIcon size="tiny" />)expect(tinyContainer.firstChild).toHaveClass('w-6 h-6 rounded-md')@@ -75,10 +75,10 @@ describe('AppIcon', () => {expect(smallContainer.firstChild).toHaveClass('w-8 h-8 rounded-lg')const { container: mediumContainer } = render(<AppIcon size="medium" />)- expect(mediumContainer.firstChild).toHaveClass('w-9 h-9 radius-lg')+ expect(mediumContainer.firstChild).toHaveClass('w-9 h-9 rounded-[10px]')const { container: largeContainer } = render(<AppIcon size="large" />)- expect(largeContainer.firstChild).toHaveClass('w-10 h-10 radius-lg')+ expect(largeContainer.firstChild).toHaveClass('w-10 h-10 rounded-[10px]')const { container: xlContainer } = render(<AppIcon size="xl" />)expect(xlContainer.firstChild).toHaveClass('w-12 h-12 rounded-xl')diff --git a/web/app/components/base/app-icon/index.tsx b/web/app/components/base/app-icon/index.tsxindex d4eaeb69d96..5c15179446f 100644--- a/web/app/components/base/app-icon/index.tsx+++ b/web/app/components/base/app-icon/index.tsx@@ -2,13 +2,13 @@import type { FC } from 'react'import type { AppIconType } from '@/types/app'import data from '@emoji-mart/data'+import { cn } from '@langgenius/dify-ui/cn'import { RiEditLine } from '@remixicon/react'import { useHover } from 'ahooks'import { cva } from 'class-variance-authority'import { init } from 'emoji-mart'import * as React from 'react'import { useRef } from 'react'-import { cn } from '@/utils/classnames'init({ data })@@ -26,17 +26,17 @@ type AppIconProps = {onClick?: () => void}const appIconVariants = cva(- 'flex items-center justify-center relative grow-0 shrink-0 overflow-hidden leading-none border-[0.5px] border-divider-regular',+ 'relative flex shrink-0 grow-0 items-center justify-center overflow-hidden border-[0.5px] border-divider-regular leading-none',{variants: {size: {- xs: 'w-4 h-4 text-xs radius-xs',- tiny: 'w-6 h-6 text-base rounded-md',- small: 'w-8 h-8 text-xl rounded-lg',- medium: 'w-9 h-9 text-[22px] radius-lg',- large: 'w-10 h-10 text-[24px] radius-lg',- xl: 'w-12 h-12 text-[28px] rounded-xl',- xxl: 'w-14 h-14 text-[32px] rounded-2xl',+ xs: 'h-4 w-4 rounded-sm text-xs',+ tiny: 'h-6 w-6 rounded-md text-base',+ small: 'h-8 w-8 rounded-lg text-xl',+ medium: 'h-9 w-9 rounded-[10px] text-[22px]',+ large: 'h-10 w-10 rounded-[10px] text-[24px]',+ xl: 'h-12 w-12 rounded-xl text-[28px]',+ xxl: 'h-14 w-14 rounded-2xl text-[32px]',},rounded: {true: 'rounded-full',@@ -49,17 +49,17 @@ const appIconVariants = cva(},)const EditIconWrapperVariants = cva(- 'absolute left-0 top-0 z-10 flex items-center justify-center bg-background-overlay-alt',+ 'absolute top-0 left-0 z-10 flex items-center justify-center bg-background-overlay-alt',{variants: {size: {- xs: 'w-4 h-4 radius-xs',- tiny: 'w-6 h-6 rounded-md',- small: 'w-8 h-8 rounded-lg',- medium: 'w-9 h-9 radius-lg',- large: 'w-10 h-10 radius-lg',- xl: 'w-12 h-12 rounded-xl',- xxl: 'w-14 h-14 rounded-2xl',+ xs: 'h-4 w-4 rounded-sm',+ tiny: 'h-6 w-6 rounded-md',+ small: 'h-8 w-8 rounded-lg',+ medium: 'h-9 w-9 rounded-[10px]',+ large: 'h-10 w-10 rounded-[10px]',+ xl: 'h-12 w-12 rounded-xl',+ xxl: 'h-14 w-14 rounded-2xl',},rounded: {true: 'rounded-full',diff --git a/web/app/components/base/app-unavailable.tsx b/web/app/components/base/app-unavailable.tsxindex 3a7593b0f7a..a51496d236d 100644--- a/web/app/components/base/app-unavailable.tsx+++ b/web/app/components/base/app-unavailable.tsx@@ -1,8 +1,8 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'type IAppUnavailableProps = {code?: number | string@@ -22,7 +22,7 @@ const AppUnavailable: FC<IAppUnavailableProps> = ({return (<div className={cn('flex h-screen w-screen items-center justify-center', className)}><h1- className="mr-5 h-[50px] shrink-0 pr-5 text-[24px] font-medium leading-[50px]"+ className="mr-5 h-[50px] shrink-0 pr-5 text-[24px] leading-[50px] font-medium"style={{borderRight: '1px solid rgba(0,0,0,.3)',}}diff --git a/web/app/components/base/audio-gallery/AudioPlayer.tsx b/web/app/components/base/audio-gallery/AudioPlayer.tsxindex b1189bf3145..9174b13356b 100644--- a/web/app/components/base/audio-gallery/AudioPlayer.tsx+++ b/web/app/components/base/audio-gallery/AudioPlayer.tsx@@ -1,10 +1,10 @@+import { cn } from '@langgenius/dify-ui/cn'import { t } from 'i18next'import * as React from 'react'import { useCallback, useEffect, useRef, useState } from 'react'import { toast } from '@/app/components/base/ui/toast'import useTheme from '@/hooks/use-theme'import { Theme } from '@/types/app'-import { cn } from '@/utils/classnames'type AudioPlayerProps = {src?: string // Keep backward compatibility@@ -240,7 +240,7 @@ const AudioPlayer: React.FC<AudioPlayerProps> = ({ src, srcs }) => {}}, [duration])return (- <div className="flex h-9 min-w-[240px] max-w-[420px] items-center gap-2 radius-lg border border-components-panel-border-subtle bg-components-chat-input-audio-bg-alt p-2 shadow-xs backdrop-blur-xs">+ <div className="flex h-9 max-w-[420px] min-w-[240px] items-center gap-2 rounded-[10px] border border-components-panel-border-subtle bg-components-chat-input-audio-bg-alt p-2 shadow-xs backdrop-blur-xs"><audio ref={audioRef} src={src} preload="auto" data-testid="audio-player">{/* If srcs array is provided, render multiple source elements */}{srcs && srcs.map((srcUrl, index) => (<source key={index} src={srcUrl} />))}@@ -253,12 +253,12 @@ const AudioPlayer: React.FC<AudioPlayerProps> = ({ src, srcs }) => {<div className={cn(isAudioAvailable && 'grow')} hidden={!isAudioAvailable}><div className="flex h-8 items-center justify-center"><canvas ref={canvasRef} data-testid="waveform-canvas" className="relative flex h-6 w-full grow cursor-pointer items-center justify-center" onClick={handleCanvasInteraction} onMouseMove={handleMouseMove} onMouseDown={handleCanvasInteraction} onTouchMove={handleMouseMove} onTouchStart={handleCanvasInteraction} />- <div className="inline-flex min-w-[50px] items-center justify-center text-text-accent-secondary system-xs-medium">- <span className="radius-lg px-0.5 py-1">{formatTime(duration)}</span>+ <div className="inline-flex min-w-[50px] items-center justify-center system-xs-medium text-text-accent-secondary">+ <span className="rounded-[10px] px-0.5 py-1">{formatTime(duration)}</span></div></div></div>- <div className="absolute left-0 top-0 flex h-full w-full items-center justify-center text-text-quaternary" hidden={isAudioAvailable}>{t('operation.audioSourceUnavailable', { ns: 'common' })}</div>+ <div className="absolute top-0 left-0 flex h-full w-full items-center justify-center text-text-quaternary" hidden={isAudioAvailable}>{t('operation.audioSourceUnavailable', { ns: 'common' })}</div></div>)}diff --git a/web/app/components/base/auto-height-textarea/index.tsx b/web/app/components/base/auto-height-textarea/index.tsxindex 43241812faf..e409b71e695 100644--- a/web/app/components/base/auto-height-textarea/index.tsx+++ b/web/app/components/base/auto-height-textarea/index.tsx@@ -1,6 +1,6 @@+import { cn } from '@langgenius/dify-ui/cn'import { useEffect, useRef } from 'react'import { sleep } from '@/utils'-import { cn } from '@/utils/classnames'type IProps = {placeholder?: string@@ -69,7 +69,7 @@ const AutoHeightTextarea = ((<div className={`relative ${wrapperClassName}`}><div- className={cn(className, 'invisible overflow-y-auto whitespace-pre-wrap break-all')}+ className={cn(className, 'invisible overflow-y-auto break-all whitespace-pre-wrap')}style={{minHeight,maxHeight,diff --git a/web/app/components/base/badge.tsx b/web/app/components/base/badge.tsxindex c9c013211ed..b2cbbe0292d 100644--- a/web/app/components/base/badge.tsx+++ b/web/app/components/base/badge.tsx@@ -1,6 +1,6 @@import type { ReactNode } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'-import { cn } from '@/utils/classnames'type BadgeProps = {className?: string@@ -20,13 +20,13 @@ const Badge = ({return (<divclassName={cn(- 'relative inline-flex h-5 items-center whitespace-nowrap rounded-[5px] border border-divider-deep px-[5px] leading-3 text-text-tertiary',+ 'relative inline-flex h-5 items-center rounded-[5px] border border-divider-deep px-[5px] leading-3 whitespace-nowrap text-text-tertiary',uppercase ? 'system-2xs-medium-uppercase' : 'system-xs-medium',className,)}>{hasRedCornerMark && (- <div className="absolute right-[-2px] top-[-2px] h-1.5 w-1.5 radius-2xs border border-components-badge-status-light-error-border-inner bg-components-badge-status-light-error-bg shadow-sm">+ <div className="absolute top-[-2px] right-[-2px] h-1.5 w-1.5 rounded-xs border border-components-badge-status-light-error-border-inner bg-components-badge-status-light-error-bg shadow-sm"></div>)}{children || text}diff --git a/web/app/components/base/badge/index.tsx b/web/app/components/base/badge/index.tsxindex 62029c30581..f2453060486 100644--- a/web/app/components/base/badge/index.tsx+++ b/web/app/components/base/badge/index.tsx@@ -1,8 +1,8 @@import type { VariantProps } from 'class-variance-authority'import type { CSSProperties, ReactNode } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { cva } from 'class-variance-authority'import * as React from 'react'-import { cn } from '@/utils/classnames'enum BadgeState {Warning = 'warning',diff --git a/web/app/components/base/block-input/index.tsx b/web/app/components/base/block-input/index.tsxindex cf832d9f94b..3a467e97dce 100644--- a/web/app/components/base/block-input/index.tsx+++ b/web/app/components/base/block-input/index.tsx@@ -1,10 +1,10 @@'use client'import type { ChangeEvent, FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback, useEffect, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import { checkKeys } from '@/utils/var'import VarHighlight from '../../app/configuration/base/var-highlight'import { toast } from '../ui/toast'@@ -63,7 +63,7 @@ const BlockInput: FC<IBlockInputProps> = ({}, [isEditing])const style = cn({- 'block h-full w-full break-all border-0 px-4 py-2 text-sm text-gray-900 outline-0': true,+ 'block h-full w-full border-0 px-4 py-2 text-sm break-all text-gray-900 outline-0': true,'block-input--editing': isEditing,})diff --git a/web/app/components/base/carousel/index.tsx b/web/app/components/base/carousel/index.tsxindex 5c31776ae9d..52486b9751a 100644--- a/web/app/components/base/carousel/index.tsx+++ b/web/app/components/base/carousel/index.tsx@@ -1,9 +1,9 @@/* eslint-disable react-hooks-extra/no-direct-set-state-in-use-effect */import type { UseEmblaCarouselType } from 'embla-carousel-react'+import { cn } from '@langgenius/dify-ui/cn'import Autoplay from 'embla-carousel-autoplay'import useEmblaCarousel from 'embla-carousel-react'import * as React from 'react'-import { cn } from '@/utils/classnames'type CarouselApi = UseEmblaCarouselType[1]type UseCarouselParameters = Parameters<typeof useEmblaCarousel>diff --git a/web/app/components/base/chat/chat-with-history/chat-wrapper.tsx b/web/app/components/base/chat/chat-with-history/chat-wrapper.tsxindex 9c3a7cc8f73..1b59618c8ce 100644--- a/web/app/components/base/chat/chat-with-history/chat-wrapper.tsx+++ b/web/app/components/base/chat/chat-with-history/chat-wrapper.tsx@@ -5,6 +5,7 @@ import type {ChatItemInTree,OnSend,} from '../types'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback, useEffect, useMemo, useState } from 'react'import AnswerIcon from '@/app/components/base/answer-icon'import AppIcon from '@/app/components/base/app-icon'@@ -22,7 +23,6 @@ import {} from '@/service/share'import { submitHumanInputForm as submitHumanInputFormService } from '@/service/workflow'import { TransferMethod } from '@/types/app'-import { cn } from '@/utils/classnames'import { formatBooleanInputs } from '@/utils/model-config'import Chat from '../chat'import { useChat } from '../chat/hooks'@@ -265,7 +265,7 @@ const ChatWrapper = () => {imageUrl={appData?.site.icon_url}/><div className="w-0 grow">- <div className="body-lg-regular grow rounded-2xl bg-chat-bubble-bg px-4 py-3 text-text-primary">+ <div className="grow rounded-2xl bg-chat-bubble-bg px-4 py-3 body-lg-regular text-text-primary"><Markdown content={welcomeMessage.content} /><SuggestedQuestions item={welcomeMessage} /></div>diff --git a/web/app/components/base/chat/chat-with-history/header/index.tsx b/web/app/components/base/chat/chat-with-history/header/index.tsxindex 3b8ef471c84..b0361c69a6a 100644--- a/web/app/components/base/chat/chat-with-history/header/index.tsx+++ b/web/app/components/base/chat/chat-with-history/header/index.tsx@@ -1,4 +1,5 @@import type { ConversationItem } from '@/models/share'+import { cn } from '@langgenius/dify-ui/cn'import {RiEditBoxLine,RiLayoutRight2Line,@@ -20,7 +21,6 @@ import {AlertDialogDescription,AlertDialogTitle,} from '@/app/components/base/ui/alert-dialog'-import { cn } from '@/utils/classnames'import {useChatWithHistoryContext,} from '../context'diff --git a/web/app/components/base/chat/chat-with-history/header/operation.tsx b/web/app/components/base/chat/chat-with-history/header/operation.tsxindex eb0ec760439..d61af1f6a11 100644--- a/web/app/components/base/chat/chat-with-history/header/operation.tsx+++ b/web/app/components/base/chat/chat-with-history/header/operation.tsx@@ -1,6 +1,7 @@'use client'import type { Placement } from '@floating-ui/react'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowDownSLine,} from '@remixicon/react'@@ -8,7 +9,6 @@ import * as React from 'react'import { useState } from 'react'import { useTranslation } from 'react-i18next'import { PortalToFollowElem, PortalToFollowElemContent, PortalToFollowElemTrigger } from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'type Props = {title: string@@ -46,23 +46,23 @@ const Operation: FC<Props> = ({><div className={cn('flex cursor-pointer items-center rounded-lg p-1.5 pl-2 text-text-secondary hover:bg-state-base-hover', open && 'bg-state-base-hover')}><div className="system-md-semibold">{title}</div>- <RiArrowDownSLine className="h-4 w-4 " />+ <RiArrowDownSLine className="h-4 w-4" /></div></PortalToFollowElemTrigger><PortalToFollowElemContent className="z-50"><divclassName="min-w-[120px] rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur p-1 shadow-lg backdrop-blur-xs">- <div className={cn('system-md-regular flex cursor-pointer items-center space-x-1 rounded-lg px-3 py-1.5 text-text-secondary hover:bg-state-base-hover')} onClick={togglePin}>+ <div className={cn('flex cursor-pointer items-center space-x-1 rounded-lg px-3 py-1.5 system-md-regular text-text-secondary hover:bg-state-base-hover')} onClick={togglePin}><span className="grow">{isPinned ? t('sidebar.action.unpin', { ns: 'explore' }) : t('sidebar.action.pin', { ns: 'explore' })}</span></div>{isShowRenameConversation && (- <div className={cn('system-md-regular flex cursor-pointer items-center space-x-1 rounded-lg px-3 py-1.5 text-text-secondary hover:bg-state-base-hover')} onClick={onRenameConversation}>+ <div className={cn('flex cursor-pointer items-center space-x-1 rounded-lg px-3 py-1.5 system-md-regular text-text-secondary hover:bg-state-base-hover')} onClick={onRenameConversation}><span className="grow">{t('sidebar.action.rename', { ns: 'explore' })}</span></div>)}{isShowDelete && (- <div className={cn('system-md-regular group flex cursor-pointer items-center space-x-1 rounded-lg px-3 py-1.5 text-text-secondary hover:bg-state-destructive-hover hover:text-text-destructive')} onClick={onDelete}>+ <div className={cn('group flex cursor-pointer items-center space-x-1 rounded-lg px-3 py-1.5 system-md-regular text-text-secondary hover:bg-state-destructive-hover hover:text-text-destructive')} onClick={onDelete}><span className="grow">{t('sidebar.action.delete', { ns: 'explore' })}</span></div>)}diff --git a/web/app/components/base/chat/chat-with-history/index.tsx b/web/app/components/base/chat/chat-with-history/index.tsxindex 562502a573a..41cdeaa9193 100644--- a/web/app/components/base/chat/chat-with-history/index.tsx+++ b/web/app/components/base/chat/chat-with-history/index.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { InstalledApp } from '@/models/explore'+import { cn } from '@langgenius/dify-ui/cn'import {useEffect,useState,@@ -8,7 +9,6 @@ import {import Loading from '@/app/components/base/loading'import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'import useDocumentTitle from '@/hooks/use-document-title'-import { cn } from '@/utils/classnames'import { useThemeContext } from '../embedded-chatbot/theme/theme-context'import ChatWrapper from './chat-wrapper'import {diff --git a/web/app/components/base/chat/chat-with-history/inputs-form/content.tsx b/web/app/components/base/chat/chat-with-history/inputs-form/content.tsxindex b2f18923870..127cf2c2529 100644--- a/web/app/components/base/chat/chat-with-history/inputs-form/content.tsx+++ b/web/app/components/base/chat/chat-with-history/inputs-form/content.tsx@@ -125,7 +125,7 @@ const InputsFormContent = ({ showTip }: Props) => {value={inputsFormValue?.[form.variable] || ''}onChange={v => handleFormChange(form.variable, v)}noWrapper- className="bg h-[80px] overflow-y-auto radius-lg bg-components-input-bg-normal p-1"+ className="bg h-[80px] overflow-y-auto rounded-[10px] bg-components-input-bg-normal p-1"placeholder={<div className="whitespace-pre">{form.json_schema}</div>}diff --git a/web/app/components/base/chat/chat-with-history/inputs-form/index.tsx b/web/app/components/base/chat/chat-with-history/inputs-form/index.tsxindex 2da6b9f8e0e..def5545a3fe 100644--- a/web/app/components/base/chat/chat-with-history/inputs-form/index.tsx+++ b/web/app/components/base/chat/chat-with-history/inputs-form/index.tsx@@ -1,10 +1,10 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import InputsFormContent from '@/app/components/base/chat/chat-with-history/inputs-form/content'import Divider from '@/app/components/base/divider'import { Message3Fill } from '@/app/components/base/icons/src/public/other'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import { useChatWithHistoryContext } from '../context'type Props = {diff --git a/web/app/components/base/chat/chat-with-history/sidebar/index.tsx b/web/app/components/base/chat/chat-with-history/sidebar/index.tsxindex 919ddba551a..1627d5890c0 100644--- a/web/app/components/base/chat/chat-with-history/sidebar/index.tsx+++ b/web/app/components/base/chat/chat-with-history/sidebar/index.tsx@@ -1,4 +1,5 @@import type { ConversationItem } from '@/models/share'+import { cn } from '@langgenius/dify-ui/cn'import {RiEditBoxLine,RiExpandRightLine,@@ -14,7 +15,6 @@ import AppIcon from '@/app/components/base/app-icon'import List from '@/app/components/base/chat/chat-with-history/sidebar/list'import RenameModal from '@/app/components/base/chat/chat-with-history/sidebar/rename-modal'import DifyLogo from '@/app/components/base/logo/dify-logo'-import { Button } from '@/app/components/base/ui/button'import {AlertDialog,AlertDialogActions,@@ -24,9 +24,9 @@ import {AlertDialogDescription,AlertDialogTitle,} from '@/app/components/base/ui/alert-dialog'+import { Button } from '@/app/components/base/ui/button'import MenuDropdown from '@/app/components/share/text-generation/menu-dropdown'import { useGlobalPublicStore } from '@/context/global-public-context'-import { cn } from '@/utils/classnames'import { useChatWithHistoryContext } from '../context'type Props = {diff --git a/web/app/components/base/chat/chat-with-history/sidebar/item.tsx b/web/app/components/base/chat/chat-with-history/sidebar/item.tsxindex 6be21846b11..54eb6bd6d63 100644--- a/web/app/components/base/chat/chat-with-history/sidebar/item.tsx+++ b/web/app/components/base/chat/chat-with-history/sidebar/item.tsx@@ -1,12 +1,12 @@import type { FC } from 'react'import type { ConversationItem } from '@/models/share'+import { cn } from '@langgenius/dify-ui/cn'import { useHover } from 'ahooks'import {memo,useRef,} from 'react'import Operation from '@/app/components/base/chat/chat-with-history/sidebar/operation'-import { cn } from '@/utils/classnames'type ItemProps = {isPin?: boolean@@ -31,7 +31,7 @@ const Item: FC<ItemProps> = ({ref={ref}key={item.id}className={cn(- 'system-sm-medium group flex cursor-pointer rounded-lg p-1 pl-3 text-components-menu-item-text hover:bg-state-base-hover',+ 'group flex cursor-pointer rounded-lg p-1 pl-3 system-sm-medium text-components-menu-item-text hover:bg-state-base-hover',isSelected && 'bg-state-accent-active text-text-accent hover:bg-state-accent-active',)}onClick={() => onChangeConversation(item.id)}diff --git a/web/app/components/base/chat/chat-with-history/sidebar/operation.tsx b/web/app/components/base/chat/chat-with-history/sidebar/operation.tsxindex 711238c2d05..18ff3e4d624 100644--- a/web/app/components/base/chat/chat-with-history/sidebar/operation.tsx+++ b/web/app/components/base/chat/chat-with-history/sidebar/operation.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {RiDeleteBinLine,RiEditLine,@@ -13,7 +14,6 @@ import { useEffect, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'import ActionButton, { ActionButtonState } from '@/app/components/base/action-button'import { PortalToFollowElem, PortalToFollowElemContent, PortalToFollowElemTrigger } from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'type Props = {isActive?: boolean@@ -77,19 +77,19 @@ const Operation: FC<Props> = ({e.stopPropagation()}}>- <div className={cn('system-md-regular flex cursor-pointer items-center space-x-1 rounded-lg px-2 py-1.5 text-text-secondary hover:bg-state-base-hover')} onClick={togglePin}>+ <div className={cn('flex cursor-pointer items-center space-x-1 rounded-lg px-2 py-1.5 system-md-regular text-text-secondary hover:bg-state-base-hover')} onClick={togglePin}>{isPinned && <RiUnpinLine className="h-4 w-4 shrink-0 text-text-tertiary" />}{!isPinned && <RiPushpinLine className="h-4 w-4 shrink-0 text-text-tertiary" />}<span className="grow">{isPinned ? t('sidebar.action.unpin', { ns: 'explore' }) : t('sidebar.action.pin', { ns: 'explore' })}</span></div>{isShowRenameConversation && (- <div className={cn('system-md-regular flex cursor-pointer items-center space-x-1 rounded-lg px-2 py-1.5 text-text-secondary hover:bg-state-base-hover')} onClick={onRenameConversation}>+ <div className={cn('flex cursor-pointer items-center space-x-1 rounded-lg px-2 py-1.5 system-md-regular text-text-secondary hover:bg-state-base-hover')} onClick={onRenameConversation}><RiEditLine className="h-4 w-4 shrink-0 text-text-tertiary" /><span className="grow">{t('sidebar.action.rename', { ns: 'explore' })}</span></div>)}{isShowDelete && (- <div className={cn('system-md-regular group flex cursor-pointer items-center space-x-1 rounded-lg px-2 py-1.5 text-text-secondary hover:bg-state-destructive-hover hover:text-text-destructive')} onClick={onDelete}>+ <div className={cn('group flex cursor-pointer items-center space-x-1 rounded-lg px-2 py-1.5 system-md-regular text-text-secondary hover:bg-state-destructive-hover hover:text-text-destructive')} onClick={onDelete}><RiDeleteBinLine className={cn('h-4 w-4 shrink-0 text-text-tertiary group-hover:text-text-destructive')} /><span className="grow">{t('sidebar.action.delete', { ns: 'explore' })}</span></div>diff --git a/web/app/components/base/chat/chat/answer/basic-content.tsx b/web/app/components/base/chat/chat/answer/basic-content.tsxindex b75ec55fdb3..962966c8d5a 100644--- a/web/app/components/base/chat/chat/answer/basic-content.tsx+++ b/web/app/components/base/chat/chat/answer/basic-content.tsx@@ -1,8 +1,8 @@import type { FC } from 'react'import type { ChatItem } from '../../types'+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'import { Markdown } from '@/app/components/base/markdown'-import { cn } from '@/utils/classnames'type BasicContentProps = {item: ChatItemdiff --git a/web/app/components/base/chat/chat/answer/human-input-content/content-wrapper.tsx b/web/app/components/base/chat/chat/answer/human-input-content/content-wrapper.tsxindex 85d8affb71a..e5449ba84f2 100644--- a/web/app/components/base/chat/chat/answer/human-input-content/content-wrapper.tsx+++ b/web/app/components/base/chat/chat/answer/human-input-content/content-wrapper.tsx@@ -1,7 +1,7 @@+import { cn } from '@langgenius/dify-ui/cn'import { useCallback, useState } from 'react'import BlockIcon from '@/app/components/workflow/block-icon'import { BlockEnum } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'type ContentWrapperProps = {nodeTitle: string@@ -34,7 +34,7 @@ const ContentWrapper = ({<BlockIcon type={BlockEnum.HumanInput} className="shrink-0" />{/* node name */}<div- className="grow truncate text-text-primary system-sm-semibold-uppercase"+ className="grow truncate system-sm-semibold-uppercase text-text-primary"title={nodeTitle}>{nodeTitle}diff --git a/web/app/components/base/chat/chat/answer/human-input-content/expiration-time.tsx b/web/app/components/base/chat/chat/answer/human-input-content/expiration-time.tsxindex c3a2f2fdfaa..4ccac9477f8 100644--- a/web/app/components/base/chat/chat/answer/human-input-content/expiration-time.tsx+++ b/web/app/components/base/chat/chat/answer/human-input-content/expiration-time.tsx@@ -1,7 +1,7 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'import { useLocale } from '@/context/i18n'-import { cn } from '@/utils/classnames'import { getRelativeTime, isRelativeTimeSameOrAfter } from './utils'type ExpirationTimeProps = {@@ -20,7 +20,7 @@ const ExpirationTime = ({<divdata-testid="expiration-time"className={cn(- 'mt-1 flex items-center gap-x-1 text-text-tertiary system-xs-regular',+ 'mt-1 flex items-center gap-x-1 system-xs-regular text-text-tertiary',!isSameOrAfter && 'text-text-warning',)}>diff --git a/web/app/components/base/chat/chat/answer/index.tsx b/web/app/components/base/chat/chat/answer/index.tsxindex fb3e94ed00f..8b7d4a71676 100644--- a/web/app/components/base/chat/chat/answer/index.tsx+++ b/web/app/components/base/chat/chat/answer/index.tsx@@ -7,6 +7,7 @@ import type {ChatItem,} from '../../types'import type { AppData } from '@/models/share'+import { cn } from '@langgenius/dify-ui/cn'import { memo, useCallback, useEffect, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'import { EditTitle } from '@/app/components/app/annotation/edit-annotation-modal/edit-item'@@ -14,7 +15,6 @@ import AnswerIcon from '@/app/components/base/answer-icon'import Citation from '@/app/components/base/chat/chat/citation'import LoadingAnim from '@/app/components/base/chat/chat/loading-anim'import { FileList } from '@/app/components/base/file-uploader'-import { cn } from '@/utils/classnames'import ContentSwitch from '../content-switch'import { useChatContext } from '../context'import AgentContent from './agent-content'@@ -146,7 +146,7 @@ const Answer: FC<AnswerProps> = ({<div className="relative h-10 w-10 shrink-0">{answerIcon || <AnswerIcon />}{responding && (- <div className="absolute left-[-3px] top-[-3px] flex h-4 w-4 items-center rounded-full border-[0.5px] border-divider-subtle bg-background-section-burn pl-[6px] shadow-xs">+ <div className="absolute top-[-3px] left-[-3px] flex h-4 w-4 items-center rounded-full border-[0.5px] border-divider-subtle bg-background-section-burn pl-[6px] shadow-xs"><LoadingAnim type="avatar" /></div>)}@@ -158,7 +158,7 @@ const Answer: FC<AnswerProps> = ({<div className={cn('group relative pr-10', chatAnswerContainerInner)} data-testid="chat-answer-container-humaninput"><divref={humanInputFormContainerRef}- className={cn('relative inline-block w-full max-w-full rounded-2xl bg-chat-bubble-bg px-4 py-3 text-text-primary body-lg-regular')}+ className={cn('relative inline-block w-full max-w-full rounded-2xl bg-chat-bubble-bg px-4 py-3 body-lg-regular text-text-primary')}>{!responding && contentIsEmpty && !hasAgentThoughts && (@@ -227,7 +227,7 @@ const Answer: FC<AnswerProps> = ({<div className="absolute -top-2 left-6 h-3 w-0.5 bg-chat-answer-human-input-form-divider-bg" /><divref={contentRef}- className="relative inline-block w-full max-w-full rounded-2xl bg-chat-bubble-bg px-4 py-3 text-text-primary body-lg-regular"+ className="relative inline-block w-full max-w-full rounded-2xl bg-chat-bubble-bg px-4 py-3 body-lg-regular text-text-primary">{!responding && (@@ -322,7 +322,7 @@ const Answer: FC<AnswerProps> = ({<div className={cn('group relative pr-10', chatAnswerContainerInner)} data-testid="chat-answer-container-inner"><divref={contentRef}- className={cn('relative inline-block max-w-full rounded-2xl bg-chat-bubble-bg px-4 py-3 text-text-primary body-lg-regular', workflowProcess && 'w-full')}+ className={cn('relative inline-block max-w-full rounded-2xl bg-chat-bubble-bg px-4 py-3 body-lg-regular text-text-primary', workflowProcess && 'w-full')}>{!responding && (diff --git a/web/app/components/base/chat/chat/answer/operation.tsx b/web/app/components/base/chat/chat/answer/operation.tsxindex 398aa47e764..5a2cccb1e96 100644--- a/web/app/components/base/chat/chat/answer/operation.tsx+++ b/web/app/components/base/chat/chat/answer/operation.tsx@@ -3,6 +3,7 @@ import type {ChatItem,Feedback,} from '../../types'+import { cn } from '@langgenius/dify-ui/cn'import copy from 'copy-to-clipboard'import {memo,@@ -19,7 +20,6 @@ import NewAudioButton from '@/app/components/base/new-audio-button'import Textarea from '@/app/components/base/textarea'import Tooltip from '@/app/components/base/tooltip'import { toast } from '@/app/components/base/ui/toast'-import { cn } from '@/utils/classnames'import { useChatContext } from '../context'type OperationProps = {@@ -165,8 +165,8 @@ const Operation: FC<OperationProps> = ({<divclassName={cn('absolute flex justify-end gap-1',- hasWorkflowProcess && '-bottom-4 right-2',- !positionRight && '-bottom-4 right-2',+ hasWorkflowProcess && 'right-2 -bottom-4',+ !positionRight && 'right-2 -bottom-4',!hasWorkflowProcess && positionRight && 'top-[9px]!',)}style={(!hasWorkflowProcess && positionRight) ? { left: contentWidth + 8 } : {}}@@ -174,7 +174,7 @@ const Operation: FC<OperationProps> = ({>{shouldShowUserFeedbackBar && !humanInputFormDataList?.length && (<div className={cn(- 'ml-1 items-center gap-0.5 radius-lg border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg p-0.5 shadow-md backdrop-blur-xs',+ 'ml-1 items-center gap-0.5 rounded-[10px] border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg p-0.5 shadow-md backdrop-blur-xs',hasUserFeedback ? 'flex' : 'hidden group-hover:flex',)}>@@ -214,7 +214,7 @@ const Operation: FC<OperationProps> = ({)}{shouldShowAdminFeedbackBar && !humanInputFormDataList?.length && (<div className={cn(- 'ml-1 items-center gap-0.5 radius-lg border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg p-0.5 shadow-md backdrop-blur-xs',+ 'ml-1 items-center gap-0.5 rounded-[10px] border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg p-0.5 shadow-md backdrop-blur-xs',(hasAdminFeedback || hasUserFeedback) ? 'flex' : 'hidden group-hover:flex',)}>@@ -290,7 +290,7 @@ const Operation: FC<OperationProps> = ({</div>)}{!isOpeningStatement && (- <div className="ml-1 hidden items-center gap-0.5 radius-lg border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg p-0.5 shadow-md backdrop-blur-xs group-hover:flex" data-testid="operation-actions">+ <div className="ml-1 hidden items-center gap-0.5 rounded-[10px] border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg p-0.5 shadow-md backdrop-blur-xs group-hover:flex" data-testid="operation-actions">{(config?.text_to_speech?.enabled && !humanInputFormDataList?.length) && (<NewAudioButtonid={id}@@ -353,7 +353,7 @@ const Operation: FC<OperationProps> = ({><div className="space-y-3"><div>- <label className="mb-2 block text-text-secondary system-sm-semibold">+ <label className="mb-2 block system-sm-semibold text-text-secondary">{t('feedback.content', { ns: 'common' }) || 'Feedback Content'}</label><Textareadiff --git a/web/app/components/base/chat/chat/answer/suggested-questions.tsx b/web/app/components/base/chat/chat/answer/suggested-questions.tsxindex ff462f09a09..e102936b8cd 100644--- a/web/app/components/base/chat/chat/answer/suggested-questions.tsx+++ b/web/app/components/base/chat/chat/answer/suggested-questions.tsx@@ -1,7 +1,7 @@import type { FC } from 'react'import type { ChatItem } from '../../types'+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'-import { cn } from '@/utils/classnames'import { useChatContext } from '../context'type SuggestedQuestionsProps = {@@ -26,7 +26,7 @@ const SuggestedQuestions: FC<SuggestedQuestionsProps> = ({<divkey={index}className={cn(- 'mr-1 mt-1 inline-flex max-w-full shrink-0 cursor-pointer flex-wrap rounded-lg border-[0.5px] border-components-button-secondary-border bg-components-button-secondary-bg px-3.5 py-2 text-components-button-secondary-accent-text shadow-xs system-sm-medium last:mr-0 hover:border-components-button-secondary-border-hover hover:bg-components-button-secondary-bg-hover',+ 'mt-1 mr-1 inline-flex max-w-full shrink-0 cursor-pointer flex-wrap rounded-lg border-[0.5px] border-components-button-secondary-border bg-components-button-secondary-bg px-3.5 py-2 system-sm-medium text-components-button-secondary-accent-text shadow-xs last:mr-0 hover:border-components-button-secondary-border-hover hover:bg-components-button-secondary-bg-hover',readonly && 'pointer-events-none opacity-50',)}onClick={() => !readonly && onSend?.(question)}diff --git a/web/app/components/base/chat/chat/answer/tool-detail.tsx b/web/app/components/base/chat/chat/answer/tool-detail.tsxindex 0480262ab71..72b522ae17f 100644--- a/web/app/components/base/chat/chat/answer/tool-detail.tsx+++ b/web/app/components/base/chat/chat/answer/tool-detail.tsx@@ -1,4 +1,5 @@import type { ToolInfoInThought } from '../type'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowDownSLine,RiArrowRightSLine,@@ -7,7 +8,6 @@ import {} from '@remixicon/react'import { useState } from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'type ToolDetailProps = {payload: ToolInfoInThought@@ -30,7 +30,7 @@ const ToolDetail = ({><divclassName={cn(- 'system-xs-medium flex cursor-pointer items-center px-2.5 py-2 text-text-tertiary',+ 'flex cursor-pointer items-center px-2.5 py-2 system-xs-medium text-text-tertiary',expand && 'pb-1.5',)}onClick={() => setExpand(!expand)}@@ -45,19 +45,19 @@ const ToolDetail = ({{expand && (<>- <div className="mx-1 mb-0.5 radius-lg bg-components-panel-on-panel-item-bg text-text-secondary">- <div className="system-xs-semibold-uppercase flex h-7 items-center justify-between px-2 pt-1">+ <div className="mx-1 mb-0.5 rounded-[10px] bg-components-panel-on-panel-item-bg text-text-secondary">+ <div className="flex h-7 items-center justify-between px-2 pt-1 system-xs-semibold-uppercase">{t('thought.requestTitle', { ns: 'tools' })}</div>- <div className="code-xs-regular wrap-break-word px-3 pb-2 pt-1">+ <div className="px-3 pt-1 pb-2 code-xs-regular wrap-break-word">{input}</div></div>- <div className="mx-1 mb-1 radius-lg bg-components-panel-on-panel-item-bg text-text-secondary">- <div className="system-xs-semibold-uppercase flex h-7 items-center justify-between px-2 pt-1">+ <div className="mx-1 mb-1 rounded-[10px] bg-components-panel-on-panel-item-bg text-text-secondary">+ <div className="flex h-7 items-center justify-between px-2 pt-1 system-xs-semibold-uppercase">{t('thought.responseTitle', { ns: 'tools' })}</div>- <div className="code-xs-regular wrap-break-word px-3 pb-2 pt-1">+ <div className="px-3 pt-1 pb-2 code-xs-regular wrap-break-word">{output}</div></div>diff --git a/web/app/components/base/chat/chat/answer/workflow-process.tsx b/web/app/components/base/chat/chat/answer/workflow-process.tsxindex cab841d192e..fb67fe80ff1 100644--- a/web/app/components/base/chat/chat/answer/workflow-process.tsx+++ b/web/app/components/base/chat/chat/answer/workflow-process.tsx@@ -1,5 +1,6 @@import type { ChatItem, WorkflowProcess } from '../../types'+import { cn } from '@langgenius/dify-ui/cn'import {useEffect,useState,@@ -7,7 +8,6 @@ import {import { useTranslation } from 'react-i18next'import TracingPanel from '@/app/components/workflow/run/tracing-panel'import { WorkflowRunningStatus } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'type WorkflowProcessProps = {data: WorkflowProcess@@ -43,7 +43,7 @@ const WorkflowProcessItem = ({<divclassName={cn('-mx-1 rounded-xl px-2.5',- collapse ? 'border-l-[0.25px] border-components-panel-border py-[7px]' : 'border-[0.5px] border-components-panel-border-subtle px-1 pb-1 pt-[7px]',+ collapse ? 'border-l-[0.25px] border-components-panel-border py-[7px]' : 'border-[0.5px] border-components-panel-border-subtle px-1 pt-[7px] pb-1',running && !collapse && 'bg-background-section-burn',succeeded && !collapse && 'bg-state-success-hover',failed && !collapse && 'bg-state-destructive-hover',@@ -62,7 +62,7 @@ const WorkflowProcessItem = ({{running && (<div- className="i-ri-loader-2-line mr-1 h-3.5 w-3.5 shrink-0 animate-spin text-text-tertiary"+ className="mr-1 i-ri-loader-2-line h-3.5 w-3.5 shrink-0 animate-spin text-text-tertiary"data-testid="status-icon-running"/>)@@ -70,7 +70,7 @@ const WorkflowProcessItem = ({{succeeded && (<div- className="i-custom-vender-solid-general-check-circle mr-1 h-3.5 w-3.5 shrink-0 text-text-success"+ className="mr-1 i-custom-vender-solid-general-check-circle h-3.5 w-3.5 shrink-0 text-text-success"data-testid="status-icon-success"/>)@@ -78,7 +78,7 @@ const WorkflowProcessItem = ({{failed && (<div- className="i-ri-error-warning-fill mr-1 h-3.5 w-3.5 shrink-0 text-text-destructive"+ className="mr-1 i-ri-error-warning-fill h-3.5 w-3.5 shrink-0 text-text-destructive"data-testid="status-icon-failed"/>)@@ -86,18 +86,18 @@ const WorkflowProcessItem = ({{paused && (<div- className="i-ri-pause-circle-fill mr-1 h-3.5 w-3.5 shrink-0 text-text-warning-secondary"+ className="mr-1 i-ri-pause-circle-fill h-3.5 w-3.5 shrink-0 text-text-warning-secondary"data-testid="status-icon-paused"/>)}<div- className={cn('text-text-secondary system-xs-medium', !collapse && 'grow')}+ className={cn('system-xs-medium text-text-secondary', !collapse && 'grow')}data-testid="workflow-process-title">{!collapse ? t('common.workflowProcess', { ns: 'workflow' }) : latestNode?.title}</div>- <div className={cn('i-ri-arrow-right-s-line ml-1 h-4 w-4 text-text-tertiary', !collapse && 'rotate-90')} />+ <div className={cn('ml-1 i-ri-arrow-right-s-line h-4 w-4 text-text-tertiary', !collapse && 'rotate-90')} /></div>{!collapse && (diff --git a/web/app/components/base/chat/chat/chat-input-area/index.tsx b/web/app/components/base/chat/chat/chat-input-area/index.tsxindex 0ea928d6d6c..f6a2b66c3b8 100644--- a/web/app/components/base/chat/chat/chat-input-area/index.tsx+++ b/web/app/components/base/chat/chat/chat-input-area/index.tsx@@ -2,6 +2,7 @@ import type { Theme } from '../../embedded-chatbot/theme/theme-context'import type { EnableType, OnSend } from '../../types'import type { InputForm } from '../type'import type { FileUpload } from '@/app/components/base/features/types'+import { cn } from '@langgenius/dify-ui/cn'import { noop } from 'es-toolkit/function'import { decode } from 'html-entities'import Recorder from 'js-audio-recorder'@@ -15,7 +16,6 @@ import { FileContextProvider, useFileStore } from '@/app/components/base/file-upimport { toast } from '@/app/components/base/ui/toast'import VoiceInput from '@/app/components/base/voice-input'import { TransferMethod } from '@/types/app'-import { cn } from '@/utils/classnames'import { useCheckInputsForms } from '../check-input-forms-hooks'import { useTextAreaHeight } from './hooks'import Operation from './operation'@@ -139,14 +139,14 @@ const ChatInputArea = ({ readonly, botName, showFeatureBar, showFileUpload, featreturn (<><div className={cn('relative z-10 overflow-hidden rounded-xl border border-components-chat-input-border bg-components-panel-bg-blur pb-[9px] shadow-md', isDragActive && 'border border-dashed border-components-option-card-option-selected-border', disabled && 'pointer-events-none border-components-panel-border opacity-50 shadow-none')}>- <div className="relative max-h-[158px] overflow-y-auto overflow-x-hidden px-[9px] pt-[9px]">+ <div className="relative max-h-[158px] overflow-x-hidden overflow-y-auto px-[9px] pt-[9px]"><FileListInChatInput fileConfig={visionConfig!} /><div ref={wrapperRef} className="flex items-center justify-between"><div className="relative flex w-full grow items-center">- <div ref={textValueRef} className="pointer-events-none invisible absolute h-auto w-auto whitespace-pre p-1 leading-6 body-lg-regular">+ <div ref={textValueRef} className="pointer-events-none invisible absolute h-auto w-auto p-1 body-lg-regular leading-6 whitespace-pre">{query}</div>- <Textarea ref={ref => textareaRef.current = ref as any} className={cn('w-full resize-none bg-transparent p-1 leading-6 text-text-primary outline-none body-lg-regular')} placeholder={decode(t(readonly ? 'chat.inputDisabledPlaceholder' : 'chat.inputPlaceholder', { ns: 'common', botName }) || '')} autoFocus minRows={1} value={query} onChange={e => handleQueryChange(e.target.value)} onKeyDown={handleKeyDown} onCompositionStart={handleCompositionStart} onCompositionEnd={handleCompositionEnd} onPaste={handleClipboardPasteFile} onDragEnter={handleDragFileEnter} onDragLeave={handleDragFileLeave} onDragOver={handleDragFileOver} onDrop={handleDropFile} readOnly={readonly} />+ <Textarea ref={ref => textareaRef.current = ref as any} className={cn('w-full resize-none bg-transparent p-1 body-lg-regular leading-6 text-text-primary outline-none')} placeholder={decode(t(readonly ? 'chat.inputDisabledPlaceholder' : 'chat.inputPlaceholder', { ns: 'common', botName }) || '')} autoFocus minRows={1} value={query} onChange={e => handleQueryChange(e.target.value)} onKeyDown={handleKeyDown} onCompositionStart={handleCompositionStart} onCompositionEnd={handleCompositionEnd} onPaste={handleClipboardPasteFile} onDragEnter={handleDragFileEnter} onDragLeave={handleDragFileLeave} onDragOver={handleDragFileOver} onDrop={handleDropFile} readOnly={readonly} /></div>{!isMultipleLine && operation}</div>diff --git a/web/app/components/base/chat/chat/chat-input-area/operation.tsx b/web/app/components/base/chat/chat/chat-input-area/operation.tsxindex 2b60457c806..c94c47a25bf 100644--- a/web/app/components/base/chat/chat/chat-input-area/operation.tsx+++ b/web/app/components/base/chat/chat/chat-input-area/operation.tsx@@ -4,6 +4,7 @@ import type {EnableType,} from '../../types'import type { FileUpload } from '@/app/components/base/features/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiMicLine,RiSendPlane2Fill,@@ -13,7 +14,6 @@ import { memo } from 'react'import ActionButton from '@/app/components/base/action-button'import { FileUploaderInChatInput } from '@/app/components/base/file-uploader'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'type OperationProps = {readonly?: booleandiff --git a/web/app/components/base/chat/chat/index.tsx b/web/app/components/base/chat/chat/index.tsxindex 55b6193bd16..0343366a7fb 100644--- a/web/app/components/base/chat/chat/index.tsx+++ b/web/app/components/base/chat/chat/index.tsx@@ -13,12 +13,12 @@ import type {import type { InputForm } from './type'import type { Emoji } from '@/app/components/tools/types'import type { AppData } from '@/models/share'+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'import { useTranslation } from 'react-i18next'import { useShallow } from 'zustand/react/shallow'import { useStore as useAppStore } from '@/app/components/app/store'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import Answer from './answer'import ChatInputArea from './chat-input-area'import ChatLogModals from './chat-log-modals'diff --git a/web/app/components/base/chat/chat/loading-anim/index.tsx b/web/app/components/base/chat/chat/loading-anim/index.tsxindex 6ba37288e7a..a352e1ec7d7 100644--- a/web/app/components/base/chat/chat/loading-anim/index.tsx+++ b/web/app/components/base/chat/chat/loading-anim/index.tsx@@ -1,7 +1,7 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'import s from './style.module.css'type ILoadingAnimProps = {diff --git a/web/app/components/base/chat/chat/log/index.tsx b/web/app/components/base/chat/chat/log/index.tsxindex 5e5f271a1e6..a997ec4350e 100644--- a/web/app/components/base/chat/chat/log/index.tsx+++ b/web/app/components/base/chat/chat/log/index.tsx@@ -19,7 +19,7 @@ const Log: FC<LogProps> = ({return (<div- className="ml-1 flex items-center gap-0.5 radius-lg border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg p-0.5 shadow-md backdrop-blur-xs"+ className="ml-1 flex items-center gap-0.5 rounded-[10px] border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg p-0.5 shadow-md backdrop-blur-xs"onClick={(e) => {e.stopPropagation()e.nativeEvent.stopImmediatePropagation()diff --git a/web/app/components/base/chat/chat/question.tsx b/web/app/components/base/chat/chat/question.tsxindex 67056f99dd4..f585ea0573c 100644--- a/web/app/components/base/chat/chat/question.tsx+++ b/web/app/components/base/chat/chat/question.tsx@@ -4,6 +4,7 @@ import type {} from 'react'import type { Theme } from '../embedded-chatbot/theme/theme-context'import type { ChatItem } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import copy from 'copy-to-clipboard'import {memo,@@ -18,7 +19,6 @@ import { FileList } from '@/app/components/base/file-uploader'import { User } from '@/app/components/base/icons/src/public/avatar'import { Markdown } from '@/app/components/base/markdown'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import ActionButton from '../../action-button'import { toast } from '../../ui/toast'import { CssTransform } from '../embedded-chatbot/theme/utils'@@ -164,7 +164,7 @@ const Question: FC<QuestionProps> = ({<div className={cn('mr-2 gap-1', isEditing ? 'hidden' : 'flex')}><divdata-testid="action-container"- className="absolute hidden gap-0.5 radius-lg border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg p-0.5 shadow-md backdrop-blur-xs group-hover:flex"+ className="absolute hidden gap-0.5 rounded-[10px] border-[0.5px] border-components-actionbar-border bg-components-actionbar-bg p-0.5 shadow-md backdrop-blur-xs group-hover:flex"style={{ right: contentWidth + 8 }}><ActionButtondiff --git a/web/app/components/base/chat/embedded-chatbot/chat-wrapper.tsx b/web/app/components/base/chat/embedded-chatbot/chat-wrapper.tsxindex 451f566505d..b63784cc348 100644--- a/web/app/components/base/chat/embedded-chatbot/chat-wrapper.tsx+++ b/web/app/components/base/chat/embedded-chatbot/chat-wrapper.tsx@@ -5,6 +5,7 @@ import type {ChatItemInTree,OnSend,} from '../types'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback, useEffect, useMemo, useState } from 'react'import AnswerIcon from '@/app/components/base/answer-icon'import AppIcon from '@/app/components/base/app-icon'@@ -23,7 +24,6 @@ import {} from '@/service/share'import { submitHumanInputForm as submitHumanInputFormService } from '@/service/workflow'import { TransferMethod } from '@/types/app'-import { cn } from '@/utils/classnames'import Chat from '../chat'import { useChat } from '../chat/hooks'import { getLastAnswer, isValidGeneratedAnswer } from '../utils'@@ -262,7 +262,7 @@ const ChatWrapper = () => {background={appData?.site.icon_background}imageUrl={appData?.site.icon_url}/>- <div className="grow rounded-2xl bg-chat-bubble-bg px-4 py-3 text-text-primary body-lg-regular">+ <div className="grow rounded-2xl bg-chat-bubble-bg px-4 py-3 body-lg-regular text-text-primary"><Markdown content={welcomeMessage.content} /><SuggestedQuestions item={welcomeMessage} /></div>@@ -280,7 +280,7 @@ const ChatWrapper = () => {imageUrl={appData?.site.icon_url}/><div className="max-w-[768px] px-4">- <Markdown className="text-text-tertiary! body-2xl-regular!" content={welcomeMessage.content} />+ <Markdown className="body-2xl-regular! text-text-tertiary!" content={welcomeMessage.content} /></div></div>)diff --git a/web/app/components/base/chat/embedded-chatbot/header/index.tsx b/web/app/components/base/chat/embedded-chatbot/header/index.tsxindex 7b1fb46fa0f..aeec29a477b 100644--- a/web/app/components/base/chat/embedded-chatbot/header/index.tsx+++ b/web/app/components/base/chat/embedded-chatbot/header/index.tsx@@ -1,5 +1,6 @@import type { FC } from 'react'import type { Theme } from '../theme/theme-context'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback, useEffect, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -9,7 +10,6 @@ import Divider from '@/app/components/base/divider'import DifyLogo from '@/app/components/base/logo/dify-logo'import Tooltip from '@/app/components/base/tooltip'import { useGlobalPublicStore } from '@/context/global-public-context'-import { cn } from '@/utils/classnames'import { isClient } from '@/utils/client'import {useEmbeddedChatbotContext,@@ -94,7 +94,7 @@ const Header: FC<IHeaderProps> = ({)}data-testid="webapp-brand">- <div className="text-text-tertiary system-2xs-medium-uppercase">{t('chat.poweredBy', { ns: 'share' })}</div>+ <div className="system-2xs-medium-uppercase text-text-tertiary">{t('chat.poweredBy', { ns: 'share' })}</div>{systemFeatures.branding.enabled && systemFeatures.branding.workspace_logo? <img src={systemFeatures.branding.workspace_logo} alt="logo" className="block h-5 w-auto" />diff --git a/web/app/components/base/chat/embedded-chatbot/index.tsx b/web/app/components/base/chat/embedded-chatbot/index.tsxindex 3def406d538..7c0f2feb7ae 100644--- a/web/app/components/base/chat/embedded-chatbot/index.tsx+++ b/web/app/components/base/chat/embedded-chatbot/index.tsx@@ -1,5 +1,6 @@'use client'import type { AppData } from '@/models/share'+import { cn } from '@langgenius/dify-ui/cn'import {useEffect,} from 'react'@@ -13,7 +14,6 @@ import { useGlobalPublicStore } from '@/context/global-public-context'import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'import useDocumentTitle from '@/hooks/use-document-title'import { AppSourceType } from '@/service/share'-import { cn } from '@/utils/classnames'import {EmbeddedChatbotContext,useEmbeddedChatbotContext,diff --git a/web/app/components/base/chat/embedded-chatbot/inputs-form/content.tsx b/web/app/components/base/chat/embedded-chatbot/inputs-form/content.tsxindex b8510c98d3b..2ce40480c34 100644--- a/web/app/components/base/chat/embedded-chatbot/inputs-form/content.tsx+++ b/web/app/components/base/chat/embedded-chatbot/inputs-form/content.tsx@@ -48,9 +48,9 @@ const InputsFormContent = ({ showTip }: Props) => {<div key={form.variable} className="space-y-1" data-testid={`inputs-form-item-${form.variable}`}>{form.type !== InputVarType.checkbox && (<div className="flex h-6 items-center gap-1">- <div className="text-text-secondary system-md-semibold">{form.label}</div>+ <div className="system-md-semibold text-text-secondary">{form.label}</div>{!form.required && (- <div className="text-text-tertiary system-xs-regular">{t('panel.optional', { ns: 'workflow' })}</div>+ <div className="system-xs-regular text-text-tertiary">{t('panel.optional', { ns: 'workflow' })}</div>)}</div>)}@@ -125,7 +125,7 @@ const InputsFormContent = ({ showTip }: Props) => {value={inputsFormValue?.[form.variable] || ''}onChange={v => handleFormChange(form.variable, v)}noWrapper- className="h-[80px] overflow-y-auto radius-lg bg-components-input-bg-normal p-1"+ className="h-[80px] overflow-y-auto rounded-[10px] bg-components-input-bg-normal p-1"placeholder={<div className="whitespace-pre">{form.json_schema}</div>}@@ -134,7 +134,7 @@ const InputsFormContent = ({ showTip }: Props) => {</div>))}{showTip && (- <div className="text-text-tertiary system-xs-regular">{t('chat.chatFormTip', { ns: 'share' })}</div>+ <div className="system-xs-regular text-text-tertiary">{t('chat.chatFormTip', { ns: 'share' })}</div>)}</div>)diff --git a/web/app/components/base/chat/embedded-chatbot/inputs-form/index.tsx b/web/app/components/base/chat/embedded-chatbot/inputs-form/index.tsxindex 430e83478e3..77b47bb1c49 100644--- a/web/app/components/base/chat/embedded-chatbot/inputs-form/index.tsx+++ b/web/app/components/base/chat/embedded-chatbot/inputs-form/index.tsx@@ -1,10 +1,10 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import InputsFormContent from '@/app/components/base/chat/embedded-chatbot/inputs-form/content'import Divider from '@/app/components/base/divider'import { Button } from '@/app/components/base/ui/button'import { AppSourceType } from '@/service/share'-import { cn } from '@/utils/classnames'import { useEmbeddedChatbotContext } from '../context'type Props = {diff --git a/web/app/components/base/chat/embedded-chatbot/inputs-form/view-form-dropdown.tsx b/web/app/components/base/chat/embedded-chatbot/inputs-form/view-form-dropdown.tsxindex 98d71492841..68cddb97b08 100644--- a/web/app/components/base/chat/embedded-chatbot/inputs-form/view-form-dropdown.tsx+++ b/web/app/components/base/chat/embedded-chatbot/inputs-form/view-form-dropdown.tsx@@ -1,10 +1,10 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useState } from 'react'import { useTranslation } from 'react-i18next'import ActionButton, { ActionButtonState } from '@/app/components/base/action-button'import InputsFormContent from '@/app/components/base/chat/embedded-chatbot/inputs-form/content'import { PortalToFollowElem, PortalToFollowElemContent, PortalToFollowElemTrigger } from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'type Props = {iconColor?: string@@ -42,7 +42,7 @@ const ViewFormDropdown = ({><div className="flex items-center gap-3 rounded-t-2xl border-b border-divider-subtle px-6 py-4"><div className="i-custom-public-other-message-3-fill h-6 w-6 shrink-0" />- <div className="grow text-text-secondary system-xl-semibold">{t('chat.chatSettingsTitle', { ns: 'share' })}</div>+ <div className="grow system-xl-semibold text-text-secondary">{t('chat.chatSettingsTitle', { ns: 'share' })}</div></div><div className="p-6"><InputsFormContent />diff --git a/web/app/components/base/checkbox-list/index.tsx b/web/app/components/base/checkbox-list/index.tsxindex 61947ad769a..80ebbc435c8 100644--- a/web/app/components/base/checkbox-list/index.tsx+++ b/web/app/components/base/checkbox-list/index.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback, useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'import Badge from '@/app/components/base/badge'@@ -7,7 +8,6 @@ import Checkbox from '@/app/components/base/checkbox'import SearchInput from '@/app/components/base/search-input'import { Button } from '@/app/components/base/ui/button'import SearchMenu from '@/assets/search-menu.svg'-import { cn } from '@/utils/classnames'type CheckboxListOption = {label: stringdiff --git a/web/app/components/base/checkbox/index.tsx b/web/app/components/base/checkbox/index.tsxindex 02e4e5b89f2..1abf142a70e 100644--- a/web/app/components/base/checkbox/index.tsx+++ b/web/app/components/base/checkbox/index.tsx@@ -1,4 +1,4 @@-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'import IndeterminateIcon from './assets/indeterminate-icon'type CheckboxProps = {@@ -29,7 +29,7 @@ const Checkbox = ({<divid={id}className={cn(- 'flex h-4 w-4 shrink-0 cursor-pointer items-center justify-center radius-xs shadow-xs shadow-shadow-shadow-3',+ 'flex h-4 w-4 shrink-0 cursor-pointer items-center justify-center rounded-sm shadow-xs shadow-shadow-shadow-3',checkClassName,disabled && disabledClassName,className,diff --git a/web/app/components/base/chip/index.tsx b/web/app/components/base/chip/index.tsxindex 46272cfcb9f..50f4744b07b 100644--- a/web/app/components/base/chip/index.tsx+++ b/web/app/components/base/chip/index.tsx@@ -1,4 +1,5 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine, RiCheckLine, RiCloseCircleFill, RiFilter3Line } from '@remixicon/react'import { useMemo, useState } from 'react'import {@@ -6,7 +7,6 @@ import {PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'export type Item = {value: number | string@@ -97,7 +97,7 @@ const Chip: FC<Props> = ({setOpen(false)}}>- <div title={item.name} className="system-sm-medium grow truncate text-text-secondary">{item.name}</div>+ <div title={item.name} className="grow truncate system-sm-medium text-text-secondary">{item.name}</div>{value === item.value && <RiCheckLine className="h-4 w-4 shrink-0 text-util-colors-blue-light-blue-light-600" />}</div>))}diff --git a/web/app/components/base/content-dialog/index.tsx b/web/app/components/base/content-dialog/index.tsxindex 814e3c2287c..db48a9cb8fa 100644--- a/web/app/components/base/content-dialog/index.tsx+++ b/web/app/components/base/content-dialog/index.tsx@@ -1,6 +1,6 @@import type { ReactNode } from 'react'import { Transition, TransitionChild } from '@headlessui/react'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'type ContentDialogProps = {className?: string@@ -19,7 +19,7 @@ const ContentDialog = ({<Transitionshow={show}as="div"- className="absolute left-0 top-0 z-30 box-border h-full w-full p-2"+ className="absolute top-0 left-0 z-30 box-border h-full w-full p-2"><TransitionChild><divdiff --git a/web/app/components/base/corner-label/index.tsx b/web/app/components/base/corner-label/index.tsxindex 21ad00bb773..9c5aba0a1b3 100644--- a/web/app/components/base/corner-label/index.tsx+++ b/web/app/components/base/corner-label/index.tsx@@ -1,4 +1,4 @@-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'import { Corner } from '../icons/src/vender/solid/shapes'type CornerLabelProps = {diff --git a/web/app/components/base/date-and-time-picker/calendar/item.tsx b/web/app/components/base/date-and-time-picker/calendar/item.tsxindex f79fed0879d..4a486131db1 100644--- a/web/app/components/base/date-and-time-picker/calendar/item.tsx+++ b/web/app/components/base/date-and-time-picker/calendar/item.tsx@@ -1,7 +1,7 @@import type { FC } from 'react'import type { CalendarItemProps } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'import dayjs from '../utils/dayjs'const Item: FC<CalendarItemProps> = ({@@ -19,9 +19,9 @@ const Item: FC<CalendarItemProps> = ({type="button"onClick={() => !isDisabled && onClick(date)}className={cn(- 'system-sm-medium relative flex items-center justify-center rounded-lg px-1 py-2',+ 'relative flex items-center justify-center rounded-lg px-1 py-2 system-sm-medium',isCurrentMonth ? 'text-text-secondary' : 'text-text-quaternary hover:text-text-secondary',- isSelected ? 'system-sm-medium bg-components-button-primary-bg text-components-button-primary-text' : 'hover:bg-state-base-hover',+ isSelected ? 'bg-components-button-primary-bg system-sm-medium text-components-button-primary-text' : 'hover:bg-state-base-hover',isDisabled && 'cursor-not-allowed text-text-quaternary hover:bg-transparent',)}>diff --git a/web/app/components/base/date-and-time-picker/common/option-list-item.tsx b/web/app/components/base/date-and-time-picker/common/option-list-item.tsxindex 040f30f686b..31b303df1f0 100644--- a/web/app/components/base/date-and-time-picker/common/option-list-item.tsx+++ b/web/app/components/base/date-and-time-picker/common/option-list-item.tsx@@ -1,7 +1,7 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useEffect, useRef } from 'react'-import { cn } from '@/utils/classnames'type OptionListItemProps = {isSelected: boolean@@ -26,7 +26,7 @@ const OptionListItem: FC<OptionListItemProps> = ({<liref={listItemRef}className={cn(- 'system-xs-medium flex cursor-pointer items-center justify-center rounded-md px-1.5 py-1 text-components-button-ghost-text',+ 'flex cursor-pointer items-center justify-center rounded-md px-1.5 py-1 system-xs-medium text-components-button-ghost-text',isSelected ? 'bg-components-button-ghost-bg-hover' : 'hover:bg-components-button-ghost-bg-hover',)}onClick={() => {diff --git a/web/app/components/base/date-and-time-picker/date-picker/footer.tsx b/web/app/components/base/date-and-time-picker/date-picker/footer.tsxindex 237282c348f..ee94fdbf201 100644--- a/web/app/components/base/date-and-time-picker/date-picker/footer.tsx+++ b/web/app/components/base/date-and-time-picker/date-picker/footer.tsx@@ -1,10 +1,10 @@import type { FC } from 'react'import type { DatePickerFooterProps } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import { RiTimeLine } from '@remixicon/react'import * as React from 'react'import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import { ViewType } from '../types'const Footer: FC<DatePickerFooterProps> = ({diff --git a/web/app/components/base/date-and-time-picker/date-picker/index.tsx b/web/app/components/base/date-and-time-picker/date-picker/index.tsxindex b1303e5f58a..9c84e4c0961 100644--- a/web/app/components/base/date-and-time-picker/date-picker/index.tsx+++ b/web/app/components/base/date-and-time-picker/date-picker/index.tsx@@ -1,5 +1,6 @@import type { Dayjs } from 'dayjs'import type { DatePickerProps, Period } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback, useEffect, useMemo, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -8,7 +9,6 @@ import {PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'import Calendar from '../calendar'import TimePickerHeader from '../time-picker/header'import TimePickerOptions from '../time-picker/options'@@ -232,14 +232,14 @@ const DatePicker = ({data-testid="date-picker-trigger"><input- className="flex-1 cursor-pointer appearance-none truncate bg-transparent p-1 text-components-input-text-filled- outline-hidden system-xs-regular placeholder:text-components-input-text-placeholder"+ className="flex-1 cursor-pointer appearance-none truncate bg-transparent p-1 system-xs-regular+ text-components-input-text-filled outline-hidden placeholder:text-components-input-text-placeholder"readOnlyvalue={isOpen ? '' : displayValue}placeholder={placeholderDate}/><span className={cn('i-ri-calendar-line h-4 w-4 shrink-0 text-text-quaternary', isOpen ? 'text-text-secondary' : 'group-hover:text-text-secondary', (displayValue || (isOpen && selectedDate)) && 'group-hover:hidden')} />- <span className={cn('i-ri-close-circle-fill hidden h-4 w-4 shrink-0 text-text-quaternary', (displayValue || (isOpen && selectedDate)) && 'hover:text-text-secondary group-hover:inline-block')} onClick={handleClear} data-testid="date-picker-clear-button" />+ <span className={cn('i-ri-close-circle-fill hidden h-4 w-4 shrink-0 text-text-quaternary', (displayValue || (isOpen && selectedDate)) && 'group-hover:inline-block hover:text-text-secondary')} onClick={handleClear} data-testid="date-picker-clear-button" /></div>)}</PortalToFollowElemTrigger>diff --git a/web/app/components/base/date-and-time-picker/time-picker/index.tsx b/web/app/components/base/date-and-time-picker/time-picker/index.tsxindex ff3bb459e1b..e07ea177a56 100644--- a/web/app/components/base/date-and-time-picker/time-picker/index.tsx+++ b/web/app/components/base/date-and-time-picker/time-picker/index.tsx@@ -1,5 +1,6 @@import type { Dayjs } from 'dayjs'import type { TimePickerProps } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback, useEffect, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -9,7 +10,6 @@ import {PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'import TimezoneLabel from '@/app/components/base/timezone-label'-import { cn } from '@/utils/classnames'import { Period } from '../types'import dayjs, {getDateWithTimezone,@@ -199,8 +199,8 @@ const TimePicker = ({const inputElem = (<input- className="flex-1 cursor-pointer select-none appearance-none truncate bg-transparent p-1 text-components-input-text-filled- outline-hidden system-xs-regular placeholder:text-components-input-text-placeholder"+ className="flex-1 cursor-pointer appearance-none truncate bg-transparent p-1 system-xs-regular text-components-input-text-filled+ outline-hidden select-none placeholder:text-components-input-text-placeholder"readOnlyvalue={isOpen ? '' : displayValue}placeholder={placeholderDate}@@ -230,10 +230,10 @@ const TimePicker = ({>{inputElem}{showTimezone && timezone && (- <TimezoneLabel timezone={timezone} inline className="shrink-0 select-none text-xs" />+ <TimezoneLabel timezone={timezone} inline className="shrink-0 text-xs select-none" />)}<span className={cn('i-ri-time-line h-4 w-4 shrink-0 text-text-quaternary', isOpen ? 'text-text-secondary' : 'group-hover:text-text-secondary', (displayValue || (isOpen && selectedTime)) && !notClearable && 'group-hover:hidden')} />- <span className={cn('i-ri-close-circle-fill hidden h-4 w-4 shrink-0 text-text-quaternary', (displayValue || (isOpen && selectedTime)) && !notClearable && 'hover:text-text-secondary group-hover:inline-block')} role="button" aria-label={t('operation.clear', { ns: 'common' })} onClick={handleClear} />+ <span className={cn('i-ri-close-circle-fill hidden h-4 w-4 shrink-0 text-text-quaternary', (displayValue || (isOpen && selectedTime)) && !notClearable && 'group-hover:inline-block hover:text-text-secondary')} role="button" aria-label={t('operation.clear', { ns: 'common' })} onClick={handleClear} /></div>)}</PortalToFollowElemTrigger>diff --git a/web/app/components/base/date-and-time-picker/time-picker/options.tsx b/web/app/components/base/date-and-time-picker/time-picker/options.tsxindex a4117f03fb6..6f6e5e9c68f 100644--- a/web/app/components/base/date-and-time-picker/time-picker/options.tsx+++ b/web/app/components/base/date-and-time-picker/time-picker/options.tsx@@ -16,7 +16,7 @@ const Options: FC<TimeOptionsProps> = ({return (<div className="grid grid-cols-3 gap-x-1 p-2">{/* Hour */}- <ul className="no-scrollbar flex h-[208px] flex-col gap-y-0.5 overflow-y-auto pb-[184px]">+ <ul className="scrollbar-none flex h-[208px] flex-col gap-y-0.5 overflow-y-auto pb-[184px]">{hourOptions.map((hour) => {const isSelected = selectedTime?.format('hh') === hour@@ -33,7 +33,7 @@ const Options: FC<TimeOptionsProps> = ({}</ul>{/* Minute */}- <ul className="no-scrollbar flex h-[208px] flex-col gap-y-0.5 overflow-y-auto pb-[184px]">+ <ul className="scrollbar-none flex h-[208px] flex-col gap-y-0.5 overflow-y-auto pb-[184px]">{(minuteFilter ? minuteFilter(minuteOptions) : minuteOptions).map((minute) => {const isSelected = selectedTime?.format('mm') === minute@@ -50,7 +50,7 @@ const Options: FC<TimeOptionsProps> = ({}</ul>{/* Period */}- <ul className="no-scrollbar flex h-[208px] flex-col gap-y-0.5 overflow-y-auto pb-[184px]">+ <ul className="scrollbar-none flex h-[208px] flex-col gap-y-0.5 overflow-y-auto pb-[184px]">{periodOptions.map((period) => {const isSelected = selectedTime?.format('A') === perioddiff --git a/web/app/components/base/date-and-time-picker/year-and-month-picker/options.tsx b/web/app/components/base/date-and-time-picker/year-and-month-picker/options.tsxindex 9b0d602a3e7..22889255793 100644--- a/web/app/components/base/date-and-time-picker/year-and-month-picker/options.tsx+++ b/web/app/components/base/date-and-time-picker/year-and-month-picker/options.tsx@@ -16,7 +16,7 @@ const Options: FC<YearAndMonthPickerOptionsProps> = ({return (<div className="grid grid-cols-2 gap-x-1 p-2">{/* Month Picker */}- <ul className="no-scrollbar flex h-[208px] flex-col gap-y-0.5 overflow-y-auto pb-[184px]">+ <ul className="scrollbar-none flex h-[208px] flex-col gap-y-0.5 overflow-y-auto pb-[184px]">{months.map((month, index) => {const isSelected = selectedMonth === index@@ -33,7 +33,7 @@ const Options: FC<YearAndMonthPickerOptionsProps> = ({}</ul>{/* Year Picker */}- <ul className="no-scrollbar flex h-[208px] flex-col gap-y-0.5 overflow-y-auto pb-[184px]">+ <ul className="scrollbar-none flex h-[208px] flex-col gap-y-0.5 overflow-y-auto pb-[184px]">{yearOptions.map((year) => {const isSelected = selectedYear === yeardiff --git a/web/app/components/base/dialog/index.tsx b/web/app/components/base/dialog/index.tsxindex 571898cd57f..84d0c9b9994 100644--- a/web/app/components/base/dialog/index.tsx+++ b/web/app/components/base/dialog/index.tsx@@ -1,7 +1,7 @@import type { ElementType, ReactNode } from 'react'import { Dialog, DialogPanel, DialogTitle, Transition, TransitionChild } from '@headlessui/react'+import { cn } from '@langgenius/dify-ui/cn'import { Fragment, useCallback } from 'react'-import { cn } from '@/utils/classnames'// https://headlessui.com/react/dialog@@ -45,7 +45,7 @@ const CustomDialog = ({{Boolean(title) && (<DialogTitleas={titleAs || 'h3'}- className={cn('title-2xl-semi-bold pb-3 pr-8 text-text-primary', titleClassName)}+ className={cn('pr-8 pb-3 title-2xl-semi-bold text-text-primary', titleClassName)}>{title}</DialogTitle>@@ -54,7 +54,7 @@ const CustomDialog = ({{children}</div>{Boolean(footer) && (- <div className={cn('flex items-center justify-end gap-2 px-6 pb-6 pt-3', footerClassName)}>+ <div className={cn('flex items-center justify-end gap-2 px-6 pt-3 pb-6', footerClassName)}>{footer}</div>)}diff --git a/web/app/components/base/divider/index.tsx b/web/app/components/base/divider/index.tsxindex b096844079d..50c719e9235 100644--- a/web/app/components/base/divider/index.tsx+++ b/web/app/components/base/divider/index.tsx@@ -1,8 +1,8 @@import type { VariantProps } from 'class-variance-authority'import type { CSSProperties, FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { cva } from 'class-variance-authority'import * as React from 'react'-import { cn } from '@/utils/classnames'const dividerVariants = cva('', {variants: {diff --git a/web/app/components/base/drawer-plus/index.tsx b/web/app/components/base/drawer-plus/index.tsxindex fcfee41cc08..261022669b3 100644--- a/web/app/components/base/drawer-plus/index.tsx+++ b/web/app/components/base/drawer-plus/index.tsx@@ -1,11 +1,11 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine } from '@remixicon/react'import * as React from 'react'import { useRef } from 'react'import Drawer from '@/app/components/base/drawer'import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'-import { cn } from '@/utils/classnames'type Props = {isShow: boolean@@ -62,7 +62,7 @@ const DrawerPlus: FC<Props> = ({positionCenter={positionCenter}dialogClassName={dialogClassName}dialogBackdropClassName={dialogBackdropClassName}- panelClassName={cn('mx-2 mb-3 mt-16 rounded-xl p-0! sm:mr-2', panelClassName, maxWidthClassName)}+ panelClassName={cn('mx-2 mt-16 mb-3 rounded-xl p-0! sm:mr-2', panelClassName, maxWidthClassName)}><divclassName={cn(contentClassName, 'flex w-full flex-col rounded-xl border-[0.5px] border-divider-subtle bg-components-panel-bg shadow-xl')}@@ -72,7 +72,7 @@ const DrawerPlus: FC<Props> = ({ref={ref}><div className={cn(headerClassName, 'shrink-0 border-b border-divider-subtle py-4')}>- <div className="flex h-6 items-center justify-between pl-6 pr-5">+ <div className="flex h-6 items-center justify-between pr-5 pl-6"><div className="system-xl-semibold text-text-primary">{title}</div>@@ -86,7 +86,7 @@ const DrawerPlus: FC<Props> = ({</div></div>{titleDescription && (- <div className="system-xs-regular pl-6 pr-10 text-text-tertiary">+ <div className="pr-10 pl-6 system-xs-regular text-text-tertiary">{titleDescription}</div>)}diff --git a/web/app/components/base/drawer/index.tsx b/web/app/components/base/drawer/index.tsxindex 76025085aa9..2ca2f090ef3 100644--- a/web/app/components/base/drawer/index.tsx+++ b/web/app/components/base/drawer/index.tsx@@ -1,8 +1,8 @@'use client'import { Dialog, DialogBackdrop, DialogTitle } from '@headlessui/react'+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'export type IDrawerProps = {title?: stringdiff --git a/web/app/components/base/dropdown/index.tsx b/web/app/components/base/dropdown/index.tsxindex d83a97ce25b..f9a19f34ea7 100644--- a/web/app/components/base/dropdown/index.tsx+++ b/web/app/components/base/dropdown/index.tsx@@ -1,5 +1,6 @@import type { FC } from 'react'import type { ActionButtonProps } from '@/app/components/base/action-button'+import { cn } from '@langgenius/dify-ui/cn'import {RiMoreFill,} from '@remixicon/react'@@ -10,7 +11,6 @@ import {PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'export type Item = {value: string | numberdiff --git a/web/app/components/base/effect/index.tsx b/web/app/components/base/effect/index.tsxindex dd3415dc071..f3c2e3c3dec 100644--- a/web/app/components/base/effect/index.tsx+++ b/web/app/components/base/effect/index.tsx@@ -1,5 +1,5 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'type EffectProps = {className?: stringdiff --git a/web/app/components/base/emoji-picker/Inner.tsx b/web/app/components/base/emoji-picker/Inner.tsxindex e682ca7a083..e2595c5efb5 100644--- a/web/app/components/base/emoji-picker/Inner.tsx+++ b/web/app/components/base/emoji-picker/Inner.tsx@@ -5,12 +5,12 @@ import data from '@emoji-mart/data'import {MagnifyingGlassIcon,} from '@heroicons/react/24/outline'+import { cn } from '@langgenius/dify-ui/cn'import { init } from 'emoji-mart'import * as React from 'react'import { useState } from 'react'import Divider from '@/app/components/base/divider'import Input from '@/app/components/base/input'-import { cn } from '@/utils/classnames'import { searchEmoji } from '@/utils/emoji'init({ data })@@ -92,11 +92,11 @@ const EmojiPickerInner: FC<IEmojiPickerInnerProps> = ({</div><Divider className="my-3" />- <div className="max-h-[200px] w-full overflow-y-auto overflow-x-hidden px-3">+ <div className="max-h-[200px] w-full overflow-x-hidden overflow-y-auto px-3">{isSearching && (<><div key="category-search" className="flex flex-col">- <p className="mb-1 text-text-primary system-xs-medium-uppercase">Search</p>+ <p className="mb-1 system-xs-medium-uppercase text-text-primary">Search</p><div className="grid h-full w-full grid-cols-8 gap-1">{searchedEmojis.map((emoji: string, index: number) => {return (@@ -121,7 +121,7 @@ const EmojiPickerInner: FC<IEmojiPickerInnerProps> = ({{categories.map((category, index: number) => {return (<div key={`category-${index}`} className="flex flex-col">- <p className="mb-1 text-text-primary system-xs-medium-uppercase">{category.id}</p>+ <p className="mb-1 system-xs-medium-uppercase text-text-primary">{category.id}</p><div className="grid h-full w-full grid-cols-8 gap-1">{category.emojis.map((emoji, index: number) => {return (@@ -147,7 +147,7 @@ const EmojiPickerInner: FC<IEmojiPickerInnerProps> = ({{/* Color Select */}<div className={cn('flex items-center justify-between p-3 pb-0')}>- <p className="mb-2 text-text-primary system-xs-medium-uppercase">Choose Style</p>+ <p className="mb-2 system-xs-medium-uppercase text-text-primary">Choose Style</p>{showStyleColors? <span className="i-heroicons-chevron-down h-4 w-4 cursor-pointer text-text-quaternary" onClick={() => setShowStyleColors(!showStyleColors)} data-testid="toggle-colors" />: <span className="i-heroicons-chevron-up h-4 w-4 cursor-pointer text-text-quaternary" onClick={() => setShowStyleColors(!showStyleColors)} data-testid="toggle-colors" />}diff --git a/web/app/components/base/emoji-picker/index.tsx b/web/app/components/base/emoji-picker/index.tsxindex 6213b612266..92ee4935be0 100644--- a/web/app/components/base/emoji-picker/index.tsx+++ b/web/app/components/base/emoji-picker/index.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { noop } from 'es-toolkit/function'import * as React from 'react'import { useCallback, useState } from 'react'@@ -7,7 +8,6 @@ import { useTranslation } from 'react-i18next'import Divider from '@/app/components/base/divider'import Modal from '@/app/components/base/modal'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import EmojiPickerInner from './Inner'type IEmojiPickerProps = {diff --git a/web/app/components/base/encrypted-bottom/index.tsx b/web/app/components/base/encrypted-bottom/index.tsxindex 5f354336122..5a76de75efa 100644--- a/web/app/components/base/encrypted-bottom/index.tsx+++ b/web/app/components/base/encrypted-bottom/index.tsx@@ -1,8 +1,8 @@import type { I18nKeysWithPrefix } from '@/types/i18n'+import { cn } from '@langgenius/dify-ui/cn'import { RiLock2Fill } from '@remixicon/react'import { useTranslation } from 'react-i18next'import Link from '@/next/link'-import { cn } from '@/utils/classnames'type EncryptedKey = I18nKeysWithPrefix<'common', 'provider.encrypted.'>@@ -20,7 +20,7 @@ export const EncryptedBottom = (props: Props) => {const { frontTextKey = DEFAULT_FRONT_KEY, backTextKey = DEFAULT_BACK_KEY, className } = propsreturn (- <div className={cn('system-xs-regular flex items-center justify-center rounded-b-2xl border-t-[0.5px] border-divider-subtle bg-background-soft px-2 py-3 text-text-tertiary', className)}>+ <div className={cn('flex items-center justify-center rounded-b-2xl border-t-[0.5px] border-divider-subtle bg-background-soft px-2 py-3 system-xs-regular text-text-tertiary', className)}><RiLock2Fill className="mx-1 h-3 w-3 text-text-quaternary" />{t(frontTextKey, { ns: 'common' })}<Linkdiff --git a/web/app/components/base/error-boundary/index.tsx b/web/app/components/base/error-boundary/index.tsxindex 639599c6f69..607494eab5a 100644--- a/web/app/components/base/error-boundary/index.tsx+++ b/web/app/components/base/error-boundary/index.tsx@@ -1,12 +1,12 @@'use client'import type { ErrorInfo, ReactNode } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiAlertLine, RiBugLine } from '@remixicon/react'import * as React from 'react'import { useCallback, useEffect, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'import { IS_DEV } from '@/config'-import { cn } from '@/utils/classnames'type ErrorBoundaryState = {hasError: booleandiff --git a/web/app/components/base/features/new-feature-panel/conversation-opener/modal.tsx b/web/app/components/base/features/new-feature-panel/conversation-opener/modal.tsxindex 6c12907196a..556e5b88c05 100644--- a/web/app/components/base/features/new-feature-panel/conversation-opener/modal.tsx+++ b/web/app/components/base/features/new-feature-panel/conversation-opener/modal.tsx@@ -1,6 +1,7 @@import type { OpeningStatement } from '@/app/components/base/features/types'import type { InputVar } from '@/app/components/workflow/types'import type { PromptVariable } from '@/models/debug'+import { cn } from '@langgenius/dify-ui/cn'import { useBoolean } from 'ahooks'import { noop } from 'es-toolkit/function'import { produce } from 'immer'@@ -14,7 +15,6 @@ import Divider from '@/app/components/base/divider'import Modal from '@/app/components/base/modal'import PromptEditor from '@/app/components/base/prompt-editor'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import { checkKeys, getNewVar } from '@/utils/var'type OpeningSettingModalProps = {diff --git a/web/app/components/base/features/new-feature-panel/dialog-wrapper.tsx b/web/app/components/base/features/new-feature-panel/dialog-wrapper.tsxindex 75d1a61dc95..d3e08147778 100644--- a/web/app/components/base/features/new-feature-panel/dialog-wrapper.tsx+++ b/web/app/components/base/features/new-feature-panel/dialog-wrapper.tsx@@ -1,7 +1,7 @@import type { ReactNode } from 'react'import { Dialog, DialogPanel, Transition, TransitionChild } from '@headlessui/react'+import { cn } from '@langgenius/dify-ui/cn'import { Fragment, useCallback } from 'react'-import { cn } from '@/utils/classnames'type DialogProps = {className?: string@@ -33,11 +33,11 @@ const DialogWrapper = ({</TransitionChild><div className="fixed inset-0">- <div className={cn('flex min-h-full flex-col items-end justify-center pb-2', inWorkflow ? 'pt-[112px]' : 'pr-2 pt-[64px]')} data-testid="dialog-layout-container">+ <div className={cn('flex min-h-full flex-col items-end justify-center pb-2', inWorkflow ? 'pt-[112px]' : 'pt-[64px] pr-2')} data-testid="dialog-layout-container"><TransitionChild><DialogPanel className={cn('relative flex h-0 w-[420px] grow flex-col overflow-hidden border-components-panel-border bg-components-panel-bg-alt p-0 text-left align-middle shadow-xl transition-all',- inWorkflow ? 'rounded-l-2xl border-b-[0.5px] border-l-[0.5px] border-t-[0.5px]' : 'rounded-2xl border-[0.5px]',+ inWorkflow ? 'rounded-l-2xl border-t-[0.5px] border-b-[0.5px] border-l-[0.5px]' : 'rounded-2xl border-[0.5px]','data-closed:scale-95 data-closed:opacity-0','data-enter:scale-100 data-enter:opacity-100 data-enter:duration-300 data-enter:ease-out','data-leave:scale-95 data-leave:opacity-0 data-leave:duration-200 data-leave:ease-in',diff --git a/web/app/components/base/features/new-feature-panel/feature-bar.tsx b/web/app/components/base/features/new-feature-panel/feature-bar.tsxindex b5370021335..dac46126774 100644--- a/web/app/components/base/features/new-feature-panel/feature-bar.tsx+++ b/web/app/components/base/features/new-feature-panel/feature-bar.tsx@@ -1,3 +1,4 @@+import { cn } from '@langgenius/dify-ui/cn'import { RiApps2AddLine, RiArrowRightLine, RiSparklingFill } from '@remixicon/react'import * as React from 'react'import { useMemo, useState } from 'react'@@ -7,7 +8,6 @@ import VoiceSettings from '@/app/components/base/features/new-feature-panel/textimport { Citations, ContentModeration, FolderUpload, LoveMessage, MessageFast, Microphone01, TextToAudio, VirtualAssistant } from '@/app/components/base/icons/src/vender/features'import Tooltip from '@/app/components/base/tooltip'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'type Props = {isChatMode?: booleandiff --git a/web/app/components/base/features/new-feature-panel/moderation/moderation-setting-modal.tsx b/web/app/components/base/features/new-feature-panel/moderation/moderation-setting-modal.tsxindex 8a6862eb829..1247321bd8d 100644--- a/web/app/components/base/features/new-feature-panel/moderation/moderation-setting-modal.tsx+++ b/web/app/components/base/features/new-feature-panel/moderation/moderation-setting-modal.tsx@@ -1,6 +1,7 @@import type { ChangeEvent, FC } from 'react'import type { CodeBasedExtensionItem } from '@/models/common'import type { ModerationConfig, ModerationContentConfig } from '@/models/debug'+import { cn } from '@langgenius/dify-ui/cn'import { noop } from 'es-toolkit/function'import { useState } from 'react'import { useTranslation } from 'react-i18next'@@ -15,7 +16,6 @@ import { useDocLink, useLocale } from '@/context/i18n'import { useModalContext } from '@/context/modal-context'import { LanguagesSupported } from '@/i18n-config/language'import { useCodeBasedExtensions, useModelProviders } from '@/service/use-common'-import { cn } from '@/utils/classnames'import FormGeneration from './form-generation'import ModerationContent from './moderation-content'diff --git a/web/app/components/base/features/new-feature-panel/text-to-speech/param-config-content.tsx b/web/app/components/base/features/new-feature-panel/text-to-speech/param-config-content.tsxindex 0784c691307..3bc41b23cc2 100644--- a/web/app/components/base/features/new-feature-panel/text-to-speech/param-config-content.tsx+++ b/web/app/components/base/features/new-feature-panel/text-to-speech/param-config-content.tsx@@ -2,6 +2,7 @@import type { OnFeaturesChange } from '@/app/components/base/features/types'import type { Item } from '@/app/components/base/select'import { Listbox, ListboxButton, ListboxOption, ListboxOptions, Transition } from '@headlessui/react'+import { cn } from '@langgenius/dify-ui/cn'import { produce } from 'immer'import * as React from 'react'import { Fragment } from 'react'@@ -15,7 +16,6 @@ import { languages } from '@/i18n-config/language'import { usePathname } from '@/next/navigation'import { useAppVoices } from '@/service/use-apps'import { TtsAutoPlay } from '@/types/app'-import { cn } from '@/utils/classnames'type VoiceParamConfigProps = {onClose: () => void@@ -65,7 +65,7 @@ const VoiceParamConfig = ({return (<><div className="mb-4 flex items-center justify-between">- <div className="text-text-primary system-xl-semibold">{t('voice.voiceSettings.title', { ns: 'appDebug' })}</div>+ <div className="system-xl-semibold text-text-primary">{t('voice.voiceSettings.title', { ns: 'appDebug' })}</div><divclassName="cursor-pointer p-1"role="button"@@ -83,7 +83,7 @@ const VoiceParamConfig = ({</div></div><div className="mb-3">- <div className="mb-1 flex items-center py-1 text-text-secondary system-sm-semibold">+ <div className="mb-1 flex items-center py-1 system-sm-semibold text-text-secondary">{t('voice.voiceSettings.language', { ns: 'appDebug' })}<TooltippopupContent={(@@ -107,7 +107,7 @@ const VoiceParamConfig = ({><div className="relative h-8"><ListboxButton- className="h-full w-full cursor-pointer rounded-lg border-0 bg-components-input-bg-normal py-1.5 pl-3 pr-10 focus-visible:bg-state-base-hover focus-visible:outline-hidden group-hover:bg-state-base-hover sm:text-sm sm:leading-6"+ className="h-full w-full cursor-pointer rounded-lg border-0 bg-components-input-bg-normal py-1.5 pr-10 pl-3 group-hover:bg-state-base-hover focus-visible:bg-state-base-hover focus-visible:outline-hidden sm:text-sm sm:leading-6"><span className={cn('block truncate text-left text-text-secondary', !languageItem?.name && 'text-text-tertiary')}>{languageItem?.name@@ -131,7 +131,7 @@ const VoiceParamConfig = ({{languages.map(item => (<ListboxOptionkey={item.value}- className="relative cursor-pointer select-none rounded-lg py-2 pl-3 pr-9 text-text-secondary hover:bg-state-base-hover data-active:bg-state-base-active"+ className="relative cursor-pointer rounded-lg py-2 pr-9 pl-3 text-text-secondary select-none hover:bg-state-base-hover data-active:bg-state-base-active"value={item}disabled={false}>@@ -159,7 +159,7 @@ const VoiceParamConfig = ({</Listbox></div><div className="mb-3">- <div className="mb-1 py-1 text-text-secondary system-sm-semibold">+ <div className="mb-1 py-1 system-sm-semibold text-text-secondary">{t('voice.voiceSettings.voice', { ns: 'appDebug' })}</div><div className="flex items-center gap-1">@@ -174,7 +174,7 @@ const VoiceParamConfig = ({><div className="relative h-8 grow"><ListboxButton- className="h-full w-full cursor-pointer rounded-lg border-0 bg-components-input-bg-normal py-1.5 pl-3 pr-10 focus-visible:bg-state-base-hover focus-visible:outline-hidden group-hover:bg-state-base-hover sm:text-sm sm:leading-6"+ className="h-full w-full cursor-pointer rounded-lg border-0 bg-components-input-bg-normal py-1.5 pr-10 pl-3 group-hover:bg-state-base-hover focus-visible:bg-state-base-hover focus-visible:outline-hidden sm:text-sm sm:leading-6"><spanclassName={cn('block truncate text-left text-text-secondary', !voiceItem?.name && 'text-text-tertiary')}@@ -198,7 +198,7 @@ const VoiceParamConfig = ({{voiceItems?.map((item: Item) => (<ListboxOptionkey={item.value}- className="relative cursor-pointer select-none rounded-lg py-2 pl-3 pr-9 text-text-secondary hover:bg-state-base-hover data-active:bg-state-base-active"+ className="relative cursor-pointer rounded-lg py-2 pr-9 pl-3 text-text-secondary select-none hover:bg-state-base-hover data-active:bg-state-base-active"value={item}disabled={false}>@@ -233,7 +233,7 @@ const VoiceParamConfig = ({</div></div><div>- <div className="mb-1 py-1 text-text-secondary system-sm-semibold">+ <div className="mb-1 py-1 system-sm-semibold text-text-secondary">{t('voice.voiceSettings.autoPlay', { ns: 'appDebug' })}</div><Switchdiff --git a/web/app/components/base/file-thumb/index.tsx b/web/app/components/base/file-thumb/index.tsxindex 09f88d5d3ba..960d39d9489 100644--- a/web/app/components/base/file-thumb/index.tsx+++ b/web/app/components/base/file-thumb/index.tsx@@ -1,15 +1,15 @@import type { VariantProps } from 'class-variance-authority'+import { cn } from '@langgenius/dify-ui/cn'import { cva } from 'class-variance-authority'import * as React from 'react'import { useCallback } from 'react'-import { cn } from '@/utils/classnames'import { FileTypeIcon } from '../file-uploader'import { getFileAppearanceType } from '../file-uploader/utils'import Tooltip from '../tooltip'import ImageRender from './image-render'const FileThumbVariants = cva(- 'flex items-center justify-center cursor-pointer',+ 'flex cursor-pointer items-center justify-center',{variants: {size: {diff --git a/web/app/components/base/file-uploader/file-from-link-or-local/index.tsx b/web/app/components/base/file-uploader/file-from-link-or-local/index.tsxindex f07119311b2..872526f1ae6 100644--- a/web/app/components/base/file-uploader/file-from-link-or-local/index.tsx+++ b/web/app/components/base/file-uploader/file-from-link-or-local/index.tsx@@ -1,4 +1,5 @@import type { FileUpload } from '@/app/components/base/features/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiUploadCloud2Line } from '@remixicon/react'import {memo,@@ -11,7 +12,6 @@ import {PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import { FILE_URL_REGEX } from '../constants'import FileInput from '../file-input'import { useFile } from '../hooks'diff --git a/web/app/components/base/file-uploader/file-image-render.tsx b/web/app/components/base/file-uploader/file-image-render.tsxindex f295c9fc042..3119fb083bb 100644--- a/web/app/components/base/file-uploader/file-image-render.tsx+++ b/web/app/components/base/file-uploader/file-image-render.tsx@@ -1,4 +1,4 @@-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'type FileImageRenderProps = {imageUrl: stringdiff --git a/web/app/components/base/file-uploader/file-list-in-log.tsx b/web/app/components/base/file-uploader/file-list-in-log.tsxindex 4a9cb6029b9..14dd171b59d 100644--- a/web/app/components/base/file-uploader/file-list-in-log.tsx+++ b/web/app/components/base/file-uploader/file-list-in-log.tsx@@ -1,11 +1,11 @@import type { FileEntity } from './types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowRightSLine } from '@remixicon/react'import * as React from 'react'import { useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'import Tooltip from '@/app/components/base/tooltip'import { SupportUploadFileTypes } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import FileImageRender from './file-image-render'import FileTypeIcon from './file-type-icon'import FileItem from './file-uploader-in-attachment/file-item'@@ -39,7 +39,7 @@ const FileListInLog = ({ fileList, isExpanded = false, noBorder = false, noPaddi<div className={cn('px-3 py-2', expanded && 'py-3', !noBorder && 'border-t border-divider-subtle', noPadding && 'p-0!')}><div className="flex justify-between gap-1">{expanded && (- <div className="system-xs-semibold-uppercase grow cursor-pointer py-1 text-text-secondary" onClick={() => setExpanded(!expanded)}>{t('runDetail.fileListLabel', { ns: 'appLog' })}</div>+ <div className="grow cursor-pointer py-1 system-xs-semibold-uppercase text-text-secondary" onClick={() => setExpanded(!expanded)}>{t('runDetail.fileListLabel', { ns: 'appLog' })}</div>)}{!expanded && (<div className="flex gap-1">@@ -85,8 +85,8 @@ const FileListInLog = ({ fileList, isExpanded = false, noBorder = false, noPaddi{expanded && (<div className="flex flex-col gap-3">{fileList.map(item => (- <div key={item.varName} className="system-xs-regular flex flex-col gap-1">- <div className="py-1 text-text-tertiary ">{item.varName}</div>+ <div key={item.varName} className="flex flex-col gap-1 system-xs-regular">+ <div className="py-1 text-text-tertiary">{item.varName}</div>{item.list.map(file => (<FileItemkey={file.id}diff --git a/web/app/components/base/file-uploader/file-type-icon.tsx b/web/app/components/base/file-uploader/file-type-icon.tsxindex e3133216d63..54f3f294c6d 100644--- a/web/app/components/base/file-uploader/file-type-icon.tsx+++ b/web/app/components/base/file-uploader/file-type-icon.tsx@@ -1,4 +1,5 @@import type { FileAppearanceType } from './types'+import { cn } from '@langgenius/dify-ui/cn'import {RiFile3Fill,RiFileCodeFill,@@ -14,7 +15,6 @@ import {RiMarkdownFill,} from '@remixicon/react'import { memo } from 'react'-import { cn } from '@/utils/classnames'import { FileAppearanceTypeEnum } from './types'const FILE_TYPE_ICON_MAP = {diff --git a/web/app/components/base/file-uploader/file-uploader-in-attachment/file-item.tsx b/web/app/components/base/file-uploader/file-uploader-in-attachment/file-item.tsxindex f8015aa7c76..4c23533d6f7 100644--- a/web/app/components/base/file-uploader/file-uploader-in-attachment/file-item.tsx+++ b/web/app/components/base/file-uploader/file-uploader-in-attachment/file-item.tsx@@ -1,4 +1,5 @@import type { FileEntity } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import {RiDeleteBinLine,RiDownloadLine,@@ -14,7 +15,6 @@ import { ReplayLine } from '@/app/components/base/icons/src/vender/other'import ImagePreview from '@/app/components/base/image-uploader/image-preview'import ProgressCircle from '@/app/components/base/progress-bar/progress-circle'import { SupportUploadFileTypes } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import { downloadUrl } from '@/utils/download'import { formatFileSize } from '@/utils/format'import FileImageRender from '../file-image-render'@@ -80,12 +80,12 @@ const FileInAttachmentItem = ({</div><div className="mr-1 w-0 grow"><div- className="system-xs-medium mb-0.5 flex items-center truncate text-text-secondary"+ className="mb-0.5 flex items-center truncate system-xs-medium text-text-secondary"title={file.name}><div className="truncate">{name}</div></div>- <div className="system-2xs-medium-uppercase flex items-center text-text-tertiary">+ <div className="flex items-center system-2xs-medium-uppercase text-text-tertiary">{ext && (<span>{ext.toLowerCase()}</span>@@ -93,7 +93,7 @@ const FileInAttachmentItem = ({}{ext && (- <span className="system-2xs-medium mx-1">•</span>+ <span className="mx-1 system-2xs-medium">•</span>)}{diff --git a/web/app/components/base/file-uploader/file-uploader-in-attachment/index.tsx b/web/app/components/base/file-uploader/file-uploader-in-attachment/index.tsxindex bc41a94d86e..ba308642c2c 100644--- a/web/app/components/base/file-uploader/file-uploader-in-attachment/index.tsx+++ b/web/app/components/base/file-uploader/file-uploader-in-attachment/index.tsx@@ -1,5 +1,6 @@import type { FileEntity } from '../types'import type { FileUpload } from '@/app/components/base/features/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiLink,RiUploadCloud2Line,@@ -10,7 +11,6 @@ import {import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'import { TransferMethod } from '@/types/app'-import { cn } from '@/utils/classnames'import FileFromLinkOrLocal from '../file-from-link-or-local'import FileInput from '../file-input'import { useFile } from '../hooks'diff --git a/web/app/components/base/file-uploader/file-uploader-in-chat-input/file-item.tsx b/web/app/components/base/file-uploader/file-uploader-in-chat-input/file-item.tsxindex 5b326e35bc0..34056a85d5c 100644--- a/web/app/components/base/file-uploader/file-uploader-in-chat-input/file-item.tsx+++ b/web/app/components/base/file-uploader/file-uploader-in-chat-input/file-item.tsx@@ -1,4 +1,5 @@import type { FileEntity } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import { useState } from 'react'import ActionButton from '@/app/components/base/action-button'import AudioPreview from '@/app/components/base/file-uploader/audio-preview'@@ -6,7 +7,6 @@ import PdfPreview from '@/app/components/base/file-uploader/dynamic-pdf-preview'import VideoPreview from '@/app/components/base/file-uploader/video-preview'import ProgressCircle from '@/app/components/base/progress-bar/progress-circle'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import { downloadUrl } from '@/utils/download'import { formatFileSize } from '@/utils/format'import FileTypeIcon from '../file-type-icon'diff --git a/web/app/components/base/file-uploader/file-uploader-in-chat-input/file-list.tsx b/web/app/components/base/file-uploader/file-uploader-in-chat-input/file-list.tsxindex 8f5ee0ff96a..207aaf3c3f0 100644--- a/web/app/components/base/file-uploader/file-uploader-in-chat-input/file-list.tsx+++ b/web/app/components/base/file-uploader/file-uploader-in-chat-input/file-list.tsx@@ -1,7 +1,7 @@import type { FileEntity } from '../types'import type { FileUpload } from '@/app/components/base/features/types'+import { cn } from '@langgenius/dify-ui/cn'import { SupportUploadFileTypes } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import { useFile } from '../hooks'import { useStore } from '../store'import FileImageItem from './file-image-item'diff --git a/web/app/components/base/file-uploader/file-uploader-in-chat-input/index.tsx b/web/app/components/base/file-uploader/file-uploader-in-chat-input/index.tsxindex 08bb8b45d11..14a424d4f23 100644--- a/web/app/components/base/file-uploader/file-uploader-in-chat-input/index.tsx+++ b/web/app/components/base/file-uploader/file-uploader-in-chat-input/index.tsx@@ -1,4 +1,5 @@import type { FileUpload } from '@/app/components/base/features/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiAttachmentLine,} from '@remixicon/react'@@ -8,7 +9,6 @@ import {} from 'react'import ActionButton from '@/app/components/base/action-button'import { TransferMethod } from '@/types/app'-import { cn } from '@/utils/classnames'import FileFromLinkOrLocal from '../file-from-link-or-local'type FileUploaderInChatInputProps = {diff --git a/web/app/components/base/form/components/base/base-field.tsx b/web/app/components/base/form/components/base/base-field.tsxindex 21fba084479..b1e17bdefcd 100644--- a/web/app/components/base/form/components/base/base-field.tsx+++ b/web/app/components/base/form/components/base/base-field.tsx@@ -1,5 +1,6 @@import type { AnyFieldApi } from '@tanstack/react-form'import type { FieldState, FormSchema, TypeWithI18N } from '@/app/components/base/form/types'+import { cn } from '@langgenius/dify-ui/cn'import { useStore } from '@tanstack/react-form'import {isValidElement,@@ -17,7 +18,6 @@ import PureSelect from '@/app/components/base/select/pure'import Tooltip from '@/app/components/base/tooltip'import { useRenderI18nObject } from '@/hooks/use-i18n'import { useTriggerPluginDynamicOptions } from '@/service/use-triggers'-import { cn } from '@/utils/classnames'const getExtraProps = (type: FormTypeEnum) => {switch (type) {@@ -281,7 +281,7 @@ const BaseField = ({<divkey={option.value}className={cn(- 'hover:bg-components-option-card-option-hover-bg hover:border-components-option-card-option-hover-border flex h-8 flex-1 grow cursor-pointer items-center justify-center gap-2 rounded-lg border border-components-option-card-option-border bg-components-option-card-option-bg p-2 text-text-secondary system-sm-regular',+ 'hover:bg-components-option-card-option-hover-bg hover:border-components-option-card-option-hover-border flex h-8 flex-1 grow cursor-pointer items-center justify-center gap-2 rounded-lg border border-components-option-card-option-border bg-components-option-card-option-bg p-2 system-sm-regular text-text-secondary',value === option.value && 'border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg text-text-primary shadow-xs',disabled && 'cursor-not-allowed opacity-50',inputClassName,@@ -327,21 +327,21 @@ const BaseField = ({</div></div>{description && (- <div className="mt-4 text-text-tertiary system-xs-regular">+ <div className="mt-4 system-xs-regular text-text-tertiary">{translatedDescription}</div>)}{url && (<a- className="mt-4 flex items-center text-text-accent system-xs-regular"+ className="mt-4 flex items-center system-xs-regular text-text-accent"href={url}target="_blank"><span className="break-all">{translatedHelp}</span>- <div className="i-ri-external-link-line ml-1 h-3 w-3 shrink-0" />+ <div className="ml-1 i-ri-external-link-line h-3 w-3 shrink-0" /></a>)}diff --git a/web/app/components/base/form/components/base/base-form.tsx b/web/app/components/base/form/components/base/base-form.tsxindex 8c81caa42d8..84374b11b06 100644--- a/web/app/components/base/form/components/base/base-form.tsx+++ b/web/app/components/base/form/components/base/base-form.tsx@@ -6,6 +6,7 @@ import type {BaseFieldProps,} from '.'import type { FieldState, FormRef, FormSchema, SetFieldsParam } from '@/app/components/base/form/types'+import { cn } from '@langgenius/dify-ui/cn'import {useForm,useStore,@@ -26,7 +27,6 @@ import {FormItemValidateStatusEnum,} from '@/app/components/base/form/types'-import { cn } from '@/utils/classnames'import {BaseField,} from '.'diff --git a/web/app/components/base/form/components/field/checkbox.tsx b/web/app/components/base/form/components/field/checkbox.tsxindex a926830b753..cd5b95f2fa0 100644--- a/web/app/components/base/form/components/field/checkbox.tsx+++ b/web/app/components/base/form/components/field/checkbox.tsx@@ -1,4 +1,4 @@-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'import { useFieldContext } from '../..'import Checkbox from '../../../checkbox'@@ -27,7 +27,7 @@ const CheckboxField = ({<labelhtmlFor={field.name}className={cn(- 'system-sm-medium grow cursor-pointer pt-1 text-text-secondary',+ 'grow cursor-pointer pt-1 system-sm-medium text-text-secondary',labelClassName,)}onClick={() => {diff --git a/web/app/components/base/form/components/field/custom-select.tsx b/web/app/components/base/form/components/field/custom-select.tsxindex 08e2cdc4377..5808d4004d2 100644--- a/web/app/components/base/form/components/field/custom-select.tsx+++ b/web/app/components/base/form/components/field/custom-select.tsx@@ -1,6 +1,6 @@import type { CustomSelectProps, Option } from '../../../select/custom'import type { LabelProps } from '../label'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'import { useFieldContext } from '../..'import CustomSelect from '../../../select/custom'import Label from '../label'diff --git a/web/app/components/base/form/components/field/file-types.tsx b/web/app/components/base/form/components/field/file-types.tsxindex 242339e6ccd..a87f4957351 100644--- a/web/app/components/base/form/components/field/file-types.tsx+++ b/web/app/components/base/form/components/field/file-types.tsx@@ -1,8 +1,8 @@import type { LabelProps } from '../label'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback } from 'react'import FileTypeItem from '@/app/components/workflow/nodes/_base/components/file-type-item'import { SupportUploadFileTypes } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import { useFieldContext } from '../..'import Label from '../label'diff --git a/web/app/components/base/form/components/field/file-uploader.tsx b/web/app/components/base/form/components/field/file-uploader.tsxindex b498cfb9515..1e835768c52 100644--- a/web/app/components/base/form/components/field/file-uploader.tsx+++ b/web/app/components/base/form/components/field/file-uploader.tsx@@ -1,8 +1,8 @@import type { FileUploaderInAttachmentWrapperProps } from '../../../file-uploader/file-uploader-in-attachment'import type { FileEntity } from '../../../file-uploader/types'import type { LabelProps } from '../label'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'import { useFieldContext } from '../..'import FileUploaderInAttachmentWrapper from '../../../file-uploader/file-uploader-in-attachment'import Label from '../label'diff --git a/web/app/components/base/form/components/field/input-type-select/index.tsx b/web/app/components/base/form/components/field/input-type-select/index.tsxindex 868625aae73..5e150240f6c 100644--- a/web/app/components/base/form/components/field/input-type-select/index.tsx+++ b/web/app/components/base/form/components/field/input-type-select/index.tsx@@ -1,8 +1,8 @@import type { CustomSelectProps } from '../../../../select/custom'import type { LabelProps } from '../../label'import type { FileTypeSelectOption, InputType } from './types'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback } from 'react'-import { cn } from '@/utils/classnames'import { useFieldContext } from '../../..'import CustomSelect from '../../../../select/custom'import Label from '../../label'diff --git a/web/app/components/base/form/components/field/input-type-select/trigger.tsx b/web/app/components/base/form/components/field/input-type-select/trigger.tsxindex c03beeb4722..c2b61ca547b 100644--- a/web/app/components/base/form/components/field/input-type-select/trigger.tsx+++ b/web/app/components/base/form/components/field/input-type-select/trigger.tsx@@ -1,9 +1,9 @@import type { FileTypeSelectOption } from './types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine } from '@remixicon/react'import * as React from 'react'import { useTranslation } from 'react-i18next'import Badge from '@/app/components/base/badge'-import { cn } from '@/utils/classnames'type TriggerProps = {option: FileTypeSelectOption | undefineddiff --git a/web/app/components/base/form/components/field/mixed-variable-text-input/index.tsx b/web/app/components/base/form/components/field/mixed-variable-text-input/index.tsxindex 23bfd4d19d5..2f47cb1a0f2 100644--- a/web/app/components/base/form/components/field/mixed-variable-text-input/index.tsx+++ b/web/app/components/base/form/components/field/mixed-variable-text-input/index.tsx@@ -1,8 +1,8 @@+import { cn } from '@langgenius/dify-ui/cn'import {memo,} from 'react'import PromptEditor from '@/app/components/base/prompt-editor'-import { cn } from '@/utils/classnames'import Placeholder from './placeholder'type MixedVariableTextInputProps = {diff --git a/web/app/components/base/form/components/field/number-input.tsx b/web/app/components/base/form/components/field/number-input.tsxindex fc874a0c2b3..fde6463731c 100644--- a/web/app/components/base/form/components/field/number-input.tsx+++ b/web/app/components/base/form/components/field/number-input.tsx@@ -1,8 +1,8 @@import type { ReactNode } from 'react'import type { NumberFieldInputProps, NumberFieldRootProps, NumberFieldSize } from '../../../ui/number-field'import type { LabelProps } from '../label'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'import { useFieldContext } from '../..'import {NumberField,diff --git a/web/app/components/base/form/components/field/number-slider.tsx b/web/app/components/base/form/components/field/number-slider.tsxindex 0db18a0a627..5bd66e2fdef 100644--- a/web/app/components/base/form/components/field/number-slider.tsx+++ b/web/app/components/base/form/components/field/number-slider.tsx@@ -1,7 +1,7 @@import type { LabelProps } from '../label'import type { InputNumberWithSliderProps } from '@/app/components/workflow/nodes/_base/components/input-number-with-slider'+import { cn } from '@langgenius/dify-ui/cn'import InputNumberWithSlider from '@/app/components/workflow/nodes/_base/components/input-number-with-slider'-import { cn } from '@/utils/classnames'import { useFieldContext } from '../..'import Label from '../label'@@ -30,7 +30,7 @@ const NumberSliderField = ({{...(labelOptions ?? {})}/>{description && (- <div className="body-xs-regular pb-0.5 text-text-tertiary">+ <div className="pb-0.5 body-xs-regular text-text-tertiary">{description}</div>)}diff --git a/web/app/components/base/form/components/field/options.tsx b/web/app/components/base/form/components/field/options.tsxindex 99c89eec470..8cd8c1c6f76 100644--- a/web/app/components/base/form/components/field/options.tsx+++ b/web/app/components/base/form/components/field/options.tsx@@ -1,7 +1,7 @@import type { LabelProps } from '../label'import type { Options } from '@/app/components/app/configuration/config-var/config-select'+import { cn } from '@langgenius/dify-ui/cn'import ConfigSelect from '@/app/components/app/configuration/config-var/config-select'-import { cn } from '@/utils/classnames'import { useFieldContext } from '../..'import Label from '../label'diff --git a/web/app/components/base/form/components/field/select.tsx b/web/app/components/base/form/components/field/select.tsxindex 00ba7287552..77405fdca6a 100644--- a/web/app/components/base/form/components/field/select.tsx+++ b/web/app/components/base/form/components/field/select.tsx@@ -1,6 +1,6 @@import type { Option, PureSelectProps } from '../../../select/pure'import type { LabelProps } from '../label'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'import { useFieldContext } from '../..'import PureSelect from '../../../select/pure'import Label from '../label'diff --git a/web/app/components/base/form/components/field/text-area.tsx b/web/app/components/base/form/components/field/text-area.tsxindex 295482e56ae..86c2527bda1 100644--- a/web/app/components/base/form/components/field/text-area.tsx+++ b/web/app/components/base/form/components/field/text-area.tsx@@ -1,7 +1,7 @@import type { TextareaProps } from '../../../textarea'import type { LabelProps } from '../label'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'import { useFieldContext } from '../..'import Textarea from '../../../textarea'import Label from '../label'diff --git a/web/app/components/base/form/components/field/text.tsx b/web/app/components/base/form/components/field/text.tsxindex c9b46919a41..3e75e19c226 100644--- a/web/app/components/base/form/components/field/text.tsx+++ b/web/app/components/base/form/components/field/text.tsx@@ -1,7 +1,7 @@import type { InputProps } from '../../../input'import type { LabelProps } from '../label'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'import { useFieldContext } from '../..'import Input from '../../../input'import Label from '../label'diff --git a/web/app/components/base/form/components/field/upload-method.tsx b/web/app/components/base/form/components/field/upload-method.tsxindex 6d7c91092f2..24083706c73 100644--- a/web/app/components/base/form/components/field/upload-method.tsx+++ b/web/app/components/base/form/components/field/upload-method.tsx@@ -1,9 +1,9 @@import type { LabelProps } from '../label'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'import OptionCard from '@/app/components/workflow/nodes/_base/components/option-card'import { TransferMethod } from '@/types/app'-import { cn } from '@/utils/classnames'import { useFieldContext } from '../..'import Label from '../label'diff --git a/web/app/components/base/form/components/field/variable-or-constant-input.tsx b/web/app/components/base/form/components/field/variable-or-constant-input.tsxindex 82073ce0206..04ecf99330e 100644--- a/web/app/components/base/form/components/field/variable-or-constant-input.tsx+++ b/web/app/components/base/form/components/field/variable-or-constant-input.tsx@@ -1,12 +1,12 @@import type { ChangeEvent } from 'react'import type { LabelProps } from '../label'+import { cn } from '@langgenius/dify-ui/cn'import { RiEditLine } from '@remixicon/react'import { useCallback, useState } from 'react'import { VariableX } from '@/app/components/base/icons/src/vender/workflow'import Input from '@/app/components/base/input'import SegmentedControl from '@/app/components/base/segmented-control'import VarReferencePicker from '@/app/components/workflow/nodes/_base/components/variable/var-reference-picker'-import { cn } from '@/utils/classnames'import Label from '../label'type VariableOrConstantInputFieldProps = {diff --git a/web/app/components/base/form/components/field/variable-selector.tsx b/web/app/components/base/form/components/field/variable-selector.tsxindex a0c22029aab..aeb687c0048 100644--- a/web/app/components/base/form/components/field/variable-selector.tsx+++ b/web/app/components/base/form/components/field/variable-selector.tsx@@ -1,6 +1,6 @@import type { LabelProps } from '../label'+import { cn } from '@langgenius/dify-ui/cn'import VarReferencePicker from '@/app/components/workflow/nodes/_base/components/variable/var-reference-picker'-import { cn } from '@/utils/classnames'import Label from '../label'type VariableOrConstantInputFieldProps = {diff --git a/web/app/components/base/form/components/label.tsx b/web/app/components/base/form/components/label.tsxindex d62b985ab19..cd230435934 100644--- a/web/app/components/base/form/components/label.tsx+++ b/web/app/components/base/form/components/label.tsx@@ -1,5 +1,5 @@+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import Tooltip from '../../tooltip'export type LabelProps = {@@ -30,8 +30,8 @@ const Label = ({>{label}</label>- {!isRequired && showOptional && <div className="system-xs-regular ml-1 text-text-tertiary">{t('label.optional', { ns: 'common' })}</div>}- {isRequired && <div className="system-xs-regular ml-1 text-text-destructive-secondary">*</div>}+ {!isRequired && showOptional && <div className="ml-1 system-xs-regular text-text-tertiary">{t('label.optional', { ns: 'common' })}</div>}+ {isRequired && <div className="ml-1 system-xs-regular text-text-destructive-secondary">*</div>}{tooltip && (<TooltippopupContent={diff --git a/web/app/components/base/fullscreen-modal/__tests__/index.spec.tsx b/web/app/components/base/fullscreen-modal/__tests__/index.spec.tsxindex 8affae3d57a..f238ea79f73 100644--- a/web/app/components/base/fullscreen-modal/__tests__/index.spec.tsx+++ b/web/app/components/base/fullscreen-modal/__tests__/index.spec.tsx@@ -50,7 +50,7 @@ describe('FullScreenModal Component', () => {await screen.findByRole('dialog')const element = document.querySelector('.custom-wrapper-class')expect(element).toBeInTheDocument()- expect(element).toHaveClass('modal-dialog')+ expect(element).toHaveClass('relative', 'z-50')})it('should apply className to the inner panel', async () => {@@ -154,7 +154,7 @@ describe('FullScreenModal Component', () => {</FullScreenModal>,)- const dialog = document.querySelector('.modal-dialog')+ const dialog = document.querySelector('.relative.z-50')if (dialog) {await user.click(dialog)expect(onClose).toHaveBeenCalled()diff --git a/web/app/components/base/fullscreen-modal/index.tsx b/web/app/components/base/fullscreen-modal/index.tsxindex a9e153799e7..95f593ec3d9 100644--- a/web/app/components/base/fullscreen-modal/index.tsx+++ b/web/app/components/base/fullscreen-modal/index.tsx@@ -1,7 +1,7 @@import { Dialog, DialogPanel, Transition, TransitionChild } from '@headlessui/react'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLargeLine } from '@remixicon/react'import { noop } from 'es-toolkit/function'-import { cn } from '@/utils/classnames'type IModal = {className?: string@@ -26,7 +26,7 @@ export default function FullScreenModal({}: IModal) {return (<Transition show={open} appear>- <Dialog as="div" className={cn('modal-dialog', wrapperClassName)} onClose={onClose}>+ <Dialog as="div" className={cn('relative z-50', wrapperClassName)} onClose={onClose}><TransitionChild><div className={cn('fixed inset-0 bg-background-overlay-backdrop backdrop-blur-[6px]', 'duration-300 ease-in data-closed:opacity-0', 'data-enter:opacity-100', 'data-leave:opacity-0')} /></TransitionChild>@@ -44,8 +44,8 @@ export default function FullScreenModal({{closable&& (<div- className="absolute right-3 top-3 z-50 flex h-9 w-9 cursor-pointer items-center justify-center- radius-lg bg-components-button-tertiary-bg hover:bg-components-button-tertiary-bg-hover"+ className="absolute top-3 right-3 z-50 flex h-9 w-9 cursor-pointer items-center justify-center+ rounded-[10px] bg-components-button-tertiary-bg hover:bg-components-button-tertiary-bg-hover"onClick={(e) => {e.stopPropagation()onClose()diff --git a/web/app/components/base/grid-mask/index.tsx b/web/app/components/base/grid-mask/index.tsxindex 105bf04edb4..fa446a2b7dc 100644--- a/web/app/components/base/grid-mask/index.tsx+++ b/web/app/components/base/grid-mask/index.tsx@@ -1,5 +1,5 @@import type { FC } from 'react'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'import Style from './style.module.css'type GridMaskProps = {diff --git a/web/app/components/base/icons/src/image/llm/BaichuanTextCn.tsx b/web/app/components/base/icons/src/image/llm/BaichuanTextCn.tsxindex dba4597d8c5..997efd51be8 100644--- a/web/app/components/base/icons/src/image/llm/BaichuanTextCn.tsx+++ b/web/app/components/base/icons/src/image/llm/BaichuanTextCn.tsx@@ -1,8 +1,8 @@// GENERATE BY script// DON NOT EDIT IT MANUALLY+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'import s from './BaichuanTextCn.module.css'const Icon = (diff --git a/web/app/components/base/icons/src/image/llm/Minimax.tsx b/web/app/components/base/icons/src/image/llm/Minimax.tsxindex 2776863e348..70e7f609f8c 100644--- a/web/app/components/base/icons/src/image/llm/Minimax.tsx+++ b/web/app/components/base/icons/src/image/llm/Minimax.tsx@@ -1,8 +1,8 @@// GENERATE BY script// DON NOT EDIT IT MANUALLY+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'import s from './Minimax.module.css'const Icon = (diff --git a/web/app/components/base/icons/src/image/llm/MinimaxText.tsx b/web/app/components/base/icons/src/image/llm/MinimaxText.tsxindex c222ffcccf1..3b4bf560048 100644--- a/web/app/components/base/icons/src/image/llm/MinimaxText.tsx+++ b/web/app/components/base/icons/src/image/llm/MinimaxText.tsx@@ -1,8 +1,8 @@// GENERATE BY script// DON NOT EDIT IT MANUALLY+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'import s from './MinimaxText.module.css'const Icon = (diff --git a/web/app/components/base/icons/src/image/llm/Tongyi.tsx b/web/app/components/base/icons/src/image/llm/Tongyi.tsxindex 90dfe297c47..de59f86e3ad 100644--- a/web/app/components/base/icons/src/image/llm/Tongyi.tsx+++ b/web/app/components/base/icons/src/image/llm/Tongyi.tsx@@ -1,8 +1,8 @@// GENERATE BY script// DON NOT EDIT IT MANUALLY+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'import s from './Tongyi.module.css'const Icon = (diff --git a/web/app/components/base/icons/src/image/llm/TongyiText.tsx b/web/app/components/base/icons/src/image/llm/TongyiText.tsxindex 6793503d766..b38d801fa44 100644--- a/web/app/components/base/icons/src/image/llm/TongyiText.tsx+++ b/web/app/components/base/icons/src/image/llm/TongyiText.tsx@@ -1,8 +1,8 @@// GENERATE BY script// DON NOT EDIT IT MANUALLY+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'import s from './TongyiText.module.css'const Icon = (diff --git a/web/app/components/base/icons/src/image/llm/TongyiTextCn.tsx b/web/app/components/base/icons/src/image/llm/TongyiTextCn.tsxindex 02faefe1ae0..2a427bb4bd4 100644--- a/web/app/components/base/icons/src/image/llm/TongyiTextCn.tsx+++ b/web/app/components/base/icons/src/image/llm/TongyiTextCn.tsx@@ -1,8 +1,8 @@// GENERATE BY script// DON NOT EDIT IT MANUALLY+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'import s from './TongyiTextCn.module.css'const Icon = (diff --git a/web/app/components/base/icons/src/image/llm/Wxyy.tsx b/web/app/components/base/icons/src/image/llm/Wxyy.tsxindex 789fa8392ce..a146250f101 100644--- a/web/app/components/base/icons/src/image/llm/Wxyy.tsx+++ b/web/app/components/base/icons/src/image/llm/Wxyy.tsx@@ -1,8 +1,8 @@// GENERATE BY script// DON NOT EDIT IT MANUALLY+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'import s from './Wxyy.module.css'const Icon = (diff --git a/web/app/components/base/icons/src/image/llm/WxyyText.tsx b/web/app/components/base/icons/src/image/llm/WxyyText.tsxindex 2c7f9e95fdb..8007ee27a34 100644--- a/web/app/components/base/icons/src/image/llm/WxyyText.tsx+++ b/web/app/components/base/icons/src/image/llm/WxyyText.tsx@@ -1,8 +1,8 @@// GENERATE BY script// DON NOT EDIT IT MANUALLY+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'import s from './WxyyText.module.css'const Icon = (diff --git a/web/app/components/base/icons/src/image/llm/WxyyTextCn.tsx b/web/app/components/base/icons/src/image/llm/WxyyTextCn.tsxindex 027ab4ffd48..835ce6737b9 100644--- a/web/app/components/base/icons/src/image/llm/WxyyTextCn.tsx+++ b/web/app/components/base/icons/src/image/llm/WxyyTextCn.tsx@@ -1,8 +1,8 @@// GENERATE BY script// DON NOT EDIT IT MANUALLY+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'import s from './WxyyTextCn.module.css'const Icon = (diff --git a/web/app/components/base/image-gallery/index.tsx b/web/app/components/base/image-gallery/index.tsxindex 44b77afe681..3e9d0308311 100644--- a/web/app/components/base/image-gallery/index.tsx+++ b/web/app/components/base/image-gallery/index.tsx@@ -1,9 +1,9 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useState } from 'react'import ImagePreview from '@/app/components/base/image-uploader/image-preview'-import { cn } from '@/utils/classnames'import s from './style.module.css'type Props = {diff --git a/web/app/components/base/image-uploader/chat-image-uploader.tsx b/web/app/components/base/image-uploader/chat-image-uploader.tsxindex 0604f93a8a7..b2f6a106c60 100644--- a/web/app/components/base/image-uploader/chat-image-uploader.tsx+++ b/web/app/components/base/image-uploader/chat-image-uploader.tsx@@ -1,5 +1,6 @@import type { FC } from 'react'import type { ImageFile, VisionSettings } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import { useState } from 'react'import { useTranslation } from 'react-i18next'import {@@ -8,7 +9,6 @@ import {PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'import { TransferMethod } from '@/types/app'-import { cn } from '@/utils/classnames'import ImageLinkInput from './image-link-input'import Uploader from './uploader'@@ -107,7 +107,7 @@ const UploaderButton: FC<UploaderButtonProps> = ({hovering && 'bg-primary-50',)}>- <span className="i-custom-vender-line-general-upload-03 mr-1 h-4 w-4" />+ <span className="mr-1 i-custom-vender-line-general-upload-03 h-4 w-4" />{t('imageUploader.uploadFromComputer', { ns: 'common' })}</div>)}diff --git a/web/app/components/base/image-uploader/image-list.tsx b/web/app/components/base/image-uploader/image-list.tsxindex a951680b3f1..c6cb977bb32 100644--- a/web/app/components/base/image-uploader/image-list.tsx+++ b/web/app/components/base/image-uploader/image-list.tsx@@ -1,13 +1,12 @@-/* eslint-disable next/no-img-element */import type { FC } from 'react'import type { ImageFile } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import { useState } from 'react'import { useTranslation } from 'react-i18next'import { AlertTriangle } from '@/app/components/base/icons/src/vender/solid/alertsAndFeedback'import ImagePreview from '@/app/components/base/image-uploader/image-preview'import Tooltip from '@/app/components/base/tooltip'import { TransferMethod } from '@/types/app'-import { cn } from '@/utils/classnames'type ImageListProps = {list: ImageFile[]@@ -61,7 +60,7 @@ const ImageList: FC<ImageListProps> = ({)}</div>{item.progress > -1 && (- <span className="absolute left-[50%] top-[50%] z-1 translate-x-[-50%] translate-y-[-50%] text-sm text-white mix-blend-lighten">+ <span className="absolute top-[50%] left-[50%] z-1 translate-x-[-50%] translate-y-[-50%] text-sm text-white mix-blend-lighten">{item.progress}%</span>@@ -113,7 +112,7 @@ const ImageList: FC<ImageListProps> = ({<buttontype="button"className={cn(- 'absolute -right-[9px] -top-[9px] z-10 h-[18px] w-[18px] items-center justify-center',+ 'absolute -top-[9px] -right-[9px] z-10 h-[18px] w-[18px] items-center justify-center','rounded-2xl shadow-lg hover:bg-state-base-hover',item.progress === -1 ? 'flex' : 'hidden group-hover:flex',)}diff --git a/web/app/components/base/inline-delete-confirm/index.tsx b/web/app/components/base/inline-delete-confirm/index.tsxindex b2f1242da8a..0dccdcf0f58 100644--- a/web/app/components/base/inline-delete-confirm/index.tsx+++ b/web/app/components/base/inline-delete-confirm/index.tsx@@ -1,8 +1,8 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'type InlineDeleteConfirmProps = {title?: string@@ -35,7 +35,7 @@ const InlineDeleteConfirm: FC<InlineDeleteConfirmProps> = ({aria-describedby="inline-delete-confirm-description"className={cn('flex w-[120px] flex-col justify-center gap-1.5',- 'radius-lg border-[0.5px] border-components-panel-border-subtle',+ 'rounded-[10px] border-[0.5px] border-components-panel-border-subtle','bg-components-panel-bg-blur px-2 pt-1.5 pb-2','backdrop-blur-[10px]','shadow-lg',diff --git a/web/app/components/base/input-with-copy/index.tsx b/web/app/components/base/input-with-copy/index.tsxindex 33db47baaa3..2da2e547c26 100644--- a/web/app/components/base/input-with-copy/index.tsx+++ b/web/app/components/base/input-with-copy/index.tsx@@ -1,9 +1,9 @@'use client'import type { InputProps } from '../input'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import { useClipboard } from '@/hooks/use-clipboard'-import { cn } from '@/utils/classnames'import ActionButton from '../action-button'import Tooltip from '../tooltip'@@ -50,7 +50,7 @@ const InputWithCopy = React.forwardRef<HTMLInputElement, InputWithCopyProps>((ref={ref}className={cn('w-full appearance-none border border-transparent bg-components-input-bg-normal py-[7px] text-components-input-text-filled caret-primary-600 outline-hidden placeholder:text-components-input-text-placeholder hover:border-components-input-border-hover hover:bg-components-input-bg-hover focus:border-components-input-border-active focus:bg-components-input-bg-active focus:shadow-xs',- 'px-3 system-sm-regular radius-md',+ 'rounded-lg px-3 system-sm-regular',showCopyButton && 'pr-8',inputProps.disabled && 'cursor-not-allowed border-transparent bg-components-input-bg-disabled text-components-input-text-filled-disabled hover:border-transparent hover:bg-components-input-bg-disabled',inputProps.className,@@ -60,7 +60,7 @@ const InputWithCopy = React.forwardRef<HTMLInputElement, InputWithCopyProps>((/>{showCopyButton && (<div- className="absolute right-2 top-1/2 -translate-y-1/2"+ className="absolute top-1/2 right-2 -translate-y-1/2"onMouseLeave={reset}data-testid="copy-button-wrapper">diff --git a/web/app/components/base/input/__tests__/index.spec.tsx b/web/app/components/base/input/__tests__/index.spec.tsxindex ab8f66067f2..1c50454962c 100644--- a/web/app/components/base/input/__tests__/index.spec.tsx+++ b/web/app/components/base/input/__tests__/index.spec.tsx@@ -14,21 +14,21 @@ describe('Input component', () => {it('should return correct classes for regular size', () => {const result = inputVariants({ size: 'regular' })expect(result).toContain('px-3')- expect(result).toContain('radius-md')+ expect(result).toContain('rounded-lg')expect(result).toContain('system-sm-regular')})it('should return correct classes for large size', () => {const result = inputVariants({ size: 'large' })expect(result).toContain('px-4')- expect(result).toContain('radius-lg')+ expect(result).toContain('rounded-[10px]')expect(result).toContain('system-md-regular')})it('should use regular size as default', () => {const result = inputVariants({})expect(result).toContain('px-3')- expect(result).toContain('radius-md')+ expect(result).toContain('rounded-lg')expect(result).toContain('system-sm-regular')})})diff --git a/web/app/components/base/input/index.tsx b/web/app/components/base/input/index.tsxindex 96dd78e10fd..d41cd2c0cfa 100644--- a/web/app/components/base/input/index.tsx+++ b/web/app/components/base/input/index.tsx@@ -1,10 +1,10 @@import type { VariantProps } from 'class-variance-authority'import type { ChangeEventHandler, CSSProperties, FocusEventHandler } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { cva } from 'class-variance-authority'import { noop } from 'es-toolkit/function'import * as React from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import { CopyFeedbackNew } from '../copy-feedback'export const inputVariants = cva(@@ -12,8 +12,8 @@ export const inputVariants = cva({variants: {size: {- regular: 'px-3 system-sm-regular radius-md',- large: 'px-4 system-md-regular radius-lg',+ regular: 'rounded-lg px-3 system-sm-regular',+ large: 'rounded-[10px] px-4 system-md-regular',},},defaultVariants: {@@ -82,7 +82,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(({}return (<div className={cn('relative w-full', wrapperClassName)}>- {showLeftIcon && <span className={cn('i-ri-search-line absolute left-2 top-1/2 h-4 w-4 -translate-y-1/2 text-components-input-text-placeholder')} />}+ {showLeftIcon && <span className={cn('absolute top-1/2 left-2 i-ri-search-line h-4 w-4 -translate-y-1/2 text-components-input-text-placeholder')} />}<inputref={ref}style={styleCss}@@ -110,7 +110,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(({/>{!!(showClearIcon && value && !disabled && !destructive) && (<div- className={cn('group absolute right-2 top-1/2 -translate-y-1/2 cursor-pointer p-px')}+ className={cn('group absolute top-1/2 right-2 -translate-y-1/2 cursor-pointer p-px')}onClick={onClear}data-testid="input-clear">@@ -118,10 +118,10 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(({</div>)}{destructive && (- <span className="i-ri-error-warning-line absolute right-2 top-1/2 h-4 w-4 -translate-y-1/2 text-text-destructive-secondary" />+ <span className="absolute top-1/2 right-2 i-ri-error-warning-line h-4 w-4 -translate-y-1/2 text-text-destructive-secondary" />)}{showCopyIcon && (- <div className={cn('group absolute right-0 top-1/2 -translate-y-1/2 cursor-pointer')}>+ <div className={cn('group absolute top-1/2 right-0 -translate-y-1/2 cursor-pointer')}><CopyFeedbackNewcontent={String(value ?? '')}className="h-7! w-7! hover:bg-transparent"@@ -130,7 +130,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(({)}{unit && (- <div className="absolute right-2 top-1/2 -translate-y-1/2 text-text-tertiary system-sm-regular">+ <div className="absolute top-1/2 right-2 -translate-y-1/2 system-sm-regular text-text-tertiary">{unit}</div>)diff --git a/web/app/components/base/linked-apps-panel/index.tsx b/web/app/components/base/linked-apps-panel/index.tsxindex 1ce76e06475..8503a7bdfb4 100644--- a/web/app/components/base/linked-apps-panel/index.tsx+++ b/web/app/components/base/linked-apps-panel/index.tsx@@ -1,12 +1,12 @@'use client'import type { FC } from 'react'import type { RelatedApp } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowRightUpLine } from '@remixicon/react'import * as React from 'react'import AppIcon from '@/app/components/base/app-icon'import Link from '@/next/link'import { AppModeEnum } from '@/types/app'-import { cn } from '@/utils/classnames'type ILikedItemProps = {appStatus?: boolean@@ -32,9 +32,9 @@ const LikedItem = ({<div className={cn('relative h-6 w-6 rounded-md')}><AppIcon size="tiny" iconType={detail.icon_type} icon={detail.icon} background={detail.icon_background} imageUrl={detail.icon_url} /></div>- {!isMobile && <div className={cn(' system-sm-medium ml-2 truncate text-text-primary')}>{detail?.name || '--'}</div>}+ {!isMobile && <div className={cn('ml-2 truncate system-sm-medium text-text-primary')}>{detail?.name || '--'}</div>}</div>- <div className="system-2xs-medium-uppercase shrink-0 text-text-tertiary group-hover/link-item:hidden">{appTypeMap[detail.mode]}</div>+ <div className="shrink-0 system-2xs-medium-uppercase text-text-tertiary group-hover/link-item:hidden">{appTypeMap[detail.mode]}</div><RiArrowRightUpLine className="hidden h-4 w-4 text-text-tertiary group-hover/link-item:block" /></Link>)diff --git a/web/app/components/base/list-empty/index.tsx b/web/app/components/base/list-empty/index.tsxindex 8c30439298a..ac1b019e5c8 100644--- a/web/app/components/base/list-empty/index.tsx+++ b/web/app/components/base/list-empty/index.tsx@@ -16,16 +16,16 @@ const ListEmpty = ({icon,}: ListEmptyProps) => {return (- <div className="flex w-[320px] flex-col items-start gap-2 radius-lg bg-workflow-process-bg p-4">- <div className="flex h-10 w-10 items-center justify-center gap-2 radius-lg">- <div className="relative flex grow items-center justify-center gap-2 self-stretch radius-lg border-[0.5px]+ <div className="flex w-[320px] flex-col items-start gap-2 rounded-[10px] bg-workflow-process-bg p-4">+ <div className="flex h-10 w-10 items-center justify-center gap-2 rounded-[10px]">+ <div className="relative flex grow items-center justify-center gap-2 self-stretch rounded-[10px] border-[0.5px]border-components-card-border bg-components-card-bg p-1 shadow-lg">{icon || <Variable02 className="h-5 w-5 shrink-0 text-text-accent" />}- <VerticalLine className="absolute -right-px top-1/2 -translate-y-1/4" />- <VerticalLine className="absolute -left-px top-1/2 -translate-y-1/4" />- <HorizontalLine className="absolute left-3/4 top-0 -translate-x-1/4 -translate-y-1/2" />- <HorizontalLine className="absolute left-3/4 top-full -translate-x-1/4 -translate-y-1/2" />+ <VerticalLine className="absolute top-1/2 -right-px -translate-y-1/4" />+ <VerticalLine className="absolute top-1/2 -left-px -translate-y-1/4" />+ <HorizontalLine className="absolute top-0 left-3/4 -translate-x-1/4 -translate-y-1/2" />+ <HorizontalLine className="absolute top-full left-3/4 -translate-x-1/4 -translate-y-1/2" /></div></div><div className="flex flex-col items-start gap-1 self-stretch">diff --git a/web/app/components/base/loading/index.tsx b/web/app/components/base/loading/index.tsxindex a946edf36cd..f66ba3511d5 100644--- a/web/app/components/base/loading/index.tsx+++ b/web/app/components/base/loading/index.tsx@@ -1,7 +1,7 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import './style.css'type ILoadingProps = {diff --git a/web/app/components/base/logo/dify-logo.tsx b/web/app/components/base/logo/dify-logo.tsxindex 26718cbbebc..0250e8c913b 100644--- a/web/app/components/base/logo/dify-logo.tsx+++ b/web/app/components/base/logo/dify-logo.tsx@@ -1,7 +1,7 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import useTheme from '@/hooks/use-theme'-import { cn } from '@/utils/classnames'import { basePath } from '@/utils/var'export type LogoStyle = 'default' | 'monochromeWhite'diff --git a/web/app/components/base/logo/logo-embedded-chat-header.tsx b/web/app/components/base/logo/logo-embedded-chat-header.tsxindex 845b2f0fc2b..311cf912d20 100644--- a/web/app/components/base/logo/logo-embedded-chat-header.tsx+++ b/web/app/components/base/logo/logo-embedded-chat-header.tsx@@ -1,5 +1,5 @@import type { FC } from 'react'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'import { basePath } from '@/utils/var'type LogoEmbeddedChatHeaderProps = {diff --git a/web/app/components/base/logo/logo-site.tsx b/web/app/components/base/logo/logo-site.tsxindex edf6045513d..be3d2b31dd5 100644--- a/web/app/components/base/logo/logo-site.tsx+++ b/web/app/components/base/logo/logo-site.tsx@@ -1,6 +1,6 @@'use client'import type { FC } from 'react'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'import { basePath } from '@/utils/var'type LogoSiteProps = {diff --git a/web/app/components/base/markdown-blocks/button.tsx b/web/app/components/base/markdown-blocks/button.tsxindex 72f5dbc7f82..055835b5031 100644--- a/web/app/components/base/markdown-blocks/button.tsx+++ b/web/app/components/base/markdown-blocks/button.tsx@@ -1,6 +1,6 @@+import { cn } from '@langgenius/dify-ui/cn'import { useChatContext } from '@/app/components/base/chat/chat/context'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import { isValidUrl } from './utils'const MarkdownButton = ({ node }: any) => {diff --git a/web/app/components/base/markdown-blocks/think-block.tsx b/web/app/components/base/markdown-blocks/think-block.tsxindex 184ed892745..f666d3a218d 100644--- a/web/app/components/base/markdown-blocks/think-block.tsx+++ b/web/app/components/base/markdown-blocks/think-block.tsx@@ -1,7 +1,7 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useEffect, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import { useChatContext } from '../chat/chat/context'const hasEndThink = (children: any): boolean => {@@ -90,7 +90,7 @@ const ThinkBlock = ({ children, ...props }: ThinkBlockProps) => {className={cn('group', className)}open={isComplete ? open : true}>- <summary className="flex cursor-pointer select-none list-none items-center whitespace-nowrap pl-2 font-bold text-text-secondary">+ <summary className="flex cursor-pointer list-none items-center pl-2 font-bold whitespace-nowrap text-text-secondary select-none"><div className="flex shrink-0 items-center"><svgclassName="mr-2 h-3 w-3 transition-transform duration-500 group-open:rotate-90"diff --git a/web/app/components/base/markdown-with-directive/components/with-icon-card-item.tsx b/web/app/components/base/markdown-with-directive/components/with-icon-card-item.tsxindex 8e5870ddebc..d73279f912c 100644--- a/web/app/components/base/markdown-with-directive/components/with-icon-card-item.tsx+++ b/web/app/components/base/markdown-with-directive/components/with-icon-card-item.tsx@@ -1,6 +1,6 @@import type { ReactNode } from 'react'import type { WithIconCardItemProps } from './markdown-with-directive-schema'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'type WithIconItemProps = WithIconCardItemProps & {children?: ReactNode@@ -18,7 +18,7 @@ function WithIconCardItem({ icon, children, className, iconAlt }: WithIconItemPrwidth={40}height={40}/>- <div className="min-w-0 grow overflow-hidden text-text-secondary system-sm-medium [&_p]:m-0! [&_p]:block [&_p]:w-full [&_p]:overflow-hidden [&_p]:text-ellipsis [&_p]:whitespace-nowrap">+ <div className="min-w-0 grow overflow-hidden system-sm-medium text-text-secondary [&_p]:m-0! [&_p]:block [&_p]:w-full [&_p]:overflow-hidden [&_p]:text-ellipsis [&_p]:whitespace-nowrap">{children}</div></div>diff --git a/web/app/components/base/markdown-with-directive/components/with-icon-card-list.tsx b/web/app/components/base/markdown-with-directive/components/with-icon-card-list.tsxindex 750bfe5dc9e..1d2b0e80647 100644--- a/web/app/components/base/markdown-with-directive/components/with-icon-card-list.tsx+++ b/web/app/components/base/markdown-with-directive/components/with-icon-card-list.tsx@@ -1,6 +1,6 @@import type { ReactNode } from 'react'import type { WithIconCardListProps } from './markdown-with-directive-schema'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'type WithIconListProps = WithIconCardListProps & {children?: ReactNodediff --git a/web/app/components/base/markdown/index.tsx b/web/app/components/base/markdown/index.tsxindex c50d2b25238..56ea08b7f91 100644--- a/web/app/components/base/markdown/index.tsx+++ b/web/app/components/base/markdown/index.tsx@@ -1,8 +1,8 @@import type { SimplePluginInfo, StreamdownWrapperProps } from './streamdown-wrapper'+import { cn } from '@langgenius/dify-ui/cn'import { flow } from 'es-toolkit/compat'import { memo, useMemo } from 'react'import dynamic from '@/next/dynamic'-import { cn } from '@/utils/classnames'import { preprocessLaTeX, preprocessThinkTag } from './markdown-utils'const StreamdownWrapper = dynamic(() => import('./streamdown-wrapper'), { ssr: false })diff --git a/web/app/components/base/mermaid/index.tsx b/web/app/components/base/mermaid/index.tsxindex eed5a35693e..9af1024ba9e 100644--- a/web/app/components/base/mermaid/index.tsx+++ b/web/app/components/base/mermaid/index.tsx@@ -1,4 +1,5 @@import type { MermaidConfig } from 'mermaid'+import { cn } from '@langgenius/dify-ui/cn'import mermaid from 'mermaid'import * as React from 'react'import { useCallback, useEffect, useRef, useState } from 'react'@@ -6,7 +7,6 @@ import { useTranslation } from 'react-i18next'import LoadingAnim from '@/app/components/base/chat/chat/loading-anim'import ImagePreview from '@/app/components/base/image-uploader/image-preview'import { Theme } from '@/types/app'-import { cn } from '@/utils/classnames'import {cleanUpSvgCode,isMermaidCodeComplete,@@ -481,7 +481,7 @@ const Flowchart = (props: FlowchartProps) => {// Style classes for look optionsconst getLookButtonClass = (lookType: 'classic' | 'handDrawn') => {return cn(- 'mb-4 flex h-8 w-[calc((100%-8px)/2)] cursor-pointer items-center justify-center rounded-lg border border-components-option-card-option-border bg-components-option-card-option-bg text-text-secondary system-sm-medium',+ 'mb-4 flex h-8 w-[calc((100%-8px)/2)] cursor-pointer items-center justify-center rounded-lg border border-components-option-card-option-border bg-components-option-card-option-bg system-sm-medium text-text-secondary',look === lookType && 'border-[1.5px] border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg text-text-primary',currentTheme === Theme.dark && 'border-slate-600 bg-slate-800 text-slate-300',look === lookType && currentTheme === Theme.dark && 'border-blue-500 bg-slate-700 text-white',diff --git a/web/app/components/base/message-log-modal/index.tsx b/web/app/components/base/message-log-modal/index.tsxindex a1bc791f39e..2d8d1dec66a 100644--- a/web/app/components/base/message-log-modal/index.tsx+++ b/web/app/components/base/message-log-modal/index.tsx@@ -1,12 +1,12 @@import type { FC } from 'react'import type { IChatItem } from '@/app/components/base/chat/chat/type'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine } from '@remixicon/react'import { useClickAway } from 'ahooks'import { useEffect, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'import { useStore } from '@/app/components/app/store'import Run from '@/app/components/workflow/run'-import { cn } from '@/utils/classnames'type MessageLogModalProps = {currentLogItem?: IChatItem@@ -57,8 +57,8 @@ const MessageLogModal: FC<MessageLogModalProps> = ({}}ref={ref}>- <h1 className="shrink-0 px-4 py-1 text-text-primary system-xl-semibold">{t('runDetail.title', { ns: 'appLog' })}</h1>- <span className="absolute right-3 top-4 z-20 cursor-pointer p-1" onClick={onCancel} data-testid="close-button">+ <h1 className="shrink-0 px-4 py-1 system-xl-semibold text-text-primary">{t('runDetail.title', { ns: 'appLog' })}</h1>+ <span className="absolute top-4 right-3 z-20 cursor-pointer p-1" onClick={onCancel} data-testid="close-button"><RiCloseLine className="h-4 w-4 text-text-tertiary" /></span><Rundiff --git a/web/app/components/base/modal-like-wrap/index.tsx b/web/app/components/base/modal-like-wrap/index.tsxindex f105ac4b67c..8665e54941d 100644--- a/web/app/components/base/modal-like-wrap/index.tsx+++ b/web/app/components/base/modal-like-wrap/index.tsx@@ -1,9 +1,9 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'type Props = {title: stringdiff --git a/web/app/components/base/modal/index.css b/web/app/components/base/modal/index.cssdeleted file mode 100644index 3787da28f4c..00000000000--- a/web/app/components/base/modal/index.css+++ /dev/null@@ -1,7 +0,0 @@-.modal-dialog {- @apply relative z-50;-}--.modal-panel {- @apply w-full max-w-[480px] transform rounded-2xl bg-components-panel-bg p-6 text-left align-middle shadow-xl transition-all;-}diff --git a/web/app/components/base/modal/index.tsx b/web/app/components/base/modal/index.tsxindex 8107718b296..9238f4a8cae 100644--- a/web/app/components/base/modal/index.tsx+++ b/web/app/components/base/modal/index.tsx@@ -4,9 +4,9 @@* See: https://github.com/langgenius/dify/issues/32767*/import { Dialog, DialogPanel, DialogTitle, Transition, TransitionChild } from '@headlessui/react'+import { cn } from '@langgenius/dify-ui/cn'import { noop } from 'es-toolkit/function'import { Fragment } from 'react'-import { cn } from '@/utils/classnames'// https://headlessui.com/react/dialogtype IModal = {diff --git a/web/app/components/base/modal/modal.tsx b/web/app/components/base/modal/modal.tsxindex e649ebe41e3..8d046adf712 100644--- a/web/app/components/base/modal/modal.tsx+++ b/web/app/components/base/modal/modal.tsx@@ -4,6 +4,7 @@* See: https://github.com/langgenius/dify/issues/32767*/import type { ButtonProps } from '@/app/components/base/ui/button'+import { cn } from '@langgenius/dify-ui/cn'import { noop } from 'es-toolkit/function'import { memo } from 'react'import { useTranslation } from 'react-i18next'@@ -12,7 +13,6 @@ import {PortalToFollowElemContent,} from '@/app/components/base/portal-to-follow-elem'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'type ModalProps = {onClose?: () => voiddiff --git a/web/app/components/base/node-status/index.tsx b/web/app/components/base/node-status/index.tsxindex 1616f350b0c..398e2cf1420 100644--- a/web/app/components/base/node-status/index.tsx+++ b/web/app/components/base/node-status/index.tsx@@ -1,11 +1,11 @@'use client'import type { VariantProps } from 'class-variance-authority'import type { CSSProperties } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiErrorWarningFill } from '@remixicon/react'import { cva } from 'class-variance-authority'import * as React from 'react'import AlertTriangle from '@/app/components/base/icons/src/vender/solid/alertsAndFeedback/AlertTriangle'-import { cn } from '@/utils/classnames'export enum NodeStatusEnum {warning = 'warning',diff --git a/web/app/components/base/notion-connector/index.tsx b/web/app/components/base/notion-connector/index.tsxindex c8df7d074ea..2187b19e8a3 100644--- a/web/app/components/base/notion-connector/index.tsx+++ b/web/app/components/base/notion-connector/index.tsx@@ -13,7 +13,7 @@ const NotionConnector = ({ onSetting }: NotionConnectorProps) => {return (<div className="flex flex-col items-start rounded-2xl bg-workflow-process-bg p-6">- <div className="mb-2 h-12 w-12 radius-lg border-[0.5px] border-components-card-border p-3 shadow-lg shadow-shadow-shadow-5">+ <div className="mb-2 h-12 w-12 rounded-[10px] border-[0.5px] border-components-card-border p-3 shadow-lg shadow-shadow-shadow-5"><Notion className="size-6" /></div><div className="mb-1 flex flex-col gap-y-1 pt-1 pb-3">diff --git a/web/app/components/base/notion-icon/index.tsx b/web/app/components/base/notion-icon/index.tsxindex a272a9369cb..62fcef1dc13 100644--- a/web/app/components/base/notion-icon/index.tsx+++ b/web/app/components/base/notion-icon/index.tsx@@ -1,6 +1,6 @@import type { DataSourceNotionPage } from '@/models/common'+import { cn } from '@langgenius/dify-ui/cn'import { RiFileTextLine } from '@remixicon/react'-import { cn } from '@/utils/classnames'type IconTypes = 'workspace' | 'page'type NotionIconProps = {diff --git a/web/app/components/base/notion-page-selector/page-selector/page-row.tsx b/web/app/components/base/notion-page-selector/page-selector/page-row.tsxindex 849c8507a84..156dfe8e667 100644--- a/web/app/components/base/notion-page-selector/page-selector/page-row.tsx+++ b/web/app/components/base/notion-page-selector/page-selector/page-row.tsx@@ -1,12 +1,12 @@import type { CSSProperties } from 'react'import type { NotionPageRow as NotionPageRowData, NotionPageSelectionMode } from './types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine, RiArrowRightSLine } from '@remixicon/react'import { memo } from 'react'import { useTranslation } from 'react-i18next'import Checkbox from '@/app/components/base/checkbox'import NotionIcon from '@/app/components/base/notion-icon'import Radio from '@/app/components/base/radio/ui'-import { cn } from '@/utils/classnames'type NotionPageRowProps = {checked: booleandiff --git a/web/app/components/base/notion-page-selector/search-input/index.tsx b/web/app/components/base/notion-page-selector/search-input/index.tsxindex ea0ea3ecf79..55bf506ce6e 100644--- a/web/app/components/base/notion-page-selector/search-input/index.tsx+++ b/web/app/components/base/notion-page-selector/search-input/index.tsx@@ -1,7 +1,7 @@import type { ChangeEvent } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'type SearchInputProps = {value: string@@ -26,7 +26,7 @@ const SearchInput = ({className={cn('flex h-8 w-[200px] items-center rounded-lg bg-components-input-bg-normal p-2')}data-testid="notion-search-input-container">- <div className="i-ri-search-line mr-0.5 h-4 w-4 shrink-0 text-components-input-text-placeholder" />+ <div className="mr-0.5 i-ri-search-line h-4 w-4 shrink-0 text-components-input-text-placeholder" /><inputclassName="min-w-0 grow appearance-none border-0 bg-transparent px-1 text-[13px] leading-[16px] text-components-input-text-filled outline-0 placeholder:text-components-input-text-placeholder"value={value}diff --git a/web/app/components/base/pagination/index.tsx b/web/app/components/base/pagination/index.tsxindex 95485c4efb3..815e825c8de 100644--- a/web/app/components/base/pagination/index.tsx+++ b/web/app/components/base/pagination/index.tsx@@ -1,11 +1,11 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowLeftLine, RiArrowRightLine } from '@remixicon/react'import { useDebounceFn } from 'ahooks'import * as React from 'react'import { useTranslation } from 'react-i18next'import Input from '@/app/components/base/input'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import { Pagination } from './pagination'export type Props = {@@ -98,7 +98,7 @@ const CustomizedPagination: FC<Props> = ({truncableClassName="flex items-center justify-center w-8 px-1 py-2 system-sm-medium text-text-tertiary"truncableText="...">- <div className="flex items-center gap-0.5 radius-lg bg-background-section-burn p-0.5">+ <div className="flex items-center gap-0.5 rounded-[10px] bg-background-section-burn p-0.5"><Pagination.PrevButtonas={<div></div>}disabled={current === 0}@@ -160,7 +160,7 @@ const CustomizedPagination: FC<Props> = ({<div className="flex shrink-0 items-center gap-2"><div className="w-[51px] shrink-0 text-end system-2xs-regular-uppercase text-text-tertiary">{showPerPageTip ? t('pagination.perPage', { ns: 'common' }) : ''}</div><div- className="flex items-center gap-px radius-lg bg-components-segmented-control-bg-normal p-0.5"+ className="flex items-center gap-px rounded-[10px] bg-components-segmented-control-bg-normal p-0.5"onMouseEnter={() => setShowPerPageTip(true)}onMouseLeave={() => setShowPerPageTip(false)}>diff --git a/web/app/components/base/pagination/pagination.tsx b/web/app/components/base/pagination/pagination.tsxindex 9ce128e497d..21d3d721c20 100644--- a/web/app/components/base/pagination/pagination.tsx+++ b/web/app/components/base/pagination/pagination.tsx@@ -4,9 +4,9 @@ import type {IPaginationProps,PageButtonProps,} from './type'+import { cn } from '@langgenius/dify-ui/cn'import { noop } from 'es-toolkit/function'import * as React from 'react'-import { cn } from '@/utils/classnames'import usePagination from './hook'const defaultState: IPagination = {diff --git a/web/app/components/base/popover/index.tsx b/web/app/components/base/popover/index.tsxindex b2edb0c1afa..d07f8c9a41f 100644--- a/web/app/components/base/popover/index.tsx+++ b/web/app/components/base/popover/index.tsx@@ -1,6 +1,6 @@import { Popover, PopoverButton, PopoverPanel, Transition } from '@headlessui/react'+import { cn } from '@langgenius/dify-ui/cn'import { cloneElement, Fragment, isValidElement, useRef } from 'react'-import { cn } from '@/utils/classnames'export type HtmlContentProps = {open?: booleandiff --git a/web/app/components/base/portal-to-follow-elem/index.tsx b/web/app/components/base/portal-to-follow-elem/index.tsxindex 932eceee2b0..b3772122f87 100644--- a/web/app/components/base/portal-to-follow-elem/index.tsx+++ b/web/app/components/base/portal-to-follow-elem/index.tsx@@ -28,9 +28,9 @@ import {useRole,} from '@floating-ui/react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback, useState } from 'react'-import { cn } from '@/utils/classnames'export type PortalToFollowElemOptions = {/*diff --git a/web/app/components/base/premium-badge/__tests__/index.spec.tsx b/web/app/components/base/premium-badge/__tests__/index.spec.tsxindex d107c07e52e..c3eb31c72ed 100644--- a/web/app/components/base/premium-badge/__tests__/index.spec.tsx+++ b/web/app/components/base/premium-badge/__tests__/index.spec.tsx@@ -30,7 +30,7 @@ describe('PremiumBadge', () => {)const badge = screen.getByText('Premium')expect(badge).toBeInTheDocument()- expect(badge).toHaveClass('allowHover')+ expect(badge).toHaveClass('pb-allow-hover')})it('applies custom styles', () => {diff --git a/web/app/components/base/premium-badge/index.css b/web/app/components/base/premium-badge/index.cssindex 040df8fdc69..f192a51e574 100644--- a/web/app/components/base/premium-badge/index.css+++ b/web/app/components/base/premium-badge/index.css@@ -3,7 +3,7 @@background-clip: padding-box, border-box;}-@utility allowHover {+@utility pb-allow-hover {@apply cursor-pointer;&.premium-badge-blue:hover {@apply bg-util-colors-blue-blue-300;@@ -65,7 +65,7 @@var(--color-premium-badge-border-highlight-color) 0%,#155aef 100%);- &.allowHover:hover {+ &.pb-allow-hover:hover {@apply bg-util-colors-blue-blue-300;background-image:linear-gradient(90deg, #296dffe6 0%, #004aebe6 100%),@@ -86,7 +86,7 @@var(--color-premium-badge-border-highlight-color) 0%,#6172f3 100%);- &.allowHover:hover {+ &.pb-allow-hover:hover {@apply bg-util-colors-indigo-indigo-300;background-image:linear-gradient(90deg, #6172f3e6 0%, #2d31a6e6 100%),@@ -107,7 +107,7 @@var(--color-premium-badge-border-highlight-color) 0%,#676f83 100%);- &.allowHover:hover {+ &.pb-allow-hover:hover {@apply bg-util-colors-gray-gray-300;background-image:linear-gradient(90deg, #676f83e6 0%, #354052e6 100%),@@ -128,7 +128,7 @@var(--color-premium-badge-border-highlight-color) 0%,#e62e05 100%);- &.allowHover:hover {+ &.pb-allow-hover:hover {@apply bg-util-colors-orange-orange-300;background-image:linear-gradient(90deg, #ff4405e6 0%, #b93815e6 100%),diff --git a/web/app/components/base/premium-badge/index.tsx b/web/app/components/base/premium-badge/index.tsxindex 1ffff2f7a9b..42ce1586060 100644--- a/web/app/components/base/premium-badge/index.tsx+++ b/web/app/components/base/premium-badge/index.tsx@@ -1,9 +1,9 @@import type { VariantProps } from 'class-variance-authority'import type { CSSProperties, ReactNode } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { cva } from 'class-variance-authority'import * as React from 'react'import { Highlight } from '@/app/components/base/icons/src/public/common'-import { cn } from '@/utils/classnames'const PremiumBadgeVariants = cva('premium-badge',@@ -21,7 +21,7 @@ const PremiumBadgeVariants = cva(orange: 'premium-badge-orange',},allowHover: {- true: 'allowHover',+ true: 'pb-allow-hover',false: '',},},@@ -58,7 +58,7 @@ const PremiumBadge: React.FC<PremiumBadgeProps> = ({>{children}<Highlight- className={cn('absolute right-1/2 top-0 translate-x-[20%] opacity-50 transition-all duration-100 ease-out hover:translate-x-[30%] hover:opacity-80', size === 's' ? 'h-[18px] w-12' : 'h-6 w-12')}+ className={cn('absolute top-0 right-1/2 translate-x-[20%] opacity-50 transition-all duration-100 ease-out hover:translate-x-[30%] hover:opacity-80', size === 's' ? 'h-[18px] w-12' : 'h-6 w-12')}/></div>)diff --git a/web/app/components/base/progress-bar/progress-circle.tsx b/web/app/components/base/progress-bar/progress-circle.tsxindex 1123e412e31..85113277c8c 100644--- a/web/app/components/base/progress-bar/progress-circle.tsx+++ b/web/app/components/base/progress-bar/progress-circle.tsx@@ -1,5 +1,5 @@+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'-import { cn } from '@/utils/classnames'type ProgressCircleProps = {className?: stringdiff --git a/web/app/components/base/prompt-editor/index.tsx b/web/app/components/base/prompt-editor/index.tsxindex 6f6da6901ba..3cc0e25016f 100644--- a/web/app/components/base/prompt-editor/index.tsx+++ b/web/app/components/base/prompt-editor/index.tsx@@ -20,6 +20,7 @@ import type {VariableBlockType,WorkflowVariableBlockType,} from './types'+import { cn } from '@langgenius/dify-ui/cn'import { CodeNode } from '@lexical/code'import { LexicalComposer } from '@lexical/react/LexicalComposer'import {@@ -29,7 +30,6 @@ import {import * as React from 'react'import { useEffect, useState } from 'react'import { useEventEmitterContextContext } from '@/context/event-emitter'-import { cn } from '@/utils/classnames'import {UPDATE_DATASETS_EVENT_EMITTER,UPDATE_HISTORY_EVENT_EMITTER,diff --git a/web/app/components/base/prompt-editor/plugins/current-block/component.tsx b/web/app/components/base/prompt-editor/plugins/current-block/component.tsxindex 01c89f4ddb7..89df0714103 100644--- a/web/app/components/base/prompt-editor/plugins/current-block/component.tsx+++ b/web/app/components/base/prompt-editor/plugins/current-block/component.tsx@@ -1,8 +1,8 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'import { useEffect } from 'react'import { GeneratorType } from '@/app/components/app/configuration/config/automatic/types'-import { cn } from '@/utils/classnames'import { CurrentBlockNode, DELETE_CURRENT_BLOCK_COMMAND } from '.'import { CodeAssistant, MagicEdit } from '../../../icons/src/vender/line/general'import { useSelectOrDelete } from '../../hooks'@@ -28,8 +28,8 @@ const CurrentBlockComponent: FC<CurrentBlockComponentProps> = ({return (<divclassName={cn(- 'group/wrap relative mx-0.5 flex h-[18px] select-none items-center rounded-[5px] border pl-0.5 pr-[3px] text-util-colors-violet-violet-600 hover:border-state-accent-solid hover:bg-state-accent-hover',- isSelected ? ' border-state-accent-solid bg-state-accent-hover' : ' border-components-panel-border-subtle bg-components-badge-white-to-dark',+ 'group/wrap relative mx-0.5 flex h-[18px] items-center rounded-[5px] border pr-[3px] pl-0.5 text-util-colors-violet-violet-600 select-none hover:border-state-accent-solid hover:bg-state-accent-hover',+ isSelected ? 'border-state-accent-solid bg-state-accent-hover' : 'border-components-panel-border-subtle bg-components-badge-white-to-dark',)}onClick={(e) => {e.stopPropagation()diff --git a/web/app/components/base/prompt-editor/plugins/draggable-plugin/index.tsx b/web/app/components/base/prompt-editor/plugins/draggable-plugin/index.tsxindex a2ec14bada6..8b7c690d304 100644--- a/web/app/components/base/prompt-editor/plugins/draggable-plugin/index.tsx+++ b/web/app/components/base/prompt-editor/plugins/draggable-plugin/index.tsx@@ -1,8 +1,8 @@import type { JSX } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'import { DraggableBlockPlugin_EXPERIMENTAL } from '@lexical/react/LexicalDraggableBlockPlugin'import { useEffect, useRef, useState } from 'react'-import { cn } from '@/utils/classnames'const DRAGGABLE_BLOCK_MENU_CLASSNAME = 'draggable-block-menu'@@ -60,7 +60,7 @@ export default function DraggableBlockPlugin({menuComponent={isSupportDrag? (- <div ref={menuRef} className={cn(DRAGGABLE_BLOCK_MENU_CLASSNAME, 'absolute right-2.5 top-4 cursor-grab opacity-0 will-change-transform active:cursor-move')} data-testid="draggable-menu">+ <div ref={menuRef} className={cn(DRAGGABLE_BLOCK_MENU_CLASSNAME, 'absolute top-4 right-2.5 cursor-grab opacity-0 will-change-transform active:cursor-move')} data-testid="draggable-menu"><span className="i-ri-draggable size-3.5 text-text-tertiary" data-testid="draggable-menu-icon" /></div>)@@ -69,12 +69,12 @@ export default function DraggableBlockPlugin({targetLineComponent={(<divref={targetLineRef}- className="pointer-events-none absolute left-[-21px] top-0 opacity-0 will-change-transform"+ className="pointer-events-none absolute top-0 left-[-21px] opacity-0 will-change-transform"data-testid="draggable-target-line"// style={{ width: 500 }} // width not worked here><div- className="absolute -right-10 left-0 top-0 h-[2px] bg-text-accent-secondary"+ className="absolute top-0 -right-10 left-0 h-[2px] bg-text-accent-secondary"></div></div>diff --git a/web/app/components/base/prompt-editor/plugins/error-message-block/component.tsx b/web/app/components/base/prompt-editor/plugins/error-message-block/component.tsxindex 97992d23018..fe862111b5e 100644--- a/web/app/components/base/prompt-editor/plugins/error-message-block/component.tsx+++ b/web/app/components/base/prompt-editor/plugins/error-message-block/component.tsx@@ -1,7 +1,7 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'import { useEffect } from 'react'-import { cn } from '@/utils/classnames'import { DELETE_ERROR_MESSAGE_COMMAND, ErrorMessageBlockNode } from '.'import { Variable02 } from '../../../icons/src/vender/solid/development'import { useSelectOrDelete } from '../../hooks'@@ -24,8 +24,8 @@ const ErrorMessageBlockComponent: FC<Props> = ({return (<divclassName={cn(- 'group/wrap relative mx-0.5 flex h-[18px] select-none items-center rounded-[5px] border pl-0.5 pr-[3px] text-util-colors-orange-dark-orange-dark-600 hover:border-state-accent-solid hover:bg-state-accent-hover',- isSelected ? ' border-state-accent-solid bg-state-accent-hover' : ' border-components-panel-border-subtle bg-components-badge-white-to-dark',+ 'group/wrap relative mx-0.5 flex h-[18px] items-center rounded-[5px] border pr-[3px] pl-0.5 text-util-colors-orange-dark-orange-dark-600 select-none hover:border-state-accent-solid hover:bg-state-accent-hover',+ isSelected ? 'border-state-accent-solid bg-state-accent-hover' : 'border-components-panel-border-subtle bg-components-badge-white-to-dark',)}onClick={(e) => {e.stopPropagation()diff --git a/web/app/components/base/prompt-editor/plugins/hitl-input-block/component-ui.tsx b/web/app/components/base/prompt-editor/plugins/hitl-input-block/component-ui.tsxindex a4f55543524..9a752062ea7 100644--- a/web/app/components/base/prompt-editor/plugins/hitl-input-block/component-ui.tsx+++ b/web/app/components/base/prompt-editor/plugins/hitl-input-block/component-ui.tsx@@ -102,9 +102,9 @@ const HITLInputComponentUI: FC<HITLInputComponentUIProps> = ({return (<div- className="group relative flex h-8 w-full select-none items-center radius-md border-[1.5px] border-components-input-border-active bg-background-default-hover pl-1.5 pr-0.5"+ className="group relative flex h-8 w-full items-center rounded-lg border-[1.5px] border-components-input-border-active bg-background-default-hover pr-0.5 pl-1.5 select-none">- <div className="absolute left-2.5 top-[-12px]">+ <div className="absolute top-[-12px] left-2.5"><div className="absolute bottom-1 h-[1.5px] w-full bg-background-default-subtle"></div><div className="relative flex items-center space-x-0.5 px-1 text-text-accent-light-mode-only"><VariableX className="size-3" />@@ -126,7 +126,7 @@ const HITLInputComponentUI: FC<HITLInputComponentUIProps> = ({/>)}{!isDefaultValueVariable && (- <div className="max-w-full truncate text-components-input-text-filled system-xs-medium">{formInput.default?.value}</div>+ <div className="max-w-full truncate system-xs-medium text-components-input-text-filled">{formInput.default?.value}</div>)}</div>diff --git a/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx b/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsxindex 8a791dc7fcb..93e6610d12a 100644--- a/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx+++ b/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx@@ -142,8 +142,8 @@ const InputField: React.FC<InputFieldProps> = ({onClick={handleSave}><span className="mr-1">{t(`${i18nPrefix}.insert`, { ns: 'workflow' })}</span>- <span className="mr-0.5 flex h-4 items-center radius-xs bg-components-kbd-bg-white px-1 system-kbd">{getKeyboardKeyNameBySystem('ctrl')}</span>- <span className="flex h-4 items-center radius-xs bg-components-kbd-bg-white px-1 system-kbd">↩︎</span>+ <span className="mr-0.5 flex h-4 items-center rounded-sm bg-components-kbd-bg-white px-1 system-kbd">{getKeyboardKeyNameBySystem('ctrl')}</span>+ <span className="flex h-4 items-center rounded-sm bg-components-kbd-bg-white px-1 system-kbd">↩︎</span></Button>)}diff --git a/web/app/components/base/prompt-editor/plugins/hitl-input-block/pre-populate.tsx b/web/app/components/base/prompt-editor/plugins/hitl-input-block/pre-populate.tsxindex bbcf5485b97..9f4b789b53f 100644--- a/web/app/components/base/prompt-editor/plugins/hitl-input-block/pre-populate.tsx+++ b/web/app/components/base/prompt-editor/plugins/hitl-input-block/pre-populate.tsx@@ -1,12 +1,12 @@'use client'import type { FC } from 'react'import type { ValueSelector, Var } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback, useEffect, useState } from 'react'import { Trans, useTranslation } from 'react-i18next'import VarReferencePicker from '@/app/components/workflow/nodes/_base/components/variable/var-reference-picker'import { VarType } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import Textarea from '../../../textarea'import TagLabel from './tag-label'import TypeSwitch from './type-switch'@@ -41,7 +41,7 @@ const Placeholder = ({}: PlaceholderProps) => {const { t } = useTranslation()return (- <div className="system-sm-regular mt-1 h-[80px] rounded-lg bg-components-input-bg-normal px-3 pt-2 text-text-tertiary">+ <div className="mt-1 h-[80px] rounded-lg bg-components-input-bg-normal px-3 pt-2 system-sm-regular text-text-tertiary"><div className="flex flex-wrap items-center leading-5"><Transi18nKey={`${i18nPrefix}.prePopulateFieldPlaceholder`}diff --git a/web/app/components/base/prompt-editor/plugins/hitl-input-block/tag-label.tsx b/web/app/components/base/prompt-editor/plugins/hitl-input-block/tag-label.tsxindex c414db866d6..6516b7041d1 100644--- a/web/app/components/base/prompt-editor/plugins/hitl-input-block/tag-label.tsx+++ b/web/app/components/base/prompt-editor/plugins/hitl-input-block/tag-label.tsx@@ -1,8 +1,8 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiEditLine } from '@remixicon/react'import * as React from 'react'-import { cn } from '@/utils/classnames'import { Variable02 } from '../../../icons/src/vender/solid/development'type Props = {@@ -25,7 +25,7 @@ const TagLabel: FC<Props> = ({onClick={onClick}><Icon className="size-3.5" />- <div className="system-xs-medium ">{children}</div>+ <div className="system-xs-medium">{children}</div></div>)}diff --git a/web/app/components/base/prompt-editor/plugins/hitl-input-block/type-switch.tsx b/web/app/components/base/prompt-editor/plugins/hitl-input-block/type-switch.tsxindex 667f0605e84..86ab518fc56 100644--- a/web/app/components/base/prompt-editor/plugins/hitl-input-block/type-switch.tsx+++ b/web/app/components/base/prompt-editor/plugins/hitl-input-block/type-switch.tsx@@ -1,8 +1,8 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import { Variable02 } from '../../../icons/src/vender/solid/development'type Props = {@@ -18,7 +18,7 @@ const TypeSwitch: FC<Props> = ({}) => {const { t } = useTranslation()return (- <div className={cn('inline-flex h-6 cursor-pointer select-none items-center space-x-1 rounded-md pl-1.5 pr-2 text-text-tertiary hover:bg-components-button-ghost-bg-hover', className)} onClick={() => onIsVariableChange?.(!isVariable)}>+ <div className={cn('inline-flex h-6 cursor-pointer items-center space-x-1 rounded-md pr-2 pl-1.5 text-text-tertiary select-none hover:bg-components-button-ghost-bg-hover', className)} onClick={() => onIsVariableChange?.(!isVariable)}><Variable02 className="size-3.5" /><div className="system-xs-medium">{t(`nodes.humanInput.insertInputField.${isVariable ? 'useConstantInstead' : 'useVarInstead'}`, { ns: 'workflow' })}</div></div>diff --git a/web/app/components/base/prompt-editor/plugins/last-run-block/component.tsx b/web/app/components/base/prompt-editor/plugins/last-run-block/component.tsxindex cbe56d95f97..c0fa8364b70 100644--- a/web/app/components/base/prompt-editor/plugins/last-run-block/component.tsx+++ b/web/app/components/base/prompt-editor/plugins/last-run-block/component.tsx@@ -1,7 +1,7 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'import { useEffect } from 'react'-import { cn } from '@/utils/classnames'import { DELETE_LAST_RUN_COMMAND, LastRunBlockNode } from '.'import { Variable02 } from '../../../icons/src/vender/solid/development'import { useSelectOrDelete } from '../../hooks'@@ -24,8 +24,8 @@ const LastRunBlockComponent: FC<Props> = ({return (<divclassName={cn(- 'group/wrap relative mx-0.5 flex h-[18px] select-none items-center rounded-[5px] border pl-0.5 pr-[3px] text-text-accent hover:border-state-accent-solid hover:bg-state-accent-hover',- isSelected ? ' border-state-accent-solid bg-state-accent-hover' : ' border-components-panel-border-subtle bg-components-badge-white-to-dark',+ 'group/wrap relative mx-0.5 flex h-[18px] items-center rounded-[5px] border pr-[3px] pl-0.5 text-text-accent select-none hover:border-state-accent-solid hover:bg-state-accent-hover',+ isSelected ? 'border-state-accent-solid bg-state-accent-hover' : 'border-components-panel-border-subtle bg-components-badge-white-to-dark',)}onClick={(e) => {e.stopPropagation()diff --git a/web/app/components/base/prompt-editor/plugins/placeholder.tsx b/web/app/components/base/prompt-editor/plugins/placeholder.tsxindex 077516cb8b1..700d0a2f6ab 100644--- a/web/app/components/base/prompt-editor/plugins/placeholder.tsx+++ b/web/app/components/base/prompt-editor/plugins/placeholder.tsx@@ -1,7 +1,7 @@import type { ReactNode } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'const Placeholder = ({compact,@@ -16,7 +16,7 @@ const Placeholder = ({return (<div className={cn(- 'pointer-events-none absolute left-0 top-0 h-full w-full select-none text-sm text-components-input-text-placeholder',+ 'pointer-events-none absolute top-0 left-0 h-full w-full text-sm text-components-input-text-placeholder select-none',compact ? 'text-[13px] leading-5' : 'text-sm leading-6',className,)}diff --git a/web/app/components/base/prompt-editor/plugins/request-url-block/component.tsx b/web/app/components/base/prompt-editor/plugins/request-url-block/component.tsxindex 65912061b50..469225d4deb 100644--- a/web/app/components/base/prompt-editor/plugins/request-url-block/component.tsx+++ b/web/app/components/base/prompt-editor/plugins/request-url-block/component.tsx@@ -1,8 +1,8 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiGlobalLine } from '@remixicon/react'-import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'+import { useTranslation } from 'react-i18next'import { useSelectOrDelete } from '../../hooks'import { DELETE_REQUEST_URL_BLOCK_COMMAND } from './index'@@ -19,7 +19,7 @@ const RequestURLBlockComponent: FC<RequestURLBlockComponentProps> = ({return (<divclassName={cn(- 'group/wrap relative mx-0.5 flex h-[18px] select-none items-center rounded-[5px] border border-components-panel-border-subtle bg-components-badge-white-to-dark px-1 hover:border-[#7839ee]',+ 'group/wrap relative mx-0.5 flex h-[18px] items-center rounded-[5px] border border-components-panel-border-subtle bg-components-badge-white-to-dark px-1 select-none hover:border-[#7839ee]',isSelected && 'border-[#7839ee]! hover:border-[#7839ee]!',)}ref={ref}diff --git a/web/app/components/base/prompt-editor/plugins/shortcuts-popup-plugin/index.tsx b/web/app/components/base/prompt-editor/plugins/shortcuts-popup-plugin/index.tsxindex 88cd6b7a98b..2dedc9768b8 100644--- a/web/app/components/base/prompt-editor/plugins/shortcuts-popup-plugin/index.tsx+++ b/web/app/components/base/prompt-editor/plugins/shortcuts-popup-plugin/index.tsx@@ -7,6 +7,7 @@ import {size,useFloating,} from '@floating-ui/react'+import { cn } from '@langgenius/dify-ui/cn'import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'import {$getSelection,@@ -20,7 +21,6 @@ import {useState,} from 'react'import { createPortal } from 'react-dom'-import { cn } from '@/utils/classnames'export const SHORTCUTS_EMPTY_CONTENT = 'shortcuts_empty_content'diff --git a/web/app/components/base/prompt-editor/prompt-editor-content.tsx b/web/app/components/base/prompt-editor/prompt-editor-content.tsxindex 07db69cfc86..28a08632846 100644--- a/web/app/components/base/prompt-editor/prompt-editor-content.tsx+++ b/web/app/components/base/prompt-editor/prompt-editor-content.tsx@@ -17,13 +17,13 @@ import type {VariableBlockType,WorkflowVariableBlockType,} from './types'+import { cn } from '@langgenius/dify-ui/cn'import { ContentEditable } from '@lexical/react/LexicalContentEditable'import { LexicalErrorBoundary } from '@lexical/react/LexicalErrorBoundary'import { HistoryPlugin } from '@lexical/react/LexicalHistoryPlugin'import { OnChangePlugin } from '@lexical/react/LexicalOnChangePlugin'import { RichTextPlugin } from '@lexical/react/LexicalRichTextPlugin'import * as React from 'react'-import { cn } from '@/utils/classnames'import ComponentPickerBlock from './plugins/component-picker-block'import {ContextBlock,diff --git a/web/app/components/base/radio-card/index.tsx b/web/app/components/base/radio-card/index.tsxindex 4ed1d45ed0c..87e2c962587 100644--- a/web/app/components/base/radio-card/index.tsx+++ b/web/app/components/base/radio-card/index.tsx@@ -1,8 +1,8 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { noop } from 'es-toolkit/function'import * as React from 'react'-import { cn } from '@/utils/classnames'type Props = {className?: string@@ -42,11 +42,11 @@ const RadioCard: FC<Props> = ({{icon}</div><div className="grow">- <div className="system-sm-semibold mb-1 text-text-secondary">{title}</div>+ <div className="mb-1 system-sm-semibold text-text-secondary">{title}</div><div className="system-xs-regular text-text-tertiary">{description}</div></div>{!noRadio && (- <div className="absolute right-3 top-3">+ <div className="absolute top-3 right-3"><div className={cn('h-4 w-4 rounded-full border border-components-radio-border bg-components-radio-bg shadow-xs',isChosen && 'border-[5px] border-components-radio-border-checked',diff --git a/web/app/components/base/radio-card/simple/index.tsx b/web/app/components/base/radio-card/simple/index.tsxindex d5f2f0ab9c0..237af7a596e 100644--- a/web/app/components/base/radio-card/simple/index.tsx+++ b/web/app/components/base/radio-card/simple/index.tsx@@ -1,7 +1,7 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'import s from './style.module.css'type Props = {@@ -32,10 +32,10 @@ const RadioCard: FC<Props> = ({{icon}<div><div className="flex items-center justify-between">- <div className="text-sm font-medium leading-5 text-gray-900">{title}</div>+ <div className="text-sm leading-5 font-medium text-gray-900">{title}</div><div className={s.radio}></div></div>- <div className="text-xs font-normal leading-[18px] text-gray-500">{description}</div>+ <div className="text-xs leading-[18px] font-normal text-gray-500">{description}</div></div></div>{extra}diff --git a/web/app/components/base/radio/component/group/index.tsx b/web/app/components/base/radio/component/group/index.tsxindex aff9e5e3c6d..bcfc025ece8 100644--- a/web/app/components/base/radio/component/group/index.tsx+++ b/web/app/components/base/radio/component/group/index.tsx@@ -1,5 +1,5 @@import type { ReactNode } from 'react'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'import RadioGroupContext from '../../context'import s from '../../style.module.css'diff --git a/web/app/components/base/radio/component/radio/index.tsx b/web/app/components/base/radio/component/radio/index.tsxindex 34226f0390a..de040b2365a 100644--- a/web/app/components/base/radio/component/radio/index.tsx+++ b/web/app/components/base/radio/component/radio/index.tsx@@ -1,7 +1,7 @@import type { ReactNode } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { useId } from 'react'import { useContext } from 'use-context-selector'-import { cn } from '@/utils/classnames'import RadioGroupContext from '../../context'import s from '../../style.module.css'diff --git a/web/app/components/base/radio/ui.tsx b/web/app/components/base/radio/ui.tsxindex e836dddc961..7c5f4225a41 100644--- a/web/app/components/base/radio/ui.tsx+++ b/web/app/components/base/radio/ui.tsx@@ -1,7 +1,7 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'type Props = {isChecked: booleandiff --git a/web/app/components/base/search-input/index.tsx b/web/app/components/base/search-input/index.tsxindex 090406543b2..34599b9b30a 100644--- a/web/app/components/base/search-input/index.tsx+++ b/web/app/components/base/search-input/index.tsx@@ -1,8 +1,8 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseCircleFill, RiSearchLine } from '@remixicon/react'import { useRef, useState } from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'type SearchInputProps = {placeholder?: string@@ -41,8 +41,8 @@ const SearchInput: FC<SearchInputProps> = ({type="text"name="query"className={cn(- 'system-sm-regular caret-#295EFF block h-[18px] grow appearance-none border-0 bg-transparent text-components-input-text-filled outline-hidden placeholder:text-components-input-text-placeholder',- white && 'bg-white! placeholder:text-gray-400! hover:bg-white! group-hover:bg-white!',+ 'caret-#295EFF block h-[18px] grow appearance-none border-0 bg-transparent system-sm-regular text-components-input-text-filled outline-hidden placeholder:text-components-input-text-placeholder',+ white && 'bg-white! group-hover:bg-white! placeholder:text-gray-400! hover:bg-white!',)}placeholder={placeholder || t('operation.search', { ns: 'common' })!}value={isComposing.current ? compositionValue : value}diff --git a/web/app/components/base/segmented-control/__tests__/index.spec.tsx b/web/app/components/base/segmented-control/__tests__/index.spec.tsxindex 8cf29069218..fd01b62764a 100644--- a/web/app/components/base/segmented-control/__tests__/index.spec.tsx+++ b/web/app/components/base/segmented-control/__tests__/index.spec.tsx@@ -49,7 +49,7 @@ describe('SegmentedControl', () => {render(<SegmentedControl options={options} value="option2" onChange={onSelectMock} />)const selectedOption = screen.getByText('Option 2').closest('button')- expect(selectedOption).toHaveClass('active')+ expect(selectedOption).toHaveClass('sc-active')})it('calls onChange when an option is clicked', () => {@@ -74,7 +74,7 @@ describe('SegmentedControl', () => {const optionElement = screen.getByText('Option 2').closest('button')expect(optionElement).toHaveAttribute('disabled')- expect(optionElement).toHaveClass('disabled')+ expect(optionElement).toHaveClass('sc-disabled')fireEvent.click(screen.getByText('Option 3'))expect(onSelectMock).toHaveBeenCalledWith('option3')diff --git a/web/app/components/base/segmented-control/index.css b/web/app/components/base/segmented-control/index.cssindex bc027ddeff5..c0fbc914b64 100644--- a/web/app/components/base/segmented-control/index.css+++ b/web/app/components/base/segmented-control/index.css@@ -5,7 +5,7 @@@utility segmented-control-regular {@apply rounded-lg;- &.padding {+ &.sc-padding {@apply p-0.5;}}@@ -13,12 +13,12 @@@utility segmented-control-large {@apply rounded-lg;- &.padding {+ &.sc-padding {@apply p-0.5;}}-@utility padding {+@utility sc-padding {&.segmented-control-large {@apply p-0.5;}@@ -35,12 +35,12 @@@utility segmented-control-small {@apply rounded-md;- &.padding {+ &.sc-padding {@apply p-px;}}-@utility no-padding {+@utility sc-no-padding {@apply border-[0.5px] border-divider-subtle;}@@ -64,46 +64,46 @@@apply cursor-not-allowed text-text-disabled;}-@utility default {+@utility sc-default {@apply hover:bg-state-base-hover text-text-tertiary hover:text-text-secondary;}-@utility active {+@utility sc-active {@apply border-components-segmented-control-item-active-border bg-components-segmented-control-item-active-bg shadow-xs shadow-shadow-shadow-3 text-text-secondary;- &.accent {+ &.sc-accent {@apply text-text-accent;}- &.accent-light {+ &.sc-accent-light {@apply text-text-accent-light-mode-only;}}-@utility disabled {+@utility sc-disabled {@apply cursor-not-allowed text-text-disabled hover:text-text-disabled bg-transparent hover:bg-transparent;}-@utility accent {- &.active {+@utility sc-accent {+ &.sc-active {@apply text-text-accent;}}-@utility accent-light {- &.active {+@utility sc-accent-light {+ &.sc-active {@apply text-text-accent-light-mode-only;}}-@utility item-text-regular {+@utility sc-item-text-regular {@apply p-0.5;}-@utility item-text-small {+@utility sc-item-text-small {@apply p-0.5 pr-1;}-@utility item-text-large {+@utility sc-item-text-large {@apply px-0.5;-}\ No newline at end of file+}diff --git a/web/app/components/base/segmented-control/index.tsx b/web/app/components/base/segmented-control/index.tsxindex d0521cb26a4..1f0d09472f6 100644--- a/web/app/components/base/segmented-control/index.tsx+++ b/web/app/components/base/segmented-control/index.tsx@@ -1,8 +1,8 @@import type { RemixiconComponentType } from '@remixicon/react'import type { VariantProps } from 'class-variance-authority'+import { cn } from '@langgenius/dify-ui/cn'import { cva } from 'class-variance-authority'import * as React from 'react'-import { cn } from '@/utils/classnames'import Divider from '../divider'type SegmentedControlOption<T> = {@@ -32,8 +32,8 @@ const SegmentedControlVariants = cva(large: 'segmented-control-large',},padding: {- none: 'no-padding',- with: 'padding',+ none: 'sc-no-padding',+ with: 'sc-padding',},},defaultVariants: {@@ -54,8 +54,8 @@ const SegmentedControlItemVariants = cva(},activeState: {default: '',- accent: 'accent',- accentLight: 'accent-light',+ accent: 'sc-accent',+ accentLight: 'sc-accent-light',},},defaultVariants: {@@ -66,13 +66,13 @@ const SegmentedControlItemVariants = cva()const ItemTextWrapperVariants = cva(- 'item-text',+ '',{variants: {size: {- regular: 'item-text-regular',- small: 'item-text-small',- large: 'item-text-large',+ regular: 'sc-item-text-regular',+ small: 'sc-item-text-small',+ large: 'sc-item-text-large',},},defaultVariants: {@@ -113,10 +113,10 @@ export const SegmentedControl = <T extends string | number | symbol>({type="button"key={String(option.value)}className={cn(- isSelected ? 'active' : 'default',+ isSelected ? 'sc-active' : 'sc-default',SegmentedControlItemVariants({ size, activeState: isSelected ? activeState : 'default' }),isSelected && activeClassName,- disabled && 'disabled',+ disabled && 'sc-disabled',btnClassName,)}onClick={() => {@@ -130,14 +130,14 @@ export const SegmentedControl = <T extends string | number | symbol>({<div className={cn('inline-flex items-center gap-x-1', ItemTextWrapperVariants({ size }))}><span>{text}</span>{!!(count && size === 'large') && (- <div className="inline-flex h-[18px] min-w-[18px] items-center justify-center rounded-[5px] border border-divider-deep bg-components-badge-bg-dimm px-[5px] text-text-tertiary system-2xs-medium-uppercase">+ <div className="inline-flex h-[18px] min-w-[18px] items-center justify-center rounded-[5px] border border-divider-deep bg-components-badge-bg-dimm px-[5px] system-2xs-medium-uppercase text-text-tertiary">{count}</div>)}</div>)}{!isLast && !isSelected && !isNextSelected && (- <div data-testid={`segmented-control-divider-${index}`} className="absolute -right-px top-0 flex h-full items-center">+ <div data-testid={`segmented-control-divider-${index}`} className="absolute top-0 -right-px flex h-full items-center"><Divider type="vertical" className="mx-0 h-3.5" /></div>)}diff --git a/web/app/components/base/select/custom.tsx b/web/app/components/base/select/custom.tsxindex 36a6cef3a7e..dbf4995c224 100644--- a/web/app/components/base/select/custom.tsx+++ b/web/app/components/base/select/custom.tsx@@ -1,6 +1,7 @@import type {PortalToFollowElemOptions,} from '@/app/components/base/portal-to-follow-elem'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowDownSLine,RiCheckLine,@@ -15,7 +16,6 @@ import {PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'export type Option = {label: string@@ -94,7 +94,7 @@ const CustomSelect = <T extends Option>({><divclassName={cn(- 'system-sm-regular group flex h-8 cursor-pointer items-center rounded-lg bg-components-input-bg-normal px-2 text-components-input-text-filled hover:bg-state-base-hover-alt',+ 'group flex h-8 cursor-pointer items-center rounded-lg bg-components-input-bg-normal px-2 system-sm-regular text-components-input-text-filled hover:bg-state-base-hover-alt',mergedOpen && 'bg-state-base-hover-alt',triggerClassName,)}@@ -137,7 +137,7 @@ const CustomSelect = <T extends Option>({<divkey={option.value}className={cn(- 'system-sm-medium flex h-8 cursor-pointer items-center rounded-lg px-2 text-text-secondary hover:bg-state-base-hover',+ 'flex h-8 cursor-pointer items-center rounded-lg px-2 system-sm-medium text-text-secondary hover:bg-state-base-hover',popupItemClassName,)}title={option.label}diff --git a/web/app/components/base/select/index.tsx b/web/app/components/base/select/index.tsxindex 70ed726c38f..bd9cc7af04f 100644--- a/web/app/components/base/select/index.tsx+++ b/web/app/components/base/select/index.tsx@@ -7,6 +7,7 @@import type { FC } from 'react'import { Combobox, ComboboxButton, ComboboxInput, ComboboxOption, ComboboxOptions, Listbox, ListboxButton, ListboxOption, ListboxOptions } from '@headlessui/react'import { ChevronDownIcon, ChevronUpIcon, XMarkIcon } from '@heroicons/react/20/solid'+import { cn } from '@langgenius/dify-ui/cn'import { RiCheckLine, RiLoader4Line } from '@remixicon/react'import * as React from 'react'import { useEffect, useRef, useState } from 'react'@@ -16,7 +17,6 @@ import {PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'import Badge from '../badge/index'const defaultItems = [@@ -113,7 +113,7 @@ const Select: FC<ISelectProps> = ({{allowSearch? (<ComboboxInput- className={`w-full rounded-lg border-0 ${bgClassName} py-1.5 pl-3 pr-10 shadow-sm focus-visible:bg-state-base-hover focus-visible:outline-hidden group-hover:bg-state-base-hover sm:text-sm sm:leading-6 ${disabled ? 'cursor-not-allowed' : 'cursor-pointer'}`}+ className={`w-full rounded-lg border-0 ${bgClassName} py-1.5 pr-10 pl-3 shadow-sm group-hover:bg-state-base-hover focus-visible:bg-state-base-hover focus-visible:outline-hidden sm:text-sm sm:leading-6 ${disabled ? 'cursor-not-allowed' : 'cursor-pointer'}`}onChange={(event) => {if (!disabled)setQuery(event.target.value)@@ -129,7 +129,7 @@ const Select: FC<ISelectProps> = ({setOpen(!open)}}- className={cn(`flex h-9 w-full items-center rounded-lg border-0 ${bgClassName} py-1.5 pl-3 pr-10 shadow-sm focus-visible:bg-state-base-hover focus-visible:outline-hidden group-hover:bg-state-base-hover sm:text-sm sm:leading-6`, optionClassName)}+ className={cn(`flex h-9 w-full items-center rounded-lg border-0 ${bgClassName} py-1.5 pr-10 pl-3 shadow-sm group-hover:bg-state-base-hover focus-visible:bg-state-base-hover focus-visible:outline-hidden sm:text-sm sm:leading-6`, optionClassName)}><div className="w-0 grow truncate text-left" title={selectedItem?.name}>{selectedItem?.name}</div></ComboboxButton>@@ -154,7 +154,7 @@ const Select: FC<ISelectProps> = ({key={item.value}value={item}className={({ active }: { active: boolean }) =>- cn('relative cursor-default select-none rounded-lg py-2 pl-3 pr-9 text-text-secondary hover:bg-state-base-hover', active ? 'bg-state-base-hover' : '', optionClassName)}+ cn('relative cursor-default rounded-lg py-2 pr-9 pl-3 text-text-secondary select-none hover:bg-state-base-hover', active ? 'bg-state-base-hover' : '', optionClassName)}>{({ /* active, */ selected }) => (<>@@ -239,9 +239,9 @@ const SimpleSelect: FC<ISelectProps> = ({onClick={() => {onOpenChange?.(open)}}- className={cn(`flex h-full w-full items-center rounded-lg border-0 bg-components-input-bg-normal pl-3 pr-10 focus-visible:bg-state-base-hover-alt focus-visible:outline-hidden group-hover/simple-select:bg-state-base-hover-alt sm:text-sm sm:leading-6 ${disabled ? 'cursor-not-allowed' : 'cursor-pointer'}`, className)}+ className={cn(`flex h-full w-full items-center rounded-lg border-0 bg-components-input-bg-normal pr-10 pl-3 group-hover/simple-select:bg-state-base-hover-alt focus-visible:bg-state-base-hover-alt focus-visible:outline-hidden sm:text-sm sm:leading-6 ${disabled ? 'cursor-not-allowed' : 'cursor-pointer'}`, className)}>- <span className={cn('block truncate text-left text-components-input-text-filled system-sm-regular', !selectedItem?.name && 'text-components-input-text-placeholder')}>{selectedItem?.name ?? localPlaceholder}</span>+ <span className={cn('block truncate text-left system-sm-regular text-components-input-text-filled', !selectedItem?.name && 'text-components-input-text-placeholder')}>{selectedItem?.name ?? localPlaceholder}</span><span className="absolute inset-y-0 right-0 flex items-center pr-2">{isLoading? <RiLoader4Line className="h-3.5 w-3.5 animate-spin text-text-secondary" />@@ -282,7 +282,7 @@ const SimpleSelect: FC<ISelectProps> = ({item.isGroup ? (<divkey={item.value}- className="select-none px-3 py-1.5 text-xs font-medium uppercase tracking-wide text-text-tertiary"+ className="px-3 py-1.5 text-xs font-medium tracking-wide text-text-tertiary uppercase select-none">{item.name}</div>@@ -290,7 +290,7 @@ const SimpleSelect: FC<ISelectProps> = ({<ListboxOptionkey={item.value}className={- cn('relative cursor-pointer select-none rounded-lg py-2 pl-3 pr-9 text-text-secondary hover:bg-state-base-hover', optionClassName)+ cn('relative cursor-pointer rounded-lg py-2 pr-9 pl-3 text-text-secondary select-none hover:bg-state-base-hover', optionClassName)}value={item}disabled={item.disabled || disabled}diff --git a/web/app/components/base/select/pure.tsx b/web/app/components/base/select/pure.tsxindex 83ab673f372..aba2ae8da54 100644--- a/web/app/components/base/select/pure.tsx+++ b/web/app/components/base/select/pure.tsx@@ -1,6 +1,7 @@import type {PortalToFollowElemOptions,} from '@/app/components/base/portal-to-follow-elem'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowDownSLine,RiCheckLine,@@ -16,7 +17,6 @@ import {PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'export type Option = {label: string@@ -118,7 +118,7 @@ const PureSelect = (props: PureSelectProps) => {><divclassName={cn(- 'system-sm-regular group flex h-8 items-center rounded-lg bg-components-input-bg-normal px-2 text-components-input-text-filled',+ 'group flex h-8 items-center rounded-lg bg-components-input-bg-normal px-2 system-sm-regular text-components-input-text-filled',!disabled && 'cursor-pointer hover:bg-state-base-hover-alt',disabled && 'cursor-not-allowed opacity-50',mergedOpen && !disabled && 'bg-state-base-hover-alt',@@ -153,7 +153,7 @@ const PureSelect = (props: PureSelectProps) => {{popupTitle && (<div className={cn(- 'system-xs-medium-uppercase flex h-[22px] items-center px-3 text-text-tertiary',+ 'flex h-[22px] items-center px-3 system-xs-medium-uppercase text-text-tertiary',popupTitleClassName,)}>@@ -166,7 +166,7 @@ const PureSelect = (props: PureSelectProps) => {<divkey={option.value}className={cn(- 'system-sm-medium flex h-8 cursor-pointer items-center rounded-lg px-2 text-text-secondary hover:bg-state-base-hover',+ 'flex h-8 cursor-pointer items-center rounded-lg px-2 system-sm-medium text-text-secondary hover:bg-state-base-hover',popupItemClassName,)}title={option.label}diff --git a/web/app/components/base/simple-pie-chart/index.tsx b/web/app/components/base/simple-pie-chart/index.tsxindex 0baa7854385..b17edcb1a56 100644--- a/web/app/components/base/simple-pie-chart/index.tsx+++ b/web/app/components/base/simple-pie-chart/index.tsx@@ -1,8 +1,8 @@import type { EChartsOption } from 'echarts'import type { CSSProperties } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import ReactECharts from 'echarts-for-react'import { memo, useMemo } from 'react'-import { cn } from '@/utils/classnames'import style from './index.module.css'export type SimplePieChartProps = {diff --git a/web/app/components/base/skeleton/index.tsx b/web/app/components/base/skeleton/index.tsxindex 83b9c158f71..a9437111131 100644--- a/web/app/components/base/skeleton/index.tsx+++ b/web/app/components/base/skeleton/index.tsx@@ -1,5 +1,5 @@import type { ComponentProps, FC } from 'react'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'type SkeletonProps = ComponentProps<'div'>diff --git a/web/app/components/base/sort/index.tsx b/web/app/components/base/sort/index.tsxindex 901d353ec2d..ef9aebb0d7e 100644--- a/web/app/components/base/sort/index.tsx+++ b/web/app/components/base/sort/index.tsx@@ -1,4 +1,5 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine, RiCheckLine, RiSortAsc, RiSortDesc } from '@remixicon/react'import { useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -7,7 +8,6 @@ import {PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'type Item = {value: number | string@@ -72,7 +72,7 @@ const Sort: FC<Props> = ({setOpen(false)}}>- <div title={item.name} className="system-sm-medium grow truncate text-text-secondary">{item.name}</div>+ <div title={item.name} className="grow truncate system-sm-medium text-text-secondary">{item.name}</div>{value === item.value && <RiCheckLine className="h-4 w-4 shrink-0 text-util-colors-blue-light-blue-light-600" />}</div>))}diff --git a/web/app/components/base/svg/index.tsx b/web/app/components/base/svg/index.tsxindex 4ebfa5f3d07..2cfc0d9416c 100644--- a/web/app/components/base/svg/index.tsx+++ b/web/app/components/base/svg/index.tsx@@ -1,5 +1,5 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'import ActionButton from '../action-button'import s from './style.module.css'diff --git a/web/app/components/base/switch/__tests__/index.spec.tsx b/web/app/components/base/switch/__tests__/index.spec.tsxindex 6a938e793d4..f29832f7361 100644--- a/web/app/components/base/switch/__tests__/index.spec.tsx+++ b/web/app/components/base/switch/__tests__/index.spec.tsx@@ -68,7 +68,7 @@ describe('Switch', () => {it('should apply correct size classes', () => {const { rerender } = render(<Switch value={false} size="xs" />)const switchElement = screen.getByRole('switch')- expect(switchElement).toHaveClass('h-2.5', 'w-3.5', 'radius-2xs')+ expect(switchElement).toHaveClass('h-2.5', 'w-3.5', 'rounded-xs')rerender(<Switch value={false} size="sm" />)expect(switchElement).toHaveClass('h-3', 'w-5')@@ -186,10 +186,10 @@ describe('SwitchSkeleton', () => {it('should apply correct skeleton size classes', () => {const { rerender } = render(<SwitchSkeleton size="xs" data-testid="s" />)const el = screen.getByTestId('s')- expect(el).toHaveClass('h-2.5', 'w-3.5', 'radius-2xs')+ expect(el).toHaveClass('h-2.5', 'w-3.5', 'rounded-xs')rerender(<SwitchSkeleton size="lg" data-testid="s" />)- expect(el).toHaveClass('h-5', 'w-9', 'radius-sm')+ expect(el).toHaveClass('h-5', 'w-9', 'rounded-md')})it('should apply custom className to skeleton', () => {diff --git a/web/app/components/base/switch/index.tsx b/web/app/components/base/switch/index.tsxindex be0c97aacdf..80f7c23817b 100644--- a/web/app/components/base/switch/index.tsx+++ b/web/app/components/base/switch/index.tsx@@ -2,9 +2,9 @@import type { VariantProps } from 'class-variance-authority'import { Switch as BaseSwitch } from '@base-ui/react/switch'+import { cn } from '@langgenius/dify-ui/cn'import { cva } from 'class-variance-authority'import * as React from 'react'-import { cn } from '@/utils/classnames'const switchRootStateClassName = 'bg-components-toggle-bg-unchecked hover:bg-components-toggle-bg-unchecked-hover data-checked:bg-components-toggle-bg data-checked:hover:bg-components-toggle-bg-hover data-disabled:cursor-not-allowed data-disabled:bg-components-toggle-bg-unchecked-disabled data-disabled:hover:bg-components-toggle-bg-unchecked-disabled data-disabled:data-checked:bg-components-toggle-bg-disabled data-disabled:data-checked:hover:bg-components-toggle-bg-disabled'@@ -13,10 +13,10 @@ const switchRootVariants = cva({variants: {size: {- xs: 'h-2.5 w-3.5 radius-2xs p-0.5',+ xs: 'h-2.5 w-3.5 rounded-xs p-0.5',sm: 'h-3 w-5 rounded-[3.5px] p-0.5',md: 'h-4 w-7 rounded-[5px] p-0.5',- lg: 'h-5 w-9 radius-sm p-[3px]',+ lg: 'h-5 w-9 rounded-md p-[3px]',},},defaultVariants: {@@ -31,9 +31,9 @@ const switchThumbVariants = cva(variants: {size: {xs: 'h-1.5 w-1 rounded-[1px] data-checked:translate-x-1.5',- sm: 'h-2 w-[7px] radius-2xs data-checked:translate-x-[9px]',+ sm: 'h-2 w-[7px] rounded-xs data-checked:translate-x-[9px]',md: 'h-3 w-2.5 rounded-[3px] data-checked:translate-x-[14px]',- lg: 'size-3.5 radius-xs data-checked:translate-x-4',+ lg: 'size-3.5 rounded-sm data-checked:translate-x-4',},},defaultVariants: {diff --git a/web/app/components/base/switch/skeleton.tsx b/web/app/components/base/switch/skeleton.tsxindex 91b264d8c1e..f9306445cb6 100644--- a/web/app/components/base/switch/skeleton.tsx+++ b/web/app/components/base/switch/skeleton.tsx@@ -1,16 +1,16 @@import type { SwitchSize } from './index'+import { cn } from '@langgenius/dify-ui/cn'import { cva } from 'class-variance-authority'-import { cn } from '@/utils/classnames'const skeletonVariants = cva('bg-text-quaternary opacity-20',{variants: {size: {- xs: 'h-2.5 w-3.5 radius-2xs',+ xs: 'h-2.5 w-3.5 rounded-xs',sm: 'h-3 w-5 rounded-[3.5px]',md: 'h-4 w-7 rounded-[5px]',- lg: 'h-5 w-9 radius-sm',+ lg: 'h-5 w-9 rounded-md',},},defaultVariants: {diff --git a/web/app/components/base/tab-header/index.tsx b/web/app/components/base/tab-header/index.tsxindex e5f05566449..dd72fd964b7 100644--- a/web/app/components/base/tab-header/index.tsx+++ b/web/app/components/base/tab-header/index.tsx@@ -1,7 +1,7 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'type Item = {id: string@@ -34,7 +34,7 @@ const TabHeader: FC<ITabHeaderProps> = ({key={id}data-testid={`tab-header-item-${id}`}className={cn(- 'relative flex cursor-pointer items-center border-b-2 border-transparent pb-2 pt-2.5 system-md-semibold',+ 'relative flex cursor-pointer items-center border-b-2 border-transparent pt-2.5 pb-2 system-md-semibold',id === value ? cn('border-components-tab-active text-text-primary', activeItemClassName) : 'text-text-tertiary',disabled && 'cursor-not-allowed opacity-30',itemWrapClassName,diff --git a/web/app/components/base/tab-slider-new/index.tsx b/web/app/components/base/tab-slider-new/index.tsxindex 96b97a55f6c..6f8a905f95f 100644--- a/web/app/components/base/tab-slider-new/index.tsx+++ b/web/app/components/base/tab-slider-new/index.tsx@@ -1,5 +1,5 @@import type { FC } from 'react'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'type Option = {value: string@@ -29,7 +29,7 @@ const TabSliderNew: FC<TabSliderProps> = ({data-testid={`tab-item-${option.value}`}onClick={() => onChange(option.value)}className={cn(- 'mr-1 flex h-[32px] cursor-pointer items-center rounded-lg border-[0.5px] border-transparent px-3 py-[7px] text-[13px] font-medium leading-[18px] text-text-tertiary hover:bg-state-base-hover',+ 'mr-1 flex h-[32px] cursor-pointer items-center rounded-lg border-[0.5px] border-transparent px-3 py-[7px] text-[13px] leading-[18px] font-medium text-text-tertiary hover:bg-state-base-hover',value === option.value && 'border-components-main-nav-nav-button-border bg-state-base-hover text-components-main-nav-nav-button-text-active shadow-xs',)}>diff --git a/web/app/components/base/tab-slider-plain/index.tsx b/web/app/components/base/tab-slider-plain/index.tsxindex 106d2340169..5db3d416c92 100644--- a/web/app/components/base/tab-slider-plain/index.tsx+++ b/web/app/components/base/tab-slider-plain/index.tsx@@ -1,7 +1,7 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'type Option = {value: string@@ -43,7 +43,7 @@ const Item: FC<ItemProps> = ({{isActive && (<divdata-testid="tab-active-indicator"- className="absolute bottom-0 left-0 right-0 h-0.5 bg-util-colors-blue-brand-blue-brand-600"+ className="absolute right-0 bottom-0 left-0 h-0.5 bg-util-colors-blue-brand-blue-brand-600"></div>)}diff --git a/web/app/components/base/tab-slider/index.tsx b/web/app/components/base/tab-slider/index.tsxindex 6ba410995be..7cb4e6628b7 100644--- a/web/app/components/base/tab-slider/index.tsx+++ b/web/app/components/base/tab-slider/index.tsx@@ -1,8 +1,8 @@import type { FC, ReactNode } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { useEffect, useState } from 'react'import Badge, { BadgeState } from '@/app/components/base/badge/index'import { useInstalledPluginList } from '@/service/use-plugins'-import { cn } from '@/utils/classnames'type Option = {value: string@@ -48,11 +48,11 @@ const TabSlider: FC<TabSliderProps> = ({return (<divdata-testid="tab-slider-container"- className={cn(className, 'relative inline-flex items-center justify-center radius-lg bg-components-segmented-control-bg-normal p-0.5')}+ className={cn(className, 'relative inline-flex items-center justify-center rounded-[10px] bg-components-segmented-control-bg-normal p-0.5')}><divdata-testid="tab-slider-bg"- className="shadows-shadow-xs absolute bottom-0.5 left-0 right-0 top-0.5 radius-lg bg-components-panel-bg transition-transform duration-300 ease-in-out"+ className="shadows-shadow-xs absolute top-0.5 right-0 bottom-0.5 left-0 rounded-[10px] bg-components-panel-bg transition-transform duration-300 ease-in-out"style={sliderStyle}/>{options.map((option, index) => (@@ -61,7 +61,7 @@ const TabSlider: FC<TabSliderProps> = ({key={option.value}data-testid={`tab-item-${option.value}`}className={cn(- 'relative z-10 flex cursor-pointer items-center justify-center gap-1 radius-lg px-2.5 py-1.5 transition-colors duration-300 ease-in-out',+ 'relative z-10 flex cursor-pointer items-center justify-center gap-1 rounded-[10px] px-2.5 py-1.5 transition-colors duration-300 ease-in-out','system-md-semibold',index === activeIndex? 'text-text-primary'diff --git a/web/app/components/base/tag-input/index.tsx b/web/app/components/base/tag-input/index.tsxindex f98922ec8d1..e4e3cc25282 100644--- a/web/app/components/base/tag-input/index.tsx+++ b/web/app/components/base/tag-input/index.tsx@@ -1,9 +1,9 @@import type { ChangeEvent, FC, KeyboardEvent } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback, useState } from 'react'import _AutosizeInput from 'react-18-input-autosize'import { useTranslation } from 'react-i18next'import { toast } from '@/app/components/base/ui/toast'-import { cn } from '@/utils/classnames'// CJS/ESM interop: Turbopack may resolve the module namespace object instead of the default export// eslint-disable-next-line ts/no-explicit-anyconst AutosizeInput = ('default' in (_AutosizeInput as any) ? (_AutosizeInput as any).default : _AutosizeInput) as typeof _AutosizeInput@@ -64,11 +64,11 @@ const TagInput: FC<TagInputProps> = ({ items, onChange, disableAdd, disableRemovreturn (<div className={cn('flex flex-wrap', !isInWorkflow && 'min-w-[200px]', isSpecialMode ? 'rounded-lg bg-components-input-bg-normal pb-1 pl-1' : '')}>{(items || []).map((item, index) => (- <div key={item} className={cn('mr-1 mt-1 flex items-center rounded-md border border-divider-deep bg-components-badge-white-to-dark py-1 pl-1.5 pr-1 text-text-secondary system-xs-regular')}>+ <div key={item} className={cn('mt-1 mr-1 flex items-center rounded-md border border-divider-deep bg-components-badge-white-to-dark py-1 pr-1 pl-1.5 system-xs-regular text-text-secondary')}>{item}{!disableRemove && (<div className="flex h-4 w-4 cursor-pointer items-center justify-center" onClick={() => handleRemove(index)}>- <span className="i-ri-close-line ml-0.5 h-3.5 w-3.5 text-text-tertiary" data-testid="remove-tag" />+ <span className="ml-0.5 i-ri-close-line h-3.5 w-3.5 text-text-tertiary" data-testid="remove-tag" /></div>)}</div>diff --git a/web/app/components/base/tag-management/filter.tsx b/web/app/components/base/tag-management/filter.tsxindex 1ad17d26813..30eba33e278 100644--- a/web/app/components/base/tag-management/filter.tsx+++ b/web/app/components/base/tag-management/filter.tsx@@ -1,5 +1,6 @@import type { FC } from 'react'import type { Tag } from '@/app/components/base/tag-management/constant'+import { cn } from '@langgenius/dify-ui/cn'import { useMount } from 'ahooks'import { useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -11,7 +12,6 @@ import {PopoverTrigger,} from '@/app/components/base/ui/popover'import { fetchTagList } from '@/service/tag'-import { cn } from '@/utils/classnames'import { useStore as useTagStore } from './store'@@ -66,7 +66,7 @@ const TagFilter: FC<TagFilterProps> = ({<buttontype="button"className={cn(- 'flex h-8 cursor-pointer select-none items-center gap-1 rounded-lg border-[0.5px] border-transparent bg-components-input-bg-normal px-2 text-left',+ 'flex h-8 cursor-pointer items-center gap-1 rounded-lg border-[0.5px] border-transparent bg-components-input-bg-normal px-2 text-left select-none',!!value.length && 'pr-6 shadow-xs',)}>@@ -78,7 +78,7 @@ const TagFilter: FC<TagFilterProps> = ({{!!value.length && currentTag?.name}</div>{value.length > 1 && (- <div className="shrink-0 text-xs font-medium leading-[18px] text-text-tertiary">{`+${value.length - 1}`}</div>+ <div className="shrink-0 text-xs leading-[18px] font-medium text-text-tertiary">{`+${value.length - 1}`}</div>)}{!value.length && (<div className="shrink-0 p-px">@@ -91,7 +91,7 @@ const TagFilter: FC<TagFilterProps> = ({{!!value.length && (<buttontype="button"- className="group/clear absolute right-2 top-1/2 -translate-y-1/2 p-px"+ className="group/clear absolute top-1/2 right-2 -translate-y-1/2 p-px"onClick={() => onChange([])}data-testid="tag-filter-clear-button">@@ -117,7 +117,7 @@ const TagFilter: FC<TagFilterProps> = ({{filteredTagList.map(tag => (<divkey={tag.id}- className="flex cursor-pointer select-none items-center gap-2 rounded-lg py-[6px] pl-3 pr-2 hover:bg-state-base-hover"+ className="flex cursor-pointer items-center gap-2 rounded-lg py-[6px] pr-2 pl-3 select-none hover:bg-state-base-hover"onClick={() => selectTag(tag)}><div title={tag.name} className="grow truncate text-sm leading-5 text-text-tertiary">{tag.name}</div>@@ -134,7 +134,7 @@ const TagFilter: FC<TagFilterProps> = ({<div className="border-t-[0.5px] border-divider-regular" /><div className="p-1"><div- className="flex cursor-pointer select-none items-center gap-2 rounded-lg py-[6px] pl-3 pr-2 hover:bg-state-base-hover"+ className="flex cursor-pointer items-center gap-2 rounded-lg py-[6px] pr-2 pl-3 select-none hover:bg-state-base-hover"onClick={() => {setShowTagManagementModal(true)setOpen(false)diff --git a/web/app/components/base/tag-management/selector.tsx b/web/app/components/base/tag-management/selector.tsxindex 32779262fab..9b478086ced 100644--- a/web/app/components/base/tag-management/selector.tsx+++ b/web/app/components/base/tag-management/selector.tsx@@ -1,9 +1,9 @@import type { FC } from 'react'import type { Tag } from '@/app/components/base/tag-management/constant'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback, useMemo } from 'react'import CustomPopover from '@/app/components/base/popover'import { fetchTagList } from '@/service/tag'-import { cn } from '@/utils/classnames'import Panel from './panel'import { useStore as useTagStore } from './store'import Trigger from './trigger'diff --git a/web/app/components/base/tag-management/tag-item-editor.tsx b/web/app/components/base/tag-management/tag-item-editor.tsxindex c7baedf6c99..80555221e6d 100644--- a/web/app/components/base/tag-management/tag-item-editor.tsx+++ b/web/app/components/base/tag-management/tag-item-editor.tsx@@ -1,5 +1,6 @@import type { FC } from 'react'import type { Tag } from '@/app/components/base/tag-management/constant'+import { cn } from '@langgenius/dify-ui/cn'import { useDebounceFn } from 'ahooks'import { useState } from 'react'import { useTranslation } from 'react-i18next'@@ -15,7 +16,6 @@ import {} from '@/app/components/base/ui/alert-dialog'import { toast } from '@/app/components/base/ui/toast'import { deleteTag, updateTag } from '@/service/tag'-import { cn } from '@/utils/classnames'import { useStore as useTagStore } from './store'type TagItemEditorProps = {@@ -99,14 +99,14 @@ const TagItemEditor: FC<TagItemEditorProps> = ({ tag }) => {}, { wait: 200 })return (<>- <div className={cn('flex shrink-0 items-center gap-0.5 rounded-lg border border-components-panel-border py-1 pl-2 pr-1 text-sm leading-5 text-text-secondary')}>+ <div className={cn('flex shrink-0 items-center gap-0.5 rounded-lg border border-components-panel-border py-1 pr-1 pl-2 text-sm leading-5 text-text-secondary')}>{!isEditing && (<><div className="text-sm leading-5 text-text-secondary">{tag.name}</div><Tooltip popupContent={<div>{t('common.tagBound', { ns: 'workflow' })}</div>} needsDelay>- <div className="leading-4.5 shrink-0 px-1 text-sm font-medium text-text-tertiary">{tag.binding_count}</div>+ <div className="shrink-0 px-1 text-sm leading-4.5 font-medium text-text-tertiary">{tag.binding_count}</div></Tooltip><div className="group/edit shrink-0 cursor-pointer rounded-md p-1 hover:bg-state-base-hover" onClick={() => setIsEditing(true)}><span className="i-ri-edit-line h-3 w-3 text-text-tertiary group-hover/edit:text-text-secondary" data-testid="tag-item-editor-edit-button" />diff --git a/web/app/components/base/tag-management/tag-remove-modal.tsx b/web/app/components/base/tag-management/tag-remove-modal.tsxindex 31b6174d663..41ac0728501 100644--- a/web/app/components/base/tag-management/tag-remove-modal.tsx+++ b/web/app/components/base/tag-management/tag-remove-modal.tsx@@ -1,12 +1,12 @@'use client'import type { Tag } from '@/app/components/base/tag-management/constant'+import { cn } from '@langgenius/dify-ui/cn'import { noop } from 'es-toolkit/function'import { useTranslation } from 'react-i18next'import { AlertTriangle } from '@/app/components/base/icons/src/vender/solid/alertsAndFeedback'import Modal from '@/app/components/base/modal'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'type TagRemoveModalProps = {show: booleandiff --git a/web/app/components/base/tag/index.tsx b/web/app/components/base/tag/index.tsxindex dee85c998cc..d76784caab4 100644--- a/web/app/components/base/tag/index.tsx+++ b/web/app/components/base/tag/index.tsx@@ -1,5 +1,5 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'type ITagProps = {children: string | React.ReactNodediff --git a/web/app/components/base/textarea/index.tsx b/web/app/components/base/textarea/index.tsxindex d991acb28b5..f5a8dd87f26 100644--- a/web/app/components/base/textarea/index.tsx+++ b/web/app/components/base/textarea/index.tsx@@ -1,8 +1,8 @@import type { VariantProps } from 'class-variance-authority'import type { CSSProperties } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { cva } from 'class-variance-authority'import * as React from 'react'-import { cn } from '@/utils/classnames'const textareaVariants = cva('',diff --git a/web/app/components/base/theme-switcher.tsx b/web/app/components/base/theme-switcher.tsxindex a6b69722104..0f8212348e6 100644--- a/web/app/components/base/theme-switcher.tsx+++ b/web/app/components/base/theme-switcher.tsx@@ -1,6 +1,6 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import { useTheme } from 'next-themes'-import { cn } from '@/utils/classnames'type Theme = 'light' | 'dark' | 'system'@@ -12,7 +12,7 @@ export default function ThemeSwitcher() {}return (- <div className="flex items-center radius-lg bg-components-segmented-control-bg-normal p-0.5">+ <div className="flex items-center rounded-[10px] bg-components-segmented-control-bg-normal p-0.5"><buttontype="button"className={cn(diff --git a/web/app/components/base/timezone-label/index.tsx b/web/app/components/base/timezone-label/index.tsxindex 385e4c782a7..90b69348b3b 100644--- a/web/app/components/base/timezone-label/index.tsx+++ b/web/app/components/base/timezone-label/index.tsx@@ -1,7 +1,7 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useMemo } from 'react'import { convertTimezoneToOffsetStr } from '@/app/components/base/date-and-time-picker/utils/dayjs'-import { cn } from '@/utils/classnames'type TimezoneLabelProps = {/** IANA timezone identifier (e.g., 'Asia/Shanghai', 'America/New_York') */@@ -43,7 +43,7 @@ const TimezoneLabel: React.FC<TimezoneLabelProps> = ({return (<spanclassName={cn(- 'text-text-tertiary system-sm-regular',+ 'system-sm-regular text-text-tertiary',inline && 'text-text-quaternary',className,)}diff --git a/web/app/components/base/tooltip/index.tsx b/web/app/components/base/tooltip/index.tsxindex da373dea830..ab5dbf1710d 100644--- a/web/app/components/base/tooltip/index.tsx+++ b/web/app/components/base/tooltip/index.tsx@@ -6,12 +6,12 @@*/import type { OffsetOptions, Placement } from '@floating-ui/react'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiQuestionLine } from '@remixicon/react'import { useBoolean } from 'ahooks'import * as React from 'react'import { useCallback, useEffect, useRef, useState } from 'react'import { PortalToFollowElem, PortalToFollowElemContent, PortalToFollowElemTrigger } from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'import { tooltipManager } from './TooltipManager'type TooltipProps = {@@ -135,7 +135,7 @@ const Tooltip: FC<TooltipProps> = ({{!!popupContent && (<divclassName={cn(- !noDecoration && 'relative max-w-[300px] wrap-break-word rounded-md bg-components-panel-bg px-3 py-2 text-left text-text-tertiary shadow-lg system-xs-regular',+ !noDecoration && 'relative max-w-[300px] rounded-md bg-components-panel-bg px-3 py-2 text-left system-xs-regular wrap-break-word text-text-tertiary shadow-lg',popupClassName,)}onMouseEnter={() => {diff --git a/web/app/components/base/ui/alert-dialog/index.tsx b/web/app/components/base/ui/alert-dialog/index.tsxindex f922a198475..e591fed2a39 100644--- a/web/app/components/base/ui/alert-dialog/index.tsx+++ b/web/app/components/base/ui/alert-dialog/index.tsx@@ -2,9 +2,9 @@import type { ButtonProps } from '@/app/components/base/ui/button'import { AlertDialog as BaseAlertDialog } from '@base-ui/react/alert-dialog'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'export const AlertDialog = BaseAlertDialog.Rootexport const AlertDialogTrigger = BaseAlertDialog.Triggerdiff --git a/web/app/components/base/ui/avatar/index.tsx b/web/app/components/base/ui/avatar/index.tsxindex f3bb5298b17..18f040ff003 100644--- a/web/app/components/base/ui/avatar/index.tsx+++ b/web/app/components/base/ui/avatar/index.tsx@@ -1,7 +1,7 @@import type { ImageLoadingStatus } from '@base-ui/react/avatar'import type * as React from 'react'import { Avatar as BaseAvatar } from '@base-ui/react/avatar'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'const avatarSizeClasses = {'xxs': { root: 'size-4', text: 'text-[7px]' },diff --git a/web/app/components/base/ui/button/index.tsx b/web/app/components/base/ui/button/index.tsxindex 002213486be..73d5ecc3c94 100644--- a/web/app/components/base/ui/button/index.tsx+++ b/web/app/components/base/ui/button/index.tsx@@ -1,8 +1,8 @@import type { Button as BaseButtonNS } from '@base-ui/react/button'import type { VariantProps } from 'class-variance-authority'import { Button as BaseButton } from '@base-ui/react/button'+import { cn } from '@langgenius/dify-ui/cn'import { cva } from 'class-variance-authority'-import { cn } from '@/utils/classnames'const buttonVariants = cva('inline-flex cursor-pointer items-center justify-center whitespace-nowrap outline-hidden focus-visible:ring-2 focus-visible:ring-state-accent-solid data-[disabled]:cursor-not-allowed',diff --git a/web/app/components/base/ui/context-menu/index.tsx b/web/app/components/base/ui/context-menu/index.tsxindex 4e164b08b9b..663f09e96e7 100644--- a/web/app/components/base/ui/context-menu/index.tsx+++ b/web/app/components/base/ui/context-menu/index.tsx@@ -2,6 +2,7 @@import type { Placement } from '@/app/components/base/ui/placement'import { ContextMenu as BaseContextMenu } from '@base-ui/react/context-menu'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import {menuBackdropClassName,@@ -13,7 +14,6 @@ import {menuSeparatorClassName,} from '@/app/components/base/ui/menu-shared'import { parsePlacement } from '@/app/components/base/ui/placement'-import { cn } from '@/utils/classnames'export const ContextMenu = BaseContextMenu.Rootexport const ContextMenuTrigger = BaseContextMenu.Triggerdiff --git a/web/app/components/base/ui/dialog/index.tsx b/web/app/components/base/ui/dialog/index.tsxindex c1802806c98..a5ccfa12726 100644--- a/web/app/components/base/ui/dialog/index.tsx+++ b/web/app/components/base/ui/dialog/index.tsx@@ -8,8 +8,8 @@// above the dialog backdrop instead of being clipped by it.import { Dialog as BaseDialog } from '@base-ui/react/dialog'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'export const Dialog = BaseDialog.Root/** @public */diff --git a/web/app/components/base/ui/dropdown-menu/index.tsx b/web/app/components/base/ui/dropdown-menu/index.tsxindex da3cd2f95cb..83c34ecf27c 100644--- a/web/app/components/base/ui/dropdown-menu/index.tsx+++ b/web/app/components/base/ui/dropdown-menu/index.tsx@@ -2,6 +2,7 @@import type { Placement } from '@/app/components/base/ui/placement'import { Menu } from '@base-ui/react/menu'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import {menuGroupLabelClassName,@@ -12,7 +13,6 @@ import {menuSeparatorClassName,} from '@/app/components/base/ui/menu-shared'import { parsePlacement } from '@/app/components/base/ui/placement'-import { cn } from '@/utils/classnames'export const DropdownMenu = Menu.Rootexport const DropdownMenuTrigger = Menu.Triggerdiff --git a/web/app/components/base/ui/number-field/__tests__/index.spec.tsx b/web/app/components/base/ui/number-field/__tests__/index.spec.tsxindex abfee58302f..003191dd561 100644--- a/web/app/components/base/ui/number-field/__tests__/index.spec.tsx+++ b/web/app/components/base/ui/number-field/__tests__/index.spec.tsx@@ -77,7 +77,7 @@ describe('NumberField wrapper', () => {const group = screen.getByTestId('group')- expect(group).toHaveClass('radius-md')+ expect(group).toHaveClass('rounded-lg')expect(group).toHaveClass('custom-group')})@@ -94,7 +94,7 @@ describe('NumberField wrapper', () => {const group = screen.getByTestId('group')const input = screen.getByTestId('input')- expect(group).toHaveClass('radius-lg')+ expect(group).toHaveClass('rounded-[10px]')expect(input).toHaveClass('px-4')expect(input).toHaveClass('py-2')})diff --git a/web/app/components/base/ui/number-field/index.stories.tsx b/web/app/components/base/ui/number-field/index.stories.tsxindex 35a2567e87a..f0b55764e4b 100644--- a/web/app/components/base/ui/number-field/index.stories.tsx+++ b/web/app/components/base/ui/number-field/index.stories.tsx@@ -1,6 +1,6 @@import type { Meta, StoryObj } from '@storybook/nextjs-vite'+import { cn } from '@langgenius/dify-ui/cn'import { useId, useState } from 'react'-import { cn } from '@/utils/classnames'import {NumberField,NumberFieldControls,diff --git a/web/app/components/base/ui/number-field/index.tsx b/web/app/components/base/ui/number-field/index.tsxindex 7d4c43b8153..fdc4054e1f9 100644--- a/web/app/components/base/ui/number-field/index.tsx+++ b/web/app/components/base/ui/number-field/index.tsx@@ -2,9 +2,9 @@import type { VariantProps } from 'class-variance-authority'import { NumberField as BaseNumberField } from '@base-ui/react/number-field'+import { cn } from '@langgenius/dify-ui/cn'import { cva } from 'class-variance-authority'import * as React from 'react'-import { cn } from '@/utils/classnames'export const NumberField = BaseNumberField.Rootexport type NumberFieldRootProps = React.ComponentPropsWithoutRef<typeof BaseNumberField.Root>@@ -21,8 +21,8 @@ export const numberFieldGroupVariants = cva({variants: {size: {- regular: 'radius-md',- large: 'radius-lg',+ regular: 'rounded-lg',+ large: 'rounded-[10px]',},},defaultVariants: {diff --git a/web/app/components/base/ui/popover/index.tsx b/web/app/components/base/ui/popover/index.tsxindex 08e3cf51e24..4383112a4ba 100644--- a/web/app/components/base/ui/popover/index.tsx+++ b/web/app/components/base/ui/popover/index.tsx@@ -2,9 +2,9 @@import type { Placement } from '@/app/components/base/ui/placement'import { Popover as BasePopover } from '@base-ui/react/popover'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { parsePlacement } from '@/app/components/base/ui/placement'-import { cn } from '@/utils/classnames'export const Popover = BasePopover.Rootexport const PopoverTrigger = BasePopover.Triggerdiff --git a/web/app/components/base/ui/scroll-area/__tests__/index.spec.tsx b/web/app/components/base/ui/scroll-area/__tests__/index.spec.tsxindex 0d37c30712e..7696a9be29f 100644--- a/web/app/components/base/ui/scroll-area/__tests__/index.spec.tsx+++ b/web/app/components/base/ui/scroll-area/__tests__/index.spec.tsx@@ -126,7 +126,7 @@ describe('scroll-area wrapper', () => {expect(thumb).toHaveAttribute('data-orientation', 'vertical')expect(thumb).toHaveClass('shrink-0',- 'radius-xs',+ 'rounded-sm','bg-state-base-handle','transition-[background-color]','motion-reduce:transition-none',@@ -164,7 +164,7 @@ describe('scroll-area wrapper', () => {expect(thumb).toHaveAttribute('data-orientation', 'horizontal')expect(thumb).toHaveClass('shrink-0',- 'radius-xs',+ 'rounded-sm','bg-state-base-handle','transition-[background-color]','motion-reduce:transition-none',diff --git a/web/app/components/base/ui/scroll-area/index.stories.tsx b/web/app/components/base/ui/scroll-area/index.stories.tsxindex 2d8697d944c..4166f0b66a1 100644--- a/web/app/components/base/ui/scroll-area/index.stories.tsx+++ b/web/app/components/base/ui/scroll-area/index.stories.tsx@@ -1,8 +1,8 @@import type { Meta, StoryObj } from '@storybook/nextjs-vite'import type { ReactNode } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import AppIcon from '@/app/components/base/app-icon'-import { cn } from '@/utils/classnames'import {ScrollAreaContent,ScrollAreaCorner,@@ -35,7 +35,7 @@ const labelClassName = 'text-text-tertiary system-xs-medium-uppercase tracking-[const titleClassName = 'system-sm-semibold text-text-primary'const bodyClassName = 'system-sm-regular text-text-secondary'const insetScrollAreaClassName = 'h-full p-1'-const insetViewportClassName = 'radius-3xl bg-components-panel-bg'+const insetViewportClassName = 'rounded-[20px] bg-components-panel-bg'const insetScrollbarClassName = 'data-[orientation=vertical]:my-1 data-[orientation=vertical]:me-1 data-[orientation=horizontal]:mx-1 data-[orientation=horizontal]:mb-1'const storyButtonClassName = 'flex w-full items-center justify-between gap-3 rounded-xl border border-divider-subtle bg-components-panel-bg-alt px-3 py-2.5 text-left text-text-secondary transition-colors hover:bg-state-base-hover focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-components-input-border-hover motion-reduce:transition-none'const sidebarScrollAreaClassName = 'h-full'@@ -123,7 +123,7 @@ const StoryCard = ({className?: stringchildren: ReactNode}) => (- <section className={cn('min-w-0 radius-6xl border border-divider-subtle bg-background-body p-5', className)}>+ <section className={cn('min-w-0 rounded-[28px] border border-divider-subtle bg-background-body p-5', className)}><div className="space-y-1"><div className={labelClassName}>{eyebrow}</div><h3 className="system-md-semibold text-pretty text-text-primary">{title}</h3>@@ -312,7 +312,7 @@ const ScrollbarStatePane = ({}, [initialPosition, viewportId])return (- <div className="min-w-0 radius-6xl border border-divider-subtle bg-background-body p-5">+ <div className="min-w-0 rounded-[28px] border border-divider-subtle bg-background-body p-5"><div className="space-y-1"><div className={labelClassName}>{eyebrow}</div><div className="system-md-semibold text-text-primary">{title}</div>@@ -320,7 +320,7 @@ const ScrollbarStatePane = ({</div><div className="mt-4 min-w-0 rounded-[24px] border border-divider-subtle bg-components-panel-bg p-3"><ScrollAreaRoot className="h-[320px] p-1">- <ScrollAreaViewport id={viewportId} className="radius-3xl bg-components-panel-bg">+ <ScrollAreaViewport id={viewportId} className="rounded-[20px] bg-components-panel-bg"><ScrollAreaContent className="min-w-0 space-y-2 p-4 pr-6">{scrollbarShowcaseRows.map(item => (<article key={item.title} className="min-w-0 rounded-xl border border-divider-subtle bg-components-panel-bg-alt p-3">@@ -340,7 +340,7 @@ const ScrollbarStatePane = ({}const HorizontalScrollbarShowcasePane = () => (- <div className="min-w-0 radius-6xl border border-divider-subtle bg-background-body p-5">+ <div className="min-w-0 rounded-[28px] border border-divider-subtle bg-background-body p-5"><div className="space-y-1"><div className={labelClassName}>Horizontal</div><div className="system-md-semibold text-text-primary">Horizontal track reference</div>@@ -348,7 +348,7 @@ const HorizontalScrollbarShowcasePane = () => (</div><div className="mt-4 min-w-0 rounded-[24px] border border-divider-subtle bg-components-panel-bg p-3"><ScrollAreaRoot className="h-[240px] p-1">- <ScrollAreaViewport className="radius-3xl bg-components-panel-bg">+ <ScrollAreaViewport className="rounded-[20px] bg-components-panel-bg"><ScrollAreaContent className="min-h-full min-w-max space-y-4 p-4 pb-6"><div className="space-y-1"><div className="system-sm-semibold text-text-primary">Horizontal scrollbar</div>@@ -373,10 +373,10 @@ const HorizontalScrollbarShowcasePane = () => ()const OverlayPane = () => (- <div className="flex h-[420px] min-w-0 items-center justify-center radius-6xl bg-[radial-gradient(circle_at_top,rgba(21,90,239,0.12),transparent_45%),linear-gradient(180deg,rgba(16,24,40,0.03),transparent)] p-6">+ <div className="flex h-[420px] min-w-0 items-center justify-center rounded-[28px] bg-[radial-gradient(circle_at_top,rgba(21,90,239,0.12),transparent_45%),linear-gradient(180deg,rgba(16,24,40,0.03),transparent)] p-6"><div className={cn(blurPanelClassName, 'w-full max-w-[360px]')}><ScrollAreaRoot className="h-[320px] p-1">- <ScrollAreaViewport className="overscroll-contain radius-3xl bg-components-panel-bg-blur">+ <ScrollAreaViewport className="overscroll-contain rounded-[20px] bg-components-panel-bg-blur"><ScrollAreaContent className="space-y-2 p-3 pr-6"><div className="sticky top-0 z-10 rounded-xl border border-divider-subtle bg-components-panel-bg-blur px-3 py-3 backdrop-blur-[6px]"><div className={labelClassName}>Overlay palette</div>@@ -452,7 +452,7 @@ const ExploreSidebarWebAppsPane = () => {return (<div className="w-full max-w-[272px] rounded-[26px] border border-divider-subtle bg-background-body p-3 shadow-lg shadow-shadow-shadow-5">- <div className="space-y-5 radius-3xl bg-background-default-subtle p-3">+ <div className="space-y-5 rounded-[20px] bg-background-default-subtle p-3"><div className="text-text-accent"><div className="flex h-8 items-center gap-2 rounded-lg bg-state-base-active px-2"><div className="flex size-6 shrink-0 items-center justify-center rounded-md bg-components-icon-bg-blue-solid">diff --git a/web/app/components/base/ui/scroll-area/index.tsx b/web/app/components/base/ui/scroll-area/index.tsxindex 1533092b8a5..242f735054d 100644--- a/web/app/components/base/ui/scroll-area/index.tsx+++ b/web/app/components/base/ui/scroll-area/index.tsx@@ -1,8 +1,8 @@'use client'import { ScrollArea as BaseScrollArea } from '@base-ui/react/scroll-area'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'import './scroll-area.css'export const ScrollAreaRoot = BaseScrollArea.Root@@ -33,7 +33,7 @@ const scrollAreaScrollbarClassName = cn()const scrollAreaThumbClassName = cn(- 'shrink-0 radius-xs bg-state-base-handle transition-[background-color] motion-reduce:transition-none',+ 'shrink-0 rounded-sm bg-state-base-handle transition-[background-color] motion-reduce:transition-none','data-[orientation=vertical]:w-1','data-[orientation=horizontal]:h-1',)diff --git a/web/app/components/base/ui/select/index.tsx b/web/app/components/base/ui/select/index.tsxindex 964bd79e080..1d50c36a0ae 100644--- a/web/app/components/base/ui/select/index.tsx+++ b/web/app/components/base/ui/select/index.tsx@@ -3,10 +3,10 @@import type { VariantProps } from 'class-variance-authority'import type { Placement } from '@/app/components/base/ui/placement'import { Select as BaseSelect } from '@base-ui/react/select'+import { cn } from '@langgenius/dify-ui/cn'import { cva } from 'class-variance-authority'import * as React from 'react'import { parsePlacement } from '@/app/components/base/ui/placement'-import { cn } from '@/utils/classnames'export const Select = BaseSelect.Rootexport const SelectValue = BaseSelect.Value@@ -24,7 +24,7 @@ const selectTriggerVariants = cva(size: {small: 'h-6 gap-px rounded-md px-[5px] py-0 system-xs-regular',regular: 'h-8 gap-0.5 rounded-lg px-2 py-1 system-sm-regular',- large: 'h-9 gap-0.5 radius-lg px-2.5 py-1 system-md-regular',+ large: 'h-9 gap-0.5 rounded-[10px] px-2.5 py-1 system-md-regular',},variant: {default: '',diff --git a/web/app/components/base/ui/slider/index.tsx b/web/app/components/base/ui/slider/index.tsxindex 9470e7051d7..931c4e88be0 100644--- a/web/app/components/base/ui/slider/index.tsx+++ b/web/app/components/base/ui/slider/index.tsx@@ -1,8 +1,8 @@'use client'import { Slider as BaseSlider } from '@base-ui/react/slider'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'type SliderRootProps = BaseSlider.Root.Props<number>type SliderThumbProps = BaseSlider.Thumb.Propsdiff --git a/web/app/components/base/ui/toast/index.tsx b/web/app/components/base/ui/toast/index.tsxindex f07815f3a6a..1f9fea51730 100644--- a/web/app/components/base/ui/toast/index.tsx+++ b/web/app/components/base/ui/toast/index.tsx@@ -7,7 +7,7 @@ import type {} from '@base-ui/react/toast'import type { ReactNode } from 'react'import { Toast as BaseToast } from '@base-ui/react/toast'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'type ToastData = Record<string, never>type ToastToneStyle = {diff --git a/web/app/components/base/ui/tooltip/index.tsx b/web/app/components/base/ui/tooltip/index.tsxindex 08875068631..9053864eff6 100644--- a/web/app/components/base/ui/tooltip/index.tsx+++ b/web/app/components/base/ui/tooltip/index.tsx@@ -2,9 +2,9 @@import type { Placement } from '@/app/components/base/ui/placement'import { Tooltip as BaseTooltip } from '@base-ui/react/tooltip'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { parsePlacement } from '@/app/components/base/ui/placement'-import { cn } from '@/utils/classnames'type TooltipContentVariant = 'default' | 'plain'diff --git a/web/app/components/base/voice-input/index.tsx b/web/app/components/base/voice-input/index.tsxindex 9ae390a3ca7..91b746bcda9 100644--- a/web/app/components/base/voice-input/index.tsx+++ b/web/app/components/base/voice-input/index.tsx@@ -1,10 +1,10 @@+import { cn } from '@langgenius/dify-ui/cn'import { useRafInterval } from 'ahooks'import Recorder from 'js-audio-recorder'import { useCallback, useEffect, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'import { useParams, usePathname } from '@/next/navigation'import { AppSourceType, audioToText } from '@/service/share'-import { cn } from '@/utils/classnames'import s from './index.module.css'import { convertToMp3 } from './utils'@@ -161,10 +161,10 @@ const VoiceInput = ({return (<div className={cn(s.wrapper, 'absolute inset-0 rounded-xl')}>- <div className="absolute inset-[1.5px] flex items-center overflow-hidden rounded-[10.5px] bg-primary-25 py-[14px] pl-[14.5px] pr-[6.5px]">+ <div className="absolute inset-[1.5px] flex items-center overflow-hidden rounded-[10.5px] bg-primary-25 py-[14px] pr-[6.5px] pl-[14.5px]"><canvas id="voice-input-record" className="absolute bottom-0 left-0 h-4 w-full" />{- startConvert && <div className="i-ri-loader-2-line mr-2 h-4 w-4 animate-spin text-primary-700" data-testid="voice-input-loader" />+ startConvert && <div className="mr-2 i-ri-loader-2-line h-4 w-4 animate-spin text-primary-700" data-testid="voice-input-loader" />}<div className="grow">{diff --git a/web/app/components/billing/annotation-full/index.tsx b/web/app/components/billing/annotation-full/index.tsxindex a542c9bd815..10b186da3de 100644--- a/web/app/components/billing/annotation-full/index.tsx+++ b/web/app/components/billing/annotation-full/index.tsx@@ -1,9 +1,9 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import GridMask from '@/app/components/base/grid-mask'-import { cn } from '@/utils/classnames'import UpgradeBtn from '../upgrade-btn'import s from './style.module.css'import Usage from './usage'@@ -15,7 +15,7 @@ const AnnotationFull: FC = () => {<GridMask wrapperClassName="rounded-lg" canvasClassName="rounded-lg" gradientClassName="rounded-lg"><div className="mt-6 flex cursor-pointer flex-col rounded-lg border-2 border-solid border-transparent px-3.5 py-4 shadow-md transition-all duration-200 ease-in-out"><div className="flex items-center justify-between">- <div className={cn(s.textGradient, 'text-base font-semibold leading-[24px]')}>+ <div className={cn(s.textGradient, 'text-base leading-[24px] font-semibold')}><div>{t('annotatedResponse.fullTipLine1', { ns: 'billing' })}</div><div>{t('annotatedResponse.fullTipLine2', { ns: 'billing' })}</div></div>diff --git a/web/app/components/billing/annotation-full/modal.tsx b/web/app/components/billing/annotation-full/modal.tsxindex 70a76e612ac..4308cad160d 100644--- a/web/app/components/billing/annotation-full/modal.tsx+++ b/web/app/components/billing/annotation-full/modal.tsx@@ -1,9 +1,9 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import GridMask from '@/app/components/base/grid-mask'-import { cn } from '@/utils/classnames'import Modal from '../../base/modal'import UpgradeBtn from '../upgrade-btn'import s from './style.module.css'@@ -29,7 +29,7 @@ const AnnotationFullModal: FC<Props> = ({<GridMask wrapperClassName="rounded-lg" canvasClassName="rounded-lg" gradientClassName="rounded-lg"><div className="mt-6 flex cursor-pointer flex-col rounded-lg border-2 border-solid border-transparent px-7 py-6 shadow-md transition-all duration-200 ease-in-out"><div className="flex items-center justify-between">- <div className={cn(s.textGradient, 'text-[18px] font-semibold leading-[27px]')}>+ <div className={cn(s.textGradient, 'text-[18px] leading-[27px] font-semibold')}><div>{t('annotatedResponse.fullTipLine1', { ns: 'billing' })}</div><div>{t('annotatedResponse.fullTipLine2', { ns: 'billing' })}</div></div>diff --git a/web/app/components/billing/apps-full-in-dialog/index.tsx b/web/app/components/billing/apps-full-in-dialog/index.tsxindex 2c2d5b95fd8..e981bf74eb8 100644--- a/web/app/components/billing/apps-full-in-dialog/index.tsx+++ b/web/app/components/billing/apps-full-in-dialog/index.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'@@ -8,7 +9,6 @@ import { Plan } from '@/app/components/billing/type'import { mailToSupport } from '@/app/components/header/utils/util'import { useAppContext } from '@/context/app-context'import { useProviderContext } from '@/context/provider-context'-import { cn } from '@/utils/classnames'import UpgradeBtn from '../upgrade-btn'import s from './style.module.css'diff --git a/web/app/components/billing/header-billing-btn/index.tsx b/web/app/components/billing/header-billing-btn/index.tsxindex 862093c210a..4091dca4cbd 100644--- a/web/app/components/billing/header-billing-btn/index.tsx+++ b/web/app/components/billing/header-billing-btn/index.tsx@@ -1,8 +1,8 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useProviderContext } from '@/context/provider-context'-import { cn } from '@/utils/classnames'import { Plan } from '../type'import UpgradeBtn from '../upgrade-btn'diff --git a/web/app/components/billing/pricing/footer.tsx b/web/app/components/billing/pricing/footer.tsxindex 234189d1710..7abf73179f9 100644--- a/web/app/components/billing/pricing/footer.tsx+++ b/web/app/components/billing/pricing/footer.tsx@@ -1,8 +1,8 @@import type { Category } from './types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import Link from '@/next/link'-import { cn } from '@/utils/classnames'import { CategoryEnum } from './types'type FooterProps = {diff --git a/web/app/components/billing/pricing/header.tsx b/web/app/components/billing/pricing/header.tsxindex 46078ae95e6..8ece685a58a 100644--- a/web/app/components/billing/pricing/header.tsx+++ b/web/app/components/billing/pricing/header.tsx@@ -1,8 +1,8 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'import { DialogDescription, DialogTitle } from '@/app/components/base/ui/dialog'-import { cn } from '@/utils/classnames'import DifyLogo from '../../base/logo/dify-logo'import styles from './header.module.css'diff --git a/web/app/components/billing/pricing/plan-switcher/tab.tsx b/web/app/components/billing/pricing/plan-switcher/tab.tsxindex db1632e8df5..ca739362644 100644--- a/web/app/components/billing/pricing/plan-switcher/tab.tsx+++ b/web/app/components/billing/pricing/plan-switcher/tab.tsx@@ -1,6 +1,6 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback } from 'react'-import { cn } from '@/utils/classnames'type TabProps<T> = {Icon: React.ComponentType<{ isActive: boolean }>diff --git a/web/app/components/billing/pricing/plans/cloud-plan-item/button.tsx b/web/app/components/billing/pricing/plans/cloud-plan-item/button.tsxindex 9cdef8e333a..8115646748f 100644--- a/web/app/components/billing/pricing/plans/cloud-plan-item/button.tsx+++ b/web/app/components/billing/pricing/plans/cloud-plan-item/button.tsx@@ -1,7 +1,7 @@import type { BasicPlan } from '../../../type'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowRightLine } from '@remixicon/react'import * as React from 'react'-import { cn } from '@/utils/classnames'import { Plan } from '../../../type'const BUTTON_CLASSNAME = {@@ -37,7 +37,7 @@ const Button = ({type="button"disabled={isPlanDisabled}className={cn(- 'system-xl-semibold flex items-center gap-x-2 py-3 pl-5 pr-4',+ 'flex items-center gap-x-2 py-3 pr-4 pl-5 system-xl-semibold',BUTTON_CLASSNAME[plan].btnClassname,isPlanDisabled && BUTTON_CLASSNAME[plan].btnDisabledClassname,isPlanDisabled && 'cursor-not-allowed',diff --git a/web/app/components/billing/pricing/plans/cloud-plan-item/list/item/tooltip.tsx b/web/app/components/billing/pricing/plans/cloud-plan-item/list/item/tooltip.tsxindex 0b24936be00..fe6aa9c2cb1 100644--- a/web/app/components/billing/pricing/plans/cloud-plan-item/list/item/tooltip.tsx+++ b/web/app/components/billing/pricing/plans/cloud-plan-item/list/item/tooltip.tsx@@ -12,10 +12,10 @@ const Tooltip = ({return nullreturn (<div className="group relative z-10 size-[18px] overflow-visible">- <div className="system-xs-regular absolute bottom-0 right-0 -z-10 hidden w-[260px] bg-saas-dify-blue-static px-5 py-[18px] text-text-primary-on-surface group-hover:block">+ <div className="absolute right-0 bottom-0 -z-10 hidden w-[260px] bg-saas-dify-blue-static px-5 py-[18px] system-xs-regular text-text-primary-on-surface group-hover:block">{content}</div>- <div className="flex h-full w-full items-center justify-center radius-xs bg-state-base-hover transition-all duration-500 ease-in-out group-hover:rounded-none group-hover:bg-saas-dify-blue-static">+ <div className="flex h-full w-full items-center justify-center rounded-sm bg-state-base-hover transition-all duration-500 ease-in-out group-hover:rounded-none group-hover:bg-saas-dify-blue-static"><RiInfoI className="size-3.5 text-text-tertiary group-hover:text-text-primary-on-surface" data-testid="tooltip-icon" /></div></div>diff --git a/web/app/components/billing/pricing/plans/self-hosted-plan-item/button.tsx b/web/app/components/billing/pricing/plans/self-hosted-plan-item/button.tsxindex 9412b87a6a3..040e85e3543 100644--- a/web/app/components/billing/pricing/plans/self-hosted-plan-item/button.tsx+++ b/web/app/components/billing/pricing/plans/self-hosted-plan-item/button.tsx@@ -1,3 +1,4 @@+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowRightLine } from '@remixicon/react'import * as React from 'react'import { useMemo } from 'react'@@ -5,7 +6,6 @@ import { useTranslation } from 'react-i18next'import { AwsMarketplaceDark, AwsMarketplaceLight } from '@/app/components/base/icons/src/public/billing'import useTheme from '@/hooks/use-theme'import { Theme } from '@/types/app'-import { cn } from '@/utils/classnames'import { SelfHostedPlan } from '../../../type'const BUTTON_CLASSNAME = {@@ -35,7 +35,7 @@ const Button = ({<buttontype="button"className={cn(- 'system-xl-semibold flex items-center gap-x-2 py-3 pl-5 pr-4',+ 'flex items-center gap-x-2 py-3 pr-4 pl-5 system-xl-semibold',BUTTON_CLASSNAME[plan],isPremiumPlan && 'py-2',)}@@ -44,7 +44,7 @@ const Button = ({<div className="flex grow items-center gap-x-2"><span>{t(`${i18nPrefix}.btnText`, { ns: 'billing' })}</span>{isPremiumPlan && (- <span className="pb-px pt-[7px]">+ <span className="pt-[7px] pb-px"><AwsMarketplace className="h-6" /></span>)}diff --git a/web/app/components/billing/pricing/plans/self-hosted-plan-item/index.tsx b/web/app/components/billing/pricing/plans/self-hosted-plan-item/index.tsxindex e377dcb0d87..fa6e9a45c97 100644--- a/web/app/components/billing/pricing/plans/self-hosted-plan-item/index.tsx+++ b/web/app/components/billing/pricing/plans/self-hosted-plan-item/index.tsx@@ -1,12 +1,12 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'import { Azure, GoogleCloud } from '@/app/components/base/icons/src/public/billing'import { toast } from '@/app/components/base/ui/toast'import { useAppContext } from '@/context/app-context'-import { cn } from '@/utils/classnames'import { contactSalesUrl, getStartedWithCommunityUrl, getWithPremiumUrl } from '../../../config'import { SelfHostedPlan } from '../../../type'import { Community, Enterprise, EnterpriseNoise, Premium, PremiumNoise } from '../../assets'@@ -23,7 +23,7 @@ const STYLE_MAP = {icon: <Premium />,bg: 'bg-billing-plan-card-premium-bg opacity-10',noise: (- <div className="absolute -top-12 left-0 right-0 -z-10">+ <div className="absolute -top-12 right-0 left-0 -z-10"><PremiumNoise /></div>),@@ -32,7 +32,7 @@ const STYLE_MAP = {icon: <Enterprise />,bg: 'bg-billing-plan-card-enterprise-bg opacity-10',noise: (- <div className="absolute -top-12 left-0 right-0 -z-10">+ <div className="absolute -top-12 right-0 left-0 -z-10"><EnterpriseNoise /></div>),@@ -81,15 +81,15 @@ const SelfHostedPlanItem: FC<SelfHostedPlanItemProps> = ({<div className="flex flex-col gap-y-6 px-1 pt-10">{STYLE_MAP[plan].icon}<div className="flex min-h-[104px] flex-col gap-y-2">- <div className="text-[30px] font-medium leading-[1.2] text-text-primary">{t(`${i18nPrefix}.name`, { ns: 'billing' })}</div>- <div className="line-clamp-2 text-text-secondary system-md-regular">{t(`${i18nPrefix}.description`, { ns: 'billing' })}</div>+ <div className="text-[30px] leading-[1.2] font-medium text-text-primary">{t(`${i18nPrefix}.name`, { ns: 'billing' })}</div>+ <div className="line-clamp-2 system-md-regular text-text-secondary">{t(`${i18nPrefix}.description`, { ns: 'billing' })}</div></div></div>{/* Price */}- <div className="flex items-end gap-x-2 px-1 pb-8 pt-4">- <div className="shrink-0 text-text-primary title-4xl-semi-bold">{t(`${i18nPrefix}.price`, { ns: 'billing' })}</div>+ <div className="flex items-end gap-x-2 px-1 pt-4 pb-8">+ <div className="shrink-0 title-4xl-semi-bold text-text-primary">{t(`${i18nPrefix}.price`, { ns: 'billing' })}</div>{!isFreePlan && (- <span className="pb-0.5 text-text-tertiary system-md-regular">+ <span className="pb-0.5 system-md-regular text-text-tertiary">{t(`${i18nPrefix}.priceTip`, { ns: 'billing' })}</span>)}@@ -110,7 +110,7 @@ const SelfHostedPlanItem: FC<SelfHostedPlanItemProps> = ({<GoogleCloud /></div></div>- <span className="text-text-tertiary system-xs-regular">+ <span className="system-xs-regular text-text-tertiary">{t('plans.premium.comingSoon', { ns: 'billing' })}</span></div>diff --git a/web/app/components/billing/priority-label/index.tsx b/web/app/components/billing/priority-label/index.tsxindex 1d130c8b326..8940b38382a 100644--- a/web/app/components/billing/priority-label/index.tsx+++ b/web/app/components/billing/priority-label/index.tsx@@ -1,9 +1,9 @@+import { cn } from '@langgenius/dify-ui/cn'import { RiAedFill } from '@remixicon/react'import { useMemo } from 'react'import { useTranslation } from 'react-i18next'import Tooltip from '@/app/components/base/tooltip'import { useProviderContext } from '@/context/provider-context'-import { cn } from '@/utils/classnames'import {DocumentProcessingPriority,Plan,@@ -49,7 +49,7 @@ const PriorityLabel = ({ className }: PriorityLabelProps) => {><divclassName={cn(- 'system-2xs-medium ml-1 inline-flex h-[18px] shrink-0 items-center rounded-[5px] border border-text-accent-secondary bg-components-badge-bg-dimm px-[5px] text-text-accent-secondary',+ 'ml-1 inline-flex h-[18px] shrink-0 items-center rounded-[5px] border border-text-accent-secondary bg-components-badge-bg-dimm px-[5px] system-2xs-medium text-text-accent-secondary',className,)}>diff --git a/web/app/components/billing/progress-bar/index.tsx b/web/app/components/billing/progress-bar/index.tsxindex 180447b3d46..dfc2bf6fa90 100644--- a/web/app/components/billing/progress-bar/index.tsx+++ b/web/app/components/billing/progress-bar/index.tsx@@ -1,4 +1,4 @@-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'type ProgressBarProps = {percent: number@@ -15,20 +15,20 @@ const ProgressBar = ({}: ProgressBarProps) => {if (indeterminate) {return (- <div className="overflow-hidden radius-sm bg-components-progress-bar-bg">+ <div className="overflow-hidden rounded-md bg-components-progress-bar-bg"><divdata-testid="billing-progress-bar-indeterminate"- className={cn('h-1 radius-sm bg-progress-bar-indeterminate-stripe', indeterminateFull ? 'w-full' : 'w-[30px]')}+ className={cn('h-1 rounded-md bg-progress-bar-indeterminate-stripe', indeterminateFull ? 'w-full' : 'w-[30px]')}/></div>)}return (- <div className="overflow-hidden radius-sm bg-components-progress-bar-bg">+ <div className="overflow-hidden rounded-md bg-components-progress-bar-bg"><divdata-testid="billing-progress-bar"- className={cn('h-1 radius-sm', color)}+ className={cn('h-1 rounded-md', color)}style={{width: `${Math.min(percent, 100)}%`,}}diff --git a/web/app/components/billing/trigger-events-limit-modal/index.tsx b/web/app/components/billing/trigger-events-limit-modal/index.tsxindex e837a3859d2..5debb5cb570 100644--- a/web/app/components/billing/trigger-events-limit-modal/index.tsx+++ b/web/app/components/billing/trigger-events-limit-modal/index.tsx@@ -35,7 +35,7 @@ const TriggerEventsLimitModal: FC<Props> = ({description={t('triggerLimitModal.description', { ns: 'billing' })}extraInfo={(<UsageInfo- className="mt-4 w-full radius-xl bg-components-panel-on-panel-item-bg"+ className="mt-4 w-full rounded-xl bg-components-panel-on-panel-item-bg"Icon={TriggerAll}name={t('triggerLimitModal.usageTitle', { ns: 'billing' })}usage={usage}diff --git a/web/app/components/billing/usage-info/index.tsx b/web/app/components/billing/usage-info/index.tsxindex f820b85eab8..a88523c4a5c 100644--- a/web/app/components/billing/usage-info/index.tsx+++ b/web/app/components/billing/usage-info/index.tsx@@ -1,9 +1,9 @@'use client'import type { ComponentType, FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import Tooltip from '@/app/components/base/tooltip'-import { cn } from '@/utils/classnames'import { NUM_INFINITE } from '../config'import ProgressBar from '../progress-bar'@@ -71,14 +71,14 @@ const UsageInfo: FC<Props> = ({const renderRightInfo = () => {if (resetText) {return (- <div className="system-xs-regular ml-auto flex-1 text-right text-text-tertiary">+ <div className="ml-auto flex-1 text-right system-xs-regular text-text-tertiary">{resetText}</div>)}if (showUnit) {return (- <div className="system-xs-medium ml-auto text-text-tertiary">+ <div className="ml-auto system-xs-medium text-text-tertiary">{unit}</div>)@@ -193,7 +193,7 @@ const UsageInfo: FC<Props> = ({/>)}</div>- <div className="system-md-semibold flex items-center gap-1 text-text-primary">+ <div className="flex items-center gap-1 system-md-semibold text-text-primary">{renderUsageWithTooltip()}{renderRightInfo()}</div>diff --git a/web/app/components/billing/vector-space-full/index.tsx b/web/app/components/billing/vector-space-full/index.tsxindex 717684696a6..6c900d21133 100644--- a/web/app/components/billing/vector-space-full/index.tsx+++ b/web/app/components/billing/vector-space-full/index.tsx@@ -1,9 +1,9 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import GridMask from '@/app/components/base/grid-mask'-import { cn } from '@/utils/classnames'import UpgradeBtn from '../upgrade-btn'import VectorSpaceInfo from '../usage-info/vector-space-info'import s from './style.module.css'@@ -15,7 +15,7 @@ const VectorSpaceFull: FC = () => {<GridMask wrapperClassName="border border-gray-200 rounded-xl" canvasClassName="rounded-xl" gradientClassName="rounded-xl"><div className="px-6 py-5"><div className="flex items-center justify-between">- <div className={cn(s.textGradient, 'text-base font-semibold leading-[24px]')}>+ <div className={cn(s.textGradient, 'text-base leading-[24px] font-semibold')}><div>{t('vectorSpace.fullTip', { ns: 'billing' })}</div><div>{t('vectorSpace.fullSolution', { ns: 'billing' })}</div></div>diff --git a/web/app/components/custom/custom-web-app-brand/components/chat-preview-card.tsx b/web/app/components/custom/custom-web-app-brand/components/chat-preview-card.tsxindex 491e57563d9..c92ef14c9ff 100644--- a/web/app/components/custom/custom-web-app-brand/components/chat-preview-card.tsx+++ b/web/app/components/custom/custom-web-app-brand/components/chat-preview-card.tsx@@ -1,5 +1,5 @@+import { cn } from '@langgenius/dify-ui/cn'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import PoweredByBrand from './powered-by-brand'type ChatPreviewCardProps = {diff --git a/web/app/components/custom/custom-web-app-brand/components/workflow-preview-card.tsx b/web/app/components/custom/custom-web-app-brand/components/workflow-preview-card.tsxindex 3d2eccab606..0b9b61d94c3 100644--- a/web/app/components/custom/custom-web-app-brand/components/workflow-preview-card.tsx+++ b/web/app/components/custom/custom-web-app-brand/components/workflow-preview-card.tsx@@ -1,5 +1,5 @@+import { cn } from '@langgenius/dify-ui/cn'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import PoweredByBrand from './powered-by-brand'type WorkflowPreviewCardProps = {diff --git a/web/app/components/custom/custom-web-app-brand/index.tsx b/web/app/components/custom/custom-web-app-brand/index.tsxindex 0972066b009..fecc630422a 100644--- a/web/app/components/custom/custom-web-app-brand/index.tsx+++ b/web/app/components/custom/custom-web-app-brand/index.tsx@@ -1,8 +1,8 @@+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'import Divider from '@/app/components/base/divider'import Switch from '@/app/components/base/switch'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import ChatPreviewCard from './components/chat-preview-card'import WorkflowPreviewCard from './components/workflow-preview-card'import useWebAppBrand from './hooks/use-web-app-brand'diff --git a/web/app/components/datasets/common/credential-icon.tsx b/web/app/components/datasets/common/credential-icon.tsxindex a5eb6bfdb61..f993eca5853 100644--- a/web/app/components/datasets/common/credential-icon.tsx+++ b/web/app/components/datasets/common/credential-icon.tsx@@ -1,6 +1,6 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback, useMemo, useState } from 'react'-import { cn } from '@/utils/classnames'type CredentialIconProps = {avatarUrl?: string@@ -59,7 +59,7 @@ export const CredentialIcon: React.FC<CredentialIconProps> = ({)}style={{ width: `${size}px`, height: `${size}px` }}>- <span className="bg-linear-to-b from-components-avatar-shape-fill-stop-0 to-components-avatar-shape-fill-stop-100 bg-clip-text text-[13px] font-semibold leading-[1.2] text-transparent opacity-90">+ <span className="bg-linear-to-b from-components-avatar-shape-fill-stop-0 to-components-avatar-shape-fill-stop-100 bg-clip-text text-[13px] leading-[1.2] font-semibold text-transparent opacity-90">{firstLetter}</span></div>diff --git a/web/app/components/datasets/common/document-picker/document-list.tsx b/web/app/components/datasets/common/document-picker/document-list.tsxindex 574792ee145..d2d8d1966c6 100644--- a/web/app/components/datasets/common/document-picker/document-list.tsx+++ b/web/app/components/datasets/common/document-picker/document-list.tsx@@ -1,9 +1,9 @@'use client'import type { FC } from 'react'import type { DocumentItem } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback } from 'react'-import { cn } from '@/utils/classnames'import FileIcon from '../document-file-icon'type Props = {diff --git a/web/app/components/datasets/common/document-picker/index.tsx b/web/app/components/datasets/common/document-picker/index.tsxindex b564b4d2b17..d0e389255a8 100644--- a/web/app/components/datasets/common/document-picker/index.tsx+++ b/web/app/components/datasets/common/document-picker/index.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { DocumentItem, ParentMode, SimpleDocumentDetail } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine } from '@remixicon/react'import { useBoolean } from 'ahooks'import * as React from 'react'@@ -16,7 +17,6 @@ import {import SearchInput from '@/app/components/base/search-input'import { ChunkingMode } from '@/models/datasets'import { useDocumentList } from '@/service/knowledge/use-document'-import { cn } from '@/utils/classnames'import FileIcon from '../document-file-icon'import DocumentList from './document-list'@@ -83,9 +83,9 @@ const DocumentPicker: FC<Props> = ({placement="bottom-start"><PortalToFollowElemTrigger onClick={togglePopup}>- <div className={cn('ml-1 flex cursor-pointer select-none items-center rounded-lg px-2 py-0.5 hover:bg-state-base-hover', open && 'bg-state-base-hover')}>+ <div className={cn('ml-1 flex cursor-pointer items-center rounded-lg px-2 py-0.5 select-none hover:bg-state-base-hover', open && 'bg-state-base-hover')}><FileIcon name={name} extension={extension} size="xl" />- <div className="ml-1 mr-0.5 flex flex-col items-start">+ <div className="mr-0.5 ml-1 flex flex-col items-start"><div className="flex items-center space-x-0.5"><span className={cn('system-md-semibold text-text-primary')}>{' '}diff --git a/web/app/components/datasets/common/document-picker/preview-document-picker.tsx b/web/app/components/datasets/common/document-picker/preview-document-picker.tsxindex dea06939830..03ee13b5137 100644--- a/web/app/components/datasets/common/document-picker/preview-document-picker.tsx+++ b/web/app/components/datasets/common/document-picker/preview-document-picker.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { DocumentItem } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine } from '@remixicon/react'import { useBoolean } from 'ahooks'import * as React from 'react'@@ -12,7 +13,6 @@ import {PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'import FileIcon from '../document-file-icon'import DocumentList from './document-list'@@ -52,11 +52,11 @@ const PreviewDocumentPicker: FC<Props> = ({offset={4}><PortalToFollowElemTrigger onClick={togglePopup}>- <div className={cn('flex h-6 select-none items-center rounded-md px-1 hover:bg-state-base-hover', open && 'bg-state-base-hover', className)}>+ <div className={cn('flex h-6 items-center rounded-md px-1 select-none hover:bg-state-base-hover', open && 'bg-state-base-hover', className)}><FileIcon name={name} extension={extension} size="lg" /><div className="ml-1 flex flex-col items-start"><div className="flex items-center space-x-0.5">- <span className={cn('system-md-semibold max-w-[200px] truncate text-text-primary')}>+ <span className={cn('max-w-[200px] truncate system-md-semibold text-text-primary')}>{' '}{name || '--'}</span>@@ -67,7 +67,7 @@ const PreviewDocumentPicker: FC<Props> = ({</PortalToFollowElemTrigger><PortalToFollowElemContent className="z-11"><div className="w-[392px] rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur p-1 shadow-lg backdrop-blur-[5px]">- {files?.length > 1 && <div className="system-xs-medium-uppercase flex h-8 items-center pl-2 text-text-tertiary">{t('preprocessDocument', { ns: 'dataset', num: files.length })}</div>}+ {files?.length > 1 && <div className="flex h-8 items-center pl-2 system-xs-medium-uppercase text-text-tertiary">{t('preprocessDocument', { ns: 'dataset', num: files.length })}</div>}{files?.length > 0? (<DocumentListdiff --git a/web/app/components/datasets/common/document-status-with-action/status-with-action.tsx b/web/app/components/datasets/common/document-status-with-action/status-with-action.tsxindex 002a2323a7e..3c2536fa5e0 100644--- a/web/app/components/datasets/common/document-status-with-action/status-with-action.tsx+++ b/web/app/components/datasets/common/document-status-with-action/status-with-action.tsx@@ -1,9 +1,9 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiAlertFill, RiCheckboxCircleFill, RiErrorWarningFill, RiInformation2Fill } from '@remixicon/react'import * as React from 'react'import Divider from '@/app/components/base/divider'-import { cn } from '@/utils/classnames'type Status = 'success' | 'error' | 'warning' | 'info'type Props = {@@ -46,7 +46,7 @@ const StatusAction: FC<Props> = ({}) => {const { Icon, color } = getIcon(type)return (- <div className="relative flex h-[34px] items-center rounded-lg border border-components-panel-border bg-components-panel-bg-blur pl-2 pr-3 shadow-xs">+ <div className="relative flex h-[34px] items-center rounded-lg border border-components-panel-border bg-components-panel-bg-blur pr-3 pl-2 shadow-xs"><div className={`absolute inset-0 rounded-lg opacity-40 ${(type === 'success' && 'bg-[linear-gradient(92deg,rgba(23,178,106,0.25)_0%,rgba(255,255,255,0.00)_100%)]')|| (type === 'warning' && 'bg-[linear-gradient(92deg,rgba(247,144,9,0.25)_0%,rgba(255,255,255,0.00)_100%)]')diff --git a/web/app/components/datasets/common/image-list/index.tsx b/web/app/components/datasets/common/image-list/index.tsxindex 48a990f94db..b04dd5afbde 100644--- a/web/app/components/datasets/common/image-list/index.tsx+++ b/web/app/components/datasets/common/image-list/index.tsx@@ -1,8 +1,8 @@import type { ImageInfo } from '../image-previewer'import type { FileEntity } from '@/app/components/base/file-thumb'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback, useMemo, useState } from 'react'import FileThumb from '@/app/components/base/file-thumb'-import { cn } from '@/utils/classnames'import ImagePreviewer from '../image-previewer'import More from './more'diff --git a/web/app/components/datasets/common/image-previewer/index.tsx b/web/app/components/datasets/common/image-previewer/index.tsxindex 64af3f80dff..f899dcb33d0 100644--- a/web/app/components/datasets/common/image-previewer/index.tsx+++ b/web/app/components/datasets/common/image-previewer/index.tsx@@ -159,7 +159,7 @@ const ImagePreviewer = ({<Buttonvariant="tertiary"onClick={onClose}- className="size-9 radius-lg p-0"+ className="size-9 rounded-[10px] p-0"size="large"><RiCloseLine className="size-5" />diff --git a/web/app/components/datasets/common/image-uploader/image-uploader-in-chunk/image-input.tsx b/web/app/components/datasets/common/image-uploader/image-uploader-in-chunk/image-input.tsxindex 8779f1c74d8..ad4f1899d52 100644--- a/web/app/components/datasets/common/image-uploader/image-uploader-in-chunk/image-input.tsx+++ b/web/app/components/datasets/common/image-uploader/image-uploader-in-chunk/image-input.tsx@@ -1,7 +1,7 @@+import { cn } from '@langgenius/dify-ui/cn'import { RiUploadCloud2Line } from '@remixicon/react'import * as React from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import { ACCEPT_TYPES } from '../constants'import { useUpload } from '../hooks/use-upload'@@ -32,11 +32,11 @@ const ImageUploader = () => {<divref={dropRef}className={cn(- 'relative flex h-16 flex-col items-center justify-center gap-1 radius-lg border border-dashed border-components-dropzone-border bg-components-dropzone-bg px-4 py-3 text-text-tertiary',+ 'relative flex h-16 flex-col items-center justify-center gap-1 rounded-[10px] border border-dashed border-components-dropzone-border bg-components-dropzone-bg px-4 py-3 text-text-tertiary',dragging && 'border-components-dropzone-border-accent bg-components-dropzone-bg-accent',)}>- <div className="system-sm-medium flex items-center justify-center gap-x-2 text-text-secondary">+ <div className="flex items-center justify-center gap-x-2 system-sm-medium text-text-secondary"><RiUploadCloud2Line className="size-5 text-text-tertiary" /><div><span>{t('imageUploader.button', { ns: 'dataset' })}</span>diff --git a/web/app/components/datasets/common/image-uploader/image-uploader-in-chunk/index.tsx b/web/app/components/datasets/common/image-uploader/image-uploader-in-chunk/index.tsxindex ba2ede9f081..bfb4e654b22 100644--- a/web/app/components/datasets/common/image-uploader/image-uploader-in-chunk/index.tsx+++ b/web/app/components/datasets/common/image-uploader/image-uploader-in-chunk/index.tsx@@ -1,8 +1,8 @@import type { FileEntity } from '../types'import type { ImageInfo } from '@/app/components/datasets/common/image-previewer'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback, useState } from 'react'import ImagePreviewer from '@/app/components/datasets/common/image-previewer'-import { cn } from '@/utils/classnames'import { useUpload } from '../hooks/use-upload'import {FileContextProvider,diff --git a/web/app/components/datasets/common/image-uploader/image-uploader-in-retrieval-testing/index.tsx b/web/app/components/datasets/common/image-uploader/image-uploader-in-retrieval-testing/index.tsxindex 0c4da5a7e48..4cdff95fc4c 100644--- a/web/app/components/datasets/common/image-uploader/image-uploader-in-retrieval-testing/index.tsx+++ b/web/app/components/datasets/common/image-uploader/image-uploader-in-retrieval-testing/index.tsx@@ -1,12 +1,12 @@import type { FileEntity } from '../types'import type { ImageInfo } from '@/app/components/datasets/common/image-previewer'+import { cn } from '@langgenius/dify-ui/cn'import {useCallback,useState,} from 'react'import { useTranslation } from 'react-i18next'import ImagePreviewer from '@/app/components/datasets/common/image-previewer'-import { cn } from '@/utils/classnames'import { useUpload } from '../hooks/use-upload'import {FileContextProvider,diff --git a/web/app/components/datasets/common/retrieval-param-config/index.tsx b/web/app/components/datasets/common/retrieval-param-config/index.tsxindex acb77acfa60..c0cfe186a1f 100644--- a/web/app/components/datasets/common/retrieval-param-config/index.tsx+++ b/web/app/components/datasets/common/retrieval-param-config/index.tsx@@ -1,8 +1,9 @@'use client'import type { FC } from 'react'import type { RetrievalConfig } from '@/types/app'-import * as React from 'react'+import { cn } from '@langgenius/dify-ui/cn'+import * as React from 'react'import { useCallback, useMemo } from 'react'import { useTranslation } from 'react-i18next'import WeightedScore from '@/app/components/app/configuration/dataset-config/params-config/weighted-score'@@ -22,7 +23,6 @@ import {WeightedScoreEnum,} from '@/models/datasets'import { RETRIEVE_METHOD } from '@/types/app'-import { cn } from '@/utils/classnames'import ProgressIndicator from '../../create/assets/progress-indicator.svg'import Reranking from '../../create/assets/rerank.svg'@@ -126,7 +126,7 @@ const RetrievalParamConfig: FC<Props> = ({/>)}<div className="flex items-center">- <span className="mr-0.5 text-text-secondary system-sm-semibold">{t('modelProvider.rerankModel.key', { ns: 'common' })}</span>+ <span className="mr-0.5 system-sm-semibold text-text-secondary">{t('modelProvider.rerankModel.key', { ns: 'common' })}</span><TooltippopupContent={<div className="w-[200px]">{t('modelProvider.rerankModel.tip', { ns: 'common' })}</div>@@ -152,11 +152,11 @@ const RetrievalParamConfig: FC<Props> = ({/>{showMultiModalTip && (<div className="mt-2 flex h-10 items-center gap-x-0.5 overflow-hidden rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur p-2 shadow-xs backdrop-blur-[5px]">- <div className="absolute bottom-0 left-0 right-0 top-0 bg-dataset-warning-message-bg opacity-40" />+ <div className="absolute top-0 right-0 bottom-0 left-0 bg-dataset-warning-message-bg opacity-40" /><div className="p-1"><AlertTriangle className="size-4 text-text-warning-secondary" /></div>- <span className="text-text-primary system-xs-medium">+ <span className="system-xs-medium text-text-primary">{t('form.retrievalSetting.multiModalTip', { ns: 'datasetSettings' })}</span></div>@@ -276,11 +276,11 @@ const RetrievalParamConfig: FC<Props> = ({/>{showMultiModalTip && (<div className="mt-2 flex h-10 items-center gap-x-0.5 overflow-hidden rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur p-2 shadow-xs backdrop-blur-[5px]">- <div className="absolute bottom-0 left-0 right-0 top-0 bg-dataset-warning-message-bg opacity-40" />+ <div className="absolute top-0 right-0 bottom-0 left-0 bg-dataset-warning-message-bg opacity-40" /><div className="p-1"><AlertTriangle className="size-4 text-text-warning-secondary" /></div>- <span className="text-text-primary system-xs-medium">+ <span className="system-xs-medium text-text-primary">{t('form.retrievalSetting.multiModalTip', { ns: 'datasetSettings' })}</span></div>diff --git a/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/__tests__/index.spec.tsx b/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/__tests__/index.spec.tsxindex 3a0d5f6d63e..8ad70696feb 100644--- a/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/__tests__/index.spec.tsx+++ b/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/__tests__/index.spec.tsx@@ -1512,7 +1512,7 @@ describe('Uploader', () => {})// The dragRef div appears when dragging is true- const dragRefDiv = document.querySelector('[class*="absolute left-0 top-0"]')+ const dragRefDiv = document.querySelector('[class*="absolute top-0 left-0"]')expect(dragRefDiv).toBeInTheDocument()// When dragLeave happens on the dragRef element, setDragging(false) is called@@ -1688,7 +1688,7 @@ describe('Uploader', () => {})// Now the dragRef div should exist- const dragRefDiv = document.querySelector('[class*="absolute left-0 top-0"]')+ const dragRefDiv = document.querySelector('[class*="absolute top-0 left-0"]')// When dragEnter happens on dragRef itself, setDragging should NOT be calledif (dragRefDiv) {diff --git a/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/tab/item.tsx b/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/tab/item.tsxindex 87af4714bde..0dd0454eb29 100644--- a/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/tab/item.tsx+++ b/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/tab/item.tsx@@ -1,5 +1,5 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'type ItemProps = {isActive: boolean@@ -15,7 +15,7 @@ const Item = ({return (<divclassName={cn(- 'system-md-semibold relative flex h-full cursor-pointer items-center text-text-tertiary',+ 'relative flex h-full cursor-pointer items-center system-md-semibold text-text-tertiary',isActive && 'text-text-primary',)}onClick={onClick}diff --git a/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/uploader.tsx b/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/uploader.tsxindex 7089c8293a5..69b8d07ce8f 100644--- a/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/uploader.tsx+++ b/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/uploader.tsx@@ -1,12 +1,12 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiDeleteBinLine, RiNodeTree, RiUploadCloud2Line } from '@remixicon/react'import * as React from 'react'import { useEffect, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'import ActionButton from '@/app/components/base/action-button'import { toast } from '@/app/components/base/ui/toast'-import { cn } from '@/utils/classnames'import { formatFileSize } from '@/utils/format'type Props = {@@ -95,7 +95,7 @@ const Uploader: FC<Props> = ({ file, updateFile, className }) => {</span></div></div>- {dragging && <div ref={dragRef} className="absolute left-0 top-0 h-full w-full" />}+ {dragging && <div ref={dragRef} className="absolute top-0 left-0 h-full w-full" />}</div>)}{file && (@@ -104,10 +104,10 @@ const Uploader: FC<Props> = ({ file, updateFile, className }) => {<RiNodeTree className="h-6 w-6 shrink-0 text-text-secondary" /></div><div className="flex grow flex-col items-start gap-0.5 py-1 pr-2">- <span className="font-inter max-w-[calc(100%_-_30px)] overflow-hidden text-ellipsis whitespace-nowrap text-[12px] font-medium leading-4 text-text-secondary">+ <span className="font-inter max-w-[calc(100%_-_30px)] overflow-hidden text-[12px] leading-4 font-medium text-ellipsis whitespace-nowrap text-text-secondary">{file.name}</span>- <div className="font-inter flex h-3 items-center gap-1 self-stretch text-[10px] font-medium uppercase leading-3 text-text-tertiary">+ <div className="font-inter flex h-3 items-center gap-1 self-stretch text-[10px] leading-3 font-medium text-text-tertiary uppercase"><span>PIPELINE</span><span className="text-text-quaternary">·</span><span>{formatFileSize(file.size)}</span>diff --git a/web/app/components/datasets/create-from-pipeline/list/create-card.tsx b/web/app/components/datasets/create-from-pipeline/list/create-card.tsxindex 78b1949c5e3..3d75a31a3b4 100644--- a/web/app/components/datasets/create-from-pipeline/list/create-card.tsx+++ b/web/app/components/datasets/create-from-pipeline/list/create-card.tsx@@ -40,14 +40,14 @@ const CreateCard = () => {onClick={handleCreate}><div className="flex items-center gap-x-3 p-4 pb-2">- <div className="flex size-10 shrink-0 items-center justify-center radius-lg border border-dashed border-divider-regular bg-background-section group-hover:border-state-accent-hover-alt group-hover:bg-state-accent-hover">+ <div className="flex size-10 shrink-0 items-center justify-center rounded-[10px] border border-dashed border-divider-regular bg-background-section group-hover:border-state-accent-hover-alt group-hover:bg-state-accent-hover"><RiAddCircleLine className="size-5 text-text-quaternary group-hover:text-text-accent" /></div>- <div className="system-md-semibold truncate text-text-primary">+ <div className="truncate system-md-semibold text-text-primary">{t('creation.createFromScratch.title', { ns: 'datasetPipeline' })}</div></div>- <p className="system-xs-regular line-clamp-3 px-4 py-1 text-text-tertiary">+ <p className="line-clamp-3 px-4 py-1 system-xs-regular text-text-tertiary">{t('creation.createFromScratch.description', { ns: 'datasetPipeline' })}</p></div>diff --git a/web/app/components/datasets/create-from-pipeline/list/template-card/details/chunk-structure-card.tsx b/web/app/components/datasets/create-from-pipeline/list/template-card/details/chunk-structure-card.tsxindex 4a6efa29a2e..217313c7c49 100644--- a/web/app/components/datasets/create-from-pipeline/list/template-card/details/chunk-structure-card.tsx+++ b/web/app/components/datasets/create-from-pipeline/list/template-card/details/chunk-structure-card.tsx@@ -1,6 +1,6 @@import type { Option } from './types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'import { EffectColor } from './types'const HEADER_EFFECT_MAP: Record<EffectColor, string> = {@@ -35,7 +35,7 @@ const ChunkStructureCard = ({)}><div className={cn(- 'absolute -left-1 -top-1 size-14 rounded-full blur-[80px]',+ 'absolute -top-1 -left-1 size-14 rounded-full blur-[80px]',`${HEADER_EFFECT_MAP[effectColor]}`,)}/>diff --git a/web/app/components/datasets/create/embedding-process/indexing-progress-item.tsx b/web/app/components/datasets/create/embedding-process/indexing-progress-item.tsxindex f3bac20bbef..ef54bddfc59 100644--- a/web/app/components/datasets/create/embedding-process/indexing-progress-item.tsx+++ b/web/app/components/datasets/create/embedding-process/indexing-progress-item.tsx@@ -1,5 +1,6 @@import type { FC } from 'react'import type { IndexingStatusResponse } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import {RiCheckboxCircleFill,RiErrorWarningFill,@@ -8,7 +9,6 @@ import NotionIcon from '@/app/components/base/notion-icon'import Tooltip from '@/app/components/base/tooltip'import PriorityLabel from '@/app/components/billing/priority-label'import { DataSourceType } from '@/models/datasets'-import { cn } from '@/utils/classnames'import DocumentFileIcon from '../../common/document-file-icon'import { getFileType, getSourcePercent, isSourceEmbedding } from './utils'@@ -92,18 +92,18 @@ const IndexingProgressItem: FC<IndexingProgressItemProps> = ({>{isEmbedding && (<div- className="absolute left-0 top-0 h-full min-w-0.5 border-r-2 border-r-components-progress-bar-progress-highlight bg-components-progress-bar-progress"+ className="absolute top-0 left-0 h-full min-w-0.5 border-r-2 border-r-components-progress-bar-progress-highlight bg-components-progress-bar-progress"style={{ width: `${percent}%` }}/>)}- <div className="z-1 flex h-full items-center gap-1 pl-[6px] pr-2">+ <div className="z-1 flex h-full items-center gap-1 pr-2 pl-[6px]"><SourceTypeIconsourceType={sourceType}name={name}notionIcon={notionIcon}/><div className="flex w-0 grow items-center gap-1" title={name}>- <div className="system-xs-medium truncate text-text-secondary">+ <div className="truncate system-xs-medium text-text-secondary">{name}</div>{enableBilling && <PriorityLabel className="ml-0" />}diff --git a/web/app/components/datasets/create/empty-dataset-creation-modal/index.tsx b/web/app/components/datasets/create/empty-dataset-creation-modal/index.tsxindex 2f42b8acdfe..581082ca75c 100644--- a/web/app/components/datasets/create/empty-dataset-creation-modal/index.tsx+++ b/web/app/components/datasets/create/empty-dataset-creation-modal/index.tsx@@ -1,4 +1,5 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useState } from 'react'import { useTranslation } from 'react-i18next'@@ -10,7 +11,6 @@ import { toast } from '@/app/components/base/ui/toast'import { useRouter } from '@/next/navigation'import { createEmptyDataset } from '@/service/datasets'import { useInvalidDatasetList } from '@/service/knowledge/use-dataset'-import { cn } from '@/utils/classnames'import s from './index.module.css'type IProps = {diff --git a/web/app/components/datasets/create/file-preview/index.tsx b/web/app/components/datasets/create/file-preview/index.tsxindex 77af5edeed0..2b4041eaf20 100644--- a/web/app/components/datasets/create/file-preview/index.tsx+++ b/web/app/components/datasets/create/file-preview/index.tsx@@ -1,12 +1,12 @@'use client'import type { CustomFile as File } from '@/models/datasets'import { XMarkIcon } from '@heroicons/react/20/solid'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useEffect, useState } from 'react'import { useTranslation } from 'react-i18next'import Loading from '@/app/components/base/loading'import { fetchFilePreview } from '@/service/common'-import { cn } from '@/utils/classnames'import s from './index.module.css'type IProps = {diff --git a/web/app/components/datasets/create/file-uploader/components/upload-dropzone.tsx b/web/app/components/datasets/create/file-uploader/components/upload-dropzone.tsxindex 9fa577dacec..2a2a40d5b8a 100644--- a/web/app/components/datasets/create/file-uploader/components/upload-dropzone.tsx+++ b/web/app/components/datasets/create/file-uploader/components/upload-dropzone.tsx@@ -1,9 +1,9 @@'use client'import type { RefObject } from 'react'import type { FileUploadConfig } from '../hooks/use-file-upload'+import { cn } from '@langgenius/dify-ui/cn'import { RiUploadCloud2Line } from '@remixicon/react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'export type UploadDropzoneProps = {dropRef: RefObject<HTMLDivElement | null>@@ -75,7 +75,7 @@ const UploadDropzone = ({totalCount: fileUploadConfig.file_upload_limit,})}</div>- {dragging && <div ref={dragRef} className="absolute left-0 top-0 h-full w-full" />}+ {dragging && <div ref={dragRef} className="absolute top-0 left-0 h-full w-full" />}</div></>)diff --git a/web/app/components/datasets/create/file-uploader/index.tsx b/web/app/components/datasets/create/file-uploader/index.tsxindex b649554a121..0bf9c3c052a 100644--- a/web/app/components/datasets/create/file-uploader/index.tsx+++ b/web/app/components/datasets/create/file-uploader/index.tsx@@ -1,7 +1,7 @@'use client'import type { CustomFile as File, FileItem } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import FileListItem from './components/file-list-item'import UploadDropzone from './components/upload-dropzone'import { useFileUpload } from './hooks/use-file-upload'@@ -51,7 +51,7 @@ const FileUploader = ({return (<div className="mb-5 w-[640px]">- <div className={cn('mb-1 text-sm font-semibold leading-6 text-text-secondary', titleClassName)}>+ <div className={cn('mb-1 text-sm leading-6 font-semibold text-text-secondary', titleClassName)}>{t('stepOne.uploader.title', { ns: 'datasetCreation' })}</div>diff --git a/web/app/components/datasets/create/notion-page-preview/index.tsx b/web/app/components/datasets/create/notion-page-preview/index.tsxindex fb6cd09a557..116090413a5 100644--- a/web/app/components/datasets/create/notion-page-preview/index.tsx+++ b/web/app/components/datasets/create/notion-page-preview/index.tsx@@ -1,13 +1,13 @@'use client'import type { NotionPage } from '@/models/common'import { XMarkIcon } from '@heroicons/react/20/solid'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useEffect, useState } from 'react'import { useTranslation } from 'react-i18next'import Loading from '@/app/components/base/loading'import NotionIcon from '@/app/components/base/notion-icon'import { fetchNotionPagePreview } from '@/service/datasets'-import { cn } from '@/utils/classnames'import s from './index.module.css'type IProps = {diff --git a/web/app/components/datasets/create/step-one/components/data-source-type-selector.tsx b/web/app/components/datasets/create/step-one/components/data-source-type-selector.tsxindex 6bdc2ace566..27763af352b 100644--- a/web/app/components/datasets/create/step-one/components/data-source-type-selector.tsx+++ b/web/app/components/datasets/create/step-one/components/data-source-type-selector.tsx@@ -1,10 +1,10 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback, useMemo } from 'react'import { useTranslation } from 'react-i18next'import { ENABLE_WEBSITE_FIRECRAWL, ENABLE_WEBSITE_JINAREADER, ENABLE_WEBSITE_WATERCRAWL } from '@/config'import { DataSourceType } from '@/models/datasets'-import { cn } from '@/utils/classnames'import s from '../index.module.css'type DataSourceTypeSelectorProps = {diff --git a/web/app/components/datasets/create/step-one/index.tsx b/web/app/components/datasets/create/step-one/index.tsxindex dcce0725880..821e190b2da 100644--- a/web/app/components/datasets/create/step-one/index.tsx+++ b/web/app/components/datasets/create/step-one/index.tsx@@ -3,6 +3,7 @@import type { DataSourceAuth } from '@/app/components/header/account-setting/data-source-page-new/types'import type { DataSourceProvider, NotionPage } from '@/models/common'import type { CrawlOptions, CrawlResultItem, FileItem } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { RiFolder6Line } from '@remixicon/react'import { useBoolean } from 'ahooks'import { useCallback, useMemo } from 'react'@@ -14,7 +15,6 @@ import VectorSpaceFull from '@/app/components/billing/vector-space-full'import { useDatasetDetailContextWithSelector } from '@/context/dataset-detail'import { useProviderContext } from '@/context/provider-context'import { DataSourceType } from '@/models/datasets'-import { cn } from '@/utils/classnames'import EmptyDatasetCreationModal from '../empty-dataset-creation-modal'import FileUploader from '../file-uploader'import Website from '../website'diff --git a/web/app/components/datasets/create/step-three/index.tsx b/web/app/components/datasets/create/step-three/index.tsxindex ac0522b6a08..6d9a306bf6c 100644--- a/web/app/components/datasets/create/step-three/index.tsx+++ b/web/app/components/datasets/create/step-three/index.tsx@@ -35,7 +35,7 @@ const StepThree = ({ datasetId, datasetName, indexingType, creationCache, retriereturn (<div className="flex h-full max-h-full w-full justify-center overflow-y-auto"><div className="h-full max-w-[960px] shrink-0 grow overflow-y-auto px-14 sm:px-16">- <div className="mx-auto max-w-[640px] pb-8 pt-10">+ <div className="mx-auto max-w-[640px] pt-10 pb-8">{!datasetId && (<><div className="flex flex-col gap-y-1 pb-3">@@ -52,10 +52,10 @@ const StepThree = ({ datasetId, datasetName, indexingType, creationCache, retrieclassName="shrink-0"/><div className="flex grow flex-col gap-y-1">- <div className="system-sm-semibold flex h-6 items-center text-text-secondary">+ <div className="flex h-6 items-center system-sm-semibold text-text-secondary">{t('stepThree.label', { ns: 'datasetCreation' })}</div>- <div className="system-sm-regular w-full truncate rounded-lg bg-components-input-bg-normal p-2 text-components-input-text-filled">+ <div className="w-full truncate rounded-lg bg-components-input-bg-normal p-2 system-sm-regular text-components-input-text-filled"><span className="px-1">{datasetName || creationCache?.dataset?.name}</span></div></div>@@ -79,9 +79,9 @@ const StepThree = ({ datasetId, datasetName, indexingType, creationCache, retrie</div></div>{!isMobile && (- <div className="shrink-0 pr-8 pt-[88px] text-xs">+ <div className="shrink-0 pt-[88px] pr-8 text-xs"><div className="flex w-[328px] flex-col gap-3 rounded-xl bg-background-section p-6 text-text-tertiary">- <div className="flex size-10 items-center justify-center radius-lg bg-components-card-bg shadow-lg">+ <div className="flex size-10 items-center justify-center rounded-[10px] bg-components-card-bg shadow-lg"><RiBookOpenLine className="size-5 text-text-accent" /></div><div className="text-base font-semibold text-text-secondary">{t('stepThree.sideTipTitle', { ns: 'datasetCreation' })}</div>diff --git a/web/app/components/datasets/create/step-two/components/indexing-mode-section.tsx b/web/app/components/datasets/create/step-two/components/indexing-mode-section.tsxindex 7048b0d4602..156cb922b33 100644--- a/web/app/components/datasets/create/step-two/components/indexing-mode-section.tsx+++ b/web/app/components/datasets/create/step-two/components/indexing-mode-section.tsx@@ -3,6 +3,7 @@import type { FC } from 'react'import type { DefaultModel, Model } from '@/app/components/header/account-setting/model-provider-page/declarations'import type { RetrievalConfig } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'import Badge from '@/app/components/base/badge'import CustomDialog from '@/app/components/base/dialog'@@ -16,7 +17,6 @@ import ModelSelector from '@/app/components/header/account-setting/model-provideimport { useDocLink } from '@/context/i18n'import { ChunkingMode } from '@/models/datasets'import Link from '@/next/link'-import { cn } from '@/utils/classnames'import { indexMethodIcon } from '../../icons'import { IndexingType } from '../hooks'import s from '../index.module.css'diff --git a/web/app/components/datasets/create/step-two/components/option-card.tsx b/web/app/components/datasets/create/step-two/components/option-card.tsxindex 320c7be44f4..5334feaac80 100644--- a/web/app/components/datasets/create/step-two/components/option-card.tsx+++ b/web/app/components/datasets/create/step-two/components/option-card.tsx@@ -1,5 +1,5 @@import type { ComponentProps, FC, ReactNode } from 'react'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'const TriangleArrow: FC<ComponentProps<'svg'>> = props => (<svg xmlns="http://www.w3.org/2000/svg" width="24" height="11" viewBox="0 0 24 11" fill="none" {...props}>@@ -22,7 +22,7 @@ export const OptionCardHeader: FC<OptionCardHeaderProps> = (props) => {return (<div className={cn('relative flex h-full overflow-hidden rounded-t-xl', isActive && activeClassName, !disabled && 'cursor-pointer')}><div className="relative flex size-14 items-center justify-center overflow-hidden">- {isActive && effectImg && <img src={effectImg} className="absolute left-0 top-0 h-full w-full" alt="" width={56} height={56} />}+ {isActive && effectImg && <img src={effectImg} className="absolute top-0 left-0 h-full w-full" alt="" width={56} height={56} />}<div className="p-1"><div className="flex size-8 justify-center rounded-lg border border-components-panel-border-subtle bg-background-default-dodge p-1.5 shadow-md">{icon}@@ -33,8 +33,8 @@ export const OptionCardHeader: FC<OptionCardHeaderProps> = (props) => {className={cn('absolute -bottom-1.5 left-4 text-transparent', isActive && 'text-components-panel-bg')}/><div className="flex-1 space-y-0.5 py-3 pr-4">- <div className="text-text-secondary system-md-semibold">{title}</div>- <div className="text-text-tertiary system-xs-regular">{description}</div>+ <div className="system-md-semibold text-text-secondary">{title}</div>+ <div className="system-xs-regular text-text-tertiary">{description}</div></div></div>)diff --git a/web/app/components/datasets/create/step-two/components/preview-panel.tsx b/web/app/components/datasets/create/step-two/components/preview-panel.tsxindex 5cb33f2d6da..254a28619c5 100644--- a/web/app/components/datasets/create/step-two/components/preview-panel.tsx+++ b/web/app/components/datasets/create/step-two/components/preview-panel.tsx@@ -3,6 +3,7 @@import type { FC } from 'react'import type { ParentChildConfig } from '../hooks'import type { DataSourceType, FileIndexingEstimateResponse } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { RiSearchEyeLine } from '@remixicon/react'import { noop } from 'es-toolkit/function'import { useTranslation } from 'react-i18next'@@ -11,7 +12,6 @@ import FloatRightContainer from '@/app/components/base/float-right-container'import { SkeletonContainer, SkeletonPoint, SkeletonRectangle, SkeletonRow } from '@/app/components/base/skeleton'import { FULL_DOC_PREVIEW_LENGTH } from '@/config'import { ChunkingMode } from '@/models/datasets'-import { cn } from '@/utils/classnames'import { ChunkContainer, QAPreview } from '../../../chunk'import PreviewDocumentPicker from '../../../common/document-picker/preview-document-picker'import SummaryLabel from '../../../documents/detail/completed/common/summary-label'diff --git a/web/app/components/datasets/create/step-two/index.tsx b/web/app/components/datasets/create/step-two/index.tsxindex 44eceaaad33..16e14e35f64 100644--- a/web/app/components/datasets/create/step-two/index.tsx+++ b/web/app/components/datasets/create/step-two/index.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { StepTwoProps } from './types'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback, useEffect, useState } from 'react'import { useTranslation } from 'react-i18next'import Divider from '@/app/components/base/divider'@@ -13,7 +14,6 @@ import { LanguagesSupported } from '@/i18n-config/language'import { DataSourceProvider } from '@/models/common'import { ChunkingMode, ProcessMode } from '@/models/datasets'import { useFetchDefaultProcessRule } from '@/service/knowledge/use-create-dataset'-import { cn } from '@/utils/classnames'import { GeneralChunkingOptions, IndexingModeSection, ParentChildOptions, PreviewPanel, StepTwoFooter } from './components'import { IndexingType, MAXIMUM_CHUNK_TOKEN_LENGTH, useDocumentCreation, useIndexingConfig, useIndexingEstimate, usePreviewState, useSegmentationState } from './hooks'@@ -197,7 +197,7 @@ const StepTwo: FC<StepTwoProps> = ({return (<div className="flex h-full w-full"><div className={cn('relative h-full w-1/2 overflow-y-auto py-6', isMobile ? 'px-4' : 'px-12')}>- <div className="system-md-semibold mb-1 text-text-secondary">{t('stepTwo.segmentation', { ns: 'datasetCreation' })}</div>+ <div className="mb-1 system-md-semibold text-text-secondary">{t('stepTwo.segmentation', { ns: 'datasetCreation' })}</div>{showGeneralOption && (<GeneralChunkingOptionssegmentIdentifier={segmentation.segmentIdentifier}diff --git a/web/app/components/datasets/create/step-two/language-select/index.tsx b/web/app/components/datasets/create/step-two/language-select/index.tsxindex 321751cd513..4a7683576fa 100644--- a/web/app/components/datasets/create/step-two/language-select/index.tsx+++ b/web/app/components/datasets/create/step-two/language-select/index.tsx@@ -1,10 +1,10 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine, RiCheckLine } from '@remixicon/react'import * as React from 'react'import Popover from '@/app/components/base/popover'import { languages } from '@/i18n-config/language'-import { cn } from '@/utils/classnames'export type ILanguageSelectProps = {currentLanguage: string@@ -40,7 +40,7 @@ const LanguageSelect: FC<ILanguageSelectProps> = ({btnElement={(<div className={cn('inline-flex items-center gap-x-px', disabled && 'cursor-not-allowed')}><span className={cn(- 'system-xs-semibold px-[3px] text-components-button-tertiary-text',+ 'px-[3px] system-xs-semibold text-components-button-tertiary-text',disabled ? 'text-components-button-tertiary-text-disabled' : '',)}>diff --git a/web/app/components/datasets/create/stepper/step.tsx b/web/app/components/datasets/create/stepper/step.tsxindex a2a824f7377..a29790afecf 100644--- a/web/app/components/datasets/create/stepper/step.tsx+++ b/web/app/components/datasets/create/stepper/step.tsx@@ -1,5 +1,5 @@import type { FC } from 'react'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'export type Step = {name: string@@ -23,7 +23,7 @@ export const StepperStep: FC<StepperStepProps> = (props) => {? 'w-5 border border-text-quaternary': 'w-5 border border-divider-deep')}>- <div className={cn('system-2xs-semibold-uppercase text-center', isActive+ <div className={cn('text-center system-2xs-semibold-uppercase', isActive? 'text-text-primary-on-surface': !isDisabled? 'text-text-tertiary'diff --git a/web/app/components/datasets/create/stop-embedding-modal/index.tsx b/web/app/components/datasets/create/stop-embedding-modal/index.tsxindex 6de5e5413f8..ac9be31199a 100644--- a/web/app/components/datasets/create/stop-embedding-modal/index.tsx+++ b/web/app/components/datasets/create/stop-embedding-modal/index.tsx@@ -1,9 +1,9 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import Modal from '@/app/components/base/modal'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import s from './index.module.css'type IProps = {diff --git a/web/app/components/datasets/create/top-bar/index.tsx b/web/app/components/datasets/create/top-bar/index.tsxindex ba4c49e3007..43b07e5fb17 100644--- a/web/app/components/datasets/create/top-bar/index.tsx+++ b/web/app/components/datasets/create/top-bar/index.tsx@@ -1,10 +1,10 @@import type { FC } from 'react'import type { StepperProps } from '../stepper'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowLeftLine } from '@remixicon/react'import { useMemo } from 'react'import { useTranslation } from 'react-i18next'import Link from '@/next/link'-import { cn } from '@/utils/classnames'import { Stepper } from '../stepper'export type TopBarProps = Pick<StepperProps, 'activeIndex'> & {@@ -28,7 +28,7 @@ export const TopBar: FC<TopBarProps> = (props) => {return (<div className={cn('relative flex h-[52px] shrink-0 items-center justify-between border-b border-b-divider-subtle', className)}>- <Link href={fallbackRoute} replace className="inline-flex h-12 items-center justify-start gap-1 py-2 pl-2 pr-6">+ <Link href={fallbackRoute} replace className="inline-flex h-12 items-center justify-start gap-1 py-2 pr-6 pl-2"><div className="p-2"><RiArrowLeftLine className="size-4 text-text-primary" /></div>@@ -36,7 +36,7 @@ export const TopBar: FC<TopBarProps> = (props) => {{t('steps.header.fallbackRoute', { ns: 'datasetCreation' })}</p></Link>- <div className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2">+ <div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"><Steppersteps={Array.from({ length: 3 }, (_, i) => ({name: t(STEP_T_MAP[(i + 1) as keyof typeof STEP_T_MAP], { ns: 'datasetCreation' }),diff --git a/web/app/components/datasets/create/website/base/checkbox-with-label.tsx b/web/app/components/datasets/create/website/base/checkbox-with-label.tsxindex 182645d5bcc..686976826d4 100644--- a/web/app/components/datasets/create/website/base/checkbox-with-label.tsx+++ b/web/app/components/datasets/create/website/base/checkbox-with-label.tsx@@ -1,9 +1,9 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import Checkbox from '@/app/components/base/checkbox'import Tooltip from '@/app/components/base/tooltip'-import { cn } from '@/utils/classnames'type Props = {className?: stringdiff --git a/web/app/components/datasets/create/website/base/crawled-result-item.tsx b/web/app/components/datasets/create/website/base/crawled-result-item.tsxindex 7c635de3806..273fe72abec 100644--- a/web/app/components/datasets/create/website/base/crawled-result-item.tsx+++ b/web/app/components/datasets/create/website/base/crawled-result-item.tsx@@ -1,12 +1,12 @@'use client'import type { FC } from 'react'import type { CrawlResultItem as CrawlResultItemType } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'import Checkbox from '@/app/components/base/checkbox'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'type Props = {payload: CrawlResultItemTypediff --git a/web/app/components/datasets/create/website/base/crawled-result.tsx b/web/app/components/datasets/create/website/base/crawled-result.tsxindex 058727e0b12..0f72cc51729 100644--- a/web/app/components/datasets/create/website/base/crawled-result.tsx+++ b/web/app/components/datasets/create/website/base/crawled-result.tsx@@ -1,10 +1,10 @@'use client'import type { FC } from 'react'import type { CrawlResultItem } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import CheckboxWithLabel from './checkbox-with-label'import CrawledResultItem from './crawled-result-item'diff --git a/web/app/components/datasets/create/website/base/error-message.tsx b/web/app/components/datasets/create/website/base/error-message.tsxindex 97b18d00c16..6b530192fbc 100644--- a/web/app/components/datasets/create/website/base/error-message.tsx+++ b/web/app/components/datasets/create/website/base/error-message.tsx@@ -1,8 +1,8 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { AlertTriangle } from '@/app/components/base/icons/src/vender/solid/alertsAndFeedback'-import { cn } from '@/utils/classnames'type Props = {className?: string@@ -22,7 +22,7 @@ const ErrorMessage: FC<Props> = ({<div className="system-md-medium text-text-warning">{title}</div></div>{errorMsg && (- <div className="system-xs-regular mt-1 pl-6 text-text-secondary">{errorMsg}</div>+ <div className="mt-1 pl-6 system-xs-regular text-text-secondary">{errorMsg}</div>)}</div>)diff --git a/web/app/components/datasets/create/website/base/field.tsx b/web/app/components/datasets/create/website/base/field.tsxindex 43f9e4bb37f..860f934da2e 100644--- a/web/app/components/datasets/create/website/base/field.tsx+++ b/web/app/components/datasets/create/website/base/field.tsx@@ -1,8 +1,8 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import Tooltip from '@/app/components/base/tooltip'-import { cn } from '@/utils/classnames'import Input from './input'type Props = {diff --git a/web/app/components/datasets/create/website/base/header.tsx b/web/app/components/datasets/create/website/base/header.tsxindex 0d32b9dfdba..b72d117968f 100644--- a/web/app/components/datasets/create/website/base/header.tsx+++ b/web/app/components/datasets/create/website/base/header.tsx@@ -1,8 +1,8 @@+import { cn } from '@langgenius/dify-ui/cn'import { RiBookOpenLine, RiEqualizer2Line } from '@remixicon/react'import * as React from 'react'import Divider from '@/app/components/base/divider'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'type HeaderProps = {isInPipeline?: booleandiff --git a/web/app/components/datasets/create/website/base/options-wrap.tsx b/web/app/components/datasets/create/website/base/options-wrap.tsxindex fde518d7a14..37e09db3382 100644--- a/web/app/components/datasets/create/website/base/options-wrap.tsx+++ b/web/app/components/datasets/create/website/base/options-wrap.tsx@@ -1,12 +1,12 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiEqualizer2Line } from '@remixicon/react'import { useBoolean } from 'ahooks'import * as React from 'react'import { useEffect } from 'react'import { useTranslation } from 'react-i18next'import { ChevronRight } from '@/app/components/base/icons/src/vender/line/arrows'-import { cn } from '@/utils/classnames'const I18N_PREFIX = 'stepOne.website'@@ -35,12 +35,12 @@ const OptionsWrap: FC<Props> = ({return (<div className={cn(className, !fold ? 'mb-0' : 'mb-3')}><div- className="flex h-[26px] cursor-pointer select-none items-center gap-x-1 py-1"+ className="flex h-[26px] cursor-pointer items-center gap-x-1 py-1 select-none"onClick={foldToggle}><div className="flex grow items-center"><RiEqualizer2Line className="mr-1 h-4 w-4 text-text-secondary" />- <span className="text-[13px] font-semibold uppercase leading-[16px] text-text-secondary">{t(`${I18N_PREFIX}.options`, { ns: 'datasetCreation' })}</span>+ <span className="text-[13px] leading-[16px] font-semibold text-text-secondary uppercase">{t(`${I18N_PREFIX}.options`, { ns: 'datasetCreation' })}</span></div><ChevronRight className={cn(!fold && 'rotate-90', 'h-4 w-4 shrink-0 text-text-tertiary')} /></div>diff --git a/web/app/components/datasets/create/website/firecrawl/options.tsx b/web/app/components/datasets/create/website/firecrawl/options.tsxindex 3bfe055823c..e4ce8b56a2a 100644--- a/web/app/components/datasets/create/website/firecrawl/options.tsx+++ b/web/app/components/datasets/create/website/firecrawl/options.tsx@@ -1,10 +1,10 @@'use client'import type { FC } from 'react'import type { CrawlOptions } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import CheckboxWithLabel from '../base/checkbox-with-label'import Field from '../base/field'diff --git a/web/app/components/datasets/create/website/index.tsx b/web/app/components/datasets/create/website/index.tsxindex 1457aa7ea29..5e6fce527da 100644--- a/web/app/components/datasets/create/website/index.tsx+++ b/web/app/components/datasets/create/website/index.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { DataSourceAuth } from '@/app/components/header/account-setting/data-source-page-new/types'import type { CrawlOptions, CrawlResultItem } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback, useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -9,7 +10,6 @@ import { ACCOUNT_SETTING_TAB } from '@/app/components/header/account-setting/conimport { ENABLE_WEBSITE_FIRECRAWL, ENABLE_WEBSITE_JINAREADER, ENABLE_WEBSITE_WATERCRAWL } from '@/config'import { useModalContext } from '@/context/modal-context'import { DataSourceProvider } from '@/models/common'-import { cn } from '@/utils/classnames'import Firecrawl from './firecrawl'import s from './index.module.css'import JinaReader from './jina-reader'@@ -60,7 +60,7 @@ const Website: FC<Props> = ({return (<div><div className="mb-4">- <div className="system-md-medium mb-2 text-text-secondary">+ <div className="mb-2 system-md-medium text-text-secondary">{t('stepOne.website.chooseProvider', { ns: 'datasetCreation' })}</div><div className="flex space-x-2">@@ -68,8 +68,8 @@ const Website: FC<Props> = ({<buttontype="button"className={cn('flex items-center justify-center rounded-lg px-4 py-2', selectedProvider === DataSourceProvider.jinaReader- ? 'system-sm-medium border-[1.5px] border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg text-text-primary'- : `system-sm-regular border border-components-option-card-option-border bg-components-option-card-option-bg text-text-secondary+ ? 'border-[1.5px] border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg system-sm-medium text-text-primary'+ : `border border-components-option-card-option-border bg-components-option-card-option-bg system-sm-regular text-text-secondaryhover:border-components-option-card-option-border-hover hover:bg-components-option-card-option-bg-hover hover:shadow-xs hover:shadow-shadow-shadow-3`)}onClick={() => {setSelectedProvider(DataSourceProvider.jinaReader)@@ -84,8 +84,8 @@ const Website: FC<Props> = ({<buttontype="button"className={cn('rounded-lg px-4 py-2', selectedProvider === DataSourceProvider.fireCrawl- ? 'system-sm-medium border-[1.5px] border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg text-text-primary'- : `system-sm-regular border border-components-option-card-option-border bg-components-option-card-option-bg text-text-secondary+ ? 'border-[1.5px] border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg system-sm-medium text-text-primary'+ : `border border-components-option-card-option-border bg-components-option-card-option-bg system-sm-regular text-text-secondaryhover:border-components-option-card-option-border-hover hover:bg-components-option-card-option-bg-hover hover:shadow-xs hover:shadow-shadow-shadow-3`)}onClick={() => {setSelectedProvider(DataSourceProvider.fireCrawl)@@ -99,8 +99,8 @@ const Website: FC<Props> = ({<buttontype="button"className={cn('flex items-center justify-center rounded-lg px-4 py-2', selectedProvider === DataSourceProvider.waterCrawl- ? 'system-sm-medium border-[1.5px] border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg text-text-primary'- : `system-sm-regular border border-components-option-card-option-border bg-components-option-card-option-bg text-text-secondary+ ? 'border-[1.5px] border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg system-sm-medium text-text-primary'+ : `border border-components-option-card-option-border bg-components-option-card-option-bg system-sm-regular text-text-secondaryhover:border-components-option-card-option-border-hover hover:bg-components-option-card-option-bg-hover hover:shadow-xs hover:shadow-shadow-shadow-3`)}onClick={() => {setSelectedProvider(DataSourceProvider.waterCrawl)diff --git a/web/app/components/datasets/create/website/jina-reader/options.tsx b/web/app/components/datasets/create/website/jina-reader/options.tsxindex 11a90b4d904..a0ea118fe9f 100644--- a/web/app/components/datasets/create/website/jina-reader/options.tsx+++ b/web/app/components/datasets/create/website/jina-reader/options.tsx@@ -1,10 +1,10 @@'use client'import type { FC } from 'react'import type { CrawlOptions } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import CheckboxWithLabel from '../base/checkbox-with-label'import Field from '../base/field'@@ -32,7 +32,7 @@ const Options: FC<Props> = ({}}, [payload, onChange])return (- <div className={cn(className, ' space-y-2')}>+ <div className={cn(className, 'space-y-2')}><CheckboxWithLabellabel={t(`${I18N_PREFIX}.crawlSubPage`, { ns: 'datasetCreation' })}isChecked={payload.crawl_sub_pages}diff --git a/web/app/components/datasets/create/website/no-data.tsx b/web/app/components/datasets/create/website/no-data.tsxindex 612507d76f5..9bf2c91ec72 100644--- a/web/app/components/datasets/create/website/no-data.tsx+++ b/web/app/components/datasets/create/website/no-data.tsx@@ -57,7 +57,7 @@ const NoData: FC<Props> = ({return (<><div className="mt-4 max-w-[640px] rounded-2xl bg-workflow-process-bg p-6">- <div className="flex h-12 w-12 items-center justify-center radius-lg border-[0.5px]+ <div className="flex h-12 w-12 items-center justify-center rounded-[10px] border-[0.5px]border-components-card-border bg-components-card-bg shadow-lg shadow-shadow-shadow-5 backdrop-blur-[5px]">{currentProvider.emoji}diff --git a/web/app/components/datasets/create/website/preview.tsx b/web/app/components/datasets/create/website/preview.tsxindex d521b435a22..a46437325f9 100644--- a/web/app/components/datasets/create/website/preview.tsx+++ b/web/app/components/datasets/create/website/preview.tsx@@ -1,9 +1,9 @@'use client'import type { CrawlResultItem } from '@/models/datasets'import { XMarkIcon } from '@heroicons/react/20/solid'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import s from '../file-preview/index.module.css'type IProps = {@@ -29,7 +29,7 @@ const WebsitePreview = ({<div className="title-sm-semi-bold wrap-break-word text-text-primary">{payload.title}</div>- <div className="system-xs-medium truncate text-text-tertiary" title={payload.source_url}>{payload.source_url}</div>+ <div className="truncate system-xs-medium text-text-tertiary" title={payload.source_url}>{payload.source_url}</div></div><div className={cn(s.previewContent, 'body-md-regular')}><div className={cn(s.fileContent)}>{payload.markdown}</div>diff --git a/web/app/components/datasets/create/website/watercrawl/options.tsx b/web/app/components/datasets/create/website/watercrawl/options.tsxindex 7521cd57646..999bb3c61d6 100644--- a/web/app/components/datasets/create/website/watercrawl/options.tsx+++ b/web/app/components/datasets/create/website/watercrawl/options.tsx@@ -1,10 +1,10 @@'use client'import type { FC } from 'react'import type { CrawlOptions } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import CheckboxWithLabel from '../base/checkbox-with-label'import Field from '../base/field'@@ -32,7 +32,7 @@ const Options: FC<Props> = ({}}, [payload, onChange])return (- <div className={cn(className, ' space-y-2')}>+ <div className={cn(className, 'space-y-2')}><CheckboxWithLabellabel={t(`${I18N_PREFIX}.crawlSubPage`, { ns: 'datasetCreation' })}isChecked={payload.crawl_sub_pages}diff --git a/web/app/components/datasets/documents/components/document-list/components/sort-header.tsx b/web/app/components/datasets/documents/components/document-list/components/sort-header.tsxindex 1d693565cbb..a8843b505ff 100644--- a/web/app/components/datasets/documents/components/document-list/components/sort-header.tsx+++ b/web/app/components/datasets/documents/components/document-list/components/sort-header.tsx@@ -1,7 +1,7 @@import type { FC } from 'react'import type { SortField, SortOrder } from '../hooks'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'type SortHeaderProps = {field: Exclude<SortField, null>@@ -30,7 +30,7 @@ const SortHeader: FC<SortHeaderProps> = React.memo(({{label}<spanclassName={cn(- 'i-ri-arrow-down-line ml-0.5 h-3 w-3 transition-all',+ 'ml-0.5 i-ri-arrow-down-line h-3 w-3 transition-all',isActive ? 'text-text-tertiary' : 'text-text-disabled',isActive && !isDesc ? 'rotate-180' : '',)}diff --git a/web/app/components/datasets/documents/components/document-list/components/utils.tsx b/web/app/components/datasets/documents/components/document-list/components/utils.tsxindex 4cb652108d4..ddcc1c767e1 100644--- a/web/app/components/datasets/documents/components/document-list/components/utils.tsx+++ b/web/app/components/datasets/documents/components/document-list/components/utils.tsx@@ -1,5 +1,5 @@import type { ReactNode } from 'react'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'import s from '../../../style.module.css'export const renderTdValue = (value: string | number | null, isEmptyStyle = false): ReactNode => {diff --git a/web/app/components/datasets/documents/components/operations.tsx b/web/app/components/datasets/documents/components/operations.tsxindex b4b8cbfdb43..f585ab46548 100644--- a/web/app/components/datasets/documents/components/operations.tsx+++ b/web/app/components/datasets/documents/components/operations.tsx@@ -1,6 +1,7 @@import type { OperationName } from '../types'import type { CommonResponse } from '@/models/common'import type { DocumentDownloadResponse } from '@/service/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { RiArchive2Line, RiDeleteBinLine, RiDownload2Line, RiEditLine, RiEqualizer2Line, RiLoopLeftLine, RiMoreFill, RiPauseCircleLine, RiPlayCircleLine } from '@remixicon/react'import { useBoolean, useDebounceFn } from 'ahooks'import { noop } from 'es-toolkit/function'@@ -27,7 +28,6 @@ import { DataSourceType, DocumentActionType } from '@/models/datasets'import { useRouter } from '@/next/navigation'import { useDocumentArchive, useDocumentDelete, useDocumentDisable, useDocumentDownload, useDocumentEnable, useDocumentPause, useDocumentResume, useDocumentSummary, useDocumentUnArchive, useSyncDocument, useSyncWebsite } from '@/service/knowledge/use-document'import { asyncRunSafe } from '@/utils'-import { cn } from '@/utils/classnames'import { downloadUrl } from '@/utils/download'import s from '../style.module.css'import RenameModal from './rename-modal'diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source-options/datasource-icon.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source-options/datasource-icon.tsxindex d081cabb663..2ed589faf91 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source-options/datasource-icon.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source-options/datasource-icon.tsx@@ -1,6 +1,6 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'-import { cn } from '@/utils/classnames'type DatasourceIconProps = {size?: stringdiff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source-options/option-card.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source-options/option-card.tsxindex b938afa950f..8efd2df646e 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source-options/option-card.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source-options/option-card.tsx@@ -1,6 +1,6 @@import type { DataSourceNodeType } from '@/app/components/workflow/nodes/data-source/types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'import DatasourceIcon from './datasource-icon'import { useDatasourceIcon } from './hooks'@@ -24,7 +24,7 @@ const OptionCard = ({className={cn('flex cursor-pointer items-center gap-2 rounded-xl border border-components-option-card-option-border bg-components-option-card-option-bg p-3 shadow-shadow-shadow-3',selected- ? 'border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg shadow-xs ring-[0.5px] ring-inset ring-components-option-card-option-selected-border'+ ? 'border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg shadow-xs ring-[0.5px] ring-components-option-card-option-selected-border ring-inset': 'hover:bg-components-option-card-bg-hover hover:border-components-option-card-option-border-hover hover:shadow-xs',)}onClick={onClick}@@ -33,7 +33,7 @@ const OptionCard = ({<DatasourceIcon iconUrl={iconUrl} /></div><div- className={cn('system-sm-medium line-clamp-2 grow text-text-secondary', selected && 'text-text-primary')}+ className={cn('line-clamp-2 grow system-sm-medium text-text-secondary', selected && 'text-text-primary')}title={label}>{label}diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/base/credential-selector/trigger.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/base/credential-selector/trigger.tsxindex ed68eaef5d0..980a7ff1dda 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/base/credential-selector/trigger.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/base/credential-selector/trigger.tsx@@ -1,8 +1,8 @@import type { DataSourceCredential } from '@/types/pipeline'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine } from '@remixicon/react'import * as React from 'react'import { CredentialIcon } from '@/app/components/datasets/common/credential-icon'-import { cn } from '@/utils/classnames'type TriggerProps = {currentCredential: DataSourceCredential | undefined@@ -31,7 +31,7 @@ const Trigger = ({size={20}/><div className="flex grow items-center gap-x-1 overflow-hidden">- <span className="system-md-semibold grow truncate text-text-secondary">+ <span className="grow truncate system-md-semibold text-text-secondary">{name}</span><RiArrowDownSLine className="size-4 shrink-0 text-text-secondary" />diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/local-file/components/file-list-item.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/local-file/components/file-list-item.tsxindex 4338dd05d46..9bad3f31021 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/local-file/components/file-list-item.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/local-file/components/file-list-item.tsx@@ -1,4 +1,5 @@import type { CustomFile as File, FileItem } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { RiDeleteBinLine, RiErrorWarningFill } from '@remixicon/react'import { useMemo } from 'react'import DocumentFileIcon from '@/app/components/datasets/common/document-file-icon'@@ -6,7 +7,6 @@ import { getFileType } from '@/app/components/datasets/common/image-uploader/utiimport useTheme from '@/hooks/use-theme'import dynamic from '@/next/dynamic'import { Theme } from '@/types/app'-import { cn } from '@/utils/classnames'import { formatFileSize } from '@/utils/format'import { PROGRESS_ERROR } from '../constants'diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/local-file/components/upload-dropzone.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/local-file/components/upload-dropzone.tsxindex 66bf42d3652..32aee588dfa 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/local-file/components/upload-dropzone.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/local-file/components/upload-dropzone.tsx@@ -1,7 +1,7 @@import type { ChangeEvent, RefObject } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiUploadCloud2Line } from '@remixicon/react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'type FileUploadConfig = {file_size_limit: number@@ -74,7 +74,7 @@ const UploadDropzone = ({totalCount: fileUploadConfig.file_upload_limit,})}</div>- {dragging && <div ref={dragRef} className="absolute left-0 top-0 h-full w-full" />}+ {dragging && <div ref={dragRef} className="absolute top-0 left-0 h-full w-full" />}</div></>)diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/connect/index.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/connect/index.tsxindex 19ec9066880..5b1b0a6b1af 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/connect/index.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/connect/index.tsx@@ -20,7 +20,7 @@ const Connect = ({return (<div className="flex flex-col items-start gap-y-2 rounded-xl bg-workflow-process-bg p-6">- <div className="flex size-12 items-center justify-center radius-lg border-[0.5px] border-components-card-border bg-components-card-bg p-1 shadow-lg shadow-shadow-shadow-5">+ <div className="flex size-12 items-center justify-center rounded-[10px] border-[0.5px] border-components-card-border bg-components-card-bg p-1 shadow-lg shadow-shadow-shadow-5"><BlockIcontype={BlockEnum.DataSource}toolIcon={toolIcon}diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/bucket.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/bucket.tsxindex b98568e3d09..003aee6542d 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/bucket.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/bucket.tsx@@ -1,9 +1,9 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'import { BucketsGray } from '@/app/components/base/icons/src/public/knowledge/online-drive'import Tooltip from '@/app/components/base/tooltip'-import { cn } from '@/utils/classnames'type BucketProps = {bucketName: string@@ -55,7 +55,7 @@ const Bucket = ({>{bucketName}</button>- {showSeparator && <span className="system-xs-regular shrink-0 text-divider-deep">/</span>}+ {showSeparator && <span className="shrink-0 system-xs-regular text-divider-deep">/</span>}</>)}diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/drive.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/drive.tsxindex c7b37eb51ab..69daea1ab40 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/drive.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/drive.tsx@@ -1,6 +1,6 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'type DriveProps = {breadcrumbs: string[]diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/dropdown/index.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/dropdown/index.tsxindex 6d8e93b6b57..7178b45b34f 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/dropdown/index.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/dropdown/index.tsx@@ -1,3 +1,4 @@+import { cn } from '@langgenius/dify-ui/cn'import { RiMoreFill } from '@remixicon/react'import * as React from 'react'import { useCallback, useState } from 'react'@@ -6,7 +7,6 @@ import {PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'import Menu from './menu'type DropdownProps = {diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/item.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/item.tsxindex 1bf32ab7691..6af4628b804 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/item.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/item.tsx@@ -1,6 +1,6 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback } from 'react'-import { cn } from '@/utils/classnames'type BreadcrumbItemProps = {name: string@@ -39,7 +39,7 @@ const BreadcrumbItem = ({>{name}</button>- {showSeparator && <span className="system-xs-regular shrink-0 text-divider-deep">/</span>}+ {showSeparator && <span className="shrink-0 system-xs-regular text-divider-deep">/</span>}</>)}diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/empty-folder.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/empty-folder.tsxindex 46e6beaa97a..d61587b141d 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/empty-folder.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/empty-folder.tsx@@ -5,7 +5,7 @@ const EmptyFolder = () => {const { t } = useTranslation()return (- <div className="flex size-full items-center justify-center radius-lg bg-background-section px-1 py-1.5">+ <div className="flex size-full items-center justify-center rounded-[10px] bg-background-section px-1 py-1.5"><span className="system-xs-regular text-text-tertiary">{t('onlineDrive.emptyFolder', { ns: 'datasetPipeline' })}</span></div>)diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/empty-search-result.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/empty-search-result.tsxindex 2269e33679a..ca110d36943 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/empty-search-result.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/empty-search-result.tsx@@ -15,7 +15,7 @@ const EmptySearchResult = ({const { t } = useTranslation()return (- <div className="flex size-full flex-col items-center justify-center gap-y-2 radius-lg bg-background-section p-6">+ <div className="flex size-full flex-col items-center justify-center gap-y-2 rounded-[10px] bg-background-section p-6"><SearchMenu className="size-8 text-text-tertiary" /><div className="system-sm-regular text-text-secondary">{t('onlineDrive.emptySearchResult', { ns: 'datasetPipeline' })}diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/file-icon.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/file-icon.tsxindex ee873908929..81a6df9ec6e 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/file-icon.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/file-icon.tsx@@ -1,9 +1,9 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useMemo } from 'react'import FileTypeIcon from '@/app/components/base/file-uploader/file-type-icon'import { BucketsBlue, Folder } from '@/app/components/base/icons/src/public/knowledge/online-drive'import { OnlineDriveFileType } from '@/models/pipeline'-import { cn } from '@/utils/classnames'import { getFileType } from './utils'type FileIconProps = {diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/index.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/index.tsxindex c45dc4718d1..f0245cc9a47 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/index.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/index.tsx@@ -72,7 +72,7 @@ const List = ({)}{fileList.length > 0 && (- <div className="flex h-full flex-col gap-y-px overflow-y-auto radius-lg bg-background-section px-1 py-1.5">+ <div className="flex h-full flex-col gap-y-px overflow-y-auto rounded-[10px] bg-background-section px-1 py-1.5">{fileList.map((file) => {const isSelected = selectedFileIds.includes(file.id)diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/item.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/item.tsxindex 2ea2dd49036..50188062658 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/item.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/item.tsx@@ -1,12 +1,12 @@import type { Placement } from '@floating-ui/react'import type { OnlineDriveFile } from '@/models/pipeline'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'import Checkbox from '@/app/components/base/checkbox'import Radio from '@/app/components/base/radio/ui'import Tooltip from '@/app/components/base/tooltip'-import { cn } from '@/utils/classnames'import { formatFileSize } from '@/utils/format'import FileIcon from './file-icon'@@ -91,13 +91,13 @@ const Item = ({><FileIcon type={type} fileName={name} className="shrink-0 transform-gpu" /><span- className="grow truncate text-text-secondary system-sm-medium"+ className="grow truncate system-sm-medium text-text-secondary"title={name}>{name}</span>{!isFolder && typeof size === 'number' && (- <span className="shrink-0 text-text-tertiary system-xs-regular">{formatFileSize(size)}</span>+ <span className="shrink-0 system-xs-regular text-text-tertiary">{formatFileSize(size)}</span>)}</div></Wrapper>diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/checkbox-with-label.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/checkbox-with-label.tsxindex 17dfa375696..23dbea51a9d 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/checkbox-with-label.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/checkbox-with-label.tsx@@ -1,8 +1,8 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import Checkbox from '@/app/components/base/checkbox'import Tooltip from '@/app/components/base/tooltip'-import { cn } from '@/utils/classnames'type CheckboxWithLabelProps = {className?: stringdiff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/crawled-result-item.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/crawled-result-item.tsxindex 3da0e503571..664a251e25e 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/crawled-result-item.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/crawled-result-item.tsx@@ -1,12 +1,12 @@'use client'import type { CrawlResultItem as CrawlResultItemType } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'import Checkbox from '@/app/components/base/checkbox'import Radio from '@/app/components/base/radio/ui'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'type CrawledResultItemProps = {payload: CrawlResultItemTypediff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/crawled-result.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/crawled-result.tsxindex b6dc4bcddf9..8cd9a46054c 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/crawled-result.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/crawled-result.tsx@@ -1,9 +1,9 @@'use client'import type { CrawlResultItem } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import CheckboxWithLabel from './checkbox-with-label'import CrawledResultItem from './crawled-result-item'@@ -64,7 +64,7 @@ const CrawledResult = ({return (<div className={cn('flex flex-col gap-y-2', className)}>- <div className="system-sm-medium pt-2 text-text-primary">+ <div className="pt-2 system-sm-medium text-text-primary">{t(`${I18N_PREFIX}.scrapTimeInfo`, {ns: 'datasetCreation',total: list.length,diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/crawling.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/crawling.tsxindex 0f963c6486a..0667a2dc911 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/crawling.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/crawling.tsx@@ -1,7 +1,7 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'type CrawlingProps = {className?: string@@ -31,7 +31,7 @@ const Item = React.memo(({return (<div className="flex gap-x-2 px-2 py-[5px]"><div className="py-0.5">- <Block className="size-4 radius-xs" />+ <Block className="size-4 rounded-sm" /></div><div className="flex grow flex-col"><div className="flex h-5 w-full items-center">@@ -74,7 +74,7 @@ const Crawling = ({</div><div className="overflow-hidden rounded-xl border border-components-panel-border bg-components-panel-bg"><div className="flex items-center gap-x-2 px-4 py-2">- <Block className="size-4 radius-xs" />+ <Block className="size-4 rounded-sm" /><Block className="h-2.5 w-14 rounded-xs" /></div><div className="flex flex-col gap-px border-t border-divider-subtle bg-background-default-subtle p-2">diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/error-message.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/error-message.tsxindex 191847fa8d2..dd52c027fb0 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/error-message.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/error-message.tsx@@ -1,6 +1,6 @@+import { cn } from '@langgenius/dify-ui/cn'import { RiErrorWarningFill } from '@remixicon/react'import * as React from 'react'-import { cn } from '@/utils/classnames'type ErrorMessageProps = {className?: stringdiff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/options/index.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/options/index.tsxindex 48aae234921..899c70e216b 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/options/index.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/options/index.tsx@@ -1,4 +1,5 @@import type { RAGPipelineVariables } from '@/models/pipeline'+import { cn } from '@langgenius/dify-ui/cn'import { RiPlayLargeLine } from '@remixicon/react'import { useBoolean } from 'ahooks'import { useEffect, useMemo } from 'react'@@ -11,7 +12,6 @@ import { Button } from '@/app/components/base/ui/button'import { toast } from '@/app/components/base/ui/toast'import { useConfigurations, useInitialData } from '@/app/components/rag-pipeline/hooks/use-input-fields'import { CrawlStep } from '@/models/datasets'-import { cn } from '@/utils/classnames'const I18N_PREFIX = 'stepOne.website'diff --git a/web/app/components/datasets/documents/create-from-pipeline/processing/embedding-process/index.tsx b/web/app/components/datasets/documents/create-from-pipeline/processing/embedding-process/index.tsxindex 86de5ee45ef..c03fc8aba2f 100644--- a/web/app/components/datasets/documents/create-from-pipeline/processing/embedding-process/index.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/processing/embedding-process/index.tsx@@ -2,6 +2,7 @@ import type { IndexingType } from '@/app/components/datasets/create/step-two'import type { IndexingStatusResponse } from '@/models/datasets'import type { InitialDocumentDetail } from '@/models/pipeline'import type { RETRIEVE_METHOD } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import {RiAedFill,RiArrowRightLine,@@ -28,7 +29,6 @@ import Link from '@/next/link'import { useRouter } from '@/next/navigation'import { useIndexingStatusBatch, useProcessRule } from '@/service/knowledge/use-dataset'import { useInvalidDocumentList } from '@/service/knowledge/use-document'-import { cn } from '@/utils/classnames'import RuleDetail from './rule-detail'type EmbeddingProcessProps = {diff --git a/web/app/components/datasets/documents/create-from-pipeline/processing/index.tsx b/web/app/components/datasets/documents/create-from-pipeline/processing/index.tsxindex bcdafb5294f..2f5946240ef 100644--- a/web/app/components/datasets/documents/create-from-pipeline/processing/index.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/processing/index.tsx@@ -24,7 +24,7 @@ const Processing = ({return (<div className="flex h-full w-full justify-center overflow-hidden">- <div className="h-full w-3/5 overflow-y-auto pb-8 pt-10">+ <div className="h-full w-3/5 overflow-y-auto pt-10 pb-8"><div className="max-w-[640px]"><EmbeddingProcessdatasetId={datasetId!}@@ -35,9 +35,9 @@ const Processing = ({/></div></div>- <div className="w-2/5 pr-8 pt-[88px]">+ <div className="w-2/5 pt-[88px] pr-8"><div className="flex w-[328px] flex-col gap-3 rounded-xl bg-background-section p-6">- <div className="flex size-10 items-center justify-center radius-lg bg-components-card-bg shadow-lg shadow-shadow-shadow-5">+ <div className="flex size-10 items-center justify-center rounded-[10px] bg-components-card-bg shadow-lg shadow-shadow-shadow-5"><RiBookOpenLine className="size-5 text-text-accent" /></div><div className="flex flex-col gap-y-2">diff --git a/web/app/components/datasets/documents/create-from-pipeline/step-indicator.tsx b/web/app/components/datasets/documents/create-from-pipeline/step-indicator.tsxindex 755526df79c..fa5c48efed5 100644--- a/web/app/components/datasets/documents/create-from-pipeline/step-indicator.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/step-indicator.tsx@@ -1,5 +1,5 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'export type Step = {label: stringdiff --git a/web/app/components/datasets/documents/detail/batch-modal/csv-uploader.tsx b/web/app/components/datasets/documents/detail/batch-modal/csv-uploader.tsxindex c6e1a63bd36..1d26877b775 100644--- a/web/app/components/datasets/documents/detail/batch-modal/csv-uploader.tsx+++ b/web/app/components/datasets/documents/detail/batch-modal/csv-uploader.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { FileItem } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { RiDeleteBinLine } from '@remixicon/react'import * as React from 'react'import { useCallback, useEffect, useMemo, useRef, useState } from 'react'@@ -14,7 +15,6 @@ import useTheme from '@/hooks/use-theme'import { upload } from '@/service/base'import { useFileUploadConfig } from '@/service/use-common'import { Theme } from '@/types/app'-import { cn } from '@/utils/classnames'type Props = {file: FileItem | undefineddiff --git a/web/app/components/datasets/documents/detail/completed/child-segment-detail.tsx b/web/app/components/datasets/documents/detail/completed/child-segment-detail.tsxindex 08956e3224a..88767d628fb 100644--- a/web/app/components/datasets/documents/detail/completed/child-segment-detail.tsx+++ b/web/app/components/datasets/documents/detail/completed/child-segment-detail.tsx@@ -1,5 +1,6 @@import type { FC } from 'react'import type { ChildChunkDetail, ChunkingMode } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import {RiCloseLine,RiCollapseDiagonalLine,@@ -10,7 +11,6 @@ import { useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'import Divider from '@/app/components/base/divider'import { useEventEmitterContextContext } from '@/context/event-emitter'-import { cn } from '@/utils/classnames'import { formatNumber } from '@/utils/format'import { formatTime } from '@/utils/time'import ActionButtons from './common/action-buttons'@@ -74,7 +74,7 @@ const ChildSegmentDetail: FC<IChildSegmentDetailProps> = ({return (<div className="flex h-full flex-col">- <div className={cn('flex items-center justify-between', fullScreen ? 'border border-divider-subtle py-3 pl-6 pr-4' : 'pl-4 pr-3 pt-3')}>+ <div className={cn('flex items-center justify-between', fullScreen ? 'border border-divider-subtle py-3 pr-4 pl-6' : 'pt-3 pr-3 pl-4')}><div className="flex flex-col"><div className="system-xl-semibold text-text-primary">{t('segment.editChildChunk', { ns: 'datasetDocuments' })}</div><div className="flex items-center gap-x-2">@@ -96,7 +96,7 @@ const ChildSegmentDetail: FC<IChildSegmentDetailProps> = ({loading={loading}isChildChunk={true}/>- <Divider type="vertical" className="ml-4 mr-2 h-3.5 bg-divider-regular" />+ <Divider type="vertical" className="mr-2 ml-4 h-3.5 bg-divider-regular" /></>)}<div className="mr-1 flex h-8 w-8 cursor-pointer items-center justify-center p-1.5" onClick={toggleFullScreen}>@@ -108,7 +108,7 @@ const ChildSegmentDetail: FC<IChildSegmentDetailProps> = ({</div></div><div className={cn('flex w-full grow', fullScreen ? 'flex-row justify-center px-6 pt-6' : 'px-4 py-3')}>- <div className={cn('h-full overflow-hidden whitespace-pre-line break-all', fullScreen ? 'w-1/2' : 'w-full')}>+ <div className={cn('h-full overflow-hidden break-all whitespace-pre-line', fullScreen ? 'w-1/2' : 'w-full')}><ChunkContentdocForm={docForm}question={content}diff --git a/web/app/components/datasets/documents/detail/completed/child-segment-list.tsx b/web/app/components/datasets/documents/detail/completed/child-segment-list.tsxindex 6860966fc15..05d1294d2a0 100644--- a/web/app/components/datasets/documents/detail/completed/child-segment-list.tsx+++ b/web/app/components/datasets/documents/detail/completed/child-segment-list.tsx@@ -1,11 +1,11 @@import type { FC } from 'react'import type { ChildChunkDetail } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine, RiArrowRightSLine } from '@remixicon/react'import { useState } from 'react'import { useTranslation } from 'react-i18next'import Divider from '@/app/components/base/divider'import Input from '@/app/components/base/input'-import { cn } from '@/utils/classnames'import { formatNumber } from '@/utils/format'import { EditSlice } from '../../../formatted-text/flavours/edit-slice'import { FormattedText } from '../../../formatted-text/formatted'@@ -150,15 +150,15 @@ const ChildSegmentList: FC<IChildSegmentCardProps> = ({<div className={cn('flex flex-col',contentOpacity,- isParagraphMode ? 'pb-2 pt-1' : 'grow px-3',+ isParagraphMode ? 'pt-1 pb-2' : 'grow px-3',isFullDocMode && isLoading && 'overflow-y-hidden',)}>{isFullDocMode && <Divider type="horizontal" className="my-1 h-px bg-divider-subtle" />}- <div className={cn('flex items-center justify-between', isFullDocMode && 'sticky -top-2 left-0 bg-background-default pb-3 pt-2')}>+ <div className={cn('flex items-center justify-between', isFullDocMode && 'sticky -top-2 left-0 bg-background-default pt-2 pb-3')}><divclassName={cn(- 'flex h-7 items-center rounded-lg pl-1 pr-3',+ 'flex h-7 items-center rounded-lg pr-3 pl-1',isParagraphMode && 'cursor-pointer',isParagraphMode && collapsed && 'bg-dataset-child-chunk-expand-btn-bg',isFullDocMode && 'pl-0',@@ -174,7 +174,7 @@ const ChildSegmentList: FC<IChildSegmentCardProps> = ({<buttontype="button"className={cn(- 'system-xs-semibold-uppercase px-1.5 py-1 text-components-button-secondary-accent-text',+ 'px-1.5 py-1 system-xs-semibold-uppercase text-components-button-secondary-accent-text',hoverVisibleClass,isFullDocMode && isLoading && 'text-components-button-secondary-accent-text-disabled',)}diff --git a/web/app/components/datasets/documents/detail/completed/common/add-another.tsx b/web/app/components/datasets/documents/detail/completed/common/add-another.tsxindex f6255dc96c5..253b9bd7b13 100644--- a/web/app/components/datasets/documents/detail/completed/common/add-another.tsx+++ b/web/app/components/datasets/documents/detail/completed/common/add-another.tsx@@ -1,8 +1,8 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import Checkbox from '@/app/components/base/checkbox'-import { cn } from '@/utils/classnames'type AddAnotherProps = {className?: stringdiff --git a/web/app/components/datasets/documents/detail/completed/common/batch-action.tsx b/web/app/components/datasets/documents/detail/completed/common/batch-action.tsxindex 5ecf95b59cc..59129077654 100644--- a/web/app/components/datasets/documents/detail/completed/common/batch-action.tsx+++ b/web/app/components/datasets/documents/detail/completed/common/batch-action.tsx@@ -1,11 +1,11 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiArchive2Line, RiCheckboxCircleLine, RiCloseCircleLine, RiDeleteBinLine, RiDownload2Line, RiDraftLine, RiRefreshLine } from '@remixicon/react'import { useBoolean } from 'ahooks'import * as React from 'react'import { useTranslation } from 'react-i18next'import Divider from '@/app/components/base/divider'import { SearchLinesSparkle } from '@/app/components/base/icons/src/vender/knowledge'-import { Button } from '@/app/components/base/ui/button'import {AlertDialog,AlertDialogActions,@@ -15,8 +15,8 @@ import {AlertDialogDescription,AlertDialogTitle,} from '@/app/components/base/ui/alert-dialog'+import { Button } from '@/app/components/base/ui/button'import { IS_CE_EDITION } from '@/config'-import { cn } from '@/utils/classnames'const i18nPrefix = 'batchAction'type IBatchActionProps = {@@ -62,7 +62,7 @@ const BatchAction: FC<IBatchActionProps> = ({}return (<div className={cn('pointer-events-none flex w-full justify-center gap-x-2', className)}>- <div className="pointer-events-auto flex items-center gap-x-1 radius-lg border border-components-actionbar-border-accent bg-components-actionbar-bg-accent p-1 shadow-xl shadow-shadow-shadow-5">+ <div className="pointer-events-auto flex items-center gap-x-1 rounded-[10px] border border-components-actionbar-border-accent bg-components-actionbar-bg-accent p-1 shadow-xl shadow-shadow-shadow-5"><div className="inline-flex items-center gap-x-2 py-1 pr-3 pl-2"><span className="flex h-5 w-5 items-center justify-center rounded-md bg-text-accent system-xs-medium text-text-primary-on-surface">{selectedIds.length}diff --git a/web/app/components/datasets/documents/detail/completed/common/chunk-content.tsx b/web/app/components/datasets/documents/detail/completed/common/chunk-content.tsxindex f55b403e578..84dc1feebaa 100644--- a/web/app/components/datasets/documents/detail/completed/common/chunk-content.tsx+++ b/web/app/components/datasets/documents/detail/completed/common/chunk-content.tsx@@ -1,10 +1,10 @@import type { ComponentProps, FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useEffect, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'import { Markdown } from '@/app/components/base/markdown'import { ChunkingMode } from '@/models/datasets'-import { cn } from '@/utils/classnames'type IContentProps = ComponentProps<'textarea'>@@ -125,7 +125,7 @@ const QATextArea: FC<IQATextAreaProps> = React.memo(({containerRef={containerRef}labelRef={labelRef}/>- <div className="mb-1 mt-6 text-xs font-medium text-text-tertiary">ANSWER</div>+ <div className="mt-6 mb-1 text-xs font-medium text-text-tertiary">ANSWER</div><AutoResizeTextAreaclassName="text-sm tracking-[-0.07px] text-text-secondary caret-[#295EFF]"value={answer}@@ -185,7 +185,7 @@ const ChunkContent: FC<IChunkContentProps> = ({return (<Textarea- className="body-md-regular h-full w-full pb-6 tracking-[-0.07px] text-text-secondary caret-[#295EFF]"+ className="h-full w-full pb-6 body-md-regular tracking-[-0.07px] text-text-secondary caret-[#295EFF]"value={question}placeholder={t('segment.contentPlaceholder', { ns: 'datasetDocuments' }) || ''}onChange={e => onQuestionChange(e.target.value)}diff --git a/web/app/components/datasets/documents/detail/completed/common/drawer.tsx b/web/app/components/datasets/documents/detail/completed/common/drawer.tsxindex 4bf71de89c0..47b381e0ff9 100644--- a/web/app/components/datasets/documents/detail/completed/common/drawer.tsx+++ b/web/app/components/datasets/documents/detail/completed/common/drawer.tsx@@ -1,8 +1,8 @@+import { cn } from '@langgenius/dify-ui/cn'import { useKeyPress } from 'ahooks'import * as React from 'react'import { useCallback, useEffect, useRef } from 'react'import { createPortal } from 'react-dom'-import { cn } from '@/utils/classnames'import { useSegmentListContext } from '..'type DrawerProps = {diff --git a/web/app/components/datasets/documents/detail/completed/common/full-screen-drawer.tsx b/web/app/components/datasets/documents/detail/completed/common/full-screen-drawer.tsxindex de817b8d079..01cc264a76f 100644--- a/web/app/components/datasets/documents/detail/completed/common/full-screen-drawer.tsx+++ b/web/app/components/datasets/documents/detail/completed/common/full-screen-drawer.tsx@@ -1,6 +1,6 @@+import { cn } from '@langgenius/dify-ui/cn'import { noop } from 'es-toolkit/function'import * as React from 'react'-import { cn } from '@/utils/classnames'import Drawer from './drawer'type IFullScreenDrawerProps = {@@ -28,7 +28,7 @@ const FullScreenDrawer = ({panelClassName={cn(fullScreen? 'w-full'- : 'w-[568px] pb-2 pr-2 pt-16',+ : 'w-[568px] pt-16 pr-2 pb-2',)}panelContentClassName={cn('bg-components-panel-bg',diff --git a/web/app/components/datasets/documents/detail/completed/common/keywords.tsx b/web/app/components/datasets/documents/detail/completed/common/keywords.tsxindex 94a07026405..df700d67a5c 100644--- a/web/app/components/datasets/documents/detail/completed/common/keywords.tsx+++ b/web/app/components/datasets/documents/detail/completed/common/keywords.tsx@@ -1,9 +1,9 @@import type { FC } from 'react'import type { SegmentDetailModel } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import TagInput from '@/app/components/base/tag-input'-import { cn } from '@/utils/classnames'type IKeywordsProps = {segInfo?: Partial<SegmentDetailModel> & { id: string }diff --git a/web/app/components/datasets/documents/detail/completed/common/segment-index-tag.tsx b/web/app/components/datasets/documents/detail/completed/common/segment-index-tag.tsxindex e6129c806d3..a35f6e91408 100644--- a/web/app/components/datasets/documents/detail/completed/common/segment-index-tag.tsx+++ b/web/app/components/datasets/documents/detail/completed/common/segment-index-tag.tsx@@ -1,8 +1,8 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useMemo } from 'react'import { Chunk } from '@/app/components/base/icons/src/vender/knowledge'-import { cn } from '@/utils/classnames'type ISegmentIndexTagProps = {positionId?: string | numberdiff --git a/web/app/components/datasets/documents/detail/completed/common/summary-label.tsx b/web/app/components/datasets/documents/detail/completed/common/summary-label.tsxindex 78d83cf1e47..859f08d3d8b 100644--- a/web/app/components/datasets/documents/detail/completed/common/summary-label.tsx+++ b/web/app/components/datasets/documents/detail/completed/common/summary-label.tsx@@ -1,6 +1,6 @@+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'type SummaryLabelProps = {summary?: string@@ -14,7 +14,7 @@ const SummaryLabel = ({return (<div className={cn('space-y-1', className)}>- <div className="system-xs-medium-uppercase mt-2 flex items-center justify-between text-text-tertiary">+ <div className="mt-2 flex items-center justify-between system-xs-medium-uppercase text-text-tertiary">{t('segment.summary', { ns: 'datasetDocuments' })}<div className="ml-2 h-px grow bg-divider-regular"></div></div>diff --git a/web/app/components/datasets/documents/detail/completed/common/summary-text.tsx b/web/app/components/datasets/documents/detail/completed/common/summary-text.tsxindex 8eaf3b7bf5f..60217355ad2 100644--- a/web/app/components/datasets/documents/detail/completed/common/summary-text.tsx+++ b/web/app/components/datasets/documents/detail/completed/common/summary-text.tsx@@ -1,7 +1,7 @@+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'import { useTranslation } from 'react-i18next'import Textarea from 'react-textarea-autosize'-import { cn } from '@/utils/classnames'type SummaryTextProps = {value?: string@@ -20,7 +20,7 @@ const SummaryText = ({<div className="system-xs-medium-uppercase text-text-tertiary">{t('segment.summary', { ns: 'datasetDocuments' })}</div><TextareaclassName={cn(- 'body-sm-regular w-full resize-none bg-transparent leading-6 text-text-secondary outline-hidden',+ 'w-full resize-none bg-transparent body-sm-regular leading-6 text-text-secondary outline-hidden',)}placeholder={t('segment.summaryPlaceholder', { ns: 'datasetDocuments' })}minRows={1}diff --git a/web/app/components/datasets/documents/detail/completed/common/tag.tsx b/web/app/components/datasets/documents/detail/completed/common/tag.tsxindex f78cbf1c3ff..98c7df7fca9 100644--- a/web/app/components/datasets/documents/detail/completed/common/tag.tsx+++ b/web/app/components/datasets/documents/detail/completed/common/tag.tsx@@ -1,5 +1,5 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'const Tag = ({ text, className }: { text: string, className?: string }) => {return (diff --git a/web/app/components/datasets/documents/detail/completed/components/segment-list-content.tsx b/web/app/components/datasets/documents/detail/completed/components/segment-list-content.tsxindex 78159a5cf66..116ba38856c 100644--- a/web/app/components/datasets/documents/detail/completed/components/segment-list-content.tsx+++ b/web/app/components/datasets/documents/detail/completed/components/segment-list-content.tsx@@ -1,7 +1,7 @@'use client'import type { FC } from 'react'import type { ChildChunkDetail, SegmentDetailModel } from '@/models/datasets'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'import ChildSegmentList from '../child-segment-list'import SegmentCard from '../segment-card'import SegmentList from '../segment-list'diff --git a/web/app/components/datasets/documents/detail/completed/new-child-segment.tsx b/web/app/components/datasets/documents/detail/completed/new-child-segment.tsxindex c8bad5d2ec3..68efea843ba 100644--- a/web/app/components/datasets/documents/detail/completed/new-child-segment.tsx+++ b/web/app/components/datasets/documents/detail/completed/new-child-segment.tsx@@ -1,5 +1,6 @@import type { FC } from 'react'import type { ChildChunkDetail, SegmentUpdater } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine, RiExpandDiagonalLine } from '@remixicon/react'import { memo, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -8,7 +9,6 @@ import { toast } from '@/app/components/base/ui/toast'import { ChunkingMode } from '@/models/datasets'import { useParams } from '@/next/navigation'import { useAddChildSegment } from '@/service/knowledge/use-segment'-import { cn } from '@/utils/classnames'import { formatNumber } from '@/utils/format'import { useDocumentContext } from '../context'import ActionButtons from './common/action-buttons'@@ -88,13 +88,13 @@ const NewChildSegmentModal: FC<NewChildSegmentModalProps> = ({return (<div className="flex h-full flex-col">- <div className={cn('flex items-center justify-between', fullScreen ? 'border border-divider-subtle py-3 pl-6 pr-4' : 'pl-4 pr-3 pt-3')}>+ <div className={cn('flex items-center justify-between', fullScreen ? 'border border-divider-subtle py-3 pr-4 pl-6' : 'pt-3 pr-3 pl-4')}><div className="flex flex-col">- <div className="text-text-primary system-xl-semibold">{t('segment.addChildChunk', { ns: 'datasetDocuments' })}</div>+ <div className="system-xl-semibold text-text-primary">{t('segment.addChildChunk', { ns: 'datasetDocuments' })}</div><div className="flex items-center gap-x-2"><SegmentIndexTag label={t('segment.newChildChunk', { ns: 'datasetDocuments' }) as string} /><Dot />- <span className="text-text-tertiary system-xs-medium">{wordCountText}</span>+ <span className="system-xs-medium text-text-tertiary">{wordCountText}</span></div></div><div className="flex items-center">@@ -108,7 +108,7 @@ const NewChildSegmentModal: FC<NewChildSegmentModalProps> = ({actionType="add"isChildChunk={true}/>- <Divider type="vertical" className="ml-4 mr-2 h-3.5 bg-divider-regular" />+ <Divider type="vertical" className="mr-2 ml-4 h-3.5 bg-divider-regular" /></>)}<div className="mr-1 flex h-8 w-8 cursor-pointer items-center justify-center p-1.5" onClick={toggleFullScreen}>@@ -120,7 +120,7 @@ const NewChildSegmentModal: FC<NewChildSegmentModalProps> = ({</div></div><div className={cn('flex w-full grow', fullScreen ? 'flex-row justify-center px-6 pt-6' : 'px-4 py-3')}>- <div className={cn('h-full overflow-hidden whitespace-pre-line break-all', fullScreen ? 'w-1/2' : 'w-full')}>+ <div className={cn('h-full overflow-hidden break-all whitespace-pre-line', fullScreen ? 'w-1/2' : 'w-full')}><ChunkContentdocForm={ChunkingMode.parentChild}question={content}diff --git a/web/app/components/datasets/documents/detail/completed/segment-card/chunk-content.tsx b/web/app/components/datasets/documents/detail/completed/segment-card/chunk-content.tsxindex 4843b61e6b4..8bb818acb2e 100644--- a/web/app/components/datasets/documents/detail/completed/segment-card/chunk-content.tsx+++ b/web/app/components/datasets/documents/detail/completed/segment-card/chunk-content.tsx@@ -1,8 +1,8 @@import type { FC } from 'react'import type { SegmentListContextValue } from '..'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { Markdown } from '@/app/components/base/markdown'-import { cn } from '@/utils/classnames'import { useSegmentListContext } from '..'type ChunkContentProps = {@@ -29,7 +29,7 @@ const ChunkContent: FC<ChunkContentProps> = ({return (<div className={className}><div className="flex gap-x-1">- <div className="w-4 shrink-0 text-[13px] font-medium leading-[20px] text-text-tertiary">Q</div>+ <div className="w-4 shrink-0 text-[13px] leading-[20px] font-medium text-text-tertiary">Q</div><MarkdownclassName={cn('body-md-regular text-text-secondary', isCollapsed ? 'line-clamp-2' : 'line-clamp-20')}content={content}@@ -37,7 +37,7 @@ const ChunkContent: FC<ChunkContentProps> = ({/></div><div className="flex gap-x-1">- <div className="w-4 shrink-0 text-[13px] font-medium leading-[20px] text-text-tertiary">A</div>+ <div className="w-4 shrink-0 text-[13px] leading-[20px] font-medium text-text-tertiary">A</div><MarkdownclassName={cn('body-md-regular text-text-secondary', isCollapsed ? 'line-clamp-2' : 'line-clamp-20')}content={answer}diff --git a/web/app/components/datasets/documents/detail/completed/segment-card/index.tsx b/web/app/components/datasets/documents/detail/completed/segment-card/index.tsxindex df35b9b5f3a..31d894f1090 100644--- a/web/app/components/datasets/documents/detail/completed/segment-card/index.tsx+++ b/web/app/components/datasets/documents/detail/completed/segment-card/index.tsx@@ -1,5 +1,6 @@import type { FC } from 'react'import type { ChildChunkDetail, SegmentDetailModel } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { RiDeleteBinLine, RiEditLine } from '@remixicon/react'import * as React from 'react'import { useCallback, useMemo, useState } from 'react'@@ -18,7 +19,6 @@ import {} from '@/app/components/base/ui/alert-dialog'import ImageList from '@/app/components/datasets/common/image-list'import { ChunkingMode } from '@/models/datasets'-import { cn } from '@/utils/classnames'import { formatNumber } from '@/utils/format'import { isAfter } from '@/utils/time'import StatusItem from '../../../status-item'@@ -177,7 +177,7 @@ const SegmentCard: FC<ISegmentCardProps> = ({<div className="flex items-center"><StatusItem status={enabled ? 'enabled' : 'disabled'} reverse textCls="text-text-tertiary system-xs-regular" />{embeddingAvailable && (- <div className="absolute -top-2 -right-2.5 z-20 hidden items-center gap-x-0.5 radius-lg border-[0.5px]+ <div className="absolute -top-2 -right-2.5 z-20 hidden items-center gap-x-0.5 rounded-[10px] border-[0.5px]border-components-actionbar-border bg-components-actionbar-bg p-1 shadow-md backdrop-blur-[5px] group-hover/card:flex">{!archived && (diff --git a/web/app/components/datasets/documents/detail/completed/segment-detail.tsx b/web/app/components/datasets/documents/detail/completed/segment-detail.tsxindex d999ed25e73..91174c1bf6f 100644--- a/web/app/components/datasets/documents/detail/completed/segment-detail.tsx+++ b/web/app/components/datasets/documents/detail/completed/segment-detail.tsx@@ -1,6 +1,7 @@import type { FC } from 'react'import type { FileEntity } from '@/app/components/datasets/common/image-uploader/types'import type { SegmentDetailModel } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import {RiCloseLine,RiCollapseDiagonalLine,@@ -16,7 +17,6 @@ import { IndexingType } from '@/app/components/datasets/create/step-two'import { useDatasetDetailContextWithSelector } from '@/context/dataset-detail'import { useEventEmitterContextContext } from '@/context/event-emitter'import { ChunkingMode } from '@/models/datasets'-import { cn } from '@/utils/classnames'import { formatNumber } from '@/utils/format'import { useDocumentContext } from '../context'import ActionButtons from './common/action-buttons'@@ -137,7 +137,7 @@ const SegmentDetail: FC<ISegmentDetailProps> = ({<div className="flex h-full flex-col"><div className={cn('flex shrink-0 items-center justify-between',- fullScreen ? 'border border-divider-subtle py-3 pl-6 pr-4' : 'pl-4 pr-3 pt-3',+ fullScreen ? 'border border-divider-subtle py-3 pr-4 pl-6' : 'pt-3 pr-3 pl-4',)}><div className="flex flex-col">@@ -158,7 +158,7 @@ const SegmentDetail: FC<ISegmentDetailProps> = ({loading={loading}showRegenerationButton={runtimeMode === 'general'}/>- <Divider type="vertical" className="ml-4 mr-2 h-3.5 bg-divider-regular" />+ <Divider type="vertical" className="mr-2 ml-4 h-3.5 bg-divider-regular" /></>)}<div className="mr-1 flex h-8 w-8 cursor-pointer items-center justify-center p-1.5" onClick={toggleFullScreen}>@@ -180,7 +180,7 @@ const SegmentDetail: FC<ISegmentDetailProps> = ({)}><div className={cn(- isEditMode ? 'overflow-hidden whitespace-pre-line break-all' : 'overflow-y-auto',+ isEditMode ? 'overflow-hidden break-all whitespace-pre-line' : 'overflow-y-auto',fullScreen ? 'w-1/2' : 'h-0 grow',)}>diff --git a/web/app/components/datasets/documents/detail/document-title.tsx b/web/app/components/datasets/documents/detail/document-title.tsxindex 2190338ab26..d5bf5345ae9 100644--- a/web/app/components/datasets/documents/detail/document-title.tsx+++ b/web/app/components/datasets/documents/detail/document-title.tsx@@ -1,7 +1,7 @@import type { FC } from 'react'import type { ChunkingMode, ParentMode } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { useRouter } from '@/next/navigation'-import { cn } from '@/utils/classnames'import DocumentPicker from '../../common/document-picker'type DocumentTitleProps = {diff --git a/web/app/components/datasets/documents/detail/embedding/components/progress-bar.tsx b/web/app/components/datasets/documents/detail/embedding/components/progress-bar.tsxindex 19c64939220..881b7dc0e26 100644--- a/web/app/components/datasets/documents/detail/embedding/components/progress-bar.tsx+++ b/web/app/components/datasets/documents/detail/embedding/components/progress-bar.tsx@@ -1,6 +1,6 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'type ProgressBarProps = {percent: numberdiff --git a/web/app/components/datasets/documents/detail/index.tsx b/web/app/components/datasets/documents/detail/index.tsxindex d72b870bde6..be72975099f 100644--- a/web/app/components/datasets/documents/detail/index.tsx+++ b/web/app/components/datasets/documents/detail/index.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { DataSourceInfo, DocumentDisplayStatus, FileItem, FullDocumentDetail, LegacyDataSourceInfo } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback, useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -16,7 +17,6 @@ import { useRouter, useSearchParams } from '@/next/navigation'import { useDocumentDetail, useDocumentMetadata, useInvalidDocumentList } from '@/service/knowledge/use-document'import { useCheckSegmentBatchImportProgress, useChildSegmentListKey, useSegmentBatchImport, useSegmentListKey } from '@/service/knowledge/use-segment'import { useInvalid } from '@/service/use-base'-import { cn } from '@/utils/classnames'import Operations from '../components/operations'import StatusItem from '../status-item'import BatchModal from './batch-modal'@@ -195,7 +195,7 @@ const DocumentDetail: FC<DocumentDetailProps> = ({ datasetId, documentId }) => {return (<DocumentContext.Provider value={contextValue}><div className="flex h-full flex-col bg-background-default">- <div className="flex min-h-16 flex-wrap items-center justify-between border-b border-b-divider-subtle py-2.5 pl-3 pr-4">+ <div className="flex min-h-16 flex-wrap items-center justify-between border-b border-b-divider-subtle py-2.5 pr-4 pl-3"><buttontype="button"data-testid="document-detail-back-button"@@ -270,7 +270,7 @@ const DocumentDetail: FC<DocumentDetailProps> = ({ datasetId, documentId }) => {{isDetailLoading? <Loading type="app" />: (- <div className={cn('flex h-full min-w-0 grow flex-col', !embedding && isFullDocMode && 'relative pl-11 pr-11 pt-4', !embedding && !isFullDocMode && 'relative pl-5 pr-11 pt-3')}>+ <div className={cn('flex h-full min-w-0 grow flex-col', !embedding && isFullDocMode && 'relative pt-4 pr-11 pl-11', !embedding && !isFullDocMode && 'relative pt-3 pr-11 pl-5')}>{embedding? (<Embedding@@ -292,7 +292,7 @@ const DocumentDetail: FC<DocumentDetailProps> = ({ datasetId, documentId }) => {)}<FloatRightContainer showClose isOpen={showMetadata} onClose={() => setShowMetadata(false)} isMobile={isMobile} panelClassName="justify-start!" footer={null}><Metadata- className="mr-2 mt-3"+ className="mt-3 mr-2"datasetId={datasetId}documentId={documentId}docDetail={docDetail}diff --git a/web/app/components/datasets/documents/detail/metadata/components/doc-type-selector.tsx b/web/app/components/datasets/documents/detail/metadata/components/doc-type-selector.tsxindex c65fbeb886e..8e3857c4920 100644--- a/web/app/components/datasets/documents/detail/metadata/components/doc-type-selector.tsx+++ b/web/app/components/datasets/documents/detail/metadata/components/doc-type-selector.tsx@@ -1,13 +1,13 @@'use client'import type { FC } from 'react'import type { DocType } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'import Radio from '@/app/components/base/radio'import Tooltip from '@/app/components/base/tooltip'import { Button } from '@/app/components/base/ui/button'import { useMetadataMap } from '@/hooks/use-metadata'import { CUSTOMIZABLE_DOC_TYPES } from '@/models/datasets'-import { cn } from '@/utils/classnames'import s from '../style.module.css'const TypeIcon: FC<{ iconName: string, className?: string }> = ({ iconName, className = '' }) => {diff --git a/web/app/components/datasets/documents/detail/metadata/components/field-info.tsx b/web/app/components/datasets/documents/detail/metadata/components/field-info.tsxindex db477cab211..3accf42a35f 100644--- a/web/app/components/datasets/documents/detail/metadata/components/field-info.tsx+++ b/web/app/components/datasets/documents/detail/metadata/components/field-info.tsx@@ -1,12 +1,12 @@'use client'import type { FC, ReactNode } from 'react'import type { inputType } from '@/hooks/use-metadata'+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'import AutoHeightTextarea from '@/app/components/base/auto-height-textarea'import Input from '@/app/components/base/input'import { SimpleSelect } from '@/app/components/base/select'import { getTextWidthWithCanvas } from '@/utils'-import { cn } from '@/utils/classnames'import s from '../style.module.css'type FieldInfoProps = {diff --git a/web/app/components/datasets/documents/detail/new-segment.tsx b/web/app/components/datasets/documents/detail/new-segment.tsxindex f7942df29eb..35f3eacfc8a 100644--- a/web/app/components/datasets/documents/detail/new-segment.tsx+++ b/web/app/components/datasets/documents/detail/new-segment.tsx@@ -1,6 +1,7 @@import type { FC } from 'react'import type { FileEntity } from '@/app/components/datasets/common/image-uploader/types'import type { SegmentUpdater } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine, RiExpandDiagonalLine } from '@remixicon/react'import { memo, useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -11,7 +12,6 @@ import { useDatasetDetailContextWithSelector } from '@/context/dataset-detail'import { ChunkingMode } from '@/models/datasets'import { useParams } from '@/next/navigation'import { useAddSegment } from '@/service/knowledge/use-segment'-import { cn } from '@/utils/classnames'import { formatNumber } from '@/utils/format'import { IndexingType } from '../../create/step-two'import { useSegmentListContext } from './completed'@@ -117,16 +117,16 @@ const NewSegmentModal: FC<NewSegmentModalProps> = ({return (<div className="flex h-full flex-col"><div- className={cn('flex items-center justify-between', fullScreen ? 'border border-divider-subtle py-3 pl-6 pr-4' : 'pl-4 pr-3 pt-3')}+ className={cn('flex items-center justify-between', fullScreen ? 'border border-divider-subtle py-3 pr-4 pl-6' : 'pt-3 pr-3 pl-4')}><div className="flex flex-col">- <div className="text-text-primary system-xl-semibold">+ <div className="system-xl-semibold text-text-primary">{t('segment.addChunk', { ns: 'datasetDocuments' })}</div><div className="flex items-center gap-x-2"><SegmentIndexTag label={t('segment.newChunk', { ns: 'datasetDocuments' })!} /><Dot />- <span className="text-text-tertiary system-xs-medium">{wordCountText}</span>+ <span className="system-xs-medium text-text-tertiary">{wordCountText}</span></div></div><div className="flex items-center">@@ -139,7 +139,7 @@ const NewSegmentModal: FC<NewSegmentModalProps> = ({loading={loading}actionType="add"/>- <Divider type="vertical" className="ml-4 mr-2 h-3.5 bg-divider-regular" />+ <Divider type="vertical" className="mr-2 ml-4 h-3.5 bg-divider-regular" /></>)}<div className="mr-1 flex h-8 w-8 cursor-pointer items-center justify-center p-1.5" onClick={toggleFullScreen}>@@ -151,7 +151,7 @@ const NewSegmentModal: FC<NewSegmentModalProps> = ({</div></div><div className={cn('flex grow', fullScreen ? 'w-full flex-row justify-center gap-x-8 px-6 pt-6' : 'flex-col gap-y-1 px-4 py-3')}>- <div className={cn('overflow-hidden whitespace-pre-line break-all', fullScreen ? 'w-1/2' : 'grow')}>+ <div className={cn('overflow-hidden break-all whitespace-pre-line', fullScreen ? 'w-1/2' : 'grow')}><ChunkContentdocForm={docForm}question={question}diff --git a/web/app/components/datasets/documents/detail/segment-add/index.tsx b/web/app/components/datasets/documents/detail/segment-add/index.tsxindex dbd9f0b5e5d..cffeaa92633 100644--- a/web/app/components/datasets/documents/detail/segment-add/index.tsx+++ b/web/app/components/datasets/documents/detail/segment-add/index.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {RiAddLine,RiArrowDownSLine,@@ -15,7 +16,6 @@ import Popover from '@/app/components/base/popover'import PlanUpgradeModal from '@/app/components/billing/plan-upgrade-modal'import { Plan } from '@/app/components/billing/type'import { useProviderContext } from '@/context/provider-context'-import { cn } from '@/utils/classnames'type ISegmentAddProps = {importStatus: ProcessStatus | string | undefined@@ -71,33 +71,33 @@ const SegmentAdd: FC<ISegmentAddProps> = ({bg-components-progress-bar-border px-2.5 py-2 text-components-button-secondary-accent-textshadow-xs shadow-shadow-shadow-3 backdrop-blur-[5px]">- <div className={cn('absolute left-0 top-0 z-0 h-full border-r-[1.5px] border-r-components-progress-bar-progress-highlight bg-components-progress-bar-progress', importStatus === ProcessStatus.WAITING ? 'w-3/12' : 'w-2/3')} />+ <div className={cn('absolute top-0 left-0 z-0 h-full border-r-[1.5px] border-r-components-progress-bar-progress-highlight bg-components-progress-bar-progress', importStatus === ProcessStatus.WAITING ? 'w-3/12' : 'w-2/3')} /><RiLoader2Line className="mr-1 h-4 w-4 animate-spin" />- <span className="system-sm-medium z-10 pr-0.5">{t('list.batchModal.processing', { ns: 'datasetDocuments' })}</span>+ <span className="z-10 pr-0.5 system-sm-medium">{t('list.batchModal.processing', { ns: 'datasetDocuments' })}</span></div>)}{importStatus === ProcessStatus.COMPLETED && (<div className="relative mr-2 inline-flex items-center overflow-hidden rounded-lg border-[0.5px] border-components-panel-border bg-components-panel-bg shadow-xs shadow-shadow-shadow-3 backdrop-blur-[5px]"><div className="inline-flex items-center border-r border-r-divider-subtle px-2.5 py-2 text-text-success"><CheckCircle className="mr-1 h-4 w-4" />- <span className="system-sm-medium pr-0.5">{t('list.batchModal.completed', { ns: 'datasetDocuments' })}</span>+ <span className="pr-0.5 system-sm-medium">{t('list.batchModal.completed', { ns: 'datasetDocuments' })}</span></div><div className="m-1 inline-flex items-center">- <span className="system-xs-medium cursor-pointer rounded-md px-1.5 py-1 text-components-button-ghost-text hover:bg-components-button-ghost-bg-hover" onClick={clearProcessStatus}>{t('list.batchModal.ok', { ns: 'datasetDocuments' })}</span>+ <span className="cursor-pointer rounded-md px-1.5 py-1 system-xs-medium text-components-button-ghost-text hover:bg-components-button-ghost-bg-hover" onClick={clearProcessStatus}>{t('list.batchModal.ok', { ns: 'datasetDocuments' })}</span></div>- <div className="absolute left-0 top-0 -z-10 h-full w-full bg-dataset-chunk-process-success-bg opacity-40" />+ <div className="absolute top-0 left-0 -z-10 h-full w-full bg-dataset-chunk-process-success-bg opacity-40" /></div>)}{importStatus === ProcessStatus.ERROR && (<div className="relative mr-2 inline-flex items-center overflow-hidden rounded-lg border-[0.5px] border-components-panel-border bg-components-panel-bg shadow-xs shadow-shadow-shadow-3 backdrop-blur-[5px]"><div className="inline-flex items-center border-r border-r-divider-subtle px-2.5 py-2 text-text-destructive"><RiErrorWarningFill className="mr-1 h-4 w-4" />- <span className="system-sm-medium pr-0.5">{t('list.batchModal.error', { ns: 'datasetDocuments' })}</span>+ <span className="pr-0.5 system-sm-medium">{t('list.batchModal.error', { ns: 'datasetDocuments' })}</span></div><div className="m-1 inline-flex items-center">- <span className="system-xs-medium cursor-pointer rounded-md px-1.5 py-1 text-components-button-ghost-text hover:bg-components-button-ghost-bg-hover" onClick={clearProcessStatus}>{t('list.batchModal.ok', { ns: 'datasetDocuments' })}</span>+ <span className="cursor-pointer rounded-md px-1.5 py-1 system-xs-medium text-components-button-ghost-text hover:bg-components-button-ghost-bg-hover" onClick={clearProcessStatus}>{t('list.batchModal.ok', { ns: 'datasetDocuments' })}</span></div>- <div className="absolute left-0 top-0 -z-10 h-full w-full bg-dataset-chunk-process-error-bg opacity-40" />+ <div className="absolute top-0 left-0 -z-10 h-full w-full bg-dataset-chunk-process-error-bg opacity-40" /></div>)}</>@@ -118,7 +118,7 @@ const SegmentAdd: FC<ISegmentAddProps> = ({disabled={embedding}><RiAddLine className={cn('h-4 w-4', textColor)} />- <span className={cn('ml-0.5 px-0.5 text-[13px] font-medium capitalize leading-[16px]', textColor)}>+ <span className={cn('ml-0.5 px-0.5 text-[13px] leading-[16px] font-medium capitalize', textColor)}>{t('list.action.addButton', { ns: 'datasetDocuments' })}</span></button>@@ -131,7 +131,7 @@ const SegmentAdd: FC<ISegmentAddProps> = ({<div className="w-full p-1"><buttontype="button"- className="system-md-regular flex w-full items-center rounded-lg px-2 py-1.5 text-text-secondary"+ className="flex w-full items-center rounded-lg px-2 py-1.5 system-md-regular text-text-secondary"onClick={withNeedUpgradeCheck(showBatchModal)}>{t('list.action.batchAdd', { ns: 'datasetDocuments' })}diff --git a/web/app/components/datasets/documents/status-item/index.tsx b/web/app/components/datasets/documents/status-item/index.tsxindex 3e6f31b40a9..aac7d1e4cf0 100644--- a/web/app/components/datasets/documents/status-item/index.tsx+++ b/web/app/components/datasets/documents/status-item/index.tsx@@ -2,6 +2,7 @@ import type { OperationName } from '../types'import type { ColorMap, IndicatorProps } from '@/app/components/header/indicator'import type { CommonResponse } from '@/models/common'import type { DocumentDisplayStatus } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { useDebounceFn } from 'ahooks'import * as React from 'react'import { useMemo } from 'react'@@ -12,7 +13,6 @@ import { toast } from '@/app/components/base/ui/toast'import Indicator from '@/app/components/header/indicator'import { useDocumentDelete, useDocumentDisable, useDocumentEnable } from '@/service/knowledge/use-document'import { asyncRunSafe } from '@/utils'-import { cn } from '@/utils/classnames'import s from '../style.module.css'import { useIndexStatus } from './hooks'diff --git a/web/app/components/datasets/external-api/external-api-modal/Form.tsx b/web/app/components/datasets/external-api/external-api-modal/Form.tsxindex cd2f02ea8b6..5f1ba03bffe 100644--- a/web/app/components/datasets/external-api/external-api-modal/Form.tsx+++ b/web/app/components/datasets/external-api/external-api-modal/Form.tsx@@ -1,11 +1,11 @@import type { FC } from 'react'import type { CreateExternalAPIReq, FormSchema } from '../declarations'+import { cn } from '@langgenius/dify-ui/cn'import { RiBookOpenLine } from '@remixicon/react'import * as React from 'react'import { useTranslation } from 'react-i18next'import Input from '@/app/components/base/input'import { useDocLink } from '@/context/i18n'-import { cn } from '@/utils/classnames'type FormProps = {className?: string@@ -60,7 +60,7 @@ const Form: FC<FormProps> = React.memo(({href={docLink('/use-dify/knowledge/external-knowledge-api') || '/'}target="_blank"rel="noopener noreferrer"- className="body-xs-regular flex items-center text-text-accent"+ className="flex items-center body-xs-regular text-text-accent"><RiBookOpenLine className="mr-1 h-3 w-3 text-text-accent" />{t('externalAPIPanelDocumentation', { ns: 'dataset' })}diff --git a/web/app/components/datasets/external-api/external-api-panel/index.tsx b/web/app/components/datasets/external-api/external-api-panel/index.tsxindex 7d240d0820e..93ccdd3c4ec 100644--- a/web/app/components/datasets/external-api/external-api-panel/index.tsx+++ b/web/app/components/datasets/external-api/external-api-panel/index.tsx@@ -1,3 +1,4 @@+import { cn } from '@langgenius/dify-ui/cn'import {RiAddLine,RiBookOpenLine,@@ -11,7 +12,6 @@ import { Button } from '@/app/components/base/ui/button'import { useExternalKnowledgeApi } from '@/context/external-knowledge-api-context'import { useDocLink } from '@/context/i18n'import { useModalContext } from '@/context/modal-context'-import { cn } from '@/utils/classnames'import ExternalKnowledgeAPICard from '../external-knowledge-api-card'type ExternalAPIPanelProps = {diff --git a/web/app/components/datasets/external-knowledge-base/create/RetrievalSettings.tsx b/web/app/components/datasets/external-knowledge-base/create/RetrievalSettings.tsxindex 43d20827beb..35d61720286 100644--- a/web/app/components/datasets/external-knowledge-base/create/RetrievalSettings.tsx+++ b/web/app/components/datasets/external-knowledge-base/create/RetrievalSettings.tsx@@ -1,9 +1,9 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import ScoreThresholdItem from '@/app/components/base/param-item/score-threshold-item'import TopKItem from '@/app/components/base/param-item/top-k-item'-import { cn } from '@/utils/classnames'type RetrievalSettingsProps = {topK: numberdiff --git a/web/app/components/datasets/extra-info/api-access/card.tsx b/web/app/components/datasets/extra-info/api-access/card.tsxindex eee586ff8ed..9679efefdac 100644--- a/web/app/components/datasets/extra-info/api-access/card.tsx+++ b/web/app/components/datasets/extra-info/api-access/card.tsx@@ -1,3 +1,4 @@+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowRightUpLine, RiBookOpenLine } from '@remixicon/react'import * as React from 'react'import { useCallback } from 'react'@@ -9,7 +10,6 @@ import { useDatasetDetailContextWithSelector } from '@/context/dataset-detail'import { useDatasetApiAccessUrl } from '@/hooks/use-api-access-url'import Link from '@/next/link'import { useDisableDatasetServiceApi, useEnableDatasetServiceApi } from '@/service/knowledge/use-dataset'-import { cn } from '@/utils/classnames'type CardProps = {apiEnabled: boolean@@ -79,7 +79,7 @@ const Card = ({className="flex h-8 items-center space-x-[7px] rounded-lg px-2 text-text-tertiary hover:bg-state-base-hover"><RiBookOpenLine className="size-3.5 shrink-0" />- <div className="system-sm-regular grow truncate">+ <div className="grow truncate system-sm-regular">{t('overview.apiInfo.doc', { ns: 'appOverview' })}</div><RiArrowRightUpLine className="size-3.5 shrink-0" />diff --git a/web/app/components/datasets/extra-info/api-access/index.tsx b/web/app/components/datasets/extra-info/api-access/index.tsxindex dbd16bba6c8..57db1f2e9ab 100644--- a/web/app/components/datasets/extra-info/api-access/index.tsx+++ b/web/app/components/datasets/extra-info/api-access/index.tsx@@ -1,10 +1,10 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useState } from 'react'import { useTranslation } from 'react-i18next'import { ApiAggregate } from '@/app/components/base/icons/src/vender/knowledge'import { PortalToFollowElem, PortalToFollowElemContent, PortalToFollowElemTrigger } from '@/app/components/base/portal-to-follow-elem'import Indicator from '@/app/components/header/indicator'-import { cn } from '@/utils/classnames'import Card from './card'type ApiAccessProps = {@@ -45,9 +45,9 @@ const ApiAccess = ({)}><ApiAggregate className="size-4 shrink-0 text-text-secondary" />- {expand && <div className="system-sm-medium grow text-text-secondary">{t('appMenus.apiAccess', { ns: 'common' })}</div>}+ {expand && <div className="grow system-sm-medium text-text-secondary">{t('appMenus.apiAccess', { ns: 'common' })}</div>}<Indicator- className={cn('shrink-0', !expand && 'absolute -right-px -top-px')}+ className={cn('shrink-0', !expand && 'absolute -top-px -right-px')}color={apiEnabled ? 'green' : 'yellow'}/></div>diff --git a/web/app/components/datasets/extra-info/service-api/index.tsx b/web/app/components/datasets/extra-info/service-api/index.tsxindex 3a46321d2dd..33a6d32251b 100644--- a/web/app/components/datasets/extra-info/service-api/index.tsx+++ b/web/app/components/datasets/extra-info/service-api/index.tsx@@ -1,9 +1,9 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useState } from 'react'import { useTranslation } from 'react-i18next'import { PortalToFollowElem, PortalToFollowElemContent, PortalToFollowElemTrigger } from '@/app/components/base/portal-to-follow-elem'import Indicator from '@/app/components/header/indicator'-import { cn } from '@/utils/classnames'import Card from './card'type ServiceApiProps = {@@ -46,7 +46,7 @@ const ServiceApi = ({apiBaseUrl ? 'green' : 'yellow'}/>- <div className="system-sm-medium grow text-text-secondary">{t('serviceApi.title', { ns: 'dataset' })}</div>+ <div className="grow system-sm-medium text-text-secondary">{t('serviceApi.title', { ns: 'dataset' })}</div></div></PortalToFollowElemTrigger><PortalToFollowElemContent className="z-10">diff --git a/web/app/components/datasets/formatted-text/flavours/edit-slice.tsx b/web/app/components/datasets/formatted-text/flavours/edit-slice.tsxindex d0fcd3a6c65..2c0f08a8d0a 100644--- a/web/app/components/datasets/formatted-text/flavours/edit-slice.tsx+++ b/web/app/components/datasets/formatted-text/flavours/edit-slice.tsx@@ -2,10 +2,10 @@ import type { OffsetOptions } from '@floating-ui/react'import type { FC, ReactNode } from 'react'import type { SliceProps } from './type'import { autoUpdate, flip, FloatingFocusManager, offset, shift, useDismiss, useFloating, useHover, useInteractions, useRole } from '@floating-ui/react'+import { cn } from '@langgenius/dify-ui/cn'import { RiDeleteBinLine } from '@remixicon/react'import { useState } from 'react'import ActionButton, { ActionButtonState } from '@/app/components/base/action-button'-import { cn } from '@/utils/classnames'import { SliceContainer, SliceContent, SliceDivider, SliceLabel } from './shared'type EditSliceProps = SliceProps<{diff --git a/web/app/components/datasets/formatted-text/flavours/shared.tsx b/web/app/components/datasets/formatted-text/flavours/shared.tsxindex 4f68177ea39..10137d3936e 100644--- a/web/app/components/datasets/formatted-text/flavours/shared.tsx+++ b/web/app/components/datasets/formatted-text/flavours/shared.tsx@@ -1,5 +1,5 @@import type { ComponentProps, FC } from 'react'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'const baseStyle = 'py-[3px]'@@ -16,7 +16,7 @@ export const SliceContainer: FC<SliceContainerProps> = (<span{...rest}ref={ref}- className={cn('group mr-1 select-none align-bottom text-sm', className)}+ className={cn('group mr-1 align-bottom text-sm select-none', className)}/>)}@@ -35,7 +35,7 @@ export const SliceLabel: FC<SliceLabelProps> = (<span{...rest}ref={ref}- className={cn(baseStyle, 'bg-state-base-hover-alt px-1 uppercase text-text-tertiary group-hover:bg-state-accent-solid group-hover:text-text-primary-on-surface', className)}+ className={cn(baseStyle, 'bg-state-base-hover-alt px-1 text-text-tertiary uppercase group-hover:bg-state-accent-solid group-hover:text-text-primary-on-surface', className)}><span className={cn('text-nowrap', labelInnerClassName)}>{children}@@ -58,7 +58,7 @@ export const SliceContent: FC<SliceContentProps> = (<span{...rest}ref={ref}- className={cn(baseStyle, 'whitespace-pre-line break-all bg-state-base-hover px-1 leading-7 group-hover:bg-state-accent-hover-alt group-hover:text-text-primary', className)}+ className={cn(baseStyle, 'bg-state-base-hover px-1 leading-7 break-all whitespace-pre-line group-hover:bg-state-accent-hover-alt group-hover:text-text-primary', className)}>{children}</span>diff --git a/web/app/components/datasets/formatted-text/formatted.tsx b/web/app/components/datasets/formatted-text/formatted.tsxindex 21036ac6f31..0938ec223de 100644--- a/web/app/components/datasets/formatted-text/formatted.tsx+++ b/web/app/components/datasets/formatted-text/formatted.tsx@@ -1,5 +1,5 @@import type { ComponentProps, FC } from 'react'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'type FormattedTextProps = ComponentProps<'p'>diff --git a/web/app/components/datasets/hit-testing/components/chunk-detail-modal.tsx b/web/app/components/datasets/hit-testing/components/chunk-detail-modal.tsxindex 998d4265f72..ee0d949a7e2 100644--- a/web/app/components/datasets/hit-testing/components/chunk-detail-modal.tsx+++ b/web/app/components/datasets/hit-testing/components/chunk-detail-modal.tsx@@ -1,6 +1,7 @@'use client'import type { FileAppearanceTypeEnum } from '@/app/components/base/file-uploader/types'import type { HitTesting } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useMemo } from 'react'import { useTranslation } from 'react-i18next'@@ -8,7 +9,6 @@ import FileIcon from '@/app/components/base/file-uploader/file-type-icon'import { Markdown } from '@/app/components/base/markdown'import Modal from '@/app/components/base/modal'import Tag from '@/app/components/datasets/documents/detail/completed/common/tag'-import { cn } from '@/utils/classnames'import ImageList from '../../common/image-list'import Dot from '../../documents/detail/completed/common/dot'import { SegmentIndexTag } from '../../documents/detail/completed/common/segment-index-tag'@@ -89,14 +89,14 @@ const ChunkDetailModal = ({{answer && (<div className="break-all"><div className="flex gap-x-1">- <div className="w-4 shrink-0 text-[13px] font-medium leading-[20px] text-text-tertiary">Q</div>- <div className={cn('body-md-regular line-clamp-20 text-text-secondary')}>+ <div className="w-4 shrink-0 text-[13px] leading-[20px] font-medium text-text-tertiary">Q</div>+ <div className={cn('line-clamp-20 body-md-regular text-text-secondary')}>{content}</div></div><div className="flex gap-x-1">- <div className="w-4 shrink-0 text-[13px] font-medium leading-[20px] text-text-tertiary">A</div>- <div className={cn('body-md-regular line-clamp-20 text-text-secondary')}>+ <div className="w-4 shrink-0 text-[13px] leading-[20px] font-medium text-text-tertiary">A</div>+ <div className={cn('line-clamp-20 body-md-regular text-text-secondary')}>{answer}</div></div>@@ -115,7 +115,7 @@ const ChunkDetailModal = ({)}{showKeywords && (<div className="flex flex-col gap-y-1">- <div className="text-xs font-medium uppercase text-text-tertiary">{t(`${i18nPrefix}keyword`, { ns: 'datasetHitTesting' })}</div>+ <div className="text-xs font-medium text-text-tertiary uppercase">{t(`${i18nPrefix}keyword`, { ns: 'datasetHitTesting' })}</div><div className="flex flex-wrap gap-x-2">{keywords.map(keyword => (<Tag key={keyword} text={keyword} />diff --git a/web/app/components/datasets/hit-testing/components/empty-records.tsx b/web/app/components/datasets/hit-testing/components/empty-records.tsxindex 180b45a0775..110112e81c2 100644--- a/web/app/components/datasets/hit-testing/components/empty-records.tsx+++ b/web/app/components/datasets/hit-testing/components/empty-records.tsx@@ -6,10 +6,10 @@ const EmptyRecords = () => {const { t } = useTranslation()return (<div className="rounded-2xl bg-workflow-process-bg p-5">- <div className="flex h-10 w-10 items-center justify-center radius-lg border-[0.5px] border-components-card-border bg-components-card-bg p-1 shadow-lg shadow-shadow-shadow-5 backdrop-blur-[5px]">+ <div className="flex h-10 w-10 items-center justify-center rounded-[10px] border-[0.5px] border-components-card-border bg-components-card-bg p-1 shadow-lg shadow-shadow-shadow-5 backdrop-blur-[5px]"><RiHistoryLine className="h-5 w-5 text-text-tertiary" /></div>- <div className="my-2 text-[13px] font-medium leading-4 text-text-tertiary">{t('noRecentTip', { ns: 'datasetHitTesting' })}</div>+ <div className="my-2 text-[13px] leading-4 font-medium text-text-tertiary">{t('noRecentTip', { ns: 'datasetHitTesting' })}</div></div>)}diff --git a/web/app/components/datasets/hit-testing/components/mask.tsx b/web/app/components/datasets/hit-testing/components/mask.tsxindex 4510e38430c..bdab61f2f75 100644--- a/web/app/components/datasets/hit-testing/components/mask.tsx+++ b/web/app/components/datasets/hit-testing/components/mask.tsx@@ -1,5 +1,5 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'type MaskProps = {className?: stringdiff --git a/web/app/components/datasets/hit-testing/components/query-input/index.tsx b/web/app/components/datasets/hit-testing/components/query-input/index.tsxindex b2b07c9f04a..cd0cfe984e1 100644--- a/web/app/components/datasets/hit-testing/components/query-input/index.tsx+++ b/web/app/components/datasets/hit-testing/components/query-input/index.tsx@@ -10,6 +10,7 @@ import type {Query,} from '@/models/datasets'import type { RetrievalConfig } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import {RiEqualizer2Line,RiPlayCircleLine,@@ -24,7 +25,6 @@ import { getIcon } from '@/app/components/datasets/common/retrieval-method-info'import ModifyExternalRetrievalModal from '@/app/components/datasets/hit-testing/modify-external-retrieval-modal'import { useDatasetDetailContextWithSelector } from '@/context/dataset-detail'import { RETRIEVE_METHOD } from '@/types/app'-import { cn } from '@/utils/classnames'import Textarea from './textarea'type QueryInputProps = {@@ -203,7 +203,7 @@ const QueryInput = ({return (<div className={cn('relative flex h-80 shrink-0 flex-col overflow-hidden rounded-xl bg-linear-to-r from-components-input-border-active-prompt-1 to-components-input-border-active-prompt-2 p-0.5 shadow-xs')}>- <div className="flex h-full flex-col overflow-hidden radius-lg bg-background-section-burn">+ <div className="flex h-full flex-col overflow-hidden rounded-[10px] bg-background-section-burn"><div className="relative flex shrink-0 items-center justify-between p-1.5 pb-1 pl-3"><span className="system-sm-semibold-uppercase text-text-secondary">{t('input.title', { ns: 'datasetHitTesting' })}diff --git a/web/app/components/datasets/hit-testing/components/query-input/textarea.tsx b/web/app/components/datasets/hit-testing/components/query-input/textarea.tsxindex 7f54e6ccbfe..eec34630db1 100644--- a/web/app/components/datasets/hit-testing/components/query-input/textarea.tsx+++ b/web/app/components/datasets/hit-testing/components/query-input/textarea.tsx@@ -1,9 +1,9 @@import type { ChangeEvent } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import { Corner } from '@/app/components/base/icons/src/vender/solid/shapes'import Tooltip from '@/app/components/base/tooltip'-import { cn } from '@/utils/classnames'type TextareaProps = {text: string@@ -18,17 +18,17 @@ const Textarea = ({return (<div className={cn(- 'relative flex-1 overflow-hidden rounded-t-[10px] border-t-[0.5px] border-components-panel-border-subtle bg-background-default px-4 pb-0 pt-3',+ 'relative flex-1 overflow-hidden rounded-t-[10px] border-t-[0.5px] border-components-panel-border-subtle bg-background-default px-4 pt-3 pb-0',text.length > 200 && 'border-state-destructive-active',)}><textarea- className="system-md-regular h-full w-full resize-none border-none bg-transparent text-text-secondary caret-[#295EFF] placeholder:text-components-input-text-placeholder focus-visible:outline-hidden"+ className="h-full w-full resize-none border-none bg-transparent system-md-regular text-text-secondary caret-[#295EFF] placeholder:text-components-input-text-placeholder focus-visible:outline-hidden"value={text}onChange={handleTextChange}placeholder={t('input.placeholder', { ns: 'datasetHitTesting' }) as string}/>- <div className="absolute right-0 top-0 flex items-center">+ <div className="absolute top-0 right-0 flex items-center"><Corner className={cn('text-background-section-burn',text.length > 200 && 'text-util-colors-red-red-100',@@ -40,7 +40,7 @@ const Textarea = ({popupContent={t('input.countWarning', { ns: 'datasetHitTesting' })}><div- className={cn('system-2xs-medium-uppercase bg-util-colors-red-red-100 py-1 pr-2 text-util-colors-red-red-600')}+ className={cn('bg-util-colors-red-red-100 py-1 pr-2 system-2xs-medium-uppercase text-util-colors-red-red-600')}>{`${text.length}/200`}</div>@@ -49,7 +49,7 @@ const Textarea = ({: (<divclassName={cn(- 'system-2xs-medium-uppercase bg-background-section-burn py-1 pr-2 text-text-tertiary',+ 'bg-background-section-burn py-1 pr-2 system-2xs-medium-uppercase text-text-tertiary',)}>{`${text.length}/200`}diff --git a/web/app/components/datasets/hit-testing/components/records.tsx b/web/app/components/datasets/hit-testing/components/records.tsxindex 64adf82eef5..cce831c2b52 100644--- a/web/app/components/datasets/hit-testing/components/records.tsx+++ b/web/app/components/datasets/hit-testing/components/records.tsx@@ -1,10 +1,10 @@import type { Attachment, HitTestingRecord, Query } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { RiApps2Line, RiArrowDownLine, RiFocus2Line } from '@remixicon/react'import * as React from 'react'import { useCallback, useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'import useTimestamp from '@/hooks/use-timestamp'-import { cn } from '@/utils/classnames'import ImageList from '../../common/image-list'type RecordsProps = {@@ -47,11 +47,11 @@ const Records = ({return (<div className="grow overflow-y-auto">- <table className="w-full border-collapse border-0 text-[13px] leading-4 text-text-secondary ">- <thead className="sticky top-0 h-7 text-xs font-medium uppercase leading-7 text-text-tertiary backdrop-blur-[5px]">+ <table className="w-full border-collapse border-0 text-[13px] leading-4 text-text-secondary">+ <thead className="sticky top-0 h-7 text-xs leading-7 font-medium text-text-tertiary uppercase backdrop-blur-[5px]"><tr><td className="rounded-l-lg bg-background-section-burn pl-3">{t('table.header.queryContent', { ns: 'datasetHitTesting' })}</td>- <td className="w-[128px] bg-background-section-burn pl-3">{t('table.header.source', { ns: 'datasetHitTesting' })}</td>+ <td className="w-[128px] bg-background-section-burn pl-3">{t('table.header.source', { ns: 'datasetHitTesting' })}</td><td className="w-48 rounded-r-lg bg-background-section-burn pl-3"><divclassName="flex cursor-pointer items-center"diff --git a/web/app/components/datasets/hit-testing/components/result-item-external.tsx b/web/app/components/datasets/hit-testing/components/result-item-external.tsxindex dd370ccd147..68e99306659 100644--- a/web/app/components/datasets/hit-testing/components/result-item-external.tsx+++ b/web/app/components/datasets/hit-testing/components/result-item-external.tsx@@ -1,12 +1,12 @@'use client'import type { FC } from 'react'import type { ExternalKnowledgeBaseHitTesting } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { useBoolean } from 'ahooks'import * as React from 'react'import { useTranslation } from 'react-i18next'import { FileAppearanceTypeEnum } from '@/app/components/base/file-uploader/types'import Modal from '@/app/components/base/modal'-import { cn } from '@/utils/classnames'import ResultItemFooter from './result-item-footer'import ResultItemMeta from './result-item-meta'@@ -31,7 +31,7 @@ const ResultItemExternal: FC<Props> = ({ payload, positionId }) => {{/* Main */}<div className="mt-1 px-3">- <div className="body-md-regular line-clamp-2 break-all text-text-primary">{content}</div>+ <div className="line-clamp-2 body-md-regular break-all text-text-primary">{content}</div></div>{/* Foot */}@@ -47,7 +47,7 @@ const ResultItemExternal: FC<Props> = ({ payload, positionId }) => {><div className="mt-4 flex-1"><ResultItemMeta labelPrefix="Chunk" positionId={positionId} wordCount={content.length} score={score} />- <div className={cn('body-md-regular mt-2 break-all text-text-secondary', 'h-[min(539px,80vh)] overflow-y-auto')}>+ <div className={cn('mt-2 body-md-regular break-all text-text-secondary', 'h-[min(539px,80vh)] overflow-y-auto')}>{content}</div></div>diff --git a/web/app/components/datasets/hit-testing/components/result-item-meta.tsx b/web/app/components/datasets/hit-testing/components/result-item-meta.tsxindex be22e228b79..dc017df4eb3 100644--- a/web/app/components/datasets/hit-testing/components/result-item-meta.tsx+++ b/web/app/components/datasets/hit-testing/components/result-item-meta.tsx@@ -1,8 +1,8 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import Dot from '../../documents/detail/completed/common/dot'import { SegmentIndexTag } from '../../documents/detail/completed/common/segment-index-tag'import Score from './score'diff --git a/web/app/components/datasets/hit-testing/components/result-item.tsx b/web/app/components/datasets/hit-testing/components/result-item.tsxindex 54bea820b7d..ccf05f9f935 100644--- a/web/app/components/datasets/hit-testing/components/result-item.tsx+++ b/web/app/components/datasets/hit-testing/components/result-item.tsx@@ -1,6 +1,7 @@'use client'import type { FileAppearanceTypeEnum } from '@/app/components/base/file-uploader/types'import type { HitTesting } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine, RiArrowRightSLine } from '@remixicon/react'import { useBoolean } from 'ahooks'import * as React from 'react'@@ -10,7 +11,6 @@ import { Markdown } from '@/app/components/base/markdown'import SummaryLabel from '@/app/components/datasets/documents/detail/completed/common/summary-label'import Tag from '@/app/components/datasets/documents/detail/completed/common/tag'import { extensionToFileType } from '@/app/components/datasets/hit-testing/utils/extension-to-file-type'-import { cn } from '@/utils/classnames'import ImageList from '../../common/image-list'import ChildChunkItem from './child-chunks-item'import ChunkDetailModal from './chunk-detail-modal'@@ -72,7 +72,7 @@ const ResultItem = ({{isParentChildRetrieval && (<div className="mt-1"><div- className={cn('inline-flex h-6 cursor-pointer select-none items-center space-x-0.5 rounded-lg text-text-secondary', isFold && 'bg-workflow-process-bg pl-1')}+ className={cn('inline-flex h-6 cursor-pointer items-center space-x-0.5 rounded-lg text-text-secondary select-none', isFold && 'bg-workflow-process-bg pl-1')}onClick={(e) => {e.stopPropagation()toggleFold()diff --git a/web/app/components/datasets/hit-testing/components/score.tsx b/web/app/components/datasets/hit-testing/components/score.tsxindex ed5496740d5..3cdad3f152e 100644--- a/web/app/components/datasets/hit-testing/components/score.tsx+++ b/web/app/components/datasets/hit-testing/components/score.tsx@@ -1,7 +1,7 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'type Props = {value: number | null@@ -16,7 +16,7 @@ const Score: FC<Props> = ({return nullreturn (<div className={cn('relative items-center overflow-hidden border border-components-progress-bar-border px-[5px]', besideChunkName ? 'h-[20.5px] border-l-0' : 'h-[20px] rounded-md')}>- <div className={cn('absolute left-0 top-0 h-full border-r-[1.5px] border-components-progress-brand-progress bg-util-colors-blue-brand-blue-brand-100', value === 1 && 'border-r-0')} style={{ width: `${value * 100}%` }} />+ <div className={cn('absolute top-0 left-0 h-full border-r-[1.5px] border-components-progress-brand-progress bg-util-colors-blue-brand-blue-brand-100', value === 1 && 'border-r-0')} style={{ width: `${value * 100}%` }} /><div className={cn('relative flex h-full items-center space-x-0.5 text-util-colors-blue-brand-blue-brand-700')}><div className="system-2xs-medium-uppercase">score</div><div className="system-xs-semibold">{value?.toFixed(2)}</div>diff --git a/web/app/components/datasets/hit-testing/index.tsx b/web/app/components/datasets/hit-testing/index.tsxindex bd16324f965..ec9100bb973 100644--- a/web/app/components/datasets/hit-testing/index.tsx+++ b/web/app/components/datasets/hit-testing/index.tsx@@ -9,6 +9,7 @@ import type {Query,} from '@/models/datasets'import type { RetrievalConfig } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import { useBoolean } from 'ahooks'import * as React from 'react'import { useCallback, useEffect, useState } from 'react'@@ -26,7 +27,6 @@ import {useExternalKnowledgeBaseHitTesting,useHitTesting,} from '@/service/knowledge/use-hit-testing'-import { cn } from '@/utils/classnames'import { CardSkelton } from '../documents/detail/completed/skeleton/general-list-skeleton'import EmptyRecords from './components/empty-records'import QueryInput from './components/query-input'@@ -74,7 +74,7 @@ const HitTestingPage: FC<Props> = ({ datasetId }: Props) => {const renderHitResults = (results: HitTesting[] | ExternalKnowledgeBaseHitTesting[]) => (<div className="flex h-full flex-col rounded-tl-2xl bg-background-body px-4 py-3">- <div className="mb-2 shrink-0 pl-2 font-semibold leading-6 text-text-primary">+ <div className="mb-2 shrink-0 pl-2 leading-6 font-semibold text-text-primary">{t('hit.title', { ns: 'datasetHitTesting', num: results.length })}</div><div className="grow space-y-2 overflow-y-auto">@@ -118,7 +118,7 @@ const HitTestingPage: FC<Props> = ({ datasetId }: Props) => {<div className="flex min-w-0 flex-1 flex-col py-3"><div className="mb-4 flex flex-col justify-center"><h1 className="text-base font-semibold text-text-primary">{t('title', { ns: 'datasetHitTesting' })}</h1>- <p className="mt-0.5 text-[13px] font-normal leading-4 text-text-tertiary">{t('desc', { ns: 'datasetHitTesting' })}</p>+ <p className="mt-0.5 text-[13px] leading-4 font-normal text-text-tertiary">{t('desc', { ns: 'datasetHitTesting' })}</p></div><QueryInputkey={queryInputKey}@@ -136,7 +136,7 @@ const HitTestingPage: FC<Props> = ({ datasetId }: Props) => {hitTestingMutation={hitTestingMutation}externalKnowledgeBaseHitTestingMutation={externalKnowledgeBaseHitTestingMutation}/>- <div className="mb-3 mt-6 text-base font-semibold text-text-primary">{t('records', { ns: 'datasetHitTesting' })}</div>+ <div className="mt-6 mb-3 text-base font-semibold text-text-primary">{t('records', { ns: 'datasetHitTesting' })}</div>{isRecordsLoading && (<div className="flex-1"><Loading type="app" /></div>)}diff --git a/web/app/components/datasets/list/dataset-card/components/dataset-card-footer.tsx b/web/app/components/datasets/list/dataset-card/components/dataset-card-footer.tsxindex 854f34f49c4..49dcade8f30 100644--- a/web/app/components/datasets/list/dataset-card/components/dataset-card-footer.tsx+++ b/web/app/components/datasets/list/dataset-card/components/dataset-card-footer.tsx@@ -1,11 +1,11 @@import type { DataSet } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { RiFileTextFill, RiRobot2Fill } from '@remixicon/react'import * as React from 'react'import { useMemo } from 'react'import { useTranslation } from 'react-i18next'import Tooltip from '@/app/components/base/tooltip'import { useFormatTimeFromNow } from '@/hooks/use-format-time-from-now'-import { cn } from '@/utils/classnames'const EXTERNAL_PROVIDER = 'external'@@ -35,7 +35,7 @@ const DatasetCardFooter = ({ dataset }: DatasetCardFooterProps) => {return (<divclassName={cn(- 'flex items-center gap-x-3 px-4 pb-3 pt-2 text-text-tertiary',+ 'flex items-center gap-x-3 px-4 pt-2 pb-3 text-text-tertiary',!dataset.embedding_available && 'opacity-30',)}>diff --git a/web/app/components/datasets/list/dataset-card/components/dataset-card-header.tsx b/web/app/components/datasets/list/dataset-card/components/dataset-card-header.tsxindex 4a76e6da1c6..66349df4c9e 100644--- a/web/app/components/datasets/list/dataset-card/components/dataset-card-header.tsx+++ b/web/app/components/datasets/list/dataset-card/components/dataset-card-header.tsx@@ -1,4 +1,5 @@import type { DataSet } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useMemo } from 'react'import { useTranslation } from 'react-i18next'@@ -6,7 +7,6 @@ import AppIcon from '@/app/components/base/app-icon'import { useFormatTimeFromNow } from '@/hooks/use-format-time-from-now'import { useKnowledge } from '@/hooks/use-knowledge'import { DOC_FORM_ICON_WITH_BG, DOC_FORM_TEXT } from '@/models/datasets'-import { cn } from '@/utils/classnames'const EXTERNAL_PROVIDER = 'external'@@ -31,7 +31,7 @@ const DocModeInfo = ({if (isExternalProvider) {return (- <div className="system-2xs-medium-uppercase flex items-center gap-x-3 text-text-tertiary">+ <div className="flex items-center gap-x-3 system-2xs-medium-uppercase text-text-tertiary"><span>{t('externalKnowledgeBase', { ns: 'dataset' })}</span></div>)@@ -48,10 +48,10 @@ const DocModeInfo = ({: ''return (- <div className="system-2xs-medium-uppercase flex items-center gap-x-3 text-text-tertiary">+ <div className="flex items-center gap-x-3 system-2xs-medium-uppercase text-text-tertiary">{!!dataset.doc_form && (<span- className="min-w-0 max-w-full truncate"+ className="max-w-full min-w-0 truncate"title={t(`chunkingMode.${DOC_FORM_TEXT[dataset.doc_form]}`, { ns: 'dataset' })}>{t(`chunkingMode.${DOC_FORM_TEXT[dataset.doc_form]}`, { ns: 'dataset' })}@@ -59,7 +59,7 @@ const DocModeInfo = ({)}{dataset.indexing_technique && indexingText && (<span- className="min-w-0 max-w-full truncate"+ className="max-w-full min-w-0 truncate"title={indexingText}>{indexingText}@@ -67,7 +67,7 @@ const DocModeInfo = ({)}{dataset.is_multimodal && (<span- className="min-w-0 max-w-full truncate"+ className="max-w-full min-w-0 truncate"title={t('multimodal', { ns: 'dataset' })}>{t('multimodal', { ns: 'dataset' })}@@ -108,7 +108,7 @@ const DatasetCardHeader = ({ dataset }: DatasetCardHeaderProps) => {)return (- <div className={cn('flex items-center gap-x-3 px-4 pb-2 pt-4', !dataset.embedding_available && 'opacity-30')}>+ <div className={cn('flex items-center gap-x-3 px-4 pt-4 pb-2', !dataset.embedding_available && 'opacity-30')}><div className="relative shrink-0"><AppIconsize="large"@@ -118,19 +118,19 @@ const DatasetCardHeader = ({ dataset }: DatasetCardHeaderProps) => {imageUrl={iconInfo.icon_type === 'image' ? iconInfo.icon_url : undefined}/>{(isShowChunkingModeIcon || isExternalProvider) && (- <div className="absolute -bottom-1 -right-1 z-5">+ <div className="absolute -right-1 -bottom-1 z-5"><Icon className="size-4" /></div>)}</div><div className="flex grow flex-col gap-y-1 overflow-hidden py-px"><div- className="system-md-semibold truncate text-text-secondary"+ className="truncate system-md-semibold text-text-secondary"title={dataset.name}>{dataset.name}</div>- <div className="flex items-center gap-1 text-[10px] font-medium leading-[18px] text-text-tertiary">+ <div className="flex items-center gap-1 text-[10px] leading-[18px] font-medium text-text-tertiary"><div className="truncate" title={dataset.author_name}>{dataset.author_name}</div><div>·</div><div className="truncate" title={editTimeText}>{editTimeText}</div>diff --git a/web/app/components/datasets/list/dataset-card/components/description.tsx b/web/app/components/datasets/list/dataset-card/components/description.tsxindex 79604e92ab8..44b0559eef1 100644--- a/web/app/components/datasets/list/dataset-card/components/description.tsx+++ b/web/app/components/datasets/list/dataset-card/components/description.tsx@@ -1,6 +1,6 @@import type { DataSet } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'type DescriptionProps = {dataset: DataSet@@ -8,7 +8,7 @@ type DescriptionProps = {const Description = ({ dataset }: DescriptionProps) => (<div- className={cn('system-xs-regular line-clamp-2 h-10 px-4 py-1 text-text-tertiary', !dataset.embedding_available && 'opacity-30')}+ className={cn('line-clamp-2 h-10 px-4 py-1 system-xs-regular text-text-tertiary', !dataset.embedding_available && 'opacity-30')}title={dataset.description}>{dataset.description}diff --git a/web/app/components/datasets/list/dataset-card/components/operations-dropdown.tsx b/web/app/components/datasets/list/dataset-card/components/operations-dropdown.tsxindex 37a73d5d8fe..22ba6737173 100644--- a/web/app/components/datasets/list/dataset-card/components/operations-dropdown.tsx+++ b/web/app/components/datasets/list/dataset-card/components/operations-dropdown.tsx@@ -1,11 +1,11 @@import type { DataSet } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import {DropdownMenu,DropdownMenuContent,DropdownMenuTrigger,} from '@/app/components/base/ui/dropdown-menu'-import { cn } from '@/utils/classnames'import Operations from '../operations'type OperationsDropdownProps = {@@ -38,7 +38,7 @@ const OperationsDropdown = ({<DropdownMenu modal={false} open={open} onOpenChange={setOpen}><DropdownMenuTriggerclassName={cn(- 'inline-flex size-9 cursor-pointer items-center justify-center radius-lg border-[0.5px]',+ 'inline-flex size-9 cursor-pointer items-center justify-center rounded-[10px] border-[0.5px]','border-components-actionbar-border bg-components-button-secondary-bg p-0 shadow-lg ring-2 shadow-shadow-shadow-5 ring-components-button-secondary-bg ring-inset','transition-colors hover:border-components-actionbar-border hover:bg-state-base-hover','focus-visible:bg-state-base-hover focus-visible:ring-1 focus-visible:ring-components-input-border-hover focus-visible:outline-hidden focus-visible:ring-inset',diff --git a/web/app/components/datasets/list/dataset-card/components/tag-area.tsx b/web/app/components/datasets/list/dataset-card/components/tag-area.tsxindex 4ab51b09d50..2c8d6aa73aa 100644--- a/web/app/components/datasets/list/dataset-card/components/tag-area.tsx+++ b/web/app/components/datasets/list/dataset-card/components/tag-area.tsx@@ -1,8 +1,8 @@import type { Tag } from '@/app/components/base/tag-management/constant'import type { DataSet } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import TagSelector from '@/app/components/base/tag-management/selector'-import { cn } from '@/utils/classnames'type TagAreaProps = {dataset: DataSet@@ -44,7 +44,7 @@ const TagArea = React.forwardRef<HTMLDivElement, TagAreaProps>(({</div><divclassName={cn(- 'absolute right-0 top-0 z-5 h-full w-20 bg-tag-selector-mask-bg group-hover:bg-tag-selector-mask-hover-bg',+ 'absolute top-0 right-0 z-5 h-full w-20 bg-tag-selector-mask-bg group-hover:bg-tag-selector-mask-hover-bg',isHoveringTagSelector && 'hidden',)}/>diff --git a/web/app/components/datasets/metadata/add-metadata-button.tsx b/web/app/components/datasets/metadata/add-metadata-button.tsxindex 47f50cdecce..8bf1c92023b 100644--- a/web/app/components/datasets/metadata/add-metadata-button.tsx+++ b/web/app/components/datasets/metadata/add-metadata-button.tsx@@ -1,10 +1,10 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiAddLine } from '@remixicon/react'import * as React from 'react'import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'type Props = {className?: stringdiff --git a/web/app/components/datasets/metadata/base/date-picker.tsx b/web/app/components/datasets/metadata/base/date-picker.tsxindex aa9ff2d6946..79c61469de0 100644--- a/web/app/components/datasets/metadata/base/date-picker.tsx+++ b/web/app/components/datasets/metadata/base/date-picker.tsx@@ -1,4 +1,5 @@import type { TriggerProps } from '@/app/components/base/date-and-time-picker/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiCalendarLine,RiCloseCircleFill,@@ -9,7 +10,6 @@ import { useTranslation } from 'react-i18next'import DatePicker from '@/app/components/base/date-and-time-picker/date-picker'import { useAppContext } from '@/context/app-context'import useTimestamp from '@/hooks/use-timestamp'-import { cn } from '@/utils/classnames'type Props = {className?: string@@ -47,7 +47,7 @@ const WrappedDatePicker = ({</div><RiCloseCircleFillclassName={cn(- 'hidden h-4 w-4 cursor-pointer hover:text-components-input-text-filled group-hover:block',+ 'hidden h-4 w-4 cursor-pointer group-hover:block hover:text-components-input-text-filled',value && 'text-text-quaternary',)}onClick={() => handleDateChange()}diff --git a/web/app/components/datasets/metadata/edit-metadata-batch/add-row.tsx b/web/app/components/datasets/metadata/edit-metadata-batch/add-row.tsxindex 20fad9769ad..38b9bb29db8 100644--- a/web/app/components/datasets/metadata/edit-metadata-batch/add-row.tsx+++ b/web/app/components/datasets/metadata/edit-metadata-batch/add-row.tsx@@ -1,9 +1,9 @@'use client'import type { FC } from 'react'import type { MetadataItemWithEdit } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import { RiIndeterminateCircleLine } from '@remixicon/react'import * as React from 'react'-import { cn } from '@/utils/classnames'import InputCombined from './input-combined'import Label from './label'diff --git a/web/app/components/datasets/metadata/edit-metadata-batch/edit-row.tsx b/web/app/components/datasets/metadata/edit-metadata-batch/edit-row.tsxindex 1fdf8c2ef74..32e67146560 100644--- a/web/app/components/datasets/metadata/edit-metadata-batch/edit-row.tsx+++ b/web/app/components/datasets/metadata/edit-metadata-batch/edit-row.tsx@@ -1,9 +1,9 @@'use client'import type { FC } from 'react'import type { MetadataItemWithEdit } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import { RiDeleteBinLine } from '@remixicon/react'import * as React from 'react'-import { cn } from '@/utils/classnames'import { UpdateType } from '../types'import EditedBeacon from './edited-beacon'import InputCombined from './input-combined'@@ -49,7 +49,7 @@ const EditMetadatabatchItem: FC<Props> = ({className={cn('cursor-pointer rounded-md p-1 text-text-tertiary hover:bg-state-destructive-hover hover:text-text-destructive',- isDeleted && 'cursor-default bg-state-destructive-hover text-text-destructive',+ isDeleted && 'cursor-default bg-state-destructive-hover text-text-destructive',)}onClick={() => onRemove(payload.id)}diff --git a/web/app/components/datasets/metadata/edit-metadata-batch/input-combined.tsx b/web/app/components/datasets/metadata/edit-metadata-batch/input-combined.tsxindex 87db1482023..f60f2705a95 100644--- a/web/app/components/datasets/metadata/edit-metadata-batch/input-combined.tsx+++ b/web/app/components/datasets/metadata/edit-metadata-batch/input-combined.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import Input from '@/app/components/base/input'import {@@ -10,7 +11,6 @@ import {NumberFieldIncrement,NumberFieldInput,} from '@/app/components/base/ui/number-field'-import { cn } from '@/utils/classnames'import Datepicker from '../base/date-picker'import { DataType } from '../types'@@ -55,8 +55,8 @@ const InputCombined: FC<Props> = ({className={cn(className, 'rounded-l-md')}/><NumberFieldControls className="overflow-hidden">- <NumberFieldIncrement size="regular" className="pb-0 pt-0" />- <NumberFieldDecrement size="regular" className="pb-0 pt-0" />+ <NumberFieldIncrement size="regular" className="pt-0 pb-0" />+ <NumberFieldDecrement size="regular" className="pt-0 pb-0" /></NumberFieldControls></NumberFieldGroup></NumberField>diff --git a/web/app/components/datasets/metadata/edit-metadata-batch/input-has-set-multiple-value.tsx b/web/app/components/datasets/metadata/edit-metadata-batch/input-has-set-multiple-value.tsxindex edccb9a59d2..337bd47ab0c 100644--- a/web/app/components/datasets/metadata/edit-metadata-batch/input-has-set-multiple-value.tsx+++ b/web/app/components/datasets/metadata/edit-metadata-batch/input-has-set-multiple-value.tsx@@ -1,9 +1,9 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine } from '@remixicon/react'import * as React from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'type Props = {onClear: () => void@@ -17,12 +17,12 @@ const InputHasSetMultipleValue: FC<Props> = ({const { t } = useTranslation()return (<div className="h-6 grow rounded-md bg-components-input-bg-normal p-0.5 text-[0]">- <div className={cn('inline-flex h-5 items-center space-x-0.5 rounded-[5px] border-[0.5px] border-components-panel-border bg-components-badge-white-to-dark pl-1.5 pr-0.5 shadow-xs', readOnly && 'pr-1.5')}>+ <div className={cn('inline-flex h-5 items-center space-x-0.5 rounded-[5px] border-[0.5px] border-components-panel-border bg-components-badge-white-to-dark pr-0.5 pl-1.5 shadow-xs', readOnly && 'pr-1.5')}><div className="system-xs-regular text-text-secondary">{t('metadata.batchEditMetadata.multipleValue', { ns: 'dataset' })}</div>{!readOnly && (- <div className="cursor-pointer radius-xs p-px text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary">+ <div className="cursor-pointer rounded-sm p-px text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary"><RiCloseLine- className="size-3.5 "+ className="size-3.5"onClick={onClear}/></div>diff --git a/web/app/components/datasets/metadata/edit-metadata-batch/label.tsx b/web/app/components/datasets/metadata/edit-metadata-batch/label.tsxindex 08f886be183..186334e511a 100644--- a/web/app/components/datasets/metadata/edit-metadata-batch/label.tsx+++ b/web/app/components/datasets/metadata/edit-metadata-batch/label.tsx@@ -1,7 +1,7 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'type Props = {isDeleted?: boolean@@ -16,7 +16,7 @@ const Label: FC<Props> = ({}) => {return (<div className={cn(- 'system-xs-medium w-[136px] shrink-0 truncate text-text-tertiary',+ 'w-[136px] shrink-0 truncate system-xs-medium text-text-tertiary',isDeleted && 'text-text-quaternary line-through',className,)}diff --git a/web/app/components/datasets/metadata/metadata-dataset/dataset-metadata-drawer.tsx b/web/app/components/datasets/metadata/metadata-dataset/dataset-metadata-drawer.tsxindex f2abf609a21..0b0fc20ffe0 100644--- a/web/app/components/datasets/metadata/metadata-dataset/dataset-metadata-drawer.tsx+++ b/web/app/components/datasets/metadata/metadata-dataset/dataset-metadata-drawer.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { BuiltInMetadataItem, MetadataItemWithValueLength } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import { RiAddLine, RiDeleteBinLine, RiEditLine } from '@remixicon/react'import { useBoolean, useHover } from 'ahooks'import * as React from 'react'@@ -11,7 +12,6 @@ import Input from '@/app/components/base/input'import Modal from '@/app/components/base/modal'import Switch from '@/app/components/base/switch'import Tooltip from '@/app/components/base/tooltip'-import { Button } from '@/app/components/base/ui/button'import {AlertDialog,AlertDialogActions,@@ -21,9 +21,9 @@ import {AlertDialogDescription,AlertDialogTitle,} from '@/app/components/base/ui/alert-dialog'+import { Button } from '@/app/components/base/ui/button'import { toast } from '@/app/components/base/ui/toast'import CreateModal from '@/app/components/datasets/metadata/metadata-dataset/create-metadata-modal'-import { cn } from '@/utils/classnames'import { getIcon } from '../utils/get-icon'import Field from './field'diff --git a/web/app/components/datasets/metadata/metadata-document/index.tsx b/web/app/components/datasets/metadata/metadata-document/index.tsxindex 28c4f9a2ed4..6fb069dd02f 100644--- a/web/app/components/datasets/metadata/metadata-document/index.tsx+++ b/web/app/components/datasets/metadata/metadata-document/index.tsx@@ -1,12 +1,12 @@'use client'import type { FC } from 'react'import type { FullDocumentDetail } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { RiEditLine } from '@remixicon/react'import * as React from 'react'import { useTranslation } from 'react-i18next'import Divider from '@/app/components/base/divider'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import useMetadataDocument from '../hooks/use-metadata-document'import InfoGroup from './info-group'import NoData from './no-data'diff --git a/web/app/components/datasets/metadata/metadata-document/info-group.tsx b/web/app/components/datasets/metadata/metadata-document/info-group.tsxindex 0b21d607bda..6447185758a 100644--- a/web/app/components/datasets/metadata/metadata-document/info-group.tsx+++ b/web/app/components/datasets/metadata/metadata-document/info-group.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { MetadataItemWithValue } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import { RiDeleteBinLine, RiQuestionLine } from '@remixicon/react'import * as React from 'react'import { useTranslation } from 'react-i18next'@@ -8,7 +9,6 @@ import Divider from '@/app/components/base/divider'import Tooltip from '@/app/components/base/tooltip'import useTimestamp from '@/hooks/use-timestamp'import { useRouter } from '@/next/navigation'-import { cn } from '@/utils/classnames'import AddMetadataButton from '../add-metadata-button'import InputCombined from '../edit-metadata-batch/input-combined'import SelectMetadataModal from '../metadata-dataset/select-metadata-modal'@@ -85,7 +85,7 @@ const InfoGroup: FC<Props> = ({onSave={data => onAdd?.(data)}onManage={handleMangeMetadata}/>- {list.length > 0 && <Divider className="my-3 " bgStyle="gradient" />}+ {list.length > 0 && <Divider className="my-3" bgStyle="gradient" />}</div>)}{list.map((item, i) => (@@ -99,12 +99,12 @@ const InfoGroup: FC<Props> = ({value={item.value}onChange={value => onChange?.({ ...item, value })}/>- <div className="shrink-0 cursor-pointer rounded-md p-1 text-text-tertiary hover:bg-state-destructive-hover hover:text-text-destructive">+ <div className="shrink-0 cursor-pointer rounded-md p-1 text-text-tertiary hover:bg-state-destructive-hover hover:text-text-destructive"><RiDeleteBinLine className="size-4" onClick={() => onDelete?.(item)} /></div></div>)- : (<div className="system-xs-regular py-1 text-text-secondary">{(item.value && item.type === DataType.time) ? formatTimestamp((item.value as number), t('metadata.dateTimeFormat', { ns: 'datasetDocuments' })) : item.value}</div>)}+ : (<div className="py-1 system-xs-regular text-text-secondary">{(item.value && item.type === DataType.time) ? formatTimestamp((item.value as number), t('metadata.dateTimeFormat', { ns: 'datasetDocuments' })) : item.value}</div>)}</Field>))}</div>diff --git a/web/app/components/datasets/preview/container.tsx b/web/app/components/datasets/preview/container.tsxindex ed63bbc8c58..742c1e2ac15 100644--- a/web/app/components/datasets/preview/container.tsx+++ b/web/app/components/datasets/preview/container.tsx@@ -1,5 +1,5 @@import type { ComponentProps, FC, ReactNode } from 'react'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'type PreviewContainerProps = ComponentProps<'div'> & {header: ReactNode@@ -14,9 +14,9 @@ const PreviewContainer: FC<PreviewContainerProps> = (props) => {<div{...rest}ref={ref}- className={cn('flex h-full w-full flex-col rounded-tl-xl border-l-[0.5px] border-t-[0.5px] border-components-panel-border bg-background-default-lighter shadow-md shadow-shadow-shadow-5')}+ className={cn('flex h-full w-full flex-col rounded-tl-xl border-t-[0.5px] border-l-[0.5px] border-components-panel-border bg-background-default-lighter shadow-md shadow-shadow-shadow-5')}>- <header className="border-b border-divider-subtle pb-3 pl-5 pr-4 pt-4">+ <header className="border-b border-divider-subtle pt-4 pr-4 pb-3 pl-5">{header}</header><main className={cn('w-full grow overflow-y-auto px-6 py-5', mainClassName)}>diff --git a/web/app/components/datasets/preview/header.tsx b/web/app/components/datasets/preview/header.tsxindex 2da4e497a4d..3646c96f49d 100644--- a/web/app/components/datasets/preview/header.tsx+++ b/web/app/components/datasets/preview/header.tsx@@ -1,5 +1,5 @@import type { ComponentProps, FC } from 'react'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'type PreviewHeaderProps = Omit<ComponentProps<'div'>, 'title'> & {title: string@@ -13,7 +13,7 @@ export const PreviewHeader: FC<PreviewHeaderProps> = (props) => {className={cn(className)}><div- className="system-2xs-semibold-uppercase mb-1 px-1 uppercase text-text-accent"+ className="mb-1 px-1 system-2xs-semibold-uppercase text-text-accent uppercase">{title}</div>diff --git a/web/app/components/datasets/rename-modal/index.tsx b/web/app/components/datasets/rename-modal/index.tsxindex 422851be242..acfca2bbbc9 100644--- a/web/app/components/datasets/rename-modal/index.tsx+++ b/web/app/components/datasets/rename-modal/index.tsx@@ -2,6 +2,7 @@import type { MouseEventHandler } from 'react'import type { AppIconSelection } from '../../base/app-icon-picker'import type { DataSet } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine } from '@remixicon/react'import { noop } from 'es-toolkit/function'import { useCallback, useRef, useState } from 'react'@@ -12,7 +13,6 @@ import Textarea from '@/app/components/base/textarea'import { Button } from '@/app/components/base/ui/button'import { toast } from '@/app/components/base/ui/toast'import { updateDatasetSetting } from '@/service/datasets'-import { cn } from '@/utils/classnames'import AppIcon from '../../base/app-icon'import AppIconPicker from '../../base/app-icon-picker'diff --git a/web/app/components/datasets/settings/index-method/index.tsx b/web/app/components/datasets/settings/index-method/index.tsxindex a50cc92e32e..7e925b869cc 100644--- a/web/app/components/datasets/settings/index-method/index.tsx+++ b/web/app/components/datasets/settings/index-method/index.tsx@@ -1,4 +1,5 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import { useHover } from 'ahooks'import { useRef } from 'react'import { useTranslation } from 'react-i18next'@@ -8,7 +9,6 @@ import {PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'import { IndexingType } from '../../create/step-two'import { EffectColor } from '../chunk-structure/types'import OptionCard from '../option-card'diff --git a/web/app/components/datasets/settings/option-card.tsx b/web/app/components/datasets/settings/option-card.tsxindex d40a72ca448..1d279252179 100644--- a/web/app/components/datasets/settings/option-card.tsx+++ b/web/app/components/datasets/settings/option-card.tsx@@ -1,8 +1,8 @@import type { ReactNode } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import Badge from '@/app/components/base/badge'-import { cn } from '@/utils/classnames'import { ArrowShape } from '../../base/icons/src/vender/knowledge'import { EffectColor } from './chunk-structure/types'@@ -70,7 +70,7 @@ const OptionCard = <T,>({{effectColor && showEffectColor && (<div className={cn(- 'absolute left-[-2px] top-[-2px] h-14 w-14 rounded-full blur-[80px]',+ 'absolute top-[-2px] left-[-2px] h-14 w-14 rounded-full blur-[80px]',`${HEADER_EFFECT_MAP[effectColor]}`,)}/>@@ -112,7 +112,7 @@ const OptionCard = <T,>({{!!(children && showChildren) && (<div className="relative rounded-b-xl bg-components-panel-bg p-4">- <ArrowShape className="absolute left-[14px] top-[-11px] size-4 text-components-panel-bg" />+ <ArrowShape className="absolute top-[-11px] left-[14px] size-4 text-components-panel-bg" />{children}</div>)diff --git a/web/app/components/datasets/settings/permission-selector/index.tsx b/web/app/components/datasets/settings/permission-selector/index.tsxindex cdf13e4b321..a7182d8f797 100644--- a/web/app/components/datasets/settings/permission-selector/index.tsx+++ b/web/app/components/datasets/settings/permission-selector/index.tsx@@ -1,4 +1,5 @@import type { Member } from '@/models/common'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine, RiGroup2Line, RiLock2Line } from '@remixicon/react'import { useDebounceFn } from 'ahooks'import * as React from 'react'@@ -13,7 +14,6 @@ import {import { Avatar } from '@/app/components/base/ui/avatar'import { useSelector as useAppContextWithSelector } from '@/context/app-context'import { DatasetPermission } from '@/models/datasets'-import { cn } from '@/utils/classnames'import MemberItem from './member-item'import Item from './permission-item'@@ -108,7 +108,7 @@ const PermissionSelector = ({<div className="flex size-6 shrink-0 items-center justify-center"><Avatar avatar={userProfile.avatar_url} name={userProfile.name} size="xs" /></div>- <div className="system-sm-regular grow p-1 text-components-input-text-filled">+ <div className="grow p-1 system-sm-regular text-components-input-text-filled">{t('form.permissionsOnlyMe', { ns: 'datasetSettings' })}</div></>@@ -120,7 +120,7 @@ const PermissionSelector = ({<div className="flex size-6 shrink-0 items-center justify-center"><RiGroup2Line className="size-4 text-text-secondary" /></div>- <div className="system-sm-regular grow p-1 text-components-input-text-filled">+ <div className="grow p-1 system-sm-regular text-components-input-text-filled">{t('form.permissionsAllMember', { ns: 'datasetSettings' })}</div></>@@ -145,13 +145,13 @@ const PermissionSelector = ({<Avataravatar={selectedMembers[0].avatar_url}name={selectedMembers[0].name}- className="absolute left-0 top-0 z-0"+ className="absolute top-0 left-0 z-0"size="xxs"/><Avataravatar={selectedMembers[1].avatar_url}name={selectedMembers[1].name}- className="absolute bottom-0 right-0 z-10"+ className="absolute right-0 bottom-0 z-10"size="xxs"/></>@@ -160,7 +160,7 @@ const PermissionSelector = ({</div><divtitle={selectedMemberNames}- className="system-sm-regular grow truncate p-1 text-components-input-text-filled"+ className="grow truncate p-1 system-sm-regular text-components-input-text-filled">{selectedMemberNames}</div>@@ -212,8 +212,8 @@ const PermissionSelector = ({/></div>{isPartialMembers && (- <div className="max-h-[360px] overflow-y-auto border-t border-divider-regular pb-1 pl-1 pr-1">- <div className="sticky left-0 top-0 z-10 bg-components-panel-on-panel-item-bg p-2 pb-1">+ <div className="max-h-[360px] overflow-y-auto border-t border-divider-regular pr-1 pb-1 pl-1">+ <div className="sticky top-0 left-0 z-10 bg-components-panel-on-panel-item-bg p-2 pb-1"><InputshowLeftIconshowClearIcon@@ -247,7 +247,7 @@ const PermissionSelector = ({))}{!showMe && filteredMemberList.length === 0 && (- <div className="system-xs-regular flex items-center justify-center whitespace-pre-wrap px-1 py-6 text-center text-text-tertiary">+ <div className="flex items-center justify-center px-1 py-6 text-center system-xs-regular whitespace-pre-wrap text-text-tertiary">{t('form.onSearchResults', { ns: 'datasetSettings' })}</div>)diff --git a/web/app/components/datasets/settings/permission-selector/member-item.tsx b/web/app/components/datasets/settings/permission-selector/member-item.tsxindex a28ba7ff741..52afd410f18 100644--- a/web/app/components/datasets/settings/permission-selector/member-item.tsx+++ b/web/app/components/datasets/settings/permission-selector/member-item.tsx@@ -1,7 +1,7 @@+import { cn } from '@langgenius/dify-ui/cn'import { RiCheckLine } from '@remixicon/react'import * as React from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'type MemberItemProps = {leftIcon: React.ReactNode@@ -24,12 +24,12 @@ const MemberItem = ({return (<div- className="flex cursor-pointer items-center gap-2 rounded-lg py-1 pl-2 pr-[10px] hover:bg-state-base-hover"+ className="flex cursor-pointer items-center gap-2 rounded-lg py-1 pr-[10px] pl-2 hover:bg-state-base-hover"onClick={onClick}>{leftIcon}<div className="grow">- <div className="system-sm-medium truncate text-text-secondary">+ <div className="truncate system-sm-medium text-text-secondary">{name}{isMe && (<span className="system-xs-regular text-text-tertiary">@@ -37,7 +37,7 @@ const MemberItem = ({</span>)}</div>- <div className="system-xs-regular truncate text-text-tertiary">{email}</div>+ <div className="truncate system-xs-regular text-text-tertiary">{email}</div></div>{isSelected && <RiCheckLine className={cn('size-4 shrink-0 text-text-accent', isMe && 'opacity-30')} />}</div>diff --git a/web/app/components/develop/code.tsx b/web/app/components/develop/code.tsxindex 84246557529..59d6c94e5da 100644--- a/web/app/components/develop/code.tsx+++ b/web/app/components/develop/code.tsx@@ -1,6 +1,7 @@'use client'import type { PropsWithChildren, ReactElement, ReactNode } from 'react'import { Tab, TabGroup, TabList, TabPanel, TabPanels } from '@headlessui/react'+import { cn } from '@langgenius/dify-ui/cn'import {Children,createContext,@@ -9,7 +10,6 @@ import {useRef,useState,} from 'react'-import { cn } from '@/utils/classnames'import { writeTextToClipboard } from '@/utils/clipboard'import { Tag } from './tag'@@ -50,9 +50,9 @@ function CopyButton({ code }: { code: string }) {return (<buttontype="button"- className={cn('group/button absolute right-4 top-1.5 overflow-hidden rounded-full py-1 pl-2 pr-3 text-2xs font-medium opacity-0 backdrop-blur-sm transition focus:opacity-100 group-hover:opacity-100', copied- ? 'bg-emerald-400/10 ring-1 ring-inset ring-emerald-400/20'- : 'hover:bg-white/7.5 dark:bg-white/2.5 bg-white/5 dark:hover:bg-white/5')}+ className={cn('group/button absolute top-1.5 right-4 overflow-hidden rounded-full py-1 pr-3 pl-2 text-2xs font-medium opacity-0 backdrop-blur-sm transition group-hover:opacity-100 focus:opacity-100', copied+ ? 'bg-emerald-400/10 ring-1 ring-emerald-400/20 ring-inset'+ : 'bg-white/5 hover:bg-white/7.5 dark:bg-white/2.5 dark:hover:bg-white/5')}onClick={() => {writeTextToClipboard(code).then(() => {setCopyCount(count => count + 1)@@ -81,7 +81,7 @@ function CodePanelHeader({ tag, label }: { tag?: string, label?: string }) {return nullreturn (- <div className="border-b-white/7.5 bg-white/2.5 dark:bg-white/1 flex h-9 items-center gap-2 border-y border-t-transparent bg-zinc-900 px-4 dark:border-b-white/5">+ <div className="flex h-9 items-center gap-2 border-y border-t-transparent border-b-white/7.5 bg-white/2.5 bg-zinc-900 px-4 dark:border-b-white/5 dark:bg-white/1">{tag && (<div className="dark flex"><Tag variant="small">{tag}</Tag>@@ -116,7 +116,7 @@ function CodePanel({ tag, label, children, targetCode }: ICodePanelProps) {const child = Children.toArray(children)[0] as ReactElement<any>return (- <div className="dark:bg-white/2.5 group">+ <div className="group dark:bg-white/2.5"><CodePanelHeadertag={tag}label={label}diff --git a/web/app/components/develop/doc.tsx b/web/app/components/develop/doc.tsxindex 2f6a069b459..2ebce59b54f 100644--- a/web/app/components/develop/doc.tsx+++ b/web/app/components/develop/doc.tsx@@ -1,12 +1,12 @@'use client'import type { ComponentType } from 'react'import type { App, AppSSO } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import { useMemo } from 'react'import { useLocale } from '@/context/i18n'import useTheme from '@/hooks/use-theme'import { getDocLanguage } from '@/i18n-config/language'import { AppModeEnum, Theme } from '@/types/app'-import { cn } from '@/utils/classnames'import { useDocToc } from './hooks/use-doc-toc'import TemplateEn from './template/template.en.mdx'import TemplateJa from './template/template.ja.mdx'@@ -78,7 +78,7 @@ const Doc = ({ appDetail }: IDocProps) => {return (<div className="flex">- <div className={`fixed right-20 top-32 z-10 transition-all duration-150 ease-out ${isTocExpanded ? 'w-[280px]' : 'w-11'}`}>+ <div className={`fixed top-32 right-20 z-10 transition-all duration-150 ease-out ${isTocExpanded ? 'w-[280px]' : 'w-11'}`}><TocPaneltoc={toc}activeSection={activeSection}diff --git a/web/app/components/develop/md.tsx b/web/app/components/develop/md.tsxindex 11d7b0eed38..d19e10b35b2 100644--- a/web/app/components/develop/md.tsx+++ b/web/app/components/develop/md.tsx@@ -1,6 +1,6 @@'use client'import type { PropsWithChildren } from 'react'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'type IChildrenProps = {children: React.ReactNode@@ -45,7 +45,7 @@ export const Heading = function H2({<><span id={name?.replace(/^#/, '')} className="relative -top-28" /><div className="flex items-center gap-x-3">- <span className={`rounded-lg px-1.5 font-mono text-[0.625rem] font-semibold leading-6 ring-1 ring-inset ${style}`}>{method}</span>+ <span className={`rounded-lg px-1.5 font-mono text-[0.625rem] leading-6 font-semibold ring-1 ring-inset ${style}`}>{method}</span>{/* <span className="h-0.5 w-0.5 rounded-full bg-zinc-300 dark:bg-zinc-600"></span> */}<span className="font-mono text-xs text-zinc-400">{url}</span></div>diff --git a/web/app/components/develop/tag.tsx b/web/app/components/develop/tag.tsxindex a0d7b3088c4..3178046338d 100644--- a/web/app/components/develop/tag.tsx+++ b/web/app/components/develop/tag.tsx@@ -1,5 +1,5 @@'use client'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'const variantStyles = {medium: 'rounded-lg px-1.5 ring-1 ring-inset',@@ -53,7 +53,7 @@ export function Tag({}: ITagProps) {return (<span- className={cn('font-mono text-[0.625rem] font-semibold leading-6', variantStyles[variant], colorStyles[color][variant])}+ className={cn('font-mono text-[0.625rem] leading-6 font-semibold', variantStyles[variant], colorStyles[color][variant])}>{children}</span>diff --git a/web/app/components/develop/toc-panel.tsx b/web/app/components/develop/toc-panel.tsxindex c2b59c6e9e3..c9087a7f25c 100644--- a/web/app/components/develop/toc-panel.tsx+++ b/web/app/components/develop/toc-panel.tsx@@ -1,7 +1,7 @@'use client'import type { TocItem } from './hooks/use-doc-toc'+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'type TocPanelProps = {toc: TocItem[]@@ -30,7 +30,7 @@ const TocPanel = ({ toc, activeSection, isTocExpanded, onToggle, onItemClick }:return (<nav className="toc flex max-h-[calc(100vh-150px)] w-full flex-col overflow-hidden rounded-xl border-[0.5px] border-components-panel-border bg-background-default-hover shadow-xl"><div className="relative z-10 flex items-center justify-between border-b border-components-panel-border-subtle bg-background-default-hover px-4 py-2.5">- <span className="text-xs font-medium uppercase tracking-wide text-text-tertiary">+ <span className="text-xs font-medium tracking-wide text-text-tertiary uppercase">{t('develop.toc', { ns: 'appApi' })}</span><button@@ -43,8 +43,8 @@ const TocPanel = ({ toc, activeSection, isTocExpanded, onToggle, onItemClick }:</button></div>- <div className="from-components-panel-border-subtle/20 pointer-events-none absolute left-0 right-0 top-[41px] z-10 h-2 bg-linear-to-b to-transparent"></div>- <div className="pointer-events-none absolute left-0 right-0 top-[43px] z-10 h-3 bg-linear-to-b from-background-default-hover to-transparent"></div>+ <div className="pointer-events-none absolute top-[41px] right-0 left-0 z-10 h-2 bg-linear-to-b from-components-panel-border-subtle/20 to-transparent"></div>+ <div className="pointer-events-none absolute top-[43px] right-0 left-0 z-10 h-3 bg-linear-to-b from-background-default-hover to-transparent"></div><div className="relative flex-1 overflow-y-auto px-3 py-3 pt-1">{toc.length === 0@@ -88,7 +88,7 @@ const TocPanel = ({ toc, activeSection, isTocExpanded, onToggle, onItemClick }:)}</div>- <div className="pointer-events-none absolute bottom-0 left-0 right-0 z-10 h-4 rounded-b-xl bg-linear-to-t from-background-default-hover to-transparent"></div>+ <div className="pointer-events-none absolute right-0 bottom-0 left-0 z-10 h-4 rounded-b-xl bg-linear-to-t from-background-default-hover to-transparent"></div></nav>)}diff --git a/web/app/components/explore/app-card/index.tsx b/web/app/components/explore/app-card/index.tsxindex ac2397f6ab7..d88eddc2cfa 100644--- a/web/app/components/explore/app-card/index.tsx+++ b/web/app/components/explore/app-card/index.tsx@@ -2,13 +2,13 @@import type { App } from '@/models/explore'import type { TryAppSelection } from '@/types/try-app'import { PlusIcon } from '@heroicons/react/20/solid'+import { cn } from '@langgenius/dify-ui/cn'import { RiInformation2Line } from '@remixicon/react'import { useTranslation } from 'react-i18next'import AppIcon from '@/app/components/base/app-icon'import { Button } from '@/app/components/base/ui/button'import { useGlobalPublicStore } from '@/context/global-public-context'import { AppModeEnum } from '@/types/app'-import { cn } from '@/utils/classnames'import { AppTypeIcon } from '../../app/type-selector'export type AppCardProps = {diff --git a/web/app/components/explore/app-list/index.tsx b/web/app/components/explore/app-list/index.tsxindex f52fa44c4fc..b0e20c531a1 100644--- a/web/app/components/explore/app-list/index.tsx+++ b/web/app/components/explore/app-list/index.tsx@@ -3,6 +3,7 @@import type { CreateAppModalProps } from '@/app/components/explore/create-app-modal'import type { App } from '@/models/explore'import type { TryAppSelection } from '@/types/try-app'+import { cn } from '@langgenius/dify-ui/cn'import { useDebounceFn } from 'ahooks'import { useQueryState } from 'nuqs'import * as React from 'react'@@ -25,7 +26,6 @@ import {import { fetchAppDetail } from '@/service/explore'import { useMembers } from '@/service/use-common'import { useExploreAppList } from '@/service/use-explore'-import { cn } from '@/utils/classnames'import { trackCreateApp } from '@/utils/create-app-tracking'import TryApp from '../try-app'import s from './style.module.css'diff --git a/web/app/components/explore/banner/banner-item.tsx b/web/app/components/explore/banner/banner-item.tsxindex 9082e2abe81..46b2f4a9a28 100644--- a/web/app/components/explore/banner/banner-item.tsx+++ b/web/app/components/explore/banner/banner-item.tsx@@ -1,12 +1,12 @@/* eslint-disable react-hooks-extra/no-direct-set-state-in-use-effect */import type { FC } from 'react'import type { Banner } from '@/models/app'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowRightLine } from '@remixicon/react'import { useCallback, useEffect, useMemo, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'import { trackEvent } from '@/app/components/base/amplitude'import { useCarousel } from '@/app/components/base/carousel'-import { cn } from '@/utils/classnames'import { IndicatorButton } from './indicator-button'type BannerItemProps = {@@ -130,28 +130,28 @@ export const BannerItem: FC<BannerItemProps> = ({>{/* Left content area */}<div className="min-w-0 flex-1">- <div className="flex h-full flex-col gap-3 py-6 pl-8 pr-0">+ <div className="flex h-full flex-col gap-3 py-6 pr-0 pl-8">{/* Text section */}<div className="flex min-h-24 flex-wrap items-end gap-1 py-1">{/* Title area */}<divref={textAreaRef}- className="flex min-w-[480px] max-w-[680px] flex-[1_0_0] flex-col pr-4"+ className="flex max-w-[680px] min-w-[480px] flex-[1_0_0] flex-col pr-4"style={responsiveStyle}>- <p className="title-4xl-semi-bold line-clamp-1 text-dify-logo-blue">+ <p className="line-clamp-1 title-4xl-semi-bold text-dify-logo-blue">{category}</p>- <p className="title-4xl-semi-bold line-clamp-2 text-dify-logo-black">+ <p className="line-clamp-2 title-4xl-semi-bold text-dify-logo-black">{title}</p></div>{/* Description area */}<div- className="min-w-60 max-w-[600px] flex-[1_0_0] self-end overflow-hidden py-1 pr-4"+ className="max-w-[600px] min-w-60 flex-[1_0_0] self-end overflow-hidden py-1 pr-4"style={responsiveStyle}>- <p className="body-sm-regular line-clamp-4 overflow-hidden text-text-tertiary">+ <p className="line-clamp-4 overflow-hidden body-sm-regular text-text-tertiary">{description}</p></div>@@ -161,7 +161,7 @@ export const BannerItem: FC<BannerItemProps> = ({<div className="flex items-center gap-1">{/* View more button */}<div- className="flex min-w-[480px] max-w-[680px] flex-[1_0_0] items-center gap-[6px] py-1 pr-8"+ className="flex max-w-[680px] min-w-[480px] flex-[1_0_0] items-center gap-[6px] py-1 pr-8"style={viewMoreStyle}><div className="flex h-4 w-4 items-center justify-center rounded-full bg-text-accent p-[2px]">@@ -198,7 +198,7 @@ export const BannerItem: FC<BannerItemProps> = ({</div>{/* Right image area */}- <div className="absolute right-0 top-0 flex h-full items-center p-2">+ <div className="absolute top-0 right-0 flex h-full items-center p-2"><imgsrc={imgSrc}alt={title}diff --git a/web/app/components/explore/banner/indicator-button.tsx b/web/app/components/explore/banner/indicator-button.tsxindex f813ee1f4bf..23595f70b9f 100644--- a/web/app/components/explore/banner/indicator-button.tsx+++ b/web/app/components/explore/banner/indicator-button.tsx@@ -1,7 +1,7 @@/* eslint-disable react-hooks-extra/no-direct-set-state-in-use-effect */import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback, useEffect, useRef, useState } from 'react'-import { cn } from '@/utils/classnames'type IndicatorButtonProps = {index: number@@ -77,7 +77,7 @@ export const IndicatorButton: FC<IndicatorButtonProps> = ({<buttononClick={handleClick}className={cn(- 'system-2xs-semibold-uppercase relative flex h-[18px] w-[20px] items-center justify-center rounded-[7px] border border-divider-subtle p-[2px] text-center transition-colors',+ 'relative flex h-[18px] w-[20px] items-center justify-center rounded-[7px] border border-divider-subtle p-[2px] text-center system-2xs-semibold-uppercase transition-colors',isActive? 'bg-text-primary text-components-panel-on-panel-item-bg': 'bg-components-panel-on-panel-item-bg text-text-tertiary hover:text-text-secondary',diff --git a/web/app/components/explore/category.tsx b/web/app/components/explore/category.tsxindex bcc1451253e..de0f5967e40 100644--- a/web/app/components/explore/category.tsx+++ b/web/app/components/explore/category.tsx@@ -1,11 +1,11 @@'use client'import type { FC } from 'react'import type { AppCategory } from '@/models/explore'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import { ThumbsUp } from '@/app/components/base/icons/src/vender/line/alertsAndFeedback'import exploreI18n from '@/i18n/en-US/explore.json'-import { cn } from '@/utils/classnames'type ICategoryProps = {className?: string@@ -29,7 +29,7 @@ const Category: FC<ICategoryProps> = ({const isAllCategories = !list.includes(value as AppCategory) || value === allCategoriesEnconst itemClassName = (isSelected: boolean) => cn(- 'system-sm-medium flex h-7 cursor-pointer items-center rounded-lg border border-transparent px-3 text-text-tertiary hover:bg-components-main-nav-nav-button-bg-active',+ 'flex h-7 cursor-pointer items-center rounded-lg border border-transparent px-3 system-sm-medium text-text-tertiary hover:bg-components-main-nav-nav-button-bg-active',isSelected && 'border-components-main-nav-nav-button-border bg-components-main-nav-nav-button-bg-active text-components-main-nav-nav-button-text-active shadow-xs',)diff --git a/web/app/components/explore/item-operation/index.tsx b/web/app/components/explore/item-operation/index.tsxindex a0f59c269d5..94eed731fa9 100644--- a/web/app/components/explore/item-operation/index.tsx+++ b/web/app/components/explore/item-operation/index.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {RiDeleteBinLine,RiEditLine,@@ -8,9 +9,8 @@ import { useBoolean } from 'ahooks'import * as React from 'react'import { useEffect, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'-import { PortalToFollowElem, PortalToFollowElemContent, PortalToFollowElemTrigger } from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'+import { PortalToFollowElem, PortalToFollowElemContent, PortalToFollowElemTrigger } from '@/app/components/base/portal-to-follow-elem'import { Pin02 } from '../../base/icons/src/vender/line/general'import s from './style.module.css'diff --git a/web/app/components/explore/sidebar/app-nav-item/index.tsx b/web/app/components/explore/sidebar/app-nav-item/index.tsxindex 338f47c88f0..c2156d9decd 100644--- a/web/app/components/explore/sidebar/app-nav-item/index.tsx+++ b/web/app/components/explore/sidebar/app-nav-item/index.tsx@@ -1,13 +1,13 @@'use client'import type { AppIconType } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import { useHover } from 'ahooks'import * as React from 'react'import { useRef } from 'react'import AppIcon from '@/app/components/base/app-icon'import ItemOperation from '@/app/components/explore/item-operation'import { useRouter } from '@/next/navigation'-import { cn } from '@/utils/classnames'type IAppNavItemProps = {isMobile: boolean@@ -46,7 +46,7 @@ export default function AppNavItem({<divref={ref}key={id}- className={cn('system-sm-medium flex h-8 items-center justify-between rounded-lg px-2 text-sm font-normal text-components-menu-item-text mobile:justify-center mobile:px-1', isSelected ? 'bg-state-base-active text-components-menu-item-text-active' : 'hover:bg-state-base-hover hover:text-components-menu-item-text-hover')}+ className={cn('flex h-8 items-center justify-between rounded-lg px-2 system-sm-medium text-sm font-normal text-components-menu-item-text mobile:justify-center mobile:px-1', isSelected ? 'bg-state-base-active text-components-menu-item-text-active' : 'hover:bg-state-base-hover hover:text-components-menu-item-text-hover')}onClick={() => {router.push(url) // use Link causes popup item always trigger jump. Can not be solved by e.stopPropagation().}}@@ -56,7 +56,7 @@ export default function AppNavItem({<><div className="flex w-0 grow items-center space-x-2"><AppIcon size="tiny" iconType={icon_type} icon={icon} background={icon_background} imageUrl={icon_url} />- <div className="system-sm-regular truncate text-components-menu-item-text" title={name}>{name}</div>+ <div className="truncate system-sm-regular text-components-menu-item-text" title={name}>{name}</div></div><div className="h-6 shrink-0" onClick={e => e.stopPropagation()}><ItemOperationdiff --git a/web/app/components/explore/sidebar/index.tsx b/web/app/components/explore/sidebar/index.tsxindex 5253dc71a6b..85602a6bcc3 100644--- a/web/app/components/explore/sidebar/index.tsx+++ b/web/app/components/explore/sidebar/index.tsx@@ -1,4 +1,5 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import { useBoolean } from 'ahooks'import * as React from 'react'import { useState } from 'react'@@ -19,7 +20,6 @@ import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'import Link from '@/next/link'import { useSelectedLayoutSegments } from '@/next/navigation'import { useGetInstalledApps, useUninstallApp, useUpdateAppPinStatus } from '@/service/use-explore'-import { cn } from '@/utils/classnames'import Item from './app-nav-item'import NoApps from './no-apps'@@ -96,7 +96,7 @@ const SideBar = () => {<div className="flex size-6 shrink-0 items-center justify-center rounded-md bg-components-icon-bg-blue-solid"><span aria-hidden="true" className="i-ri-apps-fill size-3.5 text-components-avatar-shape-fill-stop-100" /></div>- {!isMobile && !isFold && <div className={cn('truncate', isDiscoverySelected ? 'text-components-menu-item-text-active system-sm-semibold' : 'text-components-menu-item-text system-sm-regular')}>{t('sidebar.title', { ns: 'explore' })}</div>}+ {!isMobile && !isFold && <div className={cn('truncate', isDiscoverySelected ? 'system-sm-semibold text-components-menu-item-text-active' : 'system-sm-regular text-components-menu-item-text')}>{t('sidebar.title', { ns: 'explore' })}</div>}</Link></div>@@ -109,7 +109,7 @@ const SideBar = () => {{installedApps.length > 0 && (<div className="mt-5 flex min-h-0 flex-1 flex-col">- {!isMobile && !isFold && <p id={webAppsLabelId} className="mb-1.5 break-all pl-2 uppercase text-text-tertiary system-xs-medium-uppercase mobile:px-0">{t('sidebar.webApps', { ns: 'explore' })}</p>}+ {!isMobile && !isFold && <p id={webAppsLabelId} className="mb-1.5 pl-2 system-xs-medium-uppercase break-all text-text-tertiary uppercase mobile:px-0">{t('sidebar.webApps', { ns: 'explore' })}</p>}{shouldUseExpandedScrollArea? (<div className="min-h-0 flex-1">@@ -124,7 +124,7 @@ const SideBar = () => {): (<div- className="h-full min-h-0 flex-1 space-y-0.5 overflow-y-auto overflow-x-hidden"+ className="h-full min-h-0 flex-1 space-y-0.5 overflow-x-hidden overflow-y-auto">{installedAppItems}</div>@@ -133,11 +133,11 @@ const SideBar = () => {)}{!isMobile && (- <div className="mt-auto flex pb-3 pt-3">+ <div className="mt-auto flex pt-3 pb-3"><buttontype="button"aria-label={isFold ? t('sidebar.expandSidebar', { ns: 'layout' }) : t('sidebar.collapseSidebar', { ns: 'layout' })}- className="flex size-8 items-center justify-center rounded-lg text-text-tertiary transition-colors hover:bg-state-base-hover focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-components-input-border-hover"+ className="flex size-8 items-center justify-center rounded-lg text-text-tertiary transition-colors hover:bg-state-base-hover focus-visible:ring-1 focus-visible:ring-components-input-border-hover focus-visible:outline-hidden focus-visible:ring-inset"onClick={toggleIsFold}>{isFold@@ -151,11 +151,11 @@ const SideBar = () => {<AlertDialog open={showConfirm} onOpenChange={setShowConfirm}><AlertDialogContent>- <div className="flex flex-col items-start gap-2 self-stretch pb-4 pl-6 pr-6 pt-6">- <AlertDialogTitle className="w-full text-text-primary title-2xl-semi-bold">+ <div className="flex flex-col items-start gap-2 self-stretch pt-6 pr-6 pb-4 pl-6">+ <AlertDialogTitle className="w-full title-2xl-semi-bold text-text-primary">{t('sidebar.delete.title', { ns: 'explore' })}</AlertDialogTitle>- <AlertDialogDescription className="w-full whitespace-pre-wrap wrap-break-word text-text-tertiary system-md-regular">+ <AlertDialogDescription className="w-full system-md-regular wrap-break-word whitespace-pre-wrap text-text-tertiary">{t('sidebar.delete.content', { ns: 'explore' })}</AlertDialogDescription></div>diff --git a/web/app/components/explore/sidebar/no-apps/index.tsx b/web/app/components/explore/sidebar/no-apps/index.tsxindex f2f406008b2..eafe9586848 100644--- a/web/app/components/explore/sidebar/no-apps/index.tsx+++ b/web/app/components/explore/sidebar/no-apps/index.tsx@@ -1,11 +1,11 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import { useDocLink } from '@/context/i18n'import useTheme from '@/hooks/use-theme'import { Theme } from '@/types/app'-import { cn } from '@/utils/classnames'import s from './style.module.css'const i18nPrefix = 'sidebar.noApps'@@ -17,8 +17,8 @@ const NoApps: FC = () => {return (<div className="rounded-xl bg-background-default-subtle p-4"><div className={cn('h-[35px] w-[86px] bg-contain bg-center bg-no-repeat', theme === Theme.dark ? s.dark : s.light)}></div>- <div className="system-sm-semibold mt-2 text-text-secondary">{t(`${i18nPrefix}.title`, { ns: 'explore' })}</div>- <div className="system-xs-regular my-1 text-text-tertiary">{t(`${i18nPrefix}.description`, { ns: 'explore' })}</div>+ <div className="mt-2 system-sm-semibold text-text-secondary">{t(`${i18nPrefix}.title`, { ns: 'explore' })}</div>+ <div className="my-1 system-xs-regular text-text-tertiary">{t(`${i18nPrefix}.description`, { ns: 'explore' })}</div><a className="system-xs-regular text-text-accent" target="_blank" rel="noopener noreferrer" href={docLink('/use-dify/publish/README')}>{t(`${i18nPrefix}.learnMore`, { ns: 'explore' })}</a></div>)diff --git a/web/app/components/explore/try-app/__tests__/index.spec.tsx b/web/app/components/explore/try-app/__tests__/index.spec.tsxindex 66f25ac16b8..be6c6ea8e2a 100644--- a/web/app/components/explore/try-app/__tests__/index.spec.tsx+++ b/web/app/components/explore/try-app/__tests__/index.spec.tsx@@ -246,7 +246,7 @@ describe('TryApp (main index.tsx)', () => {await waitFor(() => {const buttons = document.body.querySelectorAll('button')const closeButton = Array.from(buttons).find(btn =>- btn.querySelector('svg') || btn.className.includes('radius-lg'),+ btn.querySelector('svg') || btn.className.includes('rounded-[10px]'),)expect(closeButton).toBeInTheDocument()diff --git a/web/app/components/explore/try-app/app-info/index.tsx b/web/app/components/explore/try-app/app-info/index.tsxindex de8e317a6b1..441fabca829 100644--- a/web/app/components/explore/try-app/app-info/index.tsx+++ b/web/app/components/explore/try-app/app-info/index.tsx@@ -1,12 +1,12 @@'use client'import type { FC } from 'react'import type { TryAppInfo } from '@/service/try-app'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import { AppTypeIcon } from '@/app/components/app/type-selector'import AppIcon from '@/app/components/base/app-icon'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import useGetRequirements from './use-get-requirements'type Props = {@@ -30,7 +30,7 @@ const RequirementIcon: FC<RequirementIconProps> = ({ iconUrl }) => {if (hasLoadError) {return (- <div className="flex size-5 items-center justify-center overflow-hidden radius-sm border-[0.5px] border-components-panel-border-subtle bg-background-default-dodge">+ <div className="flex size-5 items-center justify-center overflow-hidden rounded-md border-[0.5px] border-components-panel-border-subtle bg-background-default-dodge"><div className="i-custom-public-other-default-tool-icon size-3 text-text-tertiary" /></div>)diff --git a/web/app/components/explore/try-app/app/chat.tsx b/web/app/components/explore/try-app/app/chat.tsxindex a0c2336c871..3430752cc0a 100644--- a/web/app/components/explore/try-app/app/chat.tsx+++ b/web/app/components/explore/try-app/app/chat.tsx@@ -4,6 +4,7 @@ import type {EmbeddedChatbotContextValue,} from '@/app/components/base/chat/embedded-chatbot/context'import type { TryAppInfo } from '@/service/try-app'+import { cn } from '@langgenius/dify-ui/cn'import { RiResetLeftLine } from '@remixicon/react'import { useBoolean } from 'ahooks'import * as React from 'react'@@ -23,7 +24,6 @@ import ViewFormDropdown from '@/app/components/base/chat/embedded-chatbot/inputsimport Tooltip from '@/app/components/base/tooltip'import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'import { AppSourceType } from '@/service/share'-import { cn } from '@/utils/classnames'import { useThemeContext } from '../../../base/chat/embedded-chatbot/theme/theme-context'type Props = {@@ -74,7 +74,7 @@ const TryApp: FC<Props> = ({background={appDetail.site.icon_background}imageUrl={appDetail.site.icon_url}/>- <div className="system-md-semibold grow truncate text-text-primary" title={appDetail.name}>{appDetail.name}</div>+ <div className="grow truncate system-md-semibold text-text-primary" title={appDetail.name}>{appDetail.name}</div></div><div className="flex items-center gap-1">{currentConversationId && (diff --git a/web/app/components/explore/try-app/app/text-generation.tsx b/web/app/components/explore/try-app/app/text-generation.tsxindex fc8ec957121..5a51199d864 100644--- a/web/app/components/explore/try-app/app/text-generation.tsx+++ b/web/app/components/explore/try-app/app/text-generation.tsx@@ -4,6 +4,7 @@ import type { InputValueTypes, Task } from '../../../share/text-generation/typesimport type { MoreLikeThisConfig, PromptConfig, TextToSpeechConfig } from '@/models/debug'import type { AppData, CustomConfigValueType, SiteInfo } from '@/models/share'import type { VisionFile, VisionSettings } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import { useBoolean } from 'ahooks'import { noop } from 'es-toolkit/function'import * as React from 'react'@@ -20,7 +21,6 @@ import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'import { AppSourceType } from '@/service/share'import { useGetTryAppParams } from '@/service/use-try-app'import { Resolution, TransferMethod } from '@/types/app'-import { cn } from '@/utils/classnames'import { userInputsFormToPromptVariables } from '@/utils/model-config'import RunOnce from '../../../share/text-generation/run-once'@@ -199,7 +199,7 @@ const TextGeneration: FC<Props> = ({)}>{/* Header */}- <div className={cn('shrink-0 space-y-4 pb-2', isPC ? ' p-8 pb-0' : 'p-4 pb-0')}>+ <div className={cn('shrink-0 space-y-4 pb-2', isPC ? 'p-8 pb-0' : 'p-4 pb-0')}><div className="flex items-center gap-3"><AppIconsize={isPC ? 'large' : 'small'}@@ -208,7 +208,7 @@ const TextGeneration: FC<Props> = ({background={siteInfo.icon_background || appDefaultIconBackground}imageUrl={siteInfo.icon_url}/>- <div className="system-md-semibold grow truncate text-text-secondary">{siteInfo.title}</div>+ <div className="grow truncate system-md-semibold text-text-secondary">{siteInfo.title}</div></div>{siteInfo.description && (<div className="system-xs-regular text-text-tertiary">{siteInfo.description}</div>@@ -241,7 +241,7 @@ const TextGeneration: FC<Props> = ({className={cn(isShowResultPanel? 'flex items-center justify-center p-2 pt-6'- : 'absolute left-0 top-0 z-10 flex w-full items-center justify-center px-2 pb-[57px] pt-[3px]',+ : 'absolute top-0 left-0 z-10 flex w-full items-center justify-center px-2 pt-[3px] pb-[57px]',)}onClick={() => {if (isShowResultPanel)diff --git a/web/app/components/explore/try-app/index.tsx b/web/app/components/explore/try-app/index.tsxindex 19fccc72ab8..644047d06f8 100644--- a/web/app/components/explore/try-app/index.tsx+++ b/web/app/components/explore/try-app/index.tsx@@ -67,7 +67,7 @@ const TryApp: FC<Props> = ({<Buttonsize="large"variant="tertiary"- className="flex size-7 items-center justify-center radius-lg p-0 text-components-button-tertiary-text"+ className="flex size-7 items-center justify-center rounded-[10px] p-0 text-components-button-tertiary-text"onClick={onClose}><span className="i-ri-close-line size-5" />diff --git a/web/app/components/explore/try-app/preview/flow-app-preview.tsx b/web/app/components/explore/try-app/preview/flow-app-preview.tsxindex ba64aecfbaf..bb7ddfff918 100644--- a/web/app/components/explore/try-app/preview/flow-app-preview.tsx+++ b/web/app/components/explore/try-app/preview/flow-app-preview.tsx@@ -1,10 +1,10 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import Loading from '@/app/components/base/loading'import WorkflowPreview from '@/app/components/workflow/workflow-preview'import { useGetTryAppFlowPreview } from '@/service/use-try-app'-import { cn } from '@/utils/classnames'type Props = {appId: stringdiff --git a/web/app/components/goto-anything/actions/__tests__/knowledge.spec.ts b/web/app/components/goto-anything/actions/__tests__/knowledge.spec.tsindex 0d78e6cd419..55592cd487a 100644--- a/web/app/components/goto-anything/actions/__tests__/knowledge.spec.ts+++ b/web/app/components/goto-anything/actions/__tests__/knowledge.spec.ts@@ -5,7 +5,7 @@ vi.mock('@/service/datasets', () => ({fetchDatasets: vi.fn(),}))-vi.mock('@/utils/classnames', () => ({+vi.mock('@langgenius/dify-ui/cn', () => ({cn: (...args: string[]) => args.filter(Boolean).join(' '),}))diff --git a/web/app/components/goto-anything/actions/app.tsx b/web/app/components/goto-anything/actions/app.tsxindex ce384f40197..b14d8b58fe5 100644--- a/web/app/components/goto-anything/actions/app.tsx+++ b/web/app/components/goto-anything/actions/app.tsx@@ -39,7 +39,7 @@ const appIcon = (app: App) => (imageUrl={app.icon_url}/><AppTypeIcon- wrapperClassName="absolute -bottom-0.5 -right-0.5 w-4 h-4 radius-xs border border-divider-regular outline-solid outline-components-panel-on-panel-item-bg"+ wrapperClassName="absolute -bottom-0.5 -right-0.5 w-4 h-4 rounded-sm border border-divider-regular outline-solid outline-components-panel-on-panel-item-bg"className="h-3 w-3"type={app.mode}/>diff --git a/web/app/components/goto-anything/actions/knowledge.tsx b/web/app/components/goto-anything/actions/knowledge.tsxindex 9531a3551fa..6b3d5ca78d0 100644--- a/web/app/components/goto-anything/actions/knowledge.tsx+++ b/web/app/components/goto-anything/actions/knowledge.tsx@@ -1,7 +1,7 @@import type { ActionItem, KnowledgeSearchResult } from './types'import type { DataSet } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { fetchDatasets } from '@/service/datasets'-import { cn } from '@/utils/classnames'import { Folder } from '../../base/icons/src/vender/solid/files'const EXTERNAL_PROVIDER = 'external' as constdiff --git a/web/app/components/header/account-dropdown/index.tsx b/web/app/components/header/account-dropdown/index.tsxindex 442554615b0..8552852b817 100644--- a/web/app/components/header/account-dropdown/index.tsx+++ b/web/app/components/header/account-dropdown/index.tsx@@ -1,6 +1,7 @@'use client'import type { MouseEventHandler, ReactNode } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { useState } from 'react'import { useTranslation } from 'react-i18next'import { resetUser } from '@/app/components/base/amplitude/utils'@@ -19,7 +20,6 @@ import { env } from '@/env'import Link from '@/next/link'import { useRouter } from '@/next/navigation'import { useLogout } from '@/service/use-common'-import { cn } from '@/utils/classnames'import AccountAbout from '../account-about'import GithubStar from '../github-star'import Indicator from '../indicator'@@ -138,7 +138,7 @@ export default function AppSelector() {<DropdownMenu open={isAccountMenuOpen} onOpenChange={setIsAccountMenuOpen}><DropdownMenuTriggeraria-label={t('account.account', { ns: 'common' })}- className={cn('inline-flex items-center radius-3xl p-0.5 hover:bg-background-default-dodge', isAccountMenuOpen && 'bg-background-default-dodge')}+ className={cn('inline-flex items-center rounded-[20px] p-0.5 hover:bg-background-default-dodge', isAccountMenuOpen && 'bg-background-default-dodge')}><Avatar avatar={userProfile.avatar_url} name={userProfile.name} size="lg" /></DropdownMenuTrigger>@@ -147,18 +147,18 @@ export default function AppSelector() {popupClassName="w-60 max-w-80 bg-components-panel-bg-blur! py-0! backdrop-blur-xs"><DropdownMenuGroup className="py-1">- <div className="mx-1 flex flex-nowrap items-center py-2 pl-3 pr-2">+ <div className="mx-1 flex flex-nowrap items-center py-2 pr-2 pl-3"><div className="grow">- <div className="break-all text-text-primary system-md-medium">+ <div className="system-md-medium break-all text-text-primary">{userProfile.name}{isEducationAccount && (<PremiumBadge size="s" color="blue" className="ml-1 px-2!">- <span aria-hidden className="i-ri-graduation-cap-fill mr-1 h-3 w-3" />+ <span aria-hidden className="mr-1 i-ri-graduation-cap-fill h-3 w-3" /><span className="system-2xs-medium">EDU</span></PremiumBadge>)}</div>- <div className="break-all text-text-tertiary system-xs-regular">{userProfile.email}</div>+ <div className="system-xs-regular break-all text-text-tertiary">{userProfile.email}</div></div><Avatar avatar={userProfile.avatar_url} name={userProfile.name} size="lg" /></div>@@ -202,7 +202,7 @@ export default function AppSelector() {trailing={(<div className="flex items-center gap-0.5 rounded-[5px] border border-divider-deep bg-components-badge-bg-dimm px-[5px] py-[3px]"><span aria-hidden className="i-ri-star-line size-3 shrink-0 text-text-tertiary" />- <GithubStar className="text-text-tertiary system-2xs-medium-uppercase" />+ <GithubStar className="system-2xs-medium-uppercase text-text-tertiary" /></div>)}/>@@ -217,7 +217,7 @@ export default function AppSelector() {}}trailing={(<div className="flex shrink-0 items-center">- <div className="mr-2 text-text-tertiary system-xs-regular">{langGeniusVersionInfo.current_version}</div>+ <div className="mr-2 system-xs-regular text-text-tertiary">{langGeniusVersionInfo.current_version}</div><Indicator color={langGeniusVersionInfo.current_version === langGeniusVersionInfo.latest_version ? 'green' : 'orange'} /></div>)}diff --git a/web/app/components/header/account-dropdown/menu-item-content.tsx b/web/app/components/header/account-dropdown/menu-item-content.tsxindex 3a5e0211ed0..bf8b1e283e6 100644--- a/web/app/components/header/account-dropdown/menu-item-content.tsx+++ b/web/app/components/header/account-dropdown/menu-item-content.tsx@@ -1,5 +1,5 @@import type { ReactNode } from 'react'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'const menuLabelClassName = 'min-w-0 grow truncate px-1 text-text-secondary system-md-regular'const menuLeadingIconClassName = 'size-4 shrink-0 text-text-tertiary'diff --git a/web/app/components/header/account-dropdown/workplace-selector/index.tsx b/web/app/components/header/account-dropdown/workplace-selector/index.tsxindex 6248a8418ac..70d4384c45a 100644--- a/web/app/components/header/account-dropdown/workplace-selector/index.tsx+++ b/web/app/components/header/account-dropdown/workplace-selector/index.tsx@@ -1,5 +1,6 @@import type { Plan } from '@/app/components/billing/type'import { Menu, MenuButton, MenuItems, Transition } from '@headlessui/react'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine } from '@remixicon/react'import { Fragment } from 'react'import { useTranslation } from 'react-i18next'@@ -7,7 +8,6 @@ import { toast } from '@/app/components/base/ui/toast'import PlanBadge from '@/app/components/header/plan-badge'import { useWorkspacesContext } from '@/context/workspace-context'import { switchWorkspace } from '@/service/common'-import { cn } from '@/utils/classnames'import { basePath } from '@/utils/var'const WorkplaceSelector = () => {@@ -36,10 +36,10 @@ const WorkplaceSelector = () => {`)}><div className="mr-1.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-components-icon-bg-blue-solid text-[13px] max-[800px]:mr-0">- <span className="h-6 bg-gradient-to-r from-components-avatar-shape-fill-stop-0 to-components-avatar-shape-fill-stop-100 bg-clip-text align-middle font-semibold uppercase leading-6 text-shadow-shadow-1 opacity-90">{currentWorkspace?.name[0]?.toLocaleUpperCase()}</span>+ <span className="h-6 bg-gradient-to-r from-components-avatar-shape-fill-stop-0 to-components-avatar-shape-fill-stop-100 bg-clip-text align-middle leading-6 font-semibold text-shadow-shadow-1 uppercase opacity-90">{currentWorkspace?.name[0]?.toLocaleUpperCase()}</span></div><div className="flex min-w-0 items-center">- <div className="min-w-0 max-w-[149px] truncate text-text-secondary system-sm-medium max-[800px]:hidden">{currentWorkspace?.name}</div>+ <div className="max-w-[149px] min-w-0 truncate system-sm-medium text-text-secondary max-[800px]:hidden">{currentWorkspace?.name}</div><RiArrowDownSLine className="h-4 w-4 shrink-0 text-text-secondary" /></div></MenuButton>@@ -52,15 +52,15 @@ const WorkplaceSelector = () => {`)}><div className="flex w-full flex-col items-start self-stretch rounded-xl border-[0.5px] border-components-panel-border p-1 pb-2 shadow-lg">- <div className="flex items-start self-stretch px-3 pb-0.5 pt-1">- <span className="flex-1 text-text-tertiary system-xs-medium-uppercase">{t('userProfile.workspace', { ns: 'common' })}</span>+ <div className="flex items-start self-stretch px-3 pt-1 pb-0.5">+ <span className="flex-1 system-xs-medium-uppercase text-text-tertiary">{t('userProfile.workspace', { ns: 'common' })}</span></div>{workspaces.map(workspace => (- <div className="flex items-center gap-2 self-stretch rounded-lg py-1 pl-3 pr-2 hover:bg-state-base-hover" key={workspace.id} onClick={() => handleSwitchWorkspace(workspace.id)}>+ <div className="flex items-center gap-2 self-stretch rounded-lg py-1 pr-2 pl-3 hover:bg-state-base-hover" key={workspace.id} onClick={() => handleSwitchWorkspace(workspace.id)}><div className="flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-components-icon-bg-blue-solid text-[13px]">- <span className="h-6 bg-gradient-to-r from-components-avatar-shape-fill-stop-0 to-components-avatar-shape-fill-stop-100 bg-clip-text align-middle font-semibold uppercase leading-6 text-shadow-shadow-1 opacity-90">{workspace?.name[0]?.toLocaleUpperCase()}</span>+ <span className="h-6 bg-gradient-to-r from-components-avatar-shape-fill-stop-0 to-components-avatar-shape-fill-stop-100 bg-clip-text align-middle leading-6 font-semibold text-shadow-shadow-1 uppercase opacity-90">{workspace?.name[0]?.toLocaleUpperCase()}</span></div>- <div className="line-clamp-1 grow cursor-pointer overflow-hidden text-ellipsis text-text-secondary system-md-regular">{workspace.name}</div>+ <div className="line-clamp-1 grow cursor-pointer overflow-hidden system-md-regular text-ellipsis text-text-secondary">{workspace.name}</div><PlanBadge plan={workspace.plan as Plan} /></div>))}diff --git a/web/app/components/header/account-setting/Integrations-page/index.tsx b/web/app/components/header/account-setting/Integrations-page/index.tsxindex 29d0d9fcd39..6d8c7a769c3 100644--- a/web/app/components/header/account-setting/Integrations-page/index.tsx+++ b/web/app/components/header/account-setting/Integrations-page/index.tsx@@ -1,9 +1,9 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'import Link from '@/next/link'import { useAccountIntegrates } from '@/service/use-common'-import { cn } from '@/utils/classnames'import s from './index.module.css'const titleClassName = `@@ -40,8 +40,8 @@ export default function IntegrationsPage() {<div key={integrate.provider} className="mb-2 flex items-center rounded-lg border-[0.5px] border-gray-200 bg-gray-50 px-3 py-2"><div className={cn('mr-3 h-8 w-8 rounded-lg border border-gray-100 bg-white', s[`${integrate.provider}-icon`])} /><div className="grow">- <div className="text-sm font-medium leading-[21px] text-gray-800">{info.name}</div>- <div className="text-xs font-normal leading-[18px] text-gray-500">{info.description}</div>+ <div className="text-sm leading-[21px] font-medium text-gray-800">{info.name}</div>+ <div className="text-xs leading-[18px] font-normal text-gray-500">{info.description}</div></div>{!integrate.is_bound && (diff --git a/web/app/components/header/account-setting/api-based-extension-page/empty.tsx b/web/app/components/header/account-setting/api-based-extension-page/empty.tsxindex ca2763e98c5..94a0b52a048 100644--- a/web/app/components/header/account-setting/api-based-extension-page/empty.tsx+++ b/web/app/components/header/account-setting/api-based-extension-page/empty.tsx@@ -11,12 +11,12 @@ const Empty = () => {return (<div className="mb-2 rounded-xl bg-background-section p-6">- <div className="mb-3 flex h-10 w-10 items-center justify-center radius-lg border-[0.5px] border-components-card-border bg-components-card-bg-alt shadow-lg backdrop-blur-xs">+ <div className="mb-3 flex h-10 w-10 items-center justify-center rounded-[10px] border-[0.5px] border-components-card-border bg-components-card-bg-alt shadow-lg backdrop-blur-xs"><RiPuzzle2Line className="h-5 w-5 text-text-accent" /></div>- <div className="system-sm-medium mb-1 text-text-secondary">{t('apiBasedExtension.title', { ns: 'common' })}</div>+ <div className="mb-1 system-sm-medium text-text-secondary">{t('apiBasedExtension.title', { ns: 'common' })}</div><a- className="system-xs-regular flex items-center text-text-accent"+ className="flex items-center system-xs-regular text-text-accent"href={docLink('/use-dify/workspace/api-extension/api-extension')}target="_blank"rel="noopener noreferrer"diff --git a/web/app/components/header/account-setting/collapse/index.tsx b/web/app/components/header/account-setting/collapse/index.tsxindex 7c66256fe52..f7cf1edcc8c 100644--- a/web/app/components/header/account-setting/collapse/index.tsx+++ b/web/app/components/header/account-setting/collapse/index.tsx@@ -1,6 +1,6 @@import { ChevronDownIcon, ChevronRightIcon } from '@heroicons/react/24/outline'+import { cn } from '@langgenius/dify-ui/cn'import { useState } from 'react'-import { cn } from '@/utils/classnames'export type IItem = {key: string@@ -26,7 +26,7 @@ const Collapse = ({return (<div className={cn('overflow-hidden rounded-xl bg-background-section-burn', wrapperClassName)}>- <div className="flex cursor-pointer items-center justify-between px-3 py-2 text-xs font-medium leading-[18px] text-text-secondary" onClick={toggle}>+ <div className="flex cursor-pointer items-center justify-between px-3 py-2 text-xs leading-[18px] font-medium text-text-secondary" onClick={toggle}>{title}{opendiff --git a/web/app/components/header/account-setting/data-source-page-new/card.tsx b/web/app/components/header/account-setting/data-source-page-new/card.tsxindex 0f7a11f61fb..9e8a54eeb23 100644--- a/web/app/components/header/account-setting/data-source-page-new/card.tsx+++ b/web/app/components/header/account-setting/data-source-page-new/card.tsx@@ -164,7 +164,7 @@ const Card = ({{!credentials_list.length && (<div className="p-3 pt-1">- <div className="flex h-10 items-center justify-center radius-lg bg-background-section system-xs-regular text-text-tertiary">+ <div className="flex h-10 items-center justify-center rounded-[10px] bg-background-section system-xs-regular text-text-tertiary">{t('auth.emptyAuth', { ns: 'plugin' })}</div></div>diff --git a/web/app/components/header/account-setting/data-source-page-new/install-from-marketplace.tsx b/web/app/components/header/account-setting/data-source-page-new/install-from-marketplace.tsxindex d9c342b4d62..d952559fbf9 100644--- a/web/app/components/header/account-setting/data-source-page-new/install-from-marketplace.tsx+++ b/web/app/components/header/account-setting/data-source-page-new/install-from-marketplace.tsx@@ -1,4 +1,5 @@import type { Plugin } from '@/app/components/plugins/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowDownSLine,RiArrowRightUpLine,@@ -15,7 +16,6 @@ import Loading from '@/app/components/base/loading'import List from '@/app/components/plugins/marketplace/list'import ProviderCard from '@/app/components/plugins/provider-card'import Link from '@/next/link'-import { cn } from '@/utils/classnames'import { getMarketplaceUrl } from '@/utils/var'import {useMarketplaceAllPlugins,@@ -48,13 +48,13 @@ const InstallFromMarketplace = ({<div className="mb-2"><Divider className="mt-4! h-px" /><div className="flex items-center justify-between">- <div className="system-md-semibold flex cursor-pointer items-center gap-1 text-text-primary" onClick={() => setCollapse(!collapse)}>+ <div className="flex cursor-pointer items-center gap-1 system-md-semibold text-text-primary" onClick={() => setCollapse(!collapse)}><RiArrowDownSLine className={cn('h-4 w-4', collapse && '-rotate-90')} />{t('modelProvider.installDataSourceProvider', { ns: 'common' })}</div><div className="mb-2 flex items-center pt-2">- <span className="system-sm-regular pr-1 text-text-tertiary">{t('modelProvider.discoverMore', { ns: 'common' })}</span>- <Link target="_blank" href={getMarketplaceUrl('', { theme })} className="system-sm-medium inline-flex items-center text-text-accent">+ <span className="pr-1 system-sm-regular text-text-tertiary">{t('modelProvider.discoverMore', { ns: 'common' })}</span>+ <Link target="_blank" href={getMarketplaceUrl('', { theme })} className="inline-flex items-center system-sm-medium text-text-accent">{t('marketplace.difyMarketplace', { ns: 'plugin' })}<RiArrowRightUpLine className="h-4 w-4" /></Link>diff --git a/web/app/components/header/account-setting/data-source-page-new/item.tsx b/web/app/components/header/account-setting/data-source-page-new/item.tsxindex 9983a22b2c1..658d685ab2a 100644--- a/web/app/components/header/account-setting/data-source-page-new/item.tsx+++ b/web/app/components/header/account-setting/data-source-page-new/item.tsx@@ -30,7 +30,7 @@ const Item = ({renaming && (<div className="flex w-full items-center space-x-1"><Input- wrapperClassName="grow radius-sm"+ wrapperClassName="grow rounded-md"className="h-6"value={renameValue}onChange={e => setRenameValue(e.target.value)}diff --git a/web/app/components/header/account-setting/index.tsx b/web/app/components/header/account-setting/index.tsxindex d061efb9c69..64dff27cf61 100644--- a/web/app/components/header/account-setting/index.tsx+++ b/web/app/components/header/account-setting/index.tsx@@ -1,5 +1,6 @@'use client'import type { AccountSettingTab } from '@/app/components/header/account-setting/constants'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'import SearchInput from '@/app/components/base/search-input'@@ -15,7 +16,6 @@ import MenuDialog from '@/app/components/header/account-setting/menu-dialog'import { useAppContext } from '@/context/app-context'import { useProviderContext } from '@/context/provider-context'import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'-import { cn } from '@/utils/classnames'import ApiBasedExtensionPage from './api-based-extension-page'import DataSourcePage from './data-source-page-new'import LanguagePage from './language-page'diff --git a/web/app/components/header/account-setting/members-page/edit-workspace-modal/index.tsx b/web/app/components/header/account-setting/members-page/edit-workspace-modal/index.tsxindex 93acf76d006..b4dbe243cf5 100644--- a/web/app/components/header/account-setting/members-page/edit-workspace-modal/index.tsx+++ b/web/app/components/header/account-setting/members-page/edit-workspace-modal/index.tsx@@ -1,4 +1,5 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import { useId, useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'import Input from '@/app/components/base/input'@@ -7,7 +8,6 @@ import { Dialog, DialogCloseButton, DialogContent, DialogTitle } from '@/app/comimport { toast } from '@/app/components/base/ui/toast'import { useAppContext } from '@/context/app-context'import { updateWorkspaceInfo } from '@/service/common'-import { cn } from '@/utils/classnames'type IEditWorkspaceModalProps = {onCancel: () => voiddiff --git a/web/app/components/header/account-setting/members-page/invite-modal/index.tsx b/web/app/components/header/account-setting/members-page/invite-modal/index.tsxindex 4d22c972593..e90455f2d40 100644--- a/web/app/components/header/account-setting/members-page/invite-modal/index.tsx+++ b/web/app/components/header/account-setting/members-page/invite-modal/index.tsx@@ -1,6 +1,7 @@'use client'import type { RoleKey } from './role-selector'import type { InvitationResult } from '@/models/common'+import { cn } from '@langgenius/dify-ui/cn'import { useBoolean } from 'ahooks'import { useCallback, useEffect, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -12,7 +13,6 @@ import { emailRegex } from '@/config'import { useLocale } from '@/context/i18n'import { useProviderContextSelector } from '@/context/provider-context'import { inviteMember } from '@/service/common'-import { cn } from '@/utils/classnames'import RoleSelector from './role-selector'import 'react-multi-email/dist/style.css'diff --git a/web/app/components/header/account-setting/members-page/invite-modal/role-selector.tsx b/web/app/components/header/account-setting/members-page/invite-modal/role-selector.tsxindex 5d9b80bd1ef..68cec4fe711 100644--- a/web/app/components/header/account-setting/members-page/invite-modal/role-selector.tsx+++ b/web/app/components/header/account-setting/members-page/invite-modal/role-selector.tsx@@ -1,3 +1,4 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import {@@ -6,7 +7,6 @@ import {PopoverTrigger,} from '@/app/components/base/ui/popover'import { useProviderContext } from '@/context/provider-context'-import { cn } from '@/utils/classnames'const roleI18nKeyMap = {normal: 'members.normal',@@ -62,7 +62,7 @@ const RoleSelector = ({ value, onChange }: RoleSelectorProps) => {{value === 'normal' && (<divdata-testid="role-option-check"- className="i-custom-vender-line-general-check absolute left-0 top-0.5 h-4 w-4 text-text-accent"+ className="absolute top-0.5 left-0 i-custom-vender-line-general-check h-4 w-4 text-text-accent"/>)}</div>@@ -81,7 +81,7 @@ const RoleSelector = ({ value, onChange }: RoleSelectorProps) => {{value === 'editor' && (<divdata-testid="role-option-check"- className="i-custom-vender-line-general-check absolute left-0 top-0.5 h-4 w-4 text-text-accent"+ className="absolute top-0.5 left-0 i-custom-vender-line-general-check h-4 w-4 text-text-accent"/>)}</div>@@ -100,7 +100,7 @@ const RoleSelector = ({ value, onChange }: RoleSelectorProps) => {{value === 'admin' && (<divdata-testid="role-option-check"- className="i-custom-vender-line-general-check absolute left-0 top-0.5 h-4 w-4 text-text-accent"+ className="absolute top-0.5 left-0 i-custom-vender-line-general-check h-4 w-4 text-text-accent"/>)}</div>@@ -120,7 +120,7 @@ const RoleSelector = ({ value, onChange }: RoleSelectorProps) => {{value === 'dataset_operator' && (<divdata-testid="role-option-check"- className="i-custom-vender-line-general-check absolute left-0 top-0.5 h-4 w-4 text-text-accent"+ className="absolute top-0.5 left-0 i-custom-vender-line-general-check h-4 w-4 text-text-accent"/>)}</div>diff --git a/web/app/components/header/account-setting/members-page/operation/index.tsx b/web/app/components/header/account-setting/members-page/operation/index.tsxindex d8d61ecdc81..5fb3be01959 100644--- a/web/app/components/header/account-setting/members-page/operation/index.tsx+++ b/web/app/components/header/account-setting/members-page/operation/index.tsx@@ -1,13 +1,13 @@'use client'import type { Member } from '@/models/common'import { CheckIcon, ChevronDownIcon } from '@heroicons/react/24/outline'+import { cn } from '@langgenius/dify-ui/cn'import { memo, useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'import { PortalToFollowElem, PortalToFollowElemContent, PortalToFollowElemTrigger } from '@/app/components/base/portal-to-follow-elem'import { toast } from '@/app/components/base/ui/toast'import { useProviderContext } from '@/context/provider-context'import { deleteMemberOrCancelInvitation, updateMemberRole } from '@/service/common'-import { cn } from '@/utils/classnames'type IOperationProps = {member: Member@@ -76,7 +76,7 @@ const Operation = ({ member, operatorRole, onOperate }: IOperationProps) => {return (<PortalToFollowElem open={open} onOpenChange={setOpen} placement="bottom-end" offset={{ mainAxis: 4 }}><PortalToFollowElemTrigger asChild onClick={() => setOpen(prev => !prev)}>- <div className={cn('group flex h-full w-full cursor-pointer items-center justify-between px-3 text-text-secondary system-sm-regular hover:bg-state-base-hover', open && 'bg-state-base-hover')}>+ <div className={cn('group flex h-full w-full cursor-pointer items-center justify-between px-3 system-sm-regular text-text-secondary hover:bg-state-base-hover', open && 'bg-state-base-hover')}>{RoleMap[member.role] || RoleMap.normal}<ChevronDownIcon className={cn('h-4 w-4 shrink-0 group-hover:block', open ? 'block' : 'hidden')} /></div>@@ -87,21 +87,21 @@ const Operation = ({ member, operatorRole, onOperate }: IOperationProps) => {{roleList.map(role => (<div key={role} className="flex cursor-pointer rounded-lg px-3 py-2 hover:bg-state-base-hover" onClick={() => handleUpdateMemberRole(role)}>{role === member.role- ? <CheckIcon className="mr-1 mt-[2px] h-4 w-4 text-text-accent" />- : <div className="mr-1 mt-[2px] h-4 w-4 text-text-accent" />}+ ? <CheckIcon className="mt-[2px] mr-1 h-4 w-4 text-text-accent" />+ : <div className="mt-[2px] mr-1 h-4 w-4 text-text-accent" />}<div>- <div className="whitespace-nowrap text-text-secondary system-sm-semibold">{t(roleI18nKeyMap[role].label, { ns: 'common' })}</div>- <div className="whitespace-nowrap text-text-tertiary system-xs-regular">{t(roleI18nKeyMap[role].tip, { ns: 'common' })}</div>+ <div className="system-sm-semibold whitespace-nowrap text-text-secondary">{t(roleI18nKeyMap[role].label, { ns: 'common' })}</div>+ <div className="system-xs-regular whitespace-nowrap text-text-tertiary">{t(roleI18nKeyMap[role].tip, { ns: 'common' })}</div></div></div>))}</div><div className="border-t border-divider-subtle p-1"><div className="flex cursor-pointer rounded-lg px-3 py-2 hover:bg-state-base-hover" onClick={handleDeleteMemberOrCancelInvitation}>- <div className="mr-1 mt-[2px] h-4 w-4 text-text-accent" />+ <div className="mt-[2px] mr-1 h-4 w-4 text-text-accent" /><div>- <div className="whitespace-nowrap text-text-secondary system-sm-semibold">{t('members.removeFromTeam', { ns: 'common' })}</div>- <div className="whitespace-nowrap text-text-tertiary system-xs-regular">{t('members.removeFromTeamTip', { ns: 'common' })}</div>+ <div className="system-sm-semibold whitespace-nowrap text-text-secondary">{t('members.removeFromTeam', { ns: 'common' })}</div>+ <div className="system-xs-regular whitespace-nowrap text-text-tertiary">{t('members.removeFromTeamTip', { ns: 'common' })}</div></div></div></div>diff --git a/web/app/components/header/account-setting/members-page/operation/transfer-ownership.tsx b/web/app/components/header/account-setting/members-page/operation/transfer-ownership.tsxindex bc5b2a66c10..b485aed7048 100644--- a/web/app/components/header/account-setting/members-page/operation/transfer-ownership.tsx+++ b/web/app/components/header/account-setting/members-page/operation/transfer-ownership.tsx@@ -1,5 +1,6 @@'use client'import { Menu, MenuButton, MenuItem, MenuItems, Transition } from '@headlessui/react'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowDownSLine,} from '@remixicon/react'@@ -9,7 +10,6 @@ import Loading from '@/app/components/base/loading'import { useAppContext } from '@/context/app-context'import { useGlobalPublicStore } from '@/context/global-public-context'import { useWorkspacePermissions } from '@/service/use-workspace'-import { cn } from '@/utils/classnames'type Props = {onOperate: () => void@@ -25,7 +25,7 @@ const TransferOwnership = ({ onOperate }: Props) => {return <Loading />}if (!workspacePermissions || workspacePermissions.allow_owner_transfer !== true) {- return <span className="system-sm-regular px-3 text-text-secondary">{t('members.owner', { ns: 'common' })}</span>+ return <span className="px-3 system-sm-regular text-text-secondary">{t('members.owner', { ns: 'common' })}</span>}}@@ -34,7 +34,7 @@ const TransferOwnership = ({ onOperate }: Props) => {{({ open }) => (<>- <MenuButton className={cn('system-sm-regular group flex h-full w-full cursor-pointer items-center justify-between px-3 text-text-secondary hover:bg-state-base-hover', open && 'bg-state-base-hover')}>+ <MenuButton className={cn('group flex h-full w-full cursor-pointer items-center justify-between px-3 system-sm-regular text-text-secondary hover:bg-state-base-hover', open && 'bg-state-base-hover')}>{t('members.owner', { ns: 'common' })}<RiArrowDownSLine className={cn('h-4 w-4 group-hover:block', open ? 'block' : 'hidden')} /></MenuButton>@@ -48,7 +48,7 @@ const TransferOwnership = ({ onOperate }: Props) => {leaveTo="transform opacity-0 scale-95"><MenuItems- className={cn('absolute right-0 top-[52px] z-10 origin-top-right rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur shadow-lg backdrop-blur-xs')}+ className={cn('absolute top-[52px] right-0 z-10 origin-top-right rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur shadow-lg backdrop-blur-xs')}><div className="p-1"><MenuItem>diff --git a/web/app/components/header/account-setting/members-page/transfer-ownership-modal/member-selector.tsx b/web/app/components/header/account-setting/members-page/transfer-ownership-modal/member-selector.tsxindex 59e69b92e2c..713104fcc3c 100644--- a/web/app/components/header/account-setting/members-page/transfer-ownership-modal/member-selector.tsx+++ b/web/app/components/header/account-setting/members-page/transfer-ownership-modal/member-selector.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -7,7 +8,6 @@ import Input from '@/app/components/base/input'import { PortalToFollowElem, PortalToFollowElemContent, PortalToFollowElemTrigger } from '@/app/components/base/portal-to-follow-elem'import { Avatar } from '@/app/components/base/ui/avatar'import { useMembers } from '@/service/use-common'-import { cn } from '@/utils/classnames'type Props = {value?: any@@ -65,13 +65,13 @@ const MemberSelector: FC<Props> = ({className={cn('group flex cursor-pointer items-center gap-1.5 rounded-lg bg-components-input-bg-normal px-2 py-1 hover:bg-state-base-hover-alt', open && 'bg-state-base-hover-alt')}>{!currentValue && (- <div className="grow p-1 text-components-input-text-placeholder system-sm-regular">{t('members.transferModal.transferPlaceholder', { ns: 'common' })}</div>+ <div className="grow p-1 system-sm-regular text-components-input-text-placeholder">{t('members.transferModal.transferPlaceholder', { ns: 'common' })}</div>)}{currentValue && (<><Avatar avatar={currentValue.avatar_url} size="sm" name={currentValue.name} />- <div className="grow truncate text-text-secondary system-sm-medium">{currentValue.name}</div>- <div className="text-text-quaternary system-xs-regular">{currentValue.email}</div>+ <div className="grow truncate system-sm-medium text-text-secondary">{currentValue.name}</div>+ <div className="system-xs-regular text-text-quaternary">{currentValue.email}</div></>)}<div className={cn('i-ri-arrow-down-s-line h-4 w-4 text-text-quaternary group-hover:text-text-secondary', open && 'text-text-secondary')} />@@ -92,15 +92,15 @@ const MemberSelector: FC<Props> = ({<divkey={account.id}data-testid="member-selector-item"- className="flex cursor-pointer items-center gap-2 rounded-lg py-1 pl-2 pr-3 hover:bg-state-base-hover"+ className="flex cursor-pointer items-center gap-2 rounded-lg py-1 pr-3 pl-2 hover:bg-state-base-hover"onClick={() => {onSelect(account.id)setOpen(false)}}><Avatar avatar={account.avatar_url} size="sm" name={account.name} />- <div className="grow truncate text-text-secondary system-sm-medium">{account.name}</div>- <div className="text-text-quaternary system-xs-regular">{account.email}</div>+ <div className="grow truncate system-sm-medium text-text-secondary">{account.name}</div>+ <div className="system-xs-regular text-text-quaternary">{account.email}</div></div>))}</div>diff --git a/web/app/components/header/account-setting/menu-dialog.tsx b/web/app/components/header/account-setting/menu-dialog.tsxindex 354e57650c7..ae2be362fbe 100644--- a/web/app/components/header/account-setting/menu-dialog.tsx+++ b/web/app/components/header/account-setting/menu-dialog.tsx@@ -1,7 +1,7 @@import type { ReactNode } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback } from 'react'import { Dialog, DialogContent } from '@/app/components/base/ui/dialog'-import { cn } from '@/utils/classnames'type DialogProps = {className?: string@@ -29,11 +29,11 @@ const MenuDialog = ({<DialogContentoverlayClassName="bg-transparent"className={cn(- 'left-0 top-0 h-full max-h-none w-full max-w-none translate-x-0 translate-y-0 overflow-hidden rounded-none border-none bg-background-sidenav-bg p-0 shadow-none backdrop-blur-md',+ 'top-0 left-0 h-full max-h-none w-full max-w-none translate-x-0 translate-y-0 overflow-hidden rounded-none border-none bg-background-sidenav-bg p-0 shadow-none backdrop-blur-md',className,)}>- <div className="absolute right-0 top-0 h-full w-1/2 bg-components-panel-bg" />+ <div className="absolute top-0 right-0 h-full w-1/2 bg-components-panel-bg" />{children}</DialogContent></Dialog>diff --git a/web/app/components/header/account-setting/model-provider-page/index.tsx b/web/app/components/header/account-setting/model-provider-page/index.tsxindex cea67e54ff1..06ab1776cb4 100644--- a/web/app/components/header/account-setting/model-provider-page/index.tsx+++ b/web/app/components/header/account-setting/model-provider-page/index.tsx@@ -2,6 +2,7 @@ import type {ModelProvider,} from './declarations'import type { PluginDetail } from '@/app/components/plugins/types'+import { cn } from '@langgenius/dify-ui/cn'import { useQuery } from '@tanstack/react-query'import { useDebounce } from 'ahooks'import { useMemo } from 'react'@@ -11,7 +12,6 @@ import { IS_CLOUD_EDITION } from '@/config'import { useSystemFeaturesQuery } from '@/context/global-public-context'import { useProviderContext } from '@/context/provider-context'import { consoleQuery } from '@/service/client'-import { cn } from '@/utils/classnames'import {CustomConfigurationStatusEnum,ModelTypeEnum,@@ -132,15 +132,15 @@ const ModelProviderPage = ({ searchText }: Props) => {return (<div className="relative -mt-2 pt-1"><div className={cn('mb-2 flex items-center')}>- <div className="grow text-text-primary system-md-semibold">{t('modelProvider.models', { ns: 'common' })}</div>+ <div className="grow system-md-semibold text-text-primary">{t('modelProvider.models', { ns: 'common' })}</div><div className={cn('relative flex shrink-0 items-center justify-end gap-2 rounded-lg border border-transparent p-px',showWarning && 'border-components-panel-border bg-components-panel-bg-blur pl-2 shadow-xs',)}>- {showWarning && <div className="absolute bottom-0 left-0 right-0 top-0 opacity-40" style={{ background: 'linear-gradient(92deg, rgba(247, 144, 9, 0.25) 0%, rgba(255, 255, 255, 0.00) 100%)' }} />}+ {showWarning && <div className="absolute top-0 right-0 bottom-0 left-0 opacity-40" style={{ background: 'linear-gradient(92deg, rgba(247, 144, 9, 0.25) 0%, rgba(255, 255, 255, 0.00) 100%)' }} />}{showWarning && (- <div className="flex items-center gap-1 text-text-primary system-xs-medium">+ <div className="flex items-center gap-1 system-xs-medium text-text-primary"><span className="i-ri-alert-fill h-4 w-4 text-text-warning-secondary" /><span className="max-w-[460px] truncate" title={t(warningTextKey, { ns: 'common' })}>{t(warningTextKey, { ns: 'common' })}</span></div>@@ -158,12 +158,12 @@ const ModelProviderPage = ({ searchText }: Props) => {</div>{IS_CLOUD_EDITION && <QuotaPanel providers={providers} />}{!filteredConfiguredProviders?.length && (- <div className="mb-2 radius-lg bg-workflow-process-bg p-4">- <div className="flex h-10 w-10 items-center justify-center radius-lg border-[0.5px] border-components-card-border bg-components-card-bg shadow-lg backdrop-blur-sm">+ <div className="mb-2 rounded-[10px] bg-workflow-process-bg p-4">+ <div className="flex h-10 w-10 items-center justify-center rounded-[10px] border-[0.5px] border-components-card-border bg-components-card-bg shadow-lg backdrop-blur-sm"><span className="i-ri-brain-line h-5 w-5 text-text-primary" /></div>- <div className="mt-2 text-text-secondary system-sm-medium">{t('modelProvider.emptyProviderTitle', { ns: 'common' })}</div>- <div className="mt-1 text-text-tertiary system-xs-regular">{t('modelProvider.emptyProviderTip', { ns: 'common' })}</div>+ <div className="mt-2 system-sm-medium text-text-secondary">{t('modelProvider.emptyProviderTitle', { ns: 'common' })}</div>+ <div className="mt-1 system-xs-regular text-text-tertiary">{t('modelProvider.emptyProviderTip', { ns: 'common' })}</div></div>)}{!!filteredConfiguredProviders?.length && (@@ -179,7 +179,7 @@ const ModelProviderPage = ({ searchText }: Props) => {)}{!!filteredNotConfiguredProviders?.length && (<>- <div className="mb-2 flex items-center pt-2 text-text-primary system-md-semibold">{t('modelProvider.toBeConfigured', { ns: 'common' })}</div>+ <div className="mb-2 flex items-center pt-2 system-md-semibold text-text-primary">{t('modelProvider.toBeConfigured', { ns: 'common' })}</div><div className="relative">{filteredNotConfiguredProviders?.map(provider => (<ProviderAddedCarddiff --git a/web/app/components/header/account-setting/model-provider-page/install-from-marketplace.tsx b/web/app/components/header/account-setting/model-provider-page/install-from-marketplace.tsxindex 02da58dba75..dd4784916f3 100644--- a/web/app/components/header/account-setting/model-provider-page/install-from-marketplace.tsx+++ b/web/app/components/header/account-setting/model-provider-page/install-from-marketplace.tsx@@ -2,6 +2,7 @@ import type {ModelProvider,} from './declarations'import type { Plugin } from '@/app/components/plugins/types'+import { cn } from '@langgenius/dify-ui/cn'import { useTheme } from 'next-themes'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -10,7 +11,6 @@ import Loading from '@/app/components/base/loading'import List from '@/app/components/plugins/marketplace/list'import ProviderCard from '@/app/components/plugins/provider-card'import Link from '@/next/link'-import { cn } from '@/utils/classnames'import { getMarketplaceUrl } from '@/utils/var'import {useMarketplaceAllPlugins,@@ -45,7 +45,7 @@ const InstallFromMarketplace = ({<div className="flex items-center justify-between"><buttontype="button"- className="flex cursor-pointer items-center gap-1 border-0 bg-transparent p-0 text-left text-text-primary system-md-semibold"+ className="flex cursor-pointer items-center gap-1 border-0 bg-transparent p-0 text-left system-md-semibold text-text-primary"onClick={() => setCollapse(prev => !prev)}aria-expanded={!collapse}>@@ -53,12 +53,12 @@ const InstallFromMarketplace = ({{t('modelProvider.installProvider', { ns: 'common' })}</button><div className="mb-2 flex items-center pt-2">- <span className="pr-1 text-text-tertiary system-sm-regular">{t('modelProvider.discoverMore', { ns: 'common' })}</span>+ <span className="pr-1 system-sm-regular text-text-tertiary">{t('modelProvider.discoverMore', { ns: 'common' })}</span><Linktarget="_blank"rel="noopener noreferrer"href={getMarketplaceUrl('', { theme })}- className="inline-flex items-center text-text-accent system-sm-medium"+ className="inline-flex items-center system-sm-medium text-text-accent">{t('marketplace.difyMarketplace', { ns: 'plugin' })}<span className="i-ri-arrow-right-up-line h-4 w-4" />diff --git a/web/app/components/header/account-setting/model-provider-page/model-auth/add-credential-in-load-balancing.tsx b/web/app/components/header/account-setting/model-provider-page/model-auth/add-credential-in-load-balancing.tsxindex 31f3ecda940..79e4bb9b3fa 100644--- a/web/app/components/header/account-setting/model-provider-page/model-auth/add-credential-in-load-balancing.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-auth/add-credential-in-load-balancing.tsx@@ -5,6 +5,7 @@ import type {ModelCredential,ModelProvider,} from '@/app/components/header/account-setting/model-provider-page/declarations'+import { cn } from '@langgenius/dify-ui/cn'import { RiAddLine } from '@remixicon/react'import {memo,@@ -13,7 +14,6 @@ import {import { useTranslation } from 'react-i18next'import { ConfigurationMethodEnum, ModelModalModeEnum } from '@/app/components/header/account-setting/model-provider-page/declarations'import { Authorized } from '@/app/components/header/account-setting/model-provider-page/model-auth'-import { cn } from '@/utils/classnames'type AddCredentialInLoadBalancingProps = {provider: ModelProvider@@ -47,7 +47,7 @@ const AddCredentialInLoadBalancing = ({const renderTrigger = useCallback((open?: boolean) => {const Item = (<div className={cn(- 'system-sm-medium flex h-8 items-center rounded-lg px-3 text-text-accent hover:bg-state-base-hover',+ 'flex h-8 items-center rounded-lg px-3 system-sm-medium text-text-accent hover:bg-state-base-hover',open && 'bg-state-base-hover',)}>diff --git a/web/app/components/header/account-setting/model-provider-page/model-auth/add-custom-model.tsx b/web/app/components/header/account-setting/model-provider-page/model-auth/add-custom-model.tsxindex 08ca3acee96..50ea37e45e5 100644--- a/web/app/components/header/account-setting/model-provider-page/model-auth/add-custom-model.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-auth/add-custom-model.tsx@@ -3,6 +3,7 @@ import type {CustomConfigurationModelFixedFields,ModelProvider,} from '@/app/components/header/account-setting/model-provider-page/declarations'+import { cn } from '@langgenius/dify-ui/cn'import {RiAddCircleFill,RiAddLine,@@ -23,7 +24,6 @@ import {Button,} from '@/app/components/base/ui/button'import { ModelModalModeEnum } from '@/app/components/header/account-setting/model-provider-page/declarations'-import { cn } from '@/utils/classnames'import ModelIcon from '../model-icon'import { useAuth } from './hooks/use-auth'import { useCanAddedModels } from './hooks/use-custom-models'diff --git a/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/credential-item.tsx b/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/credential-item.tsxindex 95f84e5908c..94b3ab2bc88 100644--- a/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/credential-item.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/credential-item.tsx@@ -1,4 +1,5 @@import type { Credential } from '../../declarations'+import { cn } from '@langgenius/dify-ui/cn'import {memo,useMemo,@@ -8,7 +9,6 @@ import ActionButton from '@/app/components/base/action-button'import Badge from '@/app/components/base/badge'import { Tooltip, TooltipContent, TooltipTrigger } from '@/app/components/base/ui/tooltip'import Indicator from '@/app/components/header/indicator'-import { cn } from '@/utils/classnames'type CredentialItemProps = {credential: Credential@@ -71,9 +71,9 @@ const CredentialItem = ({</div>)}- <Indicator className="ml-2 mr-1.5 shrink-0" />+ <Indicator className="mr-1.5 ml-2 shrink-0" /><div- className="truncate text-text-secondary system-md-regular"+ className="truncate system-md-regular text-text-secondary"title={credential.credential_name}>{credential.credential_name}diff --git a/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/index.tsx b/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/index.tsxindex d1a2bc1f892..9c0d6577efa 100644--- a/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/index.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/index.tsx@@ -9,6 +9,7 @@ import type {import type {PortalToFollowElemOptions,} from '@/app/components/base/portal-to-follow-elem'+import { cn } from '@langgenius/dify-ui/cn'import {RiAddLine,} from '@remixicon/react'@@ -33,7 +34,6 @@ import {AlertDialogTitle,} from '@/app/components/base/ui/alert-dialog'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import { useAuth } from '../hooks'import AuthorizedItem from './authorized-item'diff --git a/web/app/components/header/account-setting/model-provider-page/model-auth/config-model.tsx b/web/app/components/header/account-setting/model-provider-page/model-auth/config-model.tsxindex e4e7fae3f52..42f4b680265 100644--- a/web/app/components/header/account-setting/model-provider-page/model-auth/config-model.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-auth/config-model.tsx@@ -1,3 +1,4 @@+import { cn } from '@langgenius/dify-ui/cn'import {RiEqualizer2Line,RiScales3Line,@@ -6,7 +7,6 @@ import { memo } from 'react'import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'import Indicator from '@/app/components/header/indicator'-import { cn } from '@/utils/classnames'type ConfigModelProps = {onClick?: () => voiddiff --git a/web/app/components/header/account-setting/model-provider-page/model-auth/manage-custom-model-credentials.tsx b/web/app/components/header/account-setting/model-provider-page/model-auth/manage-custom-model-credentials.tsxindex cb238f87bed..6737a6ffff2 100644--- a/web/app/components/header/account-setting/model-provider-page/model-auth/manage-custom-model-credentials.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-auth/manage-custom-model-credentials.tsx@@ -2,6 +2,7 @@ import type {CustomConfigurationModelFixedFields,ModelProvider,} from '@/app/components/header/account-setting/model-provider-page/declarations'+import { cn } from '@langgenius/dify-ui/cn'import {memo,useCallback,@@ -14,7 +15,6 @@ import {ConfigurationMethodEnum,ModelModalModeEnum,} from '@/app/components/header/account-setting/model-provider-page/declarations'-import { cn } from '@/utils/classnames'import Authorized from './authorized'import {useCustomModels,diff --git a/web/app/components/header/account-setting/model-provider-page/model-auth/switch-credential-in-load-balancing.tsx b/web/app/components/header/account-setting/model-provider-page/model-auth/switch-credential-in-load-balancing.tsxindex e6ce8f80bbb..af374b85884 100644--- a/web/app/components/header/account-setting/model-provider-page/model-auth/switch-credential-in-load-balancing.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-auth/switch-credential-in-load-balancing.tsx@@ -4,6 +4,7 @@ import type {CustomModel,ModelProvider,} from '../declarations'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine } from '@remixicon/react'import {memo,@@ -15,7 +16,6 @@ import Tooltip from '@/app/components/base/tooltip'import { Button } from '@/app/components/base/ui/button'import { ConfigurationMethodEnum, ModelModalModeEnum } from '@/app/components/header/account-setting/model-provider-page/declarations'import Indicator from '@/app/components/header/indicator'-import { cn } from '@/utils/classnames'import Authorized from './authorized'type SwitchCredentialInLoadBalancingProps = {diff --git a/web/app/components/header/account-setting/model-provider-page/model-badge/index.tsx b/web/app/components/header/account-setting/model-provider-page/model-badge/index.tsxindex cb641ec0fb5..4f9fe389d60 100644--- a/web/app/components/header/account-setting/model-provider-page/model-badge/index.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-badge/index.tsx@@ -1,5 +1,5 @@import type { FC, ReactNode } from 'react'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'type ModelBadgeProps = {className?: string@@ -10,7 +10,7 @@ const ModelBadge: FC<ModelBadgeProps> = ({children,}) => {return (- <div className={cn('inline-flex h-[18px] shrink-0 items-center justify-center whitespace-nowrap rounded-[5px] border border-divider-deep bg-components-badge-bg-dimm px-[5px] text-text-tertiary system-2xs-medium-uppercase', className)}>+ <div className={cn('inline-flex h-[18px] shrink-0 items-center justify-center rounded-[5px] border border-divider-deep bg-components-badge-bg-dimm px-[5px] system-2xs-medium-uppercase whitespace-nowrap text-text-tertiary', className)}>{children}</div>)diff --git a/web/app/components/header/account-setting/model-provider-page/model-icon/index.tsx b/web/app/components/header/account-setting/model-provider-page/model-icon/index.tsxindex 997b3aa818c..1203019fa09 100644--- a/web/app/components/header/account-setting/model-provider-page/model-icon/index.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-icon/index.tsx@@ -3,12 +3,12 @@ import type {Model,ModelProvider,} from '../declarations'+import { cn } from '@langgenius/dify-ui/cn'import { OpenaiYellow } from '@/app/components/base/icons/src/public/llm'import { Group } from '@/app/components/base/icons/src/vender/other'import useTheme from '@/hooks/use-theme'import { renderI18nObject } from '@/i18n-config'import { Theme } from '@/types/app'-import { cn } from '@/utils/classnames'import { useLanguage } from '../hooks'type ModelIconProps = {diff --git a/web/app/components/header/account-setting/model-provider-page/model-modal/Form.tsx b/web/app/components/header/account-setting/model-provider-page/model-modal/Form.tsxindex f87e42f5d07..fc1397ee32e 100644--- a/web/app/components/header/account-setting/model-provider-page/model-modal/Form.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-modal/Form.tsx@@ -12,6 +12,7 @@ import type {import type {NodeOutPutVar,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback, useState } from 'react'import Radio from '@/app/components/base/radio'import RadioE from '@/app/components/base/radio/ui'@@ -22,7 +23,6 @@ import ModelParameterModal from '@/app/components/plugins/plugin-detail-panel/moimport MultipleToolSelector from '@/app/components/plugins/plugin-detail-panel/multiple-tool-selector'import ToolSelector from '@/app/components/plugins/plugin-detail-panel/tool-selector'import VarReferencePicker from '@/app/components/workflow/nodes/_base/components/variable/var-reference-picker'-import { cn } from '@/utils/classnames'import { ValidatingTip } from '../../key-validator/ValidateStatus'import { FormTypeEnum } from '../declarations'import { useLanguage } from '../hooks'@@ -161,7 +161,7 @@ function Form<const disabled = readonly || (isEditMode && (variable === '__model_type' || variable === '__model_name'))return (<div key={variable} className={cn(itemClassName, 'py-3')}>- <div className={cn(fieldLabelClassName, 'flex items-center py-2 text-text-secondary system-sm-semibold')}>+ <div className={cn(fieldLabelClassName, 'flex items-center py-2 system-sm-semibold text-text-secondary')}>{label[language] || label.en_US}{required && (<span className="ml-1 text-red-500">*</span>@@ -204,7 +204,7 @@ function Form<return (<div key={variable} className={cn(itemClassName, 'py-3')}>- <div className={cn(fieldLabelClassName, 'flex items-center py-2 text-text-secondary system-sm-semibold')}>+ <div className={cn(fieldLabelClassName, 'flex items-center py-2 system-sm-semibold text-text-secondary')}>{label[language] || label.en_US}{required && (<span className="ml-1 text-red-500">*</span>@@ -230,7 +230,7 @@ function Form<><RadioE isChecked={value[variable] === option.value} />- <div className="text-text-secondary system-sm-regular">{option.label[language] || option.label.en_US}</div>+ <div className="system-sm-regular text-text-secondary">{option.label[language] || option.label.en_US}</div></div>))}</div>@@ -255,7 +255,7 @@ function Form<return (<div key={variable} className={cn(itemClassName, 'py-3')}>- <div className={cn(fieldLabelClassName, 'flex items-center py-2 text-text-secondary system-sm-semibold')}>+ <div className={cn(fieldLabelClassName, 'flex items-center py-2 system-sm-semibold text-text-secondary')}>{label[language] || label.en_US}{required && (@@ -296,9 +296,9 @@ function Form<return (<div key={variable} className={cn(itemClassName, 'py-3')}>- <div className="flex items-center justify-between py-2 text-text-secondary system-sm-semibold">+ <div className="flex items-center justify-between py-2 system-sm-semibold text-text-secondary"><div className="flex items-center space-x-2">- <span className={cn(fieldLabelClassName, 'flex items-center py-2 text-text-secondary system-sm-semibold')}>{label[language] || label.en_US}</span>+ <span className={cn(fieldLabelClassName, 'flex items-center py-2 system-sm-semibold text-text-secondary')}>{label[language] || label.en_US}</span>{required && (<span className="ml-1 text-red-500">*</span>)}@@ -327,7 +327,7 @@ function Form<} = formSchema as (CredentialFormSchemaTextInput | CredentialFormSchemaSecretInput)return (<div key={variable} className={cn(itemClassName, 'py-3')}>- <div className={cn(fieldLabelClassName, 'flex items-center py-2 text-text-secondary system-sm-semibold')}>+ <div className={cn(fieldLabelClassName, 'flex items-center py-2 system-sm-semibold text-text-secondary')}>{label[language] || label.en_US}{required && (<span className="ml-1 text-red-500">*</span>@@ -359,7 +359,7 @@ function Form<} = formSchema as (CredentialFormSchemaTextInput | CredentialFormSchemaSecretInput)return (<div key={variable} className={cn(itemClassName, 'py-3')}>- <div className={cn(fieldLabelClassName, 'flex items-center py-2 text-text-secondary system-sm-semibold')}>+ <div className={cn(fieldLabelClassName, 'flex items-center py-2 system-sm-semibold text-text-secondary')}>{label[language] || label.en_US}{required && (<span className="ml-1 text-red-500">*</span>@@ -423,7 +423,7 @@ function Form<return (<div key={variable} className={cn(itemClassName, 'py-3')}>- <div className={cn(fieldLabelClassName, 'flex items-center py-2 text-text-secondary system-sm-semibold')}>+ <div className={cn(fieldLabelClassName, 'flex items-center py-2 system-sm-semibold text-text-secondary')}>{label[language] || label.en_US}{required && (<span className="ml-1 text-red-500">*</span>@@ -452,7 +452,7 @@ function Form<return (<div key={variable} className={cn(itemClassName, 'py-3')}>- <div className={cn(fieldLabelClassName, 'flex items-center py-2 text-text-secondary system-sm-semibold')}>+ <div className={cn(fieldLabelClassName, 'flex items-center py-2 system-sm-semibold text-text-secondary')}>{label[language] || label.en_US}{required && (<span className="ml-1 text-red-500">*</span>diff --git a/web/app/components/header/account-setting/model-provider-page/model-name/index.tsx b/web/app/components/header/account-setting/model-provider-page/model-name/index.tsxindex 3186e28e2e7..f1c206ca830 100644--- a/web/app/components/header/account-setting/model-provider-page/model-name/index.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-name/index.tsx@@ -1,6 +1,6 @@import type { FC, PropsWithChildren } from 'react'import type { ModelItem } from '../declarations'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'import { useLanguage } from '../hooks'import ModelBadge from '../model-badge'import FeatureIcon from '../model-selector/feature-icon'@@ -39,7 +39,7 @@ const ModelName: FC<ModelNameProps> = ({if (!modelItem)return nullreturn (- <div className={cn('flex items-center gap-0.5 overflow-hidden truncate text-ellipsis text-components-input-text-filled system-sm-regular', className)}>+ <div className={cn('flex items-center gap-0.5 truncate overflow-hidden system-sm-regular text-ellipsis text-components-input-text-filled', className)}><divclassName="truncate"title={modelItem.label[language] || modelItem.label.en_US}diff --git a/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/agent-model-trigger.tsx b/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/agent-model-trigger.tsxindex 16d94958f85..37a1f3de7d3 100644--- a/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/agent-model-trigger.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/agent-model-trigger.tsx@@ -3,6 +3,7 @@ import type {ModelItem,ModelProvider,} from '../declarations'+import { cn } from '@langgenius/dify-ui/cn'import { RiEqualizer2Line } from '@remixicon/react'import { useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -10,7 +11,6 @@ import Loading from '@/app/components/base/loading'import { InstallPluginButton } from '@/app/components/workflow/nodes/_base/components/install-plugin-button'import { useProviderContext } from '@/context/provider-context'import { useInvalidateInstalledPluginList, useModelInList, usePluginInfo } from '@/service/use-plugins'-import { cn } from '@/utils/classnames'import {CustomConfigurationStatusEnum,ModelTypeEnum,@@ -139,7 +139,7 @@ const AgentModelTrigger: FC<AgentModelTriggerProps> = ({: (<><div className="flex grow items-center gap-1 p-1 pl-2">- <span className="system-sm-regular overflow-hidden text-ellipsis whitespace-nowrap text-components-input-text-placeholder">+ <span className="overflow-hidden system-sm-regular text-ellipsis whitespace-nowrap text-components-input-text-placeholder">{t('nodes.agent.configureModel', { ns: 'workflow' })}</span></div>diff --git a/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/index.tsx b/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/index.tsxindex 22f354e6454..38b343bc196 100644--- a/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/index.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/index.tsx@@ -13,6 +13,7 @@ import type {Node,NodeOutPutVar,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { useMemo, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'import { ArrowNarrowLeft } from '@/app/components/base/icons/src/vender/line/arrows'@@ -25,7 +26,6 @@ import {} from '@/app/components/base/ui/popover'import { PROVIDER_WITH_PRESET_TONE, STOP_PARAMETER_RULE, TONE_LIST } from '@/config'import { useModelParameterRules } from '@/service/use-common'-import { cn } from '@/utils/classnames'import {useTextGenerationCurrentProviderAndModelAndModelList,} from '../hooks'@@ -175,16 +175,16 @@ const ModelParameterModal: FC<ModelParameterModalProps> = ({popupClassName={cn(popupClassName, 'w-[400px] rounded-2xl')}positionerProps={!renderTrigger ? { anchor: settingsIconRef } : undefined}>- <div className="relative px-3 pb-1 pt-3.5">- <div className="pl-1 pr-8 text-text-primary system-xl-semibold">+ <div className="relative px-3 pt-3.5 pb-1">+ <div className="pr-8 pl-1 system-xl-semibold text-text-primary">{t('modelProvider.modelSettings', { ns: 'common' })}</div>- <PopoverClose className="absolute right-2.5 top-2.5 flex items-center justify-center rounded-lg p-1.5 hover:bg-state-base-hover">+ <PopoverClose className="absolute top-2.5 right-2.5 flex items-center justify-center rounded-lg p-1.5 hover:bg-state-base-hover"><span className="i-ri-close-line h-4 w-4 text-text-tertiary" /></PopoverClose></div><div className="max-h-[420px] overflow-y-auto">- <div className="px-4 pb-4 pt-2">+ <div className="px-4 pt-2 pb-4"><ModelSelectordefaultModel={(provider || modelId) ? { provider, model: modelId } : undefined}modelList={activeTextGenerationModelList}@@ -194,9 +194,9 @@ const ModelParameterModal: FC<ModelParameterModalProps> = ({</div>{!!parameterRules.length && (- <div className="flex flex-col gap-2 border-t border-divider-subtle px-4 pb-4 pt-3">+ <div className="flex flex-col gap-2 border-t border-divider-subtle px-4 pt-3 pb-4"><div className="flex items-center gap-1">- <div className="flex flex-1 items-center text-text-secondary system-sm-semibold-uppercase">{t('modelProvider.parameters', { ns: 'common' })}</div>+ <div className="flex flex-1 items-center system-sm-semibold-uppercase text-text-secondary">{t('modelProvider.parameters', { ns: 'common' })}</div>{PROVIDER_WITH_PRESET_TONE.includes(provider) && (<PresetsParameter onSelect={handleSelectPresetParameter} />@@ -235,7 +235,7 @@ const ModelParameterModal: FC<ModelParameterModalProps> = ({</div>{!hideDebugWithMultipleModel && (<div- className="flex h-[50px] cursor-pointer items-center justify-between rounded-b-xl border-t border-t-divider-subtle px-4 text-text-accent system-sm-regular"+ className="flex h-[50px] cursor-pointer items-center justify-between rounded-b-xl border-t border-t-divider-subtle px-4 system-sm-regular text-text-accent"onClick={() => onDebugWithMultipleModelChange?.()}>{diff --git a/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/parameter-item.tsx b/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/parameter-item.tsxindex fc2cbe0179a..78c7b68d46c 100644--- a/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/parameter-item.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/parameter-item.tsx@@ -3,6 +3,7 @@ import type {Node,NodeOutPutVar,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { useEffect, useMemo, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'import PromptEditor from '@/app/components/base/prompt-editor'@@ -13,7 +14,6 @@ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@import { Slider } from '@/app/components/base/ui/slider'import { Tooltip, TooltipContent, TooltipTrigger } from '@/app/components/base/ui/tooltip'import { BlockEnum } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import { useLanguage } from '../hooks'import { isNullOrUndefined } from '../utils'@@ -177,7 +177,7 @@ function ParameterItem({)}<inputref={numberInputRef}- className="ml-4 block h-8 w-16 shrink-0 appearance-none rounded-lg bg-components-input-bg-normal pl-3 text-components-input-text-filled outline-hidden system-sm-regular"+ className="ml-4 block h-8 w-16 shrink-0 appearance-none rounded-lg bg-components-input-bg-normal pl-3 system-sm-regular text-components-input-text-filled outline-hidden"type="number"max={parameterRule.max}min={parameterRule.min}@@ -205,7 +205,7 @@ function ParameterItem({)}<inputref={numberInputRef}- className="ml-4 block h-8 w-16 shrink-0 appearance-none rounded-lg bg-components-input-bg-normal pl-3 text-components-input-text-filled outline-hidden system-sm-regular"+ className="ml-4 block h-8 w-16 shrink-0 appearance-none rounded-lg bg-components-input-bg-normal pl-3 system-sm-regular text-components-input-text-filled outline-hidden"type="number"max={parameterRule.max}min={parameterRule.min}@@ -252,7 +252,7 @@ function ParameterItem({return (<input- className={cn(isInWorkflow ? 'w-[150px]' : 'w-full', 'ml-4 flex h-8 appearance-none items-center rounded-lg bg-components-input-bg-normal px-3 text-components-input-text-filled outline-hidden system-sm-regular')}+ className={cn(isInWorkflow ? 'w-[150px]' : 'w-full', 'ml-4 flex h-8 appearance-none items-center rounded-lg bg-components-input-bg-normal px-3 system-sm-regular text-components-input-text-filled outline-hidden')}value={renderValue as string}onChange={handleStringInputChange}/>@@ -281,7 +281,7 @@ function ParameterItem({return (<textarea- className="ml-4 h-20 w-full rounded-lg bg-components-input-bg-normal px-1 text-components-input-text-filled system-sm-regular"+ className="ml-4 h-20 w-full rounded-lg bg-components-input-bg-normal px-1 system-sm-regular text-components-input-text-filled"value={renderValue as string}onChange={handleStringInputChange}/>@@ -339,7 +339,7 @@ function ParameterItem({)}<div- className="mr-0.5 truncate text-text-secondary system-xs-regular"+ className="mr-0.5 truncate system-xs-regular text-text-secondary"title={sliderLabel}>{sliderLabel}@@ -363,7 +363,7 @@ function ParameterItem({</div>{parameterRule.type === 'tag' && (- <div className={cn(!isInWorkflow && 'w-[150px]', 'text-text-tertiary system-xs-regular')}>+ <div className={cn(!isInWorkflow && 'w-[150px]', 'system-xs-regular text-text-tertiary')}>{parameterRule?.tagPlaceholder?.[language]}</div>)diff --git a/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/trigger.tsx b/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/trigger.tsxindex 289a08e89ee..06823d1a742 100644--- a/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/trigger.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/trigger.tsx@@ -4,10 +4,10 @@ import type {ModelItem,ModelProvider,} from '../declarations'+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'import { Tooltip, TooltipContent, TooltipTrigger } from '@/app/components/base/ui/tooltip'import { useProviderContext } from '@/context/provider-context'-import { cn } from '@/utils/classnames'import ModelIcon from '../model-icon'import ModelName from '../model-name'import { useCredentialPanelState } from '../provider-added-card/use-credential-panel-state'@@ -54,7 +54,7 @@ const Trigger: FC<TriggerProps> = ({'relative flex h-8 min-w-[296px] cursor-pointer items-center rounded-lg px-2',isInWorkflow? 'border border-text-warning bg-state-warning-hover pr-[30px]'- : 'border border-text-warning bg-state-warning-hover ring-inset ring-text-warning hover:ring-[0.5px]',+ : 'border border-text-warning bg-state-warning-hover ring-text-warning ring-inset hover:ring-[0.5px]',)}><div className="mr-2 flex h-6 w-6 shrink-0 items-center justify-center">@@ -65,7 +65,7 @@ const Trigger: FC<TriggerProps> = ({<div className="mr-1 flex-1 truncate text-[13px] font-normal text-text-secondary">{t('workflow:errorMsg.configureModel')}</div>- <span className={cn('i-ri-arrow-down-s-line h-4 w-4 shrink-0 text-text-tertiary', isInWorkflow && 'absolute right-2 top-[9px] h-3.5 w-3.5')} />+ <span className={cn('i-ri-arrow-down-s-line h-4 w-4 shrink-0 text-text-tertiary', isInWorkflow && 'absolute top-[9px] right-2 h-3.5 w-3.5')} /></div>)}@@ -99,7 +99,7 @@ const Trigger: FC<TriggerProps> = ({<div className="flex shrink-0 items-center pr-0.5"><div className="flex min-w-[20px] shrink-0 items-center justify-center gap-[3px] rounded-md border border-text-warning bg-components-badge-bg-dimm px-[5px] py-0.5"><span className="i-ri-alert-fill h-3 w-3 text-text-warning" />- <span className="whitespace-nowrap text-text-warning system-xs-medium">+ <span className="system-xs-medium whitespace-nowrap text-text-warning">{badgeLabel}</span></div>@@ -115,7 +115,7 @@ const Trigger: FC<TriggerProps> = ({<div className="flex shrink-0 items-center pr-0.5"><div className="flex min-w-[20px] shrink-0 items-center justify-center gap-[3px] rounded-md border border-text-warning bg-components-badge-bg-dimm px-[5px] py-0.5"><span className="i-ri-alert-fill h-3 w-3 text-text-warning" />- <span className="whitespace-nowrap text-text-warning system-xs-medium">+ <span className="system-xs-medium whitespace-nowrap text-text-warning">{badgeLabel}</span></div>diff --git a/web/app/components/header/account-setting/model-provider-page/model-selector/feature-icon.tsx b/web/app/components/header/account-setting/model-provider-page/model-selector/feature-icon.tsxindex 72c010e6afb..a2a357abb59 100644--- a/web/app/components/header/account-setting/model-provider-page/model-selector/feature-icon.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-selector/feature-icon.tsx@@ -1,4 +1,5 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {RiFileTextLine,RiFilmAiLine,@@ -7,7 +8,6 @@ import {} from '@remixicon/react'import { useTranslation } from 'react-i18next'import Tooltip from '@/app/components/base/tooltip'-import { cn } from '@/utils/classnames'import {ModelFeatureEnum,ModelFeatureTextEnum,diff --git a/web/app/components/header/account-setting/model-provider-page/model-selector/model-selector-trigger.tsx b/web/app/components/header/account-setting/model-provider-page/model-selector/model-selector-trigger.tsxindex 75dbd6559c5..d43324ca12d 100644--- a/web/app/components/header/account-setting/model-provider-page/model-selector/model-selector-trigger.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-selector/model-selector-trigger.tsx@@ -4,10 +4,10 @@ import type {Model,ModelItem,} from '../declarations'+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'import { Tooltip, TooltipContent, TooltipTrigger } from '@/app/components/base/ui/tooltip'import { useProviderContext } from '@/context/provider-context'-import { cn } from '@/utils/classnames'import {DERIVED_MODEL_STATUS_BADGE_I18N,DERIVED_MODEL_STATUS_TOOLTIP_I18N,@@ -110,7 +110,7 @@ const ModelSelectorTrigger: FC<ModelSelectorTriggerProps> = ({/>)}{isDeprecated && (- <div className="grow truncate text-components-input-text-filled system-sm-regular">+ <div className="grow truncate system-sm-regular text-components-input-text-filled">{defaultModel.model}</div>)}@@ -132,7 +132,7 @@ const ModelSelectorTrigger: FC<ModelSelectorTriggerProps> = ({)}><span className="i-ri-alert-fill h-3 w-3 text-text-warning" />- <span className="whitespace-nowrap text-text-warning system-xs-medium">+ <span className="system-xs-medium whitespace-nowrap text-text-warning">{statusLabel}</span></div>@@ -152,7 +152,7 @@ const ModelSelectorTrigger: FC<ModelSelectorTriggerProps> = ({render={(<div className="flex shrink-0 items-center gap-[3px] rounded-md border border-text-warning bg-components-badge-bg-dimm px-[5px] py-0.5"><span className="i-ri-alert-fill h-3 w-3 text-text-warning" />- <span className="whitespace-nowrap text-text-warning system-xs-medium">+ <span className="system-xs-medium whitespace-nowrap text-text-warning">{deprecatedStatusLabel}</span></div>diff --git a/web/app/components/header/account-setting/model-provider-page/model-selector/popup-item.tsx b/web/app/components/header/account-setting/model-provider-page/model-selector/popup-item.tsxindex 5fb1135039f..d1ad017455e 100644--- a/web/app/components/header/account-setting/model-provider-page/model-selector/popup-item.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-selector/popup-item.tsx@@ -4,6 +4,7 @@ import type {Model,ModelItem,} from '../declarations'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'import { CreditsCoin } from '@/app/components/base/icons/src/vender/line/financeAndECommerce'@@ -15,7 +16,6 @@ import {import { Tooltip, TooltipContent, TooltipTrigger } from '@/app/components/base/ui/tooltip'import { useModalContext } from '@/context/modal-context'import { useProviderContext } from '@/context/provider-context'-import { cn } from '@/utils/classnames'import {ConfigurationMethodEnum,ModelFeatureEnum,@@ -114,7 +114,7 @@ const PopupItem: FC<PopupItemProps> = ({<Popover open={dropdownOpen} onOpenChange={setDropdownOpen}><PopoverTriggerrender={(- <button type="button" className="flex cursor-pointer items-center rounded-md px-1.5 py-1 text-text-tertiary system-xs-medium hover:bg-components-button-ghost-bg-hover">+ <button type="button" className="flex cursor-pointer items-center rounded-md px-1.5 py-1 system-xs-medium text-text-tertiary hover:bg-components-button-ghost-bg-hover">{isUsingCredits? (hasCredits@@ -134,13 +134,13 @@ const PopupItem: FC<PopupItemProps> = ({: credentialName? (<>- <span className={cn('h-1.5 w-1.5 shrink-0 radius-2xs border', isApiKeyActive ? 'border-components-badge-status-light-success-border-inner bg-components-badge-status-light-success-bg' : 'border-components-badge-status-light-error-border-inner bg-components-badge-status-light-error-bg')} />+ <span className={cn('h-1.5 w-1.5 shrink-0 rounded-xs border', isApiKeyActive ? 'border-components-badge-status-light-success-border-inner bg-components-badge-status-light-success-bg' : 'border-components-badge-status-light-error-border-inner bg-components-badge-status-light-error-bg')} /><span className="ml-1 text-text-tertiary">{credentialName}</span></>): (<>- <span className="h-1.5 w-1.5 shrink-0 radius-2xs border border-components-badge-status-light-disabled-border-inner bg-components-badge-status-light-disabled-bg" />+ <span className="h-1.5 w-1.5 shrink-0 rounded-xs border border-components-badge-status-light-disabled-border-inner bg-components-badge-status-light-disabled-bg" /><span className="ml-1 text-text-tertiary">{t('modelProvider.selector.configureRequired', { ns: 'common' })}</span></>)}@@ -175,7 +175,7 @@ const PopupItem: FC<PopupItemProps> = ({modelName={modelItem.model}/><ModelName- className={cn('text-text-secondary system-sm-medium', modelItem.status !== ModelStatusEnum.active && 'opacity-60')}+ className={cn('system-sm-medium text-text-secondary', modelItem.status !== ModelStatusEnum.active && 'opacity-60')}modelItem={modelItem}/></div>@@ -209,7 +209,7 @@ const PopupItem: FC<PopupItemProps> = ({provider={model}modelName={modelItem.model}/>- <div className="text-wrap wrap-break-word text-text-primary system-md-medium">{modelItem.label[language] || modelItem.label.en_US}</div>+ <div className="system-md-medium text-wrap wrap-break-word text-text-primary">{modelItem.label[language] || modelItem.label.en_US}</div></div><div className="flex flex-wrap gap-1">{!!modelItem.model_type && (@@ -232,7 +232,7 @@ const PopupItem: FC<PopupItemProps> = ({&& modelItem.features?.some(feature => [ModelFeatureEnum.vision, ModelFeatureEnum.audio, ModelFeatureEnum.video, ModelFeatureEnum.document].includes(feature))&& (<div className="pt-2">- <div className="mb-1 text-text-tertiary system-2xs-medium-uppercase">{t('model.capabilities', { ns: 'common' })}</div>+ <div className="mb-1 system-2xs-medium-uppercase text-text-tertiary">{t('model.capabilities', { ns: 'common' })}</div><div className="flex flex-wrap gap-1">{modelItem.features?.map(feature => (<FeatureIcondiff --git a/web/app/components/header/account-setting/model-provider-page/model-selector/popup.tsx b/web/app/components/header/account-setting/model-provider-page/model-selector/popup.tsxindex 6aaa71059ed..b40bc53a650 100644--- a/web/app/components/header/account-setting/model-provider-page/model-selector/popup.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-selector/popup.tsx@@ -5,6 +5,7 @@ import type {ModelItem,} from '../declarations'import type { ModelProviderQuotaGetPaid } from '@/types/model-provider'+import { cn } from '@langgenius/dify-ui/cn'import { useTheme } from 'next-themes'import { useCallback, useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -16,7 +17,6 @@ import { useSystemFeaturesQuery } from '@/context/global-public-context'import { useModalContext } from '@/context/modal-context'import { useProviderContext } from '@/context/provider-context'import { useInstallPackageFromMarketPlace } from '@/service/use-plugins'-import { cn } from '@/utils/classnames'import { supportFunctionCall } from '@/utils/tool-call'import { getMarketplaceUrl } from '@/utils/var'import {@@ -237,8 +237,8 @@ const Popup: FC<PopupProps> = ({))}{!filteredModelList.length && !installedModelList.length && (- <div className="flex flex-col gap-2 radius-lg bg-linear-to-r from-state-base-hover to-background-gradient-mask-transparent p-4">- <div className="flex h-10 w-10 items-center justify-center radius-lg border-[0.5px] border-components-card-border bg-components-card-bg shadow-lg backdrop-blur-[5px]">+ <div className="flex flex-col gap-2 rounded-[10px] bg-linear-to-r from-state-base-hover to-background-gradient-mask-transparent p-4">+ <div className="flex h-10 w-10 items-center justify-center rounded-[10px] border-[0.5px] border-components-card-border bg-components-card-bg shadow-lg backdrop-blur-[5px]"><span className="i-ri-brain-2-line h-5 w-5 text-text-tertiary" /></div><div className="flex flex-col gap-1">diff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/index.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/index.tsxindex 183b15be336..c0bbab04f31 100644--- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/index.tsx+++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/index.tsx@@ -5,6 +5,7 @@ import type {import type { ModelProviderQuotaGetPaid } from '../utils'import type { PluginDetail } from '@/app/components/plugins/types'+import { cn } from '@langgenius/dify-ui/cn'import { useQuery } from '@tanstack/react-query'import { memo, useCallback } from 'react'import { useTranslation } from 'react-i18next'@@ -16,7 +17,6 @@ import { IS_CE_EDITION } from '@/config'import { useAppContext } from '@/context/app-context'import { useProviderContextSelector } from '@/context/provider-context'import { consoleQuery } from '@/service/client'-import { cn } from '@/utils/classnames'import { useModelProviderListExpanded, useSetModelProviderListExpanded } from '../atoms'import { ConfigurationMethodEnum } from '../declarations'import ModelBadge from '../model-badge'@@ -96,8 +96,8 @@ const ProviderAddedCard: FC<ProviderAddedCardProps> = ({currentProviderName === 'langgenius/anthropic/anthropic' && 'bg-third-party-model-bg-anthropic',)}>- <div className="flex rounded-t-xl py-2 pl-3 pr-2">- <div className="grow px-1 pb-0.5 pt-1">+ <div className="flex rounded-t-xl py-2 pr-2 pl-3">+ <div className="grow px-1 pt-1 pb-0.5"><div className="mb-2 flex items-center gap-1"><ProviderIcon provider={provider} />{pluginDetail && (@@ -123,12 +123,12 @@ const ProviderAddedCard: FC<ProviderAddedCardProps> = ({</div>{showCollapsedSection && (- <div className="group flex items-center justify-between border-t border-t-divider-subtle py-1.5 pl-2 pr-[11px] text-text-tertiary system-xs-medium">+ <div className="group flex items-center justify-between border-t border-t-divider-subtle py-1.5 pr-[11px] pl-2 system-xs-medium text-text-tertiary">{(showModelProvider || !notConfigured) && (<buttontype="button"data-testid="show-models-button"- className="flex h-6 items-center rounded-lg pl-1 pr-1.5 hover:bg-components-button-ghost-bg-hover"+ className="flex h-6 items-center rounded-lg pr-1.5 pl-1 hover:bg-components-button-ghost-bg-hover"aria-label={t('modelProvider.showModels', { ns: 'common' })}onClick={handleOpenModelList}>@@ -140,15 +140,15 @@ const ProviderAddedCard: FC<ProviderAddedCardProps> = ({{!loading && <div className="i-ri-arrow-right-s-line h-4 w-4" />}{loading && (- <div className="i-ri-loader-2-line ml-0.5 h-3 w-3 animate-spin" />+ <div className="ml-0.5 i-ri-loader-2-line h-3 w-3 animate-spin" />)}</button>)}{!showModelProvider && notConfigured && (- <div className="flex h-6 items-center pl-1 pr-1.5">- <div className="i-ri-information-2-fill mr-1 h-4 w-4 text-text-accent" />- <span className="text-text-secondary system-xs-medium">{t('modelProvider.configureTip', { ns: 'common' })}</span>+ <div className="flex h-6 items-center pr-1.5 pl-1">+ <div className="mr-1 i-ri-information-2-fill h-4 w-4 text-text-accent" />+ <span className="system-xs-medium text-text-secondary">{t('modelProvider.configureTip', { ns: 'common' })}</span></div>)}{diff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/api-key-section.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/api-key-section.tsxindex 9dde65fd446..e6f5e51d611 100644--- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/api-key-section.tsx+++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/api-key-section.tsx@@ -31,7 +31,7 @@ function ApiKeySection({if (!credentials.length) {return (<div className="flex flex-col gap-2 p-2">- <div className="radius-lg bg-linear-to-r from-state-base-hover to-transparent p-4">+ <div className="rounded-[10px] bg-linear-to-r from-state-base-hover to-transparent p-4"><div className="flex flex-col gap-1"><div className="system-sm-medium text-text-secondary">{t('modelProvider.card.noApiKeysTitle', { ns: 'common' })}diff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/credits-exhausted-alert.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/credits-exhausted-alert.tsxindex 4858c05af20..53abe1211d7 100644--- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/credits-exhausted-alert.tsx+++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/credits-exhausted-alert.tsx@@ -24,12 +24,12 @@ export default function CreditsExhaustedAlert({ hasApiKeyFallback }: CreditsExhaconst usagePercent = totalCredits > 0 ? Math.min((usedCredits / totalCredits) * 100, 100) : 100return (- <div className="mx-2 mb-1 mt-0.5 rounded-lg bg-background-section-burn p-3">+ <div className="mx-2 mt-0.5 mb-1 rounded-lg bg-background-section-burn p-3"><div className="flex flex-col gap-1">- <div className="text-text-primary system-sm-medium">+ <div className="system-sm-medium text-text-primary">{t(titleKey, { ns: 'common' })}</div>- <div className="text-text-tertiary system-xs-regular">+ <div className="system-xs-regular text-text-tertiary"><Transi18nKey={descriptionKey}ns="common"@@ -37,7 +37,7 @@ export default function CreditsExhaustedAlert({ hasApiKeyFallback }: CreditsExhaupgradeLink: (<buttontype="button"- className="cursor-pointer border-0 bg-transparent p-0 text-left text-text-accent system-xs-medium"+ className="cursor-pointer border-0 bg-transparent p-0 text-left system-xs-medium text-text-accent"onClick={() => setShowPricingModal()}/>),@@ -47,10 +47,10 @@ export default function CreditsExhaustedAlert({ hasApiKeyFallback }: CreditsExha</div><div className="mt-3 flex flex-col gap-1"><div className="flex items-center justify-between">- <span className="text-text-tertiary system-xs-medium">+ <span className="system-xs-medium text-text-tertiary">{t('modelProvider.card.usageLabel', { ns: 'common' })}</span>- <div className="flex items-center gap-0.5 text-text-tertiary system-xs-regular">+ <div className="flex items-center gap-0.5 system-xs-regular text-text-tertiary"><CreditsCoin className="h-3 w-3" /><span>{formatNumber(usedCredits)}@@ -59,7 +59,7 @@ export default function CreditsExhaustedAlert({ hasApiKeyFallback }: CreditsExha</span></div></div>- <div className="h-1 overflow-hidden radius-sm bg-components-progress-error-bg">+ <div className="h-1 overflow-hidden rounded-md bg-components-progress-error-bg"><divclassName="h-full rounded-l-[6px] bg-components-progress-error-progress"style={{ width: `${usagePercent}%` }}diff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/usage-priority-section.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/usage-priority-section.tsxindex 2a07a1d7a76..638f9d605b9 100644--- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/usage-priority-section.tsx+++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/usage-priority-section.tsx@@ -1,7 +1,7 @@import type { UsagePriority } from '../use-credential-panel-state'+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'import { Tooltip, TooltipContent, TooltipTrigger } from '@/app/components/base/ui/tooltip'-import { cn } from '@/utils/classnames'import { PreferredProviderTypeEnum } from '../../declarations'type UsagePrioritySectionProps = {@@ -28,7 +28,7 @@ export default function UsagePrioritySection({ value, disabled, onSelect }: Usag<span className="i-ri-arrow-up-double-line block h-4 w-4 text-text-tertiary" /></div><div className="flex min-w-0 flex-1 items-center gap-0.5 py-0.5">- <span className="truncate text-text-secondary system-sm-medium">+ <span className="truncate system-sm-medium text-text-secondary">{t('modelProvider.card.usagePriority', { ns: 'common' })}</span><Tooltip>@@ -52,10 +52,10 @@ export default function UsagePrioritySection({ value, disabled, onSelect }: Usagkey={option.key}type="button"className={cn(- 'shrink-0 whitespace-nowrap rounded-md px-2 py-1 text-center transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-components-button-primary-border disabled:opacity-50',+ 'shrink-0 rounded-md px-2 py-1 text-center whitespace-nowrap transition-colors focus-visible:ring-2 focus-visible:ring-components-button-primary-border focus-visible:outline-hidden disabled:opacity-50',selectedKey === option.key- ? 'border-[1.5px] border-components-option-card-option-selected-border bg-components-panel-bg text-text-primary shadow-xs system-xs-medium'- : 'border border-components-option-card-option-border bg-components-option-card-option-bg text-text-secondary system-xs-regular hover:bg-components-option-card-option-bg-hover',+ ? 'border-[1.5px] border-components-option-card-option-selected-border bg-components-panel-bg system-xs-medium text-text-primary shadow-xs'+ : 'border border-components-option-card-option-border bg-components-option-card-option-bg system-xs-regular text-text-secondary hover:bg-components-option-card-option-bg-hover',)}disabled={disabled}onClick={() => onSelect(option.key)}diff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-list-item.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-list-item.tsxindex 469557b92dd..4604faa9dd3 100644--- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-list-item.tsx+++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-list-item.tsx@@ -1,4 +1,5 @@import type { ModelItem, ModelProvider } from '../declarations'+import { cn } from '@langgenius/dify-ui/cn'import { useQueryClient } from '@tanstack/react-query'import { useDebounceFn } from 'ahooks'import { memo, useCallback } from 'react'@@ -12,7 +13,6 @@ import { useAppContext } from '@/context/app-context'import { useProviderContext, useProviderContextSelector } from '@/context/provider-context'import { consoleQuery } from '@/service/client'import { disableModel, enableModel } from '@/service/common'-import { cn } from '@/utils/classnames'import { ModelStatusEnum } from '../declarations'import { useUpdateModelList } from '../hooks'import { ConfigModel } from '../model-auth'@@ -66,7 +66,7 @@ const ModelListItem = ({ model, provider, isConfigurable, onChange, onModifyLoadreturn (<divkey={`${model.model}-${model.fetch_from}`}- className={cn('group flex h-8 items-center rounded-lg pl-2 pr-2.5', isConfigurable && 'hover:bg-components-panel-on-panel-item-bg-hover', model.deprecated && 'opacity-60')}+ className={cn('group flex h-8 items-center rounded-lg pr-2.5 pl-2', isConfigurable && 'hover:bg-components-panel-on-panel-item-bg-hover', model.deprecated && 'opacity-60')}><ModelIconclassName="mr-2 shrink-0"@@ -74,7 +74,7 @@ const ModelListItem = ({ model, provider, isConfigurable, onChange, onModifyLoadmodelName={model.model}/><ModelName- className="grow text-text-secondary system-md-regular"+ className="grow system-md-regular text-text-secondary"modelItem={model}showModelTypeshowModediff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-load-balancing-configs.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-load-balancing-configs.tsxindex 997ba402cdd..020abfdf967 100644--- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-load-balancing-configs.tsx+++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-load-balancing-configs.tsx@@ -8,6 +8,7 @@ import type {ModelLoadBalancingConfigEntry,ModelProvider,} from '../declarations'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback, useMemo } from 'react'import { useTranslation } from 'react-i18next'import Badge from '@/app/components/base/badge/index'@@ -19,7 +20,6 @@ import s from '@/app/components/custom/style.module.css'import { AddCredentialInLoadBalancing } from '@/app/components/header/account-setting/model-provider-page/model-auth'import { IS_CE_EDITION } from '@/config'import { useProviderContextSelector } from '@/context/provider-context'-import { cn } from '@/utils/classnames'import Indicator from '../../../indicator'import { ConfigurationMethodEnum } from '../declarations'import CooldownTimer from './cooldown-timer'@@ -145,7 +145,7 @@ const ModelLoadBalancingConfigs = ({onClick={(!withSwitch && !draftConfig.enabled) ? () => toggleModalBalancing(true) : undefined}data-testid="load-balancing-main-panel">- <div className="flex select-none items-center gap-2 px-[15px] py-3">+ <div className="flex items-center gap-2 px-[15px] py-3 select-none"><div className="flex h-8 w-8 shrink-0 grow-0 items-center justify-center rounded-lg border border-util-colors-indigo-indigo-100 bg-util-colors-indigo-indigo-50 text-util-colors-blue-blue-600"><div className="i-custom-vender-line-financeandecommerce-balance h-4 w-4" /></div>@@ -264,7 +264,7 @@ const ModelLoadBalancingConfigs = ({<GridMask canvasClassName="rounded-xl!"><div className="mt-2 flex h-14 items-center justify-between rounded-xl border-[0.5px] border-components-panel-border px-4 shadow-md"><div- className={cn('text-gradient text-sm font-semibold leading-tight', s.textGradient)}+ className={cn('text-gradient text-sm leading-tight font-semibold', s.textGradient)}>{t('modelProvider.upgradeForLoadBalancing', { ns: 'common' })}</div>diff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-load-balancing-modal.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-load-balancing-modal.tsxindex 4c8c718ac20..35567773957 100644--- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-load-balancing-modal.tsx+++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-load-balancing-modal.tsx@@ -1,4 +1,5 @@import type { Credential, CustomConfigurationModelFixedFields, ModelItem, ModelLoadBalancingConfig, ModelLoadBalancingConfigEntry, ModelProvider } from '../declarations'+import { cn } from '@langgenius/dify-ui/cn'import { memo, useCallback, useEffect, useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'import Loading from '@/app/components/base/loading'@@ -15,7 +16,6 @@ import { Button } from '@/app/components/base/ui/button'import { toast } from '@/app/components/base/ui/toast'import { SwitchCredentialInLoadBalancing } from '@/app/components/header/account-setting/model-provider-page/model-auth'import { useGetModelCredential, useUpdateModelLoadBalancingConfig } from '@/service/use-models'-import { cn } from '@/utils/classnames'import { ConfigurationMethodEnum, FormTypeEnum } from '../declarations'import { useRefreshModel } from '../hooks'import { useAuth } from '../model-auth/hooks/use-auth'diff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/priority-selector.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/priority-selector.tsxindex 052fc5c3d36..e71a219dcd0 100644--- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/priority-selector.tsx+++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/priority-selector.tsx@@ -1,5 +1,6 @@import type { FC } from 'react'import { Popover, PopoverButton, PopoverPanel, Transition } from '@headlessui/react'+import { cn } from '@langgenius/dify-ui/cn'import {RiCheckLine,RiMoreFill,@@ -7,7 +8,6 @@ import {import { Fragment } from 'react'import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import { PreferredProviderTypeEnum } from '../declarations'type SelectorProps = {diff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/provider-card-actions.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/provider-card-actions.tsxindex 2d9e2a52aab..2269354825b 100644--- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/provider-card-actions.tsx+++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/provider-card-actions.tsx@@ -1,5 +1,6 @@import type { FC } from 'react'import type { PluginDetail } from '@/app/components/plugins/types'+import { cn } from '@langgenius/dify-ui/cn'import { useMemo } from 'react'import { useTranslation } from 'react-i18next'import Badge from '@/app/components/base/badge'@@ -12,7 +13,6 @@ import { PluginSource } from '@/app/components/plugins/types'import PluginVersionPicker from '@/app/components/plugins/update-plugin/plugin-version-picker'import { useLocale } from '@/context/i18n'import useTheme from '@/hooks/use-theme'-import { cn } from '@/utils/classnames'import { getMarketplaceUrl } from '@/utils/var'type Props = {diff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/quota-panel.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/quota-panel.tsxindex 2fa5243d889..03d7c28a889 100644--- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/quota-panel.tsx+++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/quota-panel.tsx@@ -2,6 +2,7 @@ import type { FC } from 'react'import type { ModelProvider } from '../declarations'import type { Plugin } from '@/app/components/plugins/types'import type { ModelProviderQuotaGetPaid } from '@/types/model-provider'+import { cn } from '@langgenius/dify-ui/cn'import { useBoolean } from 'ahooks'import * as React from 'react'import { useCallback, useEffect, useMemo, useRef, useState } from 'react'@@ -11,7 +12,6 @@ import { Tooltip, TooltipContent, TooltipTrigger } from '@/app/components/base/uimport InstallFromMarketplace from '@/app/components/plugins/install-plugin/install-from-marketplace'import { useSystemFeaturesQuery } from '@/context/global-public-context'import useTimestamp from '@/hooks/use-timestamp'-import { cn } from '@/utils/classnames'import { formatNumber } from '@/utils/format'import { PreferredProviderTypeEnum } from '../declarations'import { useMarketplaceAllPlugins } from '../hooks'@@ -89,7 +89,7 @@ const QuotaPanel: FC<QuotaPanelProps> = ({return (<div className={cn(- 'relative my-2 min-w-[72px] shrink-0 overflow-hidden rounded-xl border-[0.5px] pb-2.5 pl-4 pr-2.5 pt-3 shadow-xs',+ 'relative my-2 min-w-[72px] shrink-0 overflow-hidden rounded-xl border-[0.5px] pt-3 pr-2.5 pb-2.5 pl-4 shadow-xs',isExhausted? 'border-state-destructive-border hover:bg-state-destructive-hover': 'border-components-panel-border bg-third-party-model-bg-default',@@ -97,7 +97,7 @@ const QuotaPanel: FC<QuotaPanelProps> = ({><div className={cn('pointer-events-none absolute inset-0', styles.gridBg)} /><div className="relative">- <div className="mb-2 flex h-4 items-center text-text-tertiary system-xs-medium-uppercase">+ <div className="mb-2 flex h-4 items-center system-xs-medium-uppercase text-text-tertiary">{t('modelProvider.quota', { ns: 'common' })}<Tooltip><TooltipTrigger@@ -117,8 +117,8 @@ const QuotaPanel: FC<QuotaPanelProps> = ({<div className="flex items-center justify-between"><div className="flex items-center gap-1 text-xs text-text-tertiary">{credits > 0- ? <span className="mr-0.5 text-text-secondary system-xl-semibold">{formatNumber(credits)}</span>- : <span className="mr-0.5 text-text-destructive system-xl-semibold">{t('modelProvider.card.quotaExhausted', { ns: 'common' })}</span>}+ ? <span className="mr-0.5 system-xl-semibold text-text-secondary">{formatNumber(credits)}</span>+ : <span className="mr-0.5 system-xl-semibold text-text-destructive">{t('modelProvider.card.quotaExhausted', { ns: 'common' })}</span>}{nextCreditResetDate? (<>diff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/system-quota-card.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/system-quota-card.tsxindex 41b0acd8cf5..ecf1e52b4c8 100644--- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/system-quota-card.tsx+++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/system-quota-card.tsx@@ -1,6 +1,6 @@import type { ReactNode } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { createContext, use } from 'react'-import { cn } from '@/utils/classnames'import styles from './quota-panel.module.css'type Variant = 'default' | 'destructive'diff --git a/web/app/components/header/account-setting/model-provider-page/provider-icon/index.tsx b/web/app/components/header/account-setting/model-provider-page/provider-icon/index.tsxindex 3a764643077..89e9ee8dd74 100644--- a/web/app/components/header/account-setting/model-provider-page/provider-icon/index.tsx+++ b/web/app/components/header/account-setting/model-provider-page/provider-icon/index.tsx@@ -1,11 +1,11 @@import type { FC } from 'react'import type { ModelProvider } from '../declarations'+import { cn } from '@langgenius/dify-ui/cn'import { AnthropicDark, AnthropicLight } from '@/app/components/base/icons/src/public/llm'import { Openai } from '@/app/components/base/icons/src/vender/other'import useTheme from '@/hooks/use-theme'import { renderI18nObject } from '@/i18n-config'import { Theme } from '@/types/app'-import { cn } from '@/utils/classnames'import { useLanguage } from '../hooks'type ProviderIconProps = {@@ -48,7 +48,7 @@ const ProviderIcon: FC<ProviderIconProps> = ({)}className="h-6 w-6"/>- <div className="text-text-primary system-md-semibold">+ <div className="system-md-semibold text-text-primary">{renderI18nObject(provider.label, language)}</div></div>diff --git a/web/app/components/header/app-back/index.tsx b/web/app/components/header/app-back/index.tsxindex bbffc76f19d..7cf121aa4e1 100644--- a/web/app/components/header/app-back/index.tsx+++ b/web/app/components/header/app-back/index.tsx@@ -2,10 +2,10 @@import type { AppDetailResponse } from '@/models/app'import { ArrowLeftIcon, Squares2X2Icon } from '@heroicons/react/24/solid'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useState } from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'type IAppBackProps = {curApp: AppDetailResponse@@ -18,8 +18,8 @@ export default function AppBack({ curApp }: IAppBackProps) {return (<divclassName={cn(`- flex h-7 cursor-pointer items-center radius-lg- pl-2.5 pr-2 font-semibold+ flex h-7 cursor-pointer items-center rounded-[10px]+ pr-2 pl-2.5 font-semiboldtext-[#1C64F2]${curApp && 'hover:bg-[#EBF5FF]'}`)}diff --git a/web/app/components/header/app-selector/index.tsx b/web/app/components/header/app-selector/index.tsxindex 5d196bc7737..52e60de2b4d 100644--- a/web/app/components/header/app-selector/index.tsx+++ b/web/app/components/header/app-selector/index.tsx@@ -34,7 +34,7 @@ export default function AppSelector({ appItems, curApp }: IAppSelectorProps) {<MenuButtonclassName="inline-flex h-7 w-full items-center justify-center- radius-lg pl-2 pr-2.5 text-[14px] font-semibold+ rounded-[10px] pr-2.5 pl-2 text-[14px] font-semiboldtext-[#1C64F2] hover:bg-[#EBF5FF]">@@ -56,7 +56,7 @@ export default function AppSelector({ appItems, curApp }: IAppSelectorProps) {><MenuItemsclassName="- absolute -left-11 right-0 mt-1.5 w-60 max-w-80+ absolute right-0 -left-11 mt-1.5 w-60 max-w-80origin-top-right divide-y divide-gray-100 rounded-lg bg-whiteshadow-lg"@@ -71,9 +71,9 @@ export default function AppSelector({ appItems, curApp }: IAppSelectorProps) {onClick={() =>router.push(`/app/${app.id}/${isCurrentWorkspaceEditor ? 'configuration' : 'overview'}`)}>- <div className="relative mr-2 h-6 w-6 radius-sm bg-[#D5F5F6]">+ <div className="relative mr-2 h-6 w-6 rounded-md bg-[#D5F5F6]"><AppIcon size="tiny" />- <div className="absolute -bottom-0.5 -right-0.5 flex h-2.5 w-2.5 items-center justify-center rounded-sm bg-white">+ <div className="absolute -right-0.5 -bottom-0.5 flex h-2.5 w-2.5 items-center justify-center rounded-sm bg-white"><Indicator /></div></div>@@ -92,8 +92,8 @@ export default function AppSelector({ appItems, curApp }: IAppSelectorProps) {><divclassName="- ml-4 mr-2 flex- h-6 w-6 items-center justify-center radius-sm border-[0.5px]+ mr-2 ml-4 flex+ h-6 w-6 items-center justify-center rounded-md border-[0.5px]border-dashed border-gray-200 bg-gray-100">diff --git a/web/app/components/header/explore-nav/index.tsx b/web/app/components/header/explore-nav/index.tsxindex 9931690e83b..d8bbc014b96 100644--- a/web/app/components/header/explore-nav/index.tsx+++ b/web/app/components/header/explore-nav/index.tsx@@ -1,5 +1,6 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import {RiPlanetFill,RiPlanetLine,@@ -7,7 +8,6 @@ import {import { useTranslation } from 'react-i18next'import Link from '@/next/link'import { useSelectedLayoutSegment } from '@/next/navigation'-import { cn } from '@/utils/classnames'type ExploreNavProps = {className?: stringdiff --git a/web/app/components/header/header-wrapper.tsx b/web/app/components/header/header-wrapper.tsxindex c90f01a6b65..1379d176e01 100644--- a/web/app/components/header/header-wrapper.tsx+++ b/web/app/components/header/header-wrapper.tsx@@ -1,9 +1,9 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useState } from 'react'import { useEventEmitterContextContext } from '@/context/event-emitter'import { usePathname } from '@/next/navigation'-import { cn } from '@/utils/classnames'import s from './index.module.css'type HeaderWrapperProps = {@@ -28,7 +28,7 @@ const HeaderWrapper = ({})return (- <div className={cn('sticky left-0 right-0 top-0 z-30 flex min-h-[56px] shrink-0 grow-0 basis-auto flex-col', s.header, isBordered ? 'border-b border-divider-regular' : '', hideHeader && (inWorkflowCanvas || isPipelineCanvas) && 'hidden')}>+ <div className={cn('sticky top-0 right-0 left-0 z-30 flex min-h-[56px] shrink-0 grow-0 basis-auto flex-col', s.header, isBordered ? 'border-b border-divider-regular' : '', hideHeader && (inWorkflowCanvas || isPipelineCanvas) && 'hidden')}>{children}</div>)diff --git a/web/app/components/header/indicator/index.tsx b/web/app/components/header/indicator/index.tsxindex 6495a1137bd..c60ebcb7bd7 100644--- a/web/app/components/header/indicator/index.tsx+++ b/web/app/components/header/indicator/index.tsx@@ -1,6 +1,6 @@'use client'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'export type IndicatorProps = {color?: 'green' | 'orange' | 'red' | 'blue' | 'yellow' | 'gray'diff --git a/web/app/components/header/nav/index.tsx b/web/app/components/header/nav/index.tsxindex da8ddc7536a..766aca14e31 100644--- a/web/app/components/header/nav/index.tsx+++ b/web/app/components/header/nav/index.tsx@@ -1,13 +1,13 @@'use client'import type { INavSelectorProps } from './nav-selector'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useState } from 'react'import { useStore as useAppStore } from '@/app/components/app/store'import { ArrowNarrowLeft } from '@/app/components/base/icons/src/vender/line/arrows'import Link from '@/next/link'import { useSelectedLayoutSegment } from '@/next/navigation'-import { cn } from '@/utils/classnames'import NavSelector from './nav-selector'type INavProps = {@@ -53,7 +53,7 @@ const Nav = ({returnsetAppDetail()}}- className={cn('flex h-7 cursor-pointer items-center radius-lg px-2.5', isActivated ? 'text-components-main-nav-nav-button-text-active' : 'text-components-main-nav-nav-button-text', curNav && isActivated && 'hover:bg-components-main-nav-nav-button-bg-active-hover')}+ className={cn('flex h-7 cursor-pointer items-center rounded-[10px] px-2.5', isActivated ? 'text-components-main-nav-nav-button-text-active' : 'text-components-main-nav-nav-button-text', curNav && isActivated && 'hover:bg-components-main-nav-nav-button-bg-active-hover')}onMouseEnter={() => setHovered(true)}onMouseLeave={() => setHovered(false)}>diff --git a/web/app/components/header/nav/nav-selector/index.tsx b/web/app/components/header/nav/nav-selector/index.tsxindex 76d25c1cad9..285639adf78 100644--- a/web/app/components/header/nav/nav-selector/index.tsx+++ b/web/app/components/header/nav/nav-selector/index.tsx@@ -1,6 +1,7 @@'use client'import type { AppIconType, AppModeEnum } from '@/types/app'import { Menu, MenuButton, MenuItem, MenuItems, Transition } from '@headlessui/react'+import { cn } from '@langgenius/dify-ui/cn'import {RiAddLine,RiArrowDownSLine,@@ -16,7 +17,6 @@ import { FileArrow01, FilePlus01, FilePlus02 } from '@/app/components/base/iconsimport Loading from '@/app/components/base/loading'import { useAppContext } from '@/context/app-context'import { useRouter } from '@/next/navigation'-import { cn } from '@/utils/classnames'export type NavItem = {id: string@@ -58,7 +58,7 @@ const NavSelector = ({ curNav, navigationItems, createText, isApp, onCreate, onL{({ open }) => (<><MenuButton className={cn(- 'hover:hover:bg-components-main-nav-nav-button-bg-active-hover group inline-flex h-7 w-full items-center justify-center radius-lg pl-2 pr-2.5 text-[14px] font-semibold text-components-main-nav-nav-button-text-active',+ 'hover:hover:bg-components-main-nav-nav-button-bg-active-hover group inline-flex h-7 w-full items-center justify-center rounded-[10px] pr-2.5 pl-2 text-[14px] font-semibold text-components-main-nav-nav-button-text-active',open && 'bg-components-main-nav-nav-button-bg-active',)}>@@ -70,7 +70,7 @@ const NavSelector = ({ curNav, navigationItems, createText, isApp, onCreate, onL</MenuButton><MenuItemsclassName="- absolute -left-11 right-0 mt-1.5 w-60 max-w-80+ absolute right-0 -left-11 mt-1.5 w-60 max-w-80origin-top-right divide-y divide-divider-regular rounded-lg bg-components-panel-bg-blurshadow-lg"@@ -119,10 +119,10 @@ const NavSelector = ({ curNav, navigationItems, createText, isApp, onCreate, onL<divonClick={() => onCreate('')}className={cn(- 'flex cursor-pointer items-center gap-2 rounded-lg px-3 py-[6px] hover:bg-state-base-hover ',+ 'flex cursor-pointer items-center gap-2 rounded-lg px-3 py-[6px] hover:bg-state-base-hover',)}>- <div className="flex h-6 w-6 shrink-0 items-center justify-center radius-sm border-[0.5px] border-divider-regular bg-background-default">+ <div className="flex h-6 w-6 shrink-0 items-center justify-center rounded-md border-[0.5px] border-divider-regular bg-background-default"><RiAddLine className="h-4 w-4 text-text-primary" /></div><div className="grow text-left text-[14px] font-normal text-text-secondary">{createText}</div>@@ -139,7 +139,7 @@ const NavSelector = ({ curNav, navigationItems, createText, isApp, onCreate, onLopen && 'bg-state-base-hover!',)}>- <div className="flex h-6 w-6 shrink-0 items-center justify-center radius-sm border-[0.5px] border-divider-regular bg-background-default">+ <div className="flex h-6 w-6 shrink-0 items-center justify-center rounded-md border-[0.5px] border-divider-regular bg-background-default"><RiAddLine className="h-4 w-4 text-text-primary" /></div><div className="grow text-left text-[14px] font-normal text-text-secondary">{createText}</div>@@ -156,7 +156,7 @@ const NavSelector = ({ curNav, navigationItems, createText, isApp, onCreate, onLleaveTo="transform opacity-0 scale-95"><MenuItems className={cn(- 'absolute right-[-198px] top-[3px] z-10 min-w-[200px] rounded-lg bg-components-panel-bg-blur shadow-lg',+ 'absolute top-[3px] right-[-198px] z-10 min-w-[200px] rounded-lg bg-components-panel-bg-blur shadow-lg',)}><div className="p-1">diff --git a/web/app/components/header/plugins-nav/index.tsx b/web/app/components/header/plugins-nav/index.tsxindex 578060ffa42..dee8fa26fa3 100644--- a/web/app/components/header/plugins-nav/index.tsx+++ b/web/app/components/header/plugins-nav/index.tsx@@ -1,12 +1,12 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'import { Group } from '@/app/components/base/icons/src/vender/other'import Indicator from '@/app/components/header/indicator'import { usePluginTaskStatus } from '@/app/components/plugins/plugin-page/plugin-tasks/hooks'import Link from '@/next/link'import { useSelectedLayoutSegment } from '@/next/navigation'-import { cn } from '@/utils/classnames'import DownloadingIcon from './downloading-icon'type PluginsNavProps = {@@ -33,13 +33,13 @@ const PluginsNav = ({)}><div- className={cn('system-sm-medium relative flex h-8 flex-row items-center justify-center gap-0.5 rounded-xl border border-transparent p-1.5', activated && 'border-components-main-nav-nav-button-border bg-components-main-nav-nav-button-bg-active text-components-main-nav-nav-button-text shadow-md', !activated && 'text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary', (isInstallingWithError || isFailed) && !activated && 'border-components-panel-border-subtle')}+ className={cn('relative flex h-8 flex-row items-center justify-center gap-0.5 rounded-xl border border-transparent p-1.5 system-sm-medium', activated && 'border-components-main-nav-nav-button-border bg-components-main-nav-nav-button-bg-active text-components-main-nav-nav-button-text shadow-md', !activated && 'text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary', (isInstallingWithError || isFailed) && !activated && 'border-components-panel-border-subtle')}>{(isFailed || isInstallingWithError) && !activated && (<Indicatorcolor="red"- className="absolute -left-px -top-px"+ className="absolute -top-px -left-px"/>)}diff --git a/web/app/components/header/tools-nav/index.tsx b/web/app/components/header/tools-nav/index.tsxindex 141b576a4cb..06d19382ac5 100644--- a/web/app/components/header/tools-nav/index.tsx+++ b/web/app/components/header/tools-nav/index.tsx@@ -1,5 +1,6 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import {RiHammerFill,RiHammerLine,@@ -7,7 +8,6 @@ import {import { useTranslation } from 'react-i18next'import Link from '@/next/link'import { useSelectedLayoutSegment } from '@/next/navigation'-import { cn } from '@/utils/classnames'type ToolsNavProps = {className?: stringdiff --git a/web/app/components/plugins/base/badges/icon-with-tooltip.tsx b/web/app/components/plugins/base/badges/icon-with-tooltip.tsxindex fc2aaaa5729..faabd545fda 100644--- a/web/app/components/plugins/base/badges/icon-with-tooltip.tsx+++ b/web/app/components/plugins/base/badges/icon-with-tooltip.tsx@@ -1,8 +1,8 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import Tooltip from '@/app/components/base/tooltip'import { Theme } from '@/types/app'-import { cn } from '@/utils/classnames'type IconWithTooltipProps = {className?: stringdiff --git a/web/app/components/plugins/base/deprecation-notice.tsx b/web/app/components/plugins/base/deprecation-notice.tsxindex 647c98c36cf..3f7561fed00 100644--- a/web/app/components/plugins/base/deprecation-notice.tsx+++ b/web/app/components/plugins/base/deprecation-notice.tsx@@ -1,12 +1,12 @@import type { FC } from 'react'import { useTranslation } from '#i18n'+import { cn } from '@langgenius/dify-ui/cn'import { RiAlertFill } from '@remixicon/react'import { camelCase } from 'es-toolkit/string'import * as React from 'react'import { useMemo } from 'react'import { Trans } from 'react-i18next'import Link from '@/next/link'-import { cn } from '@/utils/classnames'type DeprecationNoticeProps = {status: 'deleted' | 'active'@@ -62,11 +62,11 @@ const DeprecationNotice: FC<DeprecationNoticeProps> = ({innerWrapperClassName,)}>- <div className="absolute left-0 top-0 -z-10 h-full w-full bg-toast-warning-bg opacity-40" />+ <div className="absolute top-0 left-0 -z-10 h-full w-full bg-toast-warning-bg opacity-40" /><div className={cn('flex size-6 shrink-0 items-center justify-center', iconWrapperClassName)}><RiAlertFill className="size-4 text-text-warning-secondary" /></div>- <div className={cn('system-xs-regular grow py-1 text-text-primary', textClassName)}>+ <div className={cn('grow py-1 system-xs-regular text-text-primary', textClassName)}>{hasValidDeprecatedReason && alternativePluginId && (<Transdiff --git a/web/app/components/plugins/base/key-value-item.tsx b/web/app/components/plugins/base/key-value-item.tsxindex 26ec1684c21..1ba8e8caf9c 100644--- a/web/app/components/plugins/base/key-value-item.tsx+++ b/web/app/components/plugins/base/key-value-item.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {RiClipboardLine,} from '@remixicon/react'@@ -8,7 +9,6 @@ import * as React from 'react'import { useCallback, useEffect, useState } from 'react'import { useTranslation } from 'react-i18next'import ActionButton from '@/app/components/base/action-button'-import { cn } from '@/utils/classnames'import { CopyCheck } from '../../base/icons/src/vender/line/files'import Tooltip from '../../base/tooltip'@@ -49,9 +49,9 @@ const KeyValueItem: FC<Props> = ({return (<div className="flex items-center gap-1">- <span className={cn('system-xs-medium flex flex-col items-start justify-center text-text-tertiary', labelWidthClassName)}>{label}</span>+ <span className={cn('flex flex-col items-start justify-center system-xs-medium text-text-tertiary', labelWidthClassName)}>{label}</span><div className="flex items-center justify-center gap-0.5">- <span className={cn(valueMaxWidthClassName, ' system-xs-medium truncate text-text-secondary')}>+ <span className={cn(valueMaxWidthClassName, 'truncate system-xs-medium text-text-secondary')}>{maskedValue || value}</span><Tooltip popupContent={t(`operation.${isCopied ? 'copied' : 'copy'}`, { ns: 'common' })} position="top">diff --git a/web/app/components/plugins/card/base/__tests__/placeholder.spec.tsx b/web/app/components/plugins/card/base/__tests__/placeholder.spec.tsxindex 076f4d69dd1..e5dc9e22702 100644--- a/web/app/components/plugins/card/base/__tests__/placeholder.spec.tsx+++ b/web/app/components/plugins/card/base/__tests__/placeholder.spec.tsx@@ -10,7 +10,7 @@ vi.mock('../../../../base/icons/src/vender/other', () => ({Group: ({ className }: { className: string }) => <span data-testid="group-icon" className={className} />,}))-vi.mock('@/utils/classnames', () => ({+vi.mock('@langgenius/dify-ui/cn', () => ({cn: (...args: unknown[]) => args.filter(Boolean).join(' '),}))diff --git a/web/app/components/plugins/card/base/card-icon.tsx b/web/app/components/plugins/card/base/card-icon.tsxindex 55b6e8cc627..5e3eebab20e 100644--- a/web/app/components/plugins/card/base/card-icon.tsx+++ b/web/app/components/plugins/card/base/card-icon.tsx@@ -1,7 +1,7 @@+import { cn } from '@langgenius/dify-ui/cn'import { RiCheckLine, RiCloseLine } from '@remixicon/react'import AppIcon from '@/app/components/base/app-icon'import { Mcp } from '@/app/components/base/icons/src/vender/other'-import { cn } from '@/utils/classnames'import { shouldUseMcpIcon } from '@/utils/mcp'const iconSizeMap = {diff --git a/web/app/components/plugins/card/base/description.tsx b/web/app/components/plugins/card/base/description.tsxindex 79e77c7e6fc..ff43f491dd9 100644--- a/web/app/components/plugins/card/base/description.tsx+++ b/web/app/components/plugins/card/base/description.tsx@@ -1,7 +1,7 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useMemo } from 'react'-import { cn } from '@/utils/classnames'type Props = {className?: stringdiff --git a/web/app/components/plugins/card/base/org-info.tsx b/web/app/components/plugins/card/base/org-info.tsxindex 475b8771982..ac1b670204a 100644--- a/web/app/components/plugins/card/base/org-info.tsx+++ b/web/app/components/plugins/card/base/org-info.tsx@@ -1,4 +1,4 @@-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'type Props = {className?: string@@ -17,11 +17,11 @@ const OrgInfo = ({<div className={cn('flex h-4 items-center space-x-0.5', className)}>{orgName && (<>- <span className="system-xs-regular shrink-0 text-text-tertiary">{orgName}</span>- <span className="system-xs-regular shrink-0 text-text-quaternary">/</span>+ <span className="shrink-0 system-xs-regular text-text-tertiary">{orgName}</span>+ <span className="shrink-0 system-xs-regular text-text-quaternary">/</span></>)}- <span className={cn('system-xs-regular w-0 shrink-0 grow truncate text-text-tertiary', packageNameClassName)}>+ <span className={cn('w-0 shrink-0 grow truncate system-xs-regular text-text-tertiary', packageNameClassName)}>{packageName}</span></div>diff --git a/web/app/components/plugins/card/base/placeholder.tsx b/web/app/components/plugins/card/base/placeholder.tsxindex 306bd928e0c..1a1a58673e8 100644--- a/web/app/components/plugins/card/base/placeholder.tsx+++ b/web/app/components/plugins/card/base/placeholder.tsx@@ -1,5 +1,5 @@+import { cn } from '@langgenius/dify-ui/cn'import { SkeletonContainer, SkeletonPoint, SkeletonRectangle, SkeletonRow } from '@/app/components/base/skeleton'-import { cn } from '@/utils/classnames'import { Group } from '../../../base/icons/src/vender/other'import Title from './title'@@ -20,7 +20,7 @@ const Placeholder = ({<div className={wrapClassName}><SkeletonRow><div- className="flex h-10 w-10 items-center justify-center gap-2 radius-lg border-[0.5px]+ className="flex h-10 w-10 items-center justify-center gap-2 rounded-[10px] border-[0.5px]border-components-panel-border bg-background-default p-1 backdrop-blur-xs"><div className="flex h-5 w-5 items-center justify-center">diff --git a/web/app/components/plugins/card/index.tsx b/web/app/components/plugins/card/index.tsxindex 2d48985f927..9f9b89cbbfd 100644--- a/web/app/components/plugins/card/index.tsx+++ b/web/app/components/plugins/card/index.tsx@@ -1,6 +1,7 @@'use client'import type { Plugin } from '../types'import { useTranslation } from '#i18n'+import { cn } from '@langgenius/dify-ui/cn'import { RiAlertFill } from '@remixicon/react'import * as React from 'react'import { useSelector } from '@/context/app-context'@@ -10,7 +11,6 @@ import {renderI18nObject,} from '@/i18n-config'import { Theme } from '@/types/app'-import { cn } from '@/utils/classnames'import Partner from '../base/badges/partner'import Verified from '../base/badges/verified'import Icon from '../card/base/card-icon'@@ -106,9 +106,9 @@ const Card = ({</div>{limitedInstall&& (- <div className="relative flex h-8 items-center gap-x-2 px-3 after:absolute after:bottom-0 after:left-0 after:right-0 after:top-0 after:bg-toast-warning-bg after:opacity-40">+ <div className="relative flex h-8 items-center gap-x-2 px-3 after:absolute after:top-0 after:right-0 after:bottom-0 after:left-0 after:bg-toast-warning-bg after:opacity-40"><RiAlertFill className="h-3 w-3 shrink-0 text-text-warning-secondary" />- <p className="z-10 grow text-text-secondary system-xs-regular">+ <p className="z-10 grow system-xs-regular text-text-secondary">{t('installModal.installWarning', { ns: 'plugin' })}</p></div>diff --git a/web/app/components/plugins/install-plugin/base/loading-error.tsx b/web/app/components/plugins/install-plugin/base/loading-error.tsxindex 00b4659d05e..67509367733 100644--- a/web/app/components/plugins/install-plugin/base/loading-error.tsx+++ b/web/app/components/plugins/install-plugin/base/loading-error.tsx@@ -19,21 +19,21 @@ const LoadingError: FC = () => {<div className="hover-bg-components-panel-on-panel-item-bg relative grow rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-on-panel-item-bg p-4 pb-3 shadow-xs"><div className="flex"><div- className="relative flex h-10 w-10 items-center justify-center gap-2 radius-lg border-[0.5px]+ className="relative flex h-10 w-10 items-center justify-center gap-2 rounded-[10px] border-[0.5px]border-state-destructive-border bg-state-destructive-hover p-1 backdrop-blur-xs"><div className="flex h-5 w-5 items-center justify-center"><Group className="text-text-quaternary" /></div>- <div className="absolute bottom-[-4px] right-[-4px] rounded-full border-2 border-components-panel-bg bg-state-destructive-solid">+ <div className="absolute right-[-4px] bottom-[-4px] rounded-full border-2 border-components-panel-bg bg-state-destructive-solid"><RiCloseLine className="h-3 w-3 text-text-primary-on-surface" /></div></div><div className="ml-3 grow">- <div className="system-md-semibold flex h-5 items-center text-text-destructive">+ <div className="flex h-5 items-center system-md-semibold text-text-destructive">{t('installModal.pluginLoadError', { ns: 'plugin' })}</div>- <div className="system-xs-regular mt-0.5 text-text-tertiary">+ <div className="mt-0.5 system-xs-regular text-text-tertiary">{t('installModal.pluginLoadErrorDesc', { ns: 'plugin' })}</div></div>diff --git a/web/app/components/plugins/install-plugin/install-bundle/index.tsx b/web/app/components/plugins/install-plugin/install-bundle/index.tsxindex 63416e6ae0b..6d2b476c51b 100644--- a/web/app/components/plugins/install-plugin/install-bundle/index.tsx+++ b/web/app/components/plugins/install-plugin/install-bundle/index.tsx@@ -1,11 +1,11 @@'use client'import type { FC } from 'react'import type { Dependency } from '../../types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'import Modal from '@/app/components/base/modal'-import { cn } from '@/utils/classnames'import { InstallStep } from '../../types'import useHideLogic from '../hooks/use-hide-logic'import ReadyToInstall from './ready-to-install'@@ -56,8 +56,8 @@ const InstallBundle: FC<Props> = ({className={cn(modalClassName, 'shadows-shadow-xl flex min-w-[560px] flex-col items-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-0')}closable>- <div className="flex items-start gap-2 self-stretch pb-3 pl-6 pr-14 pt-6">- <div className="title-2xl-semi-bold self-stretch text-text-primary">+ <div className="flex items-start gap-2 self-stretch pt-6 pr-14 pb-3 pl-6">+ <div className="self-stretch title-2xl-semi-bold text-text-primary">{getTitle()}</div></div>diff --git a/web/app/components/plugins/install-plugin/install-from-github/index.tsx b/web/app/components/plugins/install-plugin/install-from-github/index.tsxindex c7ace3d94f0..f1e4d1b9bfd 100644--- a/web/app/components/plugins/install-plugin/install-from-github/index.tsx+++ b/web/app/components/plugins/install-plugin/install-from-github/index.tsx@@ -3,13 +3,13 @@import type { PluginDeclaration, UpdateFromGitHubPayload } from '../../types'import type { Item } from '@/app/components/base/select'import type { InstallState } from '@/app/components/plugins/types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'import Modal from '@/app/components/base/modal'import { toast } from '@/app/components/base/ui/toast'import useGetIcon from '@/app/components/plugins/install-plugin/base/use-get-icon'-import { cn } from '@/utils/classnames'import { InstallStepFromGitHub } from '../../types'import Installed from '../base/installed'import { fetchReleases } from '../hooks'@@ -163,12 +163,12 @@ const InstallFromGitHub: React.FC<InstallFromGitHubProps> = ({ updatePayload, onborder-components-panel-border bg-components-panel-bg p-0`)}closable>- <div className="flex items-start gap-2 self-stretch pb-3 pl-6 pr-14 pt-6">+ <div className="flex items-start gap-2 self-stretch pt-6 pr-14 pb-3 pl-6"><div className="flex grow flex-col items-start gap-1">- <div className="self-stretch text-text-primary title-2xl-semi-bold">+ <div className="self-stretch title-2xl-semi-bold text-text-primary">{getTitle()}</div>- <div className="self-stretch text-text-tertiary system-xs-regular">+ <div className="self-stretch system-xs-regular text-text-tertiary">{!([InstallStepFromGitHub.uploadFailed, InstallStepFromGitHub.installed, InstallStepFromGitHub.installFailed].includes(state.step)) && t('installFromGitHub.installNote', { ns: 'plugin' })}</div></div>diff --git a/web/app/components/plugins/install-plugin/install-from-local-package/index.tsx b/web/app/components/plugins/install-plugin/install-from-local-package/index.tsxindex d1d1eb26b7f..94504acd986 100644--- a/web/app/components/plugins/install-plugin/install-from-local-package/index.tsx+++ b/web/app/components/plugins/install-plugin/install-from-local-package/index.tsx@@ -1,12 +1,12 @@'use client'import type { Dependency, PluginDeclaration } from '../../types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'import Modal from '@/app/components/base/modal'import useGetIcon from '@/app/components/plugins/install-plugin/base/use-get-icon'-import { cn } from '@/utils/classnames'import { InstallStep } from '../../types'import useHideLogic from '../hooks/use-hide-logic'import ReadyToInstallBundle from '../install-bundle/ready-to-install'@@ -92,8 +92,8 @@ const InstallFromLocalPackage: React.FC<InstallFromLocalPackageProps> = ({className={cn(modalClassName, 'shadows-shadow-xl flex min-w-[560px] flex-col items-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-0')}closable>- <div className="flex items-start gap-2 self-stretch pb-3 pl-6 pr-14 pt-6">- <div className="title-2xl-semi-bold self-stretch text-text-primary">+ <div className="flex items-start gap-2 self-stretch pt-6 pr-14 pb-3 pl-6">+ <div className="self-stretch title-2xl-semi-bold text-text-primary">{getTitle()}</div></div>diff --git a/web/app/components/plugins/install-plugin/install-from-marketplace/index.tsx b/web/app/components/plugins/install-plugin/install-from-marketplace/index.tsxindex 72b28bc46c8..128b49fcae5 100644--- a/web/app/components/plugins/install-plugin/install-from-marketplace/index.tsx+++ b/web/app/components/plugins/install-plugin/install-from-marketplace/index.tsx@@ -1,11 +1,11 @@'use client'import type { Dependency, Plugin, PluginManifestInMarket } from '../../types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'import Modal from '@/app/components/base/modal'-import { cn } from '@/utils/classnames'import { InstallStep } from '../../types'import Installed from '../base/installed'import useHideLogic from '../hooks/use-hide-logic'@@ -77,8 +77,8 @@ const InstallFromMarketplace: React.FC<InstallFromMarketplaceProps> = ({className={cn(modalClassName, 'shadows-shadow-xl flex min-w-[560px] flex-col items-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-0')}closable>- <div className="flex items-start gap-2 self-stretch pb-3 pl-6 pr-14 pt-6">- <div className="title-2xl-semi-bold self-stretch text-text-primary">+ <div className="flex items-start gap-2 self-stretch pt-6 pr-14 pb-3 pl-6">+ <div className="self-stretch title-2xl-semi-bold text-text-primary">{getTitle()}</div></div>diff --git a/web/app/components/plugins/marketplace/empty/index.tsx b/web/app/components/plugins/marketplace/empty/index.tsxindex db453a23a4d..bff77b5d8e3 100644--- a/web/app/components/plugins/marketplace/empty/index.tsx+++ b/web/app/components/plugins/marketplace/empty/index.tsx@@ -1,7 +1,7 @@'use client'import { useTranslation } from '#i18n'+import { cn } from '@langgenius/dify-ui/cn'import { Group } from '@/app/components/base/icons/src/vender/other'-import { cn } from '@/utils/classnames'import Line from './line'type Props = {@@ -26,7 +26,7 @@ const Empty = ({<divkey={index}className={cn(- 'mb-3 mr-3 h-[144px] w-[calc((100%-36px)/4)] rounded-xl bg-background-section-burn',+ 'mr-3 mb-3 h-[144px] w-[calc((100%-36px)/4)] rounded-xl bg-background-section-burn',index % 4 === 3 && 'mr-0',index > 11 && 'mb-0',lightCard && 'bg-background-default-lighter opacity-75',@@ -43,15 +43,15 @@ const Empty = ({</div>)}- <div className="absolute left-1/2 top-1/2 z-2 flex -translate-x-1/2 -translate-y-1/2 flex-col items-center">+ <div className="absolute top-1/2 left-1/2 z-2 flex -translate-x-1/2 -translate-y-1/2 flex-col items-center"><div className="relative mb-3 flex h-14 w-14 items-center justify-center rounded-xl border border-dashed border-divider-deep bg-components-card-bg shadow-lg"><Group className="h-5 w-5 text-text-primary" />- <Line className="absolute -right-px top-1/2 -translate-y-1/2" />- <Line className="absolute -left-px top-1/2 -translate-y-1/2" />- <Line className="absolute left-1/2 top-0 -translate-x-1/2 -translate-y-1/2 rotate-90" />- <Line className="absolute left-1/2 top-full -translate-x-1/2 -translate-y-1/2 rotate-90" />+ <Line className="absolute top-1/2 -right-px -translate-y-1/2" />+ <Line className="absolute top-1/2 -left-px -translate-y-1/2" />+ <Line className="absolute top-0 left-1/2 -translate-x-1/2 -translate-y-1/2 rotate-90" />+ <Line className="absolute top-full left-1/2 -translate-x-1/2 -translate-y-1/2 rotate-90" /></div>- <div className="system-md-regular text-center text-text-tertiary">+ <div className="text-center system-md-regular text-text-tertiary">{text || t('marketplace.noPluginFound', { ns: 'plugin' })}</div></div>diff --git a/web/app/components/plugins/marketplace/list/index.tsx b/web/app/components/plugins/marketplace/list/index.tsxindex 4ce7272e805..734bbbbf138 100644--- a/web/app/components/plugins/marketplace/list/index.tsx+++ b/web/app/components/plugins/marketplace/list/index.tsx@@ -1,7 +1,7 @@'use client'import type { Plugin } from '../../types'import type { MarketplaceCollection } from '../types'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'import Empty from '../empty'import CardWrapper from './card-wrapper'import ListWithCollection from './list-with-collection'diff --git a/web/app/components/plugins/marketplace/list/list-with-collection.tsx b/web/app/components/plugins/marketplace/list/list-with-collection.tsxindex 264227b6663..21094f39a53 100644--- a/web/app/components/plugins/marketplace/list/list-with-collection.tsx+++ b/web/app/components/plugins/marketplace/list/list-with-collection.tsx@@ -3,9 +3,9 @@import type { MarketplaceCollection } from '../types'import type { Plugin } from '@/app/components/plugins/types'import { useLocale, useTranslation } from '#i18n'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowRightSLine } from '@remixicon/react'import { getLanguage } from '@/i18n-config/language'-import { cn } from '@/utils/classnames'import { useMarketplaceMoreClick } from '../atoms'import CardWrapper from './card-wrapper'@@ -45,7 +45,7 @@ const ListWithCollection = ({{collection.searchable && (<div- className="system-xs-medium flex cursor-pointer items-center text-text-accent "+ className="flex cursor-pointer items-center system-xs-medium text-text-accent"onClick={() => onMoreClick(collection.search_params)}>{t('marketplace.viewMore', { ns: 'plugin' })}diff --git a/web/app/components/plugins/marketplace/plugin-type-switch.tsx b/web/app/components/plugins/marketplace/plugin-type-switch.tsxindex 6473e8bd87e..d9f305db721 100644--- a/web/app/components/plugins/marketplace/plugin-type-switch.tsx+++ b/web/app/components/plugins/marketplace/plugin-type-switch.tsx@@ -1,6 +1,7 @@'use client'import type { ActivePluginType } from './constants'import { useTranslation } from '#i18n'+import { cn } from '@langgenius/dify-ui/cn'import {RiArchive2Line,RiBrain2Line,@@ -11,7 +12,6 @@ import {} from '@remixicon/react'import { useSetAtom } from 'jotai'import { Trigger as TriggerIcon } from '@/app/components/base/icons/src/vender/plugin'-import { cn } from '@/utils/classnames'import { searchModeAtom, useActivePluginType } from './atoms'import { PLUGIN_CATEGORY_WITH_COLLECTIONS, PLUGIN_TYPE_SEARCH_MAP } from './constants'@@ -83,7 +83,7 @@ const PluginTypeSwitch = ({<divkey={option.value}className={cn(- 'system-md-medium flex h-8 cursor-pointer items-center rounded-xl border border-transparent px-3 text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary',+ 'flex h-8 cursor-pointer items-center rounded-xl border border-transparent px-3 system-md-medium text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary',activePluginType === option.value && 'border-components-main-nav-nav-button-border bg-components-main-nav-nav-button-bg-active! text-components-main-nav-nav-button-text-active! shadow-xs',)}onClick={() => {diff --git a/web/app/components/plugins/marketplace/search-box/__tests__/index.spec.tsx b/web/app/components/plugins/marketplace/search-box/__tests__/index.spec.tsxindex 2e0f85b9ef0..31cb5d84454 100644--- a/web/app/components/plugins/marketplace/search-box/__tests__/index.spec.tsx+++ b/web/app/components/plugins/marketplace/search-box/__tests__/index.spec.tsx@@ -142,7 +142,7 @@ describe('SearchBox', () => {)// In non-marketplace mode, search icon appears first- expect(container.querySelector('.radius-md')).toBeInTheDocument()+ expect(container.querySelector('.rounded-lg')).toBeInTheDocument()})it('should render placeholder correctly', () => {diff --git a/web/app/components/plugins/marketplace/search-box/index.tsx b/web/app/components/plugins/marketplace/search-box/index.tsxindex ee06aebbd64..64f03f1da39 100644--- a/web/app/components/plugins/marketplace/search-box/index.tsx+++ b/web/app/components/plugins/marketplace/search-box/index.tsx@@ -1,8 +1,8 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import { RiAddLine, RiCloseLine, RiSearchLine } from '@remixicon/react'import ActionButton from '@/app/components/base/action-button'import Divider from '@/app/components/base/divider'-import { cn } from '@/utils/classnames'import TagsFilter from './tags-filter'type SearchBoxProps = {@@ -37,7 +37,7 @@ const SearchBox = ({className={cn('z-11 flex items-center', wrapperClassName)}><div className={- cn('flex items-center', usedInMarketplace && 'rounded-xl border border-components-chat-input-border bg-components-panel-bg-blur p-1.5 shadow-md', !usedInMarketplace && 'radius-md border border-transparent bg-components-input-bg-normal focus-within:border-components-input-border-active hover:border-components-input-border-hover', inputClassName)+ cn('flex items-center', usedInMarketplace && 'rounded-xl border border-components-chat-input-border bg-components-panel-bg-blur p-1.5 shadow-md', !usedInMarketplace && 'rounded-lg border border-transparent bg-components-input-bg-normal focus-within:border-components-input-border-active hover:border-components-input-border-hover', inputClassName)}>{@@ -52,7 +52,7 @@ const SearchBox = ({<div className="flex grow items-center gap-x-2 p-1"><inputclassName={cn(- 'body-md-medium inline-block grow appearance-none bg-transparent text-text-secondary outline-hidden',+ 'inline-block grow appearance-none bg-transparent body-md-medium text-text-secondary outline-hidden',)}value={search}onChange={(e) => {@@ -77,12 +77,12 @@ const SearchBox = ({{!usedInMarketplace && (<>- <div className="flex grow items-center py-[7px] pl-2 pr-3">+ <div className="flex grow items-center py-[7px] pr-3 pl-2"><RiSearchLine className="size-4 text-components-input-text-placeholder" /><inputautoFocus={autoFocus}className={cn(- 'system-sm-regular ml-1.5 mr-1 inline-block grow appearance-none bg-transparent text-components-input-text-filled outline-hidden placeholder:text-components-input-text-placeholder',+ 'mr-1 ml-1.5 inline-block grow appearance-none bg-transparent system-sm-regular text-components-input-text-filled outline-hidden placeholder:text-components-input-text-placeholder',search && 'mr-2',)}value={search}diff --git a/web/app/components/plugins/marketplace/search-box/trigger/marketplace.tsx b/web/app/components/plugins/marketplace/search-box/trigger/marketplace.tsxindex e387d52d0ee..414216c5324 100644--- a/web/app/components/plugins/marketplace/search-box/trigger/marketplace.tsx+++ b/web/app/components/plugins/marketplace/search-box/trigger/marketplace.tsx@@ -1,8 +1,8 @@import type { Tag } from '../../../hooks'import { useTranslation } from '#i18n'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine, RiCloseCircleFill, RiFilter3Line } from '@remixicon/react'import * as React from 'react'-import { cn } from '@/utils/classnames'type MarketplaceTriggerProps = {selectedTagsLength: number@@ -24,7 +24,7 @@ const MarketplaceTrigger = ({return (<divclassName={cn(- 'flex h-8 cursor-pointer select-none items-center rounded-lg px-2 py-1 text-text-tertiary',+ 'flex h-8 cursor-pointer items-center rounded-lg px-2 py-1 text-text-tertiary select-none',!!selectedTagsLength && 'border-[0.5px] border-components-button-secondary-border bg-components-button-secondary-bg shadow-xs shadow-shadow-shadow-3',open && !selectedTagsLength && 'bg-state-base-hover',)}@@ -32,7 +32,7 @@ const MarketplaceTrigger = ({<div className="p-0.5"><RiFilter3Line className={cn('size-4', !!selectedTagsLength && 'text-text-secondary')} /></div>- <div className="system-sm-medium flex items-center gap-x-1 p-1">+ <div className="flex items-center gap-x-1 p-1 system-sm-medium">{!selectedTagsLength && <span>{t('allTags', { ns: 'pluginTags' })}</span>}diff --git a/web/app/components/plugins/marketplace/search-box/trigger/tool-selector.tsx b/web/app/components/plugins/marketplace/search-box/trigger/tool-selector.tsxindex 4e1fbebd467..6c733ea5468 100644--- a/web/app/components/plugins/marketplace/search-box/trigger/tool-selector.tsx+++ b/web/app/components/plugins/marketplace/search-box/trigger/tool-selector.tsx@@ -1,7 +1,7 @@import type { Tag } from '../../../hooks'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseCircleFill, RiPriceTag3Line } from '@remixicon/react'import * as React from 'react'-import { cn } from '@/utils/classnames'type ToolSelectorTriggerProps = {selectedTagsLength: number@@ -20,9 +20,9 @@ const ToolSelectorTrigger = ({}: ToolSelectorTriggerProps) => {return (<div className={cn(- 'flex h-7 cursor-pointer select-none items-center rounded-md p-0.5 text-text-tertiary',- !selectedTagsLength && 'py-1 pl-1.5 pr-2',- !!selectedTagsLength && 'border-[0.5px] border-components-button-secondary-border bg-components-button-secondary-bg py-0.5 pl-1 pr-1.5 shadow-xs shadow-shadow-shadow-3',+ 'flex h-7 cursor-pointer items-center rounded-md p-0.5 text-text-tertiary select-none',+ !selectedTagsLength && 'py-1 pr-2 pl-1.5',+ !!selectedTagsLength && 'border-[0.5px] border-components-button-secondary-border bg-components-button-secondary-bg py-0.5 pr-1.5 pl-1 shadow-xs shadow-shadow-shadow-3',open && !selectedTagsLength && 'bg-state-base-hover',)}>@@ -31,7 +31,7 @@ const ToolSelectorTrigger = ({</div>{!!selectedTagsLength && (- <div className="system-sm-medium flex items-center gap-x-0.5 px-0.5 py-1">+ <div className="flex items-center gap-x-0.5 px-0.5 py-1 system-sm-medium"><span className="text-text-secondary">{tags.map(tag => tagsMap[tag].label).slice(0, 2).join(',')}</span>diff --git a/web/app/components/plugins/marketplace/sticky-search-and-switch-wrapper.tsx b/web/app/components/plugins/marketplace/sticky-search-and-switch-wrapper.tsxindex 4da3844c0a7..099564c425f 100644--- a/web/app/components/plugins/marketplace/sticky-search-and-switch-wrapper.tsx+++ b/web/app/components/plugins/marketplace/sticky-search-and-switch-wrapper.tsx@@ -1,6 +1,6 @@'use client'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'import PluginTypeSwitch from './plugin-type-switch'import SearchBoxWrapper from './search-box/search-box-wrapper'diff --git a/web/app/components/plugins/plugin-auth/authorize/__tests__/add-oauth-button.spec.tsx b/web/app/components/plugins/plugin-auth/authorize/__tests__/add-oauth-button.spec.tsxindex 46d57a8ab3a..f39148afc84 100644--- a/web/app/components/plugins/plugin-auth/authorize/__tests__/add-oauth-button.spec.tsx+++ b/web/app/components/plugins/plugin-auth/authorize/__tests__/add-oauth-button.spec.tsx@@ -42,7 +42,7 @@ vi.mock('@/app/components/base/form/types', () => ({FormTypeEnum: { radio: 'radio' },}))-vi.mock('@/utils/classnames', () => ({+vi.mock('@langgenius/dify-ui/cn', () => ({cn: (...args: unknown[]) => args.filter(Boolean).join(' '),}))diff --git a/web/app/components/plugins/plugin-auth/authorize/add-oauth-button.tsx b/web/app/components/plugins/plugin-auth/authorize/add-oauth-button.tsxindex fa094e467de..31e87564e77 100644--- a/web/app/components/plugins/plugin-auth/authorize/add-oauth-button.tsx+++ b/web/app/components/plugins/plugin-auth/authorize/add-oauth-button.tsx@@ -1,6 +1,7 @@import type { PluginPayload } from '../types'import type { FormSchema } from '@/app/components/base/form/types'import type { ButtonProps } from '@/app/components/base/ui/button'+import { cn } from '@langgenius/dify-ui/cn'import {RiClipboardLine,RiEqualizer2Line,@@ -19,7 +20,6 @@ import { FormTypeEnum } from '@/app/components/base/form/types'import { Button } from '@/app/components/base/ui/button'import { useRenderI18nObject } from '@/hooks/use-i18n'import { openOAuthPopup } from '@/hooks/use-oauth'-import { cn } from '@/utils/classnames'import {useGetPluginOAuthClientSchemaHook,useGetPluginOAuthUrlHook,diff --git a/web/app/components/plugins/plugin-auth/authorize/index.tsx b/web/app/components/plugins/plugin-auth/authorize/index.tsxindex 1dbd41b9854..fe82498fada 100644--- a/web/app/components/plugins/plugin-auth/authorize/index.tsx+++ b/web/app/components/plugins/plugin-auth/authorize/index.tsx@@ -1,13 +1,13 @@import type { PluginPayload } from '../types'import type { AddApiKeyButtonProps } from './add-api-key-button'import type { AddOAuthButtonProps } from './add-oauth-button'+import { cn } from '@langgenius/dify-ui/cn'import {memo,useMemo,} from 'react'import { useTranslation } from 'react-i18next'import Tooltip from '@/app/components/base/tooltip'-import { cn } from '@/utils/classnames'import AddApiKeyButton from './add-api-key-button'import AddOAuthButton from './add-oauth-button'@@ -118,7 +118,7 @@ const Authorize = ({}{showDivider && canOAuth && canApiKey && (- <div className="system-2xs-medium-uppercase flex shrink-0 flex-col items-center justify-between text-text-tertiary">+ <div className="flex shrink-0 flex-col items-center justify-between system-2xs-medium-uppercase text-text-tertiary"><div className="h-2 w-px bg-divider-subtle"></div>or<div className="h-2 w-px bg-divider-subtle"></div>diff --git a/web/app/components/plugins/plugin-auth/authorized-in-data-source-node.tsx b/web/app/components/plugins/plugin-auth/authorized-in-data-source-node.tsxindex 0e111d6237f..548b1fb175a 100644--- a/web/app/components/plugins/plugin-auth/authorized-in-data-source-node.tsx+++ b/web/app/components/plugins/plugin-auth/authorized-in-data-source-node.tsx@@ -1,3 +1,4 @@+import { cn } from '@langgenius/dify-ui/cn'import { RiEqualizer2Line } from '@remixicon/react'import {memo,@@ -5,7 +6,6 @@ import {import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'import Indicator from '@/app/components/header/indicator'-import { cn } from '@/utils/classnames'type AuthorizedInDataSourceNodeProps = {authorizationsNum: numberdiff --git a/web/app/components/plugins/plugin-auth/authorized-in-node.tsx b/web/app/components/plugins/plugin-auth/authorized-in-node.tsxindex d7c52322e0d..048bbf3e8fb 100644--- a/web/app/components/plugins/plugin-auth/authorized-in-node.tsx+++ b/web/app/components/plugins/plugin-auth/authorized-in-node.tsx@@ -2,6 +2,7 @@ import type {Credential,PluginPayload,} from './types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine } from '@remixicon/react'import {memo,@@ -11,7 +12,6 @@ import {import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'import Indicator from '@/app/components/header/indicator'-import { cn } from '@/utils/classnames'import {Authorized,usePluginAuth,diff --git a/web/app/components/plugins/plugin-auth/authorized/index.tsx b/web/app/components/plugins/plugin-auth/authorized/index.tsxindex dc905d9f8c7..4729909a1f9 100644--- a/web/app/components/plugins/plugin-auth/authorized/index.tsx+++ b/web/app/components/plugins/plugin-auth/authorized/index.tsx@@ -2,6 +2,7 @@ import type { Credential, PluginPayload } from '../types'import type {PortalToFollowElemOptions,} from '@/app/components/base/portal-to-follow-elem'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowDownSLine,} from '@remixicon/react'@@ -28,7 +29,6 @@ import {import { Button } from '@/app/components/base/ui/button'import { toast } from '@/app/components/base/ui/toast'import Indicator from '@/app/components/header/indicator'-import { cn } from '@/utils/classnames'import Authorize from '../authorize'import ApiKeyModal from '../authorize/api-key-modal'import {diff --git a/web/app/components/plugins/plugin-auth/authorized/item.tsx b/web/app/components/plugins/plugin-auth/authorized/item.tsxindex 3efad1ae482..82e3fc45630 100644--- a/web/app/components/plugins/plugin-auth/authorized/item.tsx+++ b/web/app/components/plugins/plugin-auth/authorized/item.tsx@@ -1,4 +1,5 @@import type { Credential } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import {RiCheckLine,RiDeleteBinLine,@@ -17,7 +18,6 @@ import Input from '@/app/components/base/input'import Tooltip from '@/app/components/base/tooltip'import { Button } from '@/app/components/base/ui/button'import Indicator from '@/app/components/header/indicator'-import { cn } from '@/utils/classnames'import { CredentialTypeEnum } from '../types'type ItemProps = {@@ -79,7 +79,7 @@ const Item = ({renaming && (<div className="flex w-full items-center space-x-1"><Input- wrapperClassName="grow radius-sm"+ wrapperClassName="grow rounded-md"className="h-6"value={renameValue}onChange={e => setRenameValue(e.target.value)}diff --git a/web/app/components/plugins/plugin-auth/plugin-auth-in-agent.tsx b/web/app/components/plugins/plugin-auth/plugin-auth-in-agent.tsxindex fb7b81195e3..f54093f0f98 100644--- a/web/app/components/plugins/plugin-auth/plugin-auth-in-agent.tsx+++ b/web/app/components/plugins/plugin-auth/plugin-auth-in-agent.tsx@@ -2,6 +2,7 @@ import type {Credential,PluginPayload,} from './types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine } from '@remixicon/react'import {memo,@@ -11,7 +12,6 @@ import {import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'import Indicator from '@/app/components/header/indicator'-import { cn } from '@/utils/classnames'import Authorize from './authorize'import Authorized from './authorized'import { usePluginAuth } from './hooks/use-plugin-auth'diff --git a/web/app/components/plugins/plugin-auth/plugin-auth.tsx b/web/app/components/plugins/plugin-auth/plugin-auth.tsxindex 23834d30788..2ddb03fae1e 100644--- a/web/app/components/plugins/plugin-auth/plugin-auth.tsx+++ b/web/app/components/plugins/plugin-auth/plugin-auth.tsx@@ -1,6 +1,6 @@import type { PluginPayload } from './types'+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'-import { cn } from '@/utils/classnames'import Authorize from './authorize'import Authorized from './authorized'import { usePluginAuth } from './hooks/use-plugin-auth'diff --git a/web/app/components/plugins/plugin-detail-panel/__tests__/detail-header.spec.tsx b/web/app/components/plugins/plugin-detail-panel/__tests__/detail-header.spec.tsxindex e0aa13948b3..74ce8525a98 100644--- a/web/app/components/plugins/plugin-detail-panel/__tests__/detail-header.spec.tsx+++ b/web/app/components/plugins/plugin-detail-panel/__tests__/detail-header.spec.tsx@@ -144,7 +144,7 @@ vi.mock('@/hooks/use-i18n', () => ({useRenderI18nObject: () => (obj: Record<string, string>) => obj?.en_US || '',}))-vi.mock('@/utils/classnames', () => ({+vi.mock('@langgenius/dify-ui/cn', () => ({cn: (...args: (string | undefined | false | null)[]) => args.filter(Boolean).join(' '),}))diff --git a/web/app/components/plugins/plugin-detail-panel/__tests__/endpoint-list.spec.tsx b/web/app/components/plugins/plugin-detail-panel/__tests__/endpoint-list.spec.tsxindex 8f26aa6c5a2..50d63742ac0 100644--- a/web/app/components/plugins/plugin-detail-panel/__tests__/endpoint-list.spec.tsx+++ b/web/app/components/plugins/plugin-detail-panel/__tests__/endpoint-list.spec.tsx@@ -7,7 +7,7 @@ vi.mock('@/context/i18n', () => ({useDocLink: () => (path: string) => `https://docs.example.com${path}`,}))-vi.mock('@/utils/classnames', () => ({+vi.mock('@langgenius/dify-ui/cn', () => ({cn: (...args: (string | undefined | false | null)[]) => args.filter(Boolean).join(' '),}))diff --git a/web/app/components/plugins/plugin-detail-panel/__tests__/index.spec.tsx b/web/app/components/plugins/plugin-detail-panel/__tests__/index.spec.tsxindex c3989ab71f1..3467aad0664 100644--- a/web/app/components/plugins/plugin-detail-panel/__tests__/index.spec.tsx+++ b/web/app/components/plugins/plugin-detail-panel/__tests__/index.spec.tsx@@ -119,7 +119,7 @@ vi.mock('../../readme-panel/entrance', () => ({}))// Mock classnames utility-vi.mock('@/utils/classnames', () => ({+vi.mock('@langgenius/dify-ui/cn', () => ({cn: (...args: (string | undefined | false | null)[]) => args.filter(Boolean).join(' '),}))diff --git a/web/app/components/plugins/plugin-detail-panel/__tests__/operation-dropdown.spec.tsx b/web/app/components/plugins/plugin-detail-panel/__tests__/operation-dropdown.spec.tsxindex b8d84763df6..fa3d6f22668 100644--- a/web/app/components/plugins/plugin-detail-panel/__tests__/operation-dropdown.spec.tsx+++ b/web/app/components/plugins/plugin-detail-panel/__tests__/operation-dropdown.spec.tsx@@ -10,7 +10,7 @@ vi.mock('@/context/global-public-context', () => ({selector({ systemFeatures: { enable_marketplace: true } }),}))-vi.mock('@/utils/classnames', () => ({+vi.mock('@langgenius/dify-ui/cn', () => ({cn: (...args: (string | undefined | false | null)[]) => args.filter(Boolean).join(' '),}))diff --git a/web/app/components/plugins/plugin-detail-panel/__tests__/strategy-detail.spec.tsx b/web/app/components/plugins/plugin-detail-panel/__tests__/strategy-detail.spec.tsxindex 62035459430..350bf6956b2 100644--- a/web/app/components/plugins/plugin-detail-panel/__tests__/strategy-detail.spec.tsx+++ b/web/app/components/plugins/plugin-detail-panel/__tests__/strategy-detail.spec.tsx@@ -7,7 +7,7 @@ vi.mock('@/hooks/use-i18n', () => ({useRenderI18nObject: () => (obj: Record<string, string>) => obj?.en_US || '',}))-vi.mock('@/utils/classnames', () => ({+vi.mock('@langgenius/dify-ui/cn', () => ({cn: (...args: (string | undefined | false | null)[]) => args.filter(Boolean).join(' '),}))diff --git a/web/app/components/plugins/plugin-detail-panel/__tests__/strategy-item.spec.tsx b/web/app/components/plugins/plugin-detail-panel/__tests__/strategy-item.spec.tsxindex 31afeaf9f16..f96f6adb78a 100644--- a/web/app/components/plugins/plugin-detail-panel/__tests__/strategy-item.spec.tsx+++ b/web/app/components/plugins/plugin-detail-panel/__tests__/strategy-item.spec.tsx@@ -7,7 +7,7 @@ vi.mock('@/hooks/use-i18n', () => ({useRenderI18nObject: () => (obj: Record<string, string>) => obj?.en_US || '',}))-vi.mock('@/utils/classnames', () => ({+vi.mock('@langgenius/dify-ui/cn', () => ({cn: (...args: (string | undefined | false | null)[]) => args.filter(Boolean).join(' '),}))diff --git a/web/app/components/plugins/plugin-detail-panel/app-selector/__tests__/app-trigger.spec.tsx b/web/app/components/plugins/plugin-detail-panel/app-selector/__tests__/app-trigger.spec.tsxindex d52a62a2ee2..1b6ac7f1f05 100644--- a/web/app/components/plugins/plugin-detail-panel/app-selector/__tests__/app-trigger.spec.tsx+++ b/web/app/components/plugins/plugin-detail-panel/app-selector/__tests__/app-trigger.spec.tsx@@ -6,7 +6,7 @@ vi.mock('@/app/components/base/app-icon', () => ({default: ({ size }: { size: string }) => <div data-testid="app-icon" data-size={size} />,}))-vi.mock('@/utils/classnames', () => ({+vi.mock('@langgenius/dify-ui/cn', () => ({cn: (...args: unknown[]) => args.filter(Boolean).join(' '),}))diff --git a/web/app/components/plugins/plugin-detail-panel/app-selector/app-inputs-panel.tsx b/web/app/components/plugins/plugin-detail-panel/app-selector/app-inputs-panel.tsxindex 8e7affad8eb..b525cb9b2f1 100644--- a/web/app/components/plugins/plugin-detail-panel/app-selector/app-inputs-panel.tsx+++ b/web/app/components/plugins/plugin-detail-panel/app-selector/app-inputs-panel.tsx@@ -1,11 +1,11 @@'use client'import type { App } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import { useRef } from 'react'import { useTranslation } from 'react-i18next'import Loading from '@/app/components/base/loading'import AppInputsForm from '@/app/components/plugins/plugin-detail-panel/app-selector/app-inputs-form'import { useAppInputsFormSchema } from '@/app/components/plugins/plugin-detail-panel/app-selector/hooks/use-app-inputs-form-schema'-import { cn } from '@/utils/classnames'type Props = {value?: {@@ -37,7 +37,7 @@ const AppInputsPanel = ({<div className={cn('flex max-h-[240px] flex-col rounded-b-2xl border-t border-divider-subtle pb-4')}>{isLoading && <div className="pt-3"><Loading type="app" /></div>}{!isLoading && (- <div className="system-sm-semibold mb-2 mt-3 flex h-6 shrink-0 items-center px-4 text-text-secondary">+ <div className="mt-3 mb-2 flex h-6 shrink-0 items-center px-4 system-sm-semibold text-text-secondary">{t('appSelector.params', { ns: 'app' })}</div>)}diff --git a/web/app/components/plugins/plugin-detail-panel/app-selector/app-trigger.tsx b/web/app/components/plugins/plugin-detail-panel/app-selector/app-trigger.tsxindex c83e1bea88c..aacafb3c312 100644--- a/web/app/components/plugins/plugin-detail-panel/app-selector/app-trigger.tsx+++ b/web/app/components/plugins/plugin-detail-panel/app-selector/app-trigger.tsx@@ -1,12 +1,12 @@'use client'import type { App } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowDownSLine,} from '@remixicon/react'import * as React from 'react'import { useTranslation } from 'react-i18next'import AppIcon from '@/app/components/base/app-icon'-import { cn } from '@/utils/classnames'type Props = {open: boolean@@ -36,10 +36,10 @@ const AppTrigger = ({/>)}{appDetail && (- <div title={appDetail.name} className="system-sm-medium grow text-components-input-text-filled">{appDetail.name}</div>+ <div title={appDetail.name} className="grow system-sm-medium text-components-input-text-filled">{appDetail.name}</div>)}{!appDetail && (- <div className="system-sm-regular grow truncate text-components-input-text-placeholder">{t('appSelector.placeholder', { ns: 'app' })}</div>+ <div className="grow truncate system-sm-regular text-components-input-text-placeholder">{t('appSelector.placeholder', { ns: 'app' })}</div>)}<RiArrowDownSLine className={cn('ml-0.5 h-4 w-4 shrink-0 text-text-quaternary group-hover:text-text-secondary', open && 'text-text-secondary')} /></div>diff --git a/web/app/components/plugins/plugin-detail-panel/detail-header/index.tsx b/web/app/components/plugins/plugin-detail-panel/detail-header/index.tsxindex 63716a4dc23..5a89afa2c9d 100644--- a/web/app/components/plugins/plugin-detail-panel/detail-header/index.tsx+++ b/web/app/components/plugins/plugin-detail-panel/detail-header/index.tsx@@ -1,6 +1,7 @@'use client'import type { PluginDetail } from '../../types'+import { cn } from '@langgenius/dify-ui/cn'import { useMemo } from 'react'import { useTranslation } from 'react-i18next'import ActionButton from '@/app/components/base/action-button'@@ -15,7 +16,6 @@ import { useAppContext } from '@/context/app-context'import { useGetLanguage, useLocale } from '@/context/i18n'import useTheme from '@/hooks/use-theme'import { useAllToolProviders } from '@/service/use-tools'-import { cn } from '@/utils/classnames'import { getMarketplaceUrl } from '@/utils/var'import { AutoUpdateLine } from '../../../base/icons/src/vender/system'import Verified from '../../base/badges/verified'diff --git a/web/app/components/plugins/plugin-detail-panel/endpoint-card.tsx b/web/app/components/plugins/plugin-detail-panel/endpoint-card.tsxindex 679801a56a5..c0e8e561442 100644--- a/web/app/components/plugins/plugin-detail-panel/endpoint-card.tsx+++ b/web/app/components/plugins/plugin-detail-panel/endpoint-card.tsx@@ -152,7 +152,7 @@ const EndpointCard = ({return (<div className="rounded-xl bg-background-section-burn p-0.5">- <div className="group radius-lg border-[0.5px] border-components-panel-border bg-components-panel-on-panel-item-bg p-2.5 pl-3">+ <div className="group rounded-[10px] border-[0.5px] border-components-panel-border bg-components-panel-on-panel-item-bg p-2.5 pl-3"><div className="flex items-center"><div className="mb-1 flex h-6 grow items-center gap-1 system-md-semibold text-text-secondary"><RiLoginCircleLine className="h-4 w-4" />diff --git a/web/app/components/plugins/plugin-detail-panel/endpoint-list.tsx b/web/app/components/plugins/plugin-detail-panel/endpoint-list.tsxindex 67301120edb..c3c09db7861 100644--- a/web/app/components/plugins/plugin-detail-panel/endpoint-list.tsx+++ b/web/app/components/plugins/plugin-detail-panel/endpoint-list.tsx@@ -1,4 +1,5 @@import type { PluginDetail } from '@/app/components/plugins/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiAddLine,RiApps2AddLine,@@ -18,7 +19,6 @@ import {useEndpointList,useInvalidateEndpointList,} from '@/service/use-endpoints'-import { cn } from '@/utils/classnames'import EndpointCard from './endpoint-card'import EndpointModal from './endpoint-modal'import { NAME_FIELD } from './utils'@@ -64,7 +64,7 @@ const EndpointList = ({ detail }: Props) => {return (<div className={cn('border-divider-subtle px-4 py-2', showTopBorder && 'border-t')}>- <div className="mb-1 flex h-6 items-center justify-between text-text-secondary system-sm-semibold-uppercase">+ <div className="mb-1 flex h-6 items-center justify-between system-sm-semibold-uppercase text-text-secondary"><div className="flex items-center gap-0.5">{t('detailPanel.endpoints', { ns: 'plugin' })}<Tooltip@@ -75,13 +75,13 @@ const EndpointList = ({ detail }: Props) => {<div className="flex h-8 w-8 items-center justify-center rounded-lg border-[0.5px] border-components-panel-border-subtle bg-background-default-subtle"><RiApps2AddLine className="h-4 w-4 text-text-tertiary" /></div>- <div className="text-text-tertiary system-xs-regular">{t('detailPanel.endpointsTip', { ns: 'plugin' })}</div>+ <div className="system-xs-regular text-text-tertiary">{t('detailPanel.endpointsTip', { ns: 'plugin' })}</div><ahref={docLink('/develop-plugin/getting-started/getting-started-dify-plugin')}target="_blank"rel="noopener noreferrer">- <div className="inline-flex cursor-pointer items-center gap-1 text-text-accent system-xs-regular">+ <div className="inline-flex cursor-pointer items-center gap-1 system-xs-regular text-text-accent"><RiBookOpenLine className="h-3 w-3" />{t('detailPanel.endpointsDocLink', { ns: 'plugin' })}</div>@@ -95,7 +95,7 @@ const EndpointList = ({ detail }: Props) => {</ActionButton></div>{data.endpoints.length === 0 && (- <div className="mb-1 flex justify-center radius-lg bg-background-section p-3 text-text-tertiary system-xs-regular">{t('detailPanel.endpointsEmpty', { ns: 'plugin' })}</div>+ <div className="mb-1 flex justify-center rounded-[10px] bg-background-section p-3 system-xs-regular text-text-tertiary">{t('detailPanel.endpointsEmpty', { ns: 'plugin' })}</div>)}<div className="flex flex-col gap-2">{data.endpoints.map((item, index) => (diff --git a/web/app/components/plugins/plugin-detail-panel/endpoint-modal.tsx b/web/app/components/plugins/plugin-detail-panel/endpoint-modal.tsxindex 467ff43f57f..4c694d42938 100644--- a/web/app/components/plugins/plugin-detail-panel/endpoint-modal.tsx+++ b/web/app/components/plugins/plugin-detail-panel/endpoint-modal.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { FormSchema } from '../../base/form/types'import type { PluginDetail } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowRightUpLine, RiCloseLine } from '@remixicon/react'import * as React from 'react'import { useTranslation } from 'react-i18next'@@ -11,7 +12,6 @@ import { Button } from '@/app/components/base/ui/button'import { toast } from '@/app/components/base/ui/toast'import Form from '@/app/components/header/account-setting/model-provider-page/model-modal/Form'import { useRenderI18nObject } from '@/hooks/use-i18n'-import { cn } from '@/utils/classnames'import { ReadmeEntrance } from '../readme-panel/entrance'type Props = {diff --git a/web/app/components/plugins/plugin-detail-panel/index.tsx b/web/app/components/plugins/plugin-detail-panel/index.tsxindex 5e8009307ff..3041d2e2a67 100644--- a/web/app/components/plugins/plugin-detail-panel/index.tsx+++ b/web/app/components/plugins/plugin-detail-panel/index.tsx@@ -1,10 +1,10 @@'use client'import type { FC } from 'react'import type { PluginDetail } from '@/app/components/plugins/types'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback, useEffect } from 'react'import Drawer from '@/app/components/base/drawer'import { PluginCategoryEnum } from '@/app/components/plugins/types'-import { cn } from '@/utils/classnames'import { ReadmeEntrance } from '../readme-panel/entrance'import ActionList from './action-list'import AgentStrategyList from './agent-strategy-list'@@ -59,7 +59,7 @@ const PluginDetailPanel: FC<Props> = ({footer={null}mask={false}positionCenter={false}- panelClassName={cn('mb-2 mr-2 mt-[64px] w-[420px]! max-w-[420px]! justify-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg! p-0! shadow-xl')}+ panelClassName={cn('mt-[64px] mr-2 mb-2 w-[420px]! max-w-[420px]! justify-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg! p-0! shadow-xl')}>{detail && (<>diff --git a/web/app/components/plugins/plugin-detail-panel/model-selector/index.tsx b/web/app/components/plugins/plugin-detail-panel/model-selector/index.tsxindex 33e9912f87c..5f5c0494a92 100644--- a/web/app/components/plugins/plugin-detail-panel/model-selector/index.tsx+++ b/web/app/components/plugins/plugin-detail-panel/model-selector/index.tsx@@ -8,6 +8,7 @@ import type {ModelFeatureEnum,} from '@/app/components/header/account-setting/model-provider-page/declarations'import type { TriggerProps } from '@/app/components/header/account-setting/model-provider-page/model-parameter-modal/trigger'+import { cn } from '@langgenius/dify-ui/cn'import { useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'import {@@ -24,7 +25,6 @@ import AgentModelTrigger from '@/app/components/header/account-setting/model-proimport Trigger from '@/app/components/header/account-setting/model-provider-page/model-parameter-modal/trigger'import ModelSelector from '@/app/components/header/account-setting/model-provider-page/model-selector'import { useProviderContext } from '@/context/provider-context'-import { cn } from '@/utils/classnames'import { fetchAndMergeValidCompletionParams } from '@/utils/completion-params'import LLMParamsPanel from './llm-params-panel'import TTSParamsPanel from './tts-params-panel'@@ -229,7 +229,7 @@ const ModelParameterModal: FC<ModelParameterModalProps> = ({><div className="max-h-[420px] overflow-y-auto p-4 pt-3"><div className="relative">- <div className="mb-1 flex h-6 items-center text-text-secondary system-sm-semibold">+ <div className="mb-1 flex h-6 items-center system-sm-semibold text-text-secondary">{t('modelProvider.model', { ns: 'common' }).toLocaleUpperCase()}</div><ModelSelectordiff --git a/web/app/components/plugins/plugin-detail-panel/model-selector/llm-params-panel.tsx b/web/app/components/plugins/plugin-detail-panel/model-selector/llm-params-panel.tsxindex 58cdb0946fd..d699621c226 100644--- a/web/app/components/plugins/plugin-detail-panel/model-selector/llm-params-panel.tsx+++ b/web/app/components/plugins/plugin-detail-panel/model-selector/llm-params-panel.tsx@@ -3,6 +3,7 @@ import type {ModelParameterRule,} from '@/app/components/header/account-setting/model-provider-page/declarations'import type { ParameterValue } from '@/app/components/header/account-setting/model-provider-page/model-parameter-modal/parameter-item'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useMemo } from 'react'import { useTranslation } from 'react-i18next'@@ -11,7 +12,6 @@ import ParameterItem from '@/app/components/header/account-setting/model-provideimport PresetsParameter from '@/app/components/header/account-setting/model-provider-page/model-parameter-modal/presets-parameter'import { PROVIDER_WITH_PRESET_TONE, STOP_PARAMETER_RULE, TONE_LIST } from '@/config'import { useModelParameterRules } from '@/service/use-common'-import { cn } from '@/utils/classnames'type Props = {isAdvancedMode: boolean@@ -74,7 +74,7 @@ const LLMParamsPanel = ({return (<><div className="mb-2 flex items-center justify-between">- <div className={cn('system-sm-semibold flex h-6 items-center text-text-secondary')}>{t('modelProvider.parameters', { ns: 'common' })}</div>+ <div className={cn('flex h-6 items-center system-sm-semibold text-text-secondary')}>{t('modelProvider.parameters', { ns: 'common' })}</div>{PROVIDER_WITH_PRESET_TONE.includes(provider) && (<PresetsParameter onSelect={handleSelectPresetParameter} />diff --git a/web/app/components/plugins/plugin-detail-panel/multiple-tool-selector/index.tsx b/web/app/components/plugins/plugin-detail-panel/multiple-tool-selector/index.tsxindex 69c6b896465..723560832a4 100644--- a/web/app/components/plugins/plugin-detail-panel/multiple-tool-selector/index.tsx+++ b/web/app/components/plugins/plugin-detail-panel/multiple-tool-selector/index.tsx@@ -1,6 +1,7 @@import type { Node } from 'reactflow'import type { ToolValue } from '@/app/components/workflow/block-selector/types'import type { NodeOutPutVar } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiAddLine,RiQuestionLine,@@ -14,7 +15,6 @@ import Tooltip from '@/app/components/base/tooltip'import ToolSelector from '@/app/components/plugins/plugin-detail-panel/tool-selector'import { useMCPToolAvailability } from '@/app/components/workflow/nodes/_base/components/mcp-tool-availability'import { useAllMCPTools } from '@/service/use-tools'-import { cn } from '@/utils/classnames'type Props = {disabled?: boolean@@ -109,7 +109,7 @@ const MultipleToolSelector = ({className={cn('relative flex grow items-center gap-0.5', supportCollapse && 'cursor-pointer')}onClick={handleCollapse}>- <div className="system-sm-semibold-uppercase flex h-6 items-center text-text-secondary">{label}</div>+ <div className="flex h-6 items-center system-sm-semibold-uppercase text-text-secondary">{label}</div>{required && <div className="text-red-500">*</div>}{tooltip && (<Tooltip@@ -129,11 +129,11 @@ const MultipleToolSelector = ({</div>{value.length > 0 && (<>- <div className="system-xs-medium flex items-center gap-1 text-text-tertiary">+ <div className="flex items-center gap-1 system-xs-medium text-text-tertiary"><span>{`${enabledCount}/${value.length}`}</span><span>{t('agent.tools.enabled', { ns: 'appDebug' })}</span></div>- <Divider type="vertical" className="ml-3 mr-1 h-3" />+ <Divider type="vertical" className="mr-1 ml-3 h-3" /></>)}{!disabled && (@@ -152,7 +152,7 @@ const MultipleToolSelector = ({{!collapse && (<>{value.length === 0 && (- <div className="system-xs-regular flex justify-center radius-lg bg-background-section p-3 text-text-tertiary">{t('detailPanel.toolSelector.empty', { ns: 'plugin' })}</div>+ <div className="flex justify-center rounded-[10px] bg-background-section p-3 system-xs-regular text-text-tertiary">{t('detailPanel.toolSelector.empty', { ns: 'plugin' })}</div>)}{value.length > 0 && value.map((item, index) => (<div className="mb-1" key={index}>diff --git a/web/app/components/plugins/plugin-detail-panel/operation-dropdown.tsx b/web/app/components/plugins/plugin-detail-panel/operation-dropdown.tsxindex b056f977935..6724228313f 100644--- a/web/app/components/plugins/plugin-detail-panel/operation-dropdown.tsx+++ b/web/app/components/plugins/plugin-detail-panel/operation-dropdown.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { Placement } from '@/app/components/base/ui/placement'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import {@@ -11,7 +12,6 @@ import {DropdownMenuTrigger,} from '@/app/components/base/ui/dropdown-menu'import { useGlobalPublicStore } from '@/context/global-public-context'-import { cn } from '@/utils/classnames'import { PluginSource } from '../types'type Props = {diff --git a/web/app/components/plugins/plugin-detail-panel/strategy-detail.tsx b/web/app/components/plugins/plugin-detail-panel/strategy-detail.tsxindex 9adf5f3b079..8fda455b265 100644--- a/web/app/components/plugins/plugin-detail-panel/strategy-detail.tsx+++ b/web/app/components/plugins/plugin-detail-panel/strategy-detail.tsx@@ -4,6 +4,7 @@ import type {StrategyDetail as StrategyDetailType,} from '@/app/components/plugins/types'import type { Locale } from '@/i18n-config'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowLeftLine,RiCloseLine,@@ -18,7 +19,6 @@ import Icon from '@/app/components/plugins/card/base/card-icon'import Description from '@/app/components/plugins/card/base/description'import { API_PREFIX } from '@/config'import { useRenderI18nObject } from '@/hooks/use-i18n'-import { cn } from '@/utils/classnames'type Props = {provider: {@@ -81,18 +81,18 @@ const StrategyDetail: FC<Props> = ({footer={null}mask={false}positionCenter={false}- panelClassName={cn('mb-2 mr-2 mt-[64px] w-[420px]! max-w-[420px]! justify-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg! p-0! shadow-xl')}+ panelClassName={cn('mt-[64px] mr-2 mb-2 w-[420px]! max-w-[420px]! justify-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg! p-0! shadow-xl')}><>{/* header */}<div className="relative border-b border-divider-subtle p-4 pb-3">- <div className="absolute right-3 top-3">+ <div className="absolute top-3 right-3"><ActionButton onClick={onHide}><RiCloseLine className="h-4 w-4" /></ActionButton></div><div- className="system-xs-semibold-uppercase mb-2 flex cursor-pointer items-center gap-1 text-text-accent-secondary"+ className="mb-2 flex cursor-pointer items-center gap-1 system-xs-semibold-uppercase text-text-accent-secondary"onClick={onHide}><RiArrowLeftLine className="h-4 w-4" />@@ -102,13 +102,13 @@ const StrategyDetail: FC<Props> = ({<Icon size="tiny" className="h-6 w-6" src={`${API_PREFIX}/workspaces/current/plugin/icon?tenant_id=${provider.tenant_id}&filename=${provider.icon}`} /><div className="">{getValueFromI18nObject(provider.label)}</div></div>- <div className="system-md-semibold mt-1 text-text-primary">{getValueFromI18nObject(detail.identity.label)}</div>+ <div className="mt-1 system-md-semibold text-text-primary">{getValueFromI18nObject(detail.identity.label)}</div><Description className="mt-3" text={getValueFromI18nObject(detail.description)} descriptionLineRows={2}></Description></div>{/* form */}<div className="h-full"><div className="flex h-full flex-col overflow-y-auto">- <div className="system-sm-semibold-uppercase p-4 pb-1 text-text-primary">{t('setBuiltInTools.parameters', { ns: 'tools' })}</div>+ <div className="p-4 pb-1 system-sm-semibold-uppercase text-text-primary">{t('setBuiltInTools.parameters', { ns: 'tools' })}</div><div className="px-4">{detail.parameters.length > 0 && (<div className="space-y-1 py-2">@@ -124,7 +124,7 @@ const StrategyDetail: FC<Props> = ({)}</div>{item.human_description && (- <div className="system-xs-regular mt-0.5 text-text-tertiary">+ <div className="mt-0.5 system-xs-regular text-text-tertiary">{getValueFromI18nObject(item.human_description)}</div>)}@@ -138,7 +138,7 @@ const StrategyDetail: FC<Props> = ({<div className="px-4"><Divider className="mt-2!" /></div>- <div className="system-sm-semibold-uppercase p-4 pb-1 text-text-primary">OUTPUT</div>+ <div className="p-4 pb-1 system-sm-semibold-uppercase text-text-primary">OUTPUT</div>{outputSchema.length > 0 && (<div className="space-y-1 px-4 py-2">{outputSchema.map((outputItem, index) => (@@ -148,7 +148,7 @@ const StrategyDetail: FC<Props> = ({<div className="system-xs-regular text-text-tertiary">{outputItem.type}</div></div>{outputItem.description && (- <div className="system-xs-regular mt-0.5 text-text-tertiary">+ <div className="mt-0.5 system-xs-regular text-text-tertiary">{outputItem.description}</div>)}diff --git a/web/app/components/plugins/plugin-detail-panel/strategy-item.tsx b/web/app/components/plugins/plugin-detail-panel/strategy-item.tsxindex 280f1bce49a..b04250efc8f 100644--- a/web/app/components/plugins/plugin-detail-panel/strategy-item.tsx+++ b/web/app/components/plugins/plugin-detail-panel/strategy-item.tsx@@ -3,10 +3,10 @@ import type {StrategyDetail,} from '@/app/components/plugins/types'import type { Locale } from '@/i18n-config'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useState } from 'react'import { useRenderI18nObject } from '@/hooks/use-i18n'-import { cn } from '@/utils/classnames'import StrategyDetailPanel from './strategy-detail'type Props = {@@ -35,8 +35,8 @@ const StrategyItem = ({className={cn('bg-components-panel-item-bg mb-2 cursor-pointer rounded-xl border-[0.5px] border-components-panel-border-subtle px-4 py-3 shadow-xs hover:bg-components-panel-on-panel-item-bg-hover')}onClick={() => setShowDetail(true)}>- <div className="system-md-semibold pb-0.5 text-text-secondary">{getValueFromI18nObject(detail.identity.label)}</div>- <div className="system-xs-regular line-clamp-2 text-text-tertiary" title={getValueFromI18nObject(detail.description)}>{getValueFromI18nObject(detail.description)}</div>+ <div className="pb-0.5 system-md-semibold text-text-secondary">{getValueFromI18nObject(detail.identity.label)}</div>+ <div className="line-clamp-2 system-xs-regular text-text-tertiary" title={getValueFromI18nObject(detail.description)}>{getValueFromI18nObject(detail.description)}</div></div>{showDetail && (<StrategyDetailPaneldiff --git a/web/app/components/plugins/plugin-detail-panel/subscription-list/create/index.tsx b/web/app/components/plugins/plugin-detail-panel/subscription-list/create/index.tsxindex db4ce41d407..73b28bd60e9 100644--- a/web/app/components/plugins/plugin-detail-panel/subscription-list/create/index.tsx+++ b/web/app/components/plugins/plugin-detail-panel/subscription-list/create/index.tsx@@ -1,5 +1,6 @@import type { Option } from '@/app/components/base/select/custom'import type { TriggerSubscriptionBuilder } from '@/app/components/workflow/block-selector/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiAddLine, RiEqualizer2Line } from '@remixicon/react'import { useBoolean } from 'ahooks'import { useCallback, useMemo, useState } from 'react'@@ -12,7 +13,6 @@ import { Button } from '@/app/components/base/ui/button'import { toast } from '@/app/components/base/ui/toast'import { openOAuthPopup } from '@/hooks/use-oauth'import { useInitiateTriggerOAuth, useTriggerOAuthConfig, useTriggerProviderInfo } from '@/service/use-triggers'-import { cn } from '@/utils/classnames'import { SupportedCreationMethods } from '../../../types'import { usePluginStore } from '../../store'import { useSubscriptionList } from '../use-subscription-list'diff --git a/web/app/components/plugins/plugin-detail-panel/subscription-list/list-view.tsx b/web/app/components/plugins/plugin-detail-panel/subscription-list/list-view.tsxindex 252caad91d1..c78cda7a138 100644--- a/web/app/components/plugins/plugin-detail-panel/subscription-list/list-view.tsx+++ b/web/app/components/plugins/plugin-detail-panel/subscription-list/list-view.tsx@@ -1,9 +1,9 @@'use client'import type { PluginDetail } from '@/app/components/plugins/types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import Tooltip from '@/app/components/base/tooltip'-import { cn } from '@/utils/classnames'import { CreateButtonType, CreateSubscriptionButton } from './create'import SubscriptionCard from './subscription-card'import { useSubscriptionList } from './use-subscription-list'diff --git a/web/app/components/plugins/plugin-detail-panel/subscription-list/log-viewer.tsx b/web/app/components/plugins/plugin-detail-panel/subscription-list/log-viewer.tsxindex 6ccab000c41..1960103822f 100644--- a/web/app/components/plugins/plugin-detail-panel/subscription-list/log-viewer.tsx+++ b/web/app/components/plugins/plugin-detail-panel/subscription-list/log-viewer.tsx@@ -1,5 +1,6 @@'use client'import type { TriggerLogEntity } from '@/app/components/workflow/block-selector/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowDownSLine,RiArrowRightSLine,@@ -14,7 +15,6 @@ import { useTranslation } from 'react-i18next'import { toast } from '@/app/components/base/ui/toast'import CodeEditor from '@/app/components/workflow/nodes/_base/components/editor/code-editor'import { CodeLanguage } from '@/app/components/workflow/nodes/code/types'-import { cn } from '@/utils/classnames'type Props = {logs: TriggerLogEntity[]@@ -96,8 +96,8 @@ const LogViewer = ({ logs, className }: Props) => {<RiFileCopyLine className="h-4 w-4 text-text-tertiary" /></button></div>- <div className="px-2 pb-2 pt-1">- <pre className="code-xs-regular whitespace-pre-wrap break-all text-text-secondary">+ <div className="px-2 pt-1 pb-2">+ <pre className="code-xs-regular break-all whitespace-pre-wrap text-text-secondary">{String(parsedData)}</pre></div>@@ -127,7 +127,7 @@ const LogViewer = ({ logs, className }: Props) => {)}>{isError && (- <div className="pointer-events-none absolute left-0 top-0 h-7 w-[179px]">+ <div className="pointer-events-none absolute top-0 left-0 h-7 w-[179px]"><svg xmlns="http://www.w3.org/2000/svg" width="179" height="28" viewBox="0 0 179 28" fill="none" className="h-full w-full"><g filter="url(#filter0_f_error_glow)"><circle cx="27" cy="14" r="32" fill="#F04438" fillOpacity="0.25" />@@ -147,7 +147,7 @@ const LogViewer = ({ logs, className }: Props) => {onClick={() => toggleLogExpansion(logId)}className={cn('flex w-full items-center justify-between px-2 py-1.5 text-left',- isExpanded ? 'pb-1 pt-2' : 'min-h-7',+ isExpanded ? 'pt-2 pb-1' : 'min-h-7',)}><div className="flex items-center gap-0">diff --git a/web/app/components/plugins/plugin-detail-panel/subscription-list/selector-entry.tsx b/web/app/components/plugins/plugin-detail-panel/subscription-list/selector-entry.tsxindex 42c7676b429..5f755ff634f 100644--- a/web/app/components/plugins/plugin-detail-panel/subscription-list/selector-entry.tsx+++ b/web/app/components/plugins/plugin-detail-panel/subscription-list/selector-entry.tsx@@ -1,5 +1,6 @@'use client'import type { SimpleSubscription } from './types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine, RiWebhookLine } from '@remixicon/react'import { useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -9,7 +10,6 @@ import {PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'import { SubscriptionList } from '@/app/components/plugins/plugin-detail-panel/subscription-list'-import { cn } from '@/utils/classnames'import { SubscriptionListMode } from './types'import { useSubscriptionList } from './use-subscription-list'@@ -76,7 +76,7 @@ const SubscriptionTriggerButton: React.FC<SubscriptionTriggerButtonProps> = ({onClick={onClick}><RiWebhookLine className={cn('h-3.5 w-3.5 shrink-0 text-text-secondary', statusConfig.color === 'red' && 'text-components-button-destructive-secondary-text')} />- <span className={cn('system-xs-medium truncate text-components-button-ghost-text', statusConfig.color === 'red' && 'text-components-button-destructive-secondary-text')}>+ <span className={cn('truncate system-xs-medium text-components-button-ghost-text', statusConfig.color === 'red' && 'text-components-button-destructive-secondary-text')}>{statusConfig.label}</span><RiArrowDownSLinediff --git a/web/app/components/plugins/plugin-detail-panel/subscription-list/selector-view.tsx b/web/app/components/plugins/plugin-detail-panel/subscription-list/selector-view.tsxindex f2e77e3adaa..2e08e02252d 100644--- a/web/app/components/plugins/plugin-detail-panel/subscription-list/selector-view.tsx+++ b/web/app/components/plugins/plugin-detail-panel/subscription-list/selector-view.tsx@@ -1,12 +1,12 @@'use client'import type { TriggerSubscription } from '@/app/components/workflow/block-selector/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiCheckLine, RiDeleteBinLine, RiWebhookLine } from '@remixicon/react'import * as React from 'react'import { useState } from 'react'import { useTranslation } from 'react-i18next'import ActionButton from '@/app/components/base/action-button'import Tooltip from '@/app/components/base/tooltip'-import { cn } from '@/utils/classnames'import { CreateButtonType, CreateSubscriptionButton } from './create'import { DeleteConfirm } from './delete-confirm'import { useSubscriptionList } from './use-subscription-list'@@ -28,7 +28,7 @@ export const SubscriptionSelectorView: React.FC<SubscriptionSelectorProps> = ({return (<div className="w-[320px] p-1">{subscriptionCount > 0 && (- <div className="ml-7 mr-1.5 flex h-8 items-center justify-between">+ <div className="mr-1.5 ml-7 flex h-8 items-center justify-between"><div className="flex shrink-0 items-center gap-1"><span className="system-sm-semibold-uppercase text-text-secondary">{t('subscription.listNum', { ns: 'pluginTrigger', num: subscriptionCount })}@@ -71,7 +71,7 @@ export const SubscriptionSelectorView: React.FC<SubscriptionSelectorProps> = ({e.stopPropagation()setDeletedSubscription(subscription)}}- className="subscription-delete-btn hidden shrink-0 text-text-tertiary hover:bg-state-destructive-hover hover:text-text-destructive group-hover:flex"+ className="subscription-delete-btn hidden shrink-0 text-text-tertiary group-hover:flex hover:bg-state-destructive-hover hover:text-text-destructive"><RiDeleteBinLine className="size-4" /></ActionButton>diff --git a/web/app/components/plugins/plugin-detail-panel/subscription-list/subscription-card.tsx b/web/app/components/plugins/plugin-detail-panel/subscription-list/subscription-card.tsxindex 217b11f466e..84e9b611733 100644--- a/web/app/components/plugins/plugin-detail-panel/subscription-list/subscription-card.tsx+++ b/web/app/components/plugins/plugin-detail-panel/subscription-list/subscription-card.tsx@@ -1,6 +1,7 @@'use client'import type { PluginDetail } from '@/app/components/plugins/types'import type { TriggerSubscription } from '@/app/components/workflow/block-selector/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiDeleteBinLine,RiEditLine,@@ -10,7 +11,6 @@ import { useBoolean } from 'ahooks'import { useTranslation } from 'react-i18next'import ActionButton from '@/app/components/base/action-button'import Tooltip from '@/app/components/base/tooltip'-import { cn } from '@/utils/classnames'import { DeleteConfirm } from './delete-confirm'import { EditModal } from './edit'@@ -74,12 +74,12 @@ const SubscriptionCard = ({ data, pluginDetail }: Props) => {)}position="left">- <div className="system-xs-regular flex-1 truncate text-text-tertiary">+ <div className="flex-1 truncate system-xs-regular text-text-tertiary">{data.endpoint}</div></Tooltip><div className="mx-2 text-xs text-text-tertiary opacity-30">·</div>- <div className="system-xs-regular shrink-0 text-text-tertiary">+ <div className="shrink-0 system-xs-regular text-text-tertiary">{data.workflows_in_use > 0 ? t('subscription.list.item.usedByNum', { ns: 'pluginTrigger', num: data.workflows_in_use }) : t('subscription.list.item.noUsed', { ns: 'pluginTrigger' })}</div></div>diff --git a/web/app/components/plugins/plugin-detail-panel/tool-selector/components/__tests__/tool-credentials-form.spec.tsx b/web/app/components/plugins/plugin-detail-panel/tool-selector/components/__tests__/tool-credentials-form.spec.tsxindex e1b8ca86fe7..bd2bc0dd5c1 100644--- a/web/app/components/plugins/plugin-detail-panel/tool-selector/components/__tests__/tool-credentials-form.spec.tsx+++ b/web/app/components/plugins/plugin-detail-panel/tool-selector/components/__tests__/tool-credentials-form.spec.tsx@@ -6,7 +6,7 @@ vi.mock('@/hooks/use-i18n', () => ({useRenderI18nObject: () => (obj: Record<string, string> | string) => typeof obj === 'string' ? obj : obj?.en_US || '',}))-vi.mock('@/utils/classnames', () => ({+vi.mock('@langgenius/dify-ui/cn', () => ({cn: (...args: unknown[]) => args.filter(Boolean).join(' '),}))diff --git a/web/app/components/plugins/plugin-detail-panel/tool-selector/components/reasoning-config-form.tsx b/web/app/components/plugins/plugin-detail-panel/tool-selector/components/reasoning-config-form.tsxindex 1edc147370d..c651405009e 100644--- a/web/app/components/plugins/plugin-detail-panel/tool-selector/components/reasoning-config-form.tsx+++ b/web/app/components/plugins/plugin-detail-panel/tool-selector/components/reasoning-config-form.tsx@@ -6,6 +6,7 @@ import type {NodeOutPutVar,ValueSelector,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowRightUpLine,RiBracesLine,@@ -28,7 +29,6 @@ import VarReferencePicker from '@/app/components/workflow/nodes/_base/componentsimport { CodeLanguage } from '@/app/components/workflow/nodes/code/types'import MixedVariableTextInput from '@/app/components/workflow/nodes/tool/components/mixed-variable-text-input'import { VarType as VarKindType } from '@/app/components/workflow/nodes/tool/types'-import { cn } from '@/utils/classnames'import {createPickerProps,getFieldFlags,@@ -159,14 +159,14 @@ const ReasoningConfigForm: React.FC<Props> = ({return (<div key={variable} className="space-y-0.5">- <div className="system-sm-semibold flex items-center justify-between py-2 text-text-secondary">+ <div className="flex items-center justify-between py-2 system-sm-semibold text-text-secondary"><div className="flex items-center">- <span className={cn('code-sm-semibold max-w-[140px] truncate text-text-secondary')} title={fieldTitle}>{fieldTitle}</span>+ <span className={cn('max-w-[140px] truncate code-sm-semibold text-text-secondary')} title={fieldTitle}>{fieldTitle}</span>{required && (<span className="ml-1 text-red-500">*</span>)}{tooltipContent}- <span className="system-xs-regular mx-1 text-text-quaternary">·</span>+ <span className="mx-1 system-xs-regular text-text-quaternary">·</span><span className="system-xs-regular text-text-tertiary">{resolveTargetVarType(type)}</span>{isShowJSONEditor && (<Tooltip@@ -178,7 +178,7 @@ const ReasoningConfigForm: React.FC<Props> = ({asChild={false}><div- className="ml-0.5 cursor-pointer radius-xs p-px text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary"+ className="ml-0.5 cursor-pointer rounded-sm p-px text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary"onClick={() => showSchema(input_schema as SchemaRoot, fieldTitle)}><RiBracesLine className="size-3.5" />@@ -187,7 +187,7 @@ const ReasoningConfigForm: React.FC<Props> = ({)}</div>- <div className="flex cursor-pointer items-center gap-1 radius-sm border border-divider-subtle bg-background-default-lighter px-2 py-1 hover:bg-state-base-hover" onClick={() => handleAutomatic(variable, !auto, type)}>+ <div className="flex cursor-pointer items-center gap-1 rounded-md border border-divider-subtle bg-background-default-lighter px-2 py-1 hover:bg-state-base-hover" onClick={() => handleAutomatic(variable, !auto, type)}><span className="system-xs-medium text-text-secondary">{t('detailPanel.toolSelector.auto', { ns: 'plugin' })}</span><Switchsize="xs"diff --git a/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-credentials-form.tsx b/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-credentials-form.tsxindex 997d2ac1312..90893c88ec6 100644--- a/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-credentials-form.tsx+++ b/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-credentials-form.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { Collection } from '@/app/components/tools/types'import type { ToolCredentialFormSchema } from '@/app/components/tools/utils/to-form-schema'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowRightUpLine,} from '@remixicon/react'@@ -15,7 +16,6 @@ import Form from '@/app/components/header/account-setting/model-provider-page/moimport { addDefaultValue, toolCredentialToFormSchemas } from '@/app/components/tools/utils/to-form-schema'import { useRenderI18nObject } from '@/hooks/use-i18n'import { fetchBuiltInToolCredential, fetchBuiltInToolCredentialSchema } from '@/service/tools'-import { cn } from '@/utils/classnames'type Props = {collection: Collectiondiff --git a/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-item.tsx b/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-item.tsxindex 440a27bc210..52ef1819e20 100644--- a/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-item.tsx+++ b/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-item.tsx@@ -1,4 +1,5 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import {RiDeleteBinLine,RiEqualizer2Line,@@ -19,7 +20,6 @@ import { InstallPluginButton } from '@/app/components/workflow/nodes/_base/compoimport { useMCPToolAvailability } from '@/app/components/workflow/nodes/_base/components/mcp-tool-availability'import McpToolNotSupportTooltip from '@/app/components/workflow/nodes/_base/components/mcp-tool-not-support-tooltip'import { SwitchPluginVersion } from '@/app/components/workflow/nodes/_base/components/switch-plugin-version'-import { cn } from '@/utils/classnames'type Props = {icon?: string | { content?: string, background?: string }diff --git a/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-trigger.tsx b/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-trigger.tsxindex 453520df01b..7b7fe38a367 100644--- a/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-trigger.tsx+++ b/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-trigger.tsx@@ -1,5 +1,6 @@'use client'import type { ToolWithProvider } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowDownSLine,RiEqualizer2Line,@@ -8,7 +9,6 @@ import * as React from 'react'import { useTranslation } from 'react-i18next'import BlockIcon from '@/app/components/workflow/block-icon'import { BlockEnum } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'type Props = {open: boolean@@ -44,10 +44,10 @@ const ToolTrigger = ({</div>)}{value?.tool_name && (- <div className="system-sm-medium grow text-components-input-text-filled">{value.tool_name}</div>+ <div className="grow system-sm-medium text-components-input-text-filled">{value.tool_name}</div>)}{!value?.provider_name && (- <div className="system-sm-regular grow text-components-input-text-placeholder">+ <div className="grow system-sm-regular text-components-input-text-placeholder">{!isConfigure ? t('detailPanel.toolSelector.placeholder', { ns: 'plugin' }) : t('detailPanel.configureTool', { ns: 'plugin' })}</div>)}diff --git a/web/app/components/plugins/plugin-detail-panel/tool-selector/index.tsx b/web/app/components/plugins/plugin-detail-panel/tool-selector/index.tsxindex 5a0d5daa556..b5e69ce254e 100644--- a/web/app/components/plugins/plugin-detail-panel/tool-selector/index.tsx+++ b/web/app/components/plugins/plugin-detail-panel/tool-selector/index.tsx@@ -7,6 +7,7 @@ import type { FC } from 'react'import type { Node } from 'reactflow'import type { ToolValue } from '@/app/components/workflow/block-selector/types'import type { NodeOutPutVar } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import {@@ -16,7 +17,6 @@ import {} from '@/app/components/base/portal-to-follow-elem'import { CollectionType } from '@/app/components/tools/types'import Link from '@/next/link'-import { cn } from '@/utils/classnames'import {ToolAuthorizationSection,ToolBaseForm,@@ -192,7 +192,7 @@ const ToolSelector: FC<Props> = ({)}>{/* Header */}- <div className="system-xl-semibold px-4 pb-1 pt-3.5 text-text-primary">+ <div className="px-4 pt-3.5 pb-1 system-xl-semibold text-text-primary">{t(`detailPanel.toolSelector.${isEdit ? 'toolSetting' : 'title'}`, { ns: 'plugin' })}</div>diff --git a/web/app/components/plugins/plugin-detail-panel/trigger/__tests__/event-detail-drawer.spec.tsx b/web/app/components/plugins/plugin-detail-panel/trigger/__tests__/event-detail-drawer.spec.tsxindex a4414adb592..a04aba3e570 100644--- a/web/app/components/plugins/plugin-detail-panel/trigger/__tests__/event-detail-drawer.spec.tsx+++ b/web/app/components/plugins/plugin-detail-panel/trigger/__tests__/event-detail-drawer.spec.tsx@@ -8,7 +8,7 @@ vi.mock('@/app/components/header/account-setting/model-provider-page/hooks', ()useLanguage: () => 'en_US',}))-vi.mock('@/utils/classnames', () => ({+vi.mock('@langgenius/dify-ui/cn', () => ({cn: (...args: (string | undefined | false | null)[]) => args.filter(Boolean).join(' '),}))diff --git a/web/app/components/plugins/plugin-detail-panel/trigger/__tests__/event-list.spec.tsx b/web/app/components/plugins/plugin-detail-panel/trigger/__tests__/event-list.spec.tsxindex 3ecd248544c..bed27c02924 100644--- a/web/app/components/plugins/plugin-detail-panel/trigger/__tests__/event-list.spec.tsx+++ b/web/app/components/plugins/plugin-detail-panel/trigger/__tests__/event-list.spec.tsx@@ -7,7 +7,7 @@ vi.mock('@/app/components/header/account-setting/model-provider-page/hooks', ()useLanguage: () => 'en_US',}))-vi.mock('@/utils/classnames', () => ({+vi.mock('@langgenius/dify-ui/cn', () => ({cn: (...args: (string | undefined | false | null)[]) => args.filter(Boolean).join(' '),}))diff --git a/web/app/components/plugins/plugin-detail-panel/trigger/event-detail-drawer.tsx b/web/app/components/plugins/plugin-detail-panel/trigger/event-detail-drawer.tsxindex 72f79230d25..bacb7bbd66f 100644--- a/web/app/components/plugins/plugin-detail-panel/trigger/event-detail-drawer.tsx+++ b/web/app/components/plugins/plugin-detail-panel/trigger/event-detail-drawer.tsx@@ -3,6 +3,7 @@ import type { TFunction } from 'i18next'import type { FC } from 'react'import type { TriggerEvent } from '@/app/components/plugins/types'import type { TriggerProviderApiEntity } from '@/app/components/workflow/block-selector/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowLeftLine,RiCloseLine,@@ -17,7 +18,6 @@ import Description from '@/app/components/plugins/card/base/description'import OrgInfo from '@/app/components/plugins/card/base/org-info'import { triggerEventParametersToFormSchemas } from '@/app/components/tools/utils/to-form-schema'import Field from '@/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/show/field'-import { cn } from '@/utils/classnames'type EventDetailDrawerProps = {eventInfo: TriggerEvent@@ -88,16 +88,16 @@ export const EventDetailDrawer: FC<EventDetailDrawerProps> = (props) => {footer={null}mask={false}positionCenter={false}- panelClassName={cn('mb-2 mr-2 mt-[64px] w-[420px]! max-w-[420px]! justify-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg! p-0! shadow-xl')}+ panelClassName={cn('mt-[64px] mr-2 mb-2 w-[420px]! max-w-[420px]! justify-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg! p-0! shadow-xl')}><div className="relative border-b border-divider-subtle p-4 pb-3">- <div className="absolute right-3 top-3">+ <div className="absolute top-3 right-3"><ActionButton onClick={onClose}><RiCloseLine className="h-4 w-4" /></ActionButton></div><div- className="system-xs-semibold-uppercase mb-2 flex cursor-pointer items-center gap-1 text-text-accent-secondary"+ className="mb-2 flex cursor-pointer items-center gap-1 system-xs-semibold-uppercase text-text-accent-secondary"onClick={onClose}><RiArrowLeftLine className="h-4 w-4" />@@ -111,10 +111,10 @@ export const EventDetailDrawer: FC<EventDetailDrawerProps> = (props) => {packageName={providerInfo.name.split('/').pop() || ''}/></div>- <div className="system-md-semibold mt-1 text-text-primary">{eventInfo?.identity?.label[language]}</div>- <Description className="mb-2 mt-3 h-auto" text={eventInfo.description[language]} descriptionLineRows={2}></Description>+ <div className="mt-1 system-md-semibold text-text-primary">{eventInfo?.identity?.label[language]}</div>+ <Description className="mt-3 mb-2 h-auto" text={eventInfo.description[language]} descriptionLineRows={2}></Description></div>- <div className="flex h-full flex-col gap-2 overflow-y-auto px-4 pb-2 pt-4">+ <div className="flex h-full flex-col gap-2 overflow-y-auto px-4 pt-4 pb-2"><div className="system-sm-semibold-uppercase text-text-secondary">{t('setBuiltInTools.parameters', { ns: 'tools' })}</div>{parametersSchemas.length > 0? (@@ -130,7 +130,7 @@ export const EventDetailDrawer: FC<EventDetailDrawerProps> = (props) => {)}</div>{item.description && (- <div className="system-xs-regular mt-0.5 text-text-tertiary">+ <div className="mt-0.5 system-xs-regular text-text-tertiary">{item.description?.[language]}</div>)}@@ -138,7 +138,7 @@ export const EventDetailDrawer: FC<EventDetailDrawerProps> = (props) => {))): <div className="system-xs-regular text-text-tertiary">{t('events.item.noParameters', { ns: 'pluginTrigger' })}</div>}- <Divider className="mb-2 mt-1 h-px" />+ <Divider className="mt-1 mb-2 h-px" /><div className="flex flex-col gap-2"><div className="system-sm-semibold-uppercase text-text-secondary">{t('events.output', { ns: 'pluginTrigger' })}</div><div className="relative left-[-7px]">diff --git a/web/app/components/plugins/plugin-detail-panel/trigger/event-list.tsx b/web/app/components/plugins/plugin-detail-panel/trigger/event-list.tsxindex d03183d4348..398dc7dbf25 100644--- a/web/app/components/plugins/plugin-detail-panel/trigger/event-list.tsx+++ b/web/app/components/plugins/plugin-detail-panel/trigger/event-list.tsx@@ -1,10 +1,10 @@import type { TriggerEvent } from '@/app/components/plugins/types'import type { TriggerProviderApiEntity } from '@/app/components/workflow/block-selector/types'+import { cn } from '@langgenius/dify-ui/cn'import { useState } from 'react'import { useTranslation } from 'react-i18next'import { useLanguage } from '@/app/components/header/account-setting/model-provider-page/hooks'import { useTriggerProviderInfo } from '@/service/use-triggers'-import { cn } from '@/utils/classnames'import { usePluginStore } from '../store'import { EventDetailDrawer } from './event-detail-drawer'@@ -25,8 +25,8 @@ const TriggerEventCard = ({ eventInfo, providerInfo }: TriggerEventCardProps) =>className={cn('bg-components-panel-item-bg cursor-pointer rounded-xl border-[0.5px] border-components-panel-border-subtle px-4 py-3 shadow-xs hover:bg-components-panel-on-panel-item-bg-hover')}onClick={() => setShowDetail(true)}>- <div className="system-md-semibold pb-0.5 text-text-secondary">{title}</div>- <div className="system-xs-regular line-clamp-2 text-text-tertiary" title={descriptionText}>{descriptionText}</div>+ <div className="pb-0.5 system-md-semibold text-text-secondary">{title}</div>+ <div className="line-clamp-2 system-xs-regular text-text-tertiary" title={descriptionText}>{descriptionText}</div></div>{showDetail && (<EventDetailDrawer@@ -50,9 +50,9 @@ export const TriggerEventsList = () => {return nullreturn (- <div className="px-4 pb-4 pt-2">+ <div className="px-4 pt-2 pb-4"><div className="mb-1 py-1">- <div className="system-sm-semibold-uppercase mb-1 flex h-6 items-center justify-between text-text-secondary">+ <div className="mb-1 flex h-6 items-center justify-between system-sm-semibold-uppercase text-text-secondary">{t('events.actionNum', { ns: 'pluginTrigger', num: triggerEvents.length, event: t(`events.${triggerEvents.length > 1 ? 'events' : 'event'}`, { ns: 'pluginTrigger' }) })}</div></div>diff --git a/web/app/components/plugins/plugin-item/index.tsx b/web/app/components/plugins/plugin-item/index.tsxindex 70a4c90fef9..ad03c002d84 100644--- a/web/app/components/plugins/plugin-item/index.tsx+++ b/web/app/components/plugins/plugin-item/index.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { PluginDetail } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowRightUpLine,RiBugLine,@@ -18,7 +19,6 @@ import { useAppContext } from '@/context/app-context'import { useGlobalPublicStore } from '@/context/global-public-context'import { useRenderI18nObject } from '@/hooks/use-i18n'import useTheme from '@/hooks/use-theme'-import { cn } from '@/utils/classnames'import { isEqualOrLaterThanVersion } from '@/utils/semver'import { getMarketplaceUrl } from '@/utils/var'import Badge from '../../base/badge'@@ -154,7 +154,7 @@ const PluginItem: FC<Props> = ({</div></div></div>- <div className="mb-1 mt-1.5 flex h-4 items-center gap-x-2 px-4">+ <div className="mt-1.5 mb-1 flex h-4 items-center gap-x-2 px-4">{/* Organization & Name */}<div className="flex grow items-center overflow-hidden"><OrgInfo@@ -164,8 +164,8 @@ const PluginItem: FC<Props> = ({/>{category === PluginCategoryEnum.extension && (<>- <div className="mx-2 text-text-quaternary system-xs-regular">·</div>- <div className="flex items-center gap-x-1 overflow-hidden text-text-tertiary system-xs-regular">+ <div className="mx-2 system-xs-regular text-text-quaternary">·</div>+ <div className="flex items-center gap-x-1 overflow-hidden system-xs-regular text-text-tertiary"><RiLoginCircleLine className="size-3 shrink-0" /><spanclassName="truncate"@@ -183,7 +183,7 @@ const PluginItem: FC<Props> = ({&& (<><a href={`https://github.com/${meta!.repo}`} target="_blank" className="flex items-center gap-1">- <div className="text-text-tertiary system-2xs-medium-uppercase">{t('from', { ns: 'plugin' })}</div>+ <div className="system-2xs-medium-uppercase text-text-tertiary">{t('from', { ns: 'plugin' })}</div><div className="flex items-center space-x-0.5 text-text-secondary"><Github className="h-3 w-3" /><div className="system-2xs-semibold-uppercase">GitHub</div>@@ -196,7 +196,7 @@ const PluginItem: FC<Props> = ({&& (<><a href={getMarketplaceUrl(`/plugins/${author}/${name}`, { theme })} target="_blank" className="flex items-center gap-0.5">- <div className="text-text-tertiary system-2xs-medium-uppercase">+ <div className="system-2xs-medium-uppercase text-text-tertiary">{t('from', { ns: 'plugin' })}{' '}<span className="text-text-secondary">marketplace</span>@@ -210,7 +210,7 @@ const PluginItem: FC<Props> = ({<><div className="flex items-center gap-1"><RiHardDrive3Line className="h-3 w-3 text-text-tertiary" />- <div className="text-text-tertiary system-2xs-medium-uppercase">Local Plugin</div>+ <div className="system-2xs-medium-uppercase text-text-tertiary">Local Plugin</div></div></>)}@@ -219,7 +219,7 @@ const PluginItem: FC<Props> = ({<><div className="flex items-center gap-1"><RiBugLine className="h-3 w-3 text-text-warning" />- <div className="text-text-warning system-2xs-medium-uppercase">Debugging Plugin</div>+ <div className="system-2xs-medium-uppercase text-text-warning">Debugging Plugin</div></div></>)}@@ -236,7 +236,7 @@ const PluginItem: FC<Props> = ({</div>{/* BG Effect for Deprecated Plugin */}{source === PluginSource.marketplace && enable_marketplace && isDeprecated && (- <div className="absolute bottom-[-71px] right-[-45px] z-0 size-40 bg-components-badge-status-light-warning-halo opacity-60 blur-[120px]" />+ <div className="absolute right-[-45px] bottom-[-71px] z-0 size-40 bg-components-badge-status-light-warning-halo opacity-60 blur-[120px]" />)}</div>)diff --git a/web/app/components/plugins/plugin-page/filter-management/__tests__/category-filter.spec.tsx b/web/app/components/plugins/plugin-page/filter-management/__tests__/category-filter.spec.tsxindex 6c20bb0b281..051d16792ae 100644--- a/web/app/components/plugins/plugin-page/filter-management/__tests__/category-filter.spec.tsx+++ b/web/app/components/plugins/plugin-page/filter-management/__tests__/category-filter.spec.tsx@@ -14,7 +14,7 @@ vi.mock('@/app/components/base/portal-to-follow-elem', () => ({),}))-vi.mock('@/utils/classnames', () => ({+vi.mock('@langgenius/dify-ui/cn', () => ({cn: (...args: unknown[]) => args.filter(Boolean).join(' '),}))diff --git a/web/app/components/plugins/plugin-page/filter-management/category-filter.tsx b/web/app/components/plugins/plugin-page/filter-management/category-filter.tsxindex 81b7f6cb820..f6ace774e84 100644--- a/web/app/components/plugins/plugin-page/filter-management/category-filter.tsx+++ b/web/app/components/plugins/plugin-page/filter-management/category-filter.tsx@@ -1,5 +1,6 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowDownSLine,RiCloseCircleFill,@@ -13,7 +14,6 @@ import {PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'import { useCategories } from '../../hooks'type CategoriesFilterProps = {@@ -54,7 +54,7 @@ const CategoriesFilter = ({)}><div className={cn(- 'system-sm-medium flex items-center p-1',+ 'flex items-center p-1 system-sm-medium',)}>{@@ -65,7 +65,7 @@ const CategoriesFilter = ({}{selectedTagsLength > 2 && (- <div className="system-xs-medium ml-1 text-text-tertiary">+ <div className="ml-1 system-xs-medium text-text-tertiary">+{selectedTagsLength - 2}</div>@@ -114,7 +114,7 @@ const CategoriesFilter = ({className="mr-1"checked={value.includes(option.name)}/>- <div className="system-sm-medium px-1 text-text-secondary">+ <div className="px-1 system-sm-medium text-text-secondary">{option.label}</div></div>diff --git a/web/app/components/plugins/plugin-page/filter-management/tag-filter.tsx b/web/app/components/plugins/plugin-page/filter-management/tag-filter.tsxindex 5206070a90c..e245895b3bc 100644--- a/web/app/components/plugins/plugin-page/filter-management/tag-filter.tsx+++ b/web/app/components/plugins/plugin-page/filter-management/tag-filter.tsx@@ -1,5 +1,6 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowDownSLine,RiCloseCircleFill,@@ -13,7 +14,6 @@ import {PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'import { useTags } from '../../hooks'type TagsFilterProps = {@@ -48,13 +48,13 @@ const TagsFilter = ({><PortalToFollowElemTrigger onClick={() => setOpen(v => !v)}><div className={cn(- 'flex h-8 cursor-pointer select-none items-center rounded-lg bg-components-input-bg-normal px-2 py-1 text-text-tertiary hover:bg-state-base-hover-alt',+ 'flex h-8 cursor-pointer items-center rounded-lg bg-components-input-bg-normal px-2 py-1 text-text-tertiary select-none hover:bg-state-base-hover-alt',selectedTagsLength && 'text-text-secondary',open && 'bg-state-base-hover',)}><div className={cn(- 'system-sm-medium flex items-center p-1',+ 'flex items-center p-1 system-sm-medium',)}>{@@ -65,7 +65,7 @@ const TagsFilter = ({}{selectedTagsLength > 2 && (- <div className="system-xs-medium ml-1 text-text-tertiary">+ <div className="ml-1 system-xs-medium text-text-tertiary">+{selectedTagsLength - 2}</div>@@ -102,14 +102,14 @@ const TagsFilter = ({filteredOptions.map(option => (<divkey={option.name}- className="flex h-7 cursor-pointer select-none items-center rounded-lg px-2 py-1.5 hover:bg-state-base-hover"+ className="flex h-7 cursor-pointer items-center rounded-lg px-2 py-1.5 select-none hover:bg-state-base-hover"onClick={() => handleCheck(option.name)}><CheckboxclassName="mr-1"checked={value.includes(option.name)}/>- <div className="system-sm-medium px-1 text-text-secondary">+ <div className="px-1 system-sm-medium text-text-secondary">{option.label}</div></div>diff --git a/web/app/components/plugins/plugin-page/index.tsx b/web/app/components/plugins/plugin-page/index.tsxindex 2de6b9228ad..05a6dd26e3c 100644--- a/web/app/components/plugins/plugin-page/index.tsx+++ b/web/app/components/plugins/plugin-page/index.tsx@@ -2,6 +2,7 @@import type { Dependency, PluginDeclaration, PluginManifestInMarket } from '../types'import type { PluginPageTab } from './context'+import { cn } from '@langgenius/dify-ui/cn'import {RiBookOpenLine,RiDragDropLine,@@ -23,7 +24,6 @@ import { usePluginInstallation } from '@/hooks/use-query-params'import Link from '@/next/link'import { fetchBundleInfoFromMarketPlace, fetchManifestFromMarketPlace } from '@/service/plugins'import { sleep } from '@/utils'-import { cn } from '@/utils/classnames'import { PLUGIN_PAGE_TABS_MAP } from '../hooks'import InstallFromLocalPackage from '../install-plugin/install-from-local-package'import InstallFromMarketplace from '../install-plugin/install-from-marketplace'diff --git a/web/app/components/plugins/plugin-page/install-plugin-dropdown.tsx b/web/app/components/plugins/plugin-page/install-plugin-dropdown.tsxindex 6ba782783c1..4bfe495b93f 100644--- a/web/app/components/plugins/plugin-page/install-plugin-dropdown.tsx+++ b/web/app/components/plugins/plugin-page/install-plugin-dropdown.tsx@@ -1,5 +1,6 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import { RiAddLine, RiArrowDownSLine } from '@remixicon/react'import { noop } from 'es-toolkit/function'import { useEffect, useRef, useState } from 'react'@@ -17,7 +18,6 @@ import InstallFromGitHub from '@/app/components/plugins/install-plugin/install-fimport InstallFromLocalPackage from '@/app/components/plugins/install-plugin/install-from-local-package'import { SUPPORT_INSTALL_LOCAL_FILE_EXTENSIONS } from '@/config'import { useGlobalPublicStore } from '@/context/global-public-context'-import { cn } from '@/utils/classnames'type Props = {onSwitchToMarketplaceTab: () => voiddiff --git a/web/app/components/plugins/plugin-page/plugin-tasks/components/task-status-indicator.tsx b/web/app/components/plugins/plugin-page/plugin-tasks/components/task-status-indicator.tsxindex 5d5ef914789..d1de645f7b1 100644--- a/web/app/components/plugins/plugin-page/plugin-tasks/components/task-status-indicator.tsx+++ b/web/app/components/plugins/plugin-page/plugin-tasks/components/task-status-indicator.tsx@@ -1,4 +1,5 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {RiCheckboxCircleFill,RiErrorWarningFill,@@ -7,7 +8,6 @@ import {import ProgressCircle from '@/app/components/base/progress-bar/progress-circle'import Tooltip from '@/app/components/base/tooltip'import DownloadingIcon from '@/app/components/header/plugins-nav/downloading-icon'-import { cn } from '@/utils/classnames'type TaskStatusIndicatorProps = {tip: string@@ -66,7 +66,7 @@ const TaskStatusIndicator: FC<TaskStatusIndicatorProps> = ({)}{/* Status Indicator Badge */}- <div className="absolute -right-1 -top-1">+ <div className="absolute -top-1 -right-1">{(isInstalling || isInstallingWithSuccess) && (<ProgressCirclepercentage={(totalPluginsLength > 0 ? successPluginsLength / totalPluginsLength : 0) * 100}diff --git a/web/app/components/plugins/provider-card.tsx b/web/app/components/plugins/provider-card.tsxindex f87a742e1d4..7f076997714 100644--- a/web/app/components/plugins/provider-card.tsx+++ b/web/app/components/plugins/provider-card.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { Plugin } from './types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowRightUpLine } from '@remixicon/react'import { useBoolean } from 'ahooks'import { useTheme } from 'next-themes'@@ -12,7 +13,6 @@ import InstallFromMarketplace from '@/app/components/plugins/install-plugin/instimport { getPluginLinkInMarketplace } from '@/app/components/plugins/marketplace/utils'import { useLocale } from '@/context/i18n'import { useRenderI18nObject } from '@/hooks/use-i18n'-import { cn } from '@/utils/classnames'import Badge from '../base/badge'import Icon from './card/base/card-icon'import Description from './card/base/description'diff --git a/web/app/components/plugins/readme-panel/__tests__/entrance.spec.tsx b/web/app/components/plugins/readme-panel/__tests__/entrance.spec.tsxindex f1e3c548de4..59051d4623f 100644--- a/web/app/components/plugins/readme-panel/__tests__/entrance.spec.tsx+++ b/web/app/components/plugins/readme-panel/__tests__/entrance.spec.tsx@@ -2,7 +2,7 @@ import { fireEvent, render, screen } from '@testing-library/react'import * as React from 'react'import { beforeEach, describe, expect, it, vi } from 'vitest'-vi.mock('@/utils/classnames', () => ({+vi.mock('@langgenius/dify-ui/cn', () => ({cn: (...args: unknown[]) => args.filter(Boolean).join(' '),}))diff --git a/web/app/components/plugins/readme-panel/entrance.tsx b/web/app/components/plugins/readme-panel/entrance.tsxindex 132328e04d6..2d8188874da 100644--- a/web/app/components/plugins/readme-panel/entrance.tsx+++ b/web/app/components/plugins/readme-panel/entrance.tsx@@ -1,8 +1,8 @@import type { PluginDetail } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import { RiBookReadLine } from '@remixicon/react'import * as React from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import { BUILTIN_TOOLS_ARRAY } from './constants'import { ReadmeShowType, useReadmePanelStore } from './store'@@ -28,7 +28,7 @@ export const ReadmeEntrance = ({return nullreturn (- <div className={cn('flex flex-col items-start justify-center gap-2 pb-4 pt-0', showType === ReadmeShowType.drawer && 'px-4', className)}>+ <div className={cn('flex flex-col items-start justify-center gap-2 pt-0 pb-4', showType === ReadmeShowType.drawer && 'px-4', className)}>{!showShortTip && (<div className="relative h-1 w-8 shrink-0"><div className="h-px w-full bg-divider-regular"></div>@@ -42,7 +42,7 @@ export const ReadmeEntrance = ({<div className="relative flex h-3 w-3 items-center justify-center overflow-hidden"><RiBookReadLine className="h-3 w-3" /></div>- <span className="text-xs font-normal leading-4">+ <span className="text-xs leading-4 font-normal">{!showShortTip ? t('readmeInfo.needHelpCheckReadme', { ns: 'plugin' }) : t('readmeInfo.title', { ns: 'plugin' })}</span></button>diff --git a/web/app/components/plugins/readme-panel/index.tsx b/web/app/components/plugins/readme-panel/index.tsxindex 182da360c41..0ed17aec28f 100644--- a/web/app/components/plugins/readme-panel/index.tsx+++ b/web/app/components/plugins/readme-panel/index.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiBookReadLine, RiCloseLine } from '@remixicon/react'import { createPortal } from 'react-dom'import { useTranslation } from 'react-i18next'@@ -8,7 +9,6 @@ import Loading from '@/app/components/base/loading'import { Markdown } from '@/app/components/base/markdown'import { useLanguage } from '@/app/components/header/account-setting/model-provider-page/hooks'import { usePluginReadme } from '@/service/use-plugins'-import { cn } from '@/utils/classnames'import DetailHeader from '../plugin-detail-panel/detail-header'import { ReadmeShowType, useReadmePanelStore } from './store'@@ -37,7 +37,7 @@ const ReadmePanel: FC = () => {<div className="mb-3 flex items-center justify-between"><div className="flex items-center gap-1"><RiBookReadLine className="h-3 w-3 text-text-tertiary" />- <span className="text-xs font-medium uppercase text-text-tertiary">+ <span className="text-xs font-medium text-text-tertiary uppercase">{t('readmeInfo.title', { ns: 'plugin' })}</span></div>@@ -90,7 +90,7 @@ const ReadmePanel: FC = () => {<div className="fixed inset-0 z-1002 flex justify-start" onClick={onClose}><divclassName={cn(- 'pointer-events-auto mb-2 ml-2 mr-2 mt-16 w-[600px] max-w-[600px] justify-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-0 shadow-xl',+ 'pointer-events-auto mt-16 mr-2 mb-2 ml-2 w-[600px] max-w-[600px] justify-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-0 shadow-xl',)}onClick={(event) => {event.stopPropagation()diff --git a/web/app/components/plugins/reference-setting-modal/auto-update-setting/index.tsx b/web/app/components/plugins/reference-setting-modal/auto-update-setting/index.tsxindex 6ff391b417b..dc5d376eb35 100644--- a/web/app/components/plugins/reference-setting-modal/auto-update-setting/index.tsx+++ b/web/app/components/plugins/reference-setting-modal/auto-update-setting/index.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { AutoUpdateConfig } from './types'import type { TriggerParams } from '@/app/components/base/date-and-time-picker/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiTimeLine } from '@remixicon/react'import * as React from 'react'import { useCallback, useMemo } from 'react'@@ -12,7 +13,6 @@ import { ACCOUNT_SETTING_TAB } from '@/app/components/header/account-setting/conimport OptionCard from '@/app/components/workflow/nodes/_base/components/option-card'import { useAppContext } from '@/context/app-context'import { useModalContextSelector } from '@/context/modal-context'-import { cn } from '@/utils/classnames'import Label from '../label'import PluginsPicker from './plugins-picker'import StrategyPicker from './strategy-picker'@@ -33,7 +33,7 @@ const SettingTimeZone: FC<{}) => {const setShowAccountSettingModal = useModalContextSelector(s => s.setShowAccountSettingModal)return (- <span className="body-xs-regular cursor-pointer text-text-accent" onClick={() => setShowAccountSettingModal({ payload: ACCOUNT_SETTING_TAB.LANGUAGE })}>{children}</span>+ <span className="cursor-pointer body-xs-regular text-text-accent" onClick={() => setShowAccountSettingModal({ payload: ACCOUNT_SETTING_TAB.LANGUAGE })}>{children}</span>)}const AutoUpdateSetting: FC<Props> = ({@@ -149,7 +149,7 @@ const AutoUpdateSetting: FC<Props> = ({renderTrigger={renderTimePickerTrigger}placement="bottom-end"/>- <div className="body-xs-regular mt-1 text-right text-text-tertiary">+ <div className="mt-1 text-right body-xs-regular text-text-tertiary"><Transi18nKey={`${i18nPrefix}.changeTimezone`}ns="plugin"diff --git a/web/app/components/plugins/reference-setting-modal/auto-update-setting/no-data-placeholder.tsx b/web/app/components/plugins/reference-setting-modal/auto-update-setting/no-data-placeholder.tsxindex 922e63a32ff..5cec7d3730e 100644--- a/web/app/components/plugins/reference-setting-modal/auto-update-setting/no-data-placeholder.tsx+++ b/web/app/components/plugins/reference-setting-modal/auto-update-setting/no-data-placeholder.tsx@@ -1,10 +1,10 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import { SearchMenu } from '@/app/components/base/icons/src/vender/line/general'import { Group } from '@/app/components/base/icons/src/vender/other'-import { cn } from '@/utils/classnames'type Props = {className: string@@ -22,7 +22,7 @@ const NoDataPlaceholder: FC<Props> = ({<div className={cn('flex items-center justify-center', className)}><div className="flex flex-col items-center">{icon}- <div className="system-sm-regular mt-2 text-text-tertiary">{text}</div>+ <div className="mt-2 system-sm-regular text-text-tertiary">{text}</div></div></div>)diff --git a/web/app/components/plugins/reference-setting-modal/auto-update-setting/no-plugin-selected.tsx b/web/app/components/plugins/reference-setting-modal/auto-update-setting/no-plugin-selected.tsxindex 72d0e6262c3..ccd0423fc3e 100644--- a/web/app/components/plugins/reference-setting-modal/auto-update-setting/no-plugin-selected.tsx+++ b/web/app/components/plugins/reference-setting-modal/auto-update-setting/no-plugin-selected.tsx@@ -14,7 +14,7 @@ const NoPluginSelected: FC<Props> = ({const { t } = useTranslation()const text = `${t(`autoUpdate.upgradeModePlaceholder.${updateMode === AUTO_UPDATE_MODE.partial ? 'partial' : 'exclude'}`, { ns: 'plugin' })}`return (- <div className="system-xs-regular radius-lg border border-components-option-card-option-border bg-background-section p-3 text-center text-text-tertiary">+ <div className="rounded-[10px] border border-components-option-card-option-border bg-background-section p-3 text-center system-xs-regular text-text-tertiary">{text}</div>)diff --git a/web/app/components/plugins/reference-setting-modal/auto-update-setting/plugins-picker.tsx b/web/app/components/plugins/reference-setting-modal/auto-update-setting/plugins-picker.tsxindex f02e0c4d1d1..c0dbbea5c68 100644--- a/web/app/components/plugins/reference-setting-modal/auto-update-setting/plugins-picker.tsx+++ b/web/app/components/plugins/reference-setting-modal/auto-update-setting/plugins-picker.tsx@@ -34,7 +34,7 @@ const PluginsPicker: FC<Props> = ({set: setToolPicker,}] = useBoolean(false)return (- <div className="mt-2 radius-lg bg-background-section-burn p-2.5">+ <div className="mt-2 rounded-[10px] bg-background-section-burn p-2.5">{hasSelected? (<div className="flex justify-between text-text-tertiary">diff --git a/web/app/components/plugins/reference-setting-modal/auto-update-setting/plugins-selected.tsx b/web/app/components/plugins/reference-setting-modal/auto-update-setting/plugins-selected.tsxindex 0284ec8a7f5..cdb07b88744 100644--- a/web/app/components/plugins/reference-setting-modal/auto-update-setting/plugins-selected.tsx+++ b/web/app/components/plugins/reference-setting-modal/auto-update-setting/plugins-selected.tsx@@ -1,9 +1,9 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import Icon from '@/app/components/plugins/card/base/card-icon'import { MARKETPLACE_API_PREFIX } from '@/config'-import { cn } from '@/utils/classnames'const MAX_DISPLAY_COUNT = 14type Props = {diff --git a/web/app/components/plugins/reference-setting-modal/auto-update-setting/tool-picker.tsx b/web/app/components/plugins/reference-setting-modal/auto-update-setting/tool-picker.tsxindex ef24f9c7df9..975dd2217eb 100644--- a/web/app/components/plugins/reference-setting-modal/auto-update-setting/tool-picker.tsx+++ b/web/app/components/plugins/reference-setting-modal/auto-update-setting/tool-picker.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { ActivePluginType } from '../../marketplace/constants'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback, useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -12,7 +13,6 @@ import {} from '@/app/components/base/portal-to-follow-elem'import SearchBox from '@/app/components/plugins/marketplace/search-box'import { useInstalledPluginList } from '@/service/use-plugins'-import { cn } from '@/utils/classnames'import { PLUGIN_TYPE_SEARCH_MAP } from '../../marketplace/constants'import { PluginSource } from '../../types'import NoDataPlaceholder from './no-data-placeholder'diff --git a/web/app/components/plugins/reference-setting-modal/label.tsx b/web/app/components/plugins/reference-setting-modal/label.tsxindex 720361d79a5..ad833cb30eb 100644--- a/web/app/components/plugins/reference-setting-modal/label.tsx+++ b/web/app/components/plugins/reference-setting-modal/label.tsx@@ -1,7 +1,7 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'type Props = {label: string@@ -18,7 +18,7 @@ const Label: FC<Props> = ({<span className="system-sm-semibold text-text-secondary">{label}</span></div>{description && (- <div className="body-xs-regular mt-1 text-text-tertiary">+ <div className="mt-1 body-xs-regular text-text-tertiary">{description}</div>)}diff --git a/web/app/components/plugins/update-plugin/from-market-place.tsx b/web/app/components/plugins/update-plugin/from-market-place.tsxindex 3d674cf9d4c..bde50518081 100644--- a/web/app/components/plugins/update-plugin/from-market-place.tsx+++ b/web/app/components/plugins/update-plugin/from-market-place.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { UpdateFromMarketPlacePayload } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback, useEffect, useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -18,7 +19,6 @@ import checkTaskStatus from '@/app/components/plugins/install-plugin/base/check-import { pluginManifestToCardPluginProps } from '@/app/components/plugins/install-plugin/utils'import { updateFromMarketPlace } from '@/service/plugins'import { useInvalidateReferenceSettings, usePluginTaskList, useRemoveAutoUpgrade } from '@/service/use-plugins'-import { cn } from '@/utils/classnames'import useGetIcon from '../install-plugin/base/use-get-icon'import { TaskStatus } from '../types'import DowngradeWarningModal from './downgrade-warning'diff --git a/web/app/components/plugins/update-plugin/plugin-version-picker.tsx b/web/app/components/plugins/update-plugin/plugin-version-picker.tsxindex b7709b9e4d9..0266c05069b 100644--- a/web/app/components/plugins/update-plugin/plugin-version-picker.tsx+++ b/web/app/components/plugins/update-plugin/plugin-version-picker.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { Placement } from '@/app/components/base/ui/placement'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'@@ -12,7 +13,6 @@ import {} from '@/app/components/base/ui/popover'import useTimestamp from '@/hooks/use-timestamp'import { useVersionListOfPlugin } from '@/service/use-plugins'-import { cn } from '@/utils/classnames'import { isEarlierThanVersion } from '@/utils/semver'type Props = {@@ -86,7 +86,7 @@ const PluginVersionPicker: FC<Props> = ({alignOffset={alignOffset}popupClassName="relative w-[209px] bg-components-panel-bg-blur p-1 backdrop-blur-xs">- <div className="px-3 pb-0.5 pt-1 text-text-tertiary system-xs-medium-uppercase">+ <div className="px-3 pt-1 pb-0.5 system-xs-medium-uppercase text-text-tertiary">{t('detailPanel.switchVersion', { ns: 'plugin' })}</div><div className="relative max-h-[224px] overflow-y-auto">@@ -104,10 +104,10 @@ const PluginVersionPicker: FC<Props> = ({})}><div className="flex grow items-center">- <div className="text-text-secondary system-sm-medium">{version.version}</div>+ <div className="system-sm-medium text-text-secondary">{version.version}</div>{currentVersion === version.version && <Badge className="ml-1" text="CURRENT" />}</div>- <div className="shrink-0 text-text-tertiary system-xs-regular">{formatDate(version.created_at, format)}</div>+ <div className="shrink-0 system-xs-regular text-text-tertiary">{formatDate(version.created_at, format)}</div></div>))}</div>diff --git a/web/app/components/rag-pipeline/components/chunk-card-list/index.tsx b/web/app/components/rag-pipeline/components/chunk-card-list/index.tsxindex 176298b2e8a..d22c2a727c5 100644--- a/web/app/components/rag-pipeline/components/chunk-card-list/index.tsx+++ b/web/app/components/rag-pipeline/components/chunk-card-list/index.tsx@@ -1,8 +1,8 @@import type { ChunkInfo, GeneralChunk, GeneralChunks, ParentChildChunk, ParentChildChunks, QAChunk, QAChunks } from './types'import type { ParentMode } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { useMemo } from 'react'import { ChunkingMode } from '@/models/datasets'-import { cn } from '@/utils/classnames'import ChunkCard from './chunk-card'type ChunkCardListProps = {diff --git a/web/app/components/rag-pipeline/components/panel/input-field/editor/index.tsx b/web/app/components/rag-pipeline/components/panel/input-field/editor/index.tsxindex 5bfd13c66ea..6bd21866dbe 100644--- a/web/app/components/rag-pipeline/components/panel/input-field/editor/index.tsx+++ b/web/app/components/rag-pipeline/components/panel/input-field/editor/index.tsx@@ -1,10 +1,10 @@import type { FormData } from './form/types'import type { MoreInfo } from '@/app/components/workflow/types'import type { InputVar } from '@/models/pipeline'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine } from '@remixicon/react'import { useCallback, useMemo } from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import { useFloatingRight } from '../hooks'import InputFieldForm from './form'import { convertFormDataToINputField, convertToInputFieldFormData } from './utils'@@ -44,13 +44,13 @@ const InputFieldEditorPanel = ({width: `${floatingRightWidth}px`,}}>- <div className="system-xl-semibold flex items-center pb-1 pl-4 pr-11 pt-3.5 text-text-primary">+ <div className="flex items-center pt-3.5 pr-11 pb-1 pl-4 system-xl-semibold text-text-primary">{initialData ? t('inputFieldPanel.editInputField', { ns: 'datasetPipeline' }) : t('inputFieldPanel.addInputField', { ns: 'datasetPipeline' })}</div><buttontype="button"data-testid="input-field-editor-close-btn"- className="absolute right-2.5 top-2.5 flex size-8 items-center justify-center"+ className="absolute top-2.5 right-2.5 flex size-8 items-center justify-center"onClick={onClose}><RiCloseLine className="size-4 text-text-tertiary" />diff --git a/web/app/components/rag-pipeline/components/panel/input-field/field-list/field-item.tsx b/web/app/components/rag-pipeline/components/panel/input-field/field-list/field-item.tsxindex bc1a9afbb80..a4cc03b8aba 100644--- a/web/app/components/rag-pipeline/components/panel/input-field/field-list/field-item.tsx+++ b/web/app/components/rag-pipeline/components/panel/input-field/field-list/field-item.tsx@@ -1,6 +1,7 @@'use client'import type { InputVarType } from '@/app/components/workflow/types'import type { InputVar } from '@/models/pipeline'+import { cn } from '@langgenius/dify-ui/cn'import {RiDeleteBinLine,RiDraggable,@@ -14,7 +15,6 @@ import ActionButton from '@/app/components/base/action-button'import Badge from '@/app/components/base/badge'import { InputField } from '@/app/components/base/icons/src/vender/pipeline'import InputVarTypeIcon from '@/app/components/workflow/nodes/_base/components/input-var-type-icon'-import { cn } from '@/utils/classnames'type FieldItemProps = {readonly?: boolean@@ -68,16 +68,16 @@ const FieldItem = ({}<divtitle={payload.variable}- className="system-sm-medium max-w-[130px] shrink-0 truncate text-text-secondary"+ className="max-w-[130px] shrink-0 truncate system-sm-medium text-text-secondary">{payload.variable}</div>{payload.label && (<>- <div className="system-xs-regular shrink-0 text-text-quaternary">·</div>+ <div className="shrink-0 system-xs-regular text-text-quaternary">·</div><divtitle={payload.label}- className="system-xs-medium grow truncate text-text-tertiary"+ className="grow truncate system-xs-medium text-text-tertiary">{payload.label}</div>diff --git a/web/app/components/rag-pipeline/components/panel/input-field/field-list/field-list-container.tsx b/web/app/components/rag-pipeline/components/panel/input-field/field-list/field-list-container.tsxindex a14af1f7046..e99a815f0a3 100644--- a/web/app/components/rag-pipeline/components/panel/input-field/field-list/field-list-container.tsx+++ b/web/app/components/rag-pipeline/components/panel/input-field/field-list/field-list-container.tsx@@ -1,5 +1,6 @@import type { SortableItem } from './types'import type { InputVar } from '@/models/pipeline'+import { cn } from '@langgenius/dify-ui/cn'import { isEqual } from 'es-toolkit/predicate'import {memo,@@ -7,7 +8,6 @@ import {useMemo,} from 'react'import { ReactSortable } from 'react-sortablejs'-import { cn } from '@/utils/classnames'import FieldItem from './field-item'type FieldListContainerProps = {diff --git a/web/app/components/rag-pipeline/components/panel/input-field/field-list/index.tsx b/web/app/components/rag-pipeline/components/panel/input-field/field-list/index.tsxindex f43f3aaf183..64b05f762d1 100644--- a/web/app/components/rag-pipeline/components/panel/input-field/field-list/index.tsx+++ b/web/app/components/rag-pipeline/components/panel/input-field/field-list/index.tsx@@ -1,10 +1,10 @@import type { InputVar } from '@/models/pipeline'+import { cn } from '@langgenius/dify-ui/cn'import { RiAddLine } from '@remixicon/react'import * as React from 'react'import { useCallback } from 'react'import ActionButton from '@/app/components/base/action-button'import RemoveEffectVarConfirm from '@/app/components/workflow/nodes/_base/components/remove-effect-var-confirm'-import { cn } from '@/utils/classnames'import FieldListContainer from './field-list-container'import { useFieldList } from './hooks'diff --git a/web/app/components/rag-pipeline/components/panel/input-field/index.tsx b/web/app/components/rag-pipeline/components/panel/input-field/index.tsxindex 3ac7dbc342d..3939413c802 100644--- a/web/app/components/rag-pipeline/components/panel/input-field/index.tsx+++ b/web/app/components/rag-pipeline/components/panel/input-field/index.tsx@@ -1,6 +1,7 @@import type { DataSourceNodeType } from '@/app/components/workflow/nodes/data-source/types'import type { Node } from '@/app/components/workflow/types'import type { InputVar, RAGPipelineVariables } from '@/models/pipeline'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine, RiEyeLine } from '@remixicon/react'import {memo,@@ -17,7 +18,6 @@ import { useInputFieldPanel } from '@/app/components/rag-pipeline/hooks'import { useNodesSyncDraft } from '@/app/components/workflow/hooks'import { useStore } from '@/app/components/workflow/store'import { BlockEnum } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import FieldList from './field-list'import FooterTip from './footer-tip'import Datasource from './label-right-content/datasource'diff --git a/web/app/components/rag-pipeline/components/panel/input-field/preview/index.tsx b/web/app/components/rag-pipeline/components/panel/input-field/preview/index.tsxindex 7d5338b84eb..5f0813dc78c 100644--- a/web/app/components/rag-pipeline/components/panel/input-field/preview/index.tsx+++ b/web/app/components/rag-pipeline/components/panel/input-field/preview/index.tsx@@ -1,11 +1,11 @@import type { Datasource } from '../../test-run/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine } from '@remixicon/react'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'import Badge from '@/app/components/base/badge'import Divider from '@/app/components/base/divider'import { useInputFieldPanel } from '@/app/components/rag-pipeline/hooks'-import { cn } from '@/utils/classnames'import { useFloatingRight } from '../hooks'import DataSource from './data-source'import ProcessDocuments from './process-documents'diff --git a/web/app/components/rag-pipeline/components/panel/test-run/preparation/data-source-options/option-card.tsx b/web/app/components/rag-pipeline/components/panel/test-run/preparation/data-source-options/option-card.tsxindex 7198d4d9886..c4f6a4e1c02 100644--- a/web/app/components/rag-pipeline/components/panel/test-run/preparation/data-source-options/option-card.tsx+++ b/web/app/components/rag-pipeline/components/panel/test-run/preparation/data-source-options/option-card.tsx@@ -1,10 +1,10 @@import type { DataSourceNodeType } from '@/app/components/workflow/nodes/data-source/types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback } from 'react'import BlockIcon from '@/app/components/workflow/block-icon'import { useToolIcon } from '@/app/components/workflow/hooks'import { BlockEnum } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'type OptionCardProps = {label: string@@ -32,7 +32,7 @@ const OptionCard = ({className={cn('flex cursor-pointer flex-col gap-1 rounded-xl border border-components-option-card-option-border bg-components-option-card-option-bg p-2.5 shadow-shadow-shadow-3',selected- ? 'border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg shadow-xs ring-[0.5px] ring-inset ring-components-option-card-option-selected-border'+ ? 'border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg shadow-xs ring-[0.5px] ring-components-option-card-option-selected-border ring-inset': 'hover:bg-components-option-card-bg-hover hover:border-components-option-card-option-border-hover hover:shadow-xs',)}onClick={handleClickCard}@@ -44,7 +44,7 @@ const OptionCard = ({/></div><div- className={cn('system-sm-medium line-clamp-2 grow text-text-secondary', selected && 'text-text-primary')}+ className={cn('line-clamp-2 grow system-sm-medium text-text-secondary', selected && 'text-text-primary')}title={label}>{label}diff --git a/web/app/components/rag-pipeline/components/panel/test-run/preparation/step-indicator.tsx b/web/app/components/rag-pipeline/components/panel/test-run/preparation/step-indicator.tsxindex 93c4af8047a..75c8a6e150e 100644--- a/web/app/components/rag-pipeline/components/panel/test-run/preparation/step-indicator.tsx+++ b/web/app/components/rag-pipeline/components/panel/test-run/preparation/step-indicator.tsx@@ -1,6 +1,6 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import Divider from '@/app/components/base/divider'-import { cn } from '@/utils/classnames'type Step = {label: stringdiff --git a/web/app/components/rag-pipeline/components/panel/test-run/result/tabs/tab.tsx b/web/app/components/rag-pipeline/components/panel/test-run/result/tabs/tab.tsxindex 550759c4f4f..77deed0546b 100644--- a/web/app/components/rag-pipeline/components/panel/test-run/result/tabs/tab.tsx+++ b/web/app/components/rag-pipeline/components/panel/test-run/result/tabs/tab.tsx@@ -1,7 +1,7 @@import type { WorkflowRunningData } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback } from 'react'-import { cn } from '@/utils/classnames'type TabProps = {isActive: boolean@@ -20,7 +20,7 @@ const Tab = ({ isActive, label, value, workflowRunningData, onClick }: TabProps)<buttontype="button"className={cn(- 'system-sm-semibold-uppercase cursor-pointer border-b-2 border-transparent py-3 text-text-tertiary',+ 'cursor-pointer border-b-2 border-transparent py-3 system-sm-semibold-uppercase text-text-tertiary',isActive && 'border-util-colors-blue-brand-blue-brand-600 text-text-primary',!workflowRunningData && 'cursor-not-allowed! opacity-30',)}diff --git a/web/app/components/rag-pipeline/components/rag-pipeline-header/__tests__/run-mode.spec.tsx b/web/app/components/rag-pipeline/components/rag-pipeline-header/__tests__/run-mode.spec.tsxindex 9ac47aae02f..42e158b66aa 100644--- a/web/app/components/rag-pipeline/components/rag-pipeline-header/__tests__/run-mode.spec.tsx+++ b/web/app/components/rag-pipeline/components/rag-pipeline-header/__tests__/run-mode.spec.tsx@@ -53,7 +53,7 @@ vi.mock('@/context/event-emitter', () => ({}),}))-vi.mock('@/utils/classnames', () => ({+vi.mock('@langgenius/dify-ui/cn', () => ({cn: (...args: unknown[]) => args.filter(a => typeof a === 'string').join(' '),}))diff --git a/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/__tests__/popup.spec.tsx b/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/__tests__/popup.spec.tsxindex a0076996a3a..77d264ec7ac 100644--- a/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/__tests__/popup.spec.tsx+++ b/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/__tests__/popup.spec.tsx@@ -165,7 +165,7 @@ vi.mock('@/service/use-workflow', () => ({}),}))-vi.mock('@/utils/classnames', () => ({+vi.mock('@langgenius/dify-ui/cn', () => ({cn: (...args: string[]) => args.filter(Boolean).join(' '),}))diff --git a/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx b/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsxindex 70961c5ff9c..d34971ddcc1 100644--- a/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx+++ b/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx@@ -1,5 +1,6 @@import type { IconInfo } from '@/models/datasets'import type { PublishWorkflowParams } from '@/types/workflow'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowRightUpLine, RiHammerLine, RiPlayCircleLine, RiTerminalBoxLine } from '@remixicon/react'import { useBoolean, useKeyPress } from 'ahooks'import { memo, useCallback, useState } from 'react'@@ -35,7 +36,6 @@ import { useInvalidDatasetList } from '@/service/knowledge/use-dataset'import { useInvalid } from '@/service/use-base'import { publishedPipelineInfoQueryKeyPrefix, useInvalidCustomizedTemplateList, usePublishAsCustomizedPipeline } from '@/service/use-pipeline'import { usePublishWorkflow } from '@/service/use-workflow'-import { cn } from '@/utils/classnames'import PublishAsKnowledgePipelineModal from '../../publish-as-knowledge-pipeline-modal'const PUBLISH_SHORTCUT = ['ctrl', '⇧', 'P']diff --git a/web/app/components/rag-pipeline/components/rag-pipeline-header/run-mode.tsx b/web/app/components/rag-pipeline/components/rag-pipeline-header/run-mode.tsxindex 81389e51b44..5326e3b0f5f 100644--- a/web/app/components/rag-pipeline/components/rag-pipeline-header/run-mode.tsx+++ b/web/app/components/rag-pipeline/components/rag-pipeline-header/run-mode.tsx@@ -1,3 +1,4 @@+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine, RiDatabase2Line, RiLoader2Line, RiPlayLargeLine } from '@remixicon/react'import * as React from 'react'import { useCallback } from 'react'@@ -9,7 +10,6 @@ import { useStore, useWorkflowStore } from '@/app/components/workflow/store'import { WorkflowRunningStatus } from '@/app/components/workflow/types'import { EVENT_WORKFLOW_STOP } from '@/app/components/workflow/variable-inspect/types'import { useEventEmitterContextContext } from '@/context/event-emitter'-import { cn } from '@/utils/classnames'type RunModeProps = {text?: string@@ -49,7 +49,7 @@ const RunMode = ({<buttontype="button"className={cn(- 'system-xs-medium flex h-7 items-center gap-x-1 px-1.5 text-text-accent hover:bg-state-accent-hover',+ 'flex h-7 items-center gap-x-1 px-1.5 system-xs-medium text-text-accent hover:bg-state-accent-hover',isDisabled && 'cursor-not-allowed bg-state-accent-hover',isDisabled ? 'rounded-l-md' : 'rounded-md',)}diff --git a/web/app/components/share/text-generation/index.tsx b/web/app/components/share/text-generation/index.tsxindex a6b54137f13..afdd5b0c81a 100644--- a/web/app/components/share/text-generation/index.tsx+++ b/web/app/components/share/text-generation/index.tsx@@ -3,6 +3,7 @@ import type { FC } from 'react'import type { InputValueTypes, TextGenerationRunControl } from './types'import type { InstalledApp } from '@/models/explore'import type { VisionFile } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import { useBoolean } from 'ahooks'import { useCallback, useEffect, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -10,7 +11,6 @@ import Loading from '@/app/components/base/loading'import { toast } from '@/app/components/base/ui/toast'import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'import { useSearchParams } from '@/next/navigation'-import { cn } from '@/utils/classnames'import { useTextGenerationAppState } from './hooks/use-text-generation-app-state'import { useTextGenerationBatch } from './hooks/use-text-generation-batch'import TextGenerationResultPanel from './text-generation-result-panel'diff --git a/web/app/components/share/text-generation/info-modal.tsx b/web/app/components/share/text-generation/info-modal.tsxindex 8f0d551fa66..29471548ef9 100644--- a/web/app/components/share/text-generation/info-modal.tsx+++ b/web/app/components/share/text-generation/info-modal.tsx@@ -1,9 +1,9 @@import type { SiteInfo } from '@/models/share'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import AppIcon from '@/app/components/base/app-icon'import Modal from '@/app/components/base/modal'import { appDefaultIconBackground } from '@/config'-import { cn } from '@/utils/classnames'type Props = {data?: SiteInfo@@ -20,10 +20,10 @@ const InfoModal = ({<ModalisShow={isShow}onClose={onClose}- className="min-w-[400px] max-w-[400px] p-0!"+ className="max-w-[400px] min-w-[400px] p-0!"closable>- <div className={cn('flex flex-col items-center gap-4 px-4 pb-8 pt-10')}>+ <div className={cn('flex flex-col items-center gap-4 px-4 pt-10 pb-8')}><AppIconsize="xxl"iconType={data?.icon_type}diff --git a/web/app/components/share/text-generation/menu-dropdown.tsx b/web/app/components/share/text-generation/menu-dropdown.tsxindex 32f3a76e3db..bc8323676c0 100644--- a/web/app/components/share/text-generation/menu-dropdown.tsx+++ b/web/app/components/share/text-generation/menu-dropdown.tsx@@ -2,6 +2,7 @@import type { Placement } from '@floating-ui/react'import type { FC } from 'react'import type { SiteInfo } from '@/models/share'+import { cn } from '@langgenius/dify-ui/cn'import {RiEqualizer2Line,} from '@remixicon/react'@@ -19,7 +20,6 @@ import { useWebAppStore } from '@/context/web-app-context'import { AccessMode } from '@/models/access-control'import { usePathname, useRouter } from '@/next/navigation'import { webAppLogout } from '@/service/webapp-auth'-import { cn } from '@/utils/classnames'import Divider from '../../base/divider'import InfoModal from './info-modal'@@ -85,7 +85,7 @@ const MenuDropdown: FC<Props> = ({<PortalToFollowElemContent className="z-50"><div className="w-[224px] rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur shadow-lg backdrop-blur-xs"><div className="p-1">- <div className={cn('system-md-regular flex cursor-pointer items-center rounded-lg py-1.5 pl-3 pr-2 text-text-secondary')}>+ <div className={cn('flex cursor-pointer items-center rounded-lg py-1.5 pr-2 pl-3 system-md-regular text-text-secondary')}><div className="grow">{t('theme.theme', { ns: 'common' })}</div><ThemeSwitcher /></div>@@ -93,7 +93,7 @@ const MenuDropdown: FC<Props> = ({<Divider type="horizontal" className="my-0" /><div className="p-1">{data?.privacy_policy && (- <a href={data.privacy_policy} target="_blank" className="system-md-regular flex cursor-pointer items-center rounded-lg px-3 py-1.5 text-text-secondary hover:bg-state-base-hover">+ <a href={data.privacy_policy} target="_blank" className="flex cursor-pointer items-center rounded-lg px-3 py-1.5 system-md-regular text-text-secondary hover:bg-state-base-hover"><span className="grow">{t('chat.privacyPolicyMiddle', { ns: 'share' })}</span></a>)}@@ -102,7 +102,7 @@ const MenuDropdown: FC<Props> = ({handleTrigger()setShow(true)}}- className="system-md-regular cursor-pointer rounded-lg px-3 py-1.5 text-text-secondary hover:bg-state-base-hover"+ className="cursor-pointer rounded-lg px-3 py-1.5 system-md-regular text-text-secondary hover:bg-state-base-hover">{t('userProfile.about', { ns: 'common' })}</div>@@ -111,7 +111,7 @@ const MenuDropdown: FC<Props> = ({<div className="p-1"><divonClick={handleLogout}- className="system-md-regular cursor-pointer rounded-lg px-3 py-1.5 text-text-secondary hover:bg-state-base-hover"+ className="cursor-pointer rounded-lg px-3 py-1.5 system-md-regular text-text-secondary hover:bg-state-base-hover">{t('userProfile.logout', { ns: 'common' })}</div>diff --git a/web/app/components/share/text-generation/run-batch/csv-reader/index.tsx b/web/app/components/share/text-generation/run-batch/csv-reader/index.tsxindex 299e35bdaa8..33af235f5cf 100644--- a/web/app/components/share/text-generation/run-batch/csv-reader/index.tsx+++ b/web/app/components/share/text-generation/run-batch/csv-reader/index.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useState } from 'react'import { useTranslation } from 'react-i18next'@@ -7,7 +8,6 @@ import {useCSVReader,} from 'react-papaparse'import { Csv as CSVIcon } from '@/app/components/base/icons/src/public/files'-import { cn } from '@/utils/classnames'type Props = {onParsed: (data: string[][]) => void@@ -42,7 +42,7 @@ const CSVReader: FC<Props> = ({<div{...getRootProps()}className={cn(- 'system-sm-regular flex h-20 items-center rounded-xl border border-dashed border-components-dropzone-border bg-components-dropzone-bg',+ 'flex h-20 items-center rounded-xl border border-dashed border-components-dropzone-border bg-components-dropzone-bg system-sm-regular',acceptedFile && 'border-solid border-components-panel-border bg-components-panel-on-panel-item-bg px-6 hover:border-components-panel-bg-blur hover:bg-components-panel-on-panel-item-bg-hover',zoneHover && 'border border-components-dropzone-border-accent bg-components-dropzone-bg-accent',)}diff --git a/web/app/components/share/text-generation/run-batch/index.tsx b/web/app/components/share/text-generation/run-batch/index.tsxindex d6e4ed8a868..153cb181f1d 100644--- a/web/app/components/share/text-generation/run-batch/index.tsx+++ b/web/app/components/share/text-generation/run-batch/index.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {RiLoader2Line,RiPlayLargeLine,@@ -8,7 +9,6 @@ import * as React from 'react'import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'-import { cn } from '@/utils/classnames'import CSVDownload from './csv-download'import CSVReader from './csv-reader'diff --git a/web/app/components/share/text-generation/run-batch/res-download/index.tsx b/web/app/components/share/text-generation/run-batch/res-download/index.tsxindex d6f521029e0..7bb3336f133 100644--- a/web/app/components/share/text-generation/run-batch/res-download/index.tsx+++ b/web/app/components/share/text-generation/run-batch/res-download/index.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiDownloadLine } from '@remixicon/react'import * as React from 'react'import { useTranslation } from 'react-i18next'@@ -8,7 +9,6 @@ import {} from 'react-papaparse'import ActionButton from '@/app/components/base/action-button'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'type IResDownloadProps = {isMobile: booleandiff --git a/web/app/components/share/text-generation/run-once/index.tsx b/web/app/components/share/text-generation/run-once/index.tsxindex 53f11c59108..4e66614825e 100644--- a/web/app/components/share/text-generation/run-once/index.tsx+++ b/web/app/components/share/text-generation/run-once/index.tsx@@ -4,6 +4,7 @@ import type { FileEntity } from '@/app/components/base/file-uploader/types'import type { PromptConfig } from '@/models/debug'import type { SiteInfo } from '@/models/share'import type { VisionFile, VisionSettings } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import {RiLoader2Line,RiPlayLargeLine,@@ -22,7 +23,6 @@ import BoolInput from '@/app/components/workflow/nodes/_base/components/before-rimport CodeEditor from '@/app/components/workflow/nodes/_base/components/editor/code-editor'import { CodeLanguage } from '@/app/components/workflow/nodes/code/types'import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'-import { cn } from '@/utils/classnames'type IRunOnceProps = {siteInfo: SiteInfo@@ -197,7 +197,7 @@ const RunOnce: FC<IRunOnceProps> = ({value={inputs[item.key] as string}onChange={(value) => { handleInputsChange({ ...inputsRef.current, [item.key]: value }) }}noWrapper- className="bg h-[80px] overflow-y-auto radius-lg bg-components-input-bg-normal p-1"+ className="bg h-[80px] overflow-y-auto rounded-[10px] bg-components-input-bg-normal p-1"placeholder={<div className="whitespace-pre">{typeof item.json_schema === 'string' ? item.json_schema : JSON.stringify(item.json_schema || '', null, 2)}</div>}diff --git a/web/app/components/share/text-generation/text-generation-result-panel.tsx b/web/app/components/share/text-generation/text-generation-result-panel.tsxindex 1b7d46b4fed..bcd38e563a5 100644--- a/web/app/components/share/text-generation/text-generation-result-panel.tsx+++ b/web/app/components/share/text-generation/text-generation-result-panel.tsx@@ -4,10 +4,10 @@ import type { PromptConfig } from '@/models/debug'import type { SiteInfo } from '@/models/share'import type { AppSourceType } from '@/service/share'import type { VisionFile, VisionSettings } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'import Loading from '@/app/components/base/loading'import Res from '@/app/components/share/text-generation/result'-import { cn } from '@/utils/classnames'import ResDownload from './run-batch/res-download'import { TaskStatus } from './types'@@ -125,7 +125,7 @@ const TextGenerationResultPanel: FC<TextGenerationResultPanelProps> = ({className={cn(isShowResultPanel? 'flex items-center justify-center p-2 pt-6'- : 'absolute left-0 top-0 z-10 flex w-full items-center justify-center px-2 pb-[57px] pt-[3px]',+ : 'absolute top-0 left-0 z-10 flex w-full items-center justify-center px-2 pt-[3px] pb-[57px]',)}onClick={() => {if (isShowResultPanel)@@ -151,11 +151,11 @@ const TextGenerationResultPanel: FC<TextGenerationResultPanelProps> = ({{isCallBatchAPI && (<divclassName={cn(- 'flex shrink-0 items-center justify-between px-14 pb-2 pt-9',- !isPC && 'px-4 pb-1 pt-3',+ 'flex shrink-0 items-center justify-between px-14 pt-9 pb-2',+ !isPC && 'px-4 pt-3 pb-1',)}>- <div className="text-text-primary system-md-semibold-uppercase">{t('generation.executions', { ns: 'share', num: allTaskList.length })}</div>+ <div className="system-md-semibold-uppercase text-text-primary">{t('generation.executions', { ns: 'share', num: allTaskList.length })}</div>{allSuccessTaskList.length > 0 && (<ResDownloadisMobile={!isPC}@@ -182,9 +182,9 @@ const TextGenerationResultPanel: FC<TextGenerationResultPanelProps> = ({{isCallBatchAPI && allFailedTaskList.length > 0 && (<div className="absolute bottom-6 left-1/2 z-10 flex -translate-x-1/2 items-center gap-2 rounded-xl border border-components-panel-border bg-components-panel-bg-blur p-3 shadow-lg backdrop-blur-xs"><span aria-hidden className="i-ri-error-warning-fill h-4 w-4 text-text-destructive" />- <div className="text-text-secondary system-sm-medium">{t('generation.batchFailed.info', { ns: 'share', num: allFailedTaskList.length })}</div>+ <div className="system-sm-medium text-text-secondary">{t('generation.batchFailed.info', { ns: 'share', num: allFailedTaskList.length })}</div><div className="h-3.5 w-px bg-divider-regular"></div>- <div onClick={handleRetryAllFailedTask} className="cursor-pointer text-text-accent system-sm-semibold-uppercase">{t('generation.batchFailed.retry', { ns: 'share' })}</div>+ <div onClick={handleRetryAllFailedTask} className="cursor-pointer system-sm-semibold-uppercase text-text-accent">{t('generation.batchFailed.retry', { ns: 'share' })}</div></div>)}</div>diff --git a/web/app/components/share/text-generation/text-generation-sidebar.tsx b/web/app/components/share/text-generation/text-generation-sidebar.tsxindex bf6f4b04a81..b711fafb679 100644--- a/web/app/components/share/text-generation/text-generation-sidebar.tsx+++ b/web/app/components/share/text-generation/text-generation-sidebar.tsx@@ -4,6 +4,7 @@ import type { PromptConfig, SavedMessage, TextToSpeechConfig } from '@/models/deimport type { SiteInfo } from '@/models/share'import type { VisionFile, VisionSettings } from '@/types/app'import type { SystemFeatures } from '@/types/feature'+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'import SavedItems from '@/app/components/app/text-generate/saved-items'import AppIcon from '@/app/components/base/app-icon'@@ -11,7 +12,6 @@ import Badge from '@/app/components/base/badge'import DifyLogo from '@/app/components/base/logo/dify-logo'import { appDefaultIconBackground } from '@/config'import { AccessMode } from '@/models/access-control'-import { cn } from '@/utils/classnames'import TabHeader from '../../base/tab-header'import MenuDropdown from './menu-dropdown'import RunBatch from './run-batch'@@ -87,11 +87,11 @@ const TextGenerationSidebar: FC<TextGenerationSidebarProps> = ({background={siteInfo.icon_background || appDefaultIconBackground}imageUrl={siteInfo.icon_url}/>- <div className="grow truncate text-text-secondary system-md-semibold">{siteInfo.title}</div>+ <div className="grow truncate system-md-semibold text-text-secondary">{siteInfo.title}</div><MenuDropdown hideLogout={isInstalledApp || accessMode === AccessMode.PUBLIC} data={siteInfo} /></div>{siteInfo.description && (- <div className="text-text-tertiary system-xs-regular">{siteInfo.description}</div>+ <div className="system-xs-regular text-text-tertiary">{siteInfo.description}</div>)}<TabHeaderitems={[@@ -162,7 +162,7 @@ const TextGenerationSidebar: FC<TextGenerationSidebarProps> = ({!isPC && resultExisted && 'rounded-b-2xl border-b-[0.5px] border-divider-regular',)}>- <div className="text-text-tertiary system-2xs-medium-uppercase">{t('chat.poweredBy', { ns: 'share' })}</div>+ <div className="system-2xs-medium-uppercase text-text-tertiary">{t('chat.poweredBy', { ns: 'share' })}</div>{systemFeatures.branding.enabled && systemFeatures.branding.workspace_logo? <img src={systemFeatures.branding.workspace_logo} alt="logo" className="block h-5 w-auto" />: customConfig?.replace_webapp_logodiff --git a/web/app/components/tools/edit-custom-collection-modal/config-credentials.tsx b/web/app/components/tools/edit-custom-collection-modal/config-credentials.tsxindex f1a52e5447c..533466387c3 100644--- a/web/app/components/tools/edit-custom-collection-modal/config-credentials.tsx+++ b/web/app/components/tools/edit-custom-collection-modal/config-credentials.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { Credential } from '@/app/components/tools/types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import Drawer from '@/app/components/base/drawer-plus'@@ -9,7 +10,6 @@ import Radio from '@/app/components/base/radio/ui'import Tooltip from '@/app/components/base/tooltip'import { Button } from '@/app/components/base/ui/button'import { AuthHeaderPrefix, AuthType } from '@/app/components/tools/types'-import { cn } from '@/utils/classnames'type Props = {positionCenter?: booleandiff --git a/web/app/components/tools/edit-custom-collection-modal/index.tsx b/web/app/components/tools/edit-custom-collection-modal/index.tsxindex 6a15010189d..189e93f73b2 100644--- a/web/app/components/tools/edit-custom-collection-modal/index.tsx+++ b/web/app/components/tools/edit-custom-collection-modal/index.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { Credential, CustomCollectionBackend, CustomParamSchema, Emoji } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import { RiSettings2Line } from '@remixicon/react'import { useDebounce, useGetState } from 'ahooks'import { produce } from 'immer'@@ -16,7 +17,6 @@ import { Button } from '@/app/components/base/ui/button'import { toast } from '@/app/components/base/ui/toast'import LabelSelector from '@/app/components/tools/labels/selector'import { parseParamsSchema } from '@/service/tools'-import { cn } from '@/utils/classnames'import { LinkExternal02 } from '../../base/icons/src/vender/line/general'import { AuthHeaderPrefix, AuthType } from '../types'import ConfigCredentials from './config-credentials'diff --git a/web/app/components/tools/labels/filter.tsx b/web/app/components/tools/labels/filter.tsxindex 63d183e3f66..6405673eecd 100644--- a/web/app/components/tools/labels/filter.tsx+++ b/web/app/components/tools/labels/filter.tsx@@ -1,5 +1,6 @@import type { FC } from 'react'import type { Label } from '@/app/components/tools/labels/constant'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine } from '@remixicon/react'import { useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -13,7 +14,6 @@ import {PopoverTrigger,} from '@/app/components/base/ui/popover'import { useTags } from '@/app/components/plugins/hooks'-import { cn } from '@/utils/classnames'type LabelFilterProps = {value: string[]@@ -53,7 +53,7 @@ const LabelFilter: FC<LabelFilterProps> = ({<div className="relative"><PopoverTriggerclassName={cn(- 'flex h-8 cursor-pointer select-none items-center gap-1 rounded-lg border-[0.5px] border-transparent bg-components-input-bg-normal px-2 text-left hover:bg-components-input-bg-hover',+ 'flex h-8 cursor-pointer items-center gap-1 rounded-lg border-[0.5px] border-transparent bg-components-input-bg-normal px-2 text-left select-none hover:bg-components-input-bg-hover',!!value.length && 'pr-6 shadow-xs',)}>@@ -65,7 +65,7 @@ const LabelFilter: FC<LabelFilterProps> = ({{!!value.length && currentLabel?.label}</div>{value.length > 1 && (- <div className="shrink-0 text-xs font-medium leading-[18px] text-text-tertiary">{`+${value.length - 1}`}</div>+ <div className="shrink-0 text-xs leading-[18px] font-medium text-text-tertiary">{`+${value.length - 1}`}</div>)}{!value.length && (<div className="shrink-0 p-px">@@ -77,7 +77,7 @@ const LabelFilter: FC<LabelFilterProps> = ({<buttontype="button"aria-label={t('operation.clear', { ns: 'common' })}- className="group/clear absolute right-2 top-1/2 -translate-y-1/2 p-px"+ className="group/clear absolute top-1/2 right-2 -translate-y-1/2 p-px"data-testid="label-filter-clear-button"onClick={() => onChange([])}>@@ -104,7 +104,7 @@ const LabelFilter: FC<LabelFilterProps> = ({<buttonkey={label.name}type="button"- className="flex w-full select-none items-center gap-2 rounded-lg py-[6px] pl-3 pr-2 text-left hover:bg-state-base-hover"+ className="flex w-full items-center gap-2 rounded-lg py-[6px] pr-2 pl-3 text-left select-none hover:bg-state-base-hover"onClick={() => selectLabel(label)}><div title={label.label} className="grow truncate text-sm leading-5 text-text-secondary">{label.label}</div>diff --git a/web/app/components/tools/labels/selector.tsx b/web/app/components/tools/labels/selector.tsxindex ee3c9b1b4fe..830b4d7aafd 100644--- a/web/app/components/tools/labels/selector.tsx+++ b/web/app/components/tools/labels/selector.tsx@@ -1,5 +1,6 @@import type { FC } from 'react'import type { Label } from '@/app/components/tools/labels/constant'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine } from '@remixicon/react'import { useDebounceFn } from 'ahooks'import { noop } from 'es-toolkit/function'@@ -14,7 +15,6 @@ import {PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'import { useTags } from '@/app/components/plugins/hooks'-import { cn } from '@/utils/classnames'type LabelSelectorProps = {value: string[]@@ -81,7 +81,7 @@ const LabelSelector: FC<LabelSelectorProps> = ({</div></PortalToFollowElemTrigger><PortalToFollowElemContent className="z-1040">- <div className="relative w-[591px] rounded-lg border-[0.5px] border-components-panel-border bg-components-panel-bg-blur shadow-lg backdrop-blur-[5px]">+ <div className="relative w-[591px] rounded-lg border-[0.5px] border-components-panel-border bg-components-panel-bg-blur shadow-lg backdrop-blur-[5px]"><div className="border-b-[0.5px] border-divider-regular p-2"><InputshowLeftIcon@@ -95,7 +95,7 @@ const LabelSelector: FC<LabelSelectorProps> = ({{filteredLabelList.map(label => (<divkey={label.name}- className="flex cursor-pointer items-center gap-2 rounded-lg py-[6px] pl-3 pr-2 hover:bg-components-panel-on-panel-item-bg-hover"+ className="flex cursor-pointer items-center gap-2 rounded-lg py-[6px] pr-2 pl-3 hover:bg-components-panel-on-panel-item-bg-hover"onClick={() => selectLabel(label)}><Checkboxdiff --git a/web/app/components/tools/mcp/detail/content.tsx b/web/app/components/tools/mcp/detail/content.tsxindex 5c26bdcb7d3..d9ea302cbba 100644--- a/web/app/components/tools/mcp/detail/content.tsx+++ b/web/app/components/tools/mcp/detail/content.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { ToolWithProvider } from '../../../workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiCloseLine,RiLoader2Line,@@ -35,7 +36,6 @@ import {useUpdateMCP,useUpdateMCPTools,} from '@/service/use-tools'-import { cn } from '@/utils/classnames'import MCPModal from '../modal'import ListLoading from './list-loading'import OperationDropdown from './operation-dropdown'diff --git a/web/app/components/tools/mcp/detail/list-loading.tsx b/web/app/components/tools/mcp/detail/list-loading.tsxindex e19901b46e3..841846326d9 100644--- a/web/app/components/tools/mcp/detail/list-loading.tsx+++ b/web/app/components/tools/mcp/detail/list-loading.tsx@@ -1,6 +1,6 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'const ListLoading = () => {return (diff --git a/web/app/components/tools/mcp/detail/operation-dropdown.tsx b/web/app/components/tools/mcp/detail/operation-dropdown.tsxindex 0912c3b5a7f..4f5468aebce 100644--- a/web/app/components/tools/mcp/detail/operation-dropdown.tsx+++ b/web/app/components/tools/mcp/detail/operation-dropdown.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {RiDeleteBinLine,RiEditLine,@@ -14,7 +15,6 @@ import {PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'type Props = {inCard?: boolean@@ -69,7 +69,7 @@ const OperationDropdown: FC<Props> = ({}}><RiEditLine className="h-4 w-4 text-text-tertiary" />- <div className="system-md-regular ml-2 text-text-secondary">{t('mcp.operation.edit', { ns: 'tools' })}</div>+ <div className="ml-2 system-md-regular text-text-secondary">{t('mcp.operation.edit', { ns: 'tools' })}</div></div><divclassName="group flex cursor-pointer items-center rounded-lg px-3 py-1.5 hover:bg-state-destructive-hover"@@ -79,7 +79,7 @@ const OperationDropdown: FC<Props> = ({}}><RiDeleteBinLine className="h-4 w-4 text-text-tertiary group-hover:text-text-destructive-secondary" />- <div className="system-md-regular ml-2 text-text-secondary group-hover:text-text-destructive">{t('mcp.operation.remove', { ns: 'tools' })}</div>+ <div className="ml-2 system-md-regular text-text-secondary group-hover:text-text-destructive">{t('mcp.operation.remove', { ns: 'tools' })}</div></div></div></PortalToFollowElemContent>diff --git a/web/app/components/tools/mcp/detail/provider-detail.tsx b/web/app/components/tools/mcp/detail/provider-detail.tsxindex 02a3c519d97..7b2d351637d 100644--- a/web/app/components/tools/mcp/detail/provider-detail.tsx+++ b/web/app/components/tools/mcp/detail/provider-detail.tsx@@ -1,9 +1,9 @@'use client'import type { FC } from 'react'import type { ToolWithProvider } from '../../../workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import Drawer from '@/app/components/base/drawer'-import { cn } from '@/utils/classnames'import MCPDetailContent from './content'type Props = {@@ -38,7 +38,7 @@ const MCPDetailPanel: FC<Props> = ({footer={null}mask={false}positionCenter={false}- panelClassName={cn('mb-2 mr-2 mt-[64px] w-[420px]! max-w-[420px]! justify-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg! p-0! shadow-xl')}+ panelClassName={cn('mt-[64px] mr-2 mb-2 w-[420px]! max-w-[420px]! justify-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg! p-0! shadow-xl')}>{detail && (<MCPDetailContentdiff --git a/web/app/components/tools/mcp/detail/tool-item.tsx b/web/app/components/tools/mcp/detail/tool-item.tsxindex 299bcec023e..4101fa2078f 100644--- a/web/app/components/tools/mcp/detail/tool-item.tsx+++ b/web/app/components/tools/mcp/detail/tool-item.tsx@@ -1,11 +1,11 @@'use client'import type { Tool } from '@/app/components/tools/types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import Tooltip from '@/app/components/base/tooltip'import { useLocale } from '@/context/i18n'import { getLanguage } from '@/i18n-config/language'-import { cn } from '@/utils/classnames'type Props = {tool: Tool@@ -26,7 +26,7 @@ const MCPToolItem = ({return (<div className="mt-2">- <div className="title-xs-semi-bold mb-1 text-text-primary">+ <div className="mb-1 title-xs-semi-bold text-text-primary">{t('mcp.toolItem.parameters', { ns: 'tools' })}:</div>@@ -36,7 +36,7 @@ const MCPToolItem = ({return (<li key={parameter.name} className="pl-2"><span className="system-xs-regular font-bold text-text-secondary">{parameter.name}</span>- <span className="system-xs-regular mr-1 text-text-tertiary">+ <span className="mr-1 system-xs-regular text-text-tertiary">({parameter.type}):@@ -57,7 +57,7 @@ const MCPToolItem = ({popupClassName="p-0! px-4! py-3.5! w-[360px]! border-[0.5px]! border-components-panel-border! rounded-xl! shadow-lg!"popupContent={(<div>- <div className="title-xs-semi-bold mb-1 text-text-primary">{tool.label[language]}</div>+ <div className="mb-1 title-xs-semi-bold text-text-primary">{tool.label[language]}</div><div className="body-xs-regular text-text-secondary">{tool.description[language]}</div>{renderParameters()}</div>@@ -66,8 +66,8 @@ const MCPToolItem = ({<divclassName={cn('bg-components-panel-item-bg cursor-pointer rounded-xl border-[0.5px] border-components-panel-border-subtle px-4 py-3 shadow-xs hover:bg-components-panel-on-panel-item-bg-hover')}>- <div className="system-md-semibold pb-0.5 text-text-secondary">{tool.label[language]}</div>- <div className="system-xs-regular line-clamp-2 text-text-tertiary" title={tool.description[language]}>{tool.description[language]}</div>+ <div className="pb-0.5 system-md-semibold text-text-secondary">{tool.label[language]}</div>+ <div className="line-clamp-2 system-xs-regular text-text-tertiary" title={tool.description[language]}>{tool.description[language]}</div></div></Tooltip>)diff --git a/web/app/components/tools/mcp/headers-input.tsx b/web/app/components/tools/mcp/headers-input.tsxindex 382115efe43..bfaf6bd5d2b 100644--- a/web/app/components/tools/mcp/headers-input.tsx+++ b/web/app/components/tools/mcp/headers-input.tsx@@ -1,4 +1,5 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import { RiAddLine, RiDeleteBinLine } from '@remixicon/react'import * as React from 'react'import { useTranslation } from 'react-i18next'@@ -6,7 +7,6 @@ import { v4 as uuid } from 'uuid'import ActionButton from '@/app/components/base/action-button'import Input from '@/app/components/base/input'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'export type HeaderItem = {id: stringdiff --git a/web/app/components/tools/mcp/index.tsx b/web/app/components/tools/mcp/index.tsxindex 1fe3d9d525c..f4b4b44c88b 100644--- a/web/app/components/tools/mcp/index.tsx+++ b/web/app/components/tools/mcp/index.tsx@@ -1,10 +1,10 @@'use client'import type { ToolWithProvider } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { useMemo, useState } from 'react'import {useAllToolProviders,} from '@/service/use-tools'-import { cn } from '@/utils/classnames'import NewMCPCard from './create-card'import MCPDetailPanel from './detail/provider-detail'import MCPCard from './provider-card'@@ -67,7 +67,7 @@ const MCPList = ({<><divclassName={cn(- 'relative grid shrink-0 grid-cols-1 content-start gap-4 px-12 pb-4 pt-2 sm:grid-cols-1 md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5 2k:grid-cols-6',+ 'relative grid shrink-0 grid-cols-1 content-start gap-4 px-12 pt-2 pb-4 2k:grid-cols-6 sm:grid-cols-1 md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5',!list.length && 'h-[calc(100vh-136px)] overflow-hidden',)}>diff --git a/web/app/components/tools/mcp/mcp-server-modal.tsx b/web/app/components/tools/mcp/mcp-server-modal.tsxindex 4c8b45d1c99..383f6ec2b8d 100644--- a/web/app/components/tools/mcp/mcp-server-modal.tsx+++ b/web/app/components/tools/mcp/mcp-server-modal.tsx@@ -2,6 +2,7 @@import type {MCPServerDetail,} from '@/app/components/tools/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine } from '@remixicon/react'import * as React from 'react'import { useTranslation } from 'react-i18next'@@ -15,7 +16,6 @@ import {useInvalidateMCPServerDetail,useUpdateMCPServer,} from '@/service/use-tools'-import { cn } from '@/utils/classnames'type ModalProps = {appID: stringdiff --git a/web/app/components/tools/mcp/mcp-service-card.tsx b/web/app/components/tools/mcp/mcp-service-card.tsxindex 3de157e4ac5..51b84f94610 100644--- a/web/app/components/tools/mcp/mcp-service-card.tsx+++ b/web/app/components/tools/mcp/mcp-service-card.tsx@@ -3,6 +3,7 @@ import type { TFunction } from 'i18next'import type { FC, ReactNode } from 'react'import type { AppDetailResponse } from '@/models/app'import type { AppSSO } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import { RiEditLine, RiLoopLeftLine } from '@remixicon/react'import { useState } from 'react'import { useTranslation } from 'react-i18next'@@ -24,7 +25,6 @@ import { Button } from '@/app/components/base/ui/button'import Indicator from '@/app/components/header/indicator'import MCPServerModal from '@/app/components/tools/mcp/mcp-server-modal'import { useDocLink } from '@/context/i18n'-import { cn } from '@/utils/classnames'import { useMCPServiceCardState } from './hooks/use-mcp-service-card'// Sub-componentsdiff --git a/web/app/components/tools/mcp/modal.tsx b/web/app/components/tools/mcp/modal.tsxindex 64298178bc2..8d8d8755d3a 100644--- a/web/app/components/tools/mcp/modal.tsx+++ b/web/app/components/tools/mcp/modal.tsx@@ -3,6 +3,7 @@ import type { FC } from 'react'import type { AppIconSelection } from '@/app/components/base/app-icon-picker'import type { ToolWithProvider } from '@/app/components/workflow/types'import type { AppIconType } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine, RiEditLine } from '@remixicon/react'import { useHover } from 'ahooks'import { noop } from 'es-toolkit/function'@@ -16,7 +17,6 @@ import TabSlider from '@/app/components/base/tab-slider'import { Button } from '@/app/components/base/ui/button'import { toast } from '@/app/components/base/ui/toast'import { MCPAuthMethod } from '@/app/components/tools/types'-import { cn } from '@/utils/classnames'import { shouldUseMcpIconForAppIcon } from '@/utils/mcp'import { isValidServerID, isValidUrl, useMCPModalForm } from './hooks/use-mcp-modal-form'import AuthenticationSection from './sections/authentication-section'diff --git a/web/app/components/tools/mcp/provider-card.tsx b/web/app/components/tools/mcp/provider-card.tsxindex 35b7e9f8491..ea0a7f81720 100644--- a/web/app/components/tools/mcp/provider-card.tsx+++ b/web/app/components/tools/mcp/provider-card.tsx@@ -1,5 +1,6 @@'use client'import type { ToolWithProvider } from '../../workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiHammerFill } from '@remixicon/react'import { useBoolean } from 'ahooks'import { useCallback, useState } from 'react'@@ -17,7 +18,6 @@ import Icon from '@/app/components/plugins/card/base/card-icon'import { useAppContext } from '@/context/app-context'import { useFormatTimeFromNow } from '@/hooks/use-format-time-from-now'import { useDeleteMCP, useUpdateMCP } from '@/service/use-tools'-import { cn } from '@/utils/classnames'import OperationDropdown from './detail/operation-dropdown'import MCPModal from './modal'diff --git a/web/app/components/tools/mcp/sections/authentication-section.tsx b/web/app/components/tools/mcp/sections/authentication-section.tsxindex 439793eb023..d2cb28b0032 100644--- a/web/app/components/tools/mcp/sections/authentication-section.tsx+++ b/web/app/components/tools/mcp/sections/authentication-section.tsx@@ -1,11 +1,11 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'import AlertTriangle from '@/app/components/base/icons/src/vender/solid/alertsAndFeedback/AlertTriangle'import Input from '@/app/components/base/input'import Switch from '@/app/components/base/switch'import { API_PREFIX } from '@/config'-import { cn } from '@/utils/classnames'type AuthenticationSectionProps = {isDynamicRegistration: boolean@@ -42,7 +42,7 @@ const AuthenticationSection: FC<AuthenticationSectionProps> = ({<AlertTriangle className="mt-0.5 h-4 w-4 shrink-0 text-text-warning" /><div className="system-xs-regular text-text-secondary"><div className="mb-1">{t('mcp.modal.redirectUrlWarning', { ns: 'tools' })}</div>- <code className="system-xs-medium block break-all rounded-sm bg-state-warning-active px-2 py-1 text-text-secondary">+ <code className="block rounded-sm bg-state-warning-active px-2 py-1 system-xs-medium break-all text-text-secondary">{`${API_PREFIX}/mcp/oauth/callback`}</code></div>diff --git a/web/app/components/tools/provider-list.tsx b/web/app/components/tools/provider-list.tsxindex 3501726cd08..7d400b7cf70 100644--- a/web/app/components/tools/provider-list.tsx+++ b/web/app/components/tools/provider-list.tsx@@ -1,5 +1,6 @@'use client'import type { Collection } from './types'+import { cn } from '@langgenius/dify-ui/cn'import { parseAsStringLiteral, useQueryState } from 'nuqs'import { useCallback, useEffect, useMemo, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -17,7 +18,6 @@ import WorkflowToolEmpty from '@/app/components/tools/provider/empty'import { useGlobalPublicStore } from '@/context/global-public-context'import { useCheckInstalled, useInvalidateInstalledPluginList } from '@/service/use-plugins'import { useAllToolProviders } from '@/service/use-tools'-import { cn } from '@/utils/classnames'import Marketplace from './marketplace'import { useMarketplace } from './marketplace/hooks'import MCPList from './mcp'@@ -126,7 +126,7 @@ const ProviderList = () => {className="relative flex grow flex-col overflow-y-auto bg-background-body"><div className={cn(- 'sticky top-0 z-10 flex flex-wrap items-center justify-between gap-y-2 bg-background-body px-12 pb-2 pt-4 leading-[56px]',+ 'sticky top-0 z-10 flex flex-wrap items-center justify-between gap-y-2 bg-background-body px-12 pt-4 pb-2 leading-[56px]',currentProviderId && 'pr-6',)}>@@ -157,7 +157,7 @@ const ProviderList = () => {</div>{activeTab !== 'mcp' && (<div className={cn(- 'relative grid shrink-0 grid-cols-1 content-start gap-4 px-12 pb-4 pt-2 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4',+ 'relative grid shrink-0 grid-cols-1 content-start gap-4 px-12 pt-2 pb-4 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4',!filteredCollectionList.length && activeTab === 'workflow' && 'grow',)}>@@ -187,7 +187,7 @@ const ProviderList = () => {/></div>))}- {!filteredCollectionList.length && activeTab === 'workflow' && <div className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"><WorkflowToolEmpty type={getToolType(activeTab)} /></div>}+ {!filteredCollectionList.length && activeTab === 'workflow' && <div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"><WorkflowToolEmpty type={getToolType(activeTab)} /></div>}</div>)}{!filteredCollectionList.length && activeTab === 'builtin' && (diff --git a/web/app/components/tools/provider/detail.tsx b/web/app/components/tools/provider/detail.tsxindex 5d191468c5a..7f24a6ec526 100644--- a/web/app/components/tools/provider/detail.tsx+++ b/web/app/components/tools/provider/detail.tsx@@ -1,6 +1,7 @@'use client'import type { Collection, CustomCollectionBackend, Tool, WorkflowToolProviderRequest, WorkflowToolProviderResponse } from '../types'import type { WorkflowToolModalPayload } from '@/app/components/tools/workflow-tool'+import { cn } from '@langgenius/dify-ui/cn'import {RiCloseLine,} from '@remixicon/react'@@ -34,8 +35,8 @@ import WorkflowToolModal from '@/app/components/tools/workflow-tool'import { useAppContext } from '@/context/app-context'import { useLocale } from '@/context/i18n'import { useModalContext } from '@/context/modal-context'-import { useProviderContext } from '@/context/provider-context'+import { useProviderContext } from '@/context/provider-context'import { getLanguage } from '@/i18n-config/language'import {deleteWorkflowTool,@@ -51,7 +52,6 @@ import {updateCustomCollection,} from '@/service/tools'import { useInvalidateAllWorkflowTools } from '@/service/use-tools'-import { cn } from '@/utils/classnames'import { basePath } from '@/utils/var'import { AuthHeaderPrefix, AuthType, CollectionType } from '../types'import ToolItem from './tool-item'diff --git a/web/app/components/tools/provider/empty.tsx b/web/app/components/tools/provider/empty.tsxindex 725b171debf..ca64cf0da06 100644--- a/web/app/components/tools/provider/empty.tsx+++ b/web/app/components/tools/provider/empty.tsx@@ -1,9 +1,9 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowRightUpLine } from '@remixicon/react'import { useTranslation } from 'react-i18next'import useTheme from '@/hooks/use-theme'import Link from '@/next/link'-import { cn } from '@/utils/classnames'import { NoToolPlaceholder } from '../../base/icons/src/vender/other'import { ToolTypeEnum } from '../../workflow/block-selector/types'@@ -38,7 +38,7 @@ const Empty = ({return (<div className="flex flex-col items-center justify-center"><NoToolPlaceholder className={theme === 'dark' ? 'invert' : ''} />- <div className="mb-1 mt-2 text-[13px] font-medium leading-[18px] text-text-primary">+ <div className="mt-2 mb-1 text-[13px] leading-[18px] font-medium text-text-primary">{(hasTitle && renderType) ? t(`addToolModal.${renderType}.title`, { ns: 'tools' }) : 'No tools available'}</div>{!!(!isAgent && hasTitle && renderType) && (diff --git a/web/app/components/tools/provider/tool-item.tsx b/web/app/components/tools/provider/tool-item.tsxindex 6b626dc4fdc..83ffd465db1 100644--- a/web/app/components/tools/provider/tool-item.tsx+++ b/web/app/components/tools/provider/tool-item.tsx@@ -1,11 +1,11 @@'use client'import type { Collection, Tool } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useState } from 'react'import SettingBuiltInTool from '@/app/components/app/configuration/config/agent/agent-tools/setting-built-in-tool'import { useLocale } from '@/context/i18n'import { getLanguage } from '@/i18n-config/language'-import { cn } from '@/utils/classnames'type Props = {disabled?: boolean@@ -32,8 +32,8 @@ const ToolItem = ({className={cn('bg-components-panel-item-bg cursor-pointer rounded-xl border-[0.5px] border-components-panel-border-subtle px-4 py-3 shadow-xs hover:bg-components-panel-on-panel-item-bg-hover', disabled && 'cursor-not-allowed! opacity-50')}onClick={() => !disabled && setShowDetail(true)}>- <div className="system-md-semibold pb-0.5 text-text-secondary">{tool.label[language]}</div>- <div className="system-xs-regular line-clamp-2 text-text-tertiary" title={tool.description[language]}>{tool.description[language]}</div>+ <div className="pb-0.5 system-md-semibold text-text-secondary">{tool.label[language]}</div>+ <div className="line-clamp-2 system-xs-regular text-text-tertiary" title={tool.description[language]}>{tool.description[language]}</div></div>{showDetail && (<SettingBuiltInTooldiff --git a/web/app/components/tools/setting/build-in/config-credentials.tsx b/web/app/components/tools/setting/build-in/config-credentials.tsxindex 0969153383c..258de72492d 100644--- a/web/app/components/tools/setting/build-in/config-credentials.tsx+++ b/web/app/components/tools/setting/build-in/config-credentials.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { Collection } from '../../types'+import { cn } from '@langgenius/dify-ui/cn'import { noop } from 'es-toolkit/function'import * as React from 'react'import { useEffect, useState } from 'react'@@ -13,7 +14,6 @@ import { toast } from '@/app/components/base/ui/toast'import { useLanguage } from '@/app/components/header/account-setting/model-provider-page/hooks'import Form from '@/app/components/header/account-setting/model-provider-page/model-modal/Form'import { fetchBuiltInToolCredential, fetchBuiltInToolCredentialSchema } from '@/service/tools'-import { cn } from '@/utils/classnames'import { addDefaultValue, toolCredentialToFormSchemas } from '../../utils/to-form-schema'type Props = {diff --git a/web/app/components/tools/workflow-tool/configure-button.tsx b/web/app/components/tools/workflow-tool/configure-button.tsxindex 557f442d79d..f1a48cc75b8 100644--- a/web/app/components/tools/workflow-tool/configure-button.tsx+++ b/web/app/components/tools/workflow-tool/configure-button.tsx@@ -2,13 +2,13 @@import type { Emoji } from '@/app/components/tools/types'import type { InputVar, Variable } from '@/app/components/workflow/types'import type { PublishWorkflowParams } from '@/types/workflow'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowRightUpLine, RiHammerLine } from '@remixicon/react'import { useTranslation } from 'react-i18next'import Loading from '@/app/components/base/loading'import { Button } from '@/app/components/base/ui/button'import Indicator from '@/app/components/header/indicator'import WorkflowToolModal from '@/app/components/tools/workflow-tool'-import { cn } from '@/utils/classnames'import Divider from '../../base/divider'import { useConfigureButton } from './hooks/use-configure-button'diff --git a/web/app/components/tools/workflow-tool/confirm-modal/index.tsx b/web/app/components/tools/workflow-tool/confirm-modal/index.tsxindex ff78cc017d7..6eeaa86dff6 100644--- a/web/app/components/tools/workflow-tool/confirm-modal/index.tsx+++ b/web/app/components/tools/workflow-tool/confirm-modal/index.tsx@@ -1,12 +1,12 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine } from '@remixicon/react'import { noop } from 'es-toolkit/function'import { useTranslation } from 'react-i18next'import { AlertTriangle } from '@/app/components/base/icons/src/vender/solid/alertsAndFeedback'import Modal from '@/app/components/base/modal'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'type ConfirmModalProps = {show: booleandiff --git a/web/app/components/tools/workflow-tool/index.tsx b/web/app/components/tools/workflow-tool/index.tsxindex aa99d2aa27d..c9f19891397 100644--- a/web/app/components/tools/workflow-tool/index.tsx+++ b/web/app/components/tools/workflow-tool/index.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { Emoji, WorkflowToolProviderOutputParameter, WorkflowToolProviderOutputSchema, WorkflowToolProviderParameter, WorkflowToolProviderRequest } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import { RiErrorWarningLine } from '@remixicon/react'import { produce } from 'immer'import * as React from 'react'@@ -17,7 +18,6 @@ import { toast } from '@/app/components/base/ui/toast'import LabelSelector from '@/app/components/tools/labels/selector'import ConfirmModal from '@/app/components/tools/workflow-tool/confirm-modal'import MethodSelector from '@/app/components/tools/workflow-tool/method-selector'-import { cn } from '@/utils/classnames'import {buildWorkflowToolRequestPayload,getReservedWorkflowOutputParameters,diff --git a/web/app/components/tools/workflow-tool/method-selector.tsx b/web/app/components/tools/workflow-tool/method-selector.tsxindex 6bfe301079b..a4979fb01fc 100644--- a/web/app/components/tools/workflow-tool/method-selector.tsx+++ b/web/app/components/tools/workflow-tool/method-selector.tsx@@ -1,4 +1,5 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine } from '@remixicon/react'import { useState } from 'react'import { useTranslation } from 'react-i18next'@@ -8,7 +9,6 @@ import {PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'type MethodSelectorProps = {value?: string@@ -47,23 +47,23 @@ const MethodSelector: FC<MethodSelectorProps> = ({</div></PortalToFollowElemTrigger><PortalToFollowElemContent className="z-1040">- <div className="relative w-[320px] rounded-lg border-[0.5px] border-components-panel-border bg-components-panel-bg-blur shadow-lg backdrop-blur-xs">+ <div className="relative w-[320px] rounded-lg border-[0.5px] border-components-panel-border bg-components-panel-bg-blur shadow-lg backdrop-blur-xs"><div className="p-1">- <div className="cursor-pointer rounded-lg py-2.5 pl-3 pr-2 hover:bg-components-panel-on-panel-item-bg-hover" onClick={() => onChange('llm')}>+ <div className="cursor-pointer rounded-lg py-2.5 pr-2 pl-3 hover:bg-components-panel-on-panel-item-bg-hover" onClick={() => onChange('llm')}><div className="item-center flex gap-1"><div className="h-4 w-4 shrink-0">{value === 'llm' && <Check className="h-4 w-4 shrink-0 text-text-accent" />}</div>- <div className="text-[13px] font-medium leading-[18px] text-text-secondary">{t('createTool.toolInput.methodParameter', { ns: 'tools' })}</div>+ <div className="text-[13px] leading-[18px] font-medium text-text-secondary">{t('createTool.toolInput.methodParameter', { ns: 'tools' })}</div></div><div className="pl-5 text-[13px] leading-[18px] text-text-tertiary">{t('createTool.toolInput.methodParameterTip', { ns: 'tools' })}</div></div>- <div className="cursor-pointer rounded-lg py-2.5 pl-3 pr-2 hover:bg-components-panel-on-panel-item-bg-hover" onClick={() => onChange('form')}>+ <div className="cursor-pointer rounded-lg py-2.5 pr-2 pl-3 hover:bg-components-panel-on-panel-item-bg-hover" onClick={() => onChange('form')}><div className="item-center flex gap-1"><div className="h-4 w-4 shrink-0">{value === 'form' && <Check className="h-4 w-4 shrink-0 text-text-accent" />}</div>- <div className="text-[13px] font-medium leading-[18px] text-text-secondary">{t('createTool.toolInput.methodSetting', { ns: 'tools' })}</div>+ <div className="text-[13px] leading-[18px] font-medium text-text-secondary">{t('createTool.toolInput.methodSetting', { ns: 'tools' })}</div></div><div className="pl-5 text-[13px] leading-[18px] text-text-tertiary">{t('createTool.toolInput.methodSettingTip', { ns: 'tools' })}</div></div>diff --git a/web/app/components/workflow-app/components/workflow-header/features-trigger.tsx b/web/app/components/workflow-app/components/workflow-header/features-trigger.tsxindex 7842e01ef2d..5ce30d07017 100644--- a/web/app/components/workflow-app/components/workflow-header/features-trigger.tsx+++ b/web/app/components/workflow-app/components/workflow-header/features-trigger.tsx@@ -5,6 +5,7 @@ import type {Node,} from '@/app/components/workflow/types'import type { PublishWorkflowParams } from '@/types/workflow'+import { cn } from '@langgenius/dify-ui/cn'import { RiApps2AddLine } from '@remixicon/react'import {memo,@@ -42,7 +43,6 @@ import useTheme from '@/hooks/use-theme'import { fetchAppDetail } from '@/service/apps'import { useInvalidateAppTriggers } from '@/service/use-tools'import { useInvalidateAppWorkflow, usePublishWorkflow, useResetWorkflowVersionHistory } from '@/service/use-workflow'-import { cn } from '@/utils/classnames'const FeaturesTrigger = () => {const { t } = useTranslation()diff --git a/web/app/components/workflow-app/components/workflow-onboarding-modal/start-node-selection-panel.tsx b/web/app/components/workflow-app/components/workflow-onboarding-modal/start-node-selection-panel.tsxindex 883212cd2d2..b4a1cd135b4 100644--- a/web/app/components/workflow-app/components/workflow-onboarding-modal/start-node-selection-panel.tsx+++ b/web/app/components/workflow-app/components/workflow-onboarding-modal/start-node-selection-panel.tsx@@ -30,7 +30,7 @@ const StartNodeSelectionPanel: FC<StartNodeSelectionPanelProps> = ({<div className="grid grid-cols-2 gap-4"><StartNodeOptionicon={(- <div className="flex h-9 w-9 items-center justify-center radius-lg border-[0.5px] border-transparent bg-util-colors-blue-brand-blue-brand-500 p-2">+ <div className="flex h-9 w-9 items-center justify-center rounded-[10px] border-[0.5px] border-transparent bg-util-colors-blue-brand-blue-brand-500 p-2"><Home className="h-5 w-5 text-white" /></div>)}@@ -57,7 +57,7 @@ const StartNodeSelectionPanel: FC<StartNodeSelectionPanelProps> = ({trigger={() => (<StartNodeOptionicon={(- <div className="flex h-9 w-9 items-center justify-center radius-lg border-[0.5px] border-transparent bg-util-colors-blue-brand-blue-brand-500 p-2">+ <div className="flex h-9 w-9 items-center justify-center rounded-[10px] border-[0.5px] border-transparent bg-util-colors-blue-brand-blue-brand-500 p-2"><TriggerAll className="h-5 w-5 text-white" /></div>)}diff --git a/web/app/components/workflow/block-icon.tsx b/web/app/components/workflow/block-icon.tsxindex 92227fa66ec..86cc42a392b 100644--- a/web/app/components/workflow/block-icon.tsx+++ b/web/app/components/workflow/block-icon.tsx@@ -1,4 +1,5 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'import AppIcon from '@/app/components/base/app-icon'import {@@ -28,7 +29,6 @@ import {WebhookLine,} from '@/app/components/base/icons/src/vender/workflow'import { API_PREFIX } from '@/config'-import { cn } from '@/utils/classnames'import { BlockEnum } from './types'type BlockIconProps = {diff --git a/web/app/components/workflow/block-selector/all-start-blocks.tsx b/web/app/components/workflow/block-selector/all-start-blocks.tsxindex c9848fc7c58..12f37122d94 100644--- a/web/app/components/workflow/block-selector/all-start-blocks.tsx+++ b/web/app/components/workflow/block-selector/all-start-blocks.tsx@@ -5,6 +5,7 @@ import type {import type { BlockEnum, OnSelectBlock } from '../types'import type { ListRef } from './market-place-plugin/list'import type { TriggerDefaultValue, TriggerWithProvider } from './types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowRightUpLine } from '@remixicon/react'import {useCallback,@@ -21,7 +22,6 @@ import { useGlobalPublicStore } from '@/context/global-public-context'import Link from '@/next/link'import { useFeaturedTriggersRecommendations } from '@/service/use-plugins'import { useAllTriggerPlugins, useInvalidateAllTriggerPlugins } from '@/service/use-triggers'-import { cn } from '@/utils/classnames'import { getMarketplaceUrl } from '@/utils/var'import { useMarketplacePlugins } from '../../plugins/marketplace/hooks'import { PluginCategoryEnum } from '../../plugins/types'diff --git a/web/app/components/workflow/block-selector/all-tools.tsx b/web/app/components/workflow/block-selector/all-tools.tsxindex 7c06e7d968e..303e98071f1 100644--- a/web/app/components/workflow/block-selector/all-tools.tsx+++ b/web/app/components/workflow/block-selector/all-tools.tsx@@ -11,6 +11,7 @@ import type {import type { ToolDefaultValue, ToolValue } from './types'import type { ListProps, ListRef } from '@/app/components/workflow/block-selector/market-place-plugin/list'import type { OnSelectBlock } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowRightUpLine } from '@remixicon/react'import { useCallback, useEffect, useMemo, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -21,7 +22,6 @@ import PluginList from '@/app/components/workflow/block-selector/market-place-plimport { useGlobalPublicStore } from '@/context/global-public-context'import { useGetLanguage } from '@/context/i18n'import Link from '@/next/link'-import { cn } from '@/utils/classnames'import { getMarketplaceUrl } from '@/utils/var'import { useMarketplacePlugins } from '../../plugins/marketplace/hooks'import { PluginCategoryEnum } from '../../plugins/types'diff --git a/web/app/components/workflow/block-selector/data-sources.tsx b/web/app/components/workflow/block-selector/data-sources.tsxindex 5204f4e86cf..71003ed5f3a 100644--- a/web/app/components/workflow/block-selector/data-sources.tsx+++ b/web/app/components/workflow/block-selector/data-sources.tsx@@ -4,6 +4,7 @@ import type {} from '../types'import type { DataSourceDefaultValue, ToolDefaultValue } from './types'import type { ListRef } from '@/app/components/workflow/block-selector/market-place-plugin/list'+import { cn } from '@langgenius/dify-ui/cn'import {useCallback,useEffect,@@ -13,7 +14,6 @@ import {import PluginList from '@/app/components/workflow/block-selector/market-place-plugin/list'import { useGlobalPublicStore } from '@/context/global-public-context'import { useGetLanguage } from '@/context/i18n'-import { cn } from '@/utils/classnames'import { useMarketplacePlugins } from '../../plugins/marketplace/hooks'import { PluginCategoryEnum } from '../../plugins/types'import { BlockEnum } from '../types'@@ -95,10 +95,10 @@ const DataSources = ({}, [searchText, enable_marketplace])return (- <div className={cn('w-[400px] min-w-0 max-w-full', className)}>+ <div className={cn('w-[400px] max-w-full min-w-0', className)}><divref={wrapElemRef}- className="max-h-[464px] overflow-y-auto overflow-x-hidden"+ className="max-h-[464px] overflow-x-hidden overflow-y-auto"onScroll={pluginRef.current?.handleScroll}><Toolsdiff --git a/web/app/components/workflow/block-selector/index-bar.tsx b/web/app/components/workflow/block-selector/index-bar.tsxindex 6b7a1af936c..ec03223238d 100644--- a/web/app/components/workflow/block-selector/index-bar.tsx+++ b/web/app/components/workflow/block-selector/index-bar.tsx@@ -1,7 +1,7 @@import type { FC, RefObject } from 'react'import type { ToolWithProvider } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import { pinyin } from 'pinyin-pro'-import { cn } from '@/utils/classnames'import { CollectionType } from '../../tools/types'export const CUSTOM_GROUP_NAME = '@@@custom@@@'@@ -87,7 +87,7 @@ const IndexBar: FC<IndexBarProps> = ({ letters, itemRefs, className }) => {}return (<div className={cn('index-bar sticky top-[20px] flex h-full w-6 flex-col items-center justify-center text-xs font-medium text-text-quaternary', className)}>- <div className={cn('absolute left-0 top-0 h-full w-px bg-[linear-gradient(270deg,rgba(255,255,255,0)_0%,rgba(16,24,40,0.08)_30%,rgba(16,24,40,0.08)_50%,rgba(16,24,40,0.08)_70.5%,rgba(255,255,255,0)_100%)]')}></div>+ <div className={cn('absolute top-0 left-0 h-full w-px bg-[linear-gradient(270deg,rgba(255,255,255,0)_0%,rgba(16,24,40,0.08)_30%,rgba(16,24,40,0.08)_50%,rgba(16,24,40,0.08)_70.5%,rgba(255,255,255,0)_100%)]')}></div>{letters.map(letter => (<div className="cursor-pointer hover:text-text-secondary" key={letter} onClick={() => handleIndexClick(letter)}>{letter}diff --git a/web/app/components/workflow/block-selector/market-place-plugin/action.tsx b/web/app/components/workflow/block-selector/market-place-plugin/action.tsxindex e9639e30b6d..4ae623ffc18 100644--- a/web/app/components/workflow/block-selector/market-place-plugin/action.tsx+++ b/web/app/components/workflow/block-selector/market-place-plugin/action.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiMoreFill } from '@remixicon/react'import { useQueryClient } from '@tanstack/react-query'import { useTheme } from 'next-themes'@@ -14,7 +15,6 @@ import {PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'import { useDownloadPlugin } from '@/service/use-plugins'-import { cn } from '@/utils/classnames'import { downloadBlob } from '@/utils/download'import { getMarketplaceUrl } from '@/utils/var'diff --git a/web/app/components/workflow/block-selector/market-place-plugin/item.tsx b/web/app/components/workflow/block-selector/market-place-plugin/item.tsxindex 0fb28f8a250..84ef3c29c1e 100644--- a/web/app/components/workflow/block-selector/market-place-plugin/item.tsx+++ b/web/app/components/workflow/block-selector/market-place-plugin/item.tsx@@ -1,12 +1,12 @@'use client'import type { FC } from 'react'import type { Plugin } from '@/app/components/plugins/types.ts'+import { cn } from '@langgenius/dify-ui/cn'import { useBoolean } from 'ahooks'import * as React from 'react'import { useTranslation } from 'react-i18next'import InstallFromMarketplace from '@/app/components/plugins/install-plugin/install-from-marketplace'import { useLocale } from '@/context/i18n'-import { cn } from '@/utils/classnames'import { formatNumber } from '@/utils/format'import Action from './action'@@ -35,23 +35,23 @@ const Item: FC<Props> = ({}] = useBoolean(false)return (- <div className="group/plugin flex rounded-lg py-1 pl-3 pr-1 hover:bg-state-base-hover">+ <div className="group/plugin flex rounded-lg py-1 pr-1 pl-3 hover:bg-state-base-hover"><divclassName="relative h-6 w-6 shrink-0 rounded-md border-[0.5px] border-components-panel-border-subtle bg-contain bg-center bg-no-repeat"style={{ backgroundImage: `url(${payload.icon})` }}/><div className="ml-2 flex w-0 grow"><div className="w-0 grow">- <div className="system-sm-medium h-4 truncate leading-4 text-text-primary ">{getLocalizedText(payload.label)}</div>- <div className="system-xs-regular h-5 truncate leading-5 text-text-tertiary">{getLocalizedText(payload.brief)}</div>- <div className="system-xs-regular flex space-x-1 text-text-tertiary">+ <div className="h-4 truncate system-sm-medium leading-4 text-text-primary">{getLocalizedText(payload.label)}</div>+ <div className="h-5 truncate system-xs-regular leading-5 text-text-tertiary">{getLocalizedText(payload.brief)}</div>+ <div className="flex space-x-1 system-xs-regular text-text-tertiary"><div>{payload.org}</div><div>·</div><div>{t('install', { ns: 'plugin', num: formatNumber(payload.install_count || 0) })}</div></div></div>{/* Action */}- <div className={cn(!open ? 'hidden' : 'flex', 'system-xs-medium h-4 items-center space-x-1 text-components-button-secondary-accent-text group-hover/plugin:flex')}>+ <div className={cn(!open ? 'hidden' : 'flex', 'h-4 items-center space-x-1 system-xs-medium text-components-button-secondary-accent-text group-hover/plugin:flex')}><divclassName="cursor-pointer rounded-md px-1.5 py-0.5 hover:bg-state-base-hover"onClick={showInstallModal}diff --git a/web/app/components/workflow/block-selector/market-place-plugin/list.tsx b/web/app/components/workflow/block-selector/market-place-plugin/list.tsxindex 967b2e92dad..cddc928b193 100644--- a/web/app/components/workflow/block-selector/market-place-plugin/list.tsx+++ b/web/app/components/workflow/block-selector/market-place-plugin/list.tsx@@ -1,12 +1,12 @@'use client'import type { RefObject } from 'react'import type { Plugin, PluginCategoryEnum } from '@/app/components/plugins/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowRightUpLine, RiSearchLine } from '@remixicon/react'import { noop } from 'es-toolkit/function'import { useEffect, useImperativeHandle, useMemo, useRef } from 'react'import { useTranslation } from 'react-i18next'import Link from '@/next/link'-import { cn } from '@/utils/classnames'import { getMarketplaceUrl } from '@/utils/var'import useStickyScroll, { ScrollPosition } from '../use-sticky-scroll'import Item from './item'@@ -79,7 +79,7 @@ const List = ({return (<Link- className="system-sm-medium sticky bottom-0 z-10 flex h-8 cursor-pointer items-center rounded-b-lg border-[0.5px] border-t border-components-panel-border bg-components-panel-bg-blur px-4 py-1 text-text-accent-light-mode-only shadow-lg"+ className="sticky bottom-0 z-10 flex h-8 cursor-pointer items-center rounded-b-lg border-[0.5px] border-t border-components-panel-border bg-components-panel-bg-blur px-4 py-1 system-sm-medium text-text-accent-light-mode-only shadow-lg"href={getMarketplaceUrl('', { category })}target="_blank">@@ -95,7 +95,7 @@ const List = ({<>{hasRes && (<div- className={cn('system-sm-medium sticky z-10 flex h-8 cursor-pointer justify-between px-4 py-1 text-text-primary', stickyClassName, !disableMaxWidth && maxWidthClassName)}+ className={cn('sticky z-10 flex h-8 cursor-pointer justify-between px-4 py-1 system-sm-medium text-text-primary', stickyClassName, !disableMaxWidth && maxWidthClassName)}onClick={handleHeadClick}><span>{t('fromMarketplace', { ns: 'plugin' })}</span>@@ -119,12 +119,12 @@ const List = ({/>))}{hasRes && (- <div className="mb-3 mt-2 flex items-center justify-center space-x-2">+ <div className="mt-2 mb-3 flex items-center justify-center space-x-2"><div className="h-[2px] w-[90px] bg-linear-to-l from-[rgba(16,24,40,0.08)] to-[rgba(255,255,255,0.01)]"></div><Linkhref={urlWithSearchText}target="_blank"- className="system-sm-medium flex h-4 shrink-0 items-center text-text-accent-light-mode-only"+ className="flex h-4 shrink-0 items-center system-sm-medium text-text-accent-light-mode-only"><RiSearchLine className="mr-0.5 h-3 w-3" /><span>{t('searchInMarketplace', { ns: 'plugin' })}</span>diff --git a/web/app/components/workflow/block-selector/rag-tool-recommendations/list.tsx b/web/app/components/workflow/block-selector/rag-tool-recommendations/list.tsxindex 2ee454e848e..87e4863414f 100644--- a/web/app/components/workflow/block-selector/rag-tool-recommendations/list.tsx+++ b/web/app/components/workflow/block-selector/rag-tool-recommendations/list.tsx@@ -2,9 +2,9 @@ import type { BlockEnum, ToolWithProvider } from '../../types'import type { ToolDefaultValue } from '../types'import type { Plugin } from '@/app/components/plugins/types'import type { OnSelectBlock } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback, useMemo, useRef } from 'react'import { useGetLanguage } from '@/context/i18n'-import { cn } from '@/utils/classnames'import { groupItems } from '../index-bar'import ToolListFlatView from '../tool/tool-list-flat-view/list'import ToolListTreeView from '../tool/tool-list-tree-view/list'diff --git a/web/app/components/workflow/block-selector/tabs.tsx b/web/app/components/workflow/block-selector/tabs.tsxindex 7038460c845..5605908b715 100644--- a/web/app/components/workflow/block-selector/tabs.tsx+++ b/web/app/components/workflow/block-selector/tabs.tsx@@ -5,13 +5,13 @@ import type {OnSelectBlock,ToolWithProvider,} from '../types'+import { cn } from '@langgenius/dify-ui/cn'import { memo, useEffect, useMemo } from 'react'import { useTranslation } from 'react-i18next'import Tooltip from '@/app/components/base/tooltip'import { useGlobalPublicStore } from '@/context/global-public-context'import { useFeaturedToolsRecommendations } from '@/service/use-plugins'import { useAllBuiltInTools, useAllCustomTools, useAllMCPTools, useAllWorkflowTools, useInvalidateAllBuiltInTools } from '@/service/use-tools'-import { cn } from '@/utils/classnames'import { basePath } from '@/utils/var'import { useWorkflowStore } from '../store'import AllStartBlocks from './all-start-blocks'@@ -215,7 +215,7 @@ const Tabs: FC<TabsProps> = ({<div onClick={e => e.stopPropagation()}>{!noBlocks && (- <div className="relative flex bg-background-section-burn pl-1 pt-1">+ <div className="relative flex bg-background-section-burn pt-1 pl-1">{tabs.map(tab => (<TabHeaderItemdiff --git a/web/app/components/workflow/block-selector/tool-picker.tsx b/web/app/components/workflow/block-selector/tool-picker.tsxindex 888a7403e60..a509dd9723a 100644--- a/web/app/components/workflow/block-selector/tool-picker.tsx+++ b/web/app/components/workflow/block-selector/tool-picker.tsx@@ -7,6 +7,7 @@ import type { FC } from 'react'import type { ToolDefaultValue, ToolValue } from './types'import type { CustomCollectionBackend } from '@/app/components/tools/types'import type { BlockEnum, OnSelectBlock } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { useBoolean } from 'ahooks'import * as React from 'react'import { useMemo, useState } from 'react'@@ -35,7 +36,6 @@ import {useInvalidateAllMCPTools,useInvalidateAllWorkflowTools,} from '@/service/use-tools'-import { cn } from '@/utils/classnames'type Props = {panelClassName?: stringdiff --git a/web/app/components/workflow/block-selector/tool/action-item.tsx b/web/app/components/workflow/block-selector/tool/action-item.tsxindex a24f9d4c45c..723bcf54341 100644--- a/web/app/components/workflow/block-selector/tool/action-item.tsx+++ b/web/app/components/workflow/block-selector/tool/action-item.tsx@@ -3,6 +3,7 @@ import type { FC } from 'react'import type { ToolWithProvider } from '../../types'import type { ToolDefaultValue } from '../types'import type { Tool } from '@/app/components/tools/types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useMemo } from 'react'import { useTranslation } from 'react-i18next'@@ -11,7 +12,6 @@ import Tooltip from '@/app/components/base/tooltip'import { useGetLanguage } from '@/context/i18n'import useTheme from '@/hooks/use-theme'import { Theme } from '@/types/app'-import { cn } from '@/utils/classnames'import { basePath } from '@/utils/var'import BlockIcon from '../../block-icon'import { BlockEnum } from '../../types'@@ -78,7 +78,7 @@ const ToolItem: FC<Props> = ({><divkey={payload.name}- className="flex cursor-pointer items-center justify-between rounded-lg pl-[21px] pr-1 hover:bg-state-base-hover"+ className="flex cursor-pointer items-center justify-between rounded-lg pr-1 pl-[21px] hover:bg-state-base-hover"onClick={() => {if (disabled)return@@ -111,11 +111,11 @@ const ToolItem: FC<Props> = ({})}}>- <div className={cn('truncate border-l-2 border-divider-subtle py-2 pl-4 text-text-secondary system-sm-medium')}>+ <div className={cn('truncate border-l-2 border-divider-subtle py-2 pl-4 system-sm-medium text-text-secondary')}><span className={cn(disabled && 'opacity-30')}>{payload.label[language]}</span></div>{isAdded && (- <div className="mr-4 text-text-tertiary system-xs-regular">{t('addToolModal.added', { ns: 'tools' })}</div>+ <div className="mr-4 system-xs-regular text-text-tertiary">{t('addToolModal.added', { ns: 'tools' })}</div>)}</div></Tooltip>diff --git a/web/app/components/workflow/block-selector/tool/tool.tsx b/web/app/components/workflow/block-selector/tool/tool.tsxindex b20818fdaae..5abc750fedd 100644--- a/web/app/components/workflow/block-selector/tool/tool.tsx+++ b/web/app/components/workflow/block-selector/tool/tool.tsx@@ -3,6 +3,7 @@ import type { FC } from 'react'import type { Tool as ToolType } from '../../../tools/types'import type { ToolWithProvider } from '../../types'import type { ToolDefaultValue, ToolValue } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine, RiArrowRightSLine } from '@remixicon/react'import { useHover } from 'ahooks'import * as React from 'react'@@ -13,7 +14,6 @@ import { useMCPToolAvailability } from '@/app/components/workflow/nodes/_base/coimport { useGetLanguage } from '@/context/i18n'import useTheme from '@/hooks/use-theme'import { Theme } from '@/types/app'-import { cn } from '@/utils/classnames'import { basePath } from '@/utils/var'import { CollectionType } from '../../../tools/types'import BlockIcon from '../../block-icon'@@ -178,7 +178,7 @@ const Tool: FC<Props> = ({><div className={cn(className)}><div- className="group/item flex w-full cursor-pointer select-none items-center justify-between rounded-lg pl-3 pr-1 hover:bg-state-base-hover"+ className="group/item flex w-full cursor-pointer items-center justify-between rounded-lg pr-1 pl-3 select-none hover:bg-state-base-hover"onClick={() => {if (hasAction) {setFold(!isFold)@@ -219,7 +219,7 @@ const Tool: FC<Props> = ({<div className="ml-2 flex w-0 grow items-center text-sm text-text-primary"><span className="max-w-[250px] truncate">{notShowProvider ? actions[0]?.label[language] : payload.label[language]}</span>{isFlatView && groupName && (- <span className="system-xs-regular ml-2 shrink-0 text-text-quaternary">{groupName}</span>+ <span className="ml-2 shrink-0 system-xs-regular text-text-quaternary">{groupName}</span>)}{isMCPTool && <Mcp className="ml-2 size-3.5 shrink-0 text-text-quaternary" />}</div>diff --git a/web/app/components/workflow/block-selector/tools.tsx b/web/app/components/workflow/block-selector/tools.tsxindex d1742528233..8c281e35294 100644--- a/web/app/components/workflow/block-selector/tools.tsx+++ b/web/app/components/workflow/block-selector/tools.tsx@@ -1,9 +1,9 @@import type { BlockEnum, ToolWithProvider } from '../types'import type { ToolDefaultValue, ToolTypeEnum, ToolValue } from './types'+import { cn } from '@langgenius/dify-ui/cn'import { memo, useMemo, useRef } from 'react'import Empty from '@/app/components/tools/provider/empty'import { useGetLanguage } from '@/context/i18n'-import { cn } from '@/utils/classnames'import IndexBar, { groupItems } from './index-bar'import ToolListFlatView from './tool/tool-list-flat-view/list'import ToolListTreeView from './tool/tool-list-tree-view/list'diff --git a/web/app/components/workflow/block-selector/trigger-plugin/action-item.tsx b/web/app/components/workflow/block-selector/trigger-plugin/action-item.tsxindex 4bf3a3db179..34ee7444145 100644--- a/web/app/components/workflow/block-selector/trigger-plugin/action-item.tsx+++ b/web/app/components/workflow/block-selector/trigger-plugin/action-item.tsx@@ -2,11 +2,11 @@import type { FC } from 'react'import type { TriggerDefaultValue, TriggerWithProvider } from '../types'import type { Event } from '@/app/components/tools/types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import Tooltip from '@/app/components/base/tooltip'import { useGetLanguage } from '@/context/i18n'-import { cn } from '@/utils/classnames'import BlockIcon from '../../block-icon'import { BlockEnum } from '../../types'@@ -49,7 +49,7 @@ const TriggerPluginActionItem: FC<Props> = ({><divkey={payload.name}- className="flex cursor-pointer items-center justify-between rounded-lg pl-[21px] pr-1 hover:bg-state-base-hover"+ className="flex cursor-pointer items-center justify-between rounded-lg pr-1 pl-[21px] hover:bg-state-base-hover"onClick={() => {if (disabled)return@@ -77,11 +77,11 @@ const TriggerPluginActionItem: FC<Props> = ({})}}>- <div className={cn('truncate border-l-2 border-divider-subtle py-2 pl-4 text-text-secondary system-sm-medium')}>+ <div className={cn('truncate border-l-2 border-divider-subtle py-2 pl-4 system-sm-medium text-text-secondary')}><span className={cn(disabled && 'opacity-30')}>{payload.label[language]}</span></div>{isAdded && (- <div className="mr-4 text-text-tertiary system-xs-regular">{t('addToolModal.added', { ns: 'tools' })}</div>+ <div className="mr-4 system-xs-regular text-text-tertiary">{t('addToolModal.added', { ns: 'tools' })}</div>)}</div></Tooltip>diff --git a/web/app/components/workflow/block-selector/trigger-plugin/item.tsx b/web/app/components/workflow/block-selector/trigger-plugin/item.tsxindex c60c5a764fa..35230810b84 100644--- a/web/app/components/workflow/block-selector/trigger-plugin/item.tsx+++ b/web/app/components/workflow/block-selector/trigger-plugin/item.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { TriggerDefaultValue, TriggerWithProvider } from '@/app/components/workflow/block-selector/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine, RiArrowRightSLine } from '@remixicon/react'import * as React from 'react'import { useEffect, useMemo, useRef } from 'react'@@ -11,7 +12,6 @@ import { BlockEnum } from '@/app/components/workflow/types'import { useGetLanguage } from '@/context/i18n'import useTheme from '@/hooks/use-theme'import { Theme } from '@/types/app'-import { cn } from '@/utils/classnames'import { basePath } from '@/utils/var'import TriggerPluginActionItem from './action-item'@@ -94,7 +94,7 @@ const TriggerPluginItem: FC<Props> = ({><div className={cn(className)}><div- className="group/item flex w-full cursor-pointer select-none items-center justify-between rounded-lg pl-3 pr-1 hover:bg-state-base-hover"+ className="group/item flex w-full cursor-pointer items-center justify-between rounded-lg pr-1 pl-3 select-none hover:bg-state-base-hover"onClick={() => {if (hasAction) {setFold(!isFold)@@ -133,7 +133,7 @@ const TriggerPluginItem: FC<Props> = ({/><div className="ml-2 flex min-w-0 flex-1 items-center text-sm text-text-primary"><span className="max-w-[200px] truncate">{notShowProvider ? actions[0]?.label[language] : payload.label[language]}</span>- <span className="system-xs-regular ml-2 truncate text-text-quaternary">{groupName}</span>+ <span className="ml-2 truncate system-xs-regular text-text-quaternary">{groupName}</span></div></div>diff --git a/web/app/components/workflow/block-selector/view-type-select.tsx b/web/app/components/workflow/block-selector/view-type-select.tsxindex c81d09c6dd0..58dbb2cb322 100644--- a/web/app/components/workflow/block-selector/view-type-select.tsx+++ b/web/app/components/workflow/block-selector/view-type-select.tsx@@ -1,9 +1,9 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiNodeTree, RiSortAlphabetAsc } from '@remixicon/react'import * as React from 'react'import { useCallback } from 'react'-import { cn } from '@/utils/classnames'export enum ViewType {flat = 'flat',@@ -47,7 +47,7 @@ const ViewTypeSelect: FC<Props> = ({}onClick={handleChange(ViewType.tree)}>- <RiNodeTree className="h-4 w-4 " />+ <RiNodeTree className="h-4 w-4" /></div></div>)diff --git a/web/app/components/workflow/custom-edge.tsx b/web/app/components/workflow/custom-edge.tsxindex c76e44e47aa..db5b84455c7 100644--- a/web/app/components/workflow/custom-edge.tsx+++ b/web/app/components/workflow/custom-edge.tsx@@ -3,6 +3,7 @@ import type {Edge,OnSelectBlock,} from './types'+import { cn } from '@langgenius/dify-ui/cn'import { intersection } from 'es-toolkit/array'import {memo,@@ -17,7 +18,6 @@ import {Position,} from 'reactflow'import { ErrorHandleTypeEnum } from '@/app/components/workflow/nodes/_base/components/error-handle/types'-import { cn } from '@/utils/classnames'import BlockSelector from './block-selector'import { ITERATION_CHILDREN_Z_INDEX, LOOP_CHILDREN_Z_INDEX } from './constants'import CustomEdgeLinearGradientRender from './custom-edge-linear-gradient-render'diff --git a/web/app/components/workflow/dsl-export-confirm-modal.tsx b/web/app/components/workflow/dsl-export-confirm-modal.tsxindex 2fb856ea93f..b256f8bd9f7 100644--- a/web/app/components/workflow/dsl-export-confirm-modal.tsx+++ b/web/app/components/workflow/dsl-export-confirm-modal.tsx@@ -1,5 +1,6 @@'use client'import type { EnvironmentVariable } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine, RiLock2Line } from '@remixicon/react'import { noop } from 'es-toolkit/function'import * as React from 'react'@@ -9,7 +10,6 @@ import Checkbox from '@/app/components/base/checkbox'import { Env } from '@/app/components/base/icons/src/vender/line/others'import Modal from '@/app/components/base/modal'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'export type DSLExportConfirmModalProps = {envList: EnvironmentVariable[]@@ -42,7 +42,7 @@ const DSLExportConfirmModal = ({<RiCloseLine className="h-4 w-4 text-text-tertiary" /></div><div className="relative">- <table className="w-full border-separate border-spacing-0 radius-md border border-divider-regular shadow-xs">+ <table className="w-full border-separate border-spacing-0 rounded-lg border border-divider-regular shadow-xs"><thead className="system-xs-medium-uppercase text-text-tertiary"><tr><td width={220} className="h-7 border-r border-b border-divider-regular pl-3">{t('env.export.name', { ns: 'workflow' })}</td>diff --git a/web/app/components/workflow/header/chat-variable-button.tsx b/web/app/components/workflow/header/chat-variable-button.tsxindex 82837274b4d..63ac90aad6f 100644--- a/web/app/components/workflow/header/chat-variable-button.tsx+++ b/web/app/components/workflow/header/chat-variable-button.tsx@@ -1,9 +1,9 @@+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'import { BubbleX } from '@/app/components/base/icons/src/vender/line/others'import { Button } from '@/app/components/base/ui/button'import { useStore } from '@/app/components/workflow/store'import useTheme from '@/hooks/use-theme'-import { cn } from '@/utils/classnames'const ChatVariableButton = ({ disabled }: { disabled: boolean }) => {const { theme } = useTheme()diff --git a/web/app/components/workflow/header/checklist/index.tsx b/web/app/components/workflow/header/checklist/index.tsxindex 0b5a0c0dc1e..83384c55832 100644--- a/web/app/components/workflow/header/checklist/index.tsx+++ b/web/app/components/workflow/header/checklist/index.tsx@@ -2,6 +2,7 @@ import type { ChecklistItem } from '../../hooks/use-checklist'import type {CommonEdgeType,} from '../../types'+import { cn } from '@langgenius/dify-ui/cn'import {memo,useMemo,@@ -18,7 +19,6 @@ import {PopoverTrigger,} from '@/app/components/base/ui/popover'import useNodes from '@/app/components/workflow/store/workflow/use-nodes'-import { cn } from '@/utils/classnames'import {useChecklist,useNodesInteractions,@@ -84,7 +84,7 @@ const WorkflowChecklist = ({/></span>{!!needWarningNodes.length && (- <span className="absolute -right-1.5 -top-1.5 flex h-[18px] min-w-[18px] items-center justify-center rounded-full border border-gray-100 bg-text-warning-secondary text-[11px] font-semibold text-white">+ <span className="absolute -top-1.5 -right-1.5 flex h-[18px] min-w-[18px] items-center justify-center rounded-full border border-gray-100 bg-text-warning-secondary text-[11px] font-semibold text-white">{needWarningNodes.length}</span>)}@@ -101,15 +101,15 @@ const WorkflowChecklist = ({className="overflow-y-auto"style={{ maxHeight: 'calc(2 / 3 * 100vh)' }}>- <div className="flex flex-col gap-0.5 px-3 pb-1 pt-3.5">+ <div className="flex flex-col gap-0.5 px-3 pt-3.5 pb-1"><div className="flex items-start px-1"><div className="min-w-0 grow pr-8">- <h2 className="text-base font-semibold leading-6 text-text-primary">+ <h2 className="text-base leading-6 font-semibold text-text-primary">{t('panel.checklist', { ns: 'workflow' })}{needWarningNodes.length > 0 && `(${needWarningNodes.length})`}</h2></div>- <PopoverClose className="-mr-0.5 -mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-lg">+ <PopoverClose className="-mt-0.5 -mr-0.5 flex size-7 shrink-0 items-center justify-center rounded-lg"><span className="i-ri-close-line size-4 text-text-tertiary" /></PopoverClose></div>@@ -122,7 +122,7 @@ const WorkflowChecklist = ({{needWarningNodes.length > 0? (- <div className="flex flex-col gap-1 px-4 pb-4 pt-1">+ <div className="flex flex-col gap-1 px-4 pt-1 pb-4">{pluginItems.length > 0 && (<ChecklistPluginGroup items={pluginItems} />)}@@ -138,7 +138,7 @@ const WorkflowChecklist = ({): (<div className="mx-4 mb-3 rounded-lg py-4 text-center text-xs text-text-tertiary">- <span className="i-custom-vender-line-general-checklist-square mx-auto mb-[5px] block h-8 w-8 text-text-quaternary" />+ <span className="mx-auto mb-[5px] i-custom-vender-line-general-checklist-square block h-8 w-8 text-text-quaternary" />{t('panel.checklistResolved', { ns: 'workflow' })}</div>)}diff --git a/web/app/components/workflow/header/checklist/item-indicator.tsx b/web/app/components/workflow/header/checklist/item-indicator.tsxindex 7c26cddffdb..7d3d4d1524b 100644--- a/web/app/components/workflow/header/checklist/item-indicator.tsx+++ b/web/app/components/workflow/header/checklist/item-indicator.tsx@@ -1,4 +1,4 @@-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'type ItemIndicatorProps = {className?: stringdiff --git a/web/app/components/workflow/header/checklist/node-group.tsx b/web/app/components/workflow/header/checklist/node-group.tsxindex 128226af19c..e914fd38f73 100644--- a/web/app/components/workflow/header/checklist/node-group.tsx+++ b/web/app/components/workflow/header/checklist/node-group.tsx@@ -1,8 +1,8 @@import type { ChecklistItem } from '../../hooks/use-checklist'import type { BlockEnum } from '../../types'+import { cn } from '@langgenius/dify-ui/cn'import { memo, useMemo } from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import BlockIcon from '../../block-icon'import { ItemIndicator } from './item-indicator'@@ -33,14 +33,14 @@ export const ChecklistNodeGroup = memo(({}, [item.errorMessages, item.unConnected, t])return (- <div className="overflow-clip radius-lg bg-components-panel-on-panel-item-bg">+ <div className="overflow-clip rounded-[10px] bg-components-panel-on-panel-item-bg"><div className="flex items-center gap-2 px-2 pt-2"><BlockIcontype={item.type as BlockEnum}size="sm"toolIcon={item.toolIcon}/>- <span className="min-w-0 grow truncate text-sm font-medium leading-5 text-text-primary">+ <span className="min-w-0 grow truncate text-sm leading-5 font-medium text-text-primary">{item.title}</span></div>@@ -60,7 +60,7 @@ export const ChecklistNodeGroup = memo(({</span>{goToEnabled && (<div className="flex shrink-0 items-center gap-0.5 pr-0.5 opacity-0 transition-opacity duration-150 group-hover/item:opacity-100">- <span className="whitespace-nowrap text-xs font-medium leading-4 text-text-accent">+ <span className="text-xs leading-4 font-medium whitespace-nowrap text-text-accent">{t('panel.goToFix', { ns: 'workflow' })}</span><span className="i-ri-arrow-right-line size-3.5 text-text-accent" />diff --git a/web/app/components/workflow/header/checklist/plugin-group.tsx b/web/app/components/workflow/header/checklist/plugin-group.tsxindex 75c36bf78ed..2c532f1ac45 100644--- a/web/app/components/workflow/header/checklist/plugin-group.tsx+++ b/web/app/components/workflow/header/checklist/plugin-group.tsx@@ -54,7 +54,7 @@ export const ChecklistPluginGroup = memo(({}return (- <div className="overflow-clip radius-lg bg-components-panel-on-panel-item-bg">+ <div className="overflow-clip rounded-[10px] bg-components-panel-on-panel-item-bg"><div className="flex items-center gap-2 px-2 pt-2"><div className="flex size-5 shrink-0 items-center justify-center rounded-md border-[0.5px] border-divider-regular bg-components-icon-bg-midnight-solid shadow-xs"><span className="i-ri-download-line size-3.5 text-white" />diff --git a/web/app/components/workflow/header/env-button.tsx b/web/app/components/workflow/header/env-button.tsxindex 2de3743178f..98ab6ba5379 100644--- a/web/app/components/workflow/header/env-button.tsx+++ b/web/app/components/workflow/header/env-button.tsx@@ -1,10 +1,10 @@+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'import { Env } from '@/app/components/base/icons/src/vender/line/others'import { Button } from '@/app/components/base/ui/button'import { useInputFieldPanel } from '@/app/components/rag-pipeline/hooks'import { useStore } from '@/app/components/workflow/store'import useTheme from '@/hooks/use-theme'-import { cn } from '@/utils/classnames'const EnvButton = ({ disabled }: { disabled: boolean }) => {const { theme } = useTheme()diff --git a/web/app/components/workflow/header/global-variable-button.tsx b/web/app/components/workflow/header/global-variable-button.tsxindex 5d9dcaa5908..63a4a427b60 100644--- a/web/app/components/workflow/header/global-variable-button.tsx+++ b/web/app/components/workflow/header/global-variable-button.tsx@@ -1,10 +1,10 @@+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'import { GlobalVariable } from '@/app/components/base/icons/src/vender/line/others'import { Button } from '@/app/components/base/ui/button'import { useInputFieldPanel } from '@/app/components/rag-pipeline/hooks'import { useStore } from '@/app/components/workflow/store'import useTheme from '@/hooks/use-theme'-import { cn } from '@/utils/classnames'const GlobalVariableButton = ({ disabled }: { disabled: boolean }) => {const { theme } = useTheme()diff --git a/web/app/components/workflow/header/header-in-restoring.tsx b/web/app/components/workflow/header/header-in-restoring.tsxindex cc0934ca30a..7ba7d3235e6 100644--- a/web/app/components/workflow/header/header-in-restoring.tsx+++ b/web/app/components/workflow/header/header-in-restoring.tsx@@ -1,3 +1,4 @@+import { cn } from '@langgenius/dify-ui/cn'import { RiHistoryLine } from '@remixicon/react'import {useCallback,@@ -8,7 +9,6 @@ import { toast } from '@/app/components/base/ui/toast'import useTheme from '@/hooks/use-theme'import { useInvalidAllLastRun, useRestoreWorkflow } from '@/service/use-workflow'import { getFlowPrefix } from '@/service/utils'-import { cn } from '@/utils/classnames'import {useWorkflowRefreshDraft,useWorkflowRun,diff --git a/web/app/components/workflow/header/run-and-history.tsx b/web/app/components/workflow/header/run-and-history.tsxindex d1fb1c37def..89fcdadb4b9 100644--- a/web/app/components/workflow/header/run-and-history.tsx+++ b/web/app/components/workflow/header/run-and-history.tsx@@ -1,10 +1,10 @@import type { ViewHistoryProps } from './view-history'+import { cn } from '@langgenius/dify-ui/cn'import {RiPlayLargeLine,} from '@remixicon/react'import { memo } from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import {useNodesReadOnly,useWorkflowStartRun,diff --git a/web/app/components/workflow/header/run-mode.tsx b/web/app/components/workflow/header/run-mode.tsxindex 8f802fcec5a..d98b4d6b185 100644--- a/web/app/components/workflow/header/run-mode.tsx+++ b/web/app/components/workflow/header/run-mode.tsx@@ -1,4 +1,5 @@import type { TestRunMenuRef, TriggerOption } from './test-run-menu'+import { cn } from '@langgenius/dify-ui/cn'import { RiLoader2Line, RiPlayLargeLine } from '@remixicon/react'import * as React from 'react'import { useCallback, useEffect, useRef } from 'react'@@ -12,7 +13,6 @@ import { useStore } from '@/app/components/workflow/store'import { WorkflowRunningStatus } from '@/app/components/workflow/types'import { EVENT_WORKFLOW_STOP } from '@/app/components/workflow/variable-inspect/types'import { useEventEmitterContextContext } from '@/context/event-emitter'-import { cn } from '@/utils/classnames'import { useDynamicTestRunOptions } from '../hooks/use-dynamic-test-run-options'import TestRunMenu, { TriggerType } from './test-run-menu'@@ -113,7 +113,7 @@ const RunMode = ({<buttontype="button"className={cn(- 'flex h-7 cursor-not-allowed items-center gap-x-1 rounded-l-md bg-state-accent-hover px-1.5 text-text-accent system-xs-medium',+ 'flex h-7 cursor-not-allowed items-center gap-x-1 rounded-l-md bg-state-accent-hover px-1.5 system-xs-medium text-text-accent',)}disabled={true}>@@ -129,7 +129,7 @@ const RunMode = ({><divclassName={cn(- 'flex h-7 cursor-pointer items-center gap-x-1 rounded-md px-1.5 text-text-accent system-xs-medium hover:bg-state-accent-hover',+ 'flex h-7 cursor-pointer items-center gap-x-1 rounded-md px-1.5 system-xs-medium text-text-accent hover:bg-state-accent-hover',)}style={{ userSelect: 'none' }}>diff --git a/web/app/components/workflow/header/scroll-to-selected-node-button.tsx b/web/app/components/workflow/header/scroll-to-selected-node-button.tsxindex 9e0aadca251..a1b0fa65704 100644--- a/web/app/components/workflow/header/scroll-to-selected-node-button.tsx+++ b/web/app/components/workflow/header/scroll-to-selected-node-button.tsx@@ -1,8 +1,8 @@import type { FC } from 'react'import type { CommonNodeType } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'import { useNodes } from 'reactflow'-import { cn } from '@/utils/classnames'import { scrollToWorkflowNode } from '../utils/node-navigation'const ScrollToSelectedNodeButton: FC = () => {@@ -16,7 +16,7 @@ const ScrollToSelectedNodeButton: FC = () => {return (<divclassName={cn(- 'flex h-6 cursor-pointer items-center justify-center whitespace-nowrap rounded-md border-[0.5px] border-effects-highlight bg-components-actionbar-bg px-3 text-text-tertiary shadow-lg backdrop-blur-xs transition-colors duration-200 system-xs-medium hover:text-text-accent',+ 'flex h-6 cursor-pointer items-center justify-center rounded-md border-[0.5px] border-effects-highlight bg-components-actionbar-bg px-3 system-xs-medium whitespace-nowrap text-text-tertiary shadow-lg backdrop-blur-xs transition-colors duration-200 hover:text-text-accent',)}onClick={() => scrollToWorkflowNode(selectedNode.id)}>diff --git a/web/app/components/workflow/header/undo-redo.tsx b/web/app/components/workflow/header/undo-redo.tsxindex 9cab2540164..6312815d1f9 100644--- a/web/app/components/workflow/header/undo-redo.tsx+++ b/web/app/components/workflow/header/undo-redo.tsx@@ -1,9 +1,9 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { memo, useEffect, useState } from 'react'import { useTranslation } from 'react-i18next'import ViewWorkflowHistory from '@/app/components/workflow/header/view-workflow-history'import { useNodesReadOnly } from '@/app/components/workflow/hooks'-import { cn } from '@/utils/classnames'import Divider from '../../base/divider'import TipPopup from '../operator/tip-popup'import { useWorkflowHistoryStore } from '../workflow-history-store'@@ -35,7 +35,7 @@ const UndoRedo: FC<UndoRedoProps> = ({ handleUndo, handleRedo }) => {data-tooltip-id="workflow.undo"disabled={nodesReadOnly || buttonsDisabled.undo}className={- cn('system-sm-medium flex h-8 w-8 cursor-pointer select-none items-center rounded-md px-1.5 text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary', (nodesReadOnly || buttonsDisabled.undo)+ cn('flex h-8 w-8 cursor-pointer items-center rounded-md px-1.5 system-sm-medium text-text-tertiary select-none hover:bg-state-base-hover hover:text-text-secondary', (nodesReadOnly || buttonsDisabled.undo)&& 'cursor-not-allowed text-text-disabled hover:bg-transparent hover:text-text-disabled')}onClick={handleUndo}@@ -50,7 +50,7 @@ const UndoRedo: FC<UndoRedoProps> = ({ handleUndo, handleRedo }) => {data-tooltip-id="workflow.redo"disabled={nodesReadOnly || buttonsDisabled.redo}className={- cn('system-sm-medium flex h-8 w-8 cursor-pointer select-none items-center rounded-md px-1.5 text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary', (nodesReadOnly || buttonsDisabled.redo)+ cn('flex h-8 w-8 cursor-pointer items-center rounded-md px-1.5 system-sm-medium text-text-tertiary select-none hover:bg-state-base-hover hover:text-text-secondary', (nodesReadOnly || buttonsDisabled.redo)&& 'cursor-not-allowed text-text-disabled hover:bg-transparent hover:text-text-disabled')}onClick={handleRedo}diff --git a/web/app/components/workflow/header/version-history-button.tsx b/web/app/components/workflow/header/version-history-button.tsxindex 5f162e36da5..ef79c4e4113 100644--- a/web/app/components/workflow/header/version-history-button.tsx+++ b/web/app/components/workflow/header/version-history-button.tsx@@ -1,4 +1,5 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiHistoryLine } from '@remixicon/react'import { useKeyPress } from 'ahooks'import * as React from 'react'@@ -6,7 +7,6 @@ import { useCallback } from 'react'import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'import useTheme from '@/hooks/use-theme'-import { cn } from '@/utils/classnames'import Tooltip from '../../base/tooltip'import ShortcutsName from '../shortcuts-name'import { getKeyboardKeyCodeBySystem } from '../utils'diff --git a/web/app/components/workflow/header/view-history.tsx b/web/app/components/workflow/header/view-history.tsxindex 752f6735e34..3f98f6cb6cb 100644--- a/web/app/components/workflow/header/view-history.tsx+++ b/web/app/components/workflow/header/view-history.tsx@@ -1,3 +1,4 @@+import { cn } from '@langgenius/dify-ui/cn'import {memo,useState,@@ -17,7 +18,6 @@ import {} from '@/app/components/workflow/store'import { useFormatTimeFromNow } from '@/hooks/use-format-time-from-now'import { useWorkflowRunHistory } from '@/service/use-workflow'-import { cn } from '@/utils/classnames'import {useIsChatMode,useNodesInteractions,@@ -82,7 +82,7 @@ const ViewHistory = ({open && 'bg-components-button-secondary-bg-hover',)}>- <span className="i-custom-vender-line-time-clock-play mr-1 h-4 w-4" />+ <span className="mr-1 i-custom-vender-line-time-clock-play h-4 w-4" />{t('common.showRunHistory', { ns: 'workflow' })}</button>)@@ -140,7 +140,7 @@ const ViewHistory = ({{!data?.data.length && (<div className="py-12">- <span className="i-custom-vender-line-time-clock-play-slim mx-auto mb-2 h-8 w-8 text-text-quaternary" />+ <span className="mx-auto mb-2 i-custom-vender-line-time-clock-play-slim h-8 w-8 text-text-quaternary" /><div className="text-center text-[13px] text-text-quaternary">{t('common.notRunning', { ns: 'workflow' })}</div>@@ -171,23 +171,23 @@ const ViewHistory = ({>{!isChatMode && [WorkflowRunningStatus.Stopped, WorkflowRunningStatus.Paused].includes(item.status) && (- <span className="i-custom-vender-line-alertsAndFeedback-alert-triangle mr-1.5 mt-0.5 h-3.5 w-3.5 text-[#F79009]" />+ <span className="mt-0.5 mr-1.5 i-custom-vender-line-alertsAndFeedback-alert-triangle h-3.5 w-3.5 text-[#F79009]" />)}{!isChatMode && item.status === WorkflowRunningStatus.Failed && (- <span className="i-ri-error-warning-line mr-1.5 mt-0.5 h-3.5 w-3.5 text-[#F04438]" />+ <span className="mt-0.5 mr-1.5 i-ri-error-warning-line h-3.5 w-3.5 text-[#F04438]" />)}{!isChatMode && item.status === WorkflowRunningStatus.Succeeded && (- <span className="i-ri-checkbox-circle-line mr-1.5 mt-0.5 h-3.5 w-3.5 text-[#12B76A]" />+ <span className="mt-0.5 mr-1.5 i-ri-checkbox-circle-line h-3.5 w-3.5 text-[#12B76A]" />)}<div><divclassName={cn(- 'flex items-center text-[13px] font-medium leading-[18px] text-text-primary',+ 'flex items-center text-[13px] leading-[18px] font-medium text-text-primary',item.id === historyWorkflowData?.id && 'text-text-accent',)}>diff --git a/web/app/components/workflow/header/view-workflow-history.tsx b/web/app/components/workflow/header/view-workflow-history.tsxindex add0a99959c..45b02849316 100644--- a/web/app/components/workflow/header/view-workflow-history.tsx+++ b/web/app/components/workflow/header/view-workflow-history.tsx@@ -1,4 +1,5 @@import type { WorkflowHistoryState } from '../workflow-history-store'+import { cn } from '@langgenius/dify-ui/cn'import {RiCloseLine,RiHistoryLine,@@ -18,7 +19,6 @@ import {PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'import Divider from '../../base/divider'import {useNodesReadOnly,@@ -158,7 +158,7 @@ const ViewWorkflowHistory = () => {</PortalToFollowElemTrigger><PortalToFollowElemContent className="z-12"><div- className="ml-2 flex min-w-[240px] max-w-[360px] flex-col overflow-y-auto rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur shadow-xl backdrop-blur-[5px]"+ className="ml-2 flex max-w-[360px] min-w-[240px] flex-col overflow-y-auto rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur shadow-xl backdrop-blur-[5px]"><div className="sticky top-0 flex items-center justify-between px-4 pt-3"><div className="system-mg-regular grow text-text-secondary">{t('changeHistory.title', { ns: 'workflow' })}</div>@@ -206,7 +206,7 @@ const ViewWorkflowHistory = () => {<div><divclassName={cn(- 'flex items-center text-[13px] font-medium leading-[18px] text-text-secondary',+ 'flex items-center text-[13px] leading-[18px] font-medium text-text-secondary',)}>{composeHistoryItemLabel(@@ -239,7 +239,7 @@ const ViewWorkflowHistory = () => {<div><divclassName={cn(- 'flex items-center text-[13px] font-medium leading-[18px] text-text-secondary',+ 'flex items-center text-[13px] leading-[18px] font-medium text-text-secondary',)}>{composeHistoryItemLabel(@@ -274,7 +274,7 @@ const ViewWorkflowHistory = () => {<div><divclassName={cn(- 'flex items-center text-[13px] font-medium leading-[18px]',+ 'flex items-center text-[13px] leading-[18px] font-medium',)}>{t('changeHistory.clearHistory', { ns: 'workflow' })}diff --git a/web/app/components/workflow/index.tsx b/web/app/components/workflow/index.tsxindex f467a511606..41c244c6c23 100644--- a/web/app/components/workflow/index.tsx+++ b/web/app/components/workflow/index.tsx@@ -10,6 +10,7 @@ import type {Node,} from './types'import type { VarInInspect } from '@/types/workflow'+import { cn } from '@langgenius/dify-ui/cn'import {useEventListener,} from 'ahooks'@@ -53,7 +54,6 @@ import {useAllWorkflowTools,} from '@/service/use-tools'import { fetchAllInspectVars } from '@/service/workflow'-import { cn } from '@/utils/classnames'import CandidateNode from './candidate-node'import {CUSTOM_EDGE,diff --git a/web/app/components/workflow/nodes/_base/components/add-button.tsx b/web/app/components/workflow/nodes/_base/components/add-button.tsxindex ff18957abf0..cd32ee0dc6f 100644--- a/web/app/components/workflow/nodes/_base/components/add-button.tsx+++ b/web/app/components/workflow/nodes/_base/components/add-button.tsx@@ -1,11 +1,11 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {RiAddLine,} from '@remixicon/react'import * as React from 'react'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'type Props = {className?: stringdiff --git a/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx b/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsxindex b91bf52b4f1..489c69412a5 100644--- a/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx+++ b/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx@@ -3,6 +3,7 @@ import type { ToolWithProvider } from '../../../types'import type { Strategy } from './agent-strategy'import type { StrategyPluginDetail } from '@/app/components/plugins/types'import type { ListProps, ListRef } from '@/app/components/workflow/block-selector/market-place-plugin/list'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine, RiErrorWarningFill } from '@remixicon/react'import { memo, useEffect, useMemo, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -18,7 +19,6 @@ import PluginList from '@/app/components/workflow/block-selector/market-place-plimport { useGlobalPublicStore } from '@/context/global-public-context'import Link from '@/next/link'import { useStrategyProviders } from '@/service/use-strategy'-import { cn } from '@/utils/classnames'import Tools from '../../../block-selector/tools'import ViewTypeSelect, { ViewType } from '../../../block-selector/view-type-select'import { useStrategyInfo } from '../../agent/use-config'@@ -155,7 +155,7 @@ export const AgentStrategySelector = memo((props: AgentStrategySelectorProps) =><PortalToFollowElem open={open} onOpenChange={setOpen} placement="bottom"><PortalToFollowElemTrigger className="w-full"><div- className="flex h-8 w-full select-none items-center gap-0.5 rounded-lg bg-components-input-bg-normal p-1 hover:bg-state-base-hover-alt"+ className="flex h-8 w-full items-center gap-0.5 rounded-lg bg-components-input-bg-normal p-1 select-none hover:bg-state-base-hover-alt"onClick={() => setOpen(o => !o)}>{ }diff --git a/web/app/components/workflow/nodes/_base/components/before-run-form/form-item.tsx b/web/app/components/workflow/nodes/_base/components/before-run-form/form-item.tsxindex c8809280ecb..595b38c7e2a 100644--- a/web/app/components/workflow/nodes/_base/components/before-run-form/form-item.tsx+++ b/web/app/components/workflow/nodes/_base/components/before-run-form/form-item.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { InputVar } from '../../../../types'import type { FileEntity } from '@/app/components/base/file-uploader/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiDeleteBinLine,} from '@remixicon/react'@@ -21,7 +22,6 @@ import Textarea from '@/app/components/base/textarea'import { VarBlockIcon } from '@/app/components/workflow/block-icon'import { useHooksStore } from '@/app/components/workflow/hooks-store'import { Resolution, TransferMethod } from '@/types/app'-import { cn } from '@/utils/classnames'import { BlockEnum, InputVarType, SupportUploadFileTypes } from '../../../../types'import { CodeLanguage } from '../../../code/types'import CodeEditor from '../editor/code-editor'@@ -124,19 +124,19 @@ const FormItem: FC<Props> = ({return (<div className={cn(className)}>{!isArrayLikeType && !isBooleanType && (- <div className="mb-1 flex h-6 items-center gap-1 text-text-secondary system-sm-semibold">+ <div className="mb-1 flex h-6 items-center gap-1 system-sm-semibold text-text-secondary"><div className="truncate">{typeof payload.label === 'object' ? nodeKey : payload.label}</div>{payload.hide === true? (- <span className="text-text-tertiary system-xs-regular">+ <span className="system-xs-regular text-text-tertiary">{t('panel.optional_and_hidden', { ns: 'workflow' })}</span>): (!payload.required && (- <span className="text-text-tertiary system-xs-regular">+ <span className="system-xs-regular text-text-tertiary">{t('panel.optional', { ns: 'workflow' })}</span>)@@ -215,7 +215,7 @@ const FormItem: FC<Props> = ({language={CodeLanguage.json}onChange={onChange}noWrapper- className="bg h-[80px] overflow-y-auto radius-lg bg-components-input-bg-normal p-1"+ className="bg h-[80px] overflow-y-auto rounded-[10px] bg-components-input-bg-normal p-1"placeholder={<div className="whitespace-pre">{jsonSchemaPlaceholder}</div>}diff --git a/web/app/components/workflow/nodes/_base/components/before-run-form/form.tsx b/web/app/components/workflow/nodes/_base/components/before-run-form/form.tsxindex 6baa4098fbf..a57428e79c7 100644--- a/web/app/components/workflow/nodes/_base/components/before-run-form/form.tsx+++ b/web/app/components/workflow/nodes/_base/components/before-run-form/form.tsx@@ -1,12 +1,12 @@'use client'import type { FC } from 'react'import type { InputVar } from '../../../../types'+import { cn } from '@langgenius/dify-ui/cn'import { produce } from 'immer'import * as React from 'react'import { useCallback, useEffect, useMemo, useRef } from 'react'import { RETRIEVAL_OUTPUT_STRUCT } from '@/app/components/workflow/constants'import { InputVarType } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import FormItem from './form-item'export type Props = {diff --git a/web/app/components/workflow/nodes/_base/components/before-run-form/index.tsx b/web/app/components/workflow/nodes/_base/components/before-run-form/index.tsxindex 08836cbd508..f42046a2ad8 100644--- a/web/app/components/workflow/nodes/_base/components/before-run-form/index.tsx+++ b/web/app/components/workflow/nodes/_base/components/before-run-form/index.tsx@@ -5,6 +5,7 @@ import type { Emoji } from '@/app/components/tools/types'import type { SpecialResultPanelProps } from '@/app/components/workflow/run/special-result-panel'import type { NodeRunningStatus } from '@/app/components/workflow/types'import type { HumanInputFormData } from '@/types/workflow'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useEffect, useRef } from 'react'import { useTranslation } from 'react-i18next'@@ -13,7 +14,6 @@ import { toast } from '@/app/components/base/ui/toast'import Split from '@/app/components/workflow/nodes/_base/components/split'import SingleRunForm from '@/app/components/workflow/nodes/human-input/components/single-run-form'import { BlockEnum } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import Form from './form'import {buildSubmitData,diff --git a/web/app/components/workflow/nodes/_base/components/code-generator-button.tsx b/web/app/components/workflow/nodes/_base/components/code-generator-button.tsxindex 96b9fe7a844..24faccb110f 100644--- a/web/app/components/workflow/nodes/_base/components/code-generator-button.tsx+++ b/web/app/components/workflow/nodes/_base/components/code-generator-button.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { CodeLanguage } from '../../code/types'import type { GenRes } from '@/service/debug'+import { cn } from '@langgenius/dify-ui/cn'import { useBoolean } from 'ahooks'import * as React from 'react'import { useCallback } from 'react'@@ -9,7 +10,6 @@ import { GetCodeGeneratorResModal } from '@/app/components/app/configuration/conimport { ActionButton } from '@/app/components/base/action-button'import { Generator } from '@/app/components/base/icons/src/vender/other'import { AppModeEnum } from '@/types/app'-import { cn } from '@/utils/classnames'import { useHooksStore } from '../../../hooks-store'type Props = {diff --git a/web/app/components/workflow/nodes/_base/components/collapse/index.tsx b/web/app/components/workflow/nodes/_base/components/collapse/index.tsxindex 2c2b9eb861b..7f29d92ebdc 100644--- a/web/app/components/workflow/nodes/_base/components/collapse/index.tsx+++ b/web/app/components/workflow/nodes/_base/components/collapse/index.tsx@@ -1,7 +1,7 @@import type { ReactNode } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { useMemo, useState } from 'react'import { ArrowDownRoundFill } from '@/app/components/base/icons/src/vender/solid/general'-import { cn } from '@/utils/classnames'export { default as FieldCollapse } from './field-collapse'diff --git a/web/app/components/workflow/nodes/_base/components/editor/base.tsx b/web/app/components/workflow/nodes/_base/components/editor/base.tsxindex c0545ff01c6..9c4799a23d8 100644--- a/web/app/components/workflow/nodes/_base/components/editor/base.tsx+++ b/web/app/components/workflow/nodes/_base/components/editor/base.tsx@@ -3,6 +3,7 @@ import type { FC } from 'react'import type { CodeLanguage } from '../../../code/types'import type { FileEntity } from '@/app/components/base/file-uploader/types'import type { Node, NodeOutPutVar } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import copy from 'copy-to-clipboard'import * as React from 'react'import { useCallback, useRef, useState } from 'react'@@ -14,7 +15,6 @@ import {CopyCheck,} from '@/app/components/base/icons/src/vender/line/files'import useToggleExpend from '@/app/components/workflow/nodes/_base/hooks/use-toggle-expend'-import { cn } from '@/utils/classnames'import CodeGeneratorButton from '../code-generator-button'import ToggleExpandBtn from '../toggle-expand-btn'import Wrap from './wrap'@@ -85,7 +85,7 @@ const Base: FC<Props> = ({return (<Wrap className={cn(wrapClassName)} style={wrapStyle} isInNode={isInNode} isExpand={isExpand}><div ref={ref} className={cn(className, isExpand ? 'h-full border-0' : 'rounded-lg border', !isFocus ? 'border-transparent bg-components-input-bg-normal' : 'overflow-hidden border-components-input-border-hover bg-components-input-bg-hover')}>- <div className="flex h-7 items-center justify-between pl-3 pr-2 pt-1">+ <div className="flex h-7 items-center justify-between pt-1 pr-2 pl-3"><div className="system-xs-semibold-uppercase text-text-secondary">{title}</div><divclassName="flex items-center"diff --git a/web/app/components/workflow/nodes/_base/components/editor/code-editor/editor-support-vars.tsx b/web/app/components/workflow/nodes/_base/components/editor/code-editor/editor-support-vars.tsxindex 346ee7efe66..7e79738b104 100644--- a/web/app/components/workflow/nodes/_base/components/editor/code-editor/editor-support-vars.tsx+++ b/web/app/components/workflow/nodes/_base/components/editor/code-editor/editor-support-vars.tsx@@ -2,13 +2,13 @@import type { FC } from 'react'import type { Props as EditorProps } from '.'import type { NodeOutPutVar, Variable } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { useBoolean } from 'ahooks'import * as React from 'react'import { useEffect, useRef, useState } from 'react'import { createPortal } from 'react-dom'import { useTranslation } from 'react-i18next'import VarReferenceVars from '@/app/components/workflow/nodes/_base/components/variable/var-reference-vars'-import { cn } from '@/utils/classnames'import Editor from '.'const TO_WINDOW_OFFSET = 8diff --git a/web/app/components/workflow/nodes/_base/components/editor/code-editor/index.tsx b/web/app/components/workflow/nodes/_base/components/editor/code-editor/index.tsxindex 90573de611e..5649afaca49 100644--- a/web/app/components/workflow/nodes/_base/components/editor/code-editor/index.tsx+++ b/web/app/components/workflow/nodes/_base/components/editor/code-editor/index.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import Editor, { loader } from '@monaco-editor/react'import { noop } from 'es-toolkit/function'import * as React from 'react'@@ -10,7 +11,6 @@ import {import { CodeLanguage } from '@/app/components/workflow/nodes/code/types'import useTheme from '@/hooks/use-theme'import { Theme } from '@/types/app'-import { cn } from '@/utils/classnames'import { basePath } from '@/utils/var'import Base from '../base'import './style.css'@@ -167,7 +167,7 @@ const CodeEditor: FC<Props> = ({}}onMount={handleEditorDidMount}/>- {!outPutValue && !isFocus && <div className="pointer-events-none absolute left-[36px] top-0 text-[13px] font-normal leading-[18px] text-components-input-text-placeholder">{placeholder}</div>}+ {!outPutValue && !isFocus && <div className="pointer-events-none absolute top-0 left-[36px] text-[13px] leading-[18px] font-normal text-components-input-text-placeholder">{placeholder}</div>}</>)diff --git a/web/app/components/workflow/nodes/_base/components/error-handle/error-handle-on-node.tsx b/web/app/components/workflow/nodes/_base/components/error-handle/error-handle-on-node.tsxindex f6883137c56..de722991f67 100644--- a/web/app/components/workflow/nodes/_base/components/error-handle/error-handle-on-node.tsx+++ b/web/app/components/workflow/nodes/_base/components/error-handle/error-handle-on-node.tsx@@ -1,9 +1,9 @@import type { Node } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { useEffect } from 'react'import { useTranslation } from 'react-i18next'import { useUpdateNodeInternals } from 'reactflow'import { NodeRunningStatus } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import { NodeSourceHandle } from '../node-handle'import { ErrorHandleTypeEnum } from './types'@@ -25,7 +25,7 @@ const ErrorHandleOnNode = ({return nullreturn (- <div className="relative px-3 pb-2 pt-1">+ <div className="relative px-3 pt-1 pb-2"><div className={cn('relative flex h-6 items-center justify-between rounded-md bg-workflow-block-parma-bg px-[5px]',data._runningStatus === NodeRunningStatus.Exception && 'border-[0.5px] border-components-badge-status-light-warning-halo bg-state-warning-hover',diff --git a/web/app/components/workflow/nodes/_base/components/error-handle/fail-branch-card.tsx b/web/app/components/workflow/nodes/_base/components/error-handle/fail-branch-card.tsxindex cc1fbc64d85..62fcb5352cb 100644--- a/web/app/components/workflow/nodes/_base/components/error-handle/fail-branch-card.tsx+++ b/web/app/components/workflow/nodes/_base/components/error-handle/fail-branch-card.tsx@@ -8,11 +8,11 @@ const FailBranchCard = () => {return (<div className="px-4 pt-2">- <div className="radius-lg bg-workflow-process-bg p-4">- <div className="mb-2 flex h-8 w-8 items-center justify-center radius-lg border-[0.5px] border-components-card-border bg-components-card-bg shadow-lg">+ <div className="rounded-[10px] bg-workflow-process-bg p-4">+ <div className="mb-2 flex h-8 w-8 items-center justify-center rounded-[10px] border-[0.5px] border-components-card-border bg-components-card-bg shadow-lg"><RiMindMap className="h-5 w-5 text-text-tertiary" /></div>- <div className="system-sm-medium mb-1 text-text-secondary">+ <div className="mb-1 system-sm-medium text-text-secondary">{t('nodes.common.errorHandle.failBranch.customize', { ns: 'workflow' })}</div><div className="system-xs-regular text-text-tertiary">diff --git a/web/app/components/workflow/nodes/_base/components/field.tsx b/web/app/components/workflow/nodes/_base/components/field.tsxindex 3caa107c791..6c8e26758ad 100644--- a/web/app/components/workflow/nodes/_base/components/field.tsx+++ b/web/app/components/workflow/nodes/_base/components/field.tsx@@ -1,12 +1,12 @@'use client'import type { FC, ReactNode } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowDownSLine,} from '@remixicon/react'import { useBoolean } from 'ahooks'import * as React from 'react'import Tooltip from '@/app/components/base/tooltip'-import { cn } from '@/utils/classnames'type Props = {className?: string@@ -43,9 +43,9 @@ const Field: FC<Props> = ({className={cn('flex items-center justify-between', supportFold && 'cursor-pointer')}><div className="flex h-6 items-center">- <div className={cn('relative', isSubTitle ? 'text-text-tertiary system-xs-medium-uppercase' : 'text-text-secondary system-sm-semibold-uppercase')}>+ <div className={cn('relative', isSubTitle ? 'system-xs-medium-uppercase text-text-tertiary' : 'system-sm-semibold-uppercase text-text-secondary')}>{warningDot && (- <span className="absolute -left-[9px] top-1/2 size-[5px] -translate-y-1/2 rounded-full bg-text-warning-secondary" />+ <span className="absolute top-1/2 -left-[9px] size-[5px] -translate-y-1/2 rounded-full bg-text-warning-secondary" />)}{title}{' '}diff --git a/web/app/components/workflow/nodes/_base/components/file-type-item.tsx b/web/app/components/workflow/nodes/_base/components/file-type-item.tsxindex aa73260af6c..e4e1f53fc9b 100644--- a/web/app/components/workflow/nodes/_base/components/file-type-item.tsx+++ b/web/app/components/workflow/nodes/_base/components/file-type-item.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { noop } from 'es-toolkit/function'import * as React from 'react'import { useCallback } from 'react'@@ -8,7 +9,6 @@ import Checkbox from '@/app/components/base/checkbox'import { FileTypeIcon } from '@/app/components/base/file-uploader'import { FILE_EXTS } from '@/app/components/base/prompt-editor/constants'import TagInput from '@/app/components/base/tag-input'-import { cn } from '@/utils/classnames'import { SupportUploadFileTypes } from '../../../types'type Props = {@@ -37,7 +37,7 @@ const FileTypeItem: FC<Props> = ({return (<divclassName={cn(- 'cursor-pointer select-none rounded-lg border border-components-option-card-option-border bg-components-option-card-option-bg',+ 'cursor-pointer rounded-lg border border-components-option-card-option-border bg-components-option-card-option-bg select-none',!isCustomSelected && 'px-3 py-2',selected && 'border-[1.5px] border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg',!selected && 'hover:border-components-option-card-option-border-hover hover:bg-components-option-card-option-bg-hover',@@ -49,7 +49,7 @@ const FileTypeItem: FC<Props> = ({<div><div className="flex items-center border-b border-divider-subtle p-3 pb-2"><FileTypeIcon className="shrink-0" type={type} size="lg" />- <div className="system-sm-medium mx-2 grow text-text-primary">{t(`variableConfig.file.${type}.name`, { ns: 'appDebug' })}</div>+ <div className="mx-2 grow system-sm-medium text-text-primary">{t(`variableConfig.file.${type}.name`, { ns: 'appDebug' })}</div><Checkbox className="shrink-0" checked={selected} /></div><div className="p-3" onClick={e => e.stopPropagation()}>@@ -66,7 +66,7 @@ const FileTypeItem: FC<Props> = ({<FileTypeIcon className="shrink-0" type={type} size="lg" /><div className="mx-2 grow"><div className="system-sm-medium text-text-primary">{t(`variableConfig.file.${type}.name`, { ns: 'appDebug' })}</div>- <div className="system-2xs-regular-uppercase mt-1 text-text-tertiary">{type !== SupportUploadFileTypes.custom ? FILE_EXTS[type].join(', ') : t('variableConfig.file.custom.description', { ns: 'appDebug' })}</div>+ <div className="mt-1 system-2xs-regular-uppercase text-text-tertiary">{type !== SupportUploadFileTypes.custom ? FILE_EXTS[type].join(', ') : t('variableConfig.file.custom.description', { ns: 'appDebug' })}</div></div><Checkbox className="shrink-0" checked={selected} /></div>diff --git a/web/app/components/workflow/nodes/_base/components/form-input-boolean.tsx b/web/app/components/workflow/nodes/_base/components/form-input-boolean.tsxindex f5f82f8a713..6873d4f11df 100644--- a/web/app/components/workflow/nodes/_base/components/form-input-boolean.tsx+++ b/web/app/components/workflow/nodes/_base/components/form-input-boolean.tsx@@ -1,6 +1,6 @@'use client'import type { FC } from 'react'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'type Props = {value: boolean@@ -15,9 +15,9 @@ const FormInputBoolean: FC<Props> = ({<div className="flex w-full space-x-1"><divclassName={cn(- 'system-sm-regular flex h-8 grow cursor-default items-center justify-center rounded-md border border-components-option-card-option-border bg-components-option-card-option-bg px-2 text-text-secondary',+ 'flex h-8 grow cursor-default items-center justify-center rounded-md border border-components-option-card-option-border bg-components-option-card-option-bg px-2 system-sm-regular text-text-secondary',!value && 'cursor-pointer hover:border-components-option-card-option-border-hover hover:bg-components-option-card-option-bg-hover hover:shadow-xs',- value && 'system-sm-medium border-[1.5px] border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg shadow-xs',+ value && 'border-[1.5px] border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg system-sm-medium shadow-xs',)}onClick={() => onChange(true)}>@@ -25,9 +25,9 @@ const FormInputBoolean: FC<Props> = ({</div><divclassName={cn(- 'system-sm-regular flex h-8 grow cursor-default items-center justify-center rounded-md border border-components-option-card-option-border bg-components-option-card-option-bg px-2 text-text-secondary',+ 'flex h-8 grow cursor-default items-center justify-center rounded-md border border-components-option-card-option-border bg-components-option-card-option-bg px-2 system-sm-regular text-text-secondary',value && 'cursor-pointer hover:border-components-option-card-option-border-hover hover:bg-components-option-card-option-bg-hover hover:shadow-xs',- !value && 'system-sm-medium border-[1.5px] border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg shadow-xs',+ !value && 'border-[1.5px] border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg system-sm-medium shadow-xs',)}onClick={() => onChange(false)}>diff --git a/web/app/components/workflow/nodes/_base/components/form-input-item.sections.tsx b/web/app/components/workflow/nodes/_base/components/form-input-item.sections.tsxindex e44e4cf8e76..84cfb4629d1 100644--- a/web/app/components/workflow/nodes/_base/components/form-input-item.sections.tsx+++ b/web/app/components/workflow/nodes/_base/components/form-input-item.sections.tsx@@ -4,10 +4,10 @@ import type { FC, ReactElement } from 'react'import type { SelectItem } from './form-input-item.helpers'import { Listbox, ListboxButton, ListboxOption, ListboxOptions } from '@headlessui/react'import { ChevronDownIcon } from '@heroicons/react/20/solid'+import { cn } from '@langgenius/dify-ui/cn'import { RiCheckLine, RiLoader4Line } from '@remixicon/react'import CodeEditor from '@/app/components/workflow/nodes/_base/components/editor/code-editor'import { CodeLanguage } from '@/app/components/workflow/nodes/code/types'-import { cn } from '@/utils/classnames'type MultiSelectFieldProps = {disabled: boolean@@ -64,7 +64,7 @@ export const MultiSelectField: FC<MultiSelectFieldProps> = ({return (<Listbox multiple value={value} onChange={onChange} disabled={disabled}><div className="group/simple-select relative h-8 grow">- <ListboxButton className="flex h-full w-full cursor-pointer items-center rounded-lg border-0 bg-components-input-bg-normal pl-3 pr-10 focus-visible:bg-state-base-hover-alt focus-visible:outline-hidden group-hover/simple-select:bg-state-base-hover-alt sm:text-sm sm:leading-6">+ <ListboxButton className="flex h-full w-full cursor-pointer items-center rounded-lg border-0 bg-components-input-bg-normal pr-10 pl-3 group-hover/simple-select:bg-state-base-hover-alt focus-visible:bg-state-base-hover-alt focus-visible:outline-hidden sm:text-sm sm:leading-6"><span className={textClassName}>{renderLabel()}</span>@@ -78,7 +78,7 @@ export const MultiSelectField: FC<MultiSelectFieldProps> = ({key={item.value}value={item.value}className={({ focus }) =>- cn('relative cursor-pointer select-none rounded-lg py-2 pl-3 pr-9 text-text-secondary hover:bg-state-base-hover', focus && 'bg-state-base-hover')}+ cn('relative cursor-pointer rounded-lg py-2 pr-9 pl-3 text-text-secondary select-none hover:bg-state-base-hover', focus && 'bg-state-base-hover')}>{({ selected }) => (<>diff --git a/web/app/components/workflow/nodes/_base/components/form-input-item.tsx b/web/app/components/workflow/nodes/_base/components/form-input-item.tsxindex 3cc29995b85..d2e22075e79 100644--- a/web/app/components/workflow/nodes/_base/components/form-input-item.tsx+++ b/web/app/components/workflow/nodes/_base/components/form-input-item.tsx@@ -5,6 +5,7 @@ import type { CredentialFormSchema, FormOption, FormTypeEnum } from '@/app/compoimport type { Event, Tool } from '@/app/components/tools/types'import type { TriggerWithProvider } from '@/app/components/workflow/block-selector/types'import type { ToolWithProvider, ValueSelector, Var } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { useEffect, useMemo, useState } from 'react'import CheckboxList from '@/app/components/base/checkbox-list'import Input from '@/app/components/base/input'@@ -19,7 +20,6 @@ import MixedVariableTextInput from '@/app/components/workflow/nodes/tool/componeimport { VarType } from '@/app/components/workflow/types'import { useFetchDynamicOptions } from '@/service/use-plugins'import { useTriggerPluginDynamicOptions } from '@/service/use-triggers'-import { cn } from '@/utils/classnames'import { VarKindType } from '../types'import FormInputBoolean from './form-input-boolean'import {diff --git a/web/app/components/workflow/nodes/_base/components/form-input-type-switch.tsx b/web/app/components/workflow/nodes/_base/components/form-input-type-switch.tsxindex 6a42637a594..b87b2b533a3 100644--- a/web/app/components/workflow/nodes/_base/components/form-input-type-switch.tsx+++ b/web/app/components/workflow/nodes/_base/components/form-input-type-switch.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {RiEditLine,} from '@remixicon/react'@@ -7,7 +8,6 @@ import { useTranslation } from 'react-i18next'import { Variable02 } from '@/app/components/base/icons/src/vender/solid/development'import Tooltip from '@/app/components/base/tooltip'import { VarType } from '@/app/components/workflow/nodes/tool/types'-import { cn } from '@/utils/classnames'type Props = {value: VarType@@ -20,7 +20,7 @@ const FormInputTypeSwitch: FC<Props> = ({}) => {const { t } = useTranslation()return (- <div className="inline-flex h-8 shrink-0 gap-px radius-lg bg-components-segmented-control-bg-normal p-0.5">+ <div className="inline-flex h-8 shrink-0 gap-px rounded-[10px] bg-components-segmented-control-bg-normal p-0.5"><TooltippopupContent={value === VarType.variable ? '' : t('nodes.common.typeSwitch.variable', { ns: 'workflow' })}>diff --git a/web/app/components/workflow/nodes/_base/components/group.tsx b/web/app/components/workflow/nodes/_base/components/group.tsxindex 3e14b96363b..9db006561f6 100644--- a/web/app/components/workflow/nodes/_base/components/group.tsx+++ b/web/app/components/workflow/nodes/_base/components/group.tsx@@ -1,12 +1,12 @@import type { ComponentProps, FC, PropsWithChildren, ReactNode } from 'react'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'type GroupLabelProps = ComponentProps<'div'>export const GroupLabel: FC<GroupLabelProps> = (props) => {const { children, className, ...rest } = propsreturn (- <div {...rest} className={cn('system-2xs-medium-uppercase mb-1 text-text-tertiary', className)}>+ <div {...rest} className={cn('mb-1 system-2xs-medium-uppercase text-text-tertiary', className)}>{children}</div>)diff --git a/web/app/components/workflow/nodes/_base/components/input-support-select-var.tsx b/web/app/components/workflow/nodes/_base/components/input-support-select-var.tsxindex 9940eb7ed6b..8a09cd93660 100644--- a/web/app/components/workflow/nodes/_base/components/input-support-select-var.tsx+++ b/web/app/components/workflow/nodes/_base/components/input-support-select-var.tsx@@ -4,6 +4,7 @@ import type {Node,NodeOutPutVar,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { useBoolean } from 'ahooks'import { noop } from 'es-toolkit/function'import * as React from 'react'@@ -14,7 +15,6 @@ import PromptEditor from '@/app/components/base/prompt-editor'import Tooltip from '@/app/components/base/tooltip'import { useStore } from '@/app/components/workflow/store'import { BlockEnum } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'type Props = {instanceId?: string@@ -118,7 +118,7 @@ const Editor: FC<Props> = ({{/* to patch Editor not support dynamic change editable status */}{readOnly && <div className="absolute inset-0 z-10"></div>}{isFocus && (- <div className={cn('absolute z-10', insertVarTipToLeft ? 'left-[-12px] top-1.5' : 'right-1 top-[-9px]')}>+ <div className={cn('absolute z-10', insertVarTipToLeft ? 'top-1.5 left-[-12px]' : 'top-[-9px] right-1')}><TooltippopupContent={`${t('common.insertVarTip', { ns: 'workflow' })}`}>diff --git a/web/app/components/workflow/nodes/_base/components/install-plugin-button.tsx b/web/app/components/workflow/nodes/_base/components/install-plugin-button.tsxindex 21d4ade6ae3..f6e5434a2d5 100644--- a/web/app/components/workflow/nodes/_base/components/install-plugin-button.tsx+++ b/web/app/components/workflow/nodes/_base/components/install-plugin-button.tsx@@ -1,4 +1,5 @@import type { ComponentProps, MouseEventHandler } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiInstallLine, RiLoader2Line } from '@remixicon/react'import { useState } from 'react'import { useTranslation } from 'react-i18next'@@ -6,7 +7,6 @@ import { Button } from '@/app/components/base/ui/button'import checkTaskStatus from '@/app/components/plugins/install-plugin/base/check-task-status'import { TaskStatus } from '@/app/components/plugins/types'import { useCheckInstalled, useInstallPackageFromMarketPlace } from '@/service/use-plugins'-import { cn } from '@/utils/classnames'type InstallPluginButtonProps = Omit<ComponentProps<typeof Button>, 'children' | 'loading'> & {uniqueIdentifier: stringdiff --git a/web/app/components/workflow/nodes/_base/components/layout/box.tsx b/web/app/components/workflow/nodes/_base/components/layout/box.tsxindex 62e709efc60..467e40a1f7d 100644--- a/web/app/components/workflow/nodes/_base/components/layout/box.tsx+++ b/web/app/components/workflow/nodes/_base/components/layout/box.tsx@@ -1,6 +1,6 @@import type { ReactNode } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'-import { cn } from '@/utils/classnames'export type BoxProps = {className?: stringdiff --git a/web/app/components/workflow/nodes/_base/components/layout/field-title.tsx b/web/app/components/workflow/nodes/_base/components/layout/field-title.tsxindex 6df6946988f..5a478c25d3e 100644--- a/web/app/components/workflow/nodes/_base/components/layout/field-title.tsx+++ b/web/app/components/workflow/nodes/_base/components/layout/field-title.tsx@@ -1,10 +1,10 @@import type { ReactNode } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {memo,useState,} from 'react'import { Tooltip, TooltipContent, TooltipTrigger } from '@/app/components/base/ui/tooltip'-import { cn } from '@/utils/classnames'export type FieldTitleProps = {title?: string@@ -42,10 +42,10 @@ export const FieldTitle = memo(({}}}>- <div className="flex items-center text-text-secondary system-sm-semibold-uppercase">+ <div className="flex items-center system-sm-semibold-uppercase text-text-secondary"><span className="relative">{warningDot && (- <span className="absolute -left-[9px] top-1/2 size-[5px] -translate-y-1/2 rounded-full bg-text-warning-secondary" />+ <span className="absolute top-1/2 -left-[9px] size-[5px] -translate-y-1/2 rounded-full bg-text-warning-secondary" />)}{title}</span>diff --git a/web/app/components/workflow/nodes/_base/components/layout/group.tsx b/web/app/components/workflow/nodes/_base/components/layout/group.tsxindex 6e35cb7b69a..16b8c5072c8 100644--- a/web/app/components/workflow/nodes/_base/components/layout/group.tsx+++ b/web/app/components/workflow/nodes/_base/components/layout/group.tsx@@ -1,6 +1,6 @@import type { ReactNode } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'-import { cn } from '@/utils/classnames'export type GroupProps = {className?: stringdiff --git a/web/app/components/workflow/nodes/_base/components/list-no-data-placeholder.tsx b/web/app/components/workflow/nodes/_base/components/list-no-data-placeholder.tsxindex 32092b97d7b..cc801378b2c 100644--- a/web/app/components/workflow/nodes/_base/components/list-no-data-placeholder.tsx+++ b/web/app/components/workflow/nodes/_base/components/list-no-data-placeholder.tsx@@ -10,7 +10,7 @@ const ListNoDataPlaceholder: FC<Props> = ({children,}) => {return (- <div className="system-xs-regular flex min-h-[42px] w-full items-center justify-center radius-lg bg-background-section text-text-tertiary">+ <div className="flex min-h-[42px] w-full items-center justify-center rounded-[10px] bg-background-section system-xs-regular text-text-tertiary">{children}</div>)diff --git a/web/app/components/workflow/nodes/_base/components/memory-config.tsx b/web/app/components/workflow/nodes/_base/components/memory-config.tsxindex 9ee522e54fd..02d35506269 100644--- a/web/app/components/workflow/nodes/_base/components/memory-config.tsx+++ b/web/app/components/workflow/nodes/_base/components/memory-config.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { Memory } from '../../../types'+import { cn } from '@langgenius/dify-ui/cn'import { produce } from 'immer'import * as React from 'react'import { useCallback } from 'react'@@ -9,7 +10,6 @@ import Input from '@/app/components/base/input'import Switch from '@/app/components/base/switch'import { Slider } from '@/app/components/base/ui/slider'import Field from '@/app/components/workflow/nodes/_base/components/field'-import { cn } from '@/utils/classnames'import { MemoryRole } from '../../../types'const i18nPrefix = 'nodes.common.memory'@@ -154,7 +154,7 @@ const MemoryConfig: FC<Props> = ({size="md"disabled={readonly}/>- <div className="text-text-tertiary system-xs-medium-uppercase">{t(`${i18nPrefix}.windowSize`, { ns: 'workflow' })}</div>+ <div className="system-xs-medium-uppercase text-text-tertiary">{t(`${i18nPrefix}.windowSize`, { ns: 'workflow' })}</div></div><div className="flex h-8 items-center space-x-2"><Slider@@ -183,7 +183,7 @@ const MemoryConfig: FC<Props> = ({</div>{canSetRoleName && (<div className="mt-4">- <div className="text-xs font-medium uppercase leading-6 text-text-tertiary">{t(`${i18nPrefix}.conversationRoleName`, { ns: 'workflow' })}</div>+ <div className="text-xs leading-6 font-medium text-text-tertiary uppercase">{t(`${i18nPrefix}.conversationRoleName`, { ns: 'workflow' })}</div><div className="mt-1 space-y-2"><RoleItemreadonly={readonly}diff --git a/web/app/components/workflow/nodes/_base/components/mixed-variable-text-input/index.tsx b/web/app/components/workflow/nodes/_base/components/mixed-variable-text-input/index.tsxindex 4fe0dc8cb50..ac2ee98c760 100644--- a/web/app/components/workflow/nodes/_base/components/mixed-variable-text-input/index.tsx+++ b/web/app/components/workflow/nodes/_base/components/mixed-variable-text-input/index.tsx@@ -2,13 +2,13 @@ import type {Node,NodeOutPutVar,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {memo,} from 'react'import { useTranslation } from 'react-i18next'import PromptEditor from '@/app/components/base/prompt-editor'import { BlockEnum } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import Placeholder from './placeholder'type MixedVariableTextInputProps = {diff --git a/web/app/components/workflow/nodes/_base/components/next-step/container.tsx b/web/app/components/workflow/nodes/_base/components/next-step/container.tsxindex fe573f14a5e..6f374d58aef 100644--- a/web/app/components/workflow/nodes/_base/components/next-step/container.tsx+++ b/web/app/components/workflow/nodes/_base/components/next-step/container.tsx@@ -2,7 +2,7 @@ import type {CommonNodeType,Node,} from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'import Add from './add'import Item from './item'@@ -25,7 +25,7 @@ const Container = ({}: ContainerProps) => {return (<div className={cn(- 'space-y-0.5 radius-lg bg-background-section-burn p-0.5',+ 'space-y-0.5 rounded-[10px] bg-background-section-burn p-0.5',isFailBranch && 'border-[0.5px] border-state-warning-hover-alt bg-state-warning-hover',)}>@@ -33,7 +33,7 @@ const Container = ({branchName && (<divclassName={cn(- 'system-2xs-semibold-uppercase flex items-center truncate px-2 text-text-tertiary',+ 'flex items-center truncate px-2 system-2xs-semibold-uppercase text-text-tertiary',isFailBranch && 'text-text-warning',)}title={branchName}diff --git a/web/app/components/workflow/nodes/_base/components/next-step/item.tsx b/web/app/components/workflow/nodes/_base/components/next-step/item.tsxindex 023f210108c..eca48d85fd8 100644--- a/web/app/components/workflow/nodes/_base/components/next-step/item.tsx+++ b/web/app/components/workflow/nodes/_base/components/next-step/item.tsx@@ -1,6 +1,7 @@import type {CommonNodeType,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {memo,useCallback,@@ -14,7 +15,6 @@ import {useNodesReadOnly,useToolIcon,} from '@/app/components/workflow/hooks'-import { cn } from '@/utils/classnames'import Operator from './operator'type ItemProps = {diff --git a/web/app/components/workflow/nodes/_base/components/node-handle.tsx b/web/app/components/workflow/nodes/_base/components/node-handle.tsxindex 578d8b27e8f..0bcdfc0f46e 100644--- a/web/app/components/workflow/nodes/_base/components/node-handle.tsx+++ b/web/app/components/workflow/nodes/_base/components/node-handle.tsx@@ -1,6 +1,7 @@import type { MouseEvent } from 'react'import type { PluginDefaultValue } from '../../../block-selector/types'import type { Node } from '../../../types'+import { cn } from '@langgenius/dify-ui/cn'import {memo,useCallback,@@ -12,7 +13,6 @@ import {Handle,Position,} from 'reactflow'-import { cn } from '@/utils/classnames'import BlockSelector from '../../../block-selector'import {useAvailableBlocks,@@ -79,7 +79,7 @@ export const NodeTargetHandle = memo(({position={Position.Left}className={cn('z-1 h-4! w-4! rounded-none! border-none! bg-transparent! outline-hidden!',- 'after:absolute after:left-1.5 after:top-1 after:h-2 after:w-0.5 after:bg-workflow-link-line-handle',+ 'after:absolute after:top-1 after:left-1.5 after:h-2 after:w-0.5 after:bg-workflow-link-line-handle','transition-all hover:scale-125',data._runningStatus === NodeRunningStatus.Succeeded && 'after:bg-workflow-link-line-success-handle',data._runningStatus === NodeRunningStatus.Failed && 'after:bg-workflow-link-line-error-handle',@@ -190,7 +190,7 @@ export const NodeSourceHandle = memo(({position={Position.Right}className={cn('group/handle z-1 h-4! w-4! rounded-none! border-none! bg-transparent! outline-hidden!',- 'after:absolute after:right-1.5 after:top-1 after:h-2 after:w-0.5 after:bg-workflow-link-line-handle',+ 'after:absolute after:top-1 after:right-1.5 after:h-2 after:w-0.5 after:bg-workflow-link-line-handle','transition-all hover:scale-125',data._runningStatus === NodeRunningStatus.Succeeded && 'after:bg-workflow-link-line-success-handle',data._runningStatus === NodeRunningStatus.Failed && 'after:bg-workflow-link-line-error-handle',@@ -203,7 +203,7 @@ export const NodeSourceHandle = memo(({><div className="absolute -top-1 left-1/2 hidden -translate-x-1/2 -translate-y-full rounded-lg border-[0.5px] border-components-panel-border bg-components-tooltip-bg p-1.5 shadow-lg group-hover/handle:block"><div className="system-xs-regular text-text-tertiary">- <div className=" whitespace-nowrap">+ <div className="whitespace-nowrap"><span className="system-xs-medium text-text-secondary">{t('common.parallelTip.click.title', { ns: 'workflow' })}</span>{t('common.parallelTip.click.desc', { ns: 'workflow' })}</div>diff --git a/web/app/components/workflow/nodes/_base/components/node-resizer.tsx b/web/app/components/workflow/nodes/_base/components/node-resizer.tsxindex c9be0f4d0f6..398796f6175 100644--- a/web/app/components/workflow/nodes/_base/components/node-resizer.tsx+++ b/web/app/components/workflow/nodes/_base/components/node-resizer.tsx@@ -1,11 +1,11 @@import type { OnResize } from 'reactflow'import type { CommonNodeType } from '../../../types'+import { cn } from '@langgenius/dify-ui/cn'import {memo,useCallback,} from 'react'import { NodeResizeControl } from 'reactflow'-import { cn } from '@/utils/classnames'import { useNodesInteractions } from '../../../hooks'const Icon = () => {@@ -52,7 +52,7 @@ const NodeResizer = ({minHeight={minHeight}maxWidth={maxWidth}>- <div className="absolute bottom-px right-px">{icon}</div>+ <div className="absolute right-px bottom-px">{icon}</div></NodeResizeControl></div>)diff --git a/web/app/components/workflow/nodes/_base/components/node-status-icon.tsx b/web/app/components/workflow/nodes/_base/components/node-status-icon.tsxindex 26fc3352b7a..4ee20b5d111 100644--- a/web/app/components/workflow/nodes/_base/components/node-status-icon.tsx+++ b/web/app/components/workflow/nodes/_base/components/node-status-icon.tsx@@ -1,10 +1,10 @@+import { cn } from '@langgenius/dify-ui/cn'import {RiAlertFill,RiCheckboxCircleFill,RiErrorWarningLine,RiLoader2Line,} from '@remixicon/react'-import { cn } from '@/utils/classnames'type NodeStatusIconProps = {status: stringdiff --git a/web/app/components/workflow/nodes/_base/components/option-card.tsx b/web/app/components/workflow/nodes/_base/components/option-card.tsxindex d9deb2ab7bb..dd8ad514371 100644--- a/web/app/components/workflow/nodes/_base/components/option-card.tsx+++ b/web/app/components/workflow/nodes/_base/components/option-card.tsx@@ -1,11 +1,11 @@'use client'import type { VariantProps } from 'class-variance-authority'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { cva } from 'class-variance-authority'import * as React from 'react'import { useCallback } from 'react'import Tooltip from '@/app/components/base/tooltip'-import { cn } from '@/utils/classnames'const variants = cva([], {variants: {@@ -48,9 +48,9 @@ const OptionCard: FC<Props> = ({return (<divclassName={cn(- 'system-sm-regular flex h-8 cursor-default items-center rounded-md border border-components-option-card-option-border bg-components-option-card-option-bg px-2 text-text-secondary',+ 'flex h-8 cursor-default items-center rounded-md border border-components-option-card-option-border bg-components-option-card-option-bg px-2 system-sm-regular text-text-secondary',(!selected && !disabled) && 'cursor-pointer hover:border-components-option-card-option-border-hover hover:bg-components-option-card-option-bg-hover hover:shadow-xs',- selected && 'system-sm-medium border-[1.5px] border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg shadow-xs',+ selected && 'border-[1.5px] border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg system-sm-medium shadow-xs',disabled && 'text-text-disabled',variants({ align }),className,diff --git a/web/app/components/workflow/nodes/_base/components/output-vars.tsx b/web/app/components/workflow/nodes/_base/components/output-vars.tsxindex d23cdee3a82..c5a25f140da 100644--- a/web/app/components/workflow/nodes/_base/components/output-vars.tsx+++ b/web/app/components/workflow/nodes/_base/components/output-vars.tsx@@ -1,9 +1,9 @@'use client'import type { FC, ReactNode } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import { FieldCollapse } from '@/app/components/workflow/nodes/_base/components/collapse'-import { cn } from '@/utils/classnames'import TreeIndentLine from './variable/object-child-tree-panel/tree-indent-line'type Props = {@@ -60,10 +60,10 @@ export const VarItem: FC<VarItemProps> = ({<div className="flex"><div className="flex items-center leading-[18px]"><div className="code-sm-semibold text-text-secondary">{name}</div>- <div className="system-xs-regular ml-2 text-text-tertiary">{type}</div>+ <div className="ml-2 system-xs-regular text-text-tertiary">{type}</div></div></div>- <div className="system-xs-regular mt-0.5 text-text-tertiary">+ <div className="mt-0.5 system-xs-regular text-text-tertiary">{description}{subItems && (<div className="ml-2 border-l border-gray-200 pl-2">diff --git a/web/app/components/workflow/nodes/_base/components/prompt/editor.tsx b/web/app/components/workflow/nodes/_base/components/prompt/editor.tsxindex 49c9a4fa69c..e85c40c19e5 100644--- a/web/app/components/workflow/nodes/_base/components/prompt/editor.tsx+++ b/web/app/components/workflow/nodes/_base/components/prompt/editor.tsx@@ -6,6 +6,7 @@ import type {NodeOutPutVar,Variable,} from '../../../../types'+import { cn } from '@langgenius/dify-ui/cn'import {RiDeleteBinLine,} from '@remixicon/react'@@ -14,8 +15,8 @@ import copy from 'copy-to-clipboard'import * as React from 'react'import { useCallback, useRef } from 'react'import { useTranslation } from 'react-i18next'-import ActionButton from '@/app/components/base/action-button'+import ActionButton from '@/app/components/base/action-button'import {Copy,CopyCheck,@@ -32,7 +33,6 @@ import ToggleExpandBtn from '@/app/components/workflow/nodes/_base/components/toimport useToggleExpend from '@/app/components/workflow/nodes/_base/hooks/use-toggle-expend'import { useStore } from '@/app/components/workflow/store'import { useEventEmitterContextContext } from '@/context/event-emitter'-import { cn } from '@/utils/classnames'import { BlockEnum, EditionType } from '../../../../types'import { CodeLanguage } from '../../../code/types'import PromptGeneratorBtn from '../../../llm/components/prompt-generator-btn'@@ -158,9 +158,9 @@ const Editor: FC<Props> = ({<Wrap className={cn(className, wrapClassName)} style={wrapStyle} isInNode isExpand={isExpand}><div ref={ref} className={cn(isFocus ? (gradientBorder && 'bg-linear-to-r from-components-input-border-active-prompt-1 to-components-input-border-active-prompt-2') : 'bg-transparent', isExpand && 'h-full', 'rounded-[9px]! p-0.5', containerClassName)}><div className={cn(isFocus ? 'bg-background-default' : 'bg-components-input-bg-normal', isExpand && 'flex h-full flex-col', 'rounded-lg', containerClassName)}>- <div className={cn('flex items-center justify-between pl-3 pr-2 pt-1', headerClassName)}>+ <div className={cn('flex items-center justify-between pt-1 pr-2 pl-3', headerClassName)}><div className="flex gap-2">- <div className={cn('text-xs font-semibold uppercase leading-4 text-text-secondary', titleClassName)}>+ <div className={cn('text-xs leading-4 font-semibold text-text-secondary uppercase', titleClassName)}>{title}{' '}{required && <span className="text-text-destructive">*</span>}@@ -168,7 +168,7 @@ const Editor: FC<Props> = ({{!!titleTooltip && <Tooltip popupContent={titleTooltip} />}</div><div className="flex items-center">- <div className="text-xs font-medium leading-[18px] text-text-tertiary">{value?.length || 0}</div>+ <div className="text-xs leading-[18px] font-medium text-text-tertiary">{value?.length || 0}</div>{isSupportPromptGenerator && (<PromptGeneratorBtnnodeId={nodeId!}@@ -180,7 +180,7 @@ const Editor: FC<Props> = ({/>)}- <div className="ml-2 mr-2 h-3 w-px bg-divider-regular"></div>+ <div className="mr-2 ml-2 h-3 w-px bg-divider-regular"></div>{/* Operations */}<div className="flex items-center space-x-[2px]">{isSupportJinja && (diff --git a/web/app/components/workflow/nodes/_base/components/readonly-input-with-select-var.tsx b/web/app/components/workflow/nodes/_base/components/readonly-input-with-select-var.tsxindex b9a980ae013..bba7cfa7fc7 100644--- a/web/app/components/workflow/nodes/_base/components/readonly-input-with-select-var.tsx+++ b/web/app/components/workflow/nodes/_base/components/readonly-input-with-select-var.tsx@@ -1,10 +1,10 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import {VariableLabelInText,} from '@/app/components/workflow/nodes/_base/components/variable/variable-label'-import { cn } from '@/utils/classnames'import { useWorkflow } from '../../../hooks'import { BlockEnum } from '../../../types'import { getNodeInfoById, isSystemVar } from './variable/utils'@@ -60,7 +60,7 @@ const ReadonlyInputWithSelectVar: FC<Props> = ({})()return (- <div className={cn('break-all text-xs', className)}>+ <div className={cn('text-xs break-all', className)}>{res}</div>)diff --git a/web/app/components/workflow/nodes/_base/components/retry/retry-on-node.tsx b/web/app/components/workflow/nodes/_base/components/retry/retry-on-node.tsxindex c88baf44133..4ff699fb88b 100644--- a/web/app/components/workflow/nodes/_base/components/retry/retry-on-node.tsx+++ b/web/app/components/workflow/nodes/_base/components/retry/retry-on-node.tsx@@ -1,4 +1,5 @@import type { Node } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiAlertFill,RiCheckboxCircleFill,@@ -7,7 +8,6 @@ import {import { useMemo } from 'react'import { useTranslation } from 'react-i18next'import { NodeRunningStatus } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'type RetryOnNodeProps = Pick<Node, 'id' | 'data'>const RetryOnNode = ({@@ -40,7 +40,7 @@ const RetryOnNode = ({return (<div className="mb-1 px-3"><div className={cn(- 'system-xs-medium-uppercase flex items-center justify-between rounded-md border-[0.5px] border-transparent bg-workflow-block-parma-bg px-[5px] py-1 text-text-tertiary',+ 'flex items-center justify-between rounded-md border-[0.5px] border-transparent bg-workflow-block-parma-bg px-[5px] py-1 system-xs-medium-uppercase text-text-tertiary',isRunning && 'border-state-accent-active bg-state-accent-hover text-text-accent',isSuccessful && 'border-state-success-active bg-state-success-hover text-text-success',(isException || isFailed) && 'border-state-warning-active bg-state-warning-hover text-text-warning',diff --git a/web/app/components/workflow/nodes/_base/components/selector.tsx b/web/app/components/workflow/nodes/_base/components/selector.tsxindex 60498a4a6a6..52508acf852 100644--- a/web/app/components/workflow/nodes/_base/components/selector.tsx+++ b/web/app/components/workflow/nodes/_base/components/selector.tsx@@ -1,10 +1,10 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { useBoolean, useClickAway } from 'ahooks'import * as React from 'react'import { ChevronSelectorVertical } from '@/app/components/base/icons/src/vender/line/arrows'import { Check } from '@/app/components/base/icons/src/vender/line/general'-import { cn } from '@/utils/classnames'type Item = {value: string@@ -66,15 +66,15 @@ const TypeSelector: FC<Props> = ({: (<divonClick={toggleShow}- className={cn(showOption && 'bg-state-base-hover', 'flex h-5 cursor-pointer items-center rounded-md pl-1 pr-0.5 text-xs font-semibold text-text-secondary hover:bg-state-base-hover')}+ className={cn(showOption && 'bg-state-base-hover', 'flex h-5 cursor-pointer items-center rounded-md pr-0.5 pl-1 text-xs font-semibold text-text-secondary hover:bg-state-base-hover')}><div className={cn('text-sm font-semibold', uppercase && 'uppercase', noValue && 'text-text-tertiary', triggerClassName)}>{!noValue ? item?.label : placeholder}</div>- {!readonly && <DropDownIcon className="h-3 w-3 " />}+ {!readonly && <DropDownIcon className="h-3 w-3" />}</div>)}{(showOption && !readonly) && (- <div className={cn('absolute top-[24px] z-10 w-[120px] select-none rounded-lg border border-components-panel-border bg-components-panel-bg p-1 shadow-lg', popupClassName)}>+ <div className={cn('absolute top-[24px] z-10 w-[120px] rounded-lg border border-components-panel-border bg-components-panel-bg p-1 shadow-lg select-none', popupClassName)}>{list.map(item => (<divkey={item.value}diff --git a/web/app/components/workflow/nodes/_base/components/setting-item.tsx b/web/app/components/workflow/nodes/_base/components/setting-item.tsxindex 92be07e2d38..feea50cd186 100644--- a/web/app/components/workflow/nodes/_base/components/setting-item.tsx+++ b/web/app/components/workflow/nodes/_base/components/setting-item.tsx@@ -1,8 +1,8 @@import type { ComponentProps, PropsWithChildren, ReactNode } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'import Tooltip from '@/app/components/base/tooltip'import Indicator from '@/app/components/header/indicator'-import { cn } from '@/utils/classnames'type SettingItemProps = PropsWithChildren<{label: string@@ -15,15 +15,15 @@ export const SettingItem = memo(({ label, children, status, tooltip }: SettingItconst needTooltip = ['error', 'warning'].includes(status as any)return (<div className="relative flex items-center justify-between space-x-1 rounded-md bg-workflow-block-parma-bg px-1.5 py-1 text-xs font-normal">- <div className={cn('system-xs-medium-uppercase max-w-full shrink-0 truncate text-text-tertiary', !!children && 'max-w-[100px]')}>+ <div className={cn('max-w-full shrink-0 truncate system-xs-medium-uppercase text-text-tertiary', !!children && 'max-w-[100px]')}>{label}</div><Tooltip popupContent={tooltip} disabled={!needTooltip}>- <div className="system-xs-medium truncate text-right text-text-secondary">+ <div className="truncate text-right system-xs-medium text-text-secondary">{children}</div></Tooltip>- {indicator && <Indicator color={indicator} className="absolute -right-0.5 -top-0.5" />}+ {indicator && <Indicator color={indicator} className="absolute -top-0.5 -right-0.5" />}</div>)})diff --git a/web/app/components/workflow/nodes/_base/components/split.tsx b/web/app/components/workflow/nodes/_base/components/split.tsxindex 5cb5153c955..65c5e4ad69a 100644--- a/web/app/components/workflow/nodes/_base/components/split.tsx+++ b/web/app/components/workflow/nodes/_base/components/split.tsx@@ -1,7 +1,7 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'type Props = {className?: stringdiff --git a/web/app/components/workflow/nodes/_base/components/support-var-input/index.tsx b/web/app/components/workflow/nodes/_base/components/support-var-input/index.tsxindex 377e1d8bc51..77dd9d4c377 100644--- a/web/app/components/workflow/nodes/_base/components/support-var-input/index.tsx+++ b/web/app/components/workflow/nodes/_base/components/support-var-input/index.tsx@@ -1,8 +1,8 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import VarHighlight from '@/app/components/app/configuration/base/var-highlight'-import { cn } from '@/utils/classnames'type Props = {isFocus?: booleandiff --git a/web/app/components/workflow/nodes/_base/components/switch-plugin-version.tsx b/web/app/components/workflow/nodes/_base/components/switch-plugin-version.tsxindex d73baf32716..f279b55d035 100644--- a/web/app/components/workflow/nodes/_base/components/switch-plugin-version.tsx+++ b/web/app/components/workflow/nodes/_base/components/switch-plugin-version.tsx@@ -1,6 +1,7 @@'use client'import type { FC, ReactNode } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowLeftRightLine, RiExternalLinkLine } from '@remixicon/react'import { useBoolean } from 'ahooks'import { useCallback, useState } from 'react'@@ -14,7 +15,6 @@ import PluginMutationModel from '@/app/components/plugins/plugin-mutation-model'import PluginVersionPicker from '@/app/components/plugins/update-plugin/plugin-version-picker'import Link from '@/next/link'import { useCheckInstalled, useUpdatePackageFromMarketPlace } from '@/service/use-plugins'-import { cn } from '@/utils/classnames'import { getMarketplaceUrl } from '@/utils/var'type SwitchPluginVersionProps = {diff --git a/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/picker/field.tsx b/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/picker/field.tsxindex 3a748a131b4..717d8afbe70 100644--- a/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/picker/field.tsx+++ b/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/picker/field.tsx@@ -2,11 +2,11 @@import type { FC } from 'react'import type { Field as FieldType } from '../../../../../llm/types'import type { ValueSelector } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiMoreFill } from '@remixicon/react'import * as React from 'react'import { useTranslation } from 'react-i18next'import Tooltip from '@/app/components/base/tooltip'-import { cn } from '@/utils/classnames'import { Type } from '../../../../../llm/types'import { getFieldType } from '../../../../../llm/utils'import TreeIndentLine from '../tree-indent-line'@@ -49,11 +49,11 @@ const Field: FC<Props> = ({? (<RiMoreFill className="h-3 w-3 text-text-tertiary" />)- : (<div className={cn('system-sm-medium h-6 w-0 grow truncate leading-6 text-text-secondary', isHighlight && 'text-text-accent')}>{name}</div>)}+ : (<div className={cn('h-6 w-0 grow truncate system-sm-medium leading-6 text-text-secondary', isHighlight && 'text-text-accent')}>{name}</div>)}</div>{depth < MAX_DEPTH + 1 && (- <div className="system-xs-regular ml-2 shrink-0 text-text-tertiary">{getFieldType(payload)}</div>+ <div className="ml-2 shrink-0 system-xs-regular text-text-tertiary">{getFieldType(payload)}</div>)}</div></Tooltip>diff --git a/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/picker/index.tsx b/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/picker/index.tsxindex b29b1a6992b..5cfb96fee46 100644--- a/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/picker/index.tsx+++ b/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/picker/index.tsx@@ -2,10 +2,10 @@import type { FC } from 'react'import type { StructuredOutput } from '../../../../../llm/types'import type { ValueSelector } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { useHover } from 'ahooks'import * as React from 'react'import { useRef } from 'react'-import { cn } from '@/utils/classnames'import Field from './field'type Props = {@@ -47,13 +47,13 @@ export const PickerPanelMain: FC<Props> = ({<div className="flex">{root.nodeName && (<>- <div className="system-sm-medium max-w-[100px] truncate text-text-tertiary">{root.nodeName}</div>+ <div className="max-w-[100px] truncate system-sm-medium text-text-tertiary">{root.nodeName}</div><div className="system-sm-medium text-text-tertiary">.</div></>)}<div className="system-sm-medium text-text-secondary">{root.attrName}</div></div>- <div className="system-xs-regular ml-2 truncate text-text-tertiary" title={root.attrAlias || 'object'}>{root.attrAlias || 'object'}</div>+ <div className="ml-2 truncate system-xs-regular text-text-tertiary" title={root.attrAlias || 'object'}>{root.attrAlias || 'object'}</div></div>{fieldNames.map(name => (<Fielddiff --git a/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/show/field.tsx b/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/show/field.tsxindex b5f2a6067c4..863ec66eaba 100644--- a/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/show/field.tsx+++ b/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/show/field.tsx@@ -1,11 +1,11 @@'use client'import type { FC } from 'react'import type { Field as FieldType } from '../../../../../llm/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDropDownLine } from '@remixicon/react'import { useBoolean } from 'ahooks'import * as React from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import { Type } from '../../../../../llm/types'import { getFieldType } from '../../../../../llm/utils'import TreeIndentLine from '../tree-indent-line'@@ -40,25 +40,25 @@ const Field: FC<Props> = ({<div className="relative flex select-none">{hasChildren && (<RiArrowDropDownLine- className={cn('absolute left-[-18px] top-[50%] h-4 w-4 translate-y-[-50%] cursor-pointer bg-components-panel-bg text-text-tertiary', fold && 'rotate-270 text-text-accent')}+ className={cn('absolute top-[50%] left-[-18px] h-4 w-4 translate-y-[-50%] cursor-pointer bg-components-panel-bg text-text-tertiary', fold && 'rotate-270 text-text-accent')}onClick={toggleFold}/>)}- <div className={cn('system-sm-medium ml-[7px] h-6 truncate leading-6 text-text-secondary', isRoot && rootClassName)}>{name}</div>- <div className="system-xs-regular ml-3 shrink-0 leading-6 text-text-tertiary">+ <div className={cn('ml-[7px] h-6 truncate system-sm-medium leading-6 text-text-secondary', isRoot && rootClassName)}>{name}</div>+ <div className="ml-3 shrink-0 system-xs-regular leading-6 text-text-tertiary">{getFieldType(payload)}{(payload.schemaType && payload.schemaType !== 'file' && ` (${payload.schemaType})`)}</div>- {required && <div className="system-2xs-medium-uppercase ml-3 leading-6 text-text-warning">{t('structOutput.required', { ns: 'app' })}</div>}+ {required && <div className="ml-3 system-2xs-medium-uppercase leading-6 text-text-warning">{t('structOutput.required', { ns: 'app' })}</div>}</div>{payload.description && (<div className="ml-[7px] flex">- <div className="system-xs-regular w-0 grow truncate text-text-tertiary">{payload.description}</div>+ <div className="w-0 grow truncate system-xs-regular text-text-tertiary">{payload.description}</div></div>)}{hasEnum && (<div className="ml-[7px] flex">- <div className="system-xs-regular w-0 grow text-text-quaternary">+ <div className="w-0 grow system-xs-regular text-text-quaternary">{payload.enum!.map((value, index) => (<span key={index}>{typeof value === 'string' ? `"${value}"` : value}diff --git a/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/tree-indent-line.tsx b/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/tree-indent-line.tsxindex 786875ddd1d..c7e30adc596 100644--- a/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/tree-indent-line.tsx+++ b/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/tree-indent-line.tsx@@ -1,7 +1,7 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'type Props = {depth?: number@@ -16,7 +16,7 @@ const TreeIndentLine: FC<Props> = ({return (<div className={cn('flex', className)}>{depthArray.map(d => (- <div key={d} className={cn('ml-2.5 mr-2.5 w-px bg-divider-regular')}></div>+ <div key={d} className={cn('mr-2.5 ml-2.5 w-px bg-divider-regular')}></div>))}</div>)diff --git a/web/app/components/workflow/nodes/_base/components/variable/var-list.tsx b/web/app/components/workflow/nodes/_base/components/variable/var-list.tsxindex 931df92acab..3caf1327c9a 100644--- a/web/app/components/workflow/nodes/_base/components/variable/var-list.tsx+++ b/web/app/components/workflow/nodes/_base/components/variable/var-list.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { ValueSelector, Var, Variable } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiDraggable } from '@remixicon/react'import { useDebounceFn } from 'ahooks'import { produce } from 'immer'@@ -12,7 +13,6 @@ import { v4 as uuid4 } from 'uuid'import Input from '@/app/components/base/input'import { toast } from '@/app/components/base/ui/toast'import { VarType as VarKindType } from '@/app/components/workflow/nodes/tool/types'-import { cn } from '@/utils/classnames'import { checkKeys, replaceSpaceWithUnderscoreInVarNameInput } from '@/utils/var'import RemoveButton from '../remove-button'import VarReferencePicker from './var-reference-picker'@@ -160,7 +160,7 @@ const VarList: FC<Props> = ({)}{canDrag && (<RiDraggable className={cn(- 'handle absolute -left-4 top-2.5 hidden h-3 w-3 cursor-pointer text-text-quaternary',+ 'handle absolute top-2.5 -left-4 hidden h-3 w-3 cursor-pointer text-text-quaternary','group-hover:block',)}/>diff --git a/web/app/components/workflow/nodes/_base/components/variable/var-reference-picker.trigger.tsx b/web/app/components/workflow/nodes/_base/components/variable/var-reference-picker.trigger.tsxindex 32ff6a46273..e29c5828380 100644--- a/web/app/components/workflow/nodes/_base/components/variable/var-reference-picker.trigger.tsx+++ b/web/app/components/workflow/nodes/_base/components/variable/var-reference-picker.trigger.tsx@@ -6,6 +6,7 @@ import type { CredentialFormSchema, CredentialFormSchemaSelect } from '@/app/comimport type { Tool } from '@/app/components/tools/types'import type { TriggerWithProvider } from '@/app/components/workflow/block-selector/types'import type { Node, ToolWithProvider, ValueSelector, Var } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine, RiCloseLine, RiErrorWarningFill, RiLoader4Line, RiMoreLine } from '@remixicon/react'import Badge from '@/app/components/base/badge'import { Line3 } from '@/app/components/base/icons/src/public/common'@@ -14,7 +15,6 @@ import { Tooltip, TooltipContent, TooltipTrigger } from '@/app/components/base/uimport { VarBlockIcon } from '@/app/components/workflow/block-icon'import TypeSelector from '@/app/components/workflow/nodes/_base/components/selector'import { VariableIconWithColor } from '@/app/components/workflow/nodes/_base/components/variable/variable-label'-import { cn } from '@/utils/classnames'import RemoveButton from '../remove-button'import ConstantField from './constant-field'@@ -149,7 +149,7 @@ const VarReferencePickerTrigger: FC<Props> = ({<TypeSelectornoLefttrigger={(- <div className="flex h-8 items-center radius-md bg-components-input-bg-normal px-2">+ <div className="flex h-8 items-center rounded-lg bg-components-input-bg-normal px-2"><div className="mr-1 system-sm-regular text-components-input-text-filled">{varKindTypes.find(item => item.value === varKindType)?.label}</div><RiArrowDownSLine className="h-4 w-4 text-text-quaternary" /></div>diff --git a/web/app/components/workflow/nodes/_base/components/variable/var-reference-picker.tsx b/web/app/components/workflow/nodes/_base/components/variable/var-reference-picker.tsxindex 015bdf63b60..47bc60e22b9 100644--- a/web/app/components/workflow/nodes/_base/components/variable/var-reference-picker.tsx+++ b/web/app/components/workflow/nodes/_base/components/variable/var-reference-picker.tsx@@ -4,6 +4,7 @@ import type { CredentialFormSchema, CredentialFormSchemaSelect, FormOption } froimport type { Tool } from '@/app/components/tools/types'import type { TriggerWithProvider } from '@/app/components/workflow/block-selector/types'import type { CommonNodeType, Node, NodeOutPutVar, ToolWithProvider, ValueSelector, Var } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { noop } from 'es-toolkit/function'import { produce } from 'immer'import * as React from 'react'@@ -30,7 +31,6 @@ import { useStore as useWorkflowStore } from '@/app/components/workflow/store'import { BlockEnum } from '@/app/components/workflow/types'import { isExceptionVariable } from '@/app/components/workflow/utils'import { useFetchDynamicOptions } from '@/service/use-plugins'-import { cn } from '@/utils/classnames'import useAvailableVarList from '../../hooks/use-available-var-list'import { removeFileVars, varTypeToStructType } from './utils'import VarFullPathPanel from './var-full-path-panel'diff --git a/web/app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsx b/web/app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsxindex c85ffc3f33b..5c67723d78c 100644--- a/web/app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsx+++ b/web/app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsx@@ -3,6 +3,7 @@ import type { FC } from 'react'import type { StructuredOutput } from '../../../llm/types'import type { Field } from '@/app/components/workflow/nodes/llm/types'import type { NodeOutPutVar, ValueSelector, Var } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { useHover } from 'ahooks'import { noop } from 'es-toolkit/function'import * as React from 'react'@@ -20,7 +21,6 @@ import {import PickerStructurePanel from '@/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/picker'import { VariableIconWithColor } from '@/app/components/workflow/nodes/_base/components/variable/variable-label'import { VarType } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import { Type } from '../../../llm/types'import ManageInputField from './manage-input-field'import { varTypeToStructType } from './utils'@@ -177,7 +177,7 @@ const Item: FC<ItemProps> = ({<divref={itemRef}className={cn(- (isObj || isStructureOutput) ? ' pr-1' : 'pr-[18px]',+ (isObj || isStructureOutput) ? 'pr-1' : 'pr-[18px]',isHovering && ((isObj || isStructureOutput) ? 'bg-components-panel-on-panel-item-bg-hover' : 'bg-state-base-hover'),'relative flex h-6 w-full cursor-pointer items-center rounded-md pl-3',className,@@ -200,19 +200,19 @@ const Item: FC<ItemProps> = ({{isFlat && flatVarIcon}{!isEnv && !isChatVar && !isRagVariable && (- <div title={itemData.variable} className="system-sm-medium ml-1 w-0 grow truncate text-text-secondary">{varName}</div>+ <div title={itemData.variable} className="ml-1 w-0 grow truncate system-sm-medium text-text-secondary">{varName}</div>)}{isEnv && (- <div title={itemData.variable} className="system-sm-medium ml-1 w-0 grow truncate text-text-secondary">{itemData.variable.replace('env.', '')}</div>+ <div title={itemData.variable} className="ml-1 w-0 grow truncate system-sm-medium text-text-secondary">{itemData.variable.replace('env.', '')}</div>)}{isChatVar && (- <div title={itemData.des} className="system-sm-medium ml-1 w-0 grow truncate text-text-secondary">{itemData.variable.replace('conversation.', '')}</div>+ <div title={itemData.des} className="ml-1 w-0 grow truncate system-sm-medium text-text-secondary">{itemData.variable.replace('conversation.', '')}</div>)}{isRagVariable && (- <div title={itemData.des} className="system-sm-medium ml-1 w-0 grow truncate text-text-secondary">{itemData.variable.split('.').slice(-1)[0]}</div>+ <div title={itemData.des} className="ml-1 w-0 grow truncate system-sm-medium text-text-secondary">{itemData.variable.split('.').slice(-1)[0]}</div>)}</div>- <div className="ml-1 shrink-0 text-xs font-normal capitalize text-text-tertiary">{(preferSchemaType && itemData.schemaType) ? itemData.schemaType : itemData.type}</div>+ <div className="ml-1 shrink-0 text-xs font-normal text-text-tertiary capitalize">{(preferSchemaType && itemData.schemaType) ? itemData.schemaType : itemData.type}</div>{(isObj || isStructureOutput) && (<ChevronRight className={cn('ml-0.5 h-3 w-3 text-text-quaternary', isHovering && 'text-text-tertiary')} />@@ -290,7 +290,7 @@ const VarReferenceVars: FC<Props> = ({{!hideSearch && (<>- <div className={cn('var-search-input-wrapper mx-2 mb-2 mt-2', searchBoxClassName)} onClick={e => e.stopPropagation()}>+ <div className={cn('var-search-input-wrapper mx-2 mt-2 mb-2', searchBoxClassName)} onClick={e => e.stopPropagation()}><InputclassName="var-search-input"showLeftIcon@@ -324,7 +324,7 @@ const VarReferenceVars: FC<Props> = ({<div key={i} className={cn(!item.isFlat && 'mt-3', i === 0 && item.isFlat && 'mt-2')}>{!item.isFlat && (<div- className="system-xs-medium-uppercase truncate px-3 leading-[22px] text-text-tertiary"+ className="truncate px-3 system-xs-medium-uppercase leading-[22px] text-text-tertiary"title={item.title}>{item.title}@@ -349,10 +349,10 @@ const VarReferenceVars: FC<Props> = ({/>))}{item.isFlat && !filteredVars[i + 1]?.isFlat && !!filteredVars.find(item => !item.isFlat) && (- <div className="relative mt-[14px] flex items-center space-x-1">+ <div className="relative mt-[14px] flex items-center space-x-1"><div className="h-0 w-3 shrink-0 border border-divider-subtle"></div><div className="system-2xs-semibold-uppercase text-text-tertiary">{t('debug.lastOutput', { ns: 'workflow' })}</div>- <div className="h-0 shrink-0 grow border border-divider-subtle"></div>+ <div className="h-0 shrink-0 grow border border-divider-subtle"></div></div>)}</div>@@ -360,7 +360,7 @@ const VarReferenceVars: FC<Props> = ({}</div>)- : <div className="mt-2 pl-3 text-xs font-medium uppercase leading-[18px] text-gray-500">{t('common.noVar', { ns: 'workflow' })}</div>}+ : <div className="mt-2 pl-3 text-xs leading-[18px] font-medium text-gray-500 uppercase">{t('common.noVar', { ns: 'workflow' })}</div>}{showManageInputField && (<ManageInputFielddiff --git a/web/app/components/workflow/nodes/_base/components/variable/var-type-picker.tsx b/web/app/components/workflow/nodes/_base/components/variable/var-type-picker.tsxindex 3af95587cb6..6d3cfe7cfb1 100644--- a/web/app/components/workflow/nodes/_base/components/variable/var-type-picker.tsx+++ b/web/app/components/workflow/nodes/_base/components/variable/var-type-picker.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine } from '@remixicon/react'import * as React from 'react'import { useCallback, useState } from 'react'@@ -10,7 +11,6 @@ import {PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'import { VarType } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'type Props = {className?: string@@ -57,7 +57,7 @@ const VarReferencePicker: FC<Props> = ({{TYPES.map(type => (<divkey={type}- className="flex h-[30px] cursor-pointer items-center justify-between rounded-lg pl-3 pr-2 text-[13px] text-text-primary hover:bg-state-base-hover"+ className="flex h-[30px] cursor-pointer items-center justify-between rounded-lg pr-2 pl-3 text-[13px] text-text-primary hover:bg-state-base-hover"onClick={handleChange(type)}><div className="w-0 grow truncate capitalize">{type}</div>diff --git a/web/app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-icon.tsx b/web/app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-icon.tsxindex c515cd9e7af..d1c1d8ff1fe 100644--- a/web/app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-icon.tsx+++ b/web/app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-icon.tsx@@ -1,6 +1,6 @@import type { VarInInspectType } from '@/types/workflow'+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'-import { cn } from '@/utils/classnames'import { useVarIcon } from '../hooks'export type VariableIconProps = {diff --git a/web/app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-label.tsx b/web/app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-label.tsxindex 35ef72eb0b4..6ee0d63830e 100644--- a/web/app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-label.tsx+++ b/web/app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-label.tsx@@ -1,9 +1,9 @@import type { VariablePayload } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import { capitalize } from 'es-toolkit/string'import { memo } from 'react'import { Warning } from '@/app/components/base/icons/src/vender/line/alertsAndFeedback'import { Tooltip, TooltipContent, TooltipTrigger } from '@/app/components/base/ui/tooltip'-import { cn } from '@/utils/classnames'import { isConversationVar, isENV, isGlobalVar, isRagVariableVar } from '../../utils'import { useVarColor } from '../hooks'import VariableIcon from './variable-icon'@@ -46,7 +46,7 @@ const VariableLabel = ({notShowFullPath && (<><span className="i-ri-more-line h-3 w-3 shrink-0 text-text-secondary" />- <div className="shrink-0 text-divider-deep system-xs-regular">/</div>+ <div className="shrink-0 system-xs-regular text-divider-deep">/</div></>)}@@ -61,7 +61,7 @@ const VariableLabel = ({/>{!!variableType && (- <div className="shrink-0 text-text-tertiary system-xs-regular">+ <div className="shrink-0 system-xs-regular text-text-tertiary">{capitalize(variableType)}</div>)diff --git a/web/app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-name.tsx b/web/app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-name.tsxindex d3d9b6bbcfa..aa1c7090fd4 100644--- a/web/app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-name.tsx+++ b/web/app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-name.tsx@@ -1,5 +1,5 @@+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'-import { cn } from '@/utils/classnames'import { useVarName } from '../hooks'type VariableNameProps = {@@ -17,7 +17,7 @@ const VariableName = ({return (<divclassName={cn(- 'system-xs-medium truncate',+ 'truncate system-xs-medium',className,)}title={varName}diff --git a/web/app/components/workflow/nodes/_base/components/variable/variable-label/variable-icon-with-color.tsx b/web/app/components/workflow/nodes/_base/components/variable/variable-label/variable-icon-with-color.tsxindex bbe580e79e6..c766d3c719b 100644--- a/web/app/components/workflow/nodes/_base/components/variable/variable-label/variable-icon-with-color.tsx+++ b/web/app/components/workflow/nodes/_base/components/variable/variable-label/variable-icon-with-color.tsx@@ -1,6 +1,6 @@import type { VariableIconProps } from './base/variable-icon'+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'-import { cn } from '@/utils/classnames'import VariableIcon from './base/variable-icon'import { useVarColor } from './hooks'diff --git a/web/app/components/workflow/nodes/_base/components/variable/variable-label/variable-label-in-editor.tsx b/web/app/components/workflow/nodes/_base/components/variable/variable-label/variable-label-in-editor.tsxindex ba1c0bc8201..17cf938d5bd 100644--- a/web/app/components/workflow/nodes/_base/components/variable/variable-label/variable-label-in-editor.tsx+++ b/web/app/components/workflow/nodes/_base/components/variable/variable-label/variable-label-in-editor.tsx@@ -1,6 +1,6 @@import type { VariablePayload } from './types'+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'-import { cn } from '@/utils/classnames'import VariableLabel from './base/variable-label'import { useVarBgColorInEditor } from './hooks'diff --git a/web/app/components/workflow/nodes/_base/components/variable/variable-label/variable-label-in-node.tsx b/web/app/components/workflow/nodes/_base/components/variable/variable-label/variable-label-in-node.tsxindex a71962f7a0e..f778dbeddfb 100644--- a/web/app/components/workflow/nodes/_base/components/variable/variable-label/variable-label-in-node.tsx+++ b/web/app/components/workflow/nodes/_base/components/variable/variable-label/variable-label-in-node.tsx@@ -1,6 +1,6 @@import type { VariablePayload } from './types'+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'-import { cn } from '@/utils/classnames'import VariableLabel from './base/variable-label'const VariableLabelInNode = (variablePayload: VariablePayload) => {diff --git a/web/app/components/workflow/nodes/_base/components/variable/variable-label/variable-label-in-text.tsx b/web/app/components/workflow/nodes/_base/components/variable/variable-label/variable-label-in-text.tsxindex 776bc8c0ed8..b25997e64e8 100644--- a/web/app/components/workflow/nodes/_base/components/variable/variable-label/variable-label-in-text.tsx+++ b/web/app/components/workflow/nodes/_base/components/variable/variable-label/variable-label-in-text.tsx@@ -1,6 +1,6 @@import type { VariablePayload } from './types'+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'-import { cn } from '@/utils/classnames'import VariableLabel from './base/variable-label'const VariableLabelInText = (variablePayload: VariablePayload) => {diff --git a/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx b/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsxindex ec1fac03533..3179d7a981d 100644--- a/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx+++ b/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx@@ -1,6 +1,7 @@import type { FC, ReactNode } from 'react'import type { SimpleSubscription } from '@/app/components/plugins/plugin-detail-panel/subscription-list'import type { Node } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiCloseLine,RiPlayLargeLine,@@ -60,7 +61,6 @@ import { useModalContext } from '@/context/modal-context'import { useAllBuiltInTools } from '@/service/use-tools'import { useAllTriggerPlugins } from '@/service/use-triggers'import { FlowType } from '@/types/common'-import { cn } from '@/utils/classnames'import { useResizePanel } from '../../hooks/use-resize-panel'import BeforeRunForm from '../before-run-form'import PanelWrap from '../before-run-form/panel-wrap'@@ -352,7 +352,7 @@ const BasePanel: FC<BasePanelProps> = ({if (logParams.showSpecialResultPanel) {return (<div className={cn(- 'relative mr-1 h-full',+ 'relative mr-1 h-full',)}><div@@ -392,7 +392,7 @@ const BasePanel: FC<BasePanelProps> = ({return (<div className={cn(- 'relative mr-1 h-full',+ 'relative mr-1 h-full',)}><div@@ -437,7 +437,7 @@ const BasePanel: FC<BasePanelProps> = ({><divref={triggerRef}- className="absolute -left-1 top-0 flex h-full w-1 cursor-col-resize resize-x items-center justify-center"+ className="absolute top-0 -left-1 flex h-full w-1 cursor-col-resize resize-x items-center justify-center"><div className="h-10 w-0.5 rounded-xs bg-state-base-handle hover:h-full hover:bg-state-accent-solid active:h-full active:bg-state-accent-solid"></div></div>@@ -449,7 +449,7 @@ const BasePanel: FC<BasePanelProps> = ({}}><div className="sticky top-0 z-10 shrink-0 border-b-[0.5px] border-divider-regular bg-components-panel-bg">- <div className="flex items-center px-4 pb-1 pt-4">+ <div className="flex items-center px-4 pt-4 pb-1"><BlockIconclassName="mr-1 shrink-0"type={data.type}@@ -514,7 +514,7 @@ const BasePanel: FC<BasePanelProps> = ({detail: currToolCollection as any,}}>- <div className="flex items-center justify-between pl-4 pr-3">+ <div className="flex items-center justify-between pr-3 pl-4"><Tabvalue={tabType}onChange={setTabType}@@ -539,7 +539,7 @@ const BasePanel: FC<BasePanelProps> = ({onJumpToDataSourcePage={handleJumpToDataSourcePage}isAuthorized={currentDataSource.is_authorized}>- <div className="flex items-center justify-between pl-4 pr-3">+ <div className="flex items-center justify-between pr-3 pl-4"><Tabvalue={tabType}onChange={setTabType}@@ -567,7 +567,7 @@ const BasePanel: FC<BasePanelProps> = ({}{!needsToolAuth && !currentDataSource && !currentTriggerPlugin && (- <div className="flex items-center justify-between pl-4 pr-3">+ <div className="flex items-center justify-between pr-3 pl-4"><Tabvalue={tabType}onChange={setTabType}@@ -613,10 +613,10 @@ const BasePanel: FC<BasePanelProps> = ({{!!availableNextBlocks.length && (<div className="border-t-[0.5px] border-divider-regular p-4">- <div className="system-sm-semibold-uppercase mb-1 flex items-center text-text-secondary">+ <div className="mb-1 flex items-center system-sm-semibold-uppercase text-text-secondary">{t('panel.nextStep', { ns: 'workflow' }).toLocaleUpperCase()}</div>- <div className="system-xs-regular mb-2 text-text-tertiary">+ <div className="mb-2 system-xs-regular text-text-tertiary">{t('panel.addNextStep', { ns: 'workflow' })}</div><NextStep selectedNode={selectedNode} />diff --git a/web/app/components/workflow/nodes/_base/components/workflow-panel/trigger-subscription.tsx b/web/app/components/workflow/nodes/_base/components/workflow-panel/trigger-subscription.tsxindex a6dd65ea818..317f4853ac3 100644--- a/web/app/components/workflow/nodes/_base/components/workflow-panel/trigger-subscription.tsx+++ b/web/app/components/workflow/nodes/_base/components/workflow-panel/trigger-subscription.tsx@@ -1,9 +1,9 @@import type { FC } from 'react'import type { SimpleSubscription } from '@/app/components/plugins/plugin-detail-panel/subscription-list'+import { cn } from '@langgenius/dify-ui/cn'import { CreateButtonType, CreateSubscriptionButton } from '@/app/components/plugins/plugin-detail-panel/subscription-list/create'import { SubscriptionSelectorEntry } from '@/app/components/plugins/plugin-detail-panel/subscription-list/selector-entry'import { useSubscriptionList } from '@/app/components/plugins/plugin-detail-panel/subscription-list/use-subscription-list'-import { cn } from '@/utils/classnames'type TriggerSubscriptionProps = {subscriptionIdSelected?: stringdiff --git a/web/app/components/workflow/nodes/_base/node.tsx b/web/app/components/workflow/nodes/_base/node.tsxindex b331354ec5d..0c38cd716e0 100644--- a/web/app/components/workflow/nodes/_base/node.tsx+++ b/web/app/components/workflow/nodes/_base/node.tsx@@ -3,6 +3,7 @@ import type {ReactElement,} from 'react'import type { NodeProps } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {cloneElement,memo,@@ -23,7 +24,6 @@ import {NodeRunningStatus,} from '@/app/components/workflow/types'import { hasErrorHandleNode, hasRetryNode } from '@/app/components/workflow/utils'-import { cn } from '@/utils/classnames'import AddVariablePopupWithPosition from './components/add-variable-popup-with-position'import EntryNodeContainer, { StartNodeTypeEnum } from './components/entry-node-container'import ErrorHandleOnNode from './components/error-handle/error-handle-on-node'@@ -106,7 +106,7 @@ const BaseNode: FC<BaseNodeProps> = ({return (<divclassName={cn(- 'mr-2 text-text-tertiary system-xs-medium',+ 'mr-2 system-xs-medium text-text-tertiary',data._runningStatus === NodeRunningStatus.Running && 'text-text-accent',)}>@@ -147,7 +147,7 @@ const BaseNode: FC<BaseNodeProps> = ({{data.type === BlockEnum.DataSource && (<div className="absolute inset-[-2px] top-[-22px] z-[-1] rounded-[18px] bg-node-data-source-bg p-0.5 backdrop-blur-[6px]">- <div className="flex h-5 items-center px-2.5 text-text-tertiary system-2xs-semibold-uppercase">+ <div className="flex h-5 items-center px-2.5 system-2xs-semibold-uppercase text-text-tertiary">{t('blocks.datasource', { ns: 'workflow' })}</div></div>@@ -221,7 +221,7 @@ const BaseNode: FC<BaseNodeProps> = ({)}<div className={cn(- 'flex items-center rounded-t-2xl px-3 pb-2 pt-3',+ 'flex items-center rounded-t-2xl px-3 pt-3 pb-2',isContainerNode(data.type) && 'bg-transparent',)}>@@ -233,7 +233,7 @@ const BaseNode: FC<BaseNodeProps> = ({/><divtitle={data.title}- className="mr-1 flex grow items-center truncate text-text-primary system-sm-semibold-uppercase"+ className="mr-1 flex grow items-center truncate system-sm-semibold-uppercase text-text-primary"><div>{data.title}diff --git a/web/app/components/workflow/nodes/agent/components/tool-icon.tsx b/web/app/components/workflow/nodes/agent/components/tool-icon.tsxindex ef786d15741..b545c2f3701 100644--- a/web/app/components/workflow/nodes/agent/components/tool-icon.tsx+++ b/web/app/components/workflow/nodes/agent/components/tool-icon.tsx@@ -1,3 +1,4 @@+import { cn } from '@langgenius/dify-ui/cn'import { memo, useMemo, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'import AppIcon from '@/app/components/base/app-icon'@@ -5,7 +6,6 @@ import { Group } from '@/app/components/base/icons/src/vender/other'import Tooltip from '@/app/components/base/tooltip'import Indicator from '@/app/components/header/indicator'import { useAllBuiltInTools, useAllCustomTools, useAllMCPTools, useAllWorkflowTools } from '@/service/use-tools'-import { cn } from '@/utils/classnames'import { getIconFromMarketPlace } from '@/utils/get-icon'type Status = 'not-installed' | 'not-authorized' | undefined@@ -72,7 +72,7 @@ export const ToolIcon = memo(({ providerName }: ToolIconProps) => {className={cn('relative')}ref={containerRef}>- <div className="flex size-5 items-center justify-center overflow-hidden radius-sm border-[0.5px] border-components-panel-border-subtle bg-background-default-dodge">+ <div className="flex size-5 items-center justify-center overflow-hidden rounded-md border-[0.5px] border-components-panel-border-subtle bg-background-default-dodge">{(() => {if (iconFetchError || !icon)return <Group className="h-3 w-3 opacity-35" />@@ -98,7 +98,7 @@ export const ToolIcon = memo(({ providerName }: ToolIconProps) => {return <Group className="h-3 w-3 opacity-35" />})()}</div>- {indicator && <Indicator color={indicator} className="absolute -right-px -top-px" />}+ {indicator && <Indicator color={indicator} className="absolute -top-px -right-px" />}</div></Tooltip>)diff --git a/web/app/components/workflow/nodes/assigner/components/operation-selector.tsx b/web/app/components/workflow/nodes/assigner/components/operation-selector.tsxindex 6f6730f5bbe..8bce904b746 100644--- a/web/app/components/workflow/nodes/assigner/components/operation-selector.tsx+++ b/web/app/components/workflow/nodes/assigner/components/operation-selector.tsx@@ -2,6 +2,7 @@ import type { FC } from 'react'import type { WriteMode } from '../types'import type { Item } from '../utils'import type { VarType } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowDownSLine,RiCheckLine,@@ -14,7 +15,6 @@ import {PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'import { getOperationItems, isOperationItem } from '../utils'type OperationSelectorProps = {@@ -63,7 +63,7 @@ const OperationSelector: FC<OperationSelectorProps> = ({><div className="flex items-center p-1"><span- className={`system-sm-regular overflow-hidden truncate text-ellipsis+ className={`truncate overflow-hidden system-sm-regular text-ellipsis${selectedItem ? 'text-components-input-text-filled' : 'text-components-input-text-disabled'}`}>{selectedItem && isOperationItem(selectedItem) ? t(`nodes.assigner.operations.${selectedItem.name}`, { ns: 'workflow' }) : t('nodes.assigner.operations.title', { ns: 'workflow' })}@@ -76,8 +76,8 @@ const OperationSelector: FC<OperationSelectorProps> = ({<PortalToFollowElemContent className={`z-20 ${popupClassName}`}><div className="flex w-[140px] flex-col items-start rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur shadow-lg"><div className="flex flex-col items-start self-stretch p-1">- <div className="flex items-start self-stretch px-3 pb-0.5 pt-1">- <div className="system-xs-medium-uppercase flex grow text-text-tertiary">{t('nodes.assigner.operations.title', { ns: 'workflow' })}</div>+ <div className="flex items-start self-stretch px-3 pt-1 pb-0.5">+ <div className="flex grow system-xs-medium-uppercase text-text-tertiary">{t('nodes.assigner.operations.title', { ns: 'workflow' })}</div></div>{items.map(item => (!isOperationItem(item)@@ -94,7 +94,7 @@ const OperationSelector: FC<OperationSelectorProps> = ({}}><div className="flex min-h-5 grow items-center gap-1 px-1">- <span className="system-sm-medium flex grow text-text-secondary">{t(`nodes.assigner.operations.${item.name}`, { ns: 'workflow' })}</span>+ <span className="flex grow system-sm-medium text-text-secondary">{t(`nodes.assigner.operations.${item.name}`, { ns: 'workflow' })}</span></div>{item.value === value && (<div className="flex items-center justify-center">diff --git a/web/app/components/workflow/nodes/data-source-empty/index.tsx b/web/app/components/workflow/nodes/data-source-empty/index.tsxindex ba896316b33..a3248b35453 100644--- a/web/app/components/workflow/nodes/data-source-empty/index.tsx+++ b/web/app/components/workflow/nodes/data-source-empty/index.tsx@@ -1,4 +1,5 @@import type { NodeProps } from 'reactflow'+import { cn } from '@langgenius/dify-ui/cn'import { RiAddLine } from '@remixicon/react'import {memo,@@ -7,7 +8,6 @@ import {import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'import BlockSelector from '@/app/components/workflow/block-selector'-import { cn } from '@/utils/classnames'import { useReplaceDataSourceNode } from './hooks'const DataSourceEmptyNode = ({ id, data }: NodeProps) => {diff --git a/web/app/components/workflow/nodes/http/components/api-input.tsx b/web/app/components/workflow/nodes/http/components/api-input.tsxindex 04d1957db89..b78ef3026a7 100644--- a/web/app/components/workflow/nodes/http/components/api-input.tsx+++ b/web/app/components/workflow/nodes/http/components/api-input.tsx@@ -1,12 +1,12 @@'use client'import type { FC } from 'react'import type { Var } from '../../../types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine } from '@remixicon/react'import * as React from 'react'import { useState } from 'react'import { useTranslation } from 'react-i18next'import Input from '@/app/components/workflow/nodes/_base/components/input-support-select-var'-import { cn } from '@/utils/classnames'import { VarType } from '../../../types'import Selector from '../../_base/components/selector'import useAvailableVarList from '../../_base/hooks/use-available-var-list'@@ -48,14 +48,14 @@ const ApiInput: FC<Props> = ({})return (- <div className="flex items-start space-x-1">+ <div className="flex items-start space-x-1"><Selectorvalue={method}onChange={onMethodChange}options={MethodOptions}trigger={(<div className={cn(readonly && 'cursor-pointer', 'flex h-8 shrink-0 items-center rounded-lg border border-components-button-secondary-border bg-components-button-secondary-bg px-2.5')}>- <div className="w-12 pl-0.5 text-xs font-medium uppercase leading-[18px] text-text-primary">{method}</div>+ <div className="w-12 pl-0.5 text-xs leading-[18px] font-medium text-text-primary uppercase">{method}</div>{!readonly && <RiArrowDownSLine className="ml-1 h-3.5 w-3.5 text-text-secondary" />}</div>)}diff --git a/web/app/components/workflow/nodes/http/components/authorization/index.tsx b/web/app/components/workflow/nodes/http/components/authorization/index.tsxindex 439d62c9221..f44cbe6025b 100644--- a/web/app/components/workflow/nodes/http/components/authorization/index.tsx+++ b/web/app/components/workflow/nodes/http/components/authorization/index.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { Authorization as AuthorizationPayloadType } from '../../types'import type { Var } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { produce } from 'immer'import * as React from 'react'import { useCallback, useState } from 'react'@@ -12,7 +13,6 @@ import { Button } from '@/app/components/base/ui/button'import Input from '@/app/components/workflow/nodes/_base/components/input-support-select-var'import useAvailableVarList from '@/app/components/workflow/nodes/_base/hooks/use-available-var-list'import { VarType } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import { APIType, AuthorizationType } from '../../types'import RadioGroup from './radio-group'diff --git a/web/app/components/workflow/nodes/http/components/authorization/radio-group.tsx b/web/app/components/workflow/nodes/http/components/authorization/radio-group.tsxindex 48ad4066b94..6af508ead2f 100644--- a/web/app/components/workflow/nodes/http/components/authorization/radio-group.tsx+++ b/web/app/components/workflow/nodes/http/components/authorization/radio-group.tsx@@ -1,8 +1,8 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback } from 'react'-import { cn } from '@/utils/classnames'type Option = {value: string@@ -22,9 +22,9 @@ const Item: FC<ItemProps> = ({return (<divclassName={cn(- 'system-sm-regular flex h-8 grow cursor-default items-center rounded-md border border-components-option-card-option-border bg-components-option-card-option-bg px-2 text-text-secondary',+ 'flex h-8 grow cursor-default items-center rounded-md border border-components-option-card-option-border bg-components-option-card-option-bg px-2 system-sm-regular text-text-secondary',!isSelected && 'cursor-pointer hover:border-components-option-card-option-border-hover hover:bg-components-option-card-option-bg-hover hover:shadow-xs',- isSelected && 'system-sm-medium border-[1.5px] border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg shadow-xs',+ isSelected && 'border-[1.5px] border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg system-sm-medium shadow-xs',)}onClick={onClick}>diff --git a/web/app/components/workflow/nodes/http/components/edit-body/index.tsx b/web/app/components/workflow/nodes/http/components/edit-body/index.tsxindex 7e44ad5aebc..5f3294903b9 100644--- a/web/app/components/workflow/nodes/http/components/edit-body/index.tsx+++ b/web/app/components/workflow/nodes/http/components/edit-body/index.tsx@@ -2,13 +2,13 @@import type { FC } from 'react'import type { Body, BodyPayload, KeyValue as KeyValueType } from '../../types'import type { ValueSelector, Var } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { uniqueId } from 'es-toolkit/compat'import { produce } from 'immer'import * as React from 'react'import { useCallback, useMemo } from 'react'import InputWithVar from '@/app/components/workflow/nodes/_base/components/prompt/editor'import { VarType } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import VarReferencePicker from '../../../_base/components/variable/var-reference-picker'import useAvailableVarList from '../../../_base/hooks/use-available-var-list'import { BodyPayloadValueType, BodyType } from '../../types'@@ -146,7 +146,7 @@ const EditBody: FC<Props> = ({onChange={handleTypeChange}disabled={readonly}/>- <div className="text-[13px] font-normal leading-[18px] text-text-secondary">{bodyTextMap[t]}</div>+ <div className="text-[13px] leading-[18px] font-normal text-text-secondary">{bodyTextMap[t]}</div></label>))}</div>diff --git a/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/index.tsx b/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/index.tsxindex 55ccee4068d..2a4b6b23b68 100644--- a/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/index.tsx+++ b/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/index.tsx@@ -1,11 +1,11 @@'use client'import type { FC } from 'react'import type { KeyValue } from '../../../types'+import { cn } from '@langgenius/dify-ui/cn'import { produce } from 'immer'import * as React from 'react'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import KeyValueItem from './item'const i18nPrefix = 'nodes.http'@@ -58,10 +58,10 @@ const KeyValueList: FC<Props> = ({return (<div className="overflow-hidden rounded-lg border border-divider-regular">- <div className={cn('flex h-7 items-center leading-7 text-text-tertiary system-xs-medium-uppercase')}>+ <div className={cn('flex h-7 items-center system-xs-medium-uppercase leading-7 text-text-tertiary')}><div className={cn('flex h-full items-center border-r border-divider-regular pl-3', isSupportFile ? 'w-[140px]' : 'w-1/2')}>{t(`${i18nPrefix}.key`, { ns: 'workflow' })}</div>{isSupportFile && <div className="flex h-full w-[70px] shrink-0 items-center border-r border-divider-regular pl-3">{t(`${i18nPrefix}.type`, { ns: 'workflow' })}</div>}- <div className={cn('flex h-full items-center justify-between pl-3 pr-1', isSupportFile ? 'grow' : 'w-1/2')}>{t(`${i18nPrefix}.value`, { ns: 'workflow' })}</div>+ <div className={cn('flex h-full items-center justify-between pr-1 pl-3', isSupportFile ? 'grow' : 'w-1/2')}>{t(`${i18nPrefix}.value`, { ns: 'workflow' })}</div></div>{list.map((item, index) => (diff --git a/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/input-item.tsx b/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/input-item.tsxindex 65bc1c57c78..6fa83dac522 100644--- a/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/input-item.tsx+++ b/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/input-item.tsx@@ -1,13 +1,13 @@'use client'import type { FC } from 'react'import type { Var } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'import Input from '@/app/components/workflow/nodes/_base/components/input-support-select-var'import RemoveButton from '@/app/components/workflow/nodes/_base/components/remove-button'import { VarType } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import useAvailableVarList from '../../../../_base/hooks/use-available-var-list'type Props = {@@ -102,7 +102,7 @@ const InputItem: FC<Props> = ({)}{hasRemove && !isFocus && (<RemoveButton- className="absolute right-1 top-0.5 hidden group-hover:block"+ className="absolute top-0.5 right-1 hidden group-hover:block"onClick={handleRemove}/>)}diff --git a/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/item.tsx b/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/item.tsxindex 51d887d3445..f2fc2e9e1c3 100644--- a/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/item.tsx+++ b/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/item.tsx@@ -2,13 +2,13 @@import type { FC } from 'react'import type { KeyValue } from '../../../types'import type { ValueSelector, Var } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { produce } from 'immer'import * as React from 'react'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'import { PortalSelect } from '@/app/components/base/select'import { VarType } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import VarReferencePicker from '../../../../_base/components/variable/var-reference-picker'import InputItem from './input-item'// import Input from '@/app/components/base/input'@@ -97,7 +97,7 @@ const KeyValueItem: FC<Props> = ({): (<input- className="system-sm-regular focus:bg-gray-100! appearance-none rounded-none border-none bg-transparent outline-hidden hover:bg-components-input-bg-hover focus:ring-0"+ className="appearance-none rounded-none border-none bg-transparent system-sm-regular outline-hidden hover:bg-components-input-bg-hover focus:bg-gray-100! focus:ring-0"value={payload.key}onChange={e => handleChange('key')(e.target.value)}/>diff --git a/web/app/components/workflow/nodes/http/panel.tsx b/web/app/components/workflow/nodes/http/panel.tsxindex 7926d52fc72..905e5212af1 100644--- a/web/app/components/workflow/nodes/http/panel.tsx+++ b/web/app/components/workflow/nodes/http/panel.tsx@@ -1,6 +1,7 @@import type { FC } from 'react'import type { HttpNodeType } from './types'import type { NodePanelProps } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'import { useTranslation } from 'react-i18next'import { FileArrow01 } from '@/app/components/base/icons/src/vender/line/files'@@ -9,7 +10,6 @@ import Switch from '@/app/components/base/switch'import Field from '@/app/components/workflow/nodes/_base/components/field'import OutputVars, { VarItem } from '@/app/components/workflow/nodes/_base/components/output-vars'import Split from '@/app/components/workflow/nodes/_base/components/split'-import { cn } from '@/utils/classnames'import ApiInput from './components/api-input'import AuthorizationModal from './components/authorization'import CurlPanel from './components/curl-panel'@@ -64,7 +64,7 @@ const Panel: FC<NodePanelProps<HttpNodeType>> = ({<div className="flex"><divonClick={showAuthorization}- className={cn(!readOnly && 'cursor-pointer hover:bg-state-base-hover', 'flex h-6 items-center space-x-1 rounded-md px-2 ')}+ className={cn(!readOnly && 'cursor-pointer hover:bg-state-base-hover', 'flex h-6 items-center space-x-1 rounded-md px-2')}>{!readOnly && <Settings01 className="h-3 w-3 text-text-tertiary" />}<div className="text-xs font-medium text-text-tertiary">@@ -74,7 +74,7 @@ const Panel: FC<NodePanelProps<HttpNodeType>> = ({</div><divonClick={showCurlPanel}- className={cn(!readOnly && 'cursor-pointer hover:bg-state-base-hover', 'flex h-6 items-center space-x-1 rounded-md px-2 ')}+ className={cn(!readOnly && 'cursor-pointer hover:bg-state-base-hover', 'flex h-6 items-center space-x-1 rounded-md px-2')}>{!readOnly && <FileArrow01 className="h-3 w-3 text-text-tertiary" />}<div className="text-xs font-medium text-text-tertiary">diff --git a/web/app/components/workflow/nodes/human-input/components/button-style-dropdown.tsx b/web/app/components/workflow/nodes/human-input/components/button-style-dropdown.tsxindex ae739e2baad..363e0070c05 100644--- a/web/app/components/workflow/nodes/human-input/components/button-style-dropdown.tsx+++ b/web/app/components/workflow/nodes/human-input/components/button-style-dropdown.tsx@@ -1,4 +1,5 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {RiFontSize,} from '@remixicon/react'@@ -11,7 +12,6 @@ import {PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import { UserActionButtonType } from '../types'const i18nPrefix = 'nodes.humanInput'diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/email-configure-modal.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/email-configure-modal.tsxindex a5956db6c6e..0d8f51868a0 100644--- a/web/app/components/workflow/nodes/human-input/components/delivery-method/email-configure-modal.tsx+++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/email-configure-modal.tsx@@ -123,8 +123,8 @@ const EmailConfigureModal = ({/></div><Divider className="my-0! mt-5! h-px!" />- <div className="flex items-start justify-between gap-2 radius-lg border-[0.5px] border-components-panel-border bg-components-panel-on-panel-item-bg p-3 pl-2.5 shadow-xs">- <div className="radius-xs border border-divider-regular bg-components-icon-bg-orange-dark-solid p-0.5">+ <div className="flex items-start justify-between gap-2 rounded-[10px] border-[0.5px] border-components-panel-border bg-components-panel-on-panel-item-bg p-3 pl-2.5 shadow-xs">+ <div className="rounded-sm border border-divider-regular bg-components-icon-bg-orange-dark-solid p-0.5"><RiBugLine className="h-3.5 w-3.5 text-text-primary-on-surface" /></div><div className="grow space-y-1">diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/index.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/index.tsxindex 03ae7ccf619..aa5fd77d0e5 100644--- a/web/app/components/workflow/nodes/human-input/components/delivery-method/index.tsx+++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/index.tsx@@ -86,7 +86,7 @@ const DeliveryMethodForm: React.FC<Props> = ({)}</div>{!value.length && (- <div className="system-xs-regular flex items-center justify-center radius-lg bg-background-section p-3 text-text-tertiary">{t(`${i18nPrefix}.deliveryMethod.emptyTip`, { ns: 'workflow' })}</div>+ <div className="flex items-center justify-center rounded-[10px] bg-background-section p-3 system-xs-regular text-text-tertiary">{t(`${i18nPrefix}.deliveryMethod.emptyTip`, { ns: 'workflow' })}</div>)}{value.length > 0 && (<div className="space-y-1">diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/mail-body-input.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/mail-body-input.tsxindex 8e127d932e3..8dddb94d6ed 100644--- a/web/app/components/workflow/nodes/human-input/components/delivery-method/mail-body-input.tsx+++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/mail-body-input.tsx@@ -2,11 +2,11 @@ import type {Node,NodeOutPutVar,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'import PromptEditor from '@/app/components/base/prompt-editor'import Placeholder from '@/app/components/workflow/nodes/tool/components/mixed-variable-text-input/placeholder'import { BlockEnum } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'type MailBodyInputProps = {readOnly?: booleandiff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/method-item.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/method-item.tsxindex 3afe390d1d1..c1ffe2976ba 100644--- a/web/app/components/workflow/nodes/human-input/components/delivery-method/method-item.tsx+++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/method-item.tsx@@ -4,6 +4,7 @@ import type {Node,NodeOutPutVar,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiDeleteBinLine,RiEqualizer2Line,@@ -20,7 +21,6 @@ import Tooltip from '@/app/components/base/tooltip'import { Button } from '@/app/components/base/ui/button'import Indicator from '@/app/components/header/indicator'import { useSelector as useAppContextWithSelector } from '@/context/app-context'-import { cn } from '@/utils/classnames'import { DeliveryMethodType } from '../../types'import EmailConfigureModal from './email-configure-modal'import TestEmailSender from './test-email-sender'@@ -95,12 +95,12 @@ const DeliveryMethodItem: FC<DeliveryMethodItemProps> = ({><div className="flex items-center gap-1.5">{method.type === DeliveryMethodType.WebApp && (- <div className="radius-xs border border-divider-regular bg-components-icon-bg-indigo-solid p-0.5">+ <div className="rounded-sm border border-divider-regular bg-components-icon-bg-indigo-solid p-0.5"><RiRobot2Fill className="h-3.5 w-3.5 text-text-primary-on-surface" /></div>)}{method.type === DeliveryMethodType.Email && (- <div className="radius-xs border border-divider-regular bg-components-icon-bg-blue-solid p-0.5">+ <div className="rounded-sm border border-divider-regular bg-components-icon-bg-blue-solid p-0.5"><RiMailSendFill className="h-3.5 w-3.5 text-text-primary-on-surface" /></div>)}diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/method-selector.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/method-selector.tsxindex 82838b06775..16c2345549c 100644--- a/web/app/components/workflow/nodes/human-input/components/delivery-method/method-selector.tsx+++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/method-selector.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { DeliveryMethod } from '../../types'+import { cn } from '@langgenius/dify-ui/cn'import {RiAddLine,RiDiscordFill,@@ -23,7 +24,6 @@ import useWorkflowNodes from '@/app/components/workflow/store/workflow/use-nodesimport { isTriggerWorkflow } from '@/app/components/workflow/utils/workflow-entry'import { IS_CE_EDITION } from '@/config'import { useProviderContextSelector } from '@/context/provider-context'-import { cn } from '@/utils/classnames'import { DeliveryMethodType } from '../../types'const i18nPrefix = 'nodes.humanInput'@@ -102,18 +102,18 @@ const MethodSelector: FC<MethodSelectorProps> = ({})}}>- <div className={cn('radius-xs border border-divider-regular bg-components-icon-bg-indigo-solid p-1', webAppDeliveryInfo.disabled && 'opacity-50')}>+ <div className={cn('rounded-sm border border-divider-regular bg-components-icon-bg-indigo-solid p-1', webAppDeliveryInfo.disabled && 'opacity-50')}><RiRobot2Fill className="h-4 w-4 text-text-primary-on-surface" /></div><div className={cn('p-1', webAppDeliveryInfo.disabled && 'opacity-50')}>- <div className="system-sm-medium mb-0.5 truncate text-text-primary">{t(`${i18nPrefix}.deliveryMethod.types.webapp.title`, { ns: 'workflow' })}</div>- <div className="system-xs-regular truncate text-text-tertiary">{t(`${i18nPrefix}.deliveryMethod.types.webapp.description`, { ns: 'workflow' })}</div>+ <div className="mb-0.5 truncate system-sm-medium text-text-primary">{t(`${i18nPrefix}.deliveryMethod.types.webapp.title`, { ns: 'workflow' })}</div>+ <div className="truncate system-xs-regular text-text-tertiary">{t(`${i18nPrefix}.deliveryMethod.types.webapp.description`, { ns: 'workflow' })}</div></div>{webAppDeliveryInfo.added && (- <div className="system-xs-regular absolute right-[12px] top-[13px] text-text-tertiary">{t(`${i18nPrefix}.deliveryMethod.added`, { ns: 'workflow' })}</div>+ <div className="absolute top-[13px] right-[12px] system-xs-regular text-text-tertiary">{t(`${i18nPrefix}.deliveryMethod.added`, { ns: 'workflow' })}</div>)}{webAppDeliveryInfo.isTriggerMode && !webAppDeliveryInfo.added && (- <div className="system-xs-regular absolute right-[12px] top-[13px] text-text-tertiary">{t(`${i18nPrefix}.deliveryMethod.notAvailableInTriggerMode`, { ns: 'workflow' })}</div>+ <div className="absolute top-[13px] right-[12px] system-xs-regular text-text-tertiary">{t(`${i18nPrefix}.deliveryMethod.notAvailableInTriggerMode`, { ns: 'workflow' })}</div>)}</div><div@@ -137,32 +137,32 @@ const MethodSelector: FC<MethodSelectorProps> = ({><divclassName={cn(- 'radius-xs border border-divider-regular bg-components-icon-bg-blue-solid p-1',+ 'rounded-sm border border-divider-regular bg-components-icon-bg-blue-solid p-1',emailDeliveryInfo.added && 'opacity-50',)}><RiMailSendFill className="h-4 w-4 text-text-primary-on-surface" /></div><div className={cn('p-1', emailDeliveryInfo.added && 'opacity-50')}>- <div className="system-sm-medium mb-0.5 truncate text-text-primary">{t(`${i18nPrefix}.deliveryMethod.types.email.title`, { ns: 'workflow' })}</div>- <div className="system-xs-regular truncate text-text-tertiary">{t(`${i18nPrefix}.deliveryMethod.types.email.description`, { ns: 'workflow' })}</div>+ <div className="mb-0.5 truncate system-sm-medium text-text-primary">{t(`${i18nPrefix}.deliveryMethod.types.email.title`, { ns: 'workflow' })}</div>+ <div className="truncate system-xs-regular text-text-tertiary">{t(`${i18nPrefix}.deliveryMethod.types.email.description`, { ns: 'workflow' })}</div></div>{emailDeliveryInfo.added && (- <div className="system-xs-regular absolute right-[12px] top-[13px] text-text-tertiary">{t(`${i18nPrefix}.deliveryMethod.added`, { ns: 'workflow' })}</div>+ <div className="absolute top-[13px] right-[12px] system-xs-regular text-text-tertiary">{t(`${i18nPrefix}.deliveryMethod.added`, { ns: 'workflow' })}</div>)}</div>{/* Slack */}<divclassName={cn('relative flex cursor-pointer items-center gap-1 rounded-lg p-1 pl-3 hover:bg-state-base-hover', 'cursor-not-allowed bg-transparent hover:bg-transparent')}>- <div className={cn('radius-xs border border-divider-regular bg-background-default-dodge p-1', 'opacity-50')}>+ <div className={cn('rounded-sm border border-divider-regular bg-background-default-dodge p-1', 'opacity-50')}><Slack className="h-4 w-4 text-text-primary-on-surface" /></div><div className={cn('p-1', 'opacity-50')}>- <div className="system-sm-medium mb-0.5 truncate text-text-primary">{t(`${i18nPrefix}.deliveryMethod.types.slack.title`, { ns: 'workflow' })}</div>- <div className="system-xs-regular truncate text-text-tertiary">{t(`${i18nPrefix}.deliveryMethod.types.slack.description`, { ns: 'workflow' })}</div>+ <div className="mb-0.5 truncate system-sm-medium text-text-primary">{t(`${i18nPrefix}.deliveryMethod.types.slack.title`, { ns: 'workflow' })}</div>+ <div className="truncate system-xs-regular text-text-tertiary">{t(`${i18nPrefix}.deliveryMethod.types.slack.description`, { ns: 'workflow' })}</div></div>- <div className="absolute right-[8px] top-[8px]">+ <div className="absolute top-[8px] right-[8px]"><Badge className="h-4">COMING SOON</Badge></div></div>@@ -170,14 +170,14 @@ const MethodSelector: FC<MethodSelectorProps> = ({<divclassName={cn('relative flex cursor-pointer items-center gap-1 rounded-lg p-1 pl-3 hover:bg-state-base-hover', 'cursor-not-allowed bg-transparent hover:bg-transparent')}>- <div className={cn('radius-xs border border-divider-regular bg-background-default-dodge p-1', 'opacity-50')}>+ <div className={cn('rounded-sm border border-divider-regular bg-background-default-dodge p-1', 'opacity-50')}><Teams className="h-4 w-4 text-text-primary-on-surface" /></div><div className={cn('p-1', 'opacity-50')}>- <div className="system-sm-medium mb-0.5 truncate text-text-primary">{t(`${i18nPrefix}.deliveryMethod.types.teams.title`, { ns: 'workflow' })}</div>- <div className="system-xs-regular truncate text-text-tertiary">{t(`${i18nPrefix}.deliveryMethod.types.teams.description`, { ns: 'workflow' })}</div>+ <div className="mb-0.5 truncate system-sm-medium text-text-primary">{t(`${i18nPrefix}.deliveryMethod.types.teams.title`, { ns: 'workflow' })}</div>+ <div className="truncate system-xs-regular text-text-tertiary">{t(`${i18nPrefix}.deliveryMethod.types.teams.description`, { ns: 'workflow' })}</div></div>- <div className="absolute right-[8px] top-[8px]">+ <div className="absolute top-[8px] right-[8px]"><Badge className="h-4">COMING SOON</Badge></div></div>@@ -185,14 +185,14 @@ const MethodSelector: FC<MethodSelectorProps> = ({<divclassName={cn('relative flex cursor-pointer items-center gap-1 rounded-lg p-1 pl-3 hover:bg-state-base-hover', 'cursor-not-allowed bg-transparent hover:bg-transparent')}>- <div className={cn('radius-xs border border-divider-regular bg-components-icon-bg-indigo-solid p-0.5', 'opacity-50')}>+ <div className={cn('rounded-sm border border-divider-regular bg-components-icon-bg-indigo-solid p-0.5', 'opacity-50')}><RiDiscordFill className="h-5 w-5 text-text-primary-on-surface" /></div><div className={cn('p-1', 'opacity-50')}>- <div className="system-sm-medium mb-0.5 truncate text-text-primary">{t(`${i18nPrefix}.deliveryMethod.types.discord.title`, { ns: 'workflow' })}</div>- <div className="system-xs-regular truncate text-text-tertiary">{t(`${i18nPrefix}.deliveryMethod.types.discord.description`, { ns: 'workflow' })}</div>+ <div className="mb-0.5 truncate system-sm-medium text-text-primary">{t(`${i18nPrefix}.deliveryMethod.types.discord.title`, { ns: 'workflow' })}</div>+ <div className="truncate system-xs-regular text-text-tertiary">{t(`${i18nPrefix}.deliveryMethod.types.discord.description`, { ns: 'workflow' })}</div></div>- <div className="absolute right-[8px] top-[8px]">+ <div className="absolute top-[8px] right-[8px]"><Badge className="h-4">COMING SOON</Badge></div></div>@@ -201,7 +201,7 @@ const MethodSelector: FC<MethodSelectorProps> = ({{!IS_CE_EDITION && (<div className="mt-1 rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur shadow-lg backdrop-blur-xs"><div className="flex items-center gap-2 px-4 py-3">- <div className={cn('radius-xs border border-divider-regular bg-components-icon-bg-midnight-solid p-1')}>+ <div className={cn('rounded-sm border border-divider-regular bg-components-icon-bg-midnight-solid p-1')}><RiLightbulbFlashFill className="h-4 w-4 text-text-primary-on-surface" /></div><div className="system-sm-regular text-text-secondary">diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-input.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-input.tsxindex 9d34e6f2afe..99192ae580f 100644--- a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-input.tsx+++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-input.tsx@@ -1,5 +1,6 @@import type { Recipient as RecipientItem } from '../../../types'import type { Member } from '@/models/common'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback, useMemo, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -8,7 +9,6 @@ import {PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'import EmailItem from './email-item'import MemberList from './member-list'@@ -153,7 +153,7 @@ const EmailInput = ({<PortalToFollowElemTrigger className="block h-6 min-w-[166px]"><inputref={inputRef}- className="system-sm-regular h-6 min-w-[166px] appearance-none bg-transparent p-1 text-components-input-text-filled caret-primary-600 outline-hidden placeholder:text-components-input-text-placeholder"+ className="h-6 min-w-[166px] appearance-none bg-transparent p-1 system-sm-regular text-components-input-text-filled caret-primary-600 outline-hidden placeholder:text-components-input-text-placeholder"placeholder={placeholder}onFocus={() => setIsFocus(true)}onBlur={handleInputBlur}diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-item.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-item.tsxindex 465e2b7d405..8d370266b0c 100644--- a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-item.tsx+++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-item.tsx@@ -1,10 +1,10 @@import type { Recipient as RecipientItem } from '../../../types'import type { Member } from '@/models/common'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseCircleFill, RiErrorWarningFill } from '@remixicon/react'import * as React from 'react'import { useTranslation } from 'react-i18next'import { Avatar } from '@/app/components/base/ui/avatar'-import { cn } from '@/utils/classnames'type Props = {email: string@@ -35,7 +35,7 @@ const EmailItem = ({<RiErrorWarningFill className="h-4 w-4 text-text-destructive" />)}{!isError && <Avatar avatar={data.avatar_url} size="xxs" name={data.name || data.email} />}- <div title={data.email} className="system-xs-regular max-w-[500px] truncate text-text-primary">+ <div title={data.email} className="max-w-[500px] truncate system-xs-regular text-text-primary">{email === data.email ? data.name : data.email}{email === data.email && <span className="system-xs-regular text-text-tertiary">{t('members.you', { ns: 'common' })}</span>}</div>diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/index.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/index.tsxindex cd44572c1a9..e69b2ba245f 100644--- a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/index.tsx+++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/index.tsx@@ -1,4 +1,5 @@import type { RecipientData, Recipient as RecipientItem } from '../../../types'+import { cn } from '@langgenius/dify-ui/cn'import { RiGroupLine } from '@remixicon/react'import { produce } from 'immer'import { memo } from 'react'@@ -6,7 +7,6 @@ import { useTranslation } from 'react-i18next'import Switch from '@/app/components/base/switch'import { useAppContext } from '@/context/app-context'import { useMembers } from '@/service/use-common'-import { cn } from '@/utils/classnames'import EmailInput from './email-input'import MemberSelector from './member-selector'@@ -61,8 +61,8 @@ const Recipient = ({return (<div className="space-y-1">- <div className="radius-lg border-[0.5px] border-components-panel-border bg-components-panel-on-panel-item-bg shadow-xs">- <div className="flex h-10 items-center justify-between pl-3 pr-1">+ <div className="rounded-[10px] border-[0.5px] border-components-panel-border bg-components-panel-on-panel-item-bg shadow-xs">+ <div className="flex h-10 items-center justify-between pr-1 pl-3"><div className="flex grow items-center gap-2"><RiGroupLine className="h-4 w-4 text-text-secondary" /><div className="system-sm-medium text-text-secondary">{t(`${i18nPrefix}.deliveryMethod.emailConfigure.memberSelector.title`, { ns: 'workflow' })}</div>@@ -85,11 +85,11 @@ const Recipient = ({onAdd={handleEmailAdd}/></div>- <div className="flex h-10 items-center gap-2 radius-lg border-[0.5px] border-components-panel-border bg-components-panel-on-panel-item-bg pl-2.5 pr-3 shadow-xs">+ <div className="flex h-10 items-center gap-2 rounded-[10px] border-[0.5px] border-components-panel-border bg-components-panel-on-panel-item-bg pr-3 pl-2.5 shadow-xs"><div className="flex h-5 w-5 items-center justify-center rounded-xl bg-components-icon-bg-blue-solid text-[14px]">- <span className="bg-linear-to-r from-components-avatar-shape-fill-stop-0 to-components-avatar-shape-fill-stop-100 bg-clip-text font-semibold uppercase text-shadow-shadow-1 opacity-90">{currentWorkspace?.name[0]?.toLocaleUpperCase()}</span>+ <span className="bg-linear-to-r from-components-avatar-shape-fill-stop-0 to-components-avatar-shape-fill-stop-100 bg-clip-text font-semibold text-shadow-shadow-1 uppercase opacity-90">{currentWorkspace?.name[0]?.toLocaleUpperCase()}</span></div>- <div className={cn('system-sm-medium grow text-text-secondary')}>{t(`${i18nPrefix}.deliveryMethod.emailConfigure.allMembers`, { workspaceName: currentWorkspace.name.replace(/'/g, '’'), ns: 'workflow' })}</div>+ <div className={cn('grow system-sm-medium text-text-secondary')}>{t(`${i18nPrefix}.deliveryMethod.emailConfigure.allMembers`, { workspaceName: currentWorkspace.name.replace(/'/g, '’'), ns: 'workflow' })}</div><Switchvalue={data.whole_workspace}onChange={checked => onChange({ ...data, whole_workspace: checked })}diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/member-list.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/member-list.tsxindex 2a7b9b07078..c80c22639e5 100644--- a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/member-list.tsx+++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/member-list.tsx@@ -2,11 +2,11 @@import type { FC } from 'react'import type { Recipient } from '@/app/components/workflow/nodes/human-input/types'import type { Member } from '@/models/common'+import { cn } from '@langgenius/dify-ui/cn'import { useMemo } from 'react'import { useTranslation } from 'react-i18next'import Input from '@/app/components/base/input'import { Avatar } from '@/app/components/base/ui/avatar'-import { cn } from '@/utils/classnames'const i18nPrefix = 'nodes.humanInput'@@ -56,7 +56,7 @@ const MemberList: FC<Props> = ({ searchValue, list, value, onSearchChange, onSel<divkey={account.id}className={cn(- 'group flex cursor-pointer items-center gap-2 rounded-lg py-1 pl-2 pr-3 hover:bg-state-base-hover',+ 'group flex cursor-pointer items-center gap-2 rounded-lg py-1 pr-3 pl-2 hover:bg-state-base-hover',value.some(item => item.user_id === account.id) && 'bg-transparent hover:bg-transparent',)}onClick={() => {@@ -69,13 +69,13 @@ const MemberList: FC<Props> = ({ searchValue, list, value, onSearchChange, onSel<div className={cn('grow', value.some(item => item.user_id === account.id) && 'opacity-50')}><div className="system-sm-medium text-text-secondary">{account.name}- {account.status === 'pending' && <span className="system-xs-medium ml-1 text-text-warning">{t('members.pending', { ns: 'common' })}</span>}+ {account.status === 'pending' && <span className="ml-1 system-xs-medium text-text-warning">{t('members.pending', { ns: 'common' })}</span>}{email === account.email && <span className="system-xs-regular text-text-tertiary">{t('members.you', { ns: 'common' })}</span>}</div><div className="system-xs-regular text-text-tertiary">{account.email}</div></div>{!value.some(item => item.user_id === account.id) && (- <div className="system-xs-medium hidden text-text-accent group-hover:block">{t(`${i18nPrefix}.deliveryMethod.emailConfigure.memberSelector.add`, { ns: 'workflow' })}</div>+ <div className="hidden system-xs-medium text-text-accent group-hover:block">{t(`${i18nPrefix}.deliveryMethod.emailConfigure.memberSelector.add`, { ns: 'workflow' })}</div>)}{value.some(item => item.user_id === account.id) && (<div className="system-xs-regular text-text-tertiary">{t(`${i18nPrefix}.deliveryMethod.emailConfigure.memberSelector.added`, { ns: 'workflow' })}</div>diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/member-selector.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/member-selector.tsxindex 27cf28c962a..827e02c8bb4 100644--- a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/member-selector.tsx+++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/member-selector.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { Recipient } from '@/app/components/workflow/nodes/human-input/types'import type { Member } from '@/models/common'+import { cn } from '@langgenius/dify-ui/cn'import {RiContactsBookLine,} from '@remixicon/react'@@ -9,7 +10,6 @@ import { useState } from 'react'import { useTranslation } from 'react-i18next'import { PortalToFollowElem, PortalToFollowElemContent, PortalToFollowElemTrigger } from '@/app/components/base/portal-to-follow-elem'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import MemberList from './member-list'const i18nPrefix = 'nodes.humanInput'diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/test-email-sender.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/test-email-sender.tsxindex 9045a4d2a6b..7ff44542b3d 100644--- a/web/app/components/workflow/nodes/human-input/components/delivery-method/test-email-sender.tsx+++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/test-email-sender.tsx@@ -4,6 +4,7 @@ import type {NodeOutPutVar,ValueSelector,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowRightSFill, RiCloseLine } from '@remixicon/react'import { noop, unionBy } from 'es-toolkit/compat'import { memo, useCallback, useMemo, useState } from 'react'@@ -24,7 +25,6 @@ import { InputVarType, VarType } from '@/app/components/workflow/types'import { useAppContext } from '@/context/app-context'import { useMembers } from '@/service/use-common'import { useTestEmailSender } from '@/service/use-workflow'-import { cn } from '@/utils/classnames'import { isOutput } from '../../utils'import EmailInput from './recipient/email-input'diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/upgrade-modal.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/upgrade-modal.tsxindex 6d78bec6aec..c7b46732d0c 100644--- a/web/app/components/workflow/nodes/human-input/components/delivery-method/upgrade-modal.tsx+++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/upgrade-modal.tsx@@ -1,3 +1,4 @@+import { cn } from '@langgenius/dify-ui/cn'import {RiMailSendFill,} from '@remixicon/react'@@ -8,7 +9,6 @@ import Modal from '@/app/components/base/modal'import PremiumBadge from '@/app/components/base/premium-badge'import { Button } from '@/app/components/base/ui/button'import { useModalContextSelector } from '@/context/modal-context'-import { cn } from '@/utils/classnames'type UpgradeModalProps = {isShow: booleandiff --git a/web/app/components/workflow/nodes/human-input/components/form-content.tsx b/web/app/components/workflow/nodes/human-input/components/form-content.tsxindex 8dedc38ce89..3a27904e7dc 100644--- a/web/app/components/workflow/nodes/human-input/components/form-content.tsx+++ b/web/app/components/workflow/nodes/human-input/components/form-content.tsx@@ -3,13 +3,13 @@ import type { LexicalCommand } from 'lexical'import type { FC } from 'react'import type { FormInputItem } from '../types'import type { Node, NodeOutPutVar } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { useBoolean } from 'ahooks'import * as React from 'react'import { useEffect, useState } from 'react'import { Trans, useTranslation } from 'react-i18next'import PromptEditor from '@/app/components/base/prompt-editor'import { INSERT_HITL_INPUT_BLOCK_COMMAND } from '@/app/components/base/prompt-editor/plugins/hitl-input-block'-import { cn } from '@/utils/classnames'import { useWorkflowVariableType } from '../../../hooks'import { BlockEnum } from '../../../types'import { isMac } from '../../../utils'@@ -31,7 +31,7 @@ type FormContentProps = {}const Key: FC<{ children: React.ReactNode, className?: string }> = ({ children, className }) => {- return <span className={cn('system-kbd mx-0.5 inline-flex size-4 items-center justify-center radius-xs bg-components-kbd-bg-gray text-text-placeholder ', className)}>{children}</span>+ return <span className={cn('mx-0.5 inline-flex size-4 items-center justify-center rounded-sm bg-components-kbd-bg-gray system-kbd text-text-placeholder', className)}>{children}</span>}const CtrlKey: FC = () => {@@ -107,7 +107,7 @@ const FormContent: FC<FormContentProps> = ({return (<divclassName={cn(- 'flex grow flex-col radius-lg border border-components-input-bg-normal bg-components-input-bg-normal pt-1',+ 'flex grow flex-col rounded-[10px] border border-components-input-bg-normal bg-components-input-bg-normal pt-1',isFocus && 'border-components-input-border-active bg-components-input-bg-active',!isFocus && 'pb-[32px]',readonly && 'pointer-events-none',@@ -118,7 +118,7 @@ const FormContent: FC<FormContentProps> = ({key={editorKey}value={value}onChange={onChange}- className={cn('min-h-[80px] ', isExpand && 'h-full')}+ className={cn('min-h-[80px]', isExpand && 'h-full')}onFocus={setFocus}onBlur={setBlur}placeholder={t('nodes.humanInput.formContent.placeholder', { ns: 'workflow' })}@@ -156,7 +156,7 @@ const FormContent: FC<FormContentProps> = ({/></div>{isFocus && (- <div className="system-xs-regular flex h-8 shrink-0 items-center px-3 text-components-input-text-placeholder">+ <div className="flex h-8 shrink-0 items-center px-3 system-xs-regular text-components-input-text-placeholder"><Transi18nKey="nodes.humanInput.formContent.hotkeyTip"ns="workflow"diff --git a/web/app/components/workflow/nodes/human-input/components/timeout.tsx b/web/app/components/workflow/nodes/human-input/components/timeout.tsxindex f212f9d0e3e..682a56a002e 100644--- a/web/app/components/workflow/nodes/human-input/components/timeout.tsx+++ b/web/app/components/workflow/nodes/human-input/components/timeout.tsx@@ -1,8 +1,8 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import Input from '@/app/components/base/input'-import { cn } from '@/utils/classnames'const i18nPrefix = 'nodes.humanInput'@@ -38,7 +38,7 @@ const TimeoutInput: FC<Props> = ({onChange={handleValueChange}disabled={readonly}/>- <div className="flex items-center gap-0.5 radius-lg bg-components-segmented-control-bg-normal p-0.5">+ <div className="flex items-center gap-0.5 rounded-[10px] bg-components-segmented-control-bg-normal p-0.5"><divclassName={cn('rounded-lg px-2 py-1 text-text-tertiary',@@ -48,7 +48,7 @@ const TimeoutInput: FC<Props> = ({)}onClick={() => !readonly && onChange({ timeout, unit: 'day' })}>- <div className="system-sm-medium p-0.5">{t(`${i18nPrefix}.timeout.days`, { ns: 'workflow' })}</div>+ <div className="p-0.5 system-sm-medium">{t(`${i18nPrefix}.timeout.days`, { ns: 'workflow' })}</div></div><divclassName={cn(@@ -59,7 +59,7 @@ const TimeoutInput: FC<Props> = ({)}onClick={() => !readonly && onChange({ timeout, unit: 'hour' })}>- <div className="system-sm-medium p-0.5">{t(`${i18nPrefix}.timeout.hours`, { ns: 'workflow' })}</div>+ <div className="p-0.5 system-sm-medium">{t(`${i18nPrefix}.timeout.hours`, { ns: 'workflow' })}</div></div></div></div>diff --git a/web/app/components/workflow/nodes/human-input/components/variable-in-markdown.tsx b/web/app/components/workflow/nodes/human-input/components/variable-in-markdown.tsxindex 0861a7cbb20..a09dc287b47 100644--- a/web/app/components/workflow/nodes/human-input/components/variable-in-markdown.tsx+++ b/web/app/components/workflow/nodes/human-input/components/variable-in-markdown.tsx@@ -137,7 +137,7 @@ export const Note: React.FC<{ defaultInput: FormInputItemDefault, nodeName: (nodconst path = `{{#${defaultInput.selector.join('.')}#}}`const newPath = path ? replaceNodeIdsWithNames(path, nodeName) : pathreturn (- <div className="my-3 radius-lg bg-components-input-bg-normal px-2.5 py-2">+ <div className="my-3 rounded-[10px] bg-components-input-bg-normal px-2.5 py-2">{isVariable ? <Variable path={newPath} /> : <span>{defaultInput.value}</span>}</div>)diff --git a/web/app/components/workflow/nodes/human-input/node.tsx b/web/app/components/workflow/nodes/human-input/node.tsxindex 33ac33e10d7..97778115795 100644--- a/web/app/components/workflow/nodes/human-input/node.tsx+++ b/web/app/components/workflow/nodes/human-input/node.tsx@@ -23,21 +23,21 @@ const Node: FC<NodeProps<HumanInputNodeType>> = (props) => {<>{deliveryMethods.length > 0 && (<div className="space-y-0.5 py-1">- <div className="system-2xs-medium-uppercase px-2.5 py-0.5 text-text-tertiary">{t(`${i18nPrefix}.deliveryMethod.title`, { ns: 'workflow' })}</div>+ <div className="px-2.5 py-0.5 system-2xs-medium-uppercase text-text-tertiary">{t(`${i18nPrefix}.deliveryMethod.title`, { ns: 'workflow' })}</div><div className="space-y-0.5 px-2.5">{deliveryMethods.map(method => (- <div key={method.type} className="flex items-center gap-1 radius-sm bg-workflow-block-parma-bg p-1">+ <div key={method.type} className="flex items-center gap-1 rounded-md bg-workflow-block-parma-bg p-1">{method.type === DeliveryMethodType.WebApp && (- <div className="radius-xs border border-divider-regular bg-components-icon-bg-indigo-solid p-0.5">+ <div className="rounded-sm border border-divider-regular bg-components-icon-bg-indigo-solid p-0.5"><RiRobot2Fill className="h-3.5 w-3.5 text-text-primary-on-surface" /></div>)}{method.type === DeliveryMethodType.Email && (- <div className="radius-xs border border-divider-regular bg-components-icon-bg-blue-solid p-0.5">+ <div className="rounded-sm border border-divider-regular bg-components-icon-bg-blue-solid p-0.5"><RiMailSendFill className="h-3.5 w-3.5 text-text-primary-on-surface" /></div>)}- <span className="system-xs-regular capitalize text-text-secondary">{method.type}</span>+ <span className="system-xs-regular text-text-secondary capitalize">{method.type}</span></div>))}</div>@@ -48,7 +48,7 @@ const Node: FC<NodeProps<HumanInputNodeType>> = (props) => {<>{userActions.map(userAction => (<div key={userAction.id} className="relative flex flex-row-reverse items-center px-4 py-1">- <span className="system-xs-semibold-uppercase truncate text-text-secondary">{userAction.id}</span>+ <span className="truncate system-xs-semibold-uppercase text-text-secondary">{userAction.id}</span><NodeSourceHandle{...props}handleId={userAction.id}@@ -59,7 +59,7 @@ const Node: FC<NodeProps<HumanInputNodeType>> = (props) => {</>)}<div className="relative flex flex-row-reverse items-center px-4 py-1">- <div className="system-xs-semibold-uppercase truncate text-text-secondary">Timeout</div>+ <div className="truncate system-xs-semibold-uppercase text-text-secondary">Timeout</div><NodeSourceHandle{...props}handleId="__timeout"diff --git a/web/app/components/workflow/nodes/human-input/panel.tsx b/web/app/components/workflow/nodes/human-input/panel.tsxindex 24e2d6c8dce..846b135fcf2 100644--- a/web/app/components/workflow/nodes/human-input/panel.tsx+++ b/web/app/components/workflow/nodes/human-input/panel.tsx@@ -1,6 +1,7 @@import type { FC } from 'react'import type { HumanInputNodeType } from './types'import type { NodePanelProps, Var } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiAddLine,RiClipboardLine,@@ -23,7 +24,6 @@ import Split from '@/app/components/workflow/nodes/_base/components/split'import useAvailableVarList from '@/app/components/workflow/nodes/_base/hooks/use-available-var-list'import { useStore } from '@/app/components/workflow/store'import { VarType } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import DeliveryMethod from './components/delivery-method'import FormContent from './components/form-content'import FormContentPreview from './components/form-content-preview'@@ -179,7 +179,7 @@ const Panel: FC<NodePanelProps<HumanInputNodeType>> = ({)}</div>{!inputs.user_actions.length && (- <div className="flex items-center justify-center radius-lg bg-background-section p-3 system-xs-regular text-text-tertiary">{t(`${i18nPrefix}.userActions.emptyTip`, { ns: 'workflow' })}</div>+ <div className="flex items-center justify-center rounded-[10px] bg-background-section p-3 system-xs-regular text-text-tertiary">{t(`${i18nPrefix}.userActions.emptyTip`, { ns: 'workflow' })}</div>)}{inputs.user_actions.length > 0 && (<div className="space-y-2">diff --git a/web/app/components/workflow/nodes/if-else/components/condition-list/condition-item.tsx b/web/app/components/workflow/nodes/if-else/components/condition-list/condition-item.tsxindex e943efa848d..133577613d0 100644--- a/web/app/components/workflow/nodes/if-else/components/condition-list/condition-item.tsx+++ b/web/app/components/workflow/nodes/if-else/components/condition-list/condition-item.tsx@@ -14,6 +14,7 @@ import type {ValueSelector,Var,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiDeleteBinLine } from '@remixicon/react'import { produce } from 'immer'import {@@ -28,15 +29,14 @@ import { useIsChatMode } from '@/app/components/workflow/hooks/use-workflow'import { getVarType } from '@/app/components/workflow/nodes/_base/components/variable/utils'import BoolValue from '@/app/components/workflow/panel/chat-variable-panel/components/bool-value'import { useWorkflowStore } from '@/app/components/workflow/store'-import { VarType } from '@/app/components/workflow/types'+import { VarType } from '@/app/components/workflow/types'import {useAllBuiltInTools,useAllCustomTools,useAllMCPTools,useAllWorkflowTools,} from '@/service/use-tools'-import { cn } from '@/utils/classnames'import useMatchSchemaType from '../../../_base/components/variable/use-match-schema-type'import { FILE_TYPE_OPTIONS, SUB_VARIABLES, TRANSFER_METHOD } from '../../../constants'import {@@ -281,11 +281,11 @@ const ConditionItem = ({<div className="flex cursor-pointer justify-start"><div className="inline-flex h-6 max-w-full items-center rounded-md border-[0.5px] border-components-panel-border-subtle bg-components-badge-white-to-dark px-1.5 text-text-accent shadow-xs"><Variable02 className="h-3.5 w-3.5 shrink-0 text-text-accent" />- <div className="system-xs-medium ml-0.5 truncate">{item?.name}</div>+ <div className="ml-0.5 truncate system-xs-medium">{item?.name}</div></div></div>)- : <div className="system-sm-regular text-left text-components-input-text-placeholder">{t('placeholder.select', { ns: 'common' })}</div>+ : <div className="text-left system-sm-regular text-components-input-text-placeholder">{t('placeholder.select', { ns: 'common' })}</div>)}hideChecked/>@@ -388,7 +388,7 @@ const ConditionItem = ({}</div><div- className="ml-1 mt-1 flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded-lg text-text-tertiary hover:bg-state-destructive-hover hover:text-text-destructive"+ className="mt-1 ml-1 flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded-lg text-text-tertiary hover:bg-state-destructive-hover hover:text-text-destructive"onMouseEnter={() => setIsHovered(true)}onMouseLeave={() => setIsHovered(false)}onClick={doRemoveCondition}diff --git a/web/app/components/workflow/nodes/if-else/components/condition-list/condition-operator.tsx b/web/app/components/workflow/nodes/if-else/components/condition-list/condition-operator.tsxindex 43fc5c391ad..998cc48205f 100644--- a/web/app/components/workflow/nodes/if-else/components/condition-list/condition-operator.tsx+++ b/web/app/components/workflow/nodes/if-else/components/condition-list/condition-operator.tsx@@ -1,5 +1,6 @@import type { ComparisonOperator } from '../../types'import type { VarType } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine } from '@remixicon/react'import {useMemo,@@ -12,7 +13,6 @@ import {PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import { getOperators, isComparisonOperatorNeedTranslate } from '../../utils'const i18nPrefix = 'nodes.ifElse'diff --git a/web/app/components/workflow/nodes/if-else/components/condition-list/index.tsx b/web/app/components/workflow/nodes/if-else/components/condition-list/index.tsxindex bda775e21c3..180c72b3e25 100644--- a/web/app/components/workflow/nodes/if-else/components/condition-list/index.tsx+++ b/web/app/components/workflow/nodes/if-else/components/condition-list/index.tsx@@ -4,9 +4,9 @@ import type {NodeOutPutVar,Var,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiLoopLeftLine } from '@remixicon/react'import { useCallback, useMemo } from 'react'-import { cn } from '@/utils/classnames'import {LogicalOperator,@@ -82,15 +82,15 @@ const ConditionList = ({{conditions.length > 1 && (<div className={cn(- 'absolute bottom-0 left-0 top-0 w-[60px]',+ 'absolute top-0 bottom-0 left-0 w-[60px]',isSubVariable && logical_operator === LogicalOperator.and && 'left-[-10px]',isSubVariable && logical_operator === LogicalOperator.or && 'left-[-18px]',)}>- <div className="absolute bottom-4 left-[46px] top-4 w-2.5 rounded-l-[8px] border border-r-0 border-divider-deep"></div>- <div className="absolute right-0 top-1/2 h-[29px] w-4 -translate-y-1/2 bg-components-panel-bg"></div>+ <div className="absolute top-4 bottom-4 left-[46px] w-2.5 rounded-l-[8px] border border-r-0 border-divider-deep"></div>+ <div className="absolute top-1/2 right-0 h-[29px] w-4 -translate-y-1/2 bg-components-panel-bg"></div><div- className="absolute right-1 top-1/2 flex h-[21px] -translate-y-1/2 cursor-pointer select-none items-center rounded-md border-[0.5px] border-components-button-secondary-border bg-components-button-secondary-bg px-1 text-[10px] font-semibold text-text-accent-secondary shadow-xs"+ className="absolute top-1/2 right-1 flex h-[21px] -translate-y-1/2 cursor-pointer items-center rounded-md border-[0.5px] border-components-button-secondary-border bg-components-button-secondary-bg px-1 text-[10px] font-semibold text-text-accent-secondary shadow-xs select-none"onClick={doToggleConditionLogicalOperator}>{logical_operator.toUpperCase()}diff --git a/web/app/components/workflow/nodes/if-else/components/condition-number-input.tsx b/web/app/components/workflow/nodes/if-else/components/condition-number-input.tsxindex be4df1501d7..7bcb4137b5e 100644--- a/web/app/components/workflow/nodes/if-else/components/condition-number-input.tsx+++ b/web/app/components/workflow/nodes/if-else/components/condition-number-input.tsx@@ -2,6 +2,7 @@ import type {NodeOutPutVar,ValueSelector,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine } from '@remixicon/react'import { useBoolean } from 'ahooks'import { capitalize } from 'es-toolkit/string'@@ -21,7 +22,6 @@ import { Button } from '@/app/components/base/ui/button'import VarReferenceVars from '@/app/components/workflow/nodes/_base/components/variable/var-reference-vars'import { VarType } from '@/app/components/workflow/types'import { variableTransformer } from '@/app/components/workflow/utils'-import { cn } from '@/utils/classnames'import VariableTag from '../../_base/components/variable-tag'import { VarType as NumberVarType } from '../../tool/types'diff --git a/web/app/components/workflow/nodes/if-else/components/condition-wrap.tsx b/web/app/components/workflow/nodes/if-else/components/condition-wrap.tsxindex e03e43ea709..1744ee64909 100644--- a/web/app/components/workflow/nodes/if-else/components/condition-wrap.tsx+++ b/web/app/components/workflow/nodes/if-else/components/condition-wrap.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { Node, NodeOutPutVar, Var } from '../../../types'import type { CaseItem, HandleAddCondition, HandleAddSubVariableCondition, HandleRemoveCondition, handleRemoveSubVariableCondition, HandleToggleConditionLogicalOperator, HandleToggleSubVariableConditionLogicalOperator, HandleUpdateCondition, HandleUpdateSubVariableCondition } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import {RiAddLine,RiDeleteBinLine,@@ -14,7 +15,6 @@ import { useTranslation } from 'react-i18next'import { ReactSortable } from 'react-sortablejs'import { PortalSelect as Select } from '@/app/components/base/select'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import { VarType } from '../../../types'import { SUB_VARIABLES } from '../../constants'import { useGetAvailableVars } from '../../variable-assigner/hooks'@@ -97,7 +97,7 @@ const ConditionWrap: FC<Props> = ({<div key={item.case_id}><divclassName={cn(- 'group relative radius-lg bg-components-panel-bg',+ 'group relative rounded-[10px] bg-components-panel-bg',willDeleteCaseId === item.case_id && 'bg-state-destructive-hover',!isSubVariable && 'min-h-[40px] px-3 py-1',isSubVariable && 'px-1 py-2',diff --git a/web/app/components/workflow/nodes/iteration/add-block.tsx b/web/app/components/workflow/nodes/iteration/add-block.tsxindex 33ae932e003..c33b1269eb9 100644--- a/web/app/components/workflow/nodes/iteration/add-block.tsx+++ b/web/app/components/workflow/nodes/iteration/add-block.tsx@@ -2,6 +2,7 @@ import type { IterationNodeType } from './types'import type {OnSelectBlock,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiAddLine,} from '@remixicon/react'@@ -14,7 +15,6 @@ import BlockSelector from '@/app/components/workflow/block-selector'import {BlockEnum,} from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import {useAvailableBlocks,useNodesInteractions,@@ -49,7 +49,7 @@ const AddBlock = ({const renderTriggerElement = useCallback((open: boolean) => {return (<div className={cn(- 'system-sm-medium relative inline-flex h-8 cursor-pointer items-center rounded-lg border-[0.5px] border-components-button-secondary-border bg-components-button-secondary-bg px-3 text-components-button-secondary-text shadow-xs backdrop-blur-[5px] hover:bg-components-button-secondary-bg-hover',+ 'relative inline-flex h-8 cursor-pointer items-center rounded-lg border-[0.5px] border-components-button-secondary-border bg-components-button-secondary-bg px-3 system-sm-medium text-components-button-secondary-text shadow-xs backdrop-blur-[5px] hover:bg-components-button-secondary-bg-hover',`${nodesReadOnly && 'cursor-not-allowed! bg-components-button-secondary-bg-disabled'}`,open && 'bg-components-button-secondary-bg-hover',)}@@ -61,9 +61,9 @@ const AddBlock = ({}, [nodesReadOnly, t])return (- <div className="absolute left-14 top-7 z-10 flex h-8 items-center">+ <div className="absolute top-7 left-14 z-10 flex h-8 items-center"><div className="group/insert relative h-0.5 w-16 bg-gray-300">- <div className="absolute right-0 top-1/2 h-2 w-0.5 -translate-y-1/2 bg-primary-500"></div>+ <div className="absolute top-1/2 right-0 h-2 w-0.5 -translate-y-1/2 bg-primary-500"></div></div><BlockSelectordisabled={nodesReadOnly}diff --git a/web/app/components/workflow/nodes/iteration/node.tsx b/web/app/components/workflow/nodes/iteration/node.tsxindex 91a08d2984e..9524ee62fe6 100644--- a/web/app/components/workflow/nodes/iteration/node.tsx+++ b/web/app/components/workflow/nodes/iteration/node.tsx@@ -1,6 +1,7 @@import type { FC } from 'react'import type { IterationNodeType } from './types'import type { NodeProps } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {memo,useEffect,@@ -13,7 +14,6 @@ import {useViewport,} from 'reactflow'import { toast } from '@/app/components/base/ui/toast'-import { cn } from '@/utils/classnames'import { IterationStartNodeDumb } from '../iteration-start'import AddBlock from './add-block'import { useNodeIterationInteractions } from './use-interactions'diff --git a/web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/hooks.tsx b/web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/hooks.tsxindex b0bd05dae4f..a28c6518944 100644--- a/web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/hooks.tsx+++ b/web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/hooks.tsx@@ -1,11 +1,11 @@import type { Option } from './type'+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'import {GeneralChunk,ParentChildChunk,QuestionAndAnswer,} from '@/app/components/base/icons/src/vender/knowledge'-import { cn } from '@/utils/classnames'import { ChunkStructureEnum } from '../../types'export const useChunkStructure = () => {diff --git a/web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/instruction/index.tsx b/web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/instruction/index.tsxindex 692fb70e94a..df82994bd0a 100644--- a/web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/instruction/index.tsx+++ b/web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/instruction/index.tsx@@ -1,8 +1,8 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import { AddChunks } from '@/app/components/base/icons/src/vender/knowledge'import { useDocLink } from '@/context/i18n'-import { cn } from '@/utils/classnames'import Line from './line'type InstructionProps = {@@ -16,13 +16,13 @@ const Instruction = ({const docLink = useDocLink()return (- <div className={cn('flex flex-col gap-y-2 overflow-hidden radius-lg bg-workflow-process-bg p-4', className)}>- <div className="relative flex size-10 items-center justify-center radius-lg border-[0.5px] border-components-card-border bg-components-card-bg shadow-lg backdrop-blur-[5px]">+ <div className={cn('flex flex-col gap-y-2 overflow-hidden rounded-[10px] bg-workflow-process-bg p-4', className)}>+ <div className="relative flex size-10 items-center justify-center rounded-[10px] border-[0.5px] border-components-card-border bg-components-card-bg shadow-lg backdrop-blur-[5px]"><AddChunks className="size-5 text-text-accent" />- <Line className="absolute -left-px bottom-[-76px]" type="vertical" />+ <Line className="absolute bottom-[-76px] -left-px" type="vertical" /><Line className="absolute -right-px bottom-[-76px]" type="vertical" /><Line className="absolute -top-px right-[-184px]" type="horizontal" />- <Line className="absolute -bottom-px right-[-184px]" type="horizontal" />+ <Line className="absolute right-[-184px] -bottom-px" type="horizontal" /></div><div className="flex flex-col gap-y-1"><div className="system-sm-medium text-text-secondary">diff --git a/web/app/components/workflow/nodes/knowledge-base/components/index-method.tsx b/web/app/components/workflow/nodes/knowledge-base/components/index-method.tsxindex a223c5ab248..12cc0f1eb5b 100644--- a/web/app/components/workflow/nodes/knowledge-base/components/index-method.tsx+++ b/web/app/components/workflow/nodes/knowledge-base/components/index-method.tsx@@ -1,3 +1,4 @@+import { cn } from '@langgenius/dify-ui/cn'import { RiQuestionLine } from '@remixicon/react'import {memo,@@ -12,7 +13,6 @@ import Input from '@/app/components/base/input'import Tooltip from '@/app/components/base/tooltip'import { Slider } from '@/app/components/base/ui/slider'import { Field } from '@/app/components/workflow/nodes/_base/components/layout'-import { cn } from '@/utils/classnames'import {ChunkStructureEnum,IndexMethodEnum,@@ -94,7 +94,7 @@ const IndexMethod = ({><div className="flex items-center"><div className="flex grow items-center">- <div className="truncate text-text-secondary system-xs-medium">+ <div className="truncate system-xs-medium text-text-secondary">{t('form.numberOfKeywords', { ns: 'datasetSettings' })}</div><Tooltipdiff --git a/web/app/components/workflow/nodes/knowledge-base/components/option-card.tsx b/web/app/components/workflow/nodes/knowledge-base/components/option-card.tsxindex bf72af2fd08..56ce3562954 100644--- a/web/app/components/workflow/nodes/knowledge-base/components/option-card.tsx+++ b/web/app/components/workflow/nodes/knowledge-base/components/option-card.tsx@@ -1,4 +1,5 @@import type { ReactNode } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {memo,useMemo,@@ -13,7 +14,6 @@ import {OptionCardEffectTeal,} from '@/app/components/base/icons/src/public/knowledge'import { ArrowShape } from '@/app/components/base/icons/src/vender/knowledge'-import { cn } from '@/utils/classnames'const HEADER_EFFECT_MAP: Record<string, ReactNode> = {'blue': <OptionCardEffectBlue />,@@ -65,7 +65,7 @@ const OptionCard = memo(({if (effectColor) {return (<div className={cn(- 'absolute left-[-2px] top-[-2px] hidden h-14 w-14 rounded-full',+ 'absolute top-[-2px] left-[-2px] hidden h-14 w-14 rounded-full','group-hover:block',isActive && 'block',)}@@ -108,7 +108,7 @@ const OptionCard = memo(({}<div className="grow py-1 pt-px"><div className="flex items-center">- <div className="system-sm-medium flex grow items-center text-text-secondary">+ <div className="flex grow items-center system-sm-medium text-text-secondary">{title}{isRecommended && (@@ -131,7 +131,7 @@ const OptionCard = memo(({</div>{description && (- <div className="system-xs-regular mt-1 text-text-tertiary">+ <div className="mt-1 system-xs-regular text-text-tertiary">{description}</div>)@@ -141,7 +141,7 @@ const OptionCard = memo(({{!!(children && isActive) && (<div className="relative rounded-b-xl bg-components-panel-bg p-3">- <ArrowShape className="absolute left-[14px] top-[-11px] h-4 w-4 text-components-panel-bg" />+ <ArrowShape className="absolute top-[-11px] left-[14px] h-4 w-4 text-components-panel-bg" />{children}</div>)diff --git a/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/search-method-option.tsx b/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/search-method-option.tsxindex c7addde4c5c..52b8debd45b 100644--- a/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/search-method-option.tsx+++ b/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/search-method-option.tsx@@ -7,6 +7,7 @@ import type {HybridSearchModeOption,Option,} from './type'+import { cn } from '@langgenius/dify-ui/cn'import {memo,useCallback,@@ -18,7 +19,6 @@ import { AlertTriangle } from '@/app/components/base/icons/src/vender/solid/alerimport Switch from '@/app/components/base/switch'import Tooltip from '@/app/components/base/tooltip'import { DEFAULT_WEIGHTED_SCORE } from '@/models/datasets'-import { cn } from '@/utils/classnames'import {HybridSearchModeEnum,RetrievalSearchMethodEnum,@@ -166,7 +166,7 @@ const SearchMethodOption = ({<div>{showRerankModelSelectorSwitch && (- <div className="mb-1 flex items-center text-text-secondary system-sm-semibold">+ <div className="mb-1 flex items-center system-sm-semibold text-text-secondary"><SwitchclassName="mr-1"value={rerankingModelEnabled ?? false}@@ -188,11 +188,11 @@ const SearchMethodOption = ({/>{showMultiModalTip && (<div className="mt-2 flex h-10 items-center gap-x-0.5 overflow-hidden rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur p-2 shadow-xs backdrop-blur-[5px]">- <div className="absolute bottom-0 left-0 right-0 top-0 bg-dataset-warning-message-bg opacity-40" />+ <div className="absolute top-0 right-0 bottom-0 left-0 bg-dataset-warning-message-bg opacity-40" /><div className="p-1"><AlertTriangle className="size-4 text-text-warning-secondary" /></div>- <span className="text-text-primary system-xs-medium">+ <span className="system-xs-medium text-text-primary">{t('form.retrievalSetting.multiModalTip', { ns: 'datasetSettings' })}</span></div>diff --git a/web/app/components/workflow/nodes/knowledge-base/node.tsx b/web/app/components/workflow/nodes/knowledge-base/node.tsxindex 25ee30be843..3f8f3554af3 100644--- a/web/app/components/workflow/nodes/knowledge-base/node.tsx+++ b/web/app/components/workflow/nodes/knowledge-base/node.tsx@@ -1,6 +1,7 @@import type { FC } from 'react'import type { KnowledgeBaseNodeType } from './types'import type { NodeProps } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { useQuery } from '@tanstack/react-query'import {memo,@@ -16,7 +17,6 @@ import {useModelList,} from '@/app/components/header/account-setting/model-provider-page/hooks'import { consoleQuery } from '@/service/client'-import { cn } from '@/utils/classnames'import { useEmbeddingModelStatus } from './hooks/use-embedding-model-status'import { useSettingsDisplay } from './hooks/use-settings-display'import {@@ -48,7 +48,7 @@ const SettingRow = memo(({: 'bg-workflow-block-parma-bg',)}>- <div className="mr-2 shrink-0 text-text-tertiary system-xs-medium-uppercase">+ <div className="mr-2 shrink-0 system-xs-medium-uppercase text-text-tertiary">{label}</div><div@@ -172,8 +172,8 @@ const Node: FC<NodeProps<KnowledgeBaseNodeType>> = ({ data }) => {return (<div className="mb-1 space-y-0.5 px-3 py-1"><div className="flex h-6 items-center rounded-md border-[0.5px] border-state-warning-active bg-state-warning-hover px-1.5">- <span className="mr-1 size-[4px] shrink-0 radius-2xs bg-text-warning-secondary" />- <div className="grow truncate text-text-warning system-xs-medium" title={validationIssueMessage}>+ <span className="mr-1 size-[4px] shrink-0 rounded-xs bg-text-warning-secondary" />+ <div className="grow truncate system-xs-medium text-text-warning" title={validationIssueMessage}>{validationIssueMessage}</div></div>diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-date.tsx b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-date.tsxindex b34093b7b09..fe4c086cb45 100644--- a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-date.tsx+++ b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-date.tsx@@ -1,4 +1,5 @@import type { TriggerProps } from '@/app/components/base/date-and-time-picker/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiCalendarLine,RiCloseCircleFill,@@ -8,7 +9,6 @@ import { useCallback } from 'react'import { useTranslation } from 'react-i18next'import DatePicker from '@/app/components/base/date-and-time-picker/date-picker'import { useAppContext } from '@/context/app-context'-import { cn } from '@/utils/classnames'type ConditionDateProps = {value?: number@@ -35,7 +35,7 @@ const ConditionDate = ({<div className="group flex items-center" onClick={handleClickTrigger}><divclassName={cn(- 'system-sm-regular mr-0.5 flex h-6 grow cursor-pointer items-center px-1',+ 'mr-0.5 flex h-6 grow cursor-pointer items-center px-1 system-sm-regular',value ? 'text-text-secondary' : 'text-text-tertiary',)}>@@ -49,7 +49,7 @@ const ConditionDate = ({!!value && (<RiCloseCircleFillclassName={cn(- 'hidden h-4 w-4 shrink-0 cursor-pointer hover:text-components-input-text-filled group-hover:block',+ 'hidden h-4 w-4 shrink-0 cursor-pointer group-hover:block hover:text-components-input-text-filled',value && 'text-text-quaternary',)}onClick={(e) => {diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-item.tsx b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-item.tsxindex 214b05cc474..46f03d0c774 100644--- a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-item.tsx+++ b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-item.tsx@@ -5,6 +5,7 @@ import type {MetadataFilteringCondition,MetadataShape,} from '@/app/components/workflow/nodes/knowledge-retrieval/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiDeleteBinLine,} from '@remixicon/react'@@ -14,7 +15,6 @@ import {useState,} from 'react'import { MetadataFilteringVariableType } from '@/app/components/workflow/nodes/knowledge-retrieval/types'-import { cn } from '@/utils/classnames'import MetadataIcon from '../metadata-icon'import ConditionDate from './condition-date'import ConditionNumber from './condition-number'@@ -133,11 +133,11 @@ const ConditionItem = ({><div className="flex items-center p-1"><div className="w-0 grow">- <div className="flex h-6 min-w-0 items-center rounded-md border-[0.5px] border-components-panel-border-subtle bg-components-badge-white-to-dark pl-1 pr-1.5 shadow-xs">+ <div className="flex h-6 min-w-0 items-center rounded-md border-[0.5px] border-components-panel-border-subtle bg-components-badge-white-to-dark pr-1.5 pl-1 shadow-xs"><div className="mr-0.5 p-px"><MetadataIcon type={currentMetadata?.type} className="h-3 w-3" /></div>- <div className="system-xs-medium mr-0.5 min-w-0 flex-1 truncate text-text-secondary">{currentMetadata?.name}</div>+ <div className="mr-0.5 min-w-0 flex-1 truncate system-xs-medium text-text-secondary">{currentMetadata?.name}</div><div className="system-xs-regular text-text-tertiary">{currentMetadata?.type}</div></div></div>@@ -191,7 +191,7 @@ const ConditionItem = ({</div></div><div- className="ml-1 mt-1 flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded-lg text-text-tertiary hover:bg-state-destructive-hover hover:text-text-destructive"+ className="mt-1 ml-1 flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded-lg text-text-tertiary hover:bg-state-destructive-hover hover:text-text-destructive"onMouseEnter={() => setIsHovered(true)}onMouseLeave={() => setIsHovered(false)}onClick={doRemoveCondition}diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-operator.tsx b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-operator.tsxindex 550142db96f..d6828a5392f 100644--- a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-operator.tsx+++ b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-operator.tsx@@ -2,6 +2,7 @@ import type {ComparisonOperator,MetadataFilteringVariableType,} from '@/app/components/workflow/nodes/knowledge-retrieval/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine } from '@remixicon/react'import {useMemo,@@ -14,7 +15,6 @@ import {PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import {getOperators,isComparisonOperatorNeedTranslate,diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-value-method.tsx b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-value-method.tsxindex b24a41589a6..b69bd05cdd7 100644--- a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-value-method.tsx+++ b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-value-method.tsx@@ -1,3 +1,4 @@+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine } from '@remixicon/react'import { capitalize } from 'es-toolkit/string'import { useState } from 'react'@@ -7,7 +8,6 @@ import {PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'export type ConditionValueMethodProps = {valueMethod?: stringdiff --git a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/index.tsx b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/index.tsxindex 163d1084d20..e554ba6c8c0 100644--- a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/index.tsx+++ b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/index.tsx@@ -1,7 +1,7 @@import type { MetadataShape } from '@/app/components/workflow/nodes/knowledge-retrieval/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiLoopLeftLine } from '@remixicon/react'import { LogicalOperator } from '@/app/components/workflow/nodes/knowledge-retrieval/types'-import { cn } from '@/utils/classnames'import ConditionItem from './condition-item'type ConditionListProps = {@@ -33,13 +33,13 @@ const ConditionList = ({{conditions.length > 1 && (<div className={cn(- 'absolute bottom-0 left-0 top-0 w-[44px]',+ 'absolute top-0 bottom-0 left-0 w-[44px]',)}>- <div className="absolute bottom-4 right-1 top-4 w-2.5 rounded-l-[8px] border border-r-0 border-divider-deep"></div>- <div className="absolute right-0 top-1/2 h-[29px] w-4 -translate-y-1/2 bg-components-panel-bg"></div>+ <div className="absolute top-4 right-1 bottom-4 w-2.5 rounded-l-[8px] border border-r-0 border-divider-deep"></div>+ <div className="absolute top-1/2 right-0 h-[29px] w-4 -translate-y-1/2 bg-components-panel-bg"></div><div- className="absolute right-1 top-1/2 flex h-[21px] -translate-y-1/2 cursor-pointer select-none items-center rounded-md border-[0.5px] border-components-button-secondary-border bg-components-button-secondary-bg px-1 text-[10px] font-semibold text-text-accent-secondary shadow-xs"+ className="absolute top-1/2 right-1 flex h-[21px] -translate-y-1/2 cursor-pointer items-center rounded-md border-[0.5px] border-components-button-secondary-border bg-components-button-secondary-bg px-1 text-[10px] font-semibold text-text-accent-secondary shadow-xs select-none"onClick={() => handleToggleConditionLogicalOperator()}>{logical_operator.toUpperCase()}diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-icon.tsx b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-icon.tsxindex 803a8361429..4bf403d0d37 100644--- a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-icon.tsx+++ b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-icon.tsx@@ -1,3 +1,4 @@+import { cn } from '@langgenius/dify-ui/cn'import {RiHashtag,RiTextSnippet,@@ -5,7 +6,6 @@ import {} from '@remixicon/react'import { memo } from 'react'import { MetadataFilteringVariableType } from '@/app/components/workflow/nodes/knowledge-retrieval/types'-import { cn } from '@/utils/classnames'type MetadataIconProps = {type?: MetadataFilteringVariableTypediff --git a/web/app/components/workflow/nodes/knowledge-retrieval/components/retrieval-config.tsx b/web/app/components/workflow/nodes/knowledge-retrieval/components/retrieval-config.tsxindex ec5399974b1..3f8198a822b 100644--- a/web/app/components/workflow/nodes/knowledge-retrieval/components/retrieval-config.tsx+++ b/web/app/components/workflow/nodes/knowledge-retrieval/components/retrieval-config.tsx@@ -5,6 +5,7 @@ import type { MultipleRetrievalConfig, SingleRetrievalConfig } from '../types'import type { ModelParameterModalProps } from '@/app/components/header/account-setting/model-provider-page/model-parameter-modal'import type { DataSet } from '@/models/datasets'import type { DatasetConfigs } from '@/models/debug'+import { cn } from '@langgenius/dify-ui/cn'import { RiEqualizer2Line } from '@remixicon/react'import * as React from 'react'import { useCallback, useMemo } from 'react'@@ -18,7 +19,6 @@ import {import { Button } from '@/app/components/base/ui/button'import { DATASET_DEFAULT } from '@/config'import { RETRIEVE_TYPE } from '@/types/app'-import { cn } from '@/utils/classnames'type Props = {payload: {diff --git a/web/app/components/workflow/nodes/list-operator/components/extract-input.tsx b/web/app/components/workflow/nodes/list-operator/components/extract-input.tsxindex 3c07bf79343..a5b91ec1995 100644--- a/web/app/components/workflow/nodes/list-operator/components/extract-input.tsx+++ b/web/app/components/workflow/nodes/list-operator/components/extract-input.tsx@@ -1,12 +1,12 @@'use client'import type { FC } from 'react'import type { Var } from '../../../types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useState } from 'react'import { useTranslation } from 'react-i18next'import Input from '@/app/components/workflow/nodes/_base/components/input-support-select-var'import useAvailableVarList from '@/app/components/workflow/nodes/_base/hooks/use-available-var-list'-import { cn } from '@/utils/classnames'import { VarType } from '../../../types'type Props = {@@ -33,7 +33,7 @@ const ExtractInput: FC<Props> = ({})return (- <div className="flex items-start space-x-1">+ <div className="flex items-start space-x-1"><InputinstanceId="http-extract-number"className={cn(isFocus ? 'border-components-input-border-active bg-components-input-bg-active shadow-xs' : 'border-components-input-border-hover bg-components-input-bg-normal', 'w-0 grow rounded-lg border px-3 py-[6px]')}diff --git a/web/app/components/workflow/nodes/list-operator/components/filter-condition.tsx b/web/app/components/workflow/nodes/list-operator/components/filter-condition.tsxindex b1f74a15e0c..71d6bf2a08e 100644--- a/web/app/components/workflow/nodes/list-operator/components/filter-condition.tsx+++ b/web/app/components/workflow/nodes/list-operator/components/filter-condition.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { Condition } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback, useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -9,7 +10,6 @@ import Input from '@/app/components/workflow/nodes/_base/components/input-supporimport useAvailableVarList from '@/app/components/workflow/nodes/_base/hooks/use-available-var-list'import { FILE_TYPE_OPTIONS, TRANSFER_METHOD } from '@/app/components/workflow/nodes/constants'import { getConditionValueAsString } from '@/app/components/workflow/nodes/utils'-import { cn } from '@/utils/classnames'import BoolValue from '../../../panel/chat-variable-panel/components/bool-value'import { VarType } from '../../../types'import ConditionOperator from '../../if-else/components/condition-list/condition-operator'diff --git a/web/app/components/workflow/nodes/list-operator/components/limit-config.tsx b/web/app/components/workflow/nodes/list-operator/components/limit-config.tsxindex 964366b325e..210f9dd911a 100644--- a/web/app/components/workflow/nodes/list-operator/components/limit-config.tsx+++ b/web/app/components/workflow/nodes/list-operator/components/limit-config.tsx@@ -1,12 +1,12 @@'use client'import type { FC } from 'react'import type { Limit } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'import Switch from '@/app/components/base/switch'import Field from '@/app/components/workflow/nodes/_base/components/field'-import { cn } from '@/utils/classnames'import InputNumberWithSlider from '../../_base/components/input-number-with-slider'const i18nPrefix = 'nodes.listFilter'diff --git a/web/app/components/workflow/nodes/list-operator/components/sub-variable-picker.tsx b/web/app/components/workflow/nodes/list-operator/components/sub-variable-picker.tsxindex c9a98abed46..22c6eea5a27 100644--- a/web/app/components/workflow/nodes/list-operator/components/sub-variable-picker.tsx+++ b/web/app/components/workflow/nodes/list-operator/components/sub-variable-picker.tsx@@ -1,12 +1,12 @@'use client'import type { FC } from 'react'import type { Item } from '@/app/components/base/select'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'import { Variable02 } from '@/app/components/base/icons/src/vender/solid/development'import { SimpleSelect as Select } from '@/app/components/base/select'-import { cn } from '@/utils/classnames'import { SUB_VARIABLES } from '../../constants'type Props = {@@ -59,12 +59,12 @@ const SubVariablePicker: FC<Props> = ({<div className="flex cursor-pointer justify-start"><div className="inline-flex h-6 max-w-full items-center rounded-md border-[0.5px] border-components-panel-border-subtle bg-components-badge-white-to-dark px-1.5 text-text-accent shadow-xs"><Variable02 className="h-3.5 w-3.5 shrink-0 text-text-accent" />- <div className="system-xs-medium ml-0.5 truncate">{item?.name}</div>+ <div className="ml-0.5 truncate system-xs-medium">{item?.name}</div></div></div>): (- <div className="system-sm-regular flex pl-1 text-components-input-text-placeholder group-hover/sub-variable-picker:text-text-tertiary">+ <div className="flex pl-1 system-sm-regular text-components-input-text-placeholder group-hover/sub-variable-picker:text-text-tertiary"><Variable02 className="mr-1 h-4 w-4 shrink-0" /><span>{t('placeholder.select', { ns: 'common' })}</span></div>diff --git a/web/app/components/workflow/nodes/llm/components/config-prompt.tsx b/web/app/components/workflow/nodes/llm/components/config-prompt.tsxindex 5b28c9b48f6..c7fc1411134 100644--- a/web/app/components/workflow/nodes/llm/components/config-prompt.tsx+++ b/web/app/components/workflow/nodes/llm/components/config-prompt.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { ModelConfig, PromptItem, ValueSelector, Var, Variable } from '../../../types'+import { cn } from '@langgenius/dify-ui/cn'import { produce } from 'immer'import * as React from 'react'import { useCallback } from 'react'@@ -10,7 +11,6 @@ import { v4 as uuid4 } from 'uuid'import { DragHandle } from '@/app/components/base/icons/src/vender/line/others'import AddButton from '@/app/components/workflow/nodes/_base/components/add-button'import Editor from '@/app/components/workflow/nodes/_base/components/prompt/editor'-import { cn } from '@/utils/classnames'import { useWorkflowStore } from '../../../store'import { EditionType, PromptRole } from '../../../types'import useAvailableVarList from '../../_base/hooks/use-available-var-list'@@ -182,7 +182,7 @@ const ConfigPrompt: FC<Props> = ({})()return (<div key={item.id || index} className="group relative">- {canDrag && <DragHandle className="absolute left-[-14px] top-2 hidden h-3.5 w-3.5 text-text-quaternary group-hover:block" />}+ {canDrag && <DragHandle className="absolute top-2 left-[-14px] hidden h-3.5 w-3.5 text-text-quaternary group-hover:block" />}<ConfigPromptIteminstanceId={item.role === PromptRole.system ? `${nodeId}-chat-workflow-llm-prompt-editor` : `${nodeId}-chat-workflow-llm-prompt-editor-${index}`}className={cn(canDrag && 'handle')}diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/code-editor.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/code-editor.tsxindex 710225e6e41..35521dbe5c3 100644--- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/code-editor.tsx+++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/code-editor.tsx@@ -1,4 +1,5 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { Editor } from '@monaco-editor/react'import { RiClipboardLine, RiIndentIncrease } from '@remixicon/react'import copy from 'copy-to-clipboard'@@ -8,7 +9,6 @@ import { useTranslation } from 'react-i18next'import Tooltip from '@/app/components/base/tooltip'import useTheme from '@/hooks/use-theme'import { Theme } from '@/types/app'-import { cn } from '@/utils/classnames'type CodeEditorProps = {value: string@@ -116,8 +116,8 @@ const CodeEditor: FC<CodeEditorProps> = ({return (<div className={cn('flex h-full flex-col overflow-hidden bg-components-input-bg-normal', hideTopMenu && 'pt-2', className)}>{!hideTopMenu && (- <div className="flex items-center justify-between pl-2 pr-1 pt-1">- <div className="system-xs-semibold-uppercase py-0.5 text-text-secondary">+ <div className="flex items-center justify-between pt-1 pr-1 pl-2">+ <div className="py-0.5 system-xs-semibold-uppercase text-text-secondary"><span className="px-1 py-0.5">JSON</span></div><div className="flex items-center gap-x-0.5">diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/error-message.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/error-message.tsxindex b5fcb3ad489..7a4e1c11691 100644--- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/error-message.tsx+++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/error-message.tsx@@ -1,7 +1,7 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiErrorWarningFill } from '@remixicon/react'import * as React from 'react'-import { cn } from '@/utils/classnames'type ErrorMessageProps = {message: string@@ -14,7 +14,7 @@ const ErrorMessage: FC<ErrorMessageProps> = ({return (<div className={cn('mt-1 flex gap-x-1 rounded-lg border-[0.5px] border-components-panel-border bg-toast-error-bg p-2', className)}><RiErrorWarningFill className="h-4 w-4 shrink-0 text-text-destructive" />- <div className="system-xs-medium max-h-12 grow overflow-y-auto whitespace-pre-line wrap-break-word text-text-primary">+ <div className="max-h-12 grow overflow-y-auto system-xs-medium wrap-break-word whitespace-pre-line text-text-primary">{message}</div></div>diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-importer.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-importer.tsxindex 840e293cd79..8864b52735b 100644--- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-importer.tsx+++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-importer.tsx@@ -1,4 +1,5 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine } from '@remixicon/react'import * as React from 'react'import { useCallback, useEffect, useRef, useState } from 'react'@@ -6,7 +7,6 @@ import { useTranslation } from 'react-i18next'import { PortalToFollowElem, PortalToFollowElemContent, PortalToFollowElemTrigger } from '@/app/components/base/portal-to-follow-elem'import { Button } from '@/app/components/base/ui/button'import { JSON_SCHEMA_MAX_DEPTH } from '@/config'-import { cn } from '@/utils/classnames'import { checkJsonDepth } from '../../utils'import CodeEditor from './code-editor'import ErrorMessage from './error-message'diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-config.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-config.tsxindex b84e87269f8..e09f6a59fc4 100644--- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-config.tsx+++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-config.tsx@@ -1,12 +1,12 @@import type { FC } from 'react'import type { SchemaRoot } from '../../types'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'import Divider from '@/app/components/base/divider'import { Button } from '@/app/components/base/ui/button'import { toast } from '@/app/components/base/ui/toast'import { JSON_SCHEMA_MAX_DEPTH } from '@/config'-import { cn } from '@/utils/classnames'import { SegmentedControl } from '../../../../../base/segmented-control'import { Type } from '../../types'import {diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-generator/index.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-generator/index.tsxindex 122da26cb7c..7b908bafd6a 100644--- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-generator/index.tsx+++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-generator/index.tsx@@ -2,6 +2,7 @@ import type { FC } from 'react'import type { SchemaRoot } from '../../../types'import type { FormValue } from '@/app/components/header/account-setting/model-provider-page/declarations'import type { CompletionParams, Model } from '@/types/app'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useCallback, useEffect, useState } from 'react'import {@@ -15,7 +16,6 @@ import { useModelListAndDefaultModelAndCurrentProviderAndModel } from '@/app/comimport useTheme from '@/hooks/use-theme'import { useGenerateStructuredOutputRules } from '@/service/use-common'import { ModelModeType, Theme } from '@/types/app'-import { cn } from '@/utils/classnames'import { useMittContext } from '../visual-editor/context'import { useVisualEditorStore } from '../visual-editor/store'import { SchemaGeneratorDark, SchemaGeneratorLight } from './assets'diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/schema-editor.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/schema-editor.tsxindex fc95b4a998c..88585570eb7 100644--- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/schema-editor.tsx+++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/schema-editor.tsx@@ -1,7 +1,7 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import LargeDataAlert from '@/app/components/workflow/variable-inspect/large-data-alert'-import { cn } from '@/utils/classnames'import CodeEditor from './code-editor'type SchemaEditorProps = {@@ -35,7 +35,7 @@ const SchemaEditor: FC<SchemaEditorProps> = ({hideTopMenu={hideTopMenu}onFocus={onFocus}onBlur={onBlur}- topContent={isTruncated && <LargeDataAlert className="mx-1 mb-3 mt-[-4px]" />}+ topContent={isTruncated && <LargeDataAlert className="mx-1 mt-[-4px] mb-3" />}/>)}diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/auto-width-input.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/auto-width-input.tsxindex 9428f9dbb2d..dd28c29f13c 100644--- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/auto-width-input.tsx+++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/auto-width-input.tsx@@ -1,7 +1,7 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useEffect, useState } from 'react'-import { cn } from '@/utils/classnames'type AutoWidthInputProps = {value: string@@ -48,7 +48,7 @@ const AutoWidthInput: FC<AutoWidthInputProps> = ({{/* Hidden measurement span */}<spanref={textRef}- className="system-sm-semibold invisible absolute left-0 top-0 -z-10 whitespace-pre px-1"+ className="invisible absolute top-0 left-0 -z-10 px-1 system-sm-semibold whitespace-pre"aria-hidden="true">{value || placeholder}@@ -58,7 +58,7 @@ const AutoWidthInput: FC<AutoWidthInputProps> = ({<inputvalue={value}className={cn(- 'system-sm-semibold placeholder:system-sm-semibold h-5 rounded-[5px] border border-transparent px-1',+ 'h-5 rounded-[5px] border border-transparent px-1 system-sm-semibold placeholder:system-sm-semibold','py-px text-text-primary caret-[#295EFF] shadow-shadow-shadow-3 outline-hidden','placeholder:text-text-placeholder hover:bg-state-base-hover focus:border-components-input-border-active focus:bg-components-input-bg-active focus:shadow-xs',className,diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/index.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/index.tsxindex bb3700192d7..5650c656419 100644--- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/index.tsx+++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/index.tsx@@ -2,13 +2,13 @@ import type { FC } from 'react'import type { SchemaEnumType } from '../../../../types'import type { AdvancedOptionsType } from './advanced-options'import type { TypeItem } from './type-selector'+import { cn } from '@langgenius/dify-ui/cn'import { useUnmount } from 'ahooks'import * as React from 'react'import { useCallback, useMemo, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'import Divider from '@/app/components/base/divider'import { JSON_SCHEMA_MAX_DEPTH } from '@/config'-import { cn } from '@/utils/classnames'import { ArrayType, Type } from '../../../../types'import { useMittContext } from '../context'import { useVisualEditorStore } from '../store'@@ -218,7 +218,7 @@ const EditCard: FC<EditCardProps> = ({return (<div className="flex flex-col rounded-lg bg-components-panel-bg py-0.5 shadow-sm shadow-shadow-shadow-4">- <div className="flex h-6 items-center pl-1 pr-0.5">+ <div className="flex h-6 items-center pr-0.5 pl-1"><div className="flex grow items-center gap-x-1"><AutoWidthInputvalue={currentFields.name}@@ -236,7 +236,7 @@ const EditCard: FC<EditCardProps> = ({/>{currentFields.required && (- <div className="system-2xs-medium-uppercase px-1 py-0.5 text-text-warning">+ <div className="px-1 py-0.5 system-2xs-medium-uppercase text-text-warning">{t('nodes.llm.jsonSchema.required', { ns: 'workflow' })}</div>)@@ -269,7 +269,7 @@ const EditCard: FC<EditCardProps> = ({<div className={cn('flex', isAdvancedEditing ? 'p-2 pt-1' : 'px-2 pb-1')}><inputvalue={currentFields.description}- className="system-xs-regular placeholder:system-xs-regular h-4 w-full p-0 text-text-tertiary caret-[#295EFF] outline-hidden placeholder:text-text-placeholder"+ className="h-4 w-full p-0 system-xs-regular text-text-tertiary caret-[#295EFF] outline-hidden placeholder:system-xs-regular placeholder:text-text-placeholder"placeholder={t('nodes.llm.jsonSchema.descriptionPlaceholder', { ns: 'workflow' })}onChange={handleDescriptionChange}onBlur={handleDescriptionBlur}diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/type-selector.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/type-selector.tsxindex 375cdca09c1..213b6895d38 100644--- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/type-selector.tsx+++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/type-selector.tsx@@ -1,9 +1,9 @@import type { FC } from 'react'import type { ArrayType, Type } from '../../../../types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine, RiCheckLine } from '@remixicon/react'import { useState } from 'react'import { PortalToFollowElem, PortalToFollowElemContent, PortalToFollowElemTrigger } from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'export type TypeItem = {value: Type | ArrayType@@ -57,7 +57,7 @@ const TypeSelector: FC<TypeSelectorProps> = ({setOpen(false)}}>- <span className="system-sm-medium px-1 text-text-secondary">{item.text}</span>+ <span className="px-1 system-sm-medium text-text-secondary">{item.text}</span>{isSelected && <RiCheckLine className="h-4 w-4 text-text-accent" />}</div>)diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/index.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/index.tsxindex fc4d0ec1065..f7897796d5e 100644--- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/index.tsx+++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/index.tsx@@ -1,6 +1,6 @@import type { FC } from 'react'import type { SchemaRoot } from '../../../types'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'import { useSchemaNodeOperations } from './hooks'import SchemaNode from './schema-node'diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/schema-node.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/schema-node.tsxindex 0fdf5b43496..73744db4c96 100644--- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/schema-node.tsx+++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/schema-node.tsx@@ -1,12 +1,12 @@import type { FC } from 'react'import type { Field } from '../../../types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDropDownLine, RiArrowDropRightLine } from '@remixicon/react'import { useDebounceFn } from 'ahooks'import * as React from 'react'import { useMemo, useState } from 'react'import Divider from '@/app/components/base/divider'import { JSON_SCHEMA_MAX_DEPTH } from '@/config'-import { cn } from '@/utils/classnames'import { Type } from '../../../types'import { getFieldType, getHasChildren } from '../../../utils'import AddField from './add-field'diff --git a/web/app/components/workflow/nodes/llm/components/prompt-generator-btn.tsx b/web/app/components/workflow/nodes/llm/components/prompt-generator-btn.tsxindex da272b4b142..05f84da78d2 100644--- a/web/app/components/workflow/nodes/llm/components/prompt-generator-btn.tsx+++ b/web/app/components/workflow/nodes/llm/components/prompt-generator-btn.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { ModelConfig } from '@/app/components/workflow/types'import type { GenRes } from '@/service/debug'+import { cn } from '@langgenius/dify-ui/cn'import { useBoolean } from 'ahooks'import * as React from 'react'import { useCallback } from 'react'@@ -9,7 +10,6 @@ import GetAutomaticResModal from '@/app/components/app/configuration/config/autoimport { ActionButton } from '@/app/components/base/action-button'import { Generator } from '@/app/components/base/icons/src/vender/other'import { AppModeEnum } from '@/types/app'-import { cn } from '@/utils/classnames'import { useHooksStore } from '../../../hooks-store'type Props = {diff --git a/web/app/components/workflow/nodes/llm/components/structure-output.tsx b/web/app/components/workflow/nodes/llm/components/structure-output.tsxindex d60af7bf559..884c6381106 100644--- a/web/app/components/workflow/nodes/llm/components/structure-output.tsx+++ b/web/app/components/workflow/nodes/llm/components/structure-output.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { SchemaRoot, StructuredOutput } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import { RiEditLine } from '@remixicon/react'import { useBoolean } from 'ahooks'import * as React from 'react'@@ -8,7 +9,6 @@ import { useCallback } from 'react'import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'import ShowPanel from '@/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/show'-import { cn } from '@/utils/classnames'import { Type } from '../types'import JsonSchemaConfigModal from './json-schema-config-modal'@@ -58,7 +58,7 @@ const StructureOutput: FC<Props> = ({/>): (- <div className="mt-1.5 flex h-10 cursor-pointer items-center justify-center radius-lg bg-background-section system-xs-regular text-text-tertiary" onClick={showConfigModal}>{t('structOutput.notConfiguredTip', { ns: 'app' })}</div>+ <div className="mt-1.5 flex h-10 cursor-pointer items-center justify-center rounded-[10px] bg-background-section system-xs-regular text-text-tertiary" onClick={showConfigModal}>{t('structOutput.notConfiguredTip', { ns: 'app' })}</div>)}{showConfig && (diff --git a/web/app/components/workflow/nodes/loop/add-block.tsx b/web/app/components/workflow/nodes/loop/add-block.tsxindex eed23993042..bed2bf20ae4 100644--- a/web/app/components/workflow/nodes/loop/add-block.tsx+++ b/web/app/components/workflow/nodes/loop/add-block.tsx@@ -2,6 +2,7 @@ import type { LoopNodeType } from './types'import type {OnSelectBlock,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiAddLine,} from '@remixicon/react'@@ -11,11 +12,10 @@ import {} from 'react'import { useTranslation } from 'react-i18next'import BlockSelector from '@/app/components/workflow/block-selector'+import {BlockEnum,} from '@/app/components/workflow/types'--import { cn } from '@/utils/classnames'import {useAvailableBlocks,useNodesInteractions,@@ -50,7 +50,7 @@ const AddBlock = ({const renderTriggerElement = useCallback((open: boolean) => {return (<div className={cn(- 'system-sm-medium relative inline-flex h-8 cursor-pointer items-center rounded-lg border-[0.5px] border-components-button-secondary-border bg-components-button-secondary-bg px-3 text-components-button-secondary-text shadow-xs backdrop-blur-[5px] hover:bg-components-button-secondary-bg-hover',+ 'relative inline-flex h-8 cursor-pointer items-center rounded-lg border-[0.5px] border-components-button-secondary-border bg-components-button-secondary-bg px-3 system-sm-medium text-components-button-secondary-text shadow-xs backdrop-blur-[5px] hover:bg-components-button-secondary-bg-hover',`${nodesReadOnly && 'cursor-not-allowed! bg-components-button-secondary-bg-disabled'}`,open && 'bg-components-button-secondary-bg-hover',)}@@ -62,9 +62,9 @@ const AddBlock = ({}, [nodesReadOnly, t])return (- <div className="absolute left-14 top-7 z-10 flex h-8 items-center">+ <div className="absolute top-7 left-14 z-10 flex h-8 items-center"><div className="group/insert relative h-0.5 w-16 bg-gray-300">- <div className="absolute right-0 top-1/2 h-2 w-0.5 -translate-y-1/2 bg-primary-500"></div>+ <div className="absolute top-1/2 right-0 h-2 w-0.5 -translate-y-1/2 bg-primary-500"></div></div><BlockSelectordisabled={nodesReadOnly}diff --git a/web/app/components/workflow/nodes/loop/components/condition-list/condition-item.tsx b/web/app/components/workflow/nodes/loop/components/condition-list/condition-item.tsxindex 0b6698d8308..a9f3b75fb96 100644--- a/web/app/components/workflow/nodes/loop/components/condition-list/condition-item.tsx+++ b/web/app/components/workflow/nodes/loop/components/condition-list/condition-item.tsx@@ -14,6 +14,7 @@ import type {ValueSelector,Var,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiDeleteBinLine } from '@remixicon/react'import { produce } from 'immer'import {@@ -26,7 +27,6 @@ import { Variable02 } from '@/app/components/base/icons/src/vender/solid/developimport { SimpleSelect as Select } from '@/app/components/base/select'import BoolValue from '@/app/components/workflow/panel/chat-variable-panel/components/bool-value'import { VarType } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import {ComparisonOperator,} from '../../types'@@ -228,11 +228,11 @@ const ConditionItem = ({<div className="flex cursor-pointer justify-start"><div className="inline-flex h-6 max-w-full items-center rounded-md border-[0.5px] border-components-panel-border-subtle bg-components-badge-white-to-dark px-1.5 text-text-accent shadow-xs"><Variable02 className="h-3.5 w-3.5 shrink-0 text-text-accent" />- <div className="system-xs-medium ml-0.5 truncate">{item?.name}</div>+ <div className="ml-0.5 truncate system-xs-medium">{item?.name}</div></div></div>)- : <div className="system-sm-regular text-left text-components-input-text-placeholder">{t('placeholder.select', { ns: 'common' })}</div>+ : <div className="text-left system-sm-regular text-components-input-text-placeholder">{t('placeholder.select', { ns: 'common' })}</div>)}hideChecked/>@@ -332,7 +332,7 @@ const ConditionItem = ({}</div><div- className="ml-1 mt-1 flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded-lg text-text-tertiary hover:bg-state-destructive-hover hover:text-text-destructive"+ className="mt-1 ml-1 flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded-lg text-text-tertiary hover:bg-state-destructive-hover hover:text-text-destructive"onMouseEnter={() => setIsHovered(true)}onMouseLeave={() => setIsHovered(false)}onClick={doRemoveCondition}diff --git a/web/app/components/workflow/nodes/loop/components/condition-list/condition-operator.tsx b/web/app/components/workflow/nodes/loop/components/condition-list/condition-operator.tsxindex 8ec128a2e6b..9380282b54c 100644--- a/web/app/components/workflow/nodes/loop/components/condition-list/condition-operator.tsx+++ b/web/app/components/workflow/nodes/loop/components/condition-list/condition-operator.tsx@@ -1,5 +1,6 @@import type { ComparisonOperator } from '../../types'import type { VarType } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine } from '@remixicon/react'import {useMemo,@@ -12,7 +13,6 @@ import {PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import { getOperators, isComparisonOperatorNeedTranslate } from '../../utils'const i18nPrefix = 'nodes.ifElse'diff --git a/web/app/components/workflow/nodes/loop/components/condition-list/index.tsx b/web/app/components/workflow/nodes/loop/components/condition-list/index.tsxindex 8fca606f583..db1e57f4e79 100644--- a/web/app/components/workflow/nodes/loop/components/condition-list/index.tsx+++ b/web/app/components/workflow/nodes/loop/components/condition-list/index.tsx@@ -3,9 +3,9 @@ import type {Node,NodeOutPutVar,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiLoopLeftLine } from '@remixicon/react'import { useCallback, useMemo } from 'react'-import { cn } from '@/utils/classnames'import {LogicalOperator,@@ -75,15 +75,15 @@ const ConditionList = ({{conditions.length > 1 && (<div className={cn(- 'absolute bottom-0 left-0 top-0 w-[60px]',+ 'absolute top-0 bottom-0 left-0 w-[60px]',isSubVariable && logicalOperator === LogicalOperator.and && 'left-[-10px]',isSubVariable && logicalOperator === LogicalOperator.or && 'left-[-18px]',)}>- <div className="absolute bottom-4 left-[46px] top-4 w-2.5 rounded-l-[8px] border border-r-0 border-divider-deep"></div>- <div className="absolute right-0 top-1/2 h-[29px] w-4 -translate-y-1/2 bg-components-panel-bg"></div>+ <div className="absolute top-4 bottom-4 left-[46px] w-2.5 rounded-l-[8px] border border-r-0 border-divider-deep"></div>+ <div className="absolute top-1/2 right-0 h-[29px] w-4 -translate-y-1/2 bg-components-panel-bg"></div><div- className="absolute right-1 top-1/2 flex h-[21px] -translate-y-1/2 cursor-pointer select-none items-center rounded-md border-[0.5px] border-components-button-secondary-border bg-components-button-secondary-bg px-1 text-[10px] font-semibold text-text-accent-secondary shadow-xs"+ className="absolute top-1/2 right-1 flex h-[21px] -translate-y-1/2 cursor-pointer items-center rounded-md border-[0.5px] border-components-button-secondary-border bg-components-button-secondary-bg px-1 text-[10px] font-semibold text-text-accent-secondary shadow-xs select-none"onClick={() => doToggleConditionLogicalOperator(conditionId)}>{!!logicalOperator && logicalOperator.toUpperCase()}diff --git a/web/app/components/workflow/nodes/loop/components/condition-number-input.tsx b/web/app/components/workflow/nodes/loop/components/condition-number-input.tsxindex be4df1501d7..7bcb4137b5e 100644--- a/web/app/components/workflow/nodes/loop/components/condition-number-input.tsx+++ b/web/app/components/workflow/nodes/loop/components/condition-number-input.tsx@@ -2,6 +2,7 @@ import type {NodeOutPutVar,ValueSelector,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine } from '@remixicon/react'import { useBoolean } from 'ahooks'import { capitalize } from 'es-toolkit/string'@@ -21,7 +22,6 @@ import { Button } from '@/app/components/base/ui/button'import VarReferenceVars from '@/app/components/workflow/nodes/_base/components/variable/var-reference-vars'import { VarType } from '@/app/components/workflow/types'import { variableTransformer } from '@/app/components/workflow/utils'-import { cn } from '@/utils/classnames'import VariableTag from '../../_base/components/variable-tag'import { VarType as NumberVarType } from '../../tool/types'diff --git a/web/app/components/workflow/nodes/loop/components/condition-wrap.tsx b/web/app/components/workflow/nodes/loop/components/condition-wrap.tsxindex aa529564703..50e3fd248e1 100644--- a/web/app/components/workflow/nodes/loop/components/condition-wrap.tsx+++ b/web/app/components/workflow/nodes/loop/components/condition-wrap.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { Node, NodeOutPutVar, Var } from '../../../types'import type { Condition, HandleAddCondition, HandleAddSubVariableCondition, HandleRemoveCondition, handleRemoveSubVariableCondition, HandleToggleConditionLogicalOperator, HandleToggleSubVariableConditionLogicalOperator, HandleUpdateCondition, HandleUpdateSubVariableCondition, LogicalOperator } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import {RiAddLine,} from '@remixicon/react'@@ -10,7 +11,6 @@ import { useCallback } from 'react'import { useTranslation } from 'react-i18next'import { PortalSelect as Select } from '@/app/components/base/select'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import { VarType } from '../../../types'import { useGetAvailableVars } from '../../variable-assigner/hooks'import { SUB_VARIABLES } from './../default'@@ -75,7 +75,7 @@ const ConditionWrap: FC<Props> = ({<div><divclassName={cn(- 'group relative radius-lg bg-components-panel-bg',+ 'group relative rounded-[10px] bg-components-panel-bg',!isSubVariable && 'min-h-[40px] px-3 py-1',isSubVariable && 'px-1 py-2',)}diff --git a/web/app/components/workflow/nodes/loop/components/loop-variables/empty.tsx b/web/app/components/workflow/nodes/loop/components/loop-variables/empty.tsxindex 7d5d81b2fbe..35ed0e5da70 100644--- a/web/app/components/workflow/nodes/loop/components/loop-variables/empty.tsx+++ b/web/app/components/workflow/nodes/loop/components/loop-variables/empty.tsx@@ -4,7 +4,7 @@ const Empty = () => {const { t } = useTranslation()return (- <div className="system-xs-regular flex h-10 items-center justify-center radius-lg bg-background-section text-text-tertiary">+ <div className="flex h-10 items-center justify-center rounded-[10px] bg-background-section system-xs-regular text-text-tertiary">{t('nodes.loop.setLoopVariables', { ns: 'workflow' })}</div>)diff --git a/web/app/components/workflow/nodes/loop/components/loop-variables/form-item.tsx b/web/app/components/workflow/nodes/loop/components/loop-variables/form-item.tsxindex 8a535ff0c79..548f8731647 100644--- a/web/app/components/workflow/nodes/loop/components/loop-variables/form-item.tsx+++ b/web/app/components/workflow/nodes/loop/components/loop-variables/form-item.tsx@@ -117,7 +117,7 @@ const FormItem = ({value_type === ValueType.constant&& (var_type === VarType.object || var_type === VarType.arrayString || var_type === VarType.arrayNumber || var_type === VarType.arrayObject)&& (- <div className="w-full radius-lg bg-components-input-bg-normal py-2 pl-3 pr-1" style={{ height: editorMinHeight }}>+ <div className="w-full rounded-[10px] bg-components-input-bg-normal py-2 pr-1 pl-3" style={{ height: editorMinHeight }}><CodeEditorvalue={value}isExpanddiff --git a/web/app/components/workflow/nodes/loop/insert-block.tsx b/web/app/components/workflow/nodes/loop/insert-block.tsxindex 274163c5fda..a993f54b41d 100644--- a/web/app/components/workflow/nodes/loop/insert-block.tsx+++ b/web/app/components/workflow/nodes/loop/insert-block.tsx@@ -2,12 +2,12 @@ import type {BlockEnum,OnSelectBlock,} from '../../types'+import { cn } from '@langgenius/dify-ui/cn'import {memo,useCallback,useState,} from 'react'-import { cn } from '@/utils/classnames'import BlockSelector from '../../block-selector'import { useNodesInteractions } from '../../hooks'@@ -42,7 +42,7 @@ const InsertBlock = ({<divclassName={cn('nopan nodrag',- 'absolute left-1/2 top-1/2 hidden -translate-x-1/2 -translate-y-1/2 group-hover/insert:block',+ 'absolute top-1/2 left-1/2 hidden -translate-x-1/2 -translate-y-1/2 group-hover/insert:block',open && 'block!',)}>diff --git a/web/app/components/workflow/nodes/loop/node.tsx b/web/app/components/workflow/nodes/loop/node.tsxindex 83e4d931758..ee63696f51b 100644--- a/web/app/components/workflow/nodes/loop/node.tsx+++ b/web/app/components/workflow/nodes/loop/node.tsx@@ -1,6 +1,7 @@import type { FC } from 'react'import type { LoopNodeType } from './types'import type { NodeProps } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {memo,useEffect,@@ -10,7 +11,6 @@ import {useNodesInitialized,useViewport,} from 'reactflow'-import { cn } from '@/utils/classnames'import { LoopStartNodeDumb } from '../loop-start'import AddBlock from './add-block'diff --git a/web/app/components/workflow/nodes/parameter-extractor/components/extract-parameter/import-from-tool.tsx b/web/app/components/workflow/nodes/parameter-extractor/components/extract-parameter/import-from-tool.tsxindex e1c9fe945ac..3770d442fcd 100644--- a/web/app/components/workflow/nodes/parameter-extractor/components/extract-parameter/import-from-tool.tsx+++ b/web/app/components/workflow/nodes/parameter-extractor/components/extract-parameter/import-from-tool.tsx@@ -7,6 +7,7 @@ import type {ToolDefaultValue,} from '@/app/components/workflow/block-selector/types'import type { BlockEnum } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {memo,useCallback,@@ -20,7 +21,6 @@ import {useAllWorkflowTools,} from '@/service/use-tools'import { canFindTool } from '@/utils'-import { cn } from '@/utils/classnames'import BlockSelector from '../../../../block-selector'const i18nPrefix = 'nodes.parameterExtractor'diff --git a/web/app/components/workflow/nodes/question-classifier/components/class-list.tsx b/web/app/components/workflow/nodes/question-classifier/components/class-list.tsxindex 2c477eb46f8..55dbb43cc83 100644--- a/web/app/components/workflow/nodes/question-classifier/components/class-list.tsx+++ b/web/app/components/workflow/nodes/question-classifier/components/class-list.tsx@@ -2,6 +2,7 @@import type { FC } from 'react'import type { Topic } from '@/app/components/workflow/nodes/question-classifier/types'import type { ValueSelector, Var } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiDraggable } from '@remixicon/react'import { noop } from 'es-toolkit/function'import { produce } from 'immer'@@ -10,7 +11,6 @@ import { useCallback, useEffect, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'import { ReactSortable } from 'react-sortablejs'import { ArrowDownRoundFill } from '@/app/components/base/icons/src/vender/solid/general'-import { cn } from '@/utils/classnames'import { useEdgesInteractions } from '../../../hooks'import AddButton from '../../_base/components/add-button'import Item from './class-item'@@ -89,7 +89,7 @@ const ClassList: FC<Props> = ({return (<><div className="mb-2 flex items-center justify-between" onClick={handleCollapse}>- <div className="flex cursor-pointer items-center text-xs font-semibold uppercase text-text-secondary">+ <div className="flex cursor-pointer items-center text-xs font-semibold text-text-secondary uppercase">{t(`${i18nPrefix}.class`, { ns: 'workflow' })}{' '}<span className="text-text-destructive">*</span>@@ -130,7 +130,7 @@ const ClassList: FC<Props> = ({<divkey={item.id}className={cn(- 'group relative radius-lg bg-components-panel-bg',+ 'group relative rounded-[10px] bg-components-panel-bg',`-ml-${HANDLE_SIDE_WIDTH} min-h-[40px] px-0 py-0`,)}style={{@@ -141,7 +141,7 @@ const ClassList: FC<Props> = ({<div>{canDrag && (<RiDraggable className={cn(- 'handle absolute left-2 top-3 hidden h-3 w-3 cursor-pointer text-text-tertiary',+ 'handle absolute top-3 left-2 hidden h-3 w-3 cursor-pointer text-text-tertiary','group-hover:block',)}/>diff --git a/web/app/components/workflow/nodes/start/components/var-item.tsx b/web/app/components/workflow/nodes/start/components/var-item.tsxindex 64fd1804b05..8cb7f8acf67 100644--- a/web/app/components/workflow/nodes/start/components/var-item.tsx+++ b/web/app/components/workflow/nodes/start/components/var-item.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { InputVar, MoreInfo } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiDeleteBinLine,} from '@remixicon/react'@@ -13,7 +14,6 @@ import ConfigVarModal from '@/app/components/app/configuration/config-var/configimport Badge from '@/app/components/base/badge'import { Variable02 } from '@/app/components/base/icons/src/vender/solid/development'import { Edit03 } from '@/app/components/base/icons/src/vender/solid/general'-import { cn } from '@/utils/classnames'import InputVarTypeIcon from '../../_base/components/input-var-type-icon'type Props = {diff --git a/web/app/components/workflow/nodes/start/components/var-list.tsx b/web/app/components/workflow/nodes/start/components/var-list.tsxindex a6158864ace..ac29aae3e8c 100644--- a/web/app/components/workflow/nodes/start/components/var-list.tsx+++ b/web/app/components/workflow/nodes/start/components/var-list.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { InputVar, MoreInfo } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiDraggable } from '@remixicon/react'import { produce } from 'immer'import * as React from 'react'@@ -9,7 +10,6 @@ import { useTranslation } from 'react-i18next'import { ReactSortable } from 'react-sortablejs'import { toast } from '@/app/components/base/ui/toast'import { ChangeType } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import { hasDuplicateStr } from '@/utils/var'import VarItem from './var-item'@@ -79,7 +79,7 @@ const VarList: FC<Props> = ({if (list.length === 0) {return (- <div className="flex h-[42px] items-center justify-center rounded-md bg-components-panel-bg text-xs font-normal leading-[18px] text-text-tertiary">+ <div className="flex h-[42px] items-center justify-center rounded-md bg-components-panel-bg text-xs leading-[18px] font-normal text-text-tertiary">{t('nodes.start.noVarTip', { ns: 'workflow' })}</div>)@@ -109,7 +109,7 @@ const VarList: FC<Props> = ({/>{canDrag && (<RiDraggable className={cn(- 'handle absolute left-3 top-2.5 hidden h-3 w-3 cursor-pointer text-text-tertiary',+ 'handle absolute top-2.5 left-3 hidden h-3 w-3 cursor-pointer text-text-tertiary','group-hover:block',)}/>diff --git a/web/app/components/workflow/nodes/tool/components/input-var-list.tsx b/web/app/components/workflow/nodes/tool/components/input-var-list.tsxindex 33bac7866c7..f24b0cfef33 100644--- a/web/app/components/workflow/nodes/tool/components/input-var-list.tsx+++ b/web/app/components/workflow/nodes/tool/components/input-var-list.tsx@@ -4,6 +4,7 @@ import type { ToolVarInputs } from '../types'import type { CredentialFormSchema } from '@/app/components/header/account-setting/model-provider-page/declarations'import type { Tool } from '@/app/components/tools/types'import type { ToolWithProvider, ValueSelector, Var } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { noop } from 'es-toolkit/function'import { produce } from 'immer'import * as React from 'react'@@ -17,7 +18,6 @@ import Input from '@/app/components/workflow/nodes/_base/components/input-supporimport VarReferencePicker from '@/app/components/workflow/nodes/_base/components/variable/var-reference-picker'import useAvailableVarList from '@/app/components/workflow/nodes/_base/hooks/use-available-var-list'import { VarType } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import { VarType as VarKindType } from '../types'type Props = {diff --git a/web/app/components/workflow/nodes/tool/components/mixed-variable-text-input/index.tsx b/web/app/components/workflow/nodes/tool/components/mixed-variable-text-input/index.tsxindex ceef2c34895..758cc033e2e 100644--- a/web/app/components/workflow/nodes/tool/components/mixed-variable-text-input/index.tsx+++ b/web/app/components/workflow/nodes/tool/components/mixed-variable-text-input/index.tsx@@ -2,6 +2,7 @@ import type {Node,NodeOutPutVar,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {memo,} from 'react'@@ -9,7 +10,6 @@ import { useTranslation } from 'react-i18next'import PromptEditor from '@/app/components/base/prompt-editor'import { useStore } from '@/app/components/workflow/store'import { BlockEnum } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import Placeholder from './placeholder'type MixedVariableTextInputProps = {diff --git a/web/app/components/workflow/nodes/tool/components/mixed-variable-text-input/placeholder.tsx b/web/app/components/workflow/nodes/tool/components/mixed-variable-text-input/placeholder.tsxindex 9a4d5279fd9..1287fd7a21c 100644--- a/web/app/components/workflow/nodes/tool/components/mixed-variable-text-input/placeholder.tsx+++ b/web/app/components/workflow/nodes/tool/components/mixed-variable-text-input/placeholder.tsx@@ -1,10 +1,10 @@+import { cn } from '@langgenius/dify-ui/cn'import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'import { $insertNodes, FOCUS_COMMAND } from 'lexical'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'import Badge from '@/app/components/base/badge'import { CustomTextNode } from '@/app/components/base/prompt-editor/plugins/custom-text/node'-import { cn } from '@/utils/classnames'type PlaceholderProps = {disableVariableInsertion?: boolean@@ -38,9 +38,9 @@ const Placeholder = ({ disableVariableInsertion = false, hideBadge = false }: Pl{t('nodes.tool.insertPlaceholder1', { ns: 'workflow' })}{(!disableVariableInsertion) && (<>- <div className="system-kbd mx-0.5 flex h-4 w-4 items-center justify-center rounded-sm bg-components-kbd-bg-gray text-text-placeholder">/</div>+ <div className="mx-0.5 flex h-4 w-4 items-center justify-center rounded-sm bg-components-kbd-bg-gray system-kbd text-text-placeholder">/</div><div- className="system-sm-regular cursor-pointer text-components-input-text-placeholder underline decoration-dotted decoration-auto underline-offset-auto hover:text-text-tertiary"+ className="cursor-pointer system-sm-regular text-components-input-text-placeholder underline decoration-dotted decoration-auto underline-offset-auto hover:text-text-tertiary"onMouseDown={((e) => {e.preventDefault()e.stopPropagation()diff --git a/web/app/components/workflow/nodes/tool/node.tsx b/web/app/components/workflow/nodes/tool/node.tsxindex 56c7f92ec46..fa6fea24c21 100644--- a/web/app/components/workflow/nodes/tool/node.tsx+++ b/web/app/components/workflow/nodes/tool/node.tsx@@ -35,7 +35,7 @@ const Node: FC<NodeProps<ToolNodeType>> = ({return (<div className="relative mb-1 px-3 py-1">{showInstallButton && (- <div className="pointer-events-auto absolute right-3 top-[-32px] z-40">+ <div className="pointer-events-auto absolute top-[-32px] right-3 z-40"><InstallPluginButtonsize="small"className="font-medium! text-text-accent!"@@ -53,7 +53,7 @@ const Node: FC<NodeProps<ToolNodeType>> = ({<div className="space-y-0.5" aria-disabled={shouldDim}>{hasConfigs && toolConfigs.map(key => (<div key={key} className="flex h-6 items-center justify-between space-x-1 rounded-md bg-workflow-block-parma-bg px-1 text-xs font-normal text-text-secondary">- <div title={key} className="max-w-[100px] shrink-0 truncate text-xs font-medium uppercase text-text-tertiary">+ <div title={key} className="max-w-[100px] shrink-0 truncate text-xs font-medium text-text-tertiary uppercase">{key}</div>{typeof tool_configurations[key].value === 'string' && (@@ -75,8 +75,8 @@ const Node: FC<NodeProps<ToolNodeType>> = ({))}{showAuthorizationWarning && (<div className="flex h-6 items-center rounded-md border-[0.5px] border-state-warning-active bg-state-warning-hover px-1.5">- <span className="mr-1 size-[4px] shrink-0 radius-2xs bg-text-warning-secondary" />- <div className="grow truncate text-text-warning system-xs-medium" title={t('nodes.tool.authorizationRequired', { ns: 'workflow' })}>+ <span className="mr-1 size-[4px] shrink-0 rounded-xs bg-text-warning-secondary" />+ <div className="grow truncate system-xs-medium text-text-warning" title={t('nodes.tool.authorizationRequired', { ns: 'workflow' })}>{t('nodes.tool.authorizationRequired', { ns: 'workflow' })}</div></div>diff --git a/web/app/components/workflow/nodes/trigger-webhook/components/generic-table.tsx b/web/app/components/workflow/nodes/trigger-webhook/components/generic-table.tsxindex fb28750d72c..7b1e0967084 100644--- a/web/app/components/workflow/nodes/trigger-webhook/components/generic-table.tsx+++ b/web/app/components/workflow/nodes/trigger-webhook/components/generic-table.tsx@@ -1,12 +1,12 @@'use client'import type { FC, ReactNode } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiDeleteBinLine } from '@remixicon/react'import * as React from 'react'import { useCallback, useMemo } from 'react'import Checkbox from '@/app/components/base/checkbox'import Input from '@/app/components/base/input'import { SimpleSelect } from '@/app/components/base/select'-import { cn } from '@/utils/classnames'import { replaceSpaceWithUnderscoreInVarNameInput } from '@/utils/var'// Tiny utility to judge whether a cell value is effectively present@@ -117,7 +117,7 @@ const renderInputCell = (className={cn('h-6 rounded-none border-0 bg-transparent px-0 py-0 shadow-none','hover:border-transparent hover:bg-transparent focus:border-transparent focus:bg-transparent',- 'text-text-secondary system-sm-regular placeholder:text-text-quaternary',+ 'system-sm-regular text-text-secondary placeholder:text-text-quaternary',)}/>)@@ -140,8 +140,8 @@ const renderSelectCell = (notClearable={true}wrapperClassName="h-6 w-full min-w-0"className={cn(- 'h-6 rounded-none bg-transparent pl-0 pr-6 text-text-secondary',- 'hover:bg-transparent focus-visible:bg-transparent group-hover/simple-select:bg-transparent',+ 'h-6 rounded-none bg-transparent pr-6 pl-0 text-text-secondary',+ 'group-hover/simple-select:bg-transparent hover:bg-transparent focus-visible:bg-transparent',)}optionWrapClassName="w-26 min-w-26 z-60 -ml-3"/>@@ -248,7 +248,7 @@ const GenericTable: FC<GenericTableProps> = ({return (<div className="rounded-lg border border-divider-regular">{showHeader && (- <div className="flex h-7 items-center leading-7 text-text-tertiary system-xs-medium-uppercase">+ <div className="flex h-7 items-center system-xs-medium-uppercase leading-7 text-text-tertiary">{columns.map((column, index) => (<divkey={column.key}@@ -296,7 +296,7 @@ const GenericTable: FC<GenericTableProps> = ({</div>))}{!readonly && dataIndex !== null && hasContent && (- <div className="absolute right-2 top-1/2 -translate-y-1/2 opacity-0 group-hover:opacity-100">+ <div className="absolute top-1/2 right-2 -translate-y-1/2 opacity-0 group-hover:opacity-100"><buttontype="button"onClick={() => removeRow(dataIndex)}@@ -322,12 +322,12 @@ const GenericTable: FC<GenericTableProps> = ({return (<div className={className}><div className="mb-3 flex items-center justify-between">- <h4 className="text-text-secondary system-sm-semibold-uppercase">{title}</h4>+ <h4 className="system-sm-semibold-uppercase text-text-secondary">{title}</h4></div>{showPlaceholder? (- <div className="flex h-7 items-center justify-center rounded-lg border border-divider-regular bg-components-panel-bg text-xs font-normal leading-[18px] text-text-quaternary">+ <div className="flex h-7 items-center justify-center rounded-lg border border-divider-regular bg-components-panel-bg text-xs leading-[18px] font-normal text-text-quaternary">{placeholder}</div>)diff --git a/web/app/components/workflow/nodes/trigger-webhook/components/paragraph-input.tsx b/web/app/components/workflow/nodes/trigger-webhook/components/paragraph-input.tsxindex d3bba183519..df81da7d6e9 100644--- a/web/app/components/workflow/nodes/trigger-webhook/components/paragraph-input.tsx+++ b/web/app/components/workflow/nodes/trigger-webhook/components/paragraph-input.tsx@@ -1,8 +1,8 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useRef } from 'react'-import { cn } from '@/utils/classnames'type ParagraphInputProps = {value: string@@ -25,13 +25,13 @@ const ParagraphInput: FC<ParagraphInputProps> = ({const lineCount = Math.max(3, lines.length)return (- <div className={cn('rounded-xl bg-components-input-bg-normal px-3 pb-2 pt-3', className)}>+ <div className={cn('rounded-xl bg-components-input-bg-normal px-3 pt-3 pb-2', className)}><div className="relative">- <div className="pointer-events-none absolute left-0 top-0 flex flex-col">+ <div className="pointer-events-none absolute top-0 left-0 flex flex-col">{Array.from({ length: lineCount }, (_, index) => (<spankey={index}- className="flex h-[20px] select-none items-center font-mono text-xs leading-[20px] text-text-quaternary"+ className="flex h-[20px] items-center font-mono text-xs leading-[20px] text-text-quaternary select-none">{String(index + 1).padStart(2, '0')}</span>diff --git a/web/app/components/workflow/nodes/variable-assigner/components/add-variable/index.tsx b/web/app/components/workflow/nodes/variable-assigner/components/add-variable/index.tsxindex b49344c5623..e674a5f169a 100644--- a/web/app/components/workflow/nodes/variable-assigner/components/add-variable/index.tsx+++ b/web/app/components/workflow/nodes/variable-assigner/components/add-variable/index.tsx@@ -4,6 +4,7 @@ import type {ValueSelector,Var,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {memo,useCallback,@@ -16,7 +17,6 @@ import {PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'import AddVariablePopup from '@/app/components/workflow/nodes/_base/components/add-variable-popup'-import { cn } from '@/utils/classnames'import { useVariableAssigner } from '../../hooks'type AddVariableProps = {diff --git a/web/app/components/workflow/nodes/variable-assigner/components/node-group-item.tsx b/web/app/components/workflow/nodes/variable-assigner/components/node-group-item.tsxindex 8cf78af7bb6..32a6af9eef5 100644--- a/web/app/components/workflow/nodes/variable-assigner/components/node-group-item.tsx+++ b/web/app/components/workflow/nodes/variable-assigner/components/node-group-item.tsx@@ -4,6 +4,7 @@ import type {VarType,} from '../../../types'import type { VariableAssignerNodeType } from '../types'+import { cn } from '@langgenius/dify-ui/cn'import {memo,useMemo,@@ -15,7 +16,6 @@ import {VariableLabelInNode,} from '@/app/components/workflow/nodes/_base/components/variable/variable-label'import { isExceptionVariable } from '@/app/components/workflow/utils'-import { cn } from '@/utils/classnames'import { useStore } from '../../../store'import { BlockEnum } from '../../../types'import {@@ -83,7 +83,7 @@ const NodeGroupItem = ({return (<divclassName={cn(- 'relative rounded-lg border-[1.5px] border-transparent px-1.5 pb-1.5 pt-1',+ 'relative rounded-lg border-[1.5px] border-transparent px-1.5 pt-1 pb-1.5',showSelectionBorder && 'border-dashed! border-divider-subtle! bg-state-base-hover',showSelectedBorder && 'border-text-accent! bg-util-colors-blue-blue-50!',)}@@ -102,7 +102,7 @@ const NodeGroupItem = ({</span><div className="flex items-center"><span className="ml-2 shrink-0">{item.type}</span>- <div className="ml-2 mr-1 h-2.5 w-px bg-divider-regular"></div>+ <div className="mr-1 ml-2 h-2.5 w-px bg-divider-regular"></div><AddVariableavailableVars={availableVars}variableAssignerNodeId={item.variableAssignerNodeId}@@ -115,7 +115,7 @@ const NodeGroupItem = ({!item.variables.length && (<divclassName={cn(- 'relative flex h-[22px] items-center justify-between space-x-1 rounded-md bg-workflow-block-parma-bg px-1 text-[10px] font-normal uppercase text-text-tertiary',+ 'relative flex h-[22px] items-center justify-between space-x-1 rounded-md bg-workflow-block-parma-bg px-1 text-[10px] font-normal text-text-tertiary uppercase',(showSelectedBorder || showSelectionBorder) && 'bg-black/[0.02]!',)}>diff --git a/web/app/components/workflow/nodes/variable-assigner/components/node-variable-item.tsx b/web/app/components/workflow/nodes/variable-assigner/components/node-variable-item.tsxindex b3c2c7662ad..70f38850550 100644--- a/web/app/components/workflow/nodes/variable-assigner/components/node-variable-item.tsx+++ b/web/app/components/workflow/nodes/variable-assigner/components/node-variable-item.tsx@@ -1,5 +1,6 @@import type { Node, ValueSelector } from '@/app/components/workflow/types'import type { I18nKeysByPrefix } from '@/types/i18n'+import { cn } from '@langgenius/dify-ui/cn'import {memo,useMemo,@@ -12,7 +13,6 @@ import { InputField } from '@/app/components/base/icons/src/vender/pipeline'import { Variable02 } from '@/app/components/base/icons/src/vender/solid/development'import { VarBlockIcon } from '@/app/components/workflow/block-icon'import { isConversationVar, isENV, isRagVariableVar, isSystemVar } from '@/app/components/workflow/nodes/_base/components/variable/utils'-import { cn } from '@/utils/classnames'type NodeVariableItemProps = {node: Node@@ -80,7 +80,7 @@ const NodeVariableItem = ({return (<divclassName={cn(- 'system-xs-medium ml-0.5 shrink truncate text-text-accent',+ 'ml-0.5 shrink truncate system-xs-medium text-text-accent',isEnv && 'text-text-primary',isException && 'text-text-warning',isChatVar && 'text-util-colors-teal-teal-700',diff --git a/web/app/components/workflow/nodes/variable-assigner/panel.tsx b/web/app/components/workflow/nodes/variable-assigner/panel.tsxindex d7bf571efd4..2e88b3149ea 100644--- a/web/app/components/workflow/nodes/variable-assigner/panel.tsx+++ b/web/app/components/workflow/nodes/variable-assigner/panel.tsx@@ -1,13 +1,13 @@import type { FC } from 'react'import type { VariableAssignerNodeType } from './types'import type { NodePanelProps } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useTranslation } from 'react-i18next'import Switch from '@/app/components/base/switch'import AddButton from '@/app/components/workflow/nodes/_base/components/add-button'import OutputVars, { VarItem } from '@/app/components/workflow/nodes/_base/components/output-vars'import Split from '@/app/components/workflow/nodes/_base/components/split'-import { cn } from '@/utils/classnames'import Field from '../_base/components/field'import RemoveEffectVarConfirm from '../_base/components/remove-effect-var-confirm'import VarGroupItem from './components/var-group-item'diff --git a/web/app/components/workflow/note-node/index.tsx b/web/app/components/workflow/note-node/index.tsxindex eaeed773381..bfaadff387b 100644--- a/web/app/components/workflow/note-node/index.tsx+++ b/web/app/components/workflow/note-node/index.tsx@@ -1,12 +1,12 @@import type { NodeProps } from 'reactflow'import type { NoteNodeType } from './types'+import { cn } from '@langgenius/dify-ui/cn'import { useClickAway } from 'ahooks'import {memo,useRef,} from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import {useNodeDataUpdate,useNodesInteractions,@@ -95,7 +95,7 @@ const NoteNode = ({</div>{data.selected && !data._isTempNode && (- <div className="absolute left-1/2 top-[-41px] -translate-x-1/2">+ <div className="absolute top-[-41px] left-1/2 -translate-x-1/2"><NoteEditorToolbartheme={theme}onThemeChange={handleThemeChange}diff --git a/web/app/components/workflow/note-node/note-editor/plugins/link-editor-plugin/component.tsx b/web/app/components/workflow/note-node/note-editor/plugins/link-editor-plugin/component.tsxindex 38ef5fb9013..c67b658de67 100644--- a/web/app/components/workflow/note-node/note-editor/plugins/link-editor-plugin/component.tsx+++ b/web/app/components/workflow/note-node/note-editor/plugins/link-editor-plugin/component.tsx@@ -5,6 +5,7 @@ import {shift,useFloating,} from '@floating-ui/react'+import { cn } from '@langgenius/dify-ui/cn'import {RiEditLine,RiExternalLinkLine,@@ -19,7 +20,6 @@ import {} from 'react'import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'-import { cn } from '@/utils/classnames'import { useStore } from '../../store'import { useLink } from './hooks'diff --git a/web/app/components/workflow/note-node/note-editor/toolbar/color-picker.tsx b/web/app/components/workflow/note-node/note-editor/toolbar/color-picker.tsxindex f88848ad9de..da5b1d3b9a1 100644--- a/web/app/components/workflow/note-node/note-editor/toolbar/color-picker.tsx+++ b/web/app/components/workflow/note-node/note-editor/toolbar/color-picker.tsx@@ -1,3 +1,4 @@+import { cn } from '@langgenius/dify-ui/cn'import {memo,useState,@@ -7,7 +8,6 @@ import {PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'import { THEME_MAP } from '../../constants'import { NoteTheme } from '../../types'@@ -91,14 +91,14 @@ const ColorPicker = ({><divclassName={cn(- 'absolute left-1/2 top-1/2 hidden h-5 w-5 -translate-x-1/2 -translate-y-1/2 rounded-full border-[1.5px] group-hover:block',+ 'absolute top-1/2 left-1/2 hidden h-5 w-5 -translate-x-1/2 -translate-y-1/2 rounded-full border-[1.5px] group-hover:block',color.outer,)}></div><divclassName={cn(- 'absolute left-1/2 top-1/2 h-4 w-4 -translate-x-1/2 -translate-y-1/2 rounded-full border border-black/5',+ 'absolute top-1/2 left-1/2 h-4 w-4 -translate-x-1/2 -translate-y-1/2 rounded-full border border-black/5',color.inner,)}>diff --git a/web/app/components/workflow/note-node/note-editor/toolbar/command.tsx b/web/app/components/workflow/note-node/note-editor/toolbar/command.tsxindex 5ca76aa84fd..ab4bf8c7bb9 100644--- a/web/app/components/workflow/note-node/note-editor/toolbar/command.tsx+++ b/web/app/components/workflow/note-node/note-editor/toolbar/command.tsx@@ -1,3 +1,4 @@+import { cn } from '@langgenius/dify-ui/cn'import {RiBold,RiItalic,@@ -11,7 +12,6 @@ import {} from 'react'import { useTranslation } from 'react-i18next'import Tooltip from '@/app/components/base/tooltip'-import { cn } from '@/utils/classnames'import { useStore } from '../store'import { useCommand } from './hooks'diff --git a/web/app/components/workflow/note-node/note-editor/toolbar/font-size-selector.tsx b/web/app/components/workflow/note-node/note-editor/toolbar/font-size-selector.tsxindex 23807765770..a217d7de72e 100644--- a/web/app/components/workflow/note-node/note-editor/toolbar/font-size-selector.tsx+++ b/web/app/components/workflow/note-node/note-editor/toolbar/font-size-selector.tsx@@ -1,3 +1,4 @@+import { cn } from '@langgenius/dify-ui/cn'import { RiFontSize } from '@remixicon/react'import { memo } from 'react'import { useTranslation } from 'react-i18next'@@ -7,7 +8,6 @@ import {PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'import { useFontSize } from './hooks'const FontSizeSelector = () => {@@ -42,7 +42,7 @@ const FontSizeSelector = () => {><PortalToFollowElemTrigger onClick={() => handleOpenFontSizeSelector(!fontSizeSelectorShow)}><div className={cn(- 'flex h-8 cursor-pointer items-center rounded-md pl-2 pr-1.5 text-[13px] font-medium text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary',+ 'flex h-8 cursor-pointer items-center rounded-md pr-1.5 pl-2 text-[13px] font-medium text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary',fontSizeSelectorShow && 'bg-state-base-hover text-text-secondary',)}>@@ -56,7 +56,7 @@ const FontSizeSelector = () => {FONT_SIZE_LIST.map(font => (<divkey={font.key}- className="flex h-8 cursor-pointer items-center justify-between rounded-md pl-3 pr-2 hover:bg-state-base-hover"+ className="flex h-8 cursor-pointer items-center justify-between rounded-md pr-2 pl-3 hover:bg-state-base-hover"onClick={(e) => {e.stopPropagation()handleFontSize(font.key)diff --git a/web/app/components/workflow/note-node/note-editor/toolbar/operator.tsx b/web/app/components/workflow/note-node/note-editor/toolbar/operator.tsxindex 9b2fae349c5..8b86d537c9b 100644--- a/web/app/components/workflow/note-node/note-editor/toolbar/operator.tsx+++ b/web/app/components/workflow/note-node/note-editor/toolbar/operator.tsx@@ -1,3 +1,4 @@+import { cn } from '@langgenius/dify-ui/cn'import { RiMoreFill } from '@remixicon/react'import {memo,@@ -11,7 +12,6 @@ import {} from '@/app/components/base/portal-to-follow-elem'import Switch from '@/app/components/base/switch'import ShortcutsName from '@/app/components/workflow/shortcuts-name'-import { cn } from '@/utils/classnames'export type OperatorProps = {onCopy: () => voiddiff --git a/web/app/components/workflow/operator/add-block.tsx b/web/app/components/workflow/operator/add-block.tsxindex a5930f6c607..8cb358151ae 100644--- a/web/app/components/workflow/operator/add-block.tsx+++ b/web/app/components/workflow/operator/add-block.tsx@@ -2,6 +2,7 @@ import type { OffsetOptions } from '@floating-ui/react'import type {OnSelectBlock,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiAddCircleFill } from '@remixicon/react'import {memo,@@ -15,7 +16,6 @@ import {BlockEnum,} from '@/app/components/workflow/types'import { FlowType } from '@/types/common'-import { cn } from '@/utils/classnames'import {useAvailableBlocks,useIsChatMode,diff --git a/web/app/components/workflow/operator/control.tsx b/web/app/components/workflow/operator/control.tsxindex ce4de198708..cf99c08fd4f 100644--- a/web/app/components/workflow/operator/control.tsx+++ b/web/app/components/workflow/operator/control.tsx@@ -1,4 +1,5 @@import type { MouseEvent } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {RiAspectRatioFill,RiAspectRatioLine,@@ -11,7 +12,6 @@ import {memo,} from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import Divider from '../../base/divider'import {useNodesReadOnly,diff --git a/web/app/components/workflow/operator/more-actions.tsx b/web/app/components/workflow/operator/more-actions.tsxindex 7e6617e84b5..5e71cc658be 100644--- a/web/app/components/workflow/operator/more-actions.tsx+++ b/web/app/components/workflow/operator/more-actions.tsx@@ -1,4 +1,5 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiExportLine, RiMoreFill } from '@remixicon/react'import { toJpeg, toPng, toSvg } from 'html-to-image'import {@@ -18,7 +19,6 @@ import {PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'import { useStore } from '@/app/components/workflow/store'-import { cn } from '@/utils/classnames'import { downloadUrl } from '@/utils/download'import { useNodesReadOnly } from '../hooks'import TipPopup from './tip-popup'@@ -203,19 +203,19 @@ const MoreActions: FC = () => {{t('common.currentView', { ns: 'workflow' })}</div><div- className="system-md-regular flex h-8 cursor-pointer items-center rounded-lg px-2 hover:bg-state-base-hover"+ className="flex h-8 cursor-pointer items-center rounded-lg px-2 system-md-regular hover:bg-state-base-hover"onClick={() => handleExportImage('png')}>{t('common.exportPNG', { ns: 'workflow' })}</div><div- className="system-md-regular flex h-8 cursor-pointer items-center rounded-lg px-2 hover:bg-state-base-hover"+ className="flex h-8 cursor-pointer items-center rounded-lg px-2 system-md-regular hover:bg-state-base-hover"onClick={() => handleExportImage('jpeg')}>{t('common.exportJPEG', { ns: 'workflow' })}</div><div- className="system-md-regular flex h-8 cursor-pointer items-center rounded-lg px-2 hover:bg-state-base-hover"+ className="flex h-8 cursor-pointer items-center rounded-lg px-2 system-md-regular hover:bg-state-base-hover"onClick={() => handleExportImage('svg')}>{t('common.exportSVG', { ns: 'workflow' })}@@ -227,19 +227,19 @@ const MoreActions: FC = () => {{t('common.currentWorkflow', { ns: 'workflow' })}</div><div- className="system-md-regular flex h-8 cursor-pointer items-center rounded-lg px-2 hover:bg-state-base-hover"+ className="flex h-8 cursor-pointer items-center rounded-lg px-2 system-md-regular hover:bg-state-base-hover"onClick={() => handleExportImage('png', true)}>{t('common.exportPNG', { ns: 'workflow' })}</div><div- className="system-md-regular flex h-8 cursor-pointer items-center rounded-lg px-2 hover:bg-state-base-hover"+ className="flex h-8 cursor-pointer items-center rounded-lg px-2 system-md-regular hover:bg-state-base-hover"onClick={() => handleExportImage('jpeg', true)}>{t('common.exportJPEG', { ns: 'workflow' })}</div><div- className="system-md-regular flex h-8 cursor-pointer items-center rounded-lg px-2 hover:bg-state-base-hover"+ className="flex h-8 cursor-pointer items-center rounded-lg px-2 system-md-regular hover:bg-state-base-hover"onClick={() => handleExportImage('svg', true)}>{t('common.exportSVG', { ns: 'workflow' })}diff --git a/web/app/components/workflow/operator/zoom-in-out.tsx b/web/app/components/workflow/operator/zoom-in-out.tsxindex 803914fe73a..fec23b6b113 100644--- a/web/app/components/workflow/operator/zoom-in-out.tsx+++ b/web/app/components/workflow/operator/zoom-in-out.tsx@@ -1,4 +1,5 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {RiZoomInLine,RiZoomOutLine,@@ -14,13 +15,12 @@ import {useReactFlow,useViewport,} from 'reactflow'+import {PortalToFollowElem,PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'--import { cn } from '@/utils/classnames'import Divider from '../../base/divider'import {useNodesSyncDraft,@@ -158,7 +158,7 @@ const ZoomInOut: FC = () => {<RiZoomOutLine className="h-4 w-4 text-text-tertiary hover:text-text-secondary" /></div></TipPopup>- <div onClick={handleTrigger} className={cn('system-sm-medium w-[34px] text-text-tertiary hover:text-text-secondary')}>+ <div onClick={handleTrigger} className={cn('w-[34px] system-sm-medium text-text-tertiary hover:text-text-secondary')}>{Number.parseFloat(`${zoom * 100}`).toFixed(0)}%</div>@@ -197,7 +197,7 @@ const ZoomInOut: FC = () => {options.map(option => (<divkey={option.key}- className="system-md-regular flex h-8 cursor-pointer items-center justify-between space-x-1 rounded-lg py-1.5 pl-3 pr-2 text-text-secondary hover:bg-state-base-hover"+ className="flex h-8 cursor-pointer items-center justify-between space-x-1 rounded-lg py-1.5 pr-2 pl-3 system-md-regular text-text-secondary hover:bg-state-base-hover"onClick={() => handleZoom(option.key)}><span>{option.text}</span>diff --git a/web/app/components/workflow/panel-contextmenu.tsx b/web/app/components/workflow/panel-contextmenu.tsxindex 7b11cbc37f5..06b4426615f 100644--- a/web/app/components/workflow/panel-contextmenu.tsx+++ b/web/app/components/workflow/panel-contextmenu.tsx@@ -1,10 +1,10 @@+import { cn } from '@langgenius/dify-ui/cn'import { useClickAway } from 'ahooks'import {memo,useRef,} from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import Divider from '../base/divider'import {useDSL,diff --git a/web/app/components/workflow/panel/chat-variable-panel/components/array-bool-list.tsx b/web/app/components/workflow/panel/chat-variable-panel/components/array-bool-list.tsxindex a44bd014f81..8a896b0913d 100644--- a/web/app/components/workflow/panel/chat-variable-panel/components/array-bool-list.tsx+++ b/web/app/components/workflow/panel/chat-variable-panel/components/array-bool-list.tsx@@ -1,5 +1,6 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiAddLine } from '@remixicon/react'import { produce } from 'immer'import * as React from 'react'@@ -7,7 +8,6 @@ import { useCallback } from 'react'import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'import RemoveButton from '@/app/components/workflow/nodes/_base/components/remove-button'-import { cn } from '@/utils/classnames'import BoolValue from './bool-value'type Props = {diff --git a/web/app/components/workflow/panel/chat-variable-panel/components/variable-item.tsx b/web/app/components/workflow/panel/chat-variable-panel/components/variable-item.tsxindex 58548e30844..5b59738d4da 100644--- a/web/app/components/workflow/panel/chat-variable-panel/components/variable-item.tsx+++ b/web/app/components/workflow/panel/chat-variable-panel/components/variable-item.tsx@@ -1,9 +1,9 @@import type { ConversationVariable } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiDeleteBinLine, RiEditLine } from '@remixicon/react'import { capitalize } from 'es-toolkit/string'import { memo, useState } from 'react'import { BubbleX } from '@/app/components/base/icons/src/vender/line/others'-import { cn } from '@/utils/classnames'type VariableItemProps = {item: ConversationVariable@@ -19,7 +19,7 @@ const VariableItem = ({const [destructive, setDestructive] = useState(false)return (<div className={cn(- 'radius-md mb-1 border border-components-panel-border-subtle bg-components-panel-on-panel-item-bg px-2.5 py-2 shadow-xs hover:bg-components-panel-on-panel-item-bg-hover',+ 'mb-1 rounded-lg border border-components-panel-border-subtle bg-components-panel-on-panel-item-bg px-2.5 py-2 shadow-xs hover:bg-components-panel-on-panel-item-bg-hover',destructive && 'border-state-destructive-border hover:bg-state-destructive-hover',)}>@@ -30,11 +30,11 @@ const VariableItem = ({<div className="system-xs-medium text-text-tertiary">{capitalize(item.value_type)}</div></div><div className="flex shrink-0 items-center gap-1 text-text-tertiary">- <div className="radius-md cursor-pointer p-1 hover:bg-state-base-hover hover:text-text-secondary">+ <div className="cursor-pointer rounded-lg p-1 hover:bg-state-base-hover hover:text-text-secondary"><RiEditLine className="h-4 w-4" onClick={() => onEdit(item)} /></div><div- className="radius-md cursor-pointer p-1 hover:bg-state-destructive-hover hover:text-text-destructive"+ className="cursor-pointer rounded-lg p-1 hover:bg-state-destructive-hover hover:text-text-destructive"onMouseOver={() => setDestructive(true)}onMouseOut={() => setDestructive(false)}>@@ -42,7 +42,7 @@ const VariableItem = ({</div></div></div>- <div className="system-xs-regular truncate text-text-tertiary">{item.description}</div>+ <div className="truncate system-xs-regular text-text-tertiary">{item.description}</div></div>)}diff --git a/web/app/components/workflow/panel/chat-variable-panel/components/variable-modal.sections.tsx b/web/app/components/workflow/panel/chat-variable-panel/components/variable-modal.sections.tsxindex 2a5c71d4b92..e1ebe1306d4 100644--- a/web/app/components/workflow/panel/chat-variable-panel/components/variable-modal.sections.tsx+++ b/web/app/components/workflow/panel/chat-variable-panel/components/variable-modal.sections.tsx@@ -178,7 +178,7 @@ export const ValueSection = ({/>)}{editInJSON && (- <div className="w-full radius-lg bg-components-input-bg-normal py-2 pr-1 pl-3" style={{ height: editorMinHeight }}>+ <div className="w-full rounded-[10px] bg-components-input-bg-normal py-2 pr-1 pl-3" style={{ height: editorMinHeight }}><CodeEditorisExpandnoWrapperdiff --git a/web/app/components/workflow/panel/chat-variable-panel/components/variable-modal.tsx b/web/app/components/workflow/panel/chat-variable-panel/components/variable-modal.tsxindex 4742eb0f36e..70191b035d9 100644--- a/web/app/components/workflow/panel/chat-variable-panel/components/variable-modal.tsx+++ b/web/app/components/workflow/panel/chat-variable-panel/components/variable-modal.tsx@@ -1,5 +1,6 @@import type { ToastPayload } from './variable-modal.helpers'import type { ConversationVariable } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine } from '@remixicon/react'import * as React from 'react'import { useTranslation } from 'react-i18next'@@ -7,7 +8,6 @@ import { Button } from '@/app/components/base/ui/button'import { toast } from '@/app/components/base/ui/toast'import { ChatVarType } from '@/app/components/workflow/panel/chat-variable-panel/type'import { useWorkflowStore } from '@/app/components/workflow/store'-import { cn } from '@/utils/classnames'import { replaceSpaceWithUnderscoreInVarNameInput } from '@/utils/var'import { useVariableModalState } from './use-variable-modal-state'import {diff --git a/web/app/components/workflow/panel/chat-variable-panel/components/variable-type-select.tsx b/web/app/components/workflow/panel/chat-variable-panel/components/variable-type-select.tsxindex dc7bef64eb8..94a0100de2a 100644--- a/web/app/components/workflow/panel/chat-variable-panel/components/variable-type-select.tsx+++ b/web/app/components/workflow/panel/chat-variable-panel/components/variable-type-select.tsx@@ -1,4 +1,5 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import { RiArrowDownSLine, RiCheckLine } from '@remixicon/react'import * as React from 'react'import { useState } from 'react'@@ -7,7 +8,6 @@ import {PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'type Props = {inCell?: boolean@@ -35,14 +35,14 @@ const VariableTypeSelector = ({<PortalToFollowElemTrigger className="w-full" onClick={() => setOpen(v => !v)}><div className={cn('flex w-full cursor-pointer items-center px-2',- !inCell && 'radius-md bg-components-input-bg-normal py-1 hover:bg-state-base-hover-alt',+ !inCell && 'rounded-lg bg-components-input-bg-normal py-1 hover:bg-state-base-hover-alt',inCell && 'py-0.5 hover:bg-state-base-hover',open && !inCell && 'bg-state-base-hover-alt hover:bg-state-base-hover-alt',open && inCell && 'bg-state-base-hover hover:bg-state-base-hover',)}><div className={cn(- 'system-sm-regular grow truncate p-1 text-components-input-text-filled',+ 'grow truncate p-1 system-sm-regular text-components-input-text-filled',inCell && 'system-xs-regular text-text-secondary',)}>@@ -52,17 +52,17 @@ const VariableTypeSelector = ({</div></PortalToFollowElemTrigger><PortalToFollowElemContent className={cn('z-11 w-full', popupClassName)}>- <div className="radius-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur p-1 shadow-lg">+ <div className="rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur p-1 shadow-lg">{list.map((item: any) => (<divkey={item}- className="radius-md flex cursor-pointer items-center gap-2 py-[6px] pl-3 pr-2 hover:bg-state-base-hover"+ className="flex cursor-pointer items-center gap-2 rounded-lg py-[6px] pr-2 pl-3 hover:bg-state-base-hover"onClick={() => {onSelect(item)setOpen(false)}}>- <div className="system-md-regular grow truncate text-text-secondary">{item}</div>+ <div className="grow truncate system-md-regular text-text-secondary">{item}</div>{value === item && <RiCheckLine className="h-4 w-4 text-text-accent" />}</div>))}diff --git a/web/app/components/workflow/panel/chat-variable-panel/index.tsx b/web/app/components/workflow/panel/chat-variable-panel/index.tsxindex f0ecef4467e..e1676978fc5 100644--- a/web/app/components/workflow/panel/chat-variable-panel/index.tsx+++ b/web/app/components/workflow/panel/chat-variable-panel/index.tsx@@ -1,6 +1,7 @@import type {ConversationVariable,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiBookOpenLine, RiCloseLine } from '@remixicon/react'import {memo,@@ -21,7 +22,6 @@ import VariableItem from '@/app/components/workflow/panel/chat-variable-panel/coimport VariableModalTrigger from '@/app/components/workflow/panel/chat-variable-panel/components/variable-modal-trigger'import { useStore } from '@/app/components/workflow/store'import { BlockEnum } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import useInspectVarsCrud from '../../hooks/use-inspect-vars-crud'const ChatVariablePanel = () => {@@ -126,7 +126,7 @@ const ChatVariablePanel = () => {'relative flex h-full w-[420px] flex-col rounded-l-2xl border border-components-panel-border bg-components-panel-bg-alt',)}>- <div className="system-xl-semibold flex shrink-0 items-center justify-between p-4 pb-0 text-text-primary">+ <div className="flex shrink-0 items-center justify-between p-4 pb-0 system-xl-semibold text-text-primary">{t('chatVariable.panelTitle', { ns: 'workflow' })}<div className="flex items-center gap-1"><ActionButton state={showTip ? ActionButtonState.Active : undefined} onClick={() => setShowTip(!showTip)}>@@ -141,14 +141,14 @@ const ChatVariablePanel = () => {</div></div>{showTip && (- <div className="shrink-0 px-3 pb-2 pt-2.5">- <div className="radius-2xl relative bg-background-section-burn p-3">- <div className="system-2xs-medium-uppercase inline-block rounded-[5px] border border-divider-deep px-[5px] py-[3px] text-text-tertiary">TIPS</div>- <div className="system-sm-regular mb-4 mt-1 text-text-secondary">+ <div className="shrink-0 px-3 pt-2.5 pb-2">+ <div className="relative rounded-2xl bg-background-section-burn p-3">+ <div className="inline-block rounded-[5px] border border-divider-deep px-[5px] py-[3px] system-2xs-medium-uppercase text-text-tertiary">TIPS</div>+ <div className="mt-1 mb-4 system-sm-regular text-text-secondary">{t('chatVariable.panelDescription', { ns: 'workflow' })}</div><div className="flex items-center gap-2">- <div className="radius-lg flex flex-col border border-workflow-block-border bg-workflow-block-bg p-3 pb-4 shadow-md">+ <div className="flex flex-col rounded-[10px] border border-workflow-block-border bg-workflow-block-bg p-3 pb-4 shadow-md"><BubbleX className="mb-1 h-4 w-4 shrink-0 text-util-colors-teal-teal-700" /><div className="system-xs-semibold text-text-secondary">conversation_var</div><div className="system-2xs-regular text-text-tertiary">String</div>@@ -157,26 +157,26 @@ const ChatVariablePanel = () => {<div className="mb-2 flex items-center gap-2 py-1"><div className="flex h-3 w-16 shrink-0 items-center gap-1 px-1"><LongArrowLeft className="h-2 grow text-text-quaternary" />- <div className="system-2xs-medium shrink-0 text-text-tertiary">WRITE</div>+ <div className="shrink-0 system-2xs-medium text-text-tertiary">WRITE</div></div><BlockIcon className="shrink-0" type={BlockEnum.Assigner} />- <div className="system-xs-semibold grow truncate text-text-secondary">{t('blocks.assigner', { ns: 'workflow' })}</div>+ <div className="grow truncate system-xs-semibold text-text-secondary">{t('blocks.assigner', { ns: 'workflow' })}</div></div><div className="flex items-center gap-2 py-1"><div className="flex h-3 w-16 shrink-0 items-center gap-1 px-1">- <div className="system-2xs-medium shrink-0 text-text-tertiary">READ</div>+ <div className="shrink-0 system-2xs-medium text-text-tertiary">READ</div><LongArrowRight className="h-2 grow text-text-quaternary" /></div><BlockIcon className="shrink-0" type={BlockEnum.LLM} />- <div className="system-xs-semibold grow truncate text-text-secondary">{t('blocks.llm', { ns: 'workflow' })}</div>+ <div className="grow truncate system-xs-semibold text-text-secondary">{t('blocks.llm', { ns: 'workflow' })}</div></div></div></div>- <div className="absolute right-[38px] top-[-4px] z-10 h-3 w-3 rotate-45 bg-background-section-burn" />+ <div className="absolute top-[-4px] right-[38px] z-10 h-3 w-3 rotate-45 bg-background-section-burn" /></div></div>)}- <div className="shrink-0 px-4 pb-3 pt-2">+ <div className="shrink-0 px-4 pt-2 pb-3"><VariableModalTriggeropen={showVariableModal}setOpen={setShowVariableModal}diff --git a/web/app/components/workflow/panel/debug-and-preview/conversation-variable-modal.tsx b/web/app/components/workflow/panel/debug-and-preview/conversation-variable-modal.tsxindex 028543d4815..f6cfa21ab95 100644--- a/web/app/components/workflow/panel/debug-and-preview/conversation-variable-modal.tsx+++ b/web/app/components/workflow/panel/debug-and-preview/conversation-variable-modal.tsx@@ -2,6 +2,7 @@import type {ConversationVariable,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine } from '@remixicon/react'import { useMount } from 'ahooks'import copy from 'copy-to-clipboard'@@ -22,7 +23,6 @@ import { ChatVarType } from '@/app/components/workflow/panel/chat-variable-panelimport { useStore } from '@/app/components/workflow/store'import useTimestamp from '@/hooks/use-timestamp'import { fetchCurrentValueOfConversationVariable } from '@/service/workflow'-import { cn } from '@/utils/classnames'type Props = {conversationID: string@@ -81,18 +81,18 @@ const ConversationVariableModal = ({onClose={noop}className={cn('h-[640px] w-[920px] max-w-[920px] p-0')}>- <div className="absolute right-4 top-4 cursor-pointer p-2" onClick={onHide}>+ <div className="absolute top-4 right-4 cursor-pointer p-2" onClick={onHide}><RiCloseLine className="h-4 w-4 text-text-tertiary" /></div><div className="flex h-full w-full">{/* LEFT */}<div className="flex h-full w-[224px] shrink-0 flex-col border-r border-divider-burn bg-background-sidenav-bg">- <div className="system-xl-semibold shrink-0 pb-3 pl-5 pr-4 pt-5 text-text-primary">{t('chatVariable.panelTitle', { ns: 'workflow' })}</div>+ <div className="shrink-0 pt-5 pr-4 pb-3 pl-5 system-xl-semibold text-text-primary">{t('chatVariable.panelTitle', { ns: 'workflow' })}</div><div className="grow overflow-y-auto px-3 py-2">{varList.map(chatVar => (- <div key={chatVar.id} className={cn('radius-md group mb-0.5 flex cursor-pointer items-center p-2 hover:bg-state-base-hover', currentVar.id === chatVar.id && 'bg-state-base-hover')} onClick={() => setCurrentVar(chatVar)}>+ <div key={chatVar.id} className={cn('group mb-0.5 flex cursor-pointer items-center rounded-lg p-2 hover:bg-state-base-hover', currentVar.id === chatVar.id && 'bg-state-base-hover')} onClick={() => setCurrentVar(chatVar)}><BubbleX className={cn('mr-1 h-4 w-4 shrink-0 text-text-tertiary group-hover:text-util-colors-teal-teal-700', currentVar.id === chatVar.id && 'text-util-colors-teal-teal-700')} />- <div title={chatVar.name} className={cn('system-sm-medium truncate text-text-tertiary group-hover:text-util-colors-teal-teal-700', currentVar.id === chatVar.id && 'text-util-colors-teal-teal-700')}>{chatVar.name}</div>+ <div title={chatVar.name} className={cn('truncate system-sm-medium text-text-tertiary group-hover:text-util-colors-teal-teal-700', currentVar.id === chatVar.id && 'text-util-colors-teal-teal-700')}>{chatVar.name}</div></div>))}</div>@@ -107,7 +107,7 @@ const ConversationVariableModal = ({</div><div className="flex h-0 grow flex-col p-4 pt-2"><div className="mb-2 flex shrink-0 items-center gap-2">- <div className="system-xs-medium-uppercase shrink-0 text-text-tertiary">{t('chatVariable.storedContent', { ns: 'workflow' }).toLocaleUpperCase()}</div>+ <div className="shrink-0 system-xs-medium-uppercase text-text-tertiary">{t('chatVariable.storedContent', { ns: 'workflow' }).toLocaleUpperCase()}</div><divclassName="h-px grow"style={{@@ -116,7 +116,7 @@ const ConversationVariableModal = ({></div>{!!latestValueTimestampMap[currentVar.id] && (- <div className="system-xs-regular shrink-0 text-text-tertiary">+ <div className="shrink-0 system-xs-regular text-text-tertiary">{t('chatVariable.updatedAt', { ns: 'workflow' })}{formatTime(latestValueTimestampMap[currentVar.id], t('dateTimeFormat', { ns: 'appLog' }) as string)}</div>@@ -125,7 +125,7 @@ const ConversationVariableModal = ({<div className="grow overflow-y-auto">{currentVar.value_type !== ChatVarType.Number && currentVar.value_type !== ChatVarType.String && (<div className="flex h-full flex-col rounded-lg bg-components-input-bg-normal px-2 pb-2">- <div className="flex h-7 shrink-0 items-center justify-between pl-3 pr-2 pt-1">+ <div className="flex h-7 shrink-0 items-center justify-between pt-1 pr-2 pl-3"><div className="system-xs-semibold text-text-secondary">JSON</div><div className="flex items-center p-1">{!isCopied@@ -150,7 +150,7 @@ const ConversationVariableModal = ({</div>)}{(currentVar.value_type === ChatVarType.Number || currentVar.value_type === ChatVarType.String) && (- <div className="system-md-regular h-full overflow-y-auto overflow-x-hidden rounded-lg bg-components-input-bg-normal px-4 py-3 text-components-input-text-filled">{latestValueMap[currentVar.id] || ''}</div>+ <div className="h-full overflow-x-hidden overflow-y-auto rounded-lg bg-components-input-bg-normal px-4 py-3 system-md-regular text-components-input-text-filled">{latestValueMap[currentVar.id] || ''}</div>)}</div></div>diff --git a/web/app/components/workflow/panel/debug-and-preview/index.tsx b/web/app/components/workflow/panel/debug-and-preview/index.tsxindex cf1118cd908..de572eb584b 100644--- a/web/app/components/workflow/panel/debug-and-preview/index.tsx+++ b/web/app/components/workflow/panel/debug-and-preview/index.tsx@@ -1,5 +1,6 @@import type { StartNodeType } from '../../nodes/start/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine, RiEqualizer2Line } from '@remixicon/react'import { debounce } from 'es-toolkit/compat'import { noop } from 'es-toolkit/function'@@ -18,7 +19,6 @@ import Tooltip from '@/app/components/base/tooltip'import { useEdgesInteractionsWithoutSync } from '@/app/components/workflow/hooks/use-edges-interactions-without-sync'import { useNodesInteractionsWithoutSync } from '@/app/components/workflow/hooks/use-nodes-interactions-without-sync'import { useStore } from '@/app/components/workflow/store'-import { cn } from '@/utils/classnames'import {useWorkflowInteractions,} from '../../hooks'@@ -85,7 +85,7 @@ const DebugAndPreview = () => {<div className="relative h-full"><divref={triggerRef}- className="absolute -left-1 top-0 flex h-full w-1 cursor-col-resize resize-x items-center justify-center"+ className="absolute top-0 -left-1 flex h-full w-1 cursor-col-resize resize-x items-center justify-center"><div className="h-10 w-0.5 rounded-xs bg-state-base-handle hover:h-full hover:bg-state-accent-solid active:h-full active:bg-state-accent-solid"></div></div>@@ -96,7 +96,7 @@ const DebugAndPreview = () => {)}style={{ width: `${panelWidth}px` }}>- <div className="system-xl-semibold flex shrink-0 items-center justify-between px-4 pb-2 pt-3 text-text-primary">+ <div className="flex shrink-0 items-center justify-between px-4 pt-3 pb-2 system-xl-semibold text-text-primary"><div className="h-8">{t('common.debugAndPreview', { ns: 'workflow' }).toLocaleUpperCase()}</div><div className="flex items-center gap-1"><Tooltip@@ -115,7 +115,7 @@ const DebugAndPreview = () => {<RiEqualizer2Line className="h-4 w-4" /></ActionButton></Tooltip>- {expanded && <div className="absolute bottom-[-17px] right-[5px] z-10 h-3 w-3 rotate-45 border-l-[0.5px] border-t-[0.5px] border-components-panel-border-subtle bg-components-panel-on-panel-item-bg" />}+ {expanded && <div className="absolute right-[5px] bottom-[-17px] z-10 h-3 w-3 rotate-45 border-t-[0.5px] border-l-[0.5px] border-components-panel-border-subtle bg-components-panel-on-panel-item-bg" />}</div>)}<div className="mx-3 h-3.5 w-px bg-divider-regular"></div>diff --git a/web/app/components/workflow/panel/debug-and-preview/user-input.tsx b/web/app/components/workflow/panel/debug-and-preview/user-input.tsxindex 2832a8e2487..35b0a4d36a1 100644--- a/web/app/components/workflow/panel/debug-and-preview/user-input.tsx+++ b/web/app/components/workflow/panel/debug-and-preview/user-input.tsx@@ -1,9 +1,9 @@import type { StartNodeType } from '../../nodes/start/types'+import { cn } from '@langgenius/dify-ui/cn'import {memo,} from 'react'import { useNodes } from 'reactflow'-import { cn } from '@/utils/classnames'import FormItem from '../../nodes/_base/components/before-run-form/form-item'import {useStore,@@ -36,7 +36,7 @@ const UserInput = () => {return (<div className={cn('relative z-1 rounded-xl border-[0.5px] border-components-panel-border-subtle bg-components-panel-on-panel-item-bg shadow-xs')}>- <div className="px-4 pb-4 pt-3">+ <div className="px-4 pt-3 pb-4">{visibleVariables.map((variable, index) => (<divkey={variable.variable}diff --git a/web/app/components/workflow/panel/env-panel/env-item.tsx b/web/app/components/workflow/panel/env-panel/env-item.tsxindex 26696daad04..441364896f2 100644--- a/web/app/components/workflow/panel/env-panel/env-item.tsx+++ b/web/app/components/workflow/panel/env-panel/env-item.tsx@@ -1,10 +1,10 @@import type { EnvironmentVariable } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiDeleteBinLine, RiEditLine, RiLock2Line } from '@remixicon/react'import { capitalize } from 'es-toolkit/string'import { memo, useState } from 'react'import { Env } from '@/app/components/base/icons/src/vender/line/others'import { useStore } from '@/app/components/workflow/store'-import { cn } from '@/utils/classnames'type EnvItemProps = {env: EnvironmentVariable@@ -22,7 +22,7 @@ const EnvItem = ({return (<div className={cn(- 'radius-md group mb-1 border border-components-panel-border-subtle bg-components-panel-on-panel-item-bg shadow-xs hover:bg-components-panel-on-panel-item-bg-hover',+ 'group mb-1 rounded-lg border border-components-panel-border-subtle bg-components-panel-on-panel-item-bg shadow-xs hover:bg-components-panel-on-panel-item-bg-hover',destructive && 'border-state-destructive-border hover:bg-state-destructive-hover',)}>@@ -35,11 +35,11 @@ const EnvItem = ({{env.value_type === 'secret' && <RiLock2Line className="h-3 w-3 text-text-tertiary" />}</div><div className="flex shrink-0 items-center gap-1 text-text-tertiary">- <div className="radius-md cursor-pointer p-1 hover:bg-state-base-hover hover:text-text-secondary">+ <div className="cursor-pointer rounded-lg p-1 hover:bg-state-base-hover hover:text-text-secondary"><RiEditLine className="h-4 w-4" onClick={() => onEdit(env)} /></div><div- className="radius-md cursor-pointer p-1 hover:bg-state-destructive-hover hover:text-text-destructive"+ className="cursor-pointer rounded-lg p-1 hover:bg-state-destructive-hover hover:text-text-destructive"onMouseOver={() => setDestructive(true)}onMouseOut={() => setDestructive(false)}>@@ -47,13 +47,13 @@ const EnvItem = ({</div></div></div>- <div className="system-xs-regular truncate text-text-tertiary">{env.value_type === 'secret' ? envSecrets[env.id] : env.value}</div>+ <div className="truncate system-xs-regular text-text-tertiary">{env.value_type === 'secret' ? envSecrets[env.id] : env.value}</div></div>{env.description && (<><div className="h-[0.5px] bg-divider-subtle" />- <div className={cn('rounded-bl-[8px] rounded-br-[8px] bg-background-default-subtle px-2.5 py-2 group-hover:bg-transparent', destructive && 'bg-state-destructive-hover hover:bg-state-destructive-hover')}>- <div className="system-xs-regular truncate text-text-tertiary">{env.description}</div>+ <div className={cn('rounded-br-[8px] rounded-bl-[8px] bg-background-default-subtle px-2.5 py-2 group-hover:bg-transparent', destructive && 'bg-state-destructive-hover hover:bg-state-destructive-hover')}>+ <div className="truncate system-xs-regular text-text-tertiary">{env.description}</div></div></>)}diff --git a/web/app/components/workflow/panel/env-panel/index.tsx b/web/app/components/workflow/panel/env-panel/index.tsxindex 324552ebd92..af8273c8ef0 100644--- a/web/app/components/workflow/panel/env-panel/index.tsx+++ b/web/app/components/workflow/panel/env-panel/index.tsx@@ -1,6 +1,7 @@import type {EnvironmentVariable,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine } from '@remixicon/react'import {memo,@@ -17,7 +18,6 @@ import { findUsedVarNodes, updateNodeVars } from '@/app/components/workflow/nodeimport EnvItem from '@/app/components/workflow/panel/env-panel/env-item'import VariableTrigger from '@/app/components/workflow/panel/env-panel/variable-trigger'import { useStore } from '@/app/components/workflow/store'-import { cn } from '@/utils/classnames'const HIDDEN_SECRET_VALUE = '[__HIDDEN__]'@@ -189,7 +189,7 @@ const EnvPanel = () => {'relative flex h-full w-[420px] flex-col rounded-l-2xl border border-components-panel-border bg-components-panel-bg-alt',)}>- <div className="system-xl-semibold flex shrink-0 items-center justify-between p-4 pb-0 text-text-primary">+ <div className="flex shrink-0 items-center justify-between p-4 pb-0 system-xl-semibold text-text-primary">{t('env.envPanelTitle', { ns: 'workflow' })}<div className="flex items-center"><div@@ -201,8 +201,8 @@ const EnvPanel = () => {</div></div></div>- <div className="system-sm-regular shrink-0 px-4 py-1 text-text-tertiary">{t('env.envDescription', { ns: 'workflow' })}</div>- <div className="shrink-0 px-4 pb-3 pt-2">+ <div className="shrink-0 px-4 py-1 system-sm-regular text-text-tertiary">{t('env.envDescription', { ns: 'workflow' })}</div>+ <div className="shrink-0 px-4 pt-2 pb-3"><VariableTriggeropen={showVariableModal}setOpen={setShowVariableModal}diff --git a/web/app/components/workflow/panel/env-panel/variable-modal.tsx b/web/app/components/workflow/panel/env-panel/variable-modal.tsxindex cd8b3b5103c..e824dd9f087 100644--- a/web/app/components/workflow/panel/env-panel/variable-modal.tsx+++ b/web/app/components/workflow/panel/env-panel/variable-modal.tsx@@ -1,4 +1,5 @@import type { EnvironmentVariable } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine } from '@remixicon/react'import * as React from 'react'import { useEffect } from 'react'@@ -9,7 +10,6 @@ import Tooltip from '@/app/components/base/tooltip'import { Button } from '@/app/components/base/ui/button'import { toast } from '@/app/components/base/ui/toast'import { useWorkflowStore } from '@/app/components/workflow/store'-import { cn } from '@/utils/classnames'import { checkKeys, replaceSpaceWithUnderscoreInVarNameInput } from '@/utils/var'type ModalPropsType = {@@ -101,7 +101,7 @@ const VariableModal = ({<div className="flex gap-2"><divclassName={cn(- 'flex w-[106px] cursor-pointer items-center justify-center radius-md border border-components-option-card-option-border bg-components-option-card-option-bg p-2 system-sm-regular text-text-secondary hover:border-components-option-card-option-border-hover hover:bg-components-option-card-option-bg-hover hover:shadow-xs',+ 'flex w-[106px] cursor-pointer items-center justify-center rounded-lg border border-components-option-card-option-border bg-components-option-card-option-bg p-2 system-sm-regular text-text-secondary hover:border-components-option-card-option-border-hover hover:bg-components-option-card-option-bg-hover hover:shadow-xs',type === 'string' && 'border-[1.5px] border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg system-sm-medium text-text-primary shadow-xs hover:border-components-option-card-option-selected-border',)}onClick={() => setType('string')}@@ -110,7 +110,7 @@ const VariableModal = ({</div><divclassName={cn(- 'flex w-[106px] cursor-pointer items-center justify-center radius-md border border-components-option-card-option-border bg-components-option-card-option-bg p-2 system-sm-regular text-text-secondary hover:border-components-option-card-option-border-hover hover:bg-components-option-card-option-bg-hover hover:shadow-xs',+ 'flex w-[106px] cursor-pointer items-center justify-center rounded-lg border border-components-option-card-option-border bg-components-option-card-option-bg p-2 system-sm-regular text-text-secondary hover:border-components-option-card-option-border-hover hover:bg-components-option-card-option-bg-hover hover:shadow-xs',type === 'number' && 'border-[1.5px] border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg font-medium text-text-primary shadow-xs hover:border-components-option-card-option-selected-border',)}onClick={() => {@@ -123,7 +123,7 @@ const VariableModal = ({</div><divclassName={cn(- 'flex w-[106px] cursor-pointer items-center justify-center radius-md border border-components-option-card-option-border bg-components-option-card-option-bg p-2 system-sm-regular text-text-secondary hover:border-components-option-card-option-border-hover hover:bg-components-option-card-option-bg-hover hover:shadow-xs',+ 'flex w-[106px] cursor-pointer items-center justify-center rounded-lg border border-components-option-card-option-border bg-components-option-card-option-bg p-2 system-sm-regular text-text-secondary hover:border-components-option-card-option-border-hover hover:bg-components-option-card-option-bg-hover hover:shadow-xs',type === 'secret' && 'border-[1.5px] border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg font-medium text-text-primary shadow-xs hover:border-components-option-card-option-selected-border',)}onClick={() => setType('secret')}diff --git a/web/app/components/workflow/panel/global-variable-panel/index.tsx b/web/app/components/workflow/panel/global-variable-panel/index.tsxindex 4eb5be0399a..4b498419da2 100644--- a/web/app/components/workflow/panel/global-variable-panel/index.tsx+++ b/web/app/components/workflow/panel/global-variable-panel/index.tsx@@ -1,13 +1,13 @@import type { GlobalVariable } from '../../types'+import { cn } from '@langgenius/dify-ui/cn'import { RiCloseLine } from '@remixicon/react'import {memo,} from 'react'import { useTranslation } from 'react-i18next'-import { useStore } from '@/app/components/workflow/store'-import { cn } from '@/utils/classnames'+import { useStore } from '@/app/components/workflow/store'import { isInWorkflowPage } from '../../constants'import { useIsChatMode } from '../../hooks'import Item from './item'@@ -66,7 +66,7 @@ const Panel = () => {'relative flex h-full w-[420px] flex-col rounded-l-2xl border border-components-panel-border bg-components-panel-bg-alt',)}>- <div className="system-xl-semibold flex shrink-0 items-center justify-between p-4 pb-0 text-text-primary">+ <div className="flex shrink-0 items-center justify-between p-4 pb-0 system-xl-semibold text-text-primary">{t('globalVar.title', { ns: 'workflow' })}<div className="flex items-center"><div@@ -77,7 +77,7 @@ const Panel = () => {</div></div></div>- <div className="system-sm-regular shrink-0 px-4 py-1 text-text-tertiary">{t('globalVar.description', { ns: 'workflow' })}</div>+ <div className="shrink-0 px-4 py-1 system-sm-regular text-text-tertiary">{t('globalVar.description', { ns: 'workflow' })}</div><div className="mt-4 grow overflow-y-auto rounded-b-2xl px-4">{globalVariableList.map(item => (diff --git a/web/app/components/workflow/panel/global-variable-panel/item.tsx b/web/app/components/workflow/panel/global-variable-panel/item.tsxindex 83c0df77586..543adc5d6f6 100644--- a/web/app/components/workflow/panel/global-variable-panel/item.tsx+++ b/web/app/components/workflow/panel/global-variable-panel/item.tsx@@ -1,9 +1,9 @@import type { GlobalVariable } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { capitalize } from 'es-toolkit/string'-import { memo } from 'react'+import { memo } from 'react'import { GlobalVariable as GlobalVariableIcon } from '@/app/components/base/icons/src/vender/line/others'-import { cn } from '@/utils/classnames'type Props = {payload: GlobalVariable@@ -14,7 +14,7 @@ const Item = ({}: Props) => {return (<div className={cn(- 'radius-md mb-1 border border-components-panel-border-subtle bg-components-panel-on-panel-item-bg px-2.5 py-2 shadow-xs hover:bg-components-panel-on-panel-item-bg-hover',+ 'mb-1 rounded-lg border border-components-panel-border-subtle bg-components-panel-on-panel-item-bg px-2.5 py-2 shadow-xs hover:bg-components-panel-on-panel-item-bg-hover',)}><div className="flex items-center justify-between">@@ -27,7 +27,7 @@ const Item = ({<div className="system-xs-medium text-text-tertiary">{capitalize(payload.value_type)}</div></div></div>- <div className="system-xs-regular mt-1.5 truncate text-text-tertiary">{payload.description}</div>+ <div className="mt-1.5 truncate system-xs-regular text-text-tertiary">{payload.description}</div></div>)}diff --git a/web/app/components/workflow/panel/index.tsx b/web/app/components/workflow/panel/index.tsxindex 2f362e5d437..7c8e4e4ed34 100644--- a/web/app/components/workflow/panel/index.tsx+++ b/web/app/components/workflow/panel/index.tsx@@ -1,10 +1,10 @@import type { FC } from 'react'import type { VersionHistoryPanelProps } from '@/app/components/workflow/panel/version-history-panel'+import { cn } from '@langgenius/dify-ui/cn'import { memo, useCallback, useEffect, useRef } from 'react'import { useStore as useReactflow } from 'reactflow'import { useShallow } from 'zustand/react/shallow'import dynamic from '@/next/dynamic'-import { cn } from '@/utils/classnames'import { Panel as NodePanel } from '../nodes'import { useStore } from '../store'import EnvPanel from './env-panel'@@ -127,7 +127,7 @@ const Panel: FC<PanelProps> = ({<divref={rightPanelRef}tabIndex={-1}- className={cn('absolute bottom-1 right-0 top-14 z-10 flex outline-hidden')}+ className={cn('absolute top-14 right-0 bottom-1 z-10 flex outline-hidden')}key={`${isRestoring}`}>{components?.left}diff --git a/web/app/components/workflow/panel/version-history-panel/context-menu/menu-item.tsx b/web/app/components/workflow/panel/version-history-panel/context-menu/menu-item.tsxindex 938b8089cad..5a3f21272f5 100644--- a/web/app/components/workflow/panel/version-history-panel/context-menu/menu-item.tsx+++ b/web/app/components/workflow/panel/version-history-panel/context-menu/menu-item.tsx@@ -1,7 +1,7 @@import type { FC } from 'react'import type { VersionHistoryContextMenuOptions } from '../../../types'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'type MenuItemProps = {item: {@@ -20,7 +20,7 @@ const MenuItem: FC<MenuItemProps> = ({return (<divclassName={cn(- 'flex cursor-pointer items-center justify-between rounded-lg px-2 py-1.5 ',+ 'flex cursor-pointer items-center justify-between rounded-lg px-2 py-1.5',isDestructive ? 'hover:bg-state-destructive-hover' : 'hover:bg-state-base-hover',)}onClick={() => {@@ -28,7 +28,7 @@ const MenuItem: FC<MenuItemProps> = ({}}><div className={cn(- 'system-md-regular flex-1 text-text-primary',+ 'flex-1 system-md-regular text-text-primary',isDestructive && 'hover:text-text-destructive',)}>diff --git a/web/app/components/workflow/panel/version-history-panel/filter/index.tsx b/web/app/components/workflow/panel/version-history-panel/filter/index.tsxindex 040ede3c21e..f48804d9219 100644--- a/web/app/components/workflow/panel/version-history-panel/filter/index.tsx+++ b/web/app/components/workflow/panel/version-history-panel/filter/index.tsx@@ -1,4 +1,5 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiFilter3Line } from '@remixicon/react'import * as React from 'react'import { useCallback, useState } from 'react'@@ -8,7 +9,6 @@ import {PortalToFollowElemContent,PortalToFollowElemTrigger,} from '@/app/components/base/portal-to-follow-elem'-import { cn } from '@/utils/classnames'import { WorkflowVersionFilterOptions } from '../../../types'import FilterItem from './filter-item'import FilterSwitch from './filter-switch'@@ -53,7 +53,7 @@ const Filter: FC<FilterProps> = ({isFiltering ? 'bg-state-accent-active-alt' : 'hover:bg-state-base-hover',)}>- <RiFilter3Line className={cn('h-4 w-4', isFiltering ? 'text-text-accent' : ' text-text-tertiary')} />+ <RiFilter3Line className={cn('h-4 w-4', isFiltering ? 'text-text-accent' : 'text-text-tertiary')} /></div></PortalToFollowElemTrigger><PortalToFollowElemContent className="z-12">diff --git a/web/app/components/workflow/panel/version-history-panel/loading/item.tsx b/web/app/components/workflow/panel/version-history-panel/loading/item.tsxindex 898b14fad91..bdf6dd47b88 100644--- a/web/app/components/workflow/panel/version-history-panel/loading/item.tsx+++ b/web/app/components/workflow/panel/version-history-panel/loading/item.tsx@@ -1,6 +1,6 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'type ItemProps = {titleWidth: string@@ -17,8 +17,8 @@ const Item: FC<ItemProps> = ({}) => {return (<div className="relative flex gap-x-1 p-2">- {!isLast && <div className="absolute left-4 top-6 h-[calc(100%-0.75rem)] w-0.5 bg-divider-subtle" />}- <div className=" flex h-5 w-[18px] shrink-0 items-center justify-center">+ {!isLast && <div className="absolute top-6 left-4 h-[calc(100%-0.75rem)] w-0.5 bg-divider-subtle" />}+ <div className="flex h-5 w-[18px] shrink-0 items-center justify-center"><div className="h-2 w-2 rounded-lg border-2 border-text-quaternary" /></div><div className="flex grow flex-col gap-y-0.5">diff --git a/web/app/components/workflow/panel/version-history-panel/version-history-item.tsx b/web/app/components/workflow/panel/version-history-panel/version-history-item.tsxindex d862609821b..bd0a967c498 100644--- a/web/app/components/workflow/panel/version-history-panel/version-history-item.tsx+++ b/web/app/components/workflow/panel/version-history-panel/version-history-item.tsx@@ -1,10 +1,10 @@import type { VersionHistoryContextMenuOptions } from '../../types'import type { VersionHistory } from '@/types/workflow'+import { cn } from '@langgenius/dify-ui/cn'import dayjs from 'dayjs'import * as React from 'react'import { useEffect, useState } from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'import { WorkflowVersion } from '../../types'import ContextMenu from './context-menu'@@ -82,8 +82,8 @@ const VersionHistoryItem: React.FC<VersionHistoryItemProps> = ({setOpen(true)}}>- {!isLast && <div className="absolute left-4 top-6 h-[calc(100%-0.75rem)] w-0.5 bg-divider-subtle" />}- <div className=" flex h-5 w-[18px] shrink-0 items-center justify-center">+ {!isLast && <div className="absolute top-6 left-4 h-[calc(100%-0.75rem)] w-0.5 bg-divider-subtle" />}+ <div className="flex h-5 w-[18px] shrink-0 items-center justify-center"><div className={cn('h-2 w-2 rounded-lg border-2',isSelected ? 'border-text-accent' : 'border-text-quaternary',@@ -93,15 +93,15 @@ const VersionHistoryItem: React.FC<VersionHistoryItemProps> = ({<div className="flex grow flex-col gap-y-0.5 overflow-hidden"><div className="mr-6 flex h-5 items-center gap-x-1"><div className={cn(- 'system-sm-semibold truncate py-px',+ 'truncate py-px system-sm-semibold',isSelected ? 'text-text-accent' : 'text-text-secondary',)}>{isDraft ? t('versionHistory.currentDraft', { ns: 'workflow' }) : item.marked_name || t('versionHistory.defaultName', { ns: 'workflow' })}</div>{isLatest && (- <div className="system-2xs-medium-uppercase flex h-5 shrink-0 items-center rounded-md border border-text-accent-secondary- bg-components-badge-bg-dimm px-[5px] text-text-accent-secondary"+ <div className="flex h-5 shrink-0 items-center rounded-md border border-text-accent-secondary bg-components-badge-bg-dimm+ px-[5px] system-2xs-medium-uppercase text-text-accent-secondary">{t('versionHistory.latest', { ns: 'workflow' })}</div>@@ -116,7 +116,7 @@ const VersionHistoryItem: React.FC<VersionHistoryItemProps> = ({}{!isDraft && (- <div className="system-xs-regular truncate text-text-tertiary">+ <div className="truncate system-xs-regular text-text-tertiary">{`${formatTime(item.created_at)} · ${item.created_by.name}`}</div>)@@ -124,7 +124,7 @@ const VersionHistoryItem: React.FC<VersionHistoryItemProps> = ({</div>{/* Context Menu */}{!isDraft && isHovering && (- <div className="absolute right-1 top-1">+ <div className="absolute top-1 right-1"><ContextMenuisShowDelete={!isLatest}isNamedVersion={!!item.marked_name}diff --git a/web/app/components/workflow/panel/workflow-preview.tsx b/web/app/components/workflow/panel/workflow-preview.tsxindex e144e04b3e8..e28c494b206 100644--- a/web/app/components/workflow/panel/workflow-preview.tsx+++ b/web/app/components/workflow/panel/workflow-preview.tsx@@ -1,3 +1,4 @@+import { cn } from '@langgenius/dify-ui/cn'import copy from 'copy-to-clipboard'import {memo,@@ -10,7 +11,6 @@ import Loading from '@/app/components/base/loading'import { Button } from '@/app/components/base/ui/button'import { toast } from '@/app/components/base/ui/toast'import { submitHumanInputForm } from '@/service/workflow'-import { cn } from '@/utils/classnames'import {useWorkflowInteractions,} from '../hooks'diff --git a/web/app/components/workflow/run/agent-log/agent-log-item.tsx b/web/app/components/workflow/run/agent-log/agent-log-item.tsxindex 7c572c59aa7..e1714c5f35b 100644--- a/web/app/components/workflow/run/agent-log/agent-log-item.tsx+++ b/web/app/components/workflow/run/agent-log/agent-log-item.tsx@@ -1,4 +1,5 @@import type { AgentLogItemWithChildren } from '@/types/workflow'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowRightSLine,RiListView,@@ -14,7 +15,6 @@ import CodeEditor from '@/app/components/workflow/nodes/_base/components/editor/import NodeStatusIcon from '@/app/components/workflow/nodes/_base/components/node-status-icon'import { CodeLanguage } from '@/app/components/workflow/nodes/code/types'import { BlockEnum } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'type AgentLogItemProps = {item: AgentLogItemWithChildren@@ -54,7 +54,7 @@ const AgentLogItem = ({}, [status])return (- <div className="radius-lg border-[0.5px] border-components-panel-border bg-background-default">+ <div className="rounded-[10px] border-[0.5px] border-components-panel-border bg-background-default"><divclassName={cn('flex cursor-pointer items-center pt-2 pr-3 pb-2 pl-1.5',diff --git a/web/app/components/workflow/run/agent-log/agent-log-trigger.tsx b/web/app/components/workflow/run/agent-log/agent-log-trigger.tsxindex ed6de1b9efc..a9d432d1c95 100644--- a/web/app/components/workflow/run/agent-log/agent-log-trigger.tsx+++ b/web/app/components/workflow/run/agent-log/agent-log-trigger.tsx@@ -19,24 +19,24 @@ const AgentLogTrigger = ({return (<div- className="cursor-pointer radius-lg bg-components-button-tertiary-bg"+ className="cursor-pointer rounded-[10px] bg-components-button-tertiary-bg"onClick={() => {onShowAgentOrToolLog({ message_id: nodeInfo.id, children: agentLog || [] } as AgentLogItemWithChildren)}}>- <div className="system-2xs-medium-uppercase flex items-center px-3 pt-2 text-text-tertiary">+ <div className="flex items-center px-3 pt-2 system-2xs-medium-uppercase text-text-tertiary">{t('nodes.agent.strategy.label', { ns: 'workflow' })}</div>- <div className="flex items-center pb-1.5 pl-3 pr-2 pt-1">+ <div className="flex items-center pt-1 pr-2 pb-1.5 pl-3">{agentStrategy && (- <div className="system-xs-medium grow text-text-secondary">+ <div className="grow system-xs-medium text-text-secondary">{agentStrategy}</div>)}<div- className="system-xs-regular-uppercase flex shrink-0 cursor-pointer items-center px-px text-text-tertiary"+ className="flex shrink-0 cursor-pointer items-center px-px system-xs-regular-uppercase text-text-tertiary">{t('detail', { ns: 'runLog' })}<RiArrowRightLine className="ml-0.5 h-3.5 w-3.5" />diff --git a/web/app/components/workflow/run/index.tsx b/web/app/components/workflow/run/index.tsxindex 417d38657ee..bd71b662f5d 100644--- a/web/app/components/workflow/run/index.tsx+++ b/web/app/components/workflow/run/index.tsx@@ -2,13 +2,13 @@import type { FC } from 'react'import type { WorkflowRunDetailResponse } from '@/models/log'import type { NodeTracing } from '@/types/workflow'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback, useEffect, useMemo, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'import Loading from '@/app/components/base/loading'import { toast } from '@/app/components/base/ui/toast'import { WorkflowRunningStatus } from '@/app/components/workflow/types'import { fetchRunDetail, fetchTracingList } from '@/service/log'-import { cn } from '@/utils/classnames'import { useStore } from '../store'import OutputPanel from './output-panel'import ResultPanel from './result-panel'@@ -116,7 +116,7 @@ const RunPanel: FC<RunProps> = ({{!hideResult && (<divclassName={cn(- 'mr-6 cursor-pointer border-b-2 border-transparent py-3 text-text-tertiary system-sm-semibold-uppercase',+ 'mr-6 cursor-pointer border-b-2 border-transparent py-3 system-sm-semibold-uppercase text-text-tertiary',currentTab === 'RESULT' && 'border-util-colors-blue-brand-blue-brand-600! text-text-primary',)}onClick={() => switchTab('RESULT')}@@ -126,7 +126,7 @@ const RunPanel: FC<RunProps> = ({)}<divclassName={cn(- 'mr-6 cursor-pointer border-b-2 border-transparent py-3 text-text-tertiary system-sm-semibold-uppercase',+ 'mr-6 cursor-pointer border-b-2 border-transparent py-3 system-sm-semibold-uppercase text-text-tertiary',currentTab === 'DETAIL' && 'border-util-colors-blue-brand-blue-brand-600! text-text-primary',)}onClick={() => switchTab('DETAIL')}@@ -135,7 +135,7 @@ const RunPanel: FC<RunProps> = ({</div><divclassName={cn(- 'mr-6 cursor-pointer border-b-2 border-transparent py-3 text-text-tertiary system-sm-semibold-uppercase',+ 'mr-6 cursor-pointer border-b-2 border-transparent py-3 system-sm-semibold-uppercase text-text-tertiary',currentTab === 'TRACING' && 'border-util-colors-blue-brand-blue-brand-600! text-text-primary',)}onClick={() => switchTab('TRACING')}diff --git a/web/app/components/workflow/run/iteration-log/iteration-result-panel.tsx b/web/app/components/workflow/run/iteration-log/iteration-result-panel.tsxindex 98dfe2b2ca7..b37bc2735b1 100644--- a/web/app/components/workflow/run/iteration-log/iteration-result-panel.tsx+++ b/web/app/components/workflow/run/iteration-log/iteration-result-panel.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { IterationDurationMap, NodeTracing } from '@/types/workflow'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowLeftLine,RiArrowRightSLine,@@ -13,7 +14,6 @@ import { useTranslation } from 'react-i18next'import { Iteration } from '@/app/components/base/icons/src/vender/workflow'import TracingPanel from '@/app/components/workflow/run/tracing-panel'import { NodeRunningStatus } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'const i18nPrefix = 'singleRun'@@ -92,7 +92,7 @@ const IterationResultPanel: FC<Props> = ({<divclassName={cn('flex w-full cursor-pointer items-center justify-between px-3',- expandedIterations[index] ? 'pb-2 pt-3' : 'py-3',+ expandedIterations[index] ? 'pt-3 pb-2' : 'py-3','rounded-xl text-left',)}onClick={() => toggleIteration(index)}@@ -101,7 +101,7 @@ const IterationResultPanel: FC<Props> = ({<div className="flex h-4 w-4 shrink-0 items-center justify-center rounded-[5px] border-divider-subtle bg-util-colors-cyan-cyan-500"><Iteration className="h-3 w-3 text-text-primary-on-surface" /></div>- <span className="system-sm-semibold-uppercase grow text-text-primary">+ <span className="grow system-sm-semibold-uppercase text-text-primary">{t(`${i18nPrefix}.iteration`, { ns: 'workflow' })}{' '}{index + 1}diff --git a/web/app/components/workflow/run/loop-log/loop-result-panel.tsx b/web/app/components/workflow/run/loop-log/loop-result-panel.tsxindex b2d627fb010..574658838e7 100644--- a/web/app/components/workflow/run/loop-log/loop-result-panel.tsx+++ b/web/app/components/workflow/run/loop-log/loop-result-panel.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { LoopDurationMap, LoopVariableMap, NodeTracing } from '@/types/workflow'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowLeftLine,RiArrowRightSLine,@@ -15,7 +16,6 @@ import CodeEditor from '@/app/components/workflow/nodes/_base/components/editor/import { CodeLanguage } from '@/app/components/workflow/nodes/code/types'import TracingPanel from '@/app/components/workflow/run/tracing-panel'import { NodeRunningStatus } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'const i18nPrefix = 'singleRun'@@ -69,7 +69,7 @@ const LoopResultPanel: FC<Props> = ({return <RiErrorWarningLine className="h-4 w-4 text-text-destructive" />if (isRunning)- return <RiLoader2Line className="text-primary-600 h-3.5 w-3.5 animate-spin" />+ return <RiLoader2Line className="h-3.5 w-3.5 animate-spin text-primary-600" />return (<>diff --git a/web/app/components/workflow/run/loop-result-panel.tsx b/web/app/components/workflow/run/loop-result-panel.tsxindex 987222f0247..bd391266c36 100644--- a/web/app/components/workflow/run/loop-result-panel.tsx+++ b/web/app/components/workflow/run/loop-result-panel.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { NodeTracing } from '@/types/workflow'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowRightSLine,RiCloseLine,@@ -9,7 +10,6 @@ import * as React from 'react'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'import { Loop } from '@/app/components/base/icons/src/vender/workflow'-import { cn } from '@/utils/classnames'import { ArrowNarrowLeft } from '../../base/icons/src/vender/line/arrows'import TracingPanel from './tracing-panel'@@ -40,9 +40,9 @@ const LoopResultPanel: FC<Props> = ({const main = (<>- <div className={cn(!noWrap && 'shrink-0 ', 'px-4 pt-3')}>+ <div className={cn(!noWrap && 'shrink-0', 'px-4 pt-3')}><div className="flex h-8 shrink-0 items-center justify-between">- <div className="system-xl-semibold truncate text-text-primary">+ <div className="truncate system-xl-semibold text-text-primary">{t(`${i18nPrefix}.testRunLoop`, { ns: 'workflow' }) }</div><div className="ml-2 shrink-0 cursor-pointer p-1" onClick={onHide}>@@ -61,7 +61,7 @@ const LoopResultPanel: FC<Props> = ({<divclassName={cn('flex w-full cursor-pointer items-center justify-between px-3',- expandedLoops[index] ? 'pb-2 pt-3' : 'py-3',+ expandedLoops[index] ? 'pt-3 pb-2' : 'py-3','rounded-xl text-left',)}onClick={() => toggleLoop(index)}@@ -70,7 +70,7 @@ const LoopResultPanel: FC<Props> = ({<div className="flex h-4 w-4 shrink-0 items-center justify-center rounded-[5px] border-divider-subtle bg-util-colors-cyan-cyan-500"><Loop className="h-3 w-3 text-text-primary-on-surface" /></div>- <span className="system-sm-semibold-uppercase grow text-text-primary">+ <span className="grow system-sm-semibold-uppercase text-text-primary">{t(`${i18nPrefix}.loop`, { ns: 'workflow' })}{' '}{index + 1}diff --git a/web/app/components/workflow/run/node.tsx b/web/app/components/workflow/run/node.tsxindex 5b3f7345a04..6f8897e788a 100644--- a/web/app/components/workflow/run/node.tsx+++ b/web/app/components/workflow/run/node.tsx@@ -7,6 +7,7 @@ import type {LoopVariableMap,NodeTracing,} from '@/types/workflow'+import { cn } from '@langgenius/dify-ui/cn'import {RiAlertFill,RiArrowRightSLine,@@ -24,7 +25,6 @@ import { CodeLanguage } from '@/app/components/workflow/nodes/code/types'import StatusContainer from '@/app/components/workflow/run/status-container'import { hasRetryNode } from '@/app/components/workflow/utils'import { useDocLink } from '@/context/i18n'-import { cn } from '@/utils/classnames'import BlockIcon from '../block-icon'import { BlockEnum } from '../types'import LargeDataAlert from '../variable-inspect/large-data-alert'@@ -114,10 +114,10 @@ const NodePanel: FC<Props> = ({return (<div className={cn('px-2 py-1', className)}>- <div className="group radius-lg border border-components-panel-border bg-background-default shadow-xs transition-all hover:shadow-md">+ <div className="group rounded-[10px] border border-components-panel-border bg-background-default shadow-xs transition-all hover:shadow-md"><divclassName={cn(- 'flex cursor-pointer items-center pl-1 pr-3',+ 'flex cursor-pointer items-center pr-3 pl-1',hideInfo ? 'py-2 pl-2' : 'py-1.5',!collapseState && (hideInfo ? 'pb-1!' : 'pb-1.5!'),)}@@ -138,7 +138,7 @@ const NodePanel: FC<Props> = ({}><div className={cn(- 'system-xs-semibold-uppercase grow truncate text-text-secondary',+ 'grow truncate system-xs-semibold-uppercase text-text-secondary',hideInfo && 'text-xs!',)}>@@ -146,7 +146,7 @@ const NodePanel: FC<Props> = ({</div></Tooltip>{!['running', 'paused'].includes(nodeInfo.status) && !hideInfo && (- <div className="system-xs-regular shrink-0 text-text-tertiary">+ <div className="shrink-0 system-xs-regular text-text-tertiary">{nodeInfo.execution_metadata?.total_tokens ? `${getTokenCount(nodeInfo.execution_metadata?.total_tokens || 0)} tokens · ` : ''}{`${getTime(nodeInfo.elapsed_time || 0)}`}</div>@@ -167,7 +167,7 @@ const NodePanel: FC<Props> = ({<RiAlertFill className={cn('ml-2 h-4 w-4 shrink-0 text-text-warning-secondary', inMessage && 'h-3.5 w-3.5')} />)}{nodeInfo.status === 'running' && (- <div className="flex shrink-0 items-center text-[13px] font-medium leading-[16px] text-text-accent">+ <div className="flex shrink-0 items-center text-[13px] leading-[16px] font-medium text-text-accent"><span className="mr-2 text-xs font-normal">Running</span><RiLoader2Line className="h-3.5 w-3.5 animate-spin" /></div>@@ -247,7 +247,7 @@ const NodePanel: FC<Props> = ({language={CodeLanguage.json}value={nodeInfo.inputs}isJSONStringifyBeauty- footer={nodeInfo.inputs_truncated && <LargeDataAlert textHasNoExport className="mx-1 mb-1 mt-2 h-7" />}+ footer={nodeInfo.inputs_truncated && <LargeDataAlert textHasNoExport className="mx-1 mt-2 mb-1 h-7" />}/></div>)}@@ -271,7 +271,7 @@ const NodePanel: FC<Props> = ({value={nodeInfo.outputs}isJSONStringifyBeautytip={<ErrorHandleTip type={nodeInfo.execution_metadata?.error_strategy} />}- footer={nodeInfo.outputs_truncated && <LargeDataAlert textHasNoExport downloadUrl={nodeInfo.outputs_full_content?.download_url} className="mx-1 mb-1 mt-2 h-7" />}+ footer={nodeInfo.outputs_truncated && <LargeDataAlert textHasNoExport downloadUrl={nodeInfo.outputs_full_content?.download_url} className="mx-1 mt-2 mb-1 h-7" />}/></div>)}diff --git a/web/app/components/workflow/run/status-container.tsx b/web/app/components/workflow/run/status-container.tsxindex 8a8e613301a..b8a70be95c8 100644--- a/web/app/components/workflow/run/status-container.tsx+++ b/web/app/components/workflow/run/status-container.tsx@@ -1,8 +1,8 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import useTheme from '@/hooks/use-theme'import { Theme } from '@/types/app'-import { cn } from '@/utils/classnames'type Props = {status: string@@ -18,7 +18,7 @@ const StatusContainer: FC<Props> = ({return (<divclassName={cn(- 'relative break-all rounded-lg border px-3 py-2.5 system-xs-regular',+ 'relative rounded-lg border px-3 py-2.5 system-xs-regular break-all',status === 'succeeded' && 'border-[rgba(23,178,106,0.8)] bg-workflow-display-success-bg bg-[url(~@/app/components/workflow/run/assets/bg-line-success.svg)] text-text-success',status === 'succeeded' && theme === Theme.light && 'shadow-[inset_2px_2px_0_0_rgba(255,255,255,0.5),inset_0_1px_3px_0_rgba(0,0,0,0.12),inset_0_2px_24px_0_rgba(23,178,106,0.2),0_1px_2px_0_rgba(9,9,11,0.05),0_0_0_1px_rgba(0,0,0,0.05)]',status === 'succeeded' && theme === Theme.dark && 'shadow-[inset_2px_2px_0_0_rgba(255,255,255,0.12),inset_0_1px_3px_0_rgba(0,0,0,0.4),inset_0_2px_24px_0_rgba(23,178,106,0.25),0_1px_2px_0_rgba(0,0,0,0.1),0_0_0_1px_rgba(24,24,27,0.95)]',@@ -40,7 +40,7 @@ const StatusContainer: FC<Props> = ({)}><div className={cn(- 'absolute left-0 top-0 h-[50px] w-[65%] bg-no-repeat',+ 'absolute top-0 left-0 h-[50px] w-[65%] bg-no-repeat',theme === Theme.light && 'bg-[url(~@/app/components/workflow/run/assets/highlight.svg)]',theme === Theme.dark && 'bg-[url(~@/app/components/workflow/run/assets/highlight-dark.svg)]',)}diff --git a/web/app/components/workflow/run/status.tsx b/web/app/components/workflow/run/status.tsxindex 233c6207a9c..667e0236a37 100644--- a/web/app/components/workflow/run/status.tsx+++ b/web/app/components/workflow/run/status.tsx@@ -1,12 +1,12 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { useMemo } from 'react'import { Trans, useTranslation } from 'react-i18next'import Indicator from '@/app/components/header/indicator'import StatusContainer from '@/app/components/workflow/run/status-container'import { useDocLink } from '@/context/i18n'import { useWorkflowPausedDetails } from '@/service/use-log'-import { cn } from '@/utils/classnames'type ResultProps = {status: string@@ -99,10 +99,10 @@ const StatusPanel: FC<ResultProps> = ({status === 'partial-succeeded' && 'min-w-[140px]',)}>- <div className="system-2xs-medium-uppercase mb-1 text-text-tertiary">{t('resultPanel.status', { ns: 'runLog' })}</div>+ <div className="mb-1 system-2xs-medium-uppercase text-text-tertiary">{t('resultPanel.status', { ns: 'runLog' })}</div><divclassName={cn(- 'system-xs-semibold-uppercase flex items-center gap-1',+ 'flex items-center gap-1 system-xs-semibold-uppercase',status === 'succeeded' && 'text-util-colors-green-green-600',status === 'partial-succeeded' && 'text-util-colors-green-green-600',status === 'failed' && 'text-util-colors-red-red-600',@@ -155,8 +155,8 @@ const StatusPanel: FC<ResultProps> = ({</div></div><div className="max-w-[152px] flex-[33%]">- <div className="system-2xs-medium-uppercase mb-1 text-text-tertiary">{t('resultPanel.time', { ns: 'runLog' })}</div>- <div className="system-sm-medium flex items-center gap-1 text-text-secondary">+ <div className="mb-1 system-2xs-medium-uppercase text-text-tertiary">{t('resultPanel.time', { ns: 'runLog' })}</div>+ <div className="flex items-center gap-1 system-sm-medium text-text-secondary">{(status === 'running' || status === 'paused') && (<div className="h-2 w-16 animate-pulse rounded-xs bg-text-quaternary" />)}@@ -166,8 +166,8 @@ const StatusPanel: FC<ResultProps> = ({</div></div><div className="flex-[33%]">- <div className="system-2xs-medium-uppercase mb-1 text-text-tertiary">{t('resultPanel.tokens', { ns: 'runLog' })}</div>- <div className="system-sm-medium flex items-center gap-1 text-text-secondary">+ <div className="mb-1 system-2xs-medium-uppercase text-text-tertiary">{t('resultPanel.tokens', { ns: 'runLog' })}</div>+ <div className="flex items-center gap-1 system-sm-medium text-text-secondary">{(status === 'running' || status === 'paused') && (<div className="h-2 w-20 animate-pulse rounded-xs bg-text-quaternary" />)}@@ -223,13 +223,13 @@ const StatusPanel: FC<ResultProps> = ({{status === 'paused' && (<><div className="my-2 h-[0.5px] bg-divider-deep" />- <div className="system-xs-medium flex flex-col gap-y-2">+ <div className="flex flex-col gap-y-2 system-xs-medium"><div className="flex flex-col gap-y-0.5"><div className="system-2xs-medium-uppercase text-text-tertiary">{t('nodes.humanInput.log.reason', { ns: 'workflow' })}</div>{pausedReasons.length > 0? pausedReasons.map(reason => (- <div className="system-xs-medium truncate text-text-secondary" key={reason}>{reason}</div>+ <div className="truncate system-xs-medium text-text-secondary" key={reason}>{reason}</div>)): (<div className="h-2 w-20 animate-pulse rounded-xs bg-text-quaternary" />diff --git a/web/app/components/workflow/run/tracing-panel.tsx b/web/app/components/workflow/run/tracing-panel.tsxindex 9ac2f08f62a..9b4295d1fe2 100644--- a/web/app/components/workflow/run/tracing-panel.tsx+++ b/web/app/components/workflow/run/tracing-panel.tsx@@ -1,6 +1,7 @@'use client'import type { FC } from 'react'import type { NodeTracing } from '@/types/workflow'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import {useCallback,@@ -8,7 +9,6 @@ import {} from 'react'import { useTranslation } from 'react-i18next'import formatNodeList from '@/app/components/workflow/run/utils/format-log'-import { cn } from '@/utils/classnames'import { getHoveredParallelId } from './get-hovered-parallel-id'import { useLogs } from './hooks'import NodePanel from './node'@@ -106,7 +106,7 @@ const TracingPanel: FC<TracingPanelProps> = ({? <span aria-hidden className="i-ri-arrow-down-s-line h-3 w-3" />: <span aria-hidden className="i-ri-menu-4-line h-3 w-3 text-text-tertiary" />}</button>- <div className="flex items-center text-text-secondary system-xs-semibold-uppercase">+ <div className="flex items-center system-xs-semibold-uppercase text-text-secondary"><span>{parallelDetail.parallelTitle}</span></div><div@@ -117,7 +117,7 @@ const TracingPanel: FC<TracingPanelProps> = ({</div><div className={`relative pl-2 ${isCollapsed ? 'hidden' : ''}`}><div className={cn(- 'absolute bottom-0 left-[5px] top-0 w-[2px]',+ 'absolute top-0 bottom-0 left-[5px] w-[2px]',isHovered ? 'bg-text-accent-secondary' : 'bg-divider-subtle',)}>diff --git a/web/app/components/workflow/shortcuts-name.tsx b/web/app/components/workflow/shortcuts-name.tsxindex 7c1fb2305f8..70084977e88 100644--- a/web/app/components/workflow/shortcuts-name.tsx+++ b/web/app/components/workflow/shortcuts-name.tsx@@ -1,5 +1,5 @@+import { cn } from '@langgenius/dify-ui/cn'import { memo } from 'react'-import { cn } from '@/utils/classnames'import { getKeyboardKeyNameBySystem } from './utils'type ShortcutsNameProps = {@@ -25,7 +25,7 @@ const ShortcutsName = ({<divkey={key}className={cn(- 'system-kbd flex h-4 min-w-4 items-center justify-center radius-xs px-1 capitalize',+ 'flex h-4 min-w-4 items-center justify-center rounded-sm px-1 system-kbd capitalize',bgColor === 'gray' && 'bg-components-kbd-bg-gray',bgColor === 'white' && 'bg-components-kbd-bg-white text-text-primary-on-surface',textColor === 'secondary' && 'text-text-tertiary',diff --git a/web/app/components/workflow/simple-node/index.tsx b/web/app/components/workflow/simple-node/index.tsxindex c0870dd2fcd..c039d9f7e09 100644--- a/web/app/components/workflow/simple-node/index.tsx+++ b/web/app/components/workflow/simple-node/index.tsx@@ -4,6 +4,7 @@ import type {import type {NodeProps,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {RiAlertFill,RiCheckboxCircleFill,@@ -25,7 +26,6 @@ import {import {NodeRunningStatus,} from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'type SimpleNodeProps = NodeProps@@ -94,7 +94,7 @@ const SimpleNode: FC<SimpleNodeProps> = ({)}<div className={cn(- 'flex items-center rounded-t-2xl px-3 pb-2 pt-3',+ 'flex items-center rounded-t-2xl px-3 pt-3 pb-2',)}><BlockIcon@@ -104,7 +104,7 @@ const SimpleNode: FC<SimpleNodeProps> = ({/><divtitle={data.title}- className="system-sm-semibold-uppercase mr-1 flex grow items-center truncate text-text-primary"+ className="mr-1 flex grow items-center truncate system-sm-semibold-uppercase text-text-primary"><div>{data.title}diff --git a/web/app/components/workflow/variable-inspect/display-content.tsx b/web/app/components/workflow/variable-inspect/display-content.tsxindex 8a340d208ba..2edd84d0de1 100644--- a/web/app/components/workflow/variable-inspect/display-content.tsx+++ b/web/app/components/workflow/variable-inspect/display-content.tsx@@ -1,6 +1,7 @@import type { VarType } from '../types'import type { ChunkInfo } from '@/app/components/rag-pipeline/components/chunk-card-list/types'import type { ParentMode } from '@/models/datasets'+import { cn } from '@langgenius/dify-ui/cn'import { RiBracesLine, RiEyeLine } from '@remixicon/react'import * as React from 'react'import { useMemo, useState } from 'react'@@ -11,7 +12,6 @@ import Textarea from '@/app/components/base/textarea'import { ChunkCardList } from '@/app/components/rag-pipeline/components/chunk-card-list'import SchemaEditor from '@/app/components/workflow/nodes/llm/components/json-schema-config-modal/schema-editor'import { ChunkingMode } from '@/models/datasets'-import { cn } from '@/utils/classnames'import { PreviewType, ViewMode } from './types'type DisplayContentProps = {@@ -52,15 +52,15 @@ const DisplayContent = (props: DisplayContentProps) => {}, [previewType, schemaType, jsonString])return (- <div className={cn('flex h-full flex-col radius-lg bg-components-input-bg-normal', isFocused && 'bg-components-input-bg-active outline-solid outline-1 outline-components-input-border-active', className)}>+ <div className={cn('flex h-full flex-col rounded-[10px] bg-components-input-bg-normal', isFocused && 'bg-components-input-bg-active outline-1 outline-components-input-border-active outline-solid', className)}><div className="flex shrink-0 items-center justify-end p-1">{previewType === PreviewType.Markdown && (- <div className="system-xs-semibold-uppercase flex grow items-center px-2 py-0.5 text-text-secondary">+ <div className="flex grow items-center px-2 py-0.5 system-xs-semibold-uppercase text-text-secondary">{previewType.toUpperCase()}</div>)}{previewType === PreviewType.Chunks && (- <div className="system-xs-semibold-uppercase flex grow items-center px-2 py-0.5 text-text-secondary">+ <div className="flex grow items-center px-2 py-0.5 system-xs-semibold-uppercase text-text-secondary">{varType.toUpperCase()}{schemaType ? `(${schemaType})` : ''}</div>@@ -79,7 +79,7 @@ const DisplayContent = (props: DisplayContentProps) => {className="shrink-0"/></div>- <div className="flex flex-1 overflow-auto rounded-b-[10px] pl-3 pr-1">+ <div className="flex flex-1 overflow-auto rounded-b-[10px] pr-1 pl-3">{viewMode === ViewMode.Code && (previewType === PreviewType.Markdown? (diff --git a/web/app/components/workflow/variable-inspect/empty.tsx b/web/app/components/workflow/variable-inspect/empty.tsxindex 59e33cdb02d..b456acc2228 100644--- a/web/app/components/workflow/variable-inspect/empty.tsx+++ b/web/app/components/workflow/variable-inspect/empty.tsx@@ -9,14 +9,14 @@ const Empty: FC = () => {return (<div className="flex h-full flex-col gap-3 rounded-xl bg-background-section p-8">- <div className="flex h-10 w-10 items-center justify-center radius-lg border-[0.5px] border-components-card-border bg-components-card-bg shadow-lg backdrop-blur-xs">+ <div className="flex h-10 w-10 items-center justify-center rounded-[10px] border-[0.5px] border-components-card-border bg-components-card-bg shadow-lg backdrop-blur-xs"><Variable02 className="h-5 w-5 text-text-accent" /></div><div className="flex flex-col gap-1"><div className="system-sm-semibold text-text-secondary">{t('debug.variableInspect.title', { ns: 'workflow' })}</div><div className="system-xs-regular text-text-tertiary">{t('debug.variableInspect.emptyTip', { ns: 'workflow' })}</div><a- className="system-xs-regular cursor-pointer text-text-accent"+ className="cursor-pointer system-xs-regular text-text-accent"href={docLink('/use-dify/debug/variable-inspect')}target="_blank"rel="noopener noreferrer"diff --git a/web/app/components/workflow/variable-inspect/group.tsx b/web/app/components/workflow/variable-inspect/group.tsxindex 5941ddae59b..7d942267863 100644--- a/web/app/components/workflow/variable-inspect/group.tsx+++ b/web/app/components/workflow/variable-inspect/group.tsx@@ -1,5 +1,6 @@import type { currentVarType } from './panel'import type { NodeWithVar, VarInInspect } from '@/types/workflow'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowRightSLine,RiDeleteBinLine,@@ -15,7 +16,6 @@ import Tooltip from '@/app/components/base/tooltip'import BlockIcon from '@/app/components/workflow/block-icon'import { VariableIconWithColor } from '@/app/components/workflow/nodes/_base/components/variable/variable-label'import { VarInInspectType } from '@/types/workflow'-import { cn } from '@/utils/classnames'import { useToolIcon } from '../hooks'type Props = {diff --git a/web/app/components/workflow/variable-inspect/index.tsx b/web/app/components/workflow/variable-inspect/index.tsxindex 01388b4005a..08314a1836a 100644--- a/web/app/components/workflow/variable-inspect/index.tsx+++ b/web/app/components/workflow/variable-inspect/index.tsx@@ -1,10 +1,10 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { debounce } from 'es-toolkit/compat'import {useCallback,useMemo,} from 'react'-import { cn } from '@/utils/classnames'import { useResizePanel } from '../nodes/_base/hooks/use-resize-panel'import { useStore } from '../store'import Panel from './panel'diff --git a/web/app/components/workflow/variable-inspect/large-data-alert.tsx b/web/app/components/workflow/variable-inspect/large-data-alert.tsxindex 183c79e7d74..47e05dd267e 100644--- a/web/app/components/workflow/variable-inspect/large-data-alert.tsx+++ b/web/app/components/workflow/variable-inspect/large-data-alert.tsx@@ -1,9 +1,9 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import { RiInformation2Fill } from '@remixicon/react'import * as React from 'react'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'type Props = {textHasNoExport?: boolean@@ -22,10 +22,10 @@ const LargeDataAlert: FC<Props> = ({<div className={cn('flex h-8 items-center justify-between rounded-lg border-[0.5px] border-components-panel-border bg-components-panel-bg-blur px-2 shadow-xs', className)}><div className="flex h-full w-0 grow items-center space-x-1"><RiInformation2Fill className="size-4 shrink-0 text-text-accent" />- <div className="system-xs-regular w-0 grow truncate text-text-primary">{text}</div>+ <div className="w-0 grow truncate system-xs-regular text-text-primary">{text}</div></div>{downloadUrl && (- <div className="system-xs-medium-uppercase ml-1 shrink-0 cursor-pointer text-text-accent">{t('debug.variableInspect.export', { ns: 'workflow' })}</div>+ <div className="ml-1 shrink-0 cursor-pointer system-xs-medium-uppercase text-text-accent">{t('debug.variableInspect.export', { ns: 'workflow' })}</div>)}</div>)diff --git a/web/app/components/workflow/variable-inspect/left.tsx b/web/app/components/workflow/variable-inspect/left.tsxindex b59096f338e..f3450cea138 100644--- a/web/app/components/workflow/variable-inspect/left.tsx+++ b/web/app/components/workflow/variable-inspect/left.tsx@@ -1,11 +1,11 @@import type { currentVarType } from './panel'import type { VarInInspect } from '@/types/workflow'+import { cn } from '@langgenius/dify-ui/cn'// import { useState } from 'react'import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'import { VarInInspectType } from '@/types/workflow'-import { cn } from '@/utils/classnames'import useCurrentVars from '../hooks/use-inspect-vars-crud'import { useNodesInteractions } from '../hooks/use-nodes-interactions'import { useStore } from '../store'diff --git a/web/app/components/workflow/variable-inspect/listening.tsx b/web/app/components/workflow/variable-inspect/listening.tsxindex 4cdc0f348d0..4559665ffae 100644--- a/web/app/components/workflow/variable-inspect/listening.tsx+++ b/web/app/components/workflow/variable-inspect/listening.tsx@@ -191,7 +191,7 @@ const Listening: FC<ListeningProps> = ({<buttontype="button"aria-label={t('nodes.triggerWebhook.debugUrlCopy', { ns: 'workflow' }) || ''}- className={`inline-flex items-center radius-sm border border-divider-regular bg-components-badge-white-to-dark px-1.5 py-[2px] font-mono text-[13px] leading-[18px] text-text-secondary transition-colors hover:bg-components-panel-on-panel-item-bg-hover focus:outline-hidden focus-visible:outline-2 focus-visible:outline-components-panel-border focus-visible:outline-solid ${debugUrlCopied ? 'bg-components-panel-on-panel-item-bg-hover text-text-primary' : ''}`}+ className={`inline-flex items-center rounded-md border border-divider-regular bg-components-badge-white-to-dark px-1.5 py-[2px] font-mono text-[13px] leading-[18px] text-text-secondary transition-colors hover:bg-components-panel-on-panel-item-bg-hover focus:outline-hidden focus-visible:outline-2 focus-visible:outline-components-panel-border focus-visible:outline-solid ${debugUrlCopied ? 'bg-components-panel-on-panel-item-bg-hover text-text-primary' : ''}`}onClick={() => {copy(webhookDebugUrl)setDebugUrlCopied(true)diff --git a/web/app/components/workflow/variable-inspect/panel.tsx b/web/app/components/workflow/variable-inspect/panel.tsxindex 5558b5ee38b..462f9ba4e10 100644--- a/web/app/components/workflow/variable-inspect/panel.tsx+++ b/web/app/components/workflow/variable-inspect/panel.tsx@@ -1,6 +1,7 @@import type { FC } from 'react'import type { NodeProps } from '../types'import type { VarInInspect } from '@/types/workflow'+import { cn } from '@langgenius/dify-ui/cn'import {RiCloseLine,} from '@remixicon/react'@@ -10,7 +11,6 @@ import ActionButton from '@/app/components/base/action-button'import { EVENT_WORKFLOW_STOP } from '@/app/components/workflow/variable-inspect/types'import { useEventEmitterContextContext } from '@/context/event-emitter'import { VarInInspectType } from '@/types/workflow'-import { cn } from '@/utils/classnames'import useCurrentVars from '../hooks/use-inspect-vars-crud'import useMatchSchemaType from '../nodes/_base/components/variable/use-match-schema-type'@@ -160,7 +160,7 @@ const Panel: FC = () => {if (isListening) {return (<div className={cn('flex h-full flex-col')}>- <div className="flex shrink-0 items-center justify-between pl-4 pr-2 pt-2">+ <div className="flex shrink-0 items-center justify-between pt-2 pr-2 pl-4"><div className="system-sm-semibold-uppercase text-text-primary">{t('debug.variableInspect.title', { ns: 'workflow' })}</div><ActionButton onClick={() => setShowVariableInspectPanel(false)}><RiCloseLine className="h-4 w-4" />@@ -178,7 +178,7 @@ const Panel: FC = () => {if (isEmpty) {return (<div className={cn('flex h-full flex-col')}>- <div className="flex shrink-0 items-center justify-between pl-4 pr-2 pt-2">+ <div className="flex shrink-0 items-center justify-between pt-2 pr-2 pl-4"><div className="system-sm-semibold-uppercase text-text-primary">{t('debug.variableInspect.title', { ns: 'workflow' })}</div><ActionButton onClick={() => setShowVariableInspectPanel(false)}><RiCloseLine className="h-4 w-4" />@@ -194,13 +194,13 @@ const Panel: FC = () => {return (<div className={cn('relative flex h-full')}>{/* left */}- {bottomPanelWidth < 488 && showLeftPanel && <div className="absolute left-0 top-0 h-full w-full" onClick={() => setShowLeftPanel(false)}></div>}+ {bottomPanelWidth < 488 && showLeftPanel && <div className="absolute top-0 left-0 h-full w-full" onClick={() => setShowLeftPanel(false)}></div>}<divclassName={cn('w-60 shrink-0 border-r border-divider-burn',bottomPanelWidth < 488? showLeftPanel- ? 'absolute left-0 top-0 z-10 h-full w-[217px] rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg shadow-lg backdrop-blur-xs'+ ? 'absolute top-0 left-0 z-10 h-full w-[217px] rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg shadow-lg backdrop-blur-xs': 'hidden': 'block',)}diff --git a/web/app/components/workflow/variable-inspect/right.tsx b/web/app/components/workflow/variable-inspect/right.tsxindex 0a9618454e2..10ca0804ea8 100644--- a/web/app/components/workflow/variable-inspect/right.tsx+++ b/web/app/components/workflow/variable-inspect/right.tsx@@ -1,5 +1,6 @@import type { currentVarType } from './panel'import type { GenRes } from '@/service/debug'+import { cn } from '@langgenius/dify-ui/cn'import {RiArrowGoBackLine,RiCloseLine,@@ -22,7 +23,6 @@ import { VariableIconWithColor } from '@/app/components/workflow/nodes/_base/comimport { useEventEmitterContextContext } from '@/context/event-emitter'import { AppModeEnum } from '@/types/app'import { VarInInspectType } from '@/types/workflow'-import { cn } from '@/utils/classnames'import GetCodeGeneratorResModal from '../../app/configuration/config/code-generator/get-code-generator-res'import { PROMPT_EDITOR_UPDATE_VALUE_BY_EVENT_EMITTER } from '../../base/prompt-editor/plugins/update-block'import { useNodesInteractions, useToolIcon } from '../hooks'@@ -192,12 +192,12 @@ const Right = ({size="xs"toolIcon={toolIcon}/>- <div className="system-sm-regular shrink-0 text-text-secondary">{currentNodeVar.title}</div>- <div className="system-sm-regular shrink-0 text-text-quaternary">/</div>+ <div className="shrink-0 system-sm-regular text-text-secondary">{currentNodeVar.title}</div>+ <div className="shrink-0 system-sm-regular text-text-quaternary">/</div></>)}- <div title={currentNodeVar.var.name} className="system-sm-semibold truncate text-text-secondary">{currentNodeVar.var.name}</div>- <div className="system-xs-medium ml-1 shrink-0 space-x-2 text-text-tertiary">+ <div title={currentNodeVar.var.name} className="truncate system-sm-semibold text-text-secondary">{currentNodeVar.var.name}</div>+ <div className="ml-1 shrink-0 space-x-2 system-xs-medium text-text-tertiary"><span>{`${currentNodeVar.var.value_type}${displaySchemaType}`}</span>{isTruncated && (<>@@ -240,7 +240,7 @@ const Right = ({)}{!isTruncated && currentNodeVar.var.edited && (<Badge>- <span className="ml-[2.5px] mr-[4.5px] h-[3px] w-[3px] rounded-sm bg-text-accent-secondary"></span>+ <span className="mr-[4.5px] ml-[2.5px] h-[3px] w-[3px] rounded-sm bg-text-accent-secondary"></span><span className="system-2xs-semibold-uupercase">{t('debug.variableInspect.edited', { ns: 'workflow' })}</span></Badge>)}diff --git a/web/app/components/workflow/variable-inspect/trigger.tsx b/web/app/components/workflow/variable-inspect/trigger.tsxindex 6588d21fbec..b61d424b327 100644--- a/web/app/components/workflow/variable-inspect/trigger.tsx+++ b/web/app/components/workflow/variable-inspect/trigger.tsx@@ -1,5 +1,6 @@import type { FC } from 'react'import type { CommonNodeType } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { RiLoader2Line, RiStopCircleFill } from '@remixicon/react'import { useMemo } from 'react'import { useTranslation } from 'react-i18next'@@ -8,7 +9,6 @@ import Tooltip from '@/app/components/base/tooltip'import { NodeRunningStatus, WorkflowRunningStatus } from '@/app/components/workflow/types'import { EVENT_WORKFLOW_STOP } from '@/app/components/workflow/variable-inspect/types'import { useEventEmitterContextContext } from '@/context/event-emitter'-import { cn } from '@/utils/classnames'import useCurrentVars from '../hooks/use-inspect-vars-crud'import { useNodesReadOnly } from '../hooks/use-workflow'import { useStore } from '../store'@@ -64,7 +64,7 @@ const VariableInspectTrigger: FC = () => {<div className={cn('flex items-center gap-1')}>{!isRunning && !currentVars.length && (<div- className={cn('system-2xs-semibold-uppercase flex h-5 cursor-pointer items-center gap-1 rounded-md border-[0.5px] border-effects-highlight bg-components-actionbar-bg px-2 text-text-tertiary shadow-lg backdrop-blur-xs hover:bg-background-default-hover', nodesReadOnly && 'cursor-not-allowed text-text-disabled hover:bg-transparent hover:text-text-disabled')}+ className={cn('flex h-5 cursor-pointer items-center gap-1 rounded-md border-[0.5px] border-effects-highlight bg-components-actionbar-bg px-2 system-2xs-semibold-uppercase text-text-tertiary shadow-lg backdrop-blur-xs hover:bg-background-default-hover', nodesReadOnly && 'cursor-not-allowed text-text-disabled hover:bg-transparent hover:text-text-disabled')}onClick={() => {if (getNodesReadOnly())return@@ -77,7 +77,7 @@ const VariableInspectTrigger: FC = () => {{!isRunning && currentVars.length > 0 && (<><div- className={cn('system-xs-medium flex h-6 cursor-pointer items-center gap-1 rounded-md border-[0.5px] border-effects-highlight bg-components-actionbar-bg px-2 text-text-accent shadow-lg backdrop-blur-xs hover:bg-components-actionbar-bg-accent', nodesReadOnly && 'cursor-not-allowed text-text-disabled hover:bg-transparent hover:text-text-disabled')}+ className={cn('flex h-6 cursor-pointer items-center gap-1 rounded-md border-[0.5px] border-effects-highlight bg-components-actionbar-bg px-2 system-xs-medium text-text-accent shadow-lg backdrop-blur-xs hover:bg-components-actionbar-bg-accent', nodesReadOnly && 'cursor-not-allowed text-text-disabled hover:bg-transparent hover:text-text-disabled')}onClick={() => {if (getNodesReadOnly())return@@ -87,7 +87,7 @@ const VariableInspectTrigger: FC = () => {{t('debug.variableInspect.trigger.cached', { ns: 'workflow' })}</div><div- className={cn('system-xs-medium flex h-6 cursor-pointer items-center rounded-md border-[0.5px] border-effects-highlight bg-components-actionbar-bg px-1 text-text-tertiary shadow-lg backdrop-blur-xs hover:bg-components-actionbar-bg-accent hover:text-text-accent', nodesReadOnly && 'cursor-not-allowed text-text-disabled hover:bg-transparent hover:text-text-disabled')}+ className={cn('flex h-6 cursor-pointer items-center rounded-md border-[0.5px] border-effects-highlight bg-components-actionbar-bg px-1 system-xs-medium text-text-tertiary shadow-lg backdrop-blur-xs hover:bg-components-actionbar-bg-accent hover:text-text-accent', nodesReadOnly && 'cursor-not-allowed text-text-disabled hover:bg-transparent hover:text-text-disabled')}onClick={() => {if (getNodesReadOnly())return@@ -101,7 +101,7 @@ const VariableInspectTrigger: FC = () => {{isRunning && (<><div- className="system-xs-medium flex h-6 cursor-pointer items-center gap-1 rounded-md border-[0.5px] border-effects-highlight bg-components-actionbar-bg px-2 text-text-accent shadow-lg backdrop-blur-xs hover:bg-components-actionbar-bg-accent"+ className="flex h-6 cursor-pointer items-center gap-1 rounded-md border-[0.5px] border-effects-highlight bg-components-actionbar-bg px-2 system-xs-medium text-text-accent shadow-lg backdrop-blur-xs hover:bg-components-actionbar-bg-accent"onClick={() => setShowVariableInspectPanel(true)}><RiLoader2Line className="h-4 w-4 animate-spin" />diff --git a/web/app/components/workflow/variable-inspect/value-content-sections.tsx b/web/app/components/workflow/variable-inspect/value-content-sections.tsxindex 4e619777a46..b1682ce990a 100644--- a/web/app/components/workflow/variable-inspect/value-content-sections.tsx+++ b/web/app/components/workflow/variable-inspect/value-content-sections.tsx@@ -1,6 +1,7 @@import type { FileEntity } from '@/app/components/base/file-uploader/types'import type { FileUploadConfigResponse } from '@/models/common'import type { VarInInspect } from '@/types/workflow'+import { cn } from '@langgenius/dify-ui/cn'import { FileUploaderInAttachmentWrapper } from '@/app/components/base/file-uploader'import { FILE_EXTS } from '@/app/components/base/prompt-editor/constants'import Textarea from '@/app/components/base/textarea'@@ -8,7 +9,6 @@ import ErrorMessage from '@/app/components/workflow/nodes/llm/components/json-scimport SchemaEditor from '@/app/components/workflow/nodes/llm/components/json-schema-config-modal/schema-editor'import { SupportUploadFileTypes } from '@/app/components/workflow/types'import { TransferMethod } from '@/types/app'-import { cn } from '@/utils/classnames'import { PreviewMode } from '../../base/features/types'import BoolValue from '../panel/chat-variable-panel/components/bool-value'import DisplayContent from './display-content'@@ -32,7 +32,7 @@ export const TextEditorSection = ({}: TextEditorSectionProps) => {return (<>- {isTruncated && <LargeDataAlert className="absolute left-3 right-3 top-1" />}+ {isTruncated && <LargeDataAlert className="absolute top-1 right-3 left-3" />}{currentVar.value_type === 'string'? (<DisplayContentdiff --git a/web/app/components/workflow/variable-inspect/value-content.tsx b/web/app/components/workflow/variable-inspect/value-content.tsxindex 43111fde290..aaff853fc6f 100644--- a/web/app/components/workflow/variable-inspect/value-content.tsx+++ b/web/app/components/workflow/variable-inspect/value-content.tsx@@ -1,10 +1,10 @@import type { VarInInspect } from '@/types/workflow'+import { cn } from '@langgenius/dify-ui/cn'import { useDebounceFn } from 'ahooks'import * as React from 'react'import { useEffect, useMemo, useRef, useState } from 'react'import { getProcessedFiles } from '@/app/components/base/file-uploader/utils'import { useStore } from '@/app/components/workflow/store'-import { cn } from '@/utils/classnames'import BoolValue from '../panel/chat-variable-panel/components/bool-value'import {BoolArraySection,diff --git a/web/app/components/workflow/workflow-preview/components/error-handle-on-node.tsx b/web/app/components/workflow/workflow-preview/components/error-handle-on-node.tsxindex b310d0495be..eabe143e88f 100644--- a/web/app/components/workflow/workflow-preview/components/error-handle-on-node.tsx+++ b/web/app/components/workflow/workflow-preview/components/error-handle-on-node.tsx@@ -1,10 +1,10 @@import type { Node } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import { useEffect } from 'react'import { useTranslation } from 'react-i18next'import { useUpdateNodeInternals } from 'reactflow'import { ErrorHandleTypeEnum } from '@/app/components/workflow/nodes/_base/components/error-handle/types'import { NodeRunningStatus } from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'import { NodeSourceHandle } from './node-handle'type ErrorHandleOnNodeProps = Pick<Node, 'id' | 'data'>@@ -25,7 +25,7 @@ const ErrorHandleOnNode = ({return nullreturn (- <div className="relative px-3 pb-2 pt-1">+ <div className="relative px-3 pt-1 pb-2"><div className={cn('relative flex h-6 items-center justify-between rounded-md bg-workflow-block-parma-bg px-[5px]',data._runningStatus === NodeRunningStatus.Exception && 'border-[0.5px] border-components-badge-status-light-warning-halo bg-state-warning-hover',diff --git a/web/app/components/workflow/workflow-preview/components/node-handle.tsx b/web/app/components/workflow/workflow-preview/components/node-handle.tsxindex c148c4d2702..7c9c8f39f03 100644--- a/web/app/components/workflow/workflow-preview/components/node-handle.tsx+++ b/web/app/components/workflow/workflow-preview/components/node-handle.tsx@@ -1,4 +1,5 @@import type { Node } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {memo,} from 'react'@@ -9,7 +10,6 @@ import {import {BlockEnum,} from '@/app/components/workflow/types'-import { cn } from '@/utils/classnames'type NodeHandleProps = {handleId: string@@ -31,7 +31,7 @@ export const NodeTargetHandle = memo(({position={Position.Left}className={cn('z-1 h-4! w-4! rounded-none! border-none! bg-transparent! outline-hidden!',- 'after:absolute after:left-1.5 after:top-1 after:h-2 after:w-0.5 after:bg-workflow-link-line-handle',+ 'after:absolute after:top-1 after:left-1.5 after:h-2 after:w-0.5 after:bg-workflow-link-line-handle','transition-all hover:scale-125',!connected && 'after:opacity-0',(data.type === BlockEnum.Start@@ -61,7 +61,7 @@ export const NodeSourceHandle = memo(({position={Position.Right}className={cn('group/handle z-1 h-4! w-4! rounded-none! border-none! bg-transparent! outline-hidden!',- 'after:absolute after:right-1.5 after:top-1 after:h-2 after:w-0.5 after:bg-workflow-link-line-handle',+ 'after:absolute after:top-1 after:right-1.5 after:h-2 after:w-0.5 after:bg-workflow-link-line-handle','transition-all hover:scale-125',!connected && 'after:opacity-0',handleClassName,diff --git a/web/app/components/workflow/workflow-preview/components/nodes/base.tsx b/web/app/components/workflow/workflow-preview/components/nodes/base.tsxindex 32af00a7cf8..34c8d753ce6 100644--- a/web/app/components/workflow/workflow-preview/components/nodes/base.tsx+++ b/web/app/components/workflow/workflow-preview/components/nodes/base.tsx@@ -5,6 +5,7 @@ import type { IterationNodeType } from '@/app/components/workflow/nodes/iteratioimport type {NodeProps,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {cloneElement,memo,@@ -16,7 +17,6 @@ import {BlockEnum,} from '@/app/components/workflow/types'import { hasErrorHandleNode } from '@/app/components/workflow/utils'-import { cn } from '@/utils/classnames'import ErrorHandleOnNode from '../error-handle-on-node'import {NodeSourceHandle,@@ -58,7 +58,7 @@ const BaseCard = ({}}><div className={cn(- 'flex items-center rounded-t-2xl px-3 pb-2 pt-3',+ 'flex items-center rounded-t-2xl px-3 pt-3 pb-2',)}><NodeTargetHandle@@ -84,7 +84,7 @@ const BaseCard = ({/><divtitle={data.title}- className="system-sm-semibold-uppercase mr-1 flex grow items-center truncate text-text-primary"+ className="mr-1 flex grow items-center truncate system-sm-semibold-uppercase text-text-primary"><div>{data.title}@@ -100,7 +100,7 @@ const BaseCard = ({</div>)}>- <div className="system-2xs-medium-uppercase ml-1 flex items-center justify-center rounded-[5px] border border-text-warning px-[5px] py-[3px] text-text-warning ">+ <div className="ml-1 flex items-center justify-center rounded-[5px] border border-text-warning px-[5px] py-[3px] system-2xs-medium-uppercase text-text-warning">{t('nodes.iteration.parallelModeUpper', { ns: 'workflow' })}</div></Tooltip>@@ -115,7 +115,7 @@ const BaseCard = ({}{(data.type === BlockEnum.Iteration || data.type === BlockEnum.Loop) && children && (- <div className="h-[calc(100%-42px)] w-full grow pb-1 pl-1 pr-1">+ <div className="h-[calc(100%-42px)] w-full grow pr-1 pb-1 pl-1">{cloneElement(children, { id, data })}</div>)@@ -130,7 +130,7 @@ const BaseCard = ({}{data.desc && data.type !== BlockEnum.Iteration && data.type !== BlockEnum.Loop && (- <div className="system-xs-regular whitespace-pre-line wrap-break-word px-3 pb-2 pt-1 text-text-tertiary">+ <div className="px-3 pt-1 pb-2 system-xs-regular wrap-break-word whitespace-pre-line text-text-tertiary">{data.desc}</div>)diff --git a/web/app/components/workflow/workflow-preview/components/nodes/iteration/node.tsx b/web/app/components/workflow/workflow-preview/components/nodes/iteration/node.tsxindex 55c7afb8909..ae9a86cab72 100644--- a/web/app/components/workflow/workflow-preview/components/nodes/iteration/node.tsx+++ b/web/app/components/workflow/workflow-preview/components/nodes/iteration/node.tsx@@ -1,6 +1,7 @@import type { FC } from 'react'import type { IterationNodeType } from '@/app/components/workflow/nodes/iteration/types'import type { NodeProps } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {memo,} from 'react'@@ -8,7 +9,6 @@ import {Background,useViewport,} from 'reactflow'-import { cn } from '@/utils/classnames'const Node: FC<NodeProps<IterationNodeType>> = ({id,diff --git a/web/app/components/workflow/workflow-preview/components/nodes/loop/node.tsx b/web/app/components/workflow/workflow-preview/components/nodes/loop/node.tsxindex 930a85be1b2..9ad06da20a5 100644--- a/web/app/components/workflow/workflow-preview/components/nodes/loop/node.tsx+++ b/web/app/components/workflow/workflow-preview/components/nodes/loop/node.tsx@@ -1,6 +1,7 @@import type { FC } from 'react'import type { LoopNodeType } from '@/app/components/workflow/nodes/loop/types'import type { NodeProps } from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {memo,useEffect,@@ -10,7 +11,6 @@ import {useNodesInitialized,useViewport,} from 'reactflow'-import { cn } from '@/utils/classnames'import { useNodeLoopInteractions } from './hooks'const Node: FC<NodeProps<LoopNodeType>> = ({diff --git a/web/app/components/workflow/workflow-preview/components/note-node/index.tsx b/web/app/components/workflow/workflow-preview/components/note-node/index.tsxindex 3b6fcbd3603..38dee9d6d07 100644--- a/web/app/components/workflow/workflow-preview/components/note-node/index.tsx+++ b/web/app/components/workflow/workflow-preview/components/note-node/index.tsx@@ -1,5 +1,6 @@import type { NodeProps } from 'reactflow'import type { NoteNodeType } from '@/app/components/workflow/note-node/types'+import { cn } from '@langgenius/dify-ui/cn'import {memo,useRef,@@ -10,7 +11,6 @@ import {NoteEditor,NoteEditorContextProvider,} from '@/app/components/workflow/note-node/note-editor'-import { cn } from '@/utils/classnames'const NoteNode = ({data,diff --git a/web/app/components/workflow/workflow-preview/components/zoom-in-out.tsx b/web/app/components/workflow/workflow-preview/components/zoom-in-out.tsxindex 5ff89717aa3..7a81bccc501 100644--- a/web/app/components/workflow/workflow-preview/components/zoom-in-out.tsx+++ b/web/app/components/workflow/workflow-preview/components/zoom-in-out.tsx@@ -1,4 +1,5 @@import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import {RiZoomInLine,RiZoomOutLine,@@ -22,7 +23,6 @@ import {} from '@/app/components/base/portal-to-follow-elem'import TipPopup from '@/app/components/workflow/operator/tip-popup'import ShortcutsName from '@/app/components/workflow/shortcuts-name'-import { cn } from '@/utils/classnames'enum ZoomType {zoomIn = 'zoomIn',@@ -140,7 +140,7 @@ const ZoomInOut: FC = () => {<RiZoomOutLine className="h-4 w-4 text-text-tertiary hover:text-text-secondary" /></div></TipPopup>- <div onClick={handleTrigger} className={cn('system-sm-medium w-[34px] text-text-tertiary hover:text-text-secondary')}>+ <div onClick={handleTrigger} className={cn('w-[34px] system-sm-medium text-text-tertiary hover:text-text-secondary')}>{Number.parseFloat(`${zoom * 100}`).toFixed(0)}%</div>@@ -179,7 +179,7 @@ const ZoomInOut: FC = () => {options.map(option => (<divkey={option.key}- className="system-md-regular flex h-8 cursor-pointer items-center justify-between space-x-1 rounded-lg py-1.5 pl-3 pr-2 text-text-secondary hover:bg-state-base-hover"+ className="flex h-8 cursor-pointer items-center justify-between space-x-1 rounded-lg py-1.5 pr-2 pl-3 system-md-regular text-text-secondary hover:bg-state-base-hover"onClick={() => handleZoom(option.key)}><span>{option.text}</span>diff --git a/web/app/components/workflow/workflow-preview/index.tsx b/web/app/components/workflow/workflow-preview/index.tsxindex 3ce11be162d..1a2b0419ddf 100644--- a/web/app/components/workflow/workflow-preview/index.tsx+++ b/web/app/components/workflow/workflow-preview/index.tsx@@ -9,6 +9,7 @@ import type {Edge,Node,} from '@/app/components/workflow/types'+import { cn } from '@langgenius/dify-ui/cn'import {useCallback,useState,@@ -35,7 +36,6 @@ import {initialEdges,initialNodes,} from '@/app/components/workflow/utils/workflow-init'-import { cn } from '@/utils/classnames'import CustomEdge from './components/custom-edge'import CustomNode from './components/nodes'import IterationStartNode from './components/nodes/iteration-start'diff --git a/web/app/education-apply/role-selector.tsx b/web/app/education-apply/role-selector.tsxindex 7b3b64936ae..35e7c0644c2 100644--- a/web/app/education-apply/role-selector.tsx+++ b/web/app/education-apply/role-selector.tsx@@ -1,5 +1,5 @@+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'-import { cn } from '@/utils/classnames'type RoleSelectorProps = {onChange: (value: string) => void@@ -32,13 +32,13 @@ const RoleSelector = ({options.map(option => (<divkey={option.key}- className="system-md-regular mr-6 flex h-5 cursor-pointer items-center text-text-primary"+ className="mr-6 flex h-5 cursor-pointer items-center system-md-regular text-text-primary"onClick={() => onChange(option.key)}><divclassName={cn('mr-2 h-4 w-4 rounded-full border border-components-radio-border bg-components-radio-bg shadow-xs',- option.key === value && 'border-[5px] border-components-radio-border-checked ',+ option.key === value && 'border-[5px] border-components-radio-border-checked',)}></div>diff --git a/web/app/forgot-password/ChangePasswordForm.tsx b/web/app/forgot-password/ChangePasswordForm.tsxindex 4d859eddafe..bf262181a99 100644--- a/web/app/forgot-password/ChangePasswordForm.tsx+++ b/web/app/forgot-password/ChangePasswordForm.tsx@@ -1,5 +1,6 @@'use client'import { CheckCircleIcon } from '@heroicons/react/24/solid'+import { cn } from '@langgenius/dify-ui/cn'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'import Loading from '@/app/components/base/loading'@@ -9,7 +10,6 @@ import { validPassword } from '@/config'import { useSearchParams } from '@/next/navigation'import { changePasswordWithToken } from '@/service/common'import { useVerifyForgotPasswordToken } from '@/service/use-common'-import { cn } from '@/utils/classnames'import { basePath } from '@/utils/var'import Input from '../components/base/input'@@ -82,7 +82,7 @@ const ChangePasswordForm = () => {{(isTokenMissing || (verifyTokenRes && !verifyTokenRes.is_valid)) && (<div className="flex flex-col md:w-[400px]"><div className="mx-auto w-full">- <div className="mb-3 flex h-20 w-20 items-center justify-center radius-3xl border border-divider-regular bg-components-option-card-option-bg p-5 text-[40px] font-bold shadow-lg">🤷♂️</div>+ <div className="mb-3 flex h-20 w-20 items-center justify-center rounded-[20px] border border-divider-regular bg-components-option-card-option-bg p-5 text-[40px] font-bold shadow-lg">🤷♂️</div><h2 className="text-[32px] font-bold text-text-primary">{t('invalid', { ns: 'login' })}</h2></div><div className="mx-auto mt-6 w-full">@@ -150,7 +150,7 @@ const ChangePasswordForm = () => {{verifyTokenRes && verifyTokenRes.is_valid && showSuccess && (<div className="flex flex-col md:w-[400px]"><div className="mx-auto w-full">- <div className="mb-3 flex h-20 w-20 items-center justify-center radius-3xl border border-divider-regular bg-components-option-card-option-bg p-5 text-[40px] font-bold shadow-lg">+ <div className="mb-3 flex h-20 w-20 items-center justify-center rounded-[20px] border border-divider-regular bg-components-option-card-option-bg p-5 text-[40px] font-bold shadow-lg"><CheckCircleIcon className="h-10 w-10 text-[#039855]" /></div><h2 className="text-[32px] font-bold text-text-primary">diff --git a/web/app/forgot-password/page.tsx b/web/app/forgot-password/page.tsxindex 7014b9e5b6c..b2ac8d26402 100644--- a/web/app/forgot-password/page.tsx+++ b/web/app/forgot-password/page.tsx@@ -1,10 +1,10 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import ChangePasswordForm from '@/app/forgot-password/ChangePasswordForm'import { useGlobalPublicStore } from '@/context/global-public-context'import useDocumentTitle from '@/hooks/use-document-title'import { useSearchParams } from '@/next/navigation'-import { cn } from '@/utils/classnames'import Header from '../signin/_header'import ForgotPasswordForm from './ForgotPasswordForm'diff --git a/web/app/init/page.tsx b/web/app/init/page.tsxindex 7c1d849bdd8..e6dc3ebec0b 100644--- a/web/app/init/page.tsx+++ b/web/app/init/page.tsx@@ -1,5 +1,5 @@+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'import InitPasswordPopup from './InitPasswordPopup'const Install = () => {diff --git a/web/app/install/installForm.tsx b/web/app/install/installForm.tsxindex 268471a12b3..c0685485613 100644--- a/web/app/install/installForm.tsx+++ b/web/app/install/installForm.tsx@@ -1,8 +1,9 @@'use client'import type { InitValidateStatusResponse, SetupStatusResponse } from '@/models/common'+import { cn } from '@langgenius/dify-ui/cn'import { useStore } from '@tanstack/react-form'-import * as React from 'react'+import * as React from 'react'import { useEffect } from 'react'import { useTranslation } from 'react-i18next'import * as z from 'zod'@@ -12,12 +13,11 @@ import Input from '@/app/components/base/input'import { Button } from '@/app/components/base/ui/button'import { validPassword } from '@/config'import { LICENSE_LINK } from '@/constants/link'-import useDocumentTitle from '@/hooks/use-document-title'+import useDocumentTitle from '@/hooks/use-document-title'import Link from '@/next/link'import { useRouter } from '@/next/navigation'import { fetchInitValidateStatus, fetchSetupStatus, login, setup } from '@/service/common'-import { cn } from '@/utils/classnames'import { encryptPassword as encodePassword } from '@/utils/encryption'import Loading from '../components/base/loading'diff --git a/web/app/install/page.tsx b/web/app/install/page.tsxindex db30d5bc5a5..b5d92a3298e 100644--- a/web/app/install/page.tsx+++ b/web/app/install/page.tsx@@ -1,7 +1,7 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'import { useGlobalPublicStore } from '@/context/global-public-context'-import { cn } from '@/utils/classnames'import Header from '../signin/_header'import InstallForm from './installForm'diff --git a/web/app/reset-password/layout.tsx b/web/app/reset-password/layout.tsxindex d9b665501d7..e9909fe4386 100644--- a/web/app/reset-password/layout.tsx+++ b/web/app/reset-password/layout.tsx@@ -1,7 +1,7 @@'use client'-import { useGlobalPublicStore } from '@/context/global-public-context'+import { cn } from '@langgenius/dify-ui/cn'-import { cn } from '@/utils/classnames'+import { useGlobalPublicStore } from '@/context/global-public-context'import Header from '../signin/_header'export default function SignInLayout({ children }: any) {@@ -24,7 +24,7 @@ export default function SignInLayout({ children }: any) {</div></div>{!systemFeatures.branding.enabled && (- <div className="system-xs-regular px-8 py-6 text-text-tertiary">+ <div className="px-8 py-6 system-xs-regular text-text-tertiary">©{' '}{new Date().getFullYear()}diff --git a/web/app/reset-password/set-password/page.tsx b/web/app/reset-password/set-password/page.tsxindex e40e1e5e6c8..7277b6d30c6 100644--- a/web/app/reset-password/set-password/page.tsx+++ b/web/app/reset-password/set-password/page.tsx@@ -1,4 +1,5 @@'use client'+import { cn } from '@langgenius/dify-ui/cn'import { RiCheckboxCircleFill } from '@remixicon/react'import { useCountDown } from 'ahooks'import { useCallback, useState } from 'react'@@ -9,7 +10,6 @@ import { toast } from '@/app/components/base/ui/toast'import { validPassword } from '@/config'import { useRouter, useSearchParams } from '@/next/navigation'import { changePasswordWithToken } from '@/service/common'-import { cn } from '@/utils/classnames'const ChangePasswordForm = () => {const { t } = useTranslation()diff --git a/web/app/signin/components/social-auth.tsx b/web/app/signin/components/social-auth.tsxindex 0e3883ea731..6eb9d62703b 100644--- a/web/app/signin/components/social-auth.tsx+++ b/web/app/signin/components/social-auth.tsx@@ -1,9 +1,9 @@+import { cn } from '@langgenius/dify-ui/cn'import { useTranslation } from 'react-i18next'import { Button } from '@/app/components/base/ui/button'import { API_PREFIX } from '@/config'import { useSearchParams } from '@/next/navigation'import { getPurifyHref } from '@/utils'-import { cn } from '@/utils/classnames'import style from '../page.module.css'type SocialAuthProps = {diff --git a/web/app/signin/layout.tsx b/web/app/signin/layout.tsxindex 4a1a2f4f586..ed32727ae2c 100644--- a/web/app/signin/layout.tsx+++ b/web/app/signin/layout.tsx@@ -1,8 +1,8 @@'use client'-import { useGlobalPublicStore } from '@/context/global-public-context'+import { cn } from '@langgenius/dify-ui/cn'+import { useGlobalPublicStore } from '@/context/global-public-context'import useDocumentTitle from '@/hooks/use-document-title'-import { cn } from '@/utils/classnames'import Header from './_header'export default function SignInLayout({ children }: any) {@@ -19,7 +19,7 @@ export default function SignInLayout({ children }: any) {</div></div>{systemFeatures.branding.enabled === false && (- <div className="system-xs-regular px-8 py-6 text-text-tertiary">+ <div className="px-8 py-6 system-xs-regular text-text-tertiary">©{' '}{new Date().getFullYear()}diff --git a/web/app/signin/normal-form.tsx b/web/app/signin/normal-form.tsxindex 18887b0c9ba..4fd0eabf665 100644--- a/web/app/signin/normal-form.tsx+++ b/web/app/signin/normal-form.tsx@@ -1,3 +1,4 @@+import { cn } from '@langgenius/dify-ui/cn'import { RiContractLine, RiDoorLockLine, RiErrorWarningFill } from '@remixicon/react'import * as React from 'react'import { useCallback, useEffect, useState } from 'react'@@ -10,7 +11,6 @@ import { useRouter, useSearchParams } from '@/next/navigation'import { invitationCheck } from '@/service/common'import { useIsLogin } from '@/service/use-common'import { LicenseStatus } from '@/types/feature'-import { cn } from '@/utils/classnames'import Loading from '../components/base/loading'import MailAndCodeAuth from './components/mail-and-code-auth'import MailAndPasswordAuth from './components/mail-and-password-auth'diff --git a/web/app/signin/split.tsx b/web/app/signin/split.tsxindex 370f108421c..708baac003a 100644--- a/web/app/signin/split.tsx+++ b/web/app/signin/split.tsx@@ -1,7 +1,7 @@'use client'import type { FC } from 'react'+import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'-import { cn } from '@/utils/classnames'type Props = {className?: stringdiff --git a/web/app/signup/layout.tsx b/web/app/signup/layout.tsxindex 6728b661156..16c5fcefd2a 100644--- a/web/app/signup/layout.tsx+++ b/web/app/signup/layout.tsx@@ -1,9 +1,9 @@'use client'-import Header from '@/app/signin/_header'+import { cn } from '@langgenius/dify-ui/cn'+import Header from '@/app/signin/_header'import { useGlobalPublicStore } from '@/context/global-public-context'import useDocumentTitle from '@/hooks/use-document-title'-import { cn } from '@/utils/classnames'export default function RegisterLayout({ children }: any) {const { systemFeatures } = useGlobalPublicStore()@@ -19,7 +19,7 @@ export default function RegisterLayout({ children }: any) {</div></div>{systemFeatures.branding.enabled === false && (- <div className="system-xs-regular px-8 py-6 text-text-tertiary">+ <div className="px-8 py-6 system-xs-regular text-text-tertiary">©{' '}{new Date().getFullYear()}diff --git a/web/app/signup/set-password/page.tsx b/web/app/signup/set-password/page.tsxindex 4a662e0623e..ffecd0bc0cb 100644--- a/web/app/signup/set-password/page.tsx+++ b/web/app/signup/set-password/page.tsx@@ -1,5 +1,6 @@'use client'import type { MailRegisterResponse } from '@/service/use-common'+import { cn } from '@langgenius/dify-ui/cn'import Cookies from 'js-cookie'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -10,7 +11,6 @@ import { toast } from '@/app/components/base/ui/toast'import { validPassword } from '@/config'import { useRouter, useSearchParams } from '@/next/navigation'import { useMailRegister } from '@/service/use-common'-import { cn } from '@/utils/classnames'import { rememberCreateAppExternalAttribution } from '@/utils/create-app-tracking'import { sendGAEvent } from '@/utils/gtag'diff --git a/web/app/styles/globals.css b/web/app/styles/globals.cssindex ec5dc86a899..17a44fd1f03 100644--- a/web/app/styles/globals.css+++ b/web/app/styles/globals.css@@ -1,14 +1,12 @@@import './preflight.css' layer(base);-@import '../../themes/light.css' layer(base);-@import '../../themes/dark.css' layer(base);+@import '@langgenius/dify-ui/styles.css';@import '../../themes/manual-light.css' layer(base);@import '../../themes/manual-dark.css' layer(base);@import './monaco-sticky-fix.css' layer(base);@import '../components/base/action-button/index.css';@import '../components/base/badge/index.css';-@import '../components/base/modal/index.css' layer(base);@import '../components/base/premium-badge/index.css';@import '../components/base/segmented-control/index.css';@@ -34,709 +32,6 @@}}-@utility system-kbd {- /* font define start */- font-size: 12px;- font-weight: 500;- line-height: 16px;-- /* border radius end */-}--@utility system-2xs-regular-uppercase {- font-size: 10px;- font-weight: 400;- text-transform: uppercase;- line-height: 12px;-- /* border radius end */-}--@utility system-2xs-regular {- font-size: 10px;- font-weight: 400;- line-height: 12px;-- /* border radius end */-}--@utility system-2xs-medium {- font-size: 10px;- font-weight: 500;- line-height: 12px;-- /* border radius end */-}--@utility system-2xs-medium-uppercase {- font-size: 10px;- font-weight: 500;- text-transform: uppercase;- line-height: 12px;-- /* border radius end */-}--@utility system-2xs-semibold-uppercase {- font-size: 10px;- font-weight: 600;- text-transform: uppercase;- line-height: 12px;-- /* border radius end */-}--@utility system-xs-regular {- font-size: 12px;- font-weight: 400;- line-height: 16px;-- /* border radius end */-}--@utility system-xs-regular-uppercase {- font-size: 12px;- font-weight: 400;- text-transform: uppercase;- line-height: 16px;-- /* border radius end */-}--@utility system-xs-medium {- font-size: 12px;- font-weight: 500;- line-height: 16px;-- /* border radius end */-}--@utility system-xs-medium-uppercase {- font-size: 12px;- font-weight: 500;- text-transform: uppercase;- line-height: 16px;-- /* border radius end */-}--@utility system-xs-semibold {- font-size: 12px;- font-weight: 600;- line-height: 16px;-- /* border radius end */-}--@utility system-xs-semibold-uppercase {- font-size: 12px;- font-weight: 600;- text-transform: uppercase;- line-height: 16px;-- /* border radius end */-}--@utility system-sm-regular {- font-size: 13px;- font-weight: 400;- line-height: 16px;-- /* border radius end */-}--@utility system-sm-medium {- font-size: 13px;- font-weight: 500;- line-height: 16px;-- /* border radius end */-}--@utility system-sm-medium-uppercase {- font-size: 13px;- font-weight: 500;- text-transform: uppercase;- line-height: 16px;-- /* border radius end */-}--@utility system-sm-semibold {- font-size: 13px;- font-weight: 600;- line-height: 16px;-- /* border radius end */-}--@utility system-sm-semibold-uppercase {- font-size: 13px;- font-weight: 600;- text-transform: uppercase;- line-height: 16px;-- /* border radius end */-}--@utility system-md-regular {- font-size: 14px;- font-weight: 400;- line-height: 20px;-- /* border radius end */-}--@utility system-md-medium {- font-size: 14px;- font-weight: 500;- line-height: 20px;-- /* border radius end */-}--@utility system-md-semibold {- font-size: 14px;- font-weight: 600;- line-height: 20px;-- /* border radius end */-}--@utility system-md-semibold-uppercase {- font-size: 14px;- font-weight: 600;- text-transform: uppercase;- line-height: 20px;-- /* border radius end */-}--@utility system-xl-regular {- font-size: 16px;- font-weight: 400;- line-height: 24px;-- /* border radius end */-}--@utility system-xl-medium {- font-size: 16px;- font-weight: 500;- line-height: 24px;-- /* border radius end */-}--@utility system-xl-semibold {- font-size: 16px;- font-weight: 600;- line-height: 24px;-- /* border radius end */-}--@utility code-xs-regular {- font-size: 12px;- font-weight: 400;- line-height: 1.5;-- /* border radius end */-}--@utility code-xs-semibold {- font-size: 12px;- font-weight: 600;- line-height: 1.5;-- /* border radius end */-}--@utility code-sm-regular {- font-size: 13px;- font-weight: 400;- line-height: 1.5;-- /* border radius end */-}--@utility code-sm-semibold {- font-size: 13px;- font-weight: 600;- line-height: 1.5;-- /* border radius end */-}--@utility code-md-regular {- font-size: 14px;- font-weight: 400;- line-height: 1.5;-- /* border radius end */-}--@utility code-md-semibold {- font-size: 14px;- font-weight: 600;- line-height: 1.5;-- /* border radius end */-}--@utility body-xs-light {- font-size: 12px;- font-weight: 300;- line-height: 16px;-- /* border radius end */-}--@utility body-xs-regular {- font-size: 12px;- font-weight: 400;- line-height: 16px;-- /* border radius end */-}--@utility body-xs-medium {- font-size: 12px;- font-weight: 500;- line-height: 16px;-- /* border radius end */-}--@utility body-sm-light {- font-size: 13px;- font-weight: 300;- line-height: 16px;-- /* border radius end */-}--@utility body-sm-regular {- font-size: 13px;- font-weight: 400;- line-height: 16px;-- /* border radius end */-}--@utility body-sm-medium {- font-size: 13px;- font-weight: 500;- line-height: 16px;-- /* border radius end */-}--@utility body-md-light {- font-size: 14px;- font-weight: 300;- line-height: 20px;-- /* border radius end */-}--@utility body-md-regular {- font-size: 14px;- font-weight: 400;- line-height: 20px;-- /* border radius end */-}--@utility body-md-medium {- font-size: 14px;- font-weight: 500;- line-height: 20px;-- /* border radius end */-}--@utility body-lg-light {- font-size: 15px;- font-weight: 300;- line-height: 20px;-- /* border radius end */-}--@utility body-lg-regular {- font-size: 15px;- font-weight: 400;- line-height: 20px;-- /* border radius end */-}--@utility body-lg-medium {- font-size: 15px;- font-weight: 500;- line-height: 20px;-- /* border radius end */-}--@utility body-xl-regular {- font-size: 16px;- font-weight: 400;- line-height: 24px;-- /* border radius end */-}--@utility body-xl-medium {- font-size: 16px;- font-weight: 500;- line-height: 24px;-- /* border radius end */-}--@utility body-xl-light {- font-size: 16px;- font-weight: 300;- line-height: 24px;-- /* border radius end */-}--@utility body-2xl-light {- font-size: 18px;- font-weight: 300;- line-height: 1.5;-- /* border radius end */-}--@utility body-2xl-regular {- font-size: 18px;- font-weight: 400;- line-height: 1.5;-- /* border radius end */-}--@utility body-2xl-medium {- font-size: 18px;- font-weight: 500;- line-height: 1.5;-- /* border radius end */-}--@utility title-xs-semi-bold {- font-size: 12px;- font-weight: 600;- line-height: 16px;-- /* border radius end */-}--@utility title-xs-bold {- font-size: 12px;- font-weight: 700;- line-height: 16px;-- /* border radius end */-}--@utility title-sm-semi-bold {- font-size: 13px;- font-weight: 600;- line-height: 16px;-- /* border radius end */-}--@utility title-sm-bold {- font-size: 13px;- font-weight: 700;- line-height: 16px;-- /* border radius end */-}--@utility title-md-semi-bold {- font-size: 14px;- font-weight: 600;- line-height: 20px;-- /* border radius end */-}--@utility title-md-bold {- font-size: 14px;- font-weight: 700;- line-height: 20px;-- /* border radius end */-}--@utility title-lg-semi-bold {- font-size: 15px;- font-weight: 600;- line-height: 1.2;-- /* border radius end */-}--@utility title-lg-bold {- font-size: 15px;- font-weight: 700;- line-height: 1.2;-- /* border radius end */-}--@utility title-xl-semi-bold {- font-size: 16px;- font-weight: 600;- line-height: 1.2;-- /* border radius end */-}--@utility title-xl-bold {- font-size: 16px;- font-weight: 700;- line-height: 1.2;-- /* border radius end */-}--@utility title-2xl-semi-bold {- font-size: 18px;- font-weight: 600;- line-height: 1.2;-- /* border radius end */-}--@utility title-2xl-bold {- font-size: 18px;- font-weight: 700;- line-height: 1.2;-- /* border radius end */-}--@utility title-3xl-semi-bold {- font-size: 20px;- font-weight: 600;- line-height: 1.2;-- /* border radius end */-}--@utility title-3xl-bold {- font-size: 20px;- font-weight: 700;- line-height: 1.2;-- /* border radius end */-}--@utility title-4xl-semi-bold {- font-size: 24px;- font-weight: 600;- line-height: 1.2;-- /* border radius end */-}--@utility title-4xl-bold {- font-size: 24px;- font-weight: 700;- line-height: 1.2;-- /* border radius end */-}--@utility title-5xl-semi-bold {- font-size: 30px;- font-weight: 600;- line-height: 1.2;-- /* border radius end */-}--@utility title-5xl-bold {- font-size: 30px;- font-weight: 700;- line-height: 1.2;-- /* border radius end */-}--@utility title-6xl-semi-bold {- font-size: 36px;- font-weight: 600;- line-height: 1.2;-- /* border radius end */-}--@utility title-6xl-bold {- font-size: 36px;- font-weight: 700;- line-height: 1.2;-- /* border radius end */-}--@utility title-7xl-semi-bold {- font-size: 48px;- font-weight: 600;- line-height: 1.2;-- /* border radius end */-}--@utility title-7xl-bold {- font-size: 48px;- font-weight: 700;- line-height: 1.2;-- /* border radius end */-}--@utility title-8xl-semi-bold {- font-size: 60px;- font-weight: 600;- line-height: 1.2;-- /* border radius end */-}--@utility title-8xl-bold {- font-size: 60px;- font-weight: 700;- line-height: 1.2;-- /* border radius end */-}--@utility radius-2xs {- /* font define end */-- /* border radius start */- border-radius: 2px;-- /* border radius end */-}--@utility radius-xs {- border-radius: 4px;-- /* border radius end */-}--@utility radius-sm {- border-radius: 6px;-- /* border radius end */-}--@utility radius-md {- border-radius: 8px;-- /* border radius end */-}--@utility radius-lg {- border-radius: 10px;-- /* border radius end */-}--@utility radius-xl {- border-radius: 12px;-- /* border radius end */-}--@utility radius-2xl {- border-radius: 16px;-- /* border radius end */-}--@utility radius-3xl {- border-radius: 20px;-- /* border radius end */-}--@utility radius-4xl {- border-radius: 24px;-- /* border radius end */-}--@utility radius-5xl {- border-radius: 24px;-- /* border radius end */-}--@utility radius-6xl {- border-radius: 28px;-- /* border radius end */-}--@utility radius-7xl {- border-radius: 32px;-- /* border radius end */-}--@utility radius-8xl {- border-radius: 40px;-- /* border radius end */-}--@utility radius-9xl {- border-radius: 48px;-- /* border radius end */-}--@utility radius-full {- border-radius: 64px;-- /* border radius end */-}--@utility no-scrollbar {- /* Hide scrollbar for Chrome, Safari and Opera */- &::-webkit-scrollbar {- display: none;- }-- /* Hide scrollbar for IE, Edge and Firefox */- -ms-overflow-style: none;- scrollbar-width: none;-}--@utility no-spinner {- /* Hide arrows from number input */- &::-webkit-outer-spin-button {- -webkit-appearance: none;- margin: 0;- }- &::-webkit-inner-spin-button {- -webkit-appearance: none;- margin: 0;- }- -moz-appearance: textfield;-}-@layer components {html {color-scheme: light;@@ -750,137 +45,9 @@transition: none !important;}- :root {- --max-width: 1100px;- --border-radius: 12px;- --font-mono:- ui-monospace, Menlo, Monaco, 'Cascadia Mono', 'Segoe UI Mono',- 'Roboto Mono', 'Oxygen Mono', 'Ubuntu Monospace', 'Source Code Pro',- 'Fira Mono', 'Droid Sans Mono', 'Courier New', monospace;-- --foreground-rgb: 0, 0, 0;- --background-start-rgb: 214, 219, 220;- --background-end-rgb: 255, 255, 255;-- --primary-glow: conic-gradient(- from 180deg at 50% 50%,- #16abff33 0deg,- #0885ff33 55deg,- #54d6ff33 120deg,- #0071ff33 160deg,- transparent 360deg- );- --secondary-glow: radial-gradient(- rgba(255, 255, 255, 1),- rgba(255, 255, 255, 0)- );-- --tile-start-rgb: 239, 245, 249;- --tile-end-rgb: 228, 232, 233;- --tile-border: conic-gradient(- #00000080,- #00000040,- #00000030,- #00000020,- #00000010,- #00000010,- #00000080- );-- --callout-rgb: 238, 240, 241;- --callout-border-rgb: 172, 175, 176;- --card-rgb: 180, 185, 188;- --card-border-rgb: 131, 134, 135;- }-- /* @media (prefers-color-scheme: dark) {- :root {- --foreground-rgb: 255, 255, 255;- --background-start-rgb: 0, 0, 0;- --background-end-rgb: 0, 0, 0;-- --primary-glow: radial-gradient(rgba(1, 65, 255, 0.4), rgba(1, 65, 255, 0));- --secondary-glow: linear-gradient(to bottom right,- rgba(1, 65, 255, 0),- rgba(1, 65, 255, 0),- rgba(1, 65, 255, 0.3));-- --tile-start-rgb: 2, 13, 46;- --tile-end-rgb: 2, 5, 19;- --tile-border: conic-gradient(#ffffff80,- #ffffff40,- #ffffff30,- #ffffff20,- #ffffff10,- #ffffff10,- #ffffff80);-- --callout-rgb: 20, 20, 20;- --callout-border-rgb: 108, 108, 108;- --card-rgb: 100, 100, 100;- --card-border-rgb: 200, 200, 200;- }-} */-- * {- box-sizing: border-box;- padding: 0;- margin: 0;- }-- html,- body {- max-width: 100vw;- overflow: hidden;- }-- body {- color: rgb(var(--foreground-rgb));- user-select: none;- /* background: linear-gradient(- to bottom,- transparent,- rgb(var(--background-end-rgb))- )- rgb(var(--background-start-rgb)); */- }-- a {- color: inherit;- text-decoration: none;- outline: none;- }-- /* @media (prefers-color-scheme: dark) {- html {- color-scheme: dark;- }-} */-- /* CSS Utils */- .h1 {- padding-bottom: 1.5rem;- line-height: 1.5;- font-size: 1.125rem;- color: #111928;- }-- .h2 {- font-size: 14px;- font-weight: 500;- color: #111928;- line-height: 1.5;- }-[class*='code-'] {@apply font-mono;}-}--@layer components {- .link {- @apply text-blue-600 cursor-pointer hover:opacity-80 transition-opacity duration-200 ease-in-out;- }.text-gradient {background: linear-gradient(91.58deg, #2250f2 -29.55%, #0ebcf3 75.22%);@@ -890,20 +57,6 @@text-fill-color: transparent;}- /* overwrite paging active dark model style */- [class*='style_paginatio'] li .text-primary-600 {- color: rgb(28 100 242);- background-color: rgb(235 245 255);- }-- /* support safari 14 and below */- .inset-0 {- left: 0;- right: 0;- top: 0;- bottom: 0;- }-[data-theme='dark'] [data-hide-on-theme='dark'],[data-theme='light'] [data-hide-on-theme='light'] {display: none;diff --git a/web/app/styles/markdown.css b/web/app/styles/markdown.cssindex bd4d413b27d..c4ccf82297e 100644--- a/web/app/styles/markdown.css+++ b/web/app/styles/markdown.css@@ -1,5 +1,4 @@-@import '../../themes/markdown-light.css';-@import '../../themes/markdown-dark.css';+@import '../../themes/markdown.css';.markdown-body {-ms-text-size-adjust: 100%;diff --git a/web/docs/test.md b/web/docs/test.mdindex bc1546a991a..58acccec2aa 100644--- a/web/docs/test.md+++ b/web/docs/test.md@@ -520,7 +520,6 @@ const element = await screen.findByText('Async Content')Test examples in the project:-- [classnames.spec.ts] - Utility function tests- [index.spec.tsx] - Component tests## Resources@@ -540,5 +539,4 @@ Test examples in the project:[Testing Library Best Practices]: https://kentcdodds.com/blog/common-mistakes-with-react-testing-library[Vitest Documentation]: https://vitest.dev/guide[Vitest Mocking Guide]: https://vitest.dev/guide/mocking.html-[classnames.spec.ts]: ../utils/classnames.spec.ts[index.spec.tsx]: ../app/components/base/button/index.spec.tsxdiff --git a/web/eslint-suppressions.json b/web/eslint-suppressions.jsonindex 3b32e4e7e0d..0fdabf34dff 100644--- a/web/eslint-suppressions.json+++ b/web/eslint-suppressions.json@@ -88,20 +88,9 @@"count": 2}},- "app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/date-picker.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/range-selector.tsx": {"no-restricted-imports": {"count": 2- },- "tailwindcss/enforce-consistent-class-order": {- "count": 3- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1}},"app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/__tests__/svg-attribute-error-reproduction.spec.tsx": {@@ -120,14 +109,6 @@"app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-popup.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },- "app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/panel.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 5}},"app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-config-modal.tsx": {@@ -139,9 +120,6 @@}},"app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-panel.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },"ts/no-explicit-any": {"count": 1}@@ -180,9 +158,6 @@}},"app/(shareLayout)/webapp-reset-password/layout.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-explicit-any": {"count": 1}@@ -192,16 +167,6 @@"count": 2}},- "app/(shareLayout)/webapp-signin/layout.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/(shareLayout)/webapp-signin/normalForm.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 11- }- },"app/(shareLayout)/webapp-signin/page.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1@@ -220,11 +185,6 @@"count": 1}},- "app/account/(commonLayout)/avatar.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/account/(commonLayout)/delete-account/components/feed-back.tsx": {"no-restricted-imports": {"count": 1@@ -241,9 +201,6 @@}},"app/account/oauth/authorize/layout.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-explicit-any": {"count": 1}@@ -253,11 +210,6 @@"count": 1}},- "app/components/app-sidebar/app-info/app-info-trigger.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/app-sidebar/app-info/app-operations.tsx": {"no-restricted-imports": {"count": 1@@ -269,9 +221,6 @@"app/components/app-sidebar/app-sidebar-dropdown.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 4}},"app/components/app-sidebar/basic.tsx": {@@ -290,11 +239,6 @@"count": 1}},- "app/components/app-sidebar/dataset-info/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 5- }- },"app/components/app-sidebar/dataset-info/menu-item.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1@@ -303,24 +247,13 @@"app/components/app-sidebar/dataset-sidebar-dropdown.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 5}},"app/components/app-sidebar/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-explicit-any": {"count": 1}},- "app/components/app-sidebar/nav-link/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 5- }- },"app/components/app-sidebar/toggle-button.tsx": {"no-restricted-imports": {"count": 1@@ -398,18 +331,10 @@"react/set-state-in-effect": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },"ts/no-explicit-any": {"count": 5}},- "app/components/app/annotation/list.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 8- }- },"app/components/app/annotation/type.ts": {"erasable-syntax-only/enums": {"count": 2@@ -422,18 +347,10 @@"react/set-state-in-effect": {"count": 5},- "tailwindcss/enforce-consistent-class-order": {- "count": 10- },"ts/no-explicit-any": {"count": 1}},- "app/components/app/app-access-control/access-control-dialog.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/app/app-access-control/add-member-or-group-pop.tsx": {"no-restricted-imports": {"count": 1@@ -465,41 +382,21 @@"count": 1}},- "app/components/app/app-publisher/suggested-action.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/app/app-publisher/version-info-modal.tsx": {"no-restricted-imports": {"count": 1}},- "app/components/app/configuration/base/feature-panel/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/app/configuration/base/group-name/index.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1}},- "app/components/app/configuration/base/operation-btn/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/app/configuration/base/var-highlight/index.tsx": {"react-refresh/only-export-components": {"count": 1}},- "app/components/app/configuration/base/warning-mask/has-not-set-api.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },"app/components/app/configuration/base/warning-mask/index.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1@@ -518,27 +415,11 @@"count": 1}},- "app/components/app/configuration/config-prompt/message-type-selector.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- }- },"app/components/app/configuration/config-prompt/simple-prompt-input.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- },"ts/no-explicit-any": {"count": 3}},- "app/components/app/configuration/config-var/config-modal/field.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/app/configuration/config-var/config-modal/index.tsx": {"no-restricted-imports": {"count": 1@@ -552,14 +433,6 @@"count": 1}},- "app/components/app/configuration/config-var/config-select/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- }- },"app/components/app/configuration/config-var/index.tsx": {"no-restricted-imports": {"count": 1@@ -570,14 +443,6 @@"count": 1}},- "app/components/app/configuration/config-var/select-type-item/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- }- },"app/components/app/configuration/config-var/select-var-type.tsx": {"no-restricted-imports": {"count": 1@@ -586,23 +451,9 @@"count": 1}},- "app/components/app/configuration/config-var/var-item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- }- },"app/components/app/configuration/config-vision/index.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 3- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 2}},"app/components/app/configuration/config-vision/param-config-content.tsx": {@@ -632,9 +483,6 @@"app/components/app/configuration/config/agent/agent-setting/item-panel.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/app/configuration/config/agent/agent-tools/index.tsx": {@@ -660,12 +508,6 @@"no-restricted-imports": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 6- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 3- },"ts/no-explicit-any": {"count": 1}@@ -681,18 +523,7 @@"count": 1}},- "app/components/app/configuration/config/automatic/idea-output.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- }- },"app/components/app/configuration/config/automatic/instruction-editor.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- },"ts/no-explicit-any": {"count": 2}@@ -707,11 +538,6 @@"count": 1}},- "app/components/app/configuration/config/automatic/prompt-toast.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/app/configuration/config/automatic/res-placeholder.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1@@ -725,12 +551,6 @@"app/components/app/configuration/config/automatic/version-selector.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 3- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1}},"app/components/app/configuration/config/code-generator/get-code-generator-res.tsx": {@@ -760,34 +580,17 @@"count": 3}},- "app/components/app/configuration/dataset-config/card-item/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/app/configuration/dataset-config/context-var/index.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1}},"app/components/app/configuration/dataset-config/context-var/var-picker.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 4}},"app/components/app/configuration/dataset-config/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-explicit-any": {"count": 1}@@ -795,9 +598,6 @@"app/components/app/configuration/dataset-config/params-config/config-content.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 10}},"app/components/app/configuration/dataset-config/params-config/index.tsx": {@@ -827,9 +627,6 @@}},"app/components/app/configuration/dataset-config/settings-modal/retrieval-section.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- },"ts/no-explicit-any": {"count": 1}@@ -837,9 +634,6 @@"app/components/app/configuration/debug/chat-user-input.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/app/configuration/debug/debug-with-multiple-model/chat-item.tsx": {@@ -906,20 +700,12 @@"count": 1}},- "app/components/app/create-app-dialog/app-list/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/app/create-app-dialog/app-list/sidebar.tsx": {"erasable-syntax-only/enums": {"count": 1},"react-refresh/only-export-components": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/app/create-app-modal/index.tsx": {@@ -949,11 +735,6 @@"count": 2}},- "app/components/app/create-from-dsl-modal/uploader.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },"app/components/app/duplicate-modal/index.tsx": {"no-restricted-imports": {"count": 1@@ -987,9 +768,6 @@"style/multiline-ternary": {"count": 2},- "tailwindcss/enforce-consistent-class-order": {- "count": 18- },"ts/no-explicit-any": {"count": 5}@@ -998,18 +776,10 @@"no-restricted-imports": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 3- },"ts/no-explicit-any": {"count": 2}},- "app/components/app/log/var-panel.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 5- }- },"app/components/app/overview/app-card.tsx": {"no-restricted-imports": {"count": 1@@ -1029,12 +799,6 @@},"react/set-state-in-effect": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 4- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1}},"app/components/app/overview/settings/index.tsx": {@@ -1060,17 +824,11 @@"no-restricted-imports": {"count": 1},- "perfectionist/sort-imports": {- "count": 1- },"react/set-state-in-effect": {"count": 1}},"app/components/app/text-generate/item/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- },"ts/no-explicit-any": {"count": 3}@@ -1086,16 +844,6 @@"count": 2}},- "app/components/app/text-generate/saved-items/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },- "app/components/app/type-selector/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },"app/components/app/workflow-log/detail.tsx": {"no-restricted-imports": {"count": 1@@ -1112,9 +860,6 @@"app/components/app/workflow-log/list.tsx": {"react/set-state-in-effect": {"count": 2- },- "tailwindcss/enforce-consistent-class-order": {- "count": 13}},"app/components/app/workflow-log/trigger-by-display.tsx": {@@ -1135,9 +880,6 @@"react/set-state-in-effect": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 10- },"ts/no-explicit-any": {"count": 2}@@ -1153,9 +895,6 @@},"react/unsupported-syntax": {"count": 2- },- "tailwindcss/enforce-consistent-class-order": {- "count": 8}},"app/components/apps/new-app-card.tsx": {@@ -1165,9 +904,6 @@"react/set-state-in-effect": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 4- },"ts/no-explicit-any": {"count": 1}@@ -1181,9 +917,6 @@}},"app/components/base/agent-log-modal/detail.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },"ts/no-explicit-any": {"count": 1}@@ -1199,14 +932,6 @@"app/components/base/agent-log-modal/index.tsx": {"react/set-state-in-effect": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/base/agent-log-modal/iteration.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/base/agent-log-modal/result.tsx": {@@ -1218,18 +943,10 @@}},"app/components/base/agent-log-modal/tool-call.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },"ts/no-explicit-any": {"count": 2}},- "app/components/base/alert.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/amplitude/index.ts": {"no-barrel-files/no-barrel-files": {"count": 2@@ -1250,16 +967,6 @@"count": 1}},- "app/components/base/app-icon/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 16- }- },- "app/components/base/app-unavailable.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/audio-btn/audio.ts": {"node/prefer-global/buffer": {"count": 1@@ -1274,9 +981,6 @@}},"app/components/base/audio-gallery/AudioPlayer.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- },"ts/no-explicit-any": {"count": 2}@@ -1295,17 +999,6 @@},"react/rules-of-hooks": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- }- },- "app/components/base/badge.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/base/badge/index.tsx": {@@ -1333,9 +1026,6 @@},"react/set-state-in-effect": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/base/carousel/index.tsx": {@@ -1350,9 +1040,6 @@}},"app/components/base/chat/chat-with-history/chat-wrapper.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-explicit-any": {"count": 7}@@ -1380,14 +1067,6 @@"count": 2}},- "app/components/base/chat/chat-with-history/header/operation.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- }- },"app/components/base/chat/chat-with-history/hooks.tsx": {"react/set-state-in-effect": {"count": 4@@ -1414,16 +1093,6 @@"count": 1}},- "app/components/base/chat/chat-with-history/sidebar/index.tsx": {- "perfectionist/sort-imports": {- "count": 1- }- },- "app/components/base/chat/chat-with-history/sidebar/item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/chat/chat-with-history/sidebar/list.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1@@ -1432,9 +1101,6 @@"app/components/base/chat/chat-with-history/sidebar/operation.tsx": {"react/set-state-in-effect": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 3}},"app/components/base/chat/chat-with-history/sidebar/rename-modal.tsx": {@@ -1450,21 +1116,11 @@"count": 1}},- "app/components/base/chat/chat/answer/human-input-content/content-wrapper.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/chat/chat/answer/human-input-content/executed-action.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 3}},- "app/components/base/chat/chat/answer/human-input-content/expiration-time.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/chat/chat/answer/human-input-content/tips.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 3@@ -1479,9 +1135,6 @@"react/set-state-in-effect": {"count": 3},- "tailwindcss/enforce-consistent-class-order": {- "count": 4- },"ts/no-explicit-any": {"count": 1}@@ -1494,33 +1147,14 @@"app/components/base/chat/chat/answer/operation.tsx": {"no-restricted-imports": {"count": 2- },- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },- "app/components/base/chat/chat/answer/suggested-questions.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/base/chat/chat/answer/tool-detail.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 5}},"app/components/base/chat/chat/answer/workflow-process.tsx": {"react/set-state-in-effect": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 7}},"app/components/base/chat/chat/chat-input-area/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- },"ts/no-explicit-any": {"count": 3}@@ -1580,9 +1214,6 @@}},"app/components/base/chat/embedded-chatbot/chat-wrapper.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },"ts/no-explicit-any": {"count": 7}@@ -1595,9 +1226,6 @@"app/components/base/chat/embedded-chatbot/header/index.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/base/chat/embedded-chatbot/hooks.tsx": {@@ -1612,18 +1240,10 @@"no-restricted-imports": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 3- },"ts/no-explicit-any": {"count": 3}},- "app/components/base/chat/embedded-chatbot/inputs-form/view-form-dropdown.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/chat/types.ts": {"no-barrel-files/no-barrel-files": {"count": 2@@ -1643,9 +1263,6 @@}},"app/components/base/chip/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-explicit-any": {"count": 3}@@ -1655,11 +1272,6 @@"count": 1}},- "app/components/base/content-dialog/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/copy-feedback/index.tsx": {"no-restricted-imports": {"count": 1@@ -1680,16 +1292,6 @@"count": 1}},- "app/components/base/date-and-time-picker/calendar/item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },- "app/components/base/date-and-time-picker/common/option-list-item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/date-and-time-picker/date-picker/header.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1@@ -1698,9 +1300,6 @@"app/components/base/date-and-time-picker/date-picker/index.tsx": {"react/set-state-in-effect": {"count": 4- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/base/date-and-time-picker/hooks.ts": {@@ -1716,9 +1315,6 @@"app/components/base/date-and-time-picker/time-picker/index.tsx": {"react/set-state-in-effect": {"count": 2- },- "tailwindcss/enforce-consistent-class-order": {- "count": 3}},"app/components/base/date-and-time-picker/types.ts": {@@ -1741,21 +1337,11 @@"count": 1}},- "app/components/base/dialog/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/base/drawer-plus/index.stories.tsx": {"react/component-hook-factories": {"count": 1}},- "app/components/base/drawer-plus/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },"app/components/base/effect/index.stories.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 2@@ -1764,9 +1350,6 @@"app/components/base/emoji-picker/Inner.tsx": {"react/set-state-in-effect": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 4}},"app/components/base/emoji-picker/index.tsx": {@@ -1774,11 +1357,6 @@"count": 1}},- "app/components/base/encrypted-bottom/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/error-boundary/index.tsx": {"react-refresh/only-export-components": {"count": 3@@ -1846,11 +1424,6 @@"count": 1}},- "app/components/base/features/new-feature-panel/dialog-wrapper.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/base/features/new-feature-panel/feature-bar.tsx": {"no-restricted-imports": {"count": 1@@ -1903,9 +1476,6 @@"app/components/base/features/new-feature-panel/text-to-speech/param-config-content.tsx": {"no-restricted-imports": {"count": 2- },- "tailwindcss/enforce-consistent-class-order": {- "count": 8}},"app/components/base/features/new-feature-panel/text-to-speech/voice-settings.tsx": {@@ -1926,11 +1496,6 @@"count": 1}},- "app/components/base/file-thumb/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/file-uploader/audio-preview.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1@@ -1947,17 +1512,6 @@},"react/no-missing-key": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- }- },- "app/components/base/file-uploader/file-uploader-in-attachment/file-item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3}},"app/components/base/file-uploader/hooks.ts": {@@ -2010,9 +1564,6 @@"no-restricted-imports": {"count": 2},- "tailwindcss/enforce-consistent-class-order": {- "count": 4- },"ts/no-explicit-any": {"count": 3}@@ -2027,11 +1578,6 @@"count": 2}},- "app/components/base/form/components/field/checkbox.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/form/components/field/mixed-variable-text-input/placeholder.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 2@@ -2040,11 +1586,6 @@"count": 1}},- "app/components/base/form/components/field/number-slider.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/form/components/field/variable-or-constant-input.tsx": {"no-console": {"count": 2@@ -2058,11 +1599,6 @@"count": 1}},- "app/components/base/form/components/label.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/base/form/form-scenarios/base/field.tsx": {"react/component-hook-factories": {"count": 1@@ -2144,11 +1680,6 @@"count": 2}},- "app/components/base/fullscreen-modal/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/ga/index.tsx": {"erasable-syntax-only/enums": {"count": 1@@ -2407,11 +1938,6 @@"count": 1}},- "app/components/base/image-uploader/chat-image-uploader.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/image-uploader/hooks.ts": {"ts/no-explicit-any": {"count": 4@@ -2430,9 +1956,6 @@"app/components/base/image-uploader/image-list.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/base/image-uploader/image-preview.tsx": {@@ -2464,9 +1987,6 @@"app/components/base/input-with-copy/index.tsx": {"react/unsupported-syntax": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/base/input/index.stories.tsx": {@@ -2480,22 +2000,6 @@"app/components/base/input/index.tsx": {"react-refresh/only-export-components": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 7- }- },- "app/components/base/linked-apps-panel/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- }- },- "app/components/base/list-empty/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4}},"app/components/base/loading/index.stories.tsx": {@@ -2575,9 +2079,6 @@"react/set-state-in-effect": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-explicit-any": {"count": 4}@@ -2587,11 +2088,6 @@"count": 5}},- "app/components/base/markdown-with-directive/components/with-icon-card-item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/markdown/error-boundary.tsx": {"ts/no-explicit-any": {"count": 3@@ -2619,9 +2115,6 @@"regexp/no-super-linear-backtracking": {"count": 3},- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-explicit-any": {"count": 1}@@ -2646,9 +2139,6 @@"react/set-state-in-effect": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },"ts/no-explicit-any": {"count": 1}@@ -2710,11 +2200,6 @@"count": 1}},- "app/components/base/notion-page-selector/search-input/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/pagination/index.stories.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1@@ -2763,11 +2248,6 @@"count": 3}},- "app/components/base/premium-badge/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/progress-bar/progress-circle.stories.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1@@ -2820,14 +2300,6 @@"count": 2}},- "app/components/base/prompt-editor/plugins/current-block/component.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 2- }- },"app/components/base/prompt-editor/plugins/current-block/index.tsx": {"no-barrel-files/no-barrel-files": {"count": 3@@ -2837,21 +2309,10 @@}},"app/components/base/prompt-editor/plugins/draggable-plugin/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- },"ts/no-explicit-any": {"count": 2}},- "app/components/base/prompt-editor/plugins/error-message-block/component.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 2- }- },"app/components/base/prompt-editor/plugins/error-message-block/index.tsx": {"no-barrel-files/no-barrel-files": {"count": 3@@ -2879,9 +2340,6 @@"app/components/base/prompt-editor/plugins/hitl-input-block/component-ui.tsx": {"react-hooks/exhaustive-deps": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 3}},"app/components/base/prompt-editor/plugins/hitl-input-block/component.tsx": {@@ -2902,34 +2360,11 @@"count": 2}},- "app/components/base/prompt-editor/plugins/hitl-input-block/pre-populate.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/base/prompt-editor/plugins/hitl-input-block/tag-label.tsx": {- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- }- },- "app/components/base/prompt-editor/plugins/hitl-input-block/type-switch.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/prompt-editor/plugins/hitl-input-block/variable-block.tsx": {"no-restricted-imports": {"count": 1}},- "app/components/base/prompt-editor/plugins/last-run-block/component.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 2- }- },"app/components/base/prompt-editor/plugins/last-run-block/index.tsx": {"no-barrel-files/no-barrel-files": {"count": 3@@ -2938,11 +2373,6 @@"count": 2}},- "app/components/base/prompt-editor/plugins/placeholder.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/prompt-editor/plugins/query-block/component.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1@@ -2956,11 +2386,6 @@"count": 2}},- "app/components/base/prompt-editor/plugins/request-url-block/component.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/prompt-editor/plugins/request-url-block/index.tsx": {"no-barrel-files/no-barrel-files": {"count": 3@@ -3033,18 +2458,8 @@"count": 1}},- "app/components/base/radio-card/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },- "app/components/base/radio-card/simple/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },- "app/components/base/radio/component/group/index.tsx": {- "ts/no-explicit-any": {+ "app/components/base/radio/component/group/index.tsx": {+ "ts/no-explicit-any": {"count": 2}},@@ -3066,26 +2481,11 @@"count": 1}},- "app/components/base/search-input/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/base/segmented-control/index.stories.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1}},- "app/components/base/segmented-control/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },- "app/components/base/select/custom.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/base/select/index.stories.tsx": {"no-console": {"count": 4@@ -3101,9 +2501,6 @@"style/multiline-ternary": {"count": 2},- "tailwindcss/enforce-consistent-class-order": {- "count": 7- },"ts/no-explicit-any": {"count": 1}@@ -3113,11 +2510,6 @@"count": 1}},- "app/components/base/select/pure.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },"app/components/base/simple-pie-chart/index.stories.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1@@ -3134,9 +2526,6 @@}},"app/components/base/sort/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-explicit-any": {"count": 2}@@ -3171,31 +2560,16 @@"count": 1}},- "app/components/base/tab-header/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/tab-slider-new/index.stories.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1}},- "app/components/base/tab-slider-new/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/tab-slider-plain/index.stories.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1}},- "app/components/base/tab-slider-plain/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/tab-slider/index.stories.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1@@ -3204,9 +2578,6 @@"app/components/base/tab-slider/index.tsx": {"react/set-state-in-effect": {"count": 2- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/base/tag-input/index.stories.tsx": {@@ -3217,16 +2588,6 @@"count": 1}},- "app/components/base/tag-input/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },- "app/components/base/tag-management/filter.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 5- }- },"app/components/base/tag-management/index.tsx": {"no-restricted-imports": {"count": 1@@ -3251,9 +2612,6 @@"app/components/base/tag-management/tag-item-editor.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/base/tag-management/tag-remove-modal.tsx": {@@ -3294,21 +2652,11 @@"count": 1}},- "app/components/base/timezone-label/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/tooltip/index.stories.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 2}},- "app/components/base/tooltip/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/base/video-gallery/VideoPlayer.tsx": {"react/set-state-in-effect": {"count": 1@@ -3325,11 +2673,6 @@"count": 1}},- "app/components/base/voice-input/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/base/voice-input/utils.ts": {"ts/no-explicit-any": {"count": 4@@ -3356,17 +2699,9 @@"count": 4}},- "app/components/billing/annotation-full/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/billing/annotation-full/modal.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/billing/plan-upgrade-modal/index.tsx": {@@ -3405,11 +2740,6 @@"count": 1}},- "app/components/billing/pricing/plans/cloud-plan-item/button.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/billing/pricing/plans/cloud-plan-item/index.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 8@@ -3420,21 +2750,6 @@"count": 1}},- "app/components/billing/pricing/plans/cloud-plan-item/list/item/tooltip.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/billing/pricing/plans/self-hosted-plan-item/button.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },- "app/components/billing/pricing/plans/self-hosted-plan-item/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 8- }- },"app/components/billing/pricing/plans/self-hosted-plan-item/list/item.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1@@ -3448,9 +2763,6 @@"app/components/billing/priority-label/index.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/billing/type.ts": {@@ -3466,14 +2778,6 @@"app/components/billing/usage-info/index.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },- "app/components/billing/vector-space-full/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/custom/custom-page/index.tsx": {@@ -3491,30 +2795,14 @@"count": 2}},- "app/components/datasets/common/credential-icon.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/datasets/common/document-picker/index.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/datasets/common/document-picker/preview-document-picker.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },- "app/components/datasets/common/document-status-with-action/status-with-action.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/datasets/common/image-list/more.tsx": {@@ -3537,11 +2825,6 @@"count": 3}},- "app/components/datasets/common/image-uploader/image-uploader-in-chunk/image-input.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/datasets/common/image-uploader/image-uploader-in-retrieval-testing/image-input.tsx": {"no-restricted-imports": {"count": 1@@ -3563,9 +2846,6 @@"app/components/datasets/common/retrieval-param-config/index.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 5}},"app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/dsl-confirm-modal.tsx": {@@ -3596,16 +2876,6 @@"count": 1}},- "app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/tab/item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/uploader.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },"app/components/datasets/create-from-pipeline/footer.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 2@@ -3616,11 +2886,6 @@"count": 1}},- "app/components/datasets/create-from-pipeline/list/create-card.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/datasets/create-from-pipeline/list/customized-list.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1@@ -3641,11 +2906,6 @@"count": 3}},- "app/components/datasets/create-from-pipeline/list/template-card/details/chunk-structure-card.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/datasets/create-from-pipeline/list/template-card/details/index.tsx": {"no-restricted-imports": {"count": 1@@ -3669,9 +2929,6 @@"app/components/datasets/create/embedding-process/indexing-progress-item.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 3}},"app/components/datasets/create/empty-dataset-creation-modal/index.tsx": {@@ -3684,16 +2941,6 @@"count": 1}},- "app/components/datasets/create/file-uploader/components/upload-dropzone.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/datasets/create/file-uploader/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/datasets/create/notion-page-preview/index.tsx": {"react/set-state-in-effect": {"count": 1@@ -3717,11 +2964,6 @@"count": 1}},- "app/components/datasets/create/step-three/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- }- },"app/components/datasets/create/step-two/components/general-chunking-options.tsx": {"no-restricted-imports": {"count": 1@@ -3742,11 +2984,6 @@"count": 1}},- "app/components/datasets/create/step-two/components/option-card.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },"app/components/datasets/create/step-two/hooks/index.ts": {"no-barrel-files/no-barrel-files": {"count": 6@@ -3766,17 +3003,11 @@},"react-hooks/exhaustive-deps": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/datasets/create/step-two/language-select/index.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/datasets/create/step-two/preview-item/index.tsx": {@@ -3790,31 +3021,16 @@"count": 1}},- "app/components/datasets/create/stepper/step.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/datasets/create/stop-embedding-modal/index.tsx": {"no-restricted-imports": {"count": 1}},- "app/components/datasets/create/top-bar/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/datasets/create/website/base/checkbox-with-label.tsx": {"no-restricted-imports": {"count": 1}},- "app/components/datasets/create/website/base/error-message.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/datasets/create/website/base/field.tsx": {"no-restricted-imports": {"count": 1@@ -3825,11 +3041,6 @@"count": 1}},- "app/components/datasets/create/website/base/options-wrap.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/datasets/create/website/firecrawl/index.tsx": {"erasable-syntax-only/enums": {"count": 1@@ -3849,11 +3060,6 @@"count": 1}},- "app/components/datasets/create/website/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 7- }- },"app/components/datasets/create/website/jina-reader/index.tsx": {"erasable-syntax-only/enums": {"count": 1@@ -3869,18 +3075,10 @@}},"app/components/datasets/create/website/jina-reader/options.tsx": {- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- },"ts/no-explicit-any": {"count": 1}},- "app/components/datasets/create/website/preview.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/datasets/create/website/watercrawl/index.tsx": {"erasable-syntax-only/enums": {"count": 1@@ -3896,9 +3094,6 @@}},"app/components/datasets/create/website/watercrawl/options.tsx": {- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- },"ts/no-explicit-any": {"count": 1}@@ -3913,11 +3108,6 @@"count": 2}},- "app/components/datasets/documents/components/document-list/components/sort-header.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/datasets/documents/components/document-list/hooks/index.ts": {"no-barrel-files/no-barrel-files": {"count": 4@@ -3943,11 +3133,6 @@"count": 1}},- "app/components/datasets/documents/create-from-pipeline/data-source-options/option-card.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/datasets/documents/create-from-pipeline/data-source/base/credential-selector/__tests__/index.spec.tsx": {"erasable-syntax-only/enums": {"count": 1@@ -3963,21 +3148,11 @@"count": 1}},- "app/components/datasets/documents/create-from-pipeline/data-source/base/credential-selector/trigger.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/datasets/documents/create-from-pipeline/data-source/base/header.tsx": {"no-restricted-imports": {"count": 1}},- "app/components/datasets/documents/create-from-pipeline/data-source/local-file/components/upload-dropzone.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/datasets/documents/create-from-pipeline/data-source/online-documents/index.tsx": {"ts/no-explicit-any": {"count": 1@@ -3991,9 +3166,6 @@"app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/bucket.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/dropdown/index.tsx": {@@ -4011,17 +3183,9 @@"count": 2}},- "app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/item.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/datasets/documents/create-from-pipeline/data-source/online-drive/index.tsx": {@@ -4049,11 +3213,6 @@"count": 1}},- "app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/crawled-result.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/options/index.tsx": {"ts/no-explicit-any": {"count": 1@@ -4102,11 +3261,6 @@"count": 1}},- "app/components/datasets/documents/create-from-pipeline/processing/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/datasets/documents/create-from-pipeline/steps/index.ts": {"no-barrel-files/no-barrel-files": {"count": 3@@ -4135,27 +3289,9 @@"count": 1}},- "app/components/datasets/documents/detail/completed/child-segment-detail.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- }- },- "app/components/datasets/documents/detail/completed/child-segment-list.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- }- },- "app/components/datasets/documents/detail/completed/common/batch-action.tsx": {- "perfectionist/sort-imports": {- "count": 1- }- },"app/components/datasets/documents/detail/completed/common/chunk-content.tsx": {"react/set-state-in-effect": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/datasets/documents/detail/completed/common/empty.tsx": {@@ -4163,31 +3299,16 @@"count": 8}},- "app/components/datasets/documents/detail/completed/common/full-screen-drawer.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/datasets/documents/detail/completed/common/regeneration-modal.tsx": {"no-restricted-imports": {"count": 1}},- "app/components/datasets/documents/detail/completed/common/summary-label.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/datasets/documents/detail/completed/common/summary-status.tsx": {"no-restricted-imports": {"count": 1}},- "app/components/datasets/documents/detail/completed/common/summary-text.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/datasets/documents/detail/completed/components/index.ts": {"no-barrel-files/no-barrel-files": {"count": 3@@ -4227,26 +3348,11 @@"count": 1}},- "app/components/datasets/documents/detail/completed/new-child-segment.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 6- }- },- "app/components/datasets/documents/detail/completed/segment-card/chunk-content.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/datasets/documents/detail/completed/segment-card/index.tsx": {"no-restricted-imports": {"count": 1}},- "app/components/datasets/documents/detail/completed/segment-detail.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- }- },"app/components/datasets/documents/detail/completed/skeleton/full-doc-list-skeleton.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1@@ -4297,11 +3403,6 @@"count": 1}},- "app/components/datasets/documents/detail/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- }- },"app/components/datasets/documents/detail/metadata/components/doc-type-selector.tsx": {"no-restricted-imports": {"count": 1@@ -4325,11 +3426,6 @@"count": 1}},- "app/components/datasets/documents/detail/new-segment.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 6- }- },"app/components/datasets/documents/detail/segment-add/index.tsx": {"erasable-syntax-only/enums": {"count": 1@@ -4339,9 +3435,6 @@},"react-refresh/only-export-components": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 10}},"app/components/datasets/documents/detail/settings/pipeline-settings/index.tsx": {@@ -4362,11 +3455,6 @@"count": 1}},- "app/components/datasets/external-api/external-api-modal/Form.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/datasets/external-api/external-api-modal/index.tsx": {"no-restricted-imports": {"count": 2@@ -4393,25 +3481,14 @@"count": 4}},- "app/components/datasets/extra-info/api-access/card.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/datasets/extra-info/api-access/index.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/datasets/extra-info/service-api/index.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/datasets/extra-info/statistics.tsx": {@@ -4422,11 +3499,6 @@"count": 4}},- "app/components/datasets/formatted-text/flavours/shared.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },"app/components/datasets/formatted-text/flavours/type.ts": {"ts/no-empty-object-type": {"count": 1@@ -4443,38 +3515,16 @@"app/components/datasets/hit-testing/components/chunk-detail-modal.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 5- }- },- "app/components/datasets/hit-testing/components/empty-records.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/datasets/hit-testing/components/query-input/textarea.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 5- }- },- "app/components/datasets/hit-testing/components/records.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 3}},"app/components/datasets/hit-testing/components/result-item-external.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/datasets/hit-testing/components/result-item-footer.tsx": {@@ -4482,15 +3532,7 @@"count": 1}},- "app/components/datasets/hit-testing/components/result-item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/datasets/hit-testing/components/score.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"unicorn/prefer-number-properties": {"count": 1}@@ -4498,32 +3540,11 @@"app/components/datasets/hit-testing/index.tsx": {"react/unsupported-syntax": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 3}},"app/components/datasets/list/dataset-card/components/dataset-card-footer.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/datasets/list/dataset-card/components/dataset-card-header.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 9- }- },- "app/components/datasets/list/dataset-card/components/description.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/datasets/list/dataset-card/components/tag-area.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/datasets/list/dataset-card/hooks/use-dataset-card-state.ts": {@@ -4546,42 +3567,16 @@"count": 1}},- "app/components/datasets/metadata/base/date-picker.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/datasets/metadata/edit-metadata-batch/edit-row.tsx": {- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- }- },"app/components/datasets/metadata/edit-metadata-batch/edited-beacon.tsx": {"no-restricted-imports": {"count": 1}},"app/components/datasets/metadata/edit-metadata-batch/input-combined.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },"ts/no-explicit-any": {"count": 2}},- "app/components/datasets/metadata/edit-metadata-batch/input-has-set-multiple-value.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- }- },- "app/components/datasets/metadata/edit-metadata-batch/label.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/datasets/metadata/edit-metadata-batch/modal.tsx": {"no-restricted-imports": {"count": 2@@ -4613,9 +3608,6 @@"app/components/datasets/metadata/metadata-dataset/dataset-metadata-drawer.tsx": {"no-restricted-imports": {"count": 2- },- "perfectionist/sort-imports": {- "count": 1}},"app/components/datasets/metadata/metadata-dataset/field.tsx": {@@ -4647,12 +3639,6 @@"app/components/datasets/metadata/metadata-document/info-group.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 2}},"app/components/datasets/metadata/types.ts": {@@ -4660,16 +3646,6 @@"count": 2}},- "app/components/datasets/preview/container.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },- "app/components/datasets/preview/header.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/datasets/rename-modal/index.tsx": {"no-restricted-imports": {"count": 1@@ -4703,25 +3679,12 @@"count": 1}},- "app/components/datasets/settings/option-card.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/datasets/settings/permission-selector/index.tsx": {"no-restricted-imports": {"count": 1},"react/no-missing-key": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 8- }- },- "app/components/datasets/settings/permission-selector/member-item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3}},"app/components/datasets/settings/permission-selector/permission-item.tsx": {@@ -4743,9 +3706,6 @@}},"app/components/develop/code.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 5- },"ts/no-empty-object-type": {"count": 1},@@ -4753,15 +3713,7 @@"count": 9}},- "app/components/develop/doc.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/develop/md.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-empty-object-type": {"count": 1},@@ -4790,25 +3742,12 @@"count": 1}},- "app/components/develop/tag.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/develop/toc-panel.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- }- },"app/components/explore/banner/banner-item.tsx": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 1},"react/set-state-in-effect": {"count": 3- },- "tailwindcss/enforce-consistent-class-order": {- "count": 8}},"app/components/explore/banner/indicator-button.tsx": {@@ -4817,17 +3756,6 @@},"react/set-state-in-effect": {"count": 2- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/explore/category.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1}},"app/components/explore/create-app-modal/index.tsx": {@@ -4854,35 +3782,9 @@"count": 1}},- "app/components/explore/sidebar/app-nav-item/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },- "app/components/explore/sidebar/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 9- }- },- "app/components/explore/sidebar/no-apps/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/explore/try-app/app/chat.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/explore/try-app/app/text-generation.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1}},"app/components/explore/try-app/index.tsx": {@@ -4997,26 +3899,6 @@"count": 1}},- "app/components/header/account-dropdown/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 6- }- },- "app/components/header/account-dropdown/workplace-selector/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 7- }- },- "app/components/header/account-setting/Integrations-page/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },- "app/components/header/account-setting/api-based-extension-page/empty.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/header/account-setting/api-based-extension-page/modal.tsx": {"no-restricted-imports": {"count": 1@@ -5030,11 +3912,6 @@"count": 3}},- "app/components/header/account-setting/collapse/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/header/account-setting/data-source-page-new/card.tsx": {"ts/no-explicit-any": {"count": 2@@ -5056,9 +3933,6 @@}},"app/components/header/account-setting/data-source-page-new/install-from-marketplace.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- },"ts/no-explicit-any": {"count": 1}@@ -5109,11 +3983,6 @@"count": 3}},- "app/components/header/account-setting/members-page/invite-modal/role-selector.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- }- },"app/components/header/account-setting/members-page/invited-modal/invitation-link.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1@@ -5122,14 +3991,6 @@"app/components/header/account-setting/members-page/operation/index.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 8- }- },- "app/components/header/account-setting/members-page/operation/transfer-ownership.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3}},"app/components/header/account-setting/members-page/transfer-ownership-modal/index.tsx": {@@ -5147,18 +4008,10 @@"no-restricted-imports": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 6- },"ts/no-explicit-any": {"count": 2}},- "app/components/header/account-setting/menu-dialog.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/header/account-setting/model-provider-page/declarations.ts": {"erasable-syntax-only/enums": {"count": 11@@ -5175,20 +4028,7 @@"count": 2}},- "app/components/header/account-setting/model-provider-page/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 6- }- },- "app/components/header/account-setting/model-provider-page/install-from-marketplace.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },"app/components/header/account-setting/model-provider-page/model-auth/add-credential-in-load-balancing.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-explicit-any": {"count": 4}@@ -5203,11 +4043,6 @@"count": 1}},- "app/components/header/account-setting/model-provider-page/model-auth/authorized/credential-item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/header/account-setting/model-provider-page/model-auth/authorized/index.tsx": {"no-restricted-imports": {"count": 2@@ -5262,18 +4097,10 @@"count": 3}},- "app/components/header/account-setting/model-provider-page/model-badge/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/header/account-setting/model-provider-page/model-modal/Form.tsx": {"no-restricted-imports": {"count": 2},- "tailwindcss/enforce-consistent-class-order": {- "count": 10- },"ts/no-explicit-any": {"count": 6}@@ -5291,26 +4118,11 @@"count": 5}},- "app/components/header/account-setting/model-provider-page/model-name/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/header/account-setting/model-provider-page/model-parameter-modal/agent-model-trigger.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/header/account-setting/model-provider-page/model-parameter-modal/configuration-button.tsx": {"ts/no-explicit-any": {"count": 2}},- "app/components/header/account-setting/model-provider-page/model-parameter-modal/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 7- }- },"app/components/header/account-setting/model-provider-page/model-parameter-modal/model-display.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1@@ -5319,11 +4131,6 @@"count": 1}},- "app/components/header/account-setting/model-provider-page/model-parameter-modal/parameter-item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 6- }- },"app/components/header/account-setting/model-provider-page/model-parameter-modal/status-indicators.tsx": {"no-restricted-imports": {"count": 1@@ -5335,26 +4142,11 @@"count": 2}},- "app/components/header/account-setting/model-provider-page/model-parameter-modal/trigger.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- }- },"app/components/header/account-setting/model-provider-page/model-selector/feature-icon.tsx": {"no-restricted-imports": {"count": 1}},- "app/components/header/account-setting/model-provider-page/model-selector/model-selector-trigger.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },- "app/components/header/account-setting/model-provider-page/model-selector/popup-item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- }- },"app/components/header/account-setting/model-provider-page/provider-added-card/cooldown-timer.tsx": {"no-restricted-imports": {"count": 1@@ -5363,16 +4155,6 @@"count": 2}},- "app/components/header/account-setting/model-provider-page/provider-added-card/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 8- }- },- "app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/credits-exhausted-alert.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 6- }- },"app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/credits-fallback-alert.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 3@@ -5383,17 +4165,9 @@"count": 2}},- "app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/usage-priority-section.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- }- },"app/components/header/account-setting/model-provider-page/provider-added-card/model-list-item.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/header/account-setting/model-provider-page/provider-added-card/model-list.tsx": {@@ -5405,9 +4179,6 @@"no-restricted-imports": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },"ts/no-explicit-any": {"count": 5}@@ -5431,16 +4202,6 @@"count": 1}},- "app/components/header/account-setting/model-provider-page/provider-added-card/quota-panel.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- }- },- "app/components/header/account-setting/model-provider-page/provider-icon/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/header/account-setting/model-provider-page/utils.ts": {"no-barrel-files/no-barrel-files": {"count": 2@@ -5451,11 +4212,6 @@"count": 4}},- "app/components/header/app-back/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/header/app-nav/index.tsx": {"react/set-state-in-effect": {"count": 2@@ -5464,15 +4220,7 @@"count": 1}},- "app/components/header/app-selector/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- }- },"app/components/header/header-wrapper.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-explicit-any": {"count": 1}@@ -5487,43 +4235,19 @@"count": 3}},- "app/components/header/nav/nav-selector/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- }- },"app/components/header/plan-badge/index.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1}},- "app/components/header/plugins-nav/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/plugins/base/badges/icon-with-tooltip.tsx": {"no-restricted-imports": {"count": 1}},- "app/components/plugins/base/deprecation-notice.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/plugins/base/key-value-item.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1}},"app/components/plugins/card/base/corner-mark.tsx": {@@ -5534,11 +4258,6 @@"count": 1}},- "app/components/plugins/card/base/org-info.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },"app/components/plugins/card/base/title.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1@@ -5549,16 +4268,6 @@"count": 2}},- "app/components/plugins/card/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },- "app/components/plugins/install-plugin/base/loading-error.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },"app/components/plugins/install-plugin/hooks.ts": {"ts/no-explicit-any": {"count": 4@@ -5578,9 +4287,6 @@},"react-refresh/only-export-components": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/plugins/install-plugin/install-bundle/item/github-item.tsx": {@@ -5597,9 +4303,6 @@"no-restricted-imports": {"count": 2},- "tailwindcss/enforce-consistent-class-order": {- "count": 3- },"ts/no-explicit-any": {"count": 3}@@ -5615,9 +4318,6 @@"app/components/plugins/install-plugin/install-from-local-package/index.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/plugins/install-plugin/install-from-local-package/steps/uploading.tsx": {@@ -5628,9 +4328,6 @@"app/components/plugins/install-plugin/install-from-marketplace/index.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/plugins/marketplace/description/index.tsx": {@@ -5638,55 +4335,22 @@"count": 9}},- "app/components/plugins/marketplace/empty/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 7- }- },"app/components/plugins/marketplace/hooks.ts": {"@tanstack/query/exhaustive-deps": {"count": 1}},- "app/components/plugins/marketplace/list/list-with-collection.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- }- },"app/components/plugins/marketplace/list/list-wrapper.tsx": {"tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/plugins/marketplace/plugin-type-switch.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/plugins/marketplace/search-box/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },- "app/components/plugins/marketplace/search-box/tags-filter.tsx": {- "no-restricted-imports": {- "count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },- "app/components/plugins/marketplace/search-box/trigger/marketplace.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2+ "count": 1}},- "app/components/plugins/marketplace/search-box/trigger/tool-selector.tsx": {+ "app/components/plugins/marketplace/search-box/tags-filter.tsx": {+ "no-restricted-imports": {+ "count": 1+ },"tailwindcss/enforce-consistent-class-order": {- "count": 4+ "count": 2}},"app/components/plugins/marketplace/sort-dropdown/index.tsx": {@@ -5713,9 +4377,6 @@"app/components/plugins/plugin-auth/authorize/index.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/plugins/plugin-auth/authorize/oauth-client-settings.tsx": {@@ -5805,11 +4466,6 @@"count": 8}},- "app/components/plugins/plugin-detail-panel/app-selector/app-inputs-panel.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/plugins/plugin-detail-panel/app-selector/app-picker.tsx": {"no-restricted-imports": {"count": 1@@ -5818,11 +4474,6 @@"count": 3}},- "app/components/plugins/plugin-detail-panel/app-selector/app-trigger.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/plugins/plugin-detail-panel/app-selector/index.tsx": {"no-restricted-imports": {"count": 1@@ -5876,9 +4527,6 @@"no-restricted-imports": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 4- },"ts/no-explicit-any": {"count": 2}@@ -5888,11 +4536,6 @@"count": 7}},- "app/components/plugins/plugin-detail-panel/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/plugins/plugin-detail-panel/model-list.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 2@@ -5902,18 +4545,10 @@}},"app/components/plugins/plugin-detail-panel/model-selector/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-explicit-any": {"count": 3}},- "app/components/plugins/plugin-detail-panel/model-selector/llm-params-panel.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/plugins/plugin-detail-panel/model-selector/tts-params-panel.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 2@@ -5926,26 +4561,15 @@"no-restricted-imports": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 4- },"ts/no-explicit-any": {"count": 1}},"app/components/plugins/plugin-detail-panel/strategy-detail.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 8- },"ts/no-explicit-any": {"count": 2}},- "app/components/plugins/plugin-detail-panel/strategy-item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/plugins/plugin-detail-panel/subscription-list/create/common-modal.tsx": {"no-restricted-imports": {"count": 1@@ -6016,9 +4640,6 @@"erasable-syntax-only/enums": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 4- },"ts/no-explicit-any": {"count": 2}@@ -6026,25 +4647,16 @@"app/components/plugins/plugin-detail-panel/subscription-list/selector-entry.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/plugins/plugin-detail-panel/subscription-list/selector-view.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/plugins/plugin-detail-panel/subscription-list/subscription-card.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/plugins/plugin-detail-panel/subscription-list/types.ts": {@@ -6060,9 +4672,6 @@"app/components/plugins/plugin-detail-panel/tool-selector/components/reasoning-config-form.tsx": {"no-restricted-imports": {"count": 2- },- "tailwindcss/enforce-consistent-class-order": {- "count": 3}},"app/components/plugins/plugin-detail-panel/tool-selector/components/schema-modal.tsx": {@@ -6083,11 +4692,6 @@"count": 2}},- "app/components/plugins/plugin-detail-panel/tool-selector/components/tool-trigger.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/plugins/plugin-detail-panel/tool-selector/hooks/index.ts": {"no-barrel-files/no-barrel-files": {"count": 2@@ -6096,24 +4700,13 @@"app/components/plugins/plugin-detail-panel/tool-selector/index.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/plugins/plugin-detail-panel/trigger/event-detail-drawer.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 8- },"ts/no-explicit-any": {"count": 5}},- "app/components/plugins/plugin-detail-panel/trigger/event-list.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- }- },"app/components/plugins/plugin-item/action.tsx": {"no-restricted-imports": {"count": 1@@ -6123,9 +4716,6 @@"no-restricted-imports": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 8- },"ts/no-explicit-any": {"count": 1}@@ -6153,17 +4743,11 @@"app/components/plugins/plugin-page/filter-management/category-filter.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 3}},"app/components/plugins/plugin-page/filter-management/tag-filter.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 5}},"app/components/plugins/plugin-page/index.tsx": {@@ -6197,9 +4781,6 @@"app/components/plugins/plugin-page/plugin-tasks/components/task-status-indicator.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/plugins/plugin-page/plugin-tasks/index.tsx": {@@ -6207,17 +4788,9 @@"count": 1}},- "app/components/plugins/readme-panel/entrance.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/plugins/readme-panel/index.tsx": {"react/unsupported-syntax": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/plugins/readme-panel/store.ts": {@@ -6225,21 +4798,6 @@"count": 1}},- "app/components/plugins/reference-setting-modal/auto-update-setting/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },- "app/components/plugins/reference-setting-modal/auto-update-setting/no-data-placeholder.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/plugins/reference-setting-modal/auto-update-setting/no-plugin-selected.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/plugins/reference-setting-modal/auto-update-setting/strategy-picker.tsx": {"no-restricted-imports": {"count": 1@@ -6268,11 +4826,6 @@"count": 1}},- "app/components/plugins/reference-setting-modal/label.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/plugins/types.ts": {"erasable-syntax-only/enums": {"count": 7@@ -6286,11 +4839,6 @@"count": 1}},- "app/components/plugins/update-plugin/plugin-version-picker.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },"app/components/rag-pipeline/components/chunk-card-list/q-a-item.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 2@@ -6333,16 +4881,6 @@"count": 1}},- "app/components/rag-pipeline/components/panel/input-field/editor/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },- "app/components/rag-pipeline/components/panel/input-field/field-list/field-item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },"app/components/rag-pipeline/components/panel/input-field/hooks.ts": {"react/set-state-in-effect": {"count": 1@@ -6373,11 +4911,6 @@"count": 2}},- "app/components/rag-pipeline/components/panel/test-run/preparation/data-source-options/option-card.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/rag-pipeline/components/panel/test-run/preparation/document-processing/index.tsx": {"ts/no-explicit-any": {"count": 1@@ -6416,11 +4949,6 @@"count": 4}},- "app/components/rag-pipeline/components/panel/test-run/result/tabs/tab.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/rag-pipeline/components/publish-as-knowledge-pipeline-modal.tsx": {"no-restricted-imports": {"count": 1@@ -6442,9 +4970,6 @@}},"app/components/rag-pipeline/components/rag-pipeline-header/run-mode.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-explicit-any": {"count": 1}@@ -6522,9 +5047,6 @@"app/components/share/text-generation/info-modal.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/share/text-generation/menu-dropdown.tsx": {@@ -6533,9 +5055,6 @@},"react/set-state-in-effect": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 4}},"app/components/share/text-generation/no-data/index.tsx": {@@ -6557,9 +5076,6 @@}},"app/components/share/text-generation/run-batch/csv-reader/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-explicit-any": {"count": 2}@@ -6575,16 +5091,6 @@"count": 3}},- "app/components/share/text-generation/text-generation-result-panel.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 6- }- },- "app/components/share/text-generation/text-generation-sidebar.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },"app/components/share/text-generation/types.ts": {"erasable-syntax-only/enums": {"count": 1@@ -6623,20 +5129,9 @@"count": 1}},- "app/components/tools/labels/filter.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- }- },"app/components/tools/labels/selector.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1}},"app/components/tools/marketplace/index.tsx": {@@ -6663,27 +5158,11 @@"app/components/tools/mcp/detail/operation-dropdown.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },- "app/components/tools/mcp/detail/provider-detail.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/tools/mcp/detail/tool-item.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 5- }- },- "app/components/tools/mcp/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/tools/mcp/mcp-server-modal.tsx": {@@ -6714,20 +5193,12 @@"count": 3}},- "app/components/tools/mcp/sections/authentication-section.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/tools/mcp/sections/headers-section.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1}},"app/components/tools/provider-list.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- },"ts/no-explicit-any": {"count": 1}@@ -6738,18 +5209,10 @@}},"app/components/tools/provider/empty.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-explicit-any": {"count": 1}},- "app/components/tools/provider/tool-item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/tools/setting/build-in/config-credentials.tsx": {"ts/no-explicit-any": {"count": 3@@ -6776,12 +5239,6 @@"app/components/tools/workflow-tool/method-selector.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 4- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1}},"app/components/workflow-app/components/workflow-children.tsx": {@@ -6857,11 +5314,6 @@"count": 1}},- "app/components/workflow/block-selector/data-sources.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/workflow/block-selector/featured-tools.tsx": {"no-restricted-imports": {"count": 1@@ -6904,9 +5356,6 @@"app/components/workflow/block-selector/index-bar.tsx": {"react-refresh/only-export-components": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/workflow/block-selector/main.tsx": {@@ -6925,17 +5374,6 @@"app/components/workflow/block-selector/market-place-plugin/item.tsx": {"erasable-syntax-only/enums": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 5- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- }- },- "app/components/workflow/block-selector/market-place-plugin/list.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4}},"app/components/workflow/block-selector/rag-tool-recommendations/index.tsx": {@@ -6962,9 +5400,6 @@"app/components/workflow/block-selector/tabs.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/workflow/block-selector/tool-picker.tsx": {@@ -6975,9 +5410,6 @@"app/components/workflow/block-selector/tool/action-item.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 3}},"app/components/workflow/block-selector/tool/tool-list-flat-view/list.tsx": {@@ -6988,18 +5420,12 @@"app/components/workflow/block-selector/tool/tool.tsx": {"react/set-state-in-effect": {"count": 2- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/workflow/block-selector/trigger-plugin/action-item.tsx": {"no-restricted-imports": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 3- },"ts/no-explicit-any": {"count": 1}@@ -7008,9 +5434,6 @@"react/set-state-in-effect": {"count": 2},- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },"ts/no-explicit-any": {"count": 1}@@ -7036,9 +5459,6 @@},"react-refresh/only-export-components": {"count": 1- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1}},"app/components/workflow/candidate-node-main.tsx": {@@ -7061,16 +5481,6 @@"count": 1}},- "app/components/workflow/header/checklist/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 6- }- },- "app/components/workflow/header/checklist/node-group.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/workflow/header/editing-title.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1@@ -7090,9 +5500,6 @@"no-console": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },"ts/no-explicit-any": {"count": 1}@@ -7102,11 +5509,6 @@"count": 1}},- "app/components/workflow/header/scroll-to-selected-node-button.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/workflow/header/test-run-menu-helpers.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1@@ -7123,11 +5525,6 @@"count": 1}},- "app/components/workflow/header/undo-redo.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/workflow/header/version-history-button.tsx": {"no-restricted-imports": {"count": 1@@ -7136,18 +5533,12 @@"app/components/workflow/header/view-history.tsx": {"no-restricted-imports": {"count": 2- },- "tailwindcss/enforce-consistent-class-order": {- "count": 6}},"app/components/workflow/header/view-workflow-history.tsx": {"no-restricted-imports": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 4- },"ts/no-explicit-any": {"count": 1}@@ -7259,9 +5650,6 @@"no-restricted-imports": {"count": 3},- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-explicit-any": {"count": 4}@@ -7283,9 +5671,6 @@"no-restricted-imports": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 3- },"ts/no-explicit-any": {"count": 11}@@ -7323,11 +5708,6 @@"count": 1}},- "app/components/workflow/nodes/_base/components/editor/base.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/workflow/nodes/_base/components/editor/code-editor/editor-support-vars.tsx": {"react/set-state-in-effect": {"count": 1@@ -7340,9 +5720,6 @@"react-refresh/only-export-components": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-explicit-any": {"count": 6}@@ -7371,11 +5748,6 @@"count": 1}},- "app/components/workflow/nodes/_base/components/error-handle/error-handle-on-node.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/workflow/nodes/_base/components/error-handle/error-handle-on-panel.tsx": {"no-restricted-imports": {"count": 1@@ -7394,11 +5766,6 @@"count": 1}},- "app/components/workflow/nodes/_base/components/error-handle/fail-branch-card.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/workflow/nodes/_base/components/error-handle/types.ts": {"erasable-syntax-only/enums": {"count": 1@@ -7410,14 +5777,6 @@"app/components/workflow/nodes/_base/components/field.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },- "app/components/workflow/nodes/_base/components/file-type-item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3}},"app/components/workflow/nodes/_base/components/file-upload-setting.tsx": {@@ -7425,16 +5784,6 @@"count": 1}},- "app/components/workflow/nodes/_base/components/form-input-boolean.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- }- },- "app/components/workflow/nodes/_base/components/form-input-item.sections.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/workflow/nodes/_base/components/form-input-item.tsx": {"no-restricted-imports": {"count": 1@@ -7448,11 +5797,6 @@"count": 1}},- "app/components/workflow/nodes/_base/components/group.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/workflow/nodes/_base/components/help-link.tsx": {"no-restricted-imports": {"count": 1@@ -7467,9 +5811,6 @@"no-restricted-imports": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },"ts/no-explicit-any": {"count": 1}@@ -7479,11 +5820,6 @@"count": 1}},- "app/components/workflow/nodes/_base/components/layout/field-title.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/workflow/nodes/_base/components/layout/index.tsx": {"no-barrel-files/no-barrel-files": {"count": 7@@ -7492,11 +5828,6 @@"count": 7}},- "app/components/workflow/nodes/_base/components/list-no-data-placeholder.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/workflow/nodes/_base/components/mcp-tool-availability.tsx": {"react-refresh/only-export-components": {"count": 1@@ -7508,9 +5839,6 @@}},"app/components/workflow/nodes/_base/components/memory-config.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },"unicorn/prefer-number-properties": {"count": 1}@@ -7528,11 +5856,6 @@"count": 1}},- "app/components/workflow/nodes/_base/components/next-step/container.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/workflow/nodes/_base/components/next-step/operator.tsx": {"no-restricted-imports": {"count": 1@@ -7546,30 +5869,11 @@"app/components/workflow/nodes/_base/components/node-handle.tsx": {"react/set-state-in-effect": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- }- },- "app/components/workflow/nodes/_base/components/node-resizer.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/workflow/nodes/_base/components/option-card.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },- "app/components/workflow/nodes/_base/components/output-vars.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/workflow/nodes/_base/components/panel-operator/index.tsx": {@@ -7581,38 +5885,21 @@"no-restricted-imports": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 4- },"ts/no-explicit-any": {"count": 4}},"app/components/workflow/nodes/_base/components/readonly-input-with-select-var.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-explicit-any": {"count": 1}},- "app/components/workflow/nodes/_base/components/retry/retry-on-node.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/workflow/nodes/_base/components/retry/retry-on-panel.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 3}},"app/components/workflow/nodes/_base/components/selector.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 2- },"ts/no-explicit-any": {"count": 2}@@ -7621,9 +5908,6 @@"no-restricted-imports": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 3- },"ts/no-explicit-any": {"count": 1}@@ -7659,24 +5943,6 @@"app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/picker/field.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },- "app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/picker/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },- "app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/show/field.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 6- }- },- "app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/tree-indent-line.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/workflow/nodes/_base/components/variable/utils.ts": {@@ -7695,9 +5961,6 @@"app/components/workflow/nodes/_base/components/variable/var-list.tsx": {"react/unsupported-syntax": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/workflow/nodes/_base/components/variable/var-reference-picker.tsx": {@@ -7714,30 +5977,11 @@"app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 8- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 3}},"app/components/workflow/nodes/_base/components/variable/var-type-picker.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-label.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },- "app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-name.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-node-label.tsx": {@@ -7762,12 +6006,6 @@"react/set-state-in-effect": {"count": 3},- "tailwindcss/enforce-consistent-class-order": {- "count": 7- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 2- },"ts/no-explicit-any": {"count": 6}@@ -7831,9 +6069,6 @@}},"app/components/workflow/nodes/_base/node.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- },"ts/no-explicit-any": {"count": 1}@@ -7863,9 +6098,6 @@},"react/unsupported-syntax": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/workflow/nodes/agent/default.ts": {@@ -7914,9 +6146,6 @@"app/components/workflow/nodes/assigner/components/operation-selector.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 4}},"app/components/workflow/nodes/assigner/default.ts": {@@ -8072,59 +6301,30 @@"count": 1}},- "app/components/workflow/nodes/http/components/api-input.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- }- },"app/components/workflow/nodes/http/components/authorization/index.tsx": {"no-restricted-imports": {"count": 1}},- "app/components/workflow/nodes/http/components/authorization/radio-group.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/workflow/nodes/http/components/curl-panel.tsx": {"no-restricted-imports": {"count": 1}},- "app/components/workflow/nodes/http/components/edit-body/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/workflow/nodes/http/components/key-value/bulk-edit/index.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 2}},"app/components/workflow/nodes/http/components/key-value/key-value-edit/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },"ts/no-explicit-any": {"count": 2}},- "app/components/workflow/nodes/http/components/key-value/key-value-edit/input-item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/workflow/nodes/http/components/key-value/key-value-edit/item.tsx": {"no-restricted-imports": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-explicit-any": {"count": 1}@@ -8139,11 +6339,6 @@"count": 2}},- "app/components/workflow/nodes/http/panel.tsx": {- "tailwindcss/no-unnecessary-whitespace": {- "count": 2- }- },"app/components/workflow/nodes/http/types.ts": {"erasable-syntax-only/enums": {"count": 5@@ -8175,9 +6370,6 @@"app/components/workflow/nodes/human-input/components/delivery-method/index.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/workflow/nodes/human-input/components/delivery-method/method-item.tsx": {@@ -8188,32 +6380,11 @@"app/components/workflow/nodes/human-input/components/delivery-method/method-selector.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 16}},"app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-input.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/workflow/nodes/human-input/components/delivery-method/recipient/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- }- },- "app/components/workflow/nodes/human-input/components/delivery-method/recipient/member-list.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3}},"app/components/workflow/nodes/human-input/components/delivery-method/recipient/member-selector.tsx": {@@ -8249,31 +6420,15 @@"react/set-state-in-effect": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 2- },"ts/no-explicit-any": {"count": 3}},- "app/components/workflow/nodes/human-input/components/timeout.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/workflow/nodes/human-input/components/variable-in-markdown.tsx": {"react-refresh/only-export-components": {"count": 2}},- "app/components/workflow/nodes/human-input/node.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- }- },"app/components/workflow/nodes/human-input/panel.tsx": {"no-restricted-imports": {"count": 1@@ -8305,9 +6460,6 @@"app/components/workflow/nodes/if-else/components/condition-list/condition-item.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 3}},"app/components/workflow/nodes/if-else/components/condition-list/condition-operator.tsx": {@@ -8320,11 +6472,6 @@"count": 1}},- "app/components/workflow/nodes/if-else/components/condition-list/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- }- },"app/components/workflow/nodes/if-else/components/condition-number-input.tsx": {"no-restricted-imports": {"count": 1@@ -8363,11 +6510,6 @@"count": 1}},- "app/components/workflow/nodes/iteration/add-block.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },"app/components/workflow/nodes/iteration/default.ts": {"ts/no-explicit-any": {"count": 1@@ -8396,11 +6538,6 @@"count": 6}},- "app/components/workflow/nodes/knowledge-base/components/chunk-structure/instruction/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/workflow/nodes/knowledge-base/components/chunk-structure/selector.tsx": {"no-restricted-imports": {"count": 1@@ -8409,14 +6546,6 @@"app/components/workflow/nodes/knowledge-base/components/index-method.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/workflow/nodes/knowledge-base/components/option-card.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4}},"app/components/workflow/nodes/knowledge-base/components/retrieval-setting/hooks.tsx": {@@ -8432,9 +6561,6 @@"app/components/workflow/nodes/knowledge-base/components/retrieval-setting/search-method-option.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 3}},"app/components/workflow/nodes/knowledge-base/components/retrieval-setting/top-k-and-score-threshold.tsx": {@@ -8450,11 +6576,6 @@"count": 2}},- "app/components/workflow/nodes/knowledge-base/node.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/workflow/nodes/knowledge-base/types.ts": {"erasable-syntax-only/enums": {"count": 1@@ -8499,15 +6620,7 @@"count": 4}},- "app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-date.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- },"ts/no-explicit-any": {"count": 1}@@ -8540,11 +6653,6 @@"count": 2}},- "app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- }- },"app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-filter/index.tsx": {"no-restricted-imports": {"count": 1@@ -8599,11 +6707,6 @@"count": 5}},- "app/components/workflow/nodes/list-operator/components/extract-input.tsx": {- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- }- },"app/components/workflow/nodes/list-operator/components/filter-condition.tsx": {"no-restricted-imports": {"count": 1@@ -8616,12 +6719,6 @@"no-restricted-imports": {"count": 2},- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- },"ts/no-explicit-any": {"count": 1}@@ -8653,10 +6750,7 @@}},"app/components/workflow/nodes/llm/components/config-prompt.tsx": {- "react/unsupported-syntax": {- "count": 1- },- "tailwindcss/enforce-consistent-class-order": {+ "react/unsupported-syntax": {"count": 1},"ts/no-explicit-any": {@@ -8667,18 +6761,10 @@"no-restricted-imports": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },"ts/no-explicit-any": {"count": 4}},- "app/components/workflow/nodes/llm/components/json-schema-config-modal/error-message.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/workflow/nodes/llm/components/json-schema-config-modal/index.tsx": {"no-restricted-imports": {"count": 1@@ -8723,11 +6809,6 @@"count": 1}},- "app/components/workflow/nodes/llm/components/json-schema-config-modal/schema-editor.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/card.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 5@@ -8751,22 +6832,11 @@"app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/auto-width-input.tsx": {"react/set-state-in-effect": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },- "app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3}},"app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/type-selector.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 1}},"app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/hooks.ts": {@@ -8823,11 +6893,6 @@"count": 1}},- "app/components/workflow/nodes/loop/add-block.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },"app/components/workflow/nodes/loop/components/condition-add.tsx": {"no-restricted-imports": {"count": 1@@ -8849,9 +6914,6 @@"app/components/workflow/nodes/loop/components/condition-list/condition-item.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 3}},"app/components/workflow/nodes/loop/components/condition-list/condition-operator.tsx": {@@ -8864,11 +6926,6 @@"count": 1}},- "app/components/workflow/nodes/loop/components/condition-list/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- }- },"app/components/workflow/nodes/loop/components/condition-number-input.tsx": {"no-restricted-imports": {"count": 1@@ -8879,15 +6936,7 @@"count": 1}},- "app/components/workflow/nodes/loop/components/loop-variables/empty.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/workflow/nodes/loop/components/loop-variables/form-item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-explicit-any": {"count": 3}@@ -8912,11 +6961,6 @@"count": 1}},- "app/components/workflow/nodes/loop/insert-block.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/workflow/nodes/loop/types.ts": {"erasable-syntax-only/enums": {"count": 2@@ -8992,9 +7036,6 @@},"react/unsupported-syntax": {"count": 2- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/workflow/nodes/question-classifier/default.ts": {@@ -9023,11 +7064,6 @@"count": 8}},- "app/components/workflow/nodes/start/components/var-list.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/workflow/nodes/start/node.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1@@ -9088,9 +7124,6 @@}},"app/components/workflow/nodes/tool/components/mixed-variable-text-input/placeholder.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- },"ts/no-explicit-any": {"count": 1}@@ -9123,11 +7156,6 @@"count": 6}},- "app/components/workflow/nodes/tool/node.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },"app/components/workflow/nodes/tool/output-schema-utils.ts": {"ts/no-explicit-any": {"count": 4@@ -9236,14 +7264,6 @@"app/components/workflow/nodes/trigger-webhook/components/generic-table.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 7- }- },- "app/components/workflow/nodes/trigger-webhook/components/paragraph-input.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3}},"app/components/workflow/nodes/trigger-webhook/default.ts": {@@ -9279,16 +7299,6 @@"count": 1}},- "app/components/workflow/nodes/variable-assigner/components/node-group-item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },- "app/components/workflow/nodes/variable-assigner/components/node-variable-item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/workflow/nodes/variable-assigner/components/var-group-item.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 3@@ -9310,11 +7320,6 @@"count": 5}},- "app/components/workflow/note-node/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/workflow/note-node/note-editor/index.tsx": {"no-barrel-files/no-barrel-files": {"count": 3@@ -9331,9 +7336,6 @@},"react-refresh/only-export-components": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/workflow/note-node/note-editor/toolbar/command.tsx": {@@ -9344,9 +7346,6 @@"app/components/workflow/note-node/note-editor/toolbar/font-size-selector.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/workflow/note-node/note-editor/toolbar/operator.tsx": {@@ -9377,9 +7376,6 @@"app/components/workflow/operator/more-actions.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 6}},"app/components/workflow/operator/tip-popup.tsx": {@@ -9393,9 +7389,6 @@},"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/components/workflow/panel/chat-record/index.tsx": {@@ -9443,11 +7436,6 @@"count": 2}},- "app/components/workflow/panel/chat-variable-panel/components/variable-item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- }- },"app/components/workflow/panel/chat-variable-panel/components/variable-modal-trigger.tsx": {"no-restricted-imports": {"count": 1@@ -9457,18 +7445,10 @@"no-restricted-imports": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 3- },"ts/no-explicit-any": {"count": 4}},- "app/components/workflow/panel/chat-variable-panel/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 12- }- },"app/components/workflow/panel/chat-variable-panel/type.ts": {"erasable-syntax-only/enums": {"count": 1@@ -9483,9 +7463,6 @@"no-restricted-imports": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 8- },"ts/no-explicit-any": {"count": 2}@@ -9503,24 +7480,6 @@"app/components/workflow/panel/debug-and-preview/index.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 3- }- },- "app/components/workflow/panel/debug-and-preview/user-input.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/workflow/panel/env-panel/env-item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 6- }- },- "app/components/workflow/panel/env-panel/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3}},"app/components/workflow/panel/env-panel/variable-modal.tsx": {@@ -9539,26 +7498,11 @@"count": 1}},- "app/components/workflow/panel/global-variable-panel/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },- "app/components/workflow/panel/global-variable-panel/item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/workflow/panel/human-input-form-list.tsx": {"ts/no-explicit-any": {"count": 1}},- "app/components/workflow/panel/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/workflow/panel/inputs-panel.tsx": {"ts/no-explicit-any": {"count": 4@@ -9574,14 +7518,6 @@"count": 1}},- "app/components/workflow/panel/version-history-panel/context-menu/menu-item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- }- },"app/components/workflow/panel/version-history-panel/delete-confirm-modal.tsx": {"no-restricted-imports": {"count": 1@@ -9600,9 +7536,6 @@"app/components/workflow/panel/version-history-panel/filter/index.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1}},"app/components/workflow/panel/version-history-panel/index.tsx": {@@ -9615,27 +7548,11 @@"count": 1}},- "app/components/workflow/panel/version-history-panel/loading/item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- }- },"app/components/workflow/panel/version-history-panel/restore-confirm-modal.tsx": {"no-restricted-imports": {"count": 1}},- "app/components/workflow/panel/version-history-panel/version-history-item.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 5- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- }- },"app/components/workflow/panel/workflow-preview.tsx": {"ts/no-explicit-any": {"count": 2@@ -9646,11 +7563,6 @@"count": 1}},- "app/components/workflow/run/agent-log/agent-log-trigger.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- }- },"app/components/workflow/run/agent-log/index.tsx": {"no-barrel-files/no-barrel-files": {"count": 2@@ -9664,9 +7576,6 @@"app/components/workflow/run/index.tsx": {"react/set-state-in-effect": {"count": 2- },- "tailwindcss/enforce-consistent-class-order": {- "count": 3}},"app/components/workflow/run/iteration-log/index.tsx": {@@ -9679,11 +7588,6 @@"count": 1}},- "app/components/workflow/run/iteration-log/iteration-result-panel.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/workflow/run/loop-log/index.tsx": {"no-barrel-files/no-barrel-files": {"count": 2@@ -9694,19 +7598,6 @@"count": 1}},- "app/components/workflow/run/loop-log/loop-result-panel.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/workflow/run/loop-result-panel.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 3- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- }- },"app/components/workflow/run/meta.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 13@@ -9718,9 +7609,6 @@},"react/set-state-in-effect": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 6}},"app/components/workflow/run/output-panel.tsx": {@@ -9760,21 +7648,6 @@"count": 1}},- "app/components/workflow/run/status-container.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },- "app/components/workflow/run/status.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 8- }- },- "app/components/workflow/run/tracing-panel.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/workflow/run/utils/format-log/agent/index.ts": {"ts/no-explicit-any": {"count": 11@@ -9808,16 +7681,6 @@"count": 2}},- "app/components/workflow/shortcuts-name.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/workflow/simple-node/index.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/workflow/store/index.ts": {"no-barrel-files/no-barrel-files": {"count": 2@@ -9898,18 +7761,10 @@}},"app/components/workflow/variable-inspect/display-content.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- },"ts/no-explicit-any": {"count": 1}},- "app/components/workflow/variable-inspect/empty.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/workflow/variable-inspect/group.tsx": {"no-restricted-imports": {"count": 1@@ -9918,11 +7773,6 @@"count": 2}},- "app/components/workflow/variable-inspect/large-data-alert.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/workflow/variable-inspect/left.tsx": {"ts/no-explicit-any": {"count": 1@@ -9937,9 +7787,6 @@}},"app/components/workflow/variable-inspect/panel.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 4- },"ts/no-explicit-any": {"count": 1}@@ -9948,9 +7795,6 @@"no-restricted-imports": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 5- },"ts/no-explicit-any": {"count": 3}@@ -9959,9 +7803,6 @@"no-restricted-imports": {"count": 1},- "tailwindcss/enforce-consistent-class-order": {- "count": 4- },"ts/no-explicit-any": {"count": 1}@@ -9971,11 +7812,6 @@"count": 2}},- "app/components/workflow/variable-inspect/value-content-sections.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },"app/components/workflow/variable-inspect/value-content.tsx": {"react/set-state-in-effect": {"count": 5@@ -9995,25 +7831,9 @@"count": 2}},- "app/components/workflow/workflow-preview/components/error-handle-on-node.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- }- },- "app/components/workflow/workflow-preview/components/node-handle.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 2- }- },"app/components/workflow/workflow-preview/components/nodes/base.tsx": {"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 5- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1}},"app/components/workflow/workflow-preview/components/nodes/constants.ts": {@@ -10042,9 +7862,6 @@},"no-restricted-imports": {"count": 1- },- "tailwindcss/enforce-consistent-class-order": {- "count": 2}},"app/education-apply/expire-notice-modal.tsx": {@@ -10057,14 +7874,6 @@"count": 5}},- "app/education-apply/role-selector.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },- "tailwindcss/no-unnecessary-whitespace": {- "count": 1- }- },"app/education-apply/search-input.tsx": {"no-restricted-imports": {"count": 1@@ -10097,9 +7906,6 @@}},"app/reset-password/layout.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-explicit-any": {"count": 1}@@ -10120,9 +7926,6 @@}},"app/signin/layout.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-explicit-any": {"count": 1}@@ -10136,9 +7939,6 @@}},"app/signup/layout.tsx": {- "tailwindcss/enforce-consistent-class-order": {- "count": 1- },"ts/no-explicit-any": {"count": 1}diff --git a/web/package.json b/web/package.jsonindex 8bc31dce314..5fb0f4a4004 100644--- a/web/package.json+++ b/web/package.json@@ -86,7 +86,6 @@"ahooks": "catalog:","class-variance-authority": "catalog:","client-only": "catalog:",- "clsx": "catalog:","cmdk": "catalog:","copy-to-clipboard": "catalog:","cron-parser": "catalog:",@@ -147,7 +146,6 @@"std-semver": "catalog:","streamdown": "catalog:","string-ts": "catalog:",- "tailwind-merge": "catalog:","tldts": "catalog:","unist-util-visit": "catalog:","use-context-selector": "catalog:",@@ -165,6 +163,7 @@"@hono/node-server": "catalog:","@iconify-json/heroicons": "catalog:","@iconify-json/ri": "catalog:",+ "@langgenius/dify-ui": "workspace:*","@mdx-js/loader": "catalog:","@mdx-js/react": "catalog:","@mdx-js/rollup": "catalog:",diff --git a/web/scripts/gen-icons.mjs b/web/scripts/gen-icons.mjsindex 183cef6960c..4fb5ce5840b 100644--- a/web/scripts/gen-icons.mjs+++ b/web/scripts/gen-icons.mjs@@ -115,7 +115,7 @@ const generateImageComponent = async (entry, relativeSegments) => {// DON NOT EDIT IT MANUALLYimport * as React from 'react'-import { cn } from '@/utils/classnames'+import { cn } from '@langgenius/dify-ui/cn'import s from './<%= fileName %>.module.css'const Icon = (diff --git a/web/tailwind-common-config.ts b/web/tailwind-common-config.tsindex db50f2457b8..0ebcfd8a710 100644--- a/web/tailwind-common-config.ts+++ b/web/tailwind-common-config.ts@@ -1,100 +1,21 @@import { icons as customPublicIcons } from '@dify/iconify-collections/custom-public'import { icons as customVenderIcons } from '@dify/iconify-collections/custom-vender'import { getIconCollections, iconsPlugin } from '@egoist/tailwindcss-icons'+import difyUIPreset from '@langgenius/dify-ui/tailwind-preset'import tailwindTypography from '@tailwindcss/typography'-import tailwindThemeVarDefine from './themes/tailwind-theme-var-define'import typography from './typography.js'const config = {+ presets: [difyUIPreset],theme: {typography,extend: {- colors: {- gray: {- 25: '#fcfcfd',- 50: '#f9fafb',- 100: '#f2f4f7',- 200: '#eaecf0',- 300: '#d0d5dd',- 400: '#98a2b3',- 500: '#667085',- 700: '#475467',- 600: '#344054',- 800: '#1d2939',- 900: '#101828',- },- primary: {- 25: '#f5f8ff',- 50: '#eff4ff',- 100: '#d1e0ff',- 200: '#b2ccff',- 300: '#84adff',- 400: '#528bff',- 500: '#2970ff',- 600: '#155eef',- 700: '#004eeb',- 800: '#0040c1',- 900: '#00359e',- },- blue: {- 500: '#E1EFFE',- },- green: {- 50: '#F3FAF7',- 100: '#DEF7EC',- 800: '#03543F',-- },- yellow: {- 100: '#FDF6B2',- 800: '#723B13',- },- purple: {- 50: '#F6F5FF',- 200: '#DCD7FE',- },- indigo: {- 25: '#F5F8FF',- 50: '#EEF4FF',- 100: '#E0EAFF',- 300: '#A4BCFD',- 400: '#8098F9',- 600: '#444CE7',- 800: '#2D31A6',- },- ...tailwindThemeVarDefine,- },screens: {'mobile': '100px',- // => @media (min-width: 100px) { ... }- 'tablet': '640px', // 391- // => @media (min-width: 600px) { ... }+ 'tablet': '640px','pc': '769px',- // => @media (min-width: 769px) { ... }'2k': '2560px',},- boxShadow: {- 'xs': '0px 1px 2px 0px rgba(16, 24, 40, 0.05)',- 'sm': '0px 1px 2px 0px rgba(16, 24, 40, 0.06), 0px 1px 3px 0px rgba(16, 24, 40, 0.10)',- 'sm-no-bottom': '0px -1px 2px 0px rgba(16, 24, 40, 0.06), 0px -1px 3px 0px rgba(16, 24, 40, 0.10)',- 'md': '0px 2px 4px -2px rgba(16, 24, 40, 0.06), 0px 4px 8px -2px rgba(16, 24, 40, 0.10)',- 'lg': '0px 4px 6px -2px rgba(16, 24, 40, 0.03), 0px 12px 16px -4px rgba(16, 24, 40, 0.08)',- 'xl': '0px 8px 8px -4px rgba(16, 24, 40, 0.03), 0px 20px 24px -4px rgba(16, 24, 40, 0.08)',- '2xl': '0px 24px 48px -12px rgba(16, 24, 40, 0.18)',- '3xl': '0px 32px 64px -12px rgba(16, 24, 40, 0.14)',- 'status-indicator-green-shadow': '0px 2px 6px 0px var(--color-components-badge-status-light-success-halo), 0px 0px 0px 1px var(--color-components-badge-status-light-border-outer)',- 'status-indicator-warning-shadow': '0px 2px 6px 0px var(--color-components-badge-status-light-warning-halo), 0px 0px 0px 1px var(--color-components-badge-status-light-border-outer)',- 'status-indicator-red-shadow': '0px 2px 6px 0px var(--color-components-badge-status-light-error-halo), 0px 0px 0px 1px var(--color-components-badge-status-light-border-outer)',- 'status-indicator-blue-shadow': '0px 2px 6px 0px var(--color-components-badge-status-light-normal-halo), 0px 0px 0px 1px var(--color-components-badge-status-light-border-outer)',- 'status-indicator-gray-shadow': '0px 1px 2px 0px var(--color-components-badge-status-light-disabled-halo), 0px 0px 0px 1px var(--color-components-badge-status-light-border-outer)',- },- opacity: {- 2: '0.02',- 8: '0.08',- },- fontSize: {- '2xs': '0.625rem',- },backgroundColor: {'background-gradient-bg-fill-chat-bubble-bg-3': 'var(--color-background-gradient-bg-fill-chat-bubble-bg-3)',},@@ -162,7 +83,6 @@ const config = {},}),],- // https://github.com/tailwindlabs/tailwindcss/discussions/5969corePlugins: {preflight: false,},diff --git a/web/themes/markdown-light.css b/web/themes/markdown-light.cssdeleted file mode 100644index 7399325884c..00000000000--- a/web/themes/markdown-light.css+++ /dev/null@@ -1,44 +0,0 @@-html[data-theme="light"] {- --color-prettylights-syntax-comment: #6e7781;- --color-prettylights-syntax-constant: #0550ae;- --color-prettylights-syntax-entity: #8250df;- --color-prettylights-syntax-storage-modifier-import: #24292f;- --color-prettylights-syntax-entity-tag: #116329;- --color-prettylights-syntax-keyword: #cf222e;- --color-prettylights-syntax-string: #0a3069;- --color-prettylights-syntax-variable: #953800;- --color-prettylights-syntax-brackethighlighter-unmatched: #82071e;- --color-prettylights-syntax-invalid-illegal-text: #f6f8fa;- --color-prettylights-syntax-invalid-illegal-bg: #82071e;- --color-prettylights-syntax-carriage-return-text: #f6f8fa;- --color-prettylights-syntax-carriage-return-bg: #cf222e;- --color-prettylights-syntax-string-regexp: #116329;- --color-prettylights-syntax-markup-list: #3b2300;- --color-prettylights-syntax-markup-heading: #0550ae;- --color-prettylights-syntax-markup-italic: #24292f;- --color-prettylights-syntax-markup-bold: #24292f;- --color-prettylights-syntax-markup-deleted-text: #82071e;- --color-prettylights-syntax-markup-deleted-bg: #ffebe9;- --color-prettylights-syntax-markup-inserted-text: #116329;- --color-prettylights-syntax-markup-inserted-bg: #dafbe1;- --color-prettylights-syntax-markup-changed-text: #953800;- --color-prettylights-syntax-markup-changed-bg: #ffd8b5;- --color-prettylights-syntax-markup-ignored-text: #eaeef2;- --color-prettylights-syntax-markup-ignored-bg: #0550ae;- --color-prettylights-syntax-meta-diff-range: #8250df;- --color-prettylights-syntax-brackethighlighter-angle: #57606a;- --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;- --color-prettylights-syntax-constant-other-reference-link: #0a3069;- --color-fg-default: #24292f;- --color-fg-muted: #57606a;- --color-fg-subtle: #6e7781;- --color-canvas-default: transparent;- --color-canvas-subtle: #f6f8fa;- --color-border-default: #d0d7de;- --color-border-muted: hsla(210, 18%, 87%, 1);- --color-neutral-muted: rgba(175, 184, 193, 0.2);- --color-accent-fg: #0969da;- --color-accent-emphasis: #0969da;- --color-attention-subtle: #fff8c5;- --color-danger-fg: #cf222e;- }diff --git a/web/themes/markdown-dark.css b/web/themes/markdown.csssimilarity index 98%rename from web/themes/markdown-dark.cssrename to web/themes/markdown.cssindex 3dc47284901..a26f7582d5e 100644--- a/web/themes/markdown-dark.css+++ b/web/themes/markdown.css@@ -1,3 +1,4 @@+html[data-theme="light"],html[data-theme="dark"] {--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;