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
refactor(dify-ui): rename radio family entrypoint (#41104)
yyhc62947f1f1d2
diff --git a/packages/dify-ui/README.md b/packages/dify-ui/README.mdindex 0b1fb45c76c..5825f310a82 100644--- a/packages/dify-ui/README.md+++ b/packages/dify-ui/README.md@@ -34,18 +34,18 @@ Import `styles.css` once from the consumer's root stylesheet or entrypoint.## Primitives-| Category | Public subpaths |-| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |-| Actions | `./button`, `./icon-button`, `./toggle` |-| Controls | `./segmented-control` |-| Display | `./collapsible`, `./kbd` |-| Feedback | `./meter`, `./progress`, `./status-dot`, `./toast` |-| Form | `./form`, `./field`, `./fieldset`, `./input`, `./input-group`, `./textarea`, `./checkbox`, `./checkbox-group`, `./radio`, `./number-field`, `./select`, `./slider`, `./switch` |-| Layout | `./scroll-area` |-| Media | `./avatar` |-| Navigation | `./file-tree`, `./pagination`, `./tabs` |-| Overlay and menu | `./alert-dialog`, `./context-menu`, `./dialog`, `./drawer`, `./dropdown-menu`, `./popover`, `./preview-card`, `./tooltip` |-| Search and pick | `./autocomplete`, `./combobox`, `./select` |+| Category | Public subpaths |+| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |+| Actions | `./button`, `./icon-button`, `./toggle` |+| Controls | `./segmented-control` |+| Display | `./collapsible`, `./kbd` |+| Feedback | `./meter`, `./progress`, `./status-dot`, `./toast` |+| Form | `./form`, `./field`, `./fieldset`, `./input`, `./input-group`, `./textarea`, `./checkbox`, `./checkbox-group`, `./radio-group`, `./number-field`, `./select`, `./slider`, `./switch` |+| Layout | `./scroll-area` |+| Media | `./avatar` |+| Navigation | `./file-tree`, `./pagination`, `./tabs` |+| Overlay and menu | `./alert-dialog`, `./context-menu`, `./dialog`, `./drawer`, `./dropdown-menu`, `./popover`, `./preview-card`, `./tooltip` |+| Search and pick | `./autocomplete`, `./combobox`, `./select` |Utilities:@@ -68,14 +68,14 @@ Upstream behavior remains owned by the [Base UI documentation].### Cross-component guides-| Guide | Scope |-| ------------------------- | ------------------------------------------------------------------------ |-| [Forms] | Native submit boundaries, fields, labels, grouped controls, and errors. |-| [Selection] | Typed values and choosing among segmented controls, pickers, and radios. |-| [Overlays] | Portals, root isolation, layering, trigger composition, and semantics. |-| [Styling] | Tailwind CSS integration and the Figma radius mapping. |-| [Public API authoring] | Subpath exports, naming, public types, generics, and private helpers. |-| [Testing and development] | Package commands, test ownership, accessibility, and animation setup. |+| Guide | Scope |+| ------------------------- | ------------------------------------------------------------------------------ |+| [Forms] | Native submit boundaries, fields, labels, grouped controls, and errors. |+| [Selection] | Typed values and choosing among segmented controls, pickers, and radio groups. |+| [Overlays] | Portals, root isolation, layering, trigger composition, and semantics. |+| [Styling] | Tailwind CSS integration and the Figma radius mapping. |+| [Public API authoring] | Subpath exports, naming, public types, generics, and private helpers. |+| [Testing and development] | Package commands, test ownership, accessibility, and animation setup. |## Contributingdiff --git a/packages/dify-ui/docs/forms.md b/packages/dify-ui/docs/forms.mdindex 987d2096212..f3d3f21c1fe 100644--- a/packages/dify-ui/docs/forms.md+++ b/packages/dify-ui/docs/forms.md@@ -25,8 +25,8 @@ message relationships.Choose the label primitive by the control:-- Text-like inputs, `Textarea`, input-based `Combobox` and `Autocomplete`, a single `Checkbox` or- `Radio`, `Switch`, and `NumberField` use `FieldLabel`.+- Text-like inputs, `Textarea`, input-based `Combobox` and `Autocomplete`, a single `Checkbox`,+ each `Radio` option, `Switch`, and `NumberField` use `FieldLabel`.- Trigger-based `Select` fields use `SelectLabel`.- `Slider` fields follow the [Base UI Slider anatomy] and use `SliderLabel`; only multi-thumbsliders add per-thumb `aria-label` to distinguish the thumbs.@@ -58,6 +58,9 @@ option with `FieldItem` and give it its own label:`Fieldset` owns group semantics and the legend relationship, not interactive state. Pass`disabled`, `value`, `defaultValue`, and change handlers to the group primitive.+Every radio belongs to a `RadioGroup`. Use `FieldsetLegend` to name the group and `FieldLabel` to+name each option; do not render a standalone `Radio`.+Keep form state, schemas, server validation, and reset behavior outside these primitives. Passtheir observable state through the public field and control props instead of replacing thesemantic structure.diff --git a/packages/dify-ui/docs/selection.md b/packages/dify-ui/docs/selection.mdindex cfbc441632d..16a2a397a88 100644--- a/packages/dify-ui/docs/selection.md+++ b/packages/dify-ui/docs/selection.md@@ -5,6 +5,8 @@ domain value type through its public API.## Primitive choice+- [`RadioGroup`] selects one persistent field value from a visible set of options. Every `Radio` or+ `RadioItem` belongs to a group; do not render a standalone radio.- `SegmentedControl` selects one mode, filter, or view. It follows radio-group semantics: an activeitem cannot be toggled off, `Tab` enters on the selected item, and arrow keys move and select.- `Tabs` selects a panel and provides `tablist` and `tabpanel` semantics.@@ -23,6 +25,12 @@ Use `Radio` for the default radio appearance. Use `RadioItem` when custom contenradio item, and put `RadioControl` inside it for Dify UI's visual indicator. `RadioControl` is avisual part, not a standalone radio.+Import the complete family from its single public subpath:++```tsx+import { Radio, RadioControl, RadioGroup, RadioItem } from '@langgenius/dify-ui/radio-group'+```+## Typed valuesDo not widen domain values to `string`. Use `Select<Value, Multiple>`, `RadioGroup<Value>`,@@ -71,4 +79,5 @@ the domain boundary unless the upstream primitive contract changes.[`Autocomplete`]: https://base-ui.com/react/components/autocomplete[`Combobox`]: https://base-ui.com/react/components/combobox+[`RadioGroup`]: https://base-ui.com/react/components/radio[`Select`]: https://base-ui.com/react/components/selectdiff --git a/packages/dify-ui/package.json b/packages/dify-ui/package.jsonindex c423d111fc6..3a06d88f131 100644--- a/packages/dify-ui/package.json+++ b/packages/dify-ui/package.json@@ -109,9 +109,9 @@"types": "./src/pagination/index.tsx","import": "./src/pagination/index.tsx"},- "./radio": {- "types": "./src/radio/index.tsx",- "import": "./src/radio/index.tsx"+ "./radio-group": {+ "types": "./src/radio-group/index.tsx",+ "import": "./src/radio-group/index.tsx"},"./popover": {"types": "./src/popover/index.tsx",diff --git a/packages/dify-ui/src/radio/__tests__/index.spec.tsx b/packages/dify-ui/src/radio-group/__tests__/index.spec.tsxsimilarity index 100%rename from packages/dify-ui/src/radio/__tests__/index.spec.tsxrename to packages/dify-ui/src/radio-group/__tests__/index.spec.tsxdiff --git a/packages/dify-ui/src/radio/index.stories.tsx b/packages/dify-ui/src/radio-group/index.stories.tsxsimilarity index 95%rename from packages/dify-ui/src/radio/index.stories.tsxrename to packages/dify-ui/src/radio-group/index.stories.tsxindex 912a796561a..36dc1ff3500 100644--- a/packages/dify-ui/src/radio/index.stories.tsx+++ b/packages/dify-ui/src/radio-group/index.stories.tsx@@ -5,14 +5,14 @@ import { Field, FieldDescription, FieldItem, FieldLabel } from '../field'import { Fieldset, FieldsetLegend } from '../fieldset'const meta = {- title: 'Base/Form/Radio',+ title: 'Base/Form/Radio Group',component: RadioGroup,parameters: {layout: 'centered',docs: {description: {component:- '`@langgenius/dify-ui/radio` exports the complete radio family. `RadioGroup` owns single-selection state, `Radio` is the default Dify control for plain form rows, `RadioItem` makes custom UI the radio item, and `RadioControl` renders the standard visual dot inside custom items.',+ '`@langgenius/dify-ui/radio-group` exports the complete radio family. Every radio belongs to a `RadioGroup`, which owns single-selection state and group interaction. `Radio` is the default Dify control for plain form rows, `RadioItem` makes custom UI the radio item, and `RadioControl` renders the standard visual dot inside custom items.',},},},diff --git a/packages/dify-ui/src/radio/index.tsx b/packages/dify-ui/src/radio-group/index.tsxsimilarity index 100%rename from packages/dify-ui/src/radio/index.tsxrename to packages/dify-ui/src/radio-group/index.tsxdiff --git a/web/app/components/app/app-access-control/__tests__/access-control-item.spec.tsx b/web/app/components/app/app-access-control/__tests__/access-control-item.spec.tsxindex c28207801ef..5e4d08dfcd8 100644--- a/web/app/components/app/app-access-control/__tests__/access-control-item.spec.tsx+++ b/web/app/components/app/app-access-control/__tests__/access-control-item.spec.tsx@@ -1,4 +1,4 @@-import { RadioGroup } from '@langgenius/dify-ui/radio'+import { RadioGroup } from '@langgenius/dify-ui/radio-group'import { render, screen } from '@testing-library/react'import userEvent from '@testing-library/user-event'import { useState } from 'react'diff --git a/web/app/components/app/app-access-control/access-control-form.tsx b/web/app/components/app/app-access-control/access-control-form.tsxindex 84278c4a577..182172516ea 100644--- a/web/app/components/app/app-access-control/access-control-form.tsx+++ b/web/app/components/app/app-access-control/access-control-form.tsx@@ -7,7 +7,7 @@ import type {import type { AccessMode } from '@/models/access-control'import { Button } from '@langgenius/dify-ui/button'import { DialogDescription, DialogTitle } from '@langgenius/dify-ui/dialog'-import { RadioGroup } from '@langgenius/dify-ui/radio'+import { RadioGroup } from '@langgenius/dify-ui/radio-group'import { useId } from 'react'import { useTranslation } from 'react-i18next'import { AccessMode as AccessModeValue } from '@/models/access-control'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 358ce8bbd35..b1cd869e9b1 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@@ -2,7 +2,7 @@import type { PropsWithChildren } from 'react'import type { AccessMode } from '@/models/access-control'import { cn } from '@langgenius/dify-ui/cn'-import { RadioItem } from '@langgenius/dify-ui/radio'+import { RadioItem } from '@langgenius/dify-ui/radio-group'type AccessControlItemProps = PropsWithChildren<{type: AccessModediff --git a/web/app/components/base/features/new-feature-panel/follow-up-setting-modal.tsx b/web/app/components/base/features/new-feature-panel/follow-up-setting-modal.tsxindex 5ec27e95aee..708e23ef9a2 100644--- a/web/app/components/base/features/new-feature-panel/follow-up-setting-modal.tsx+++ b/web/app/components/base/features/new-feature-panel/follow-up-setting-modal.tsx@@ -6,7 +6,7 @@ import { Dialog, DialogClose, DialogContent, DialogTitle } from '@langgenius/difimport { Field, FieldItem } from '@langgenius/dify-ui/field'import { Fieldset, FieldsetLegend } from '@langgenius/dify-ui/fieldset'import { IconButton } from '@langgenius/dify-ui/icon-button'-import { RadioControl, RadioGroup, RadioItem } from '@langgenius/dify-ui/radio'+import { RadioControl, RadioGroup, RadioItem } from '@langgenius/dify-ui/radio-group'import { Textarea } from '@langgenius/dify-ui/textarea'import { produce } from 'immer'import { useCallback, useMemo, useState } from 'react'diff --git a/web/app/components/base/form/components/base/base-field.tsx b/web/app/components/base/form/components/base/base-field.tsxindex 069e1d6f88d..10b2d7afb36 100644--- a/web/app/components/base/form/components/base/base-field.tsx+++ b/web/app/components/base/form/components/base/base-field.tsx@@ -3,7 +3,7 @@ import type { FieldState, FormSchema, TypeWithI18N } from '@/app/components/baseimport { cn } from '@langgenius/dify-ui/cn'import { Field, FieldItem, FieldLabel } from '@langgenius/dify-ui/field'import { Fieldset, FieldsetLegend } from '@langgenius/dify-ui/fieldset'-import { Radio, RadioGroup } from '@langgenius/dify-ui/radio'+import { Radio, RadioGroup } from '@langgenius/dify-ui/radio-group'import {Select,SelectContent,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 f13dbc42aae..1bbfe13e4c3 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@@ -2,7 +2,7 @@ import type { CSSProperties } from 'react'import type { NotionPageRow as NotionPageRowData, NotionPageSelectionMode } from './types'import { Checkbox } from '@langgenius/dify-ui/checkbox'import { cn } from '@langgenius/dify-ui/cn'-import { Radio } from '@langgenius/dify-ui/radio'+import { Radio } from '@langgenius/dify-ui/radio-group'import { RiArrowDownSLine, RiArrowRightSLine } from '@remixicon/react'import { memo } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/base/notion-page-selector/page-selector/virtual-page-list.tsx b/web/app/components/base/notion-page-selector/page-selector/virtual-page-list.tsxindex 2541a0ee873..0d9a0d7df94 100644--- a/web/app/components/base/notion-page-selector/page-selector/virtual-page-list.tsx+++ b/web/app/components/base/notion-page-selector/page-selector/virtual-page-list.tsx@@ -1,7 +1,7 @@'use client'import type { NotionPageRow, NotionPageSelectionMode } from './types'-import { RadioGroup } from '@langgenius/dify-ui/radio'+import { RadioGroup } from '@langgenius/dify-ui/radio-group'import { useVirtualizer } from '@tanstack/react-virtual'import { useRef } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/base/radio-card/__tests__/index.spec.tsx b/web/app/components/base/radio-card/__tests__/index.spec.tsxindex 1785353d4c9..04755d99505 100644--- a/web/app/components/base/radio-card/__tests__/index.spec.tsx+++ b/web/app/components/base/radio-card/__tests__/index.spec.tsx@@ -1,4 +1,4 @@-import { RadioGroup } from '@langgenius/dify-ui/radio'+import { RadioGroup } from '@langgenius/dify-ui/radio-group'import { render, screen } from '@testing-library/react'import userEvent from '@testing-library/user-event'import { describe, expect, it, vi } from 'vite-plus/test'diff --git a/web/app/components/base/radio-card/index.stories.tsx b/web/app/components/base/radio-card/index.stories.tsxindex 3c5f8536c77..d2b2896bbd0 100644--- a/web/app/components/base/radio-card/index.stories.tsx+++ b/web/app/components/base/radio-card/index.stories.tsx@@ -1,5 +1,5 @@import type { Meta, StoryObj } from '@storybook/nextjs-vite'-import { RadioGroup } from '@langgenius/dify-ui/radio'+import { RadioGroup } from '@langgenius/dify-ui/radio-group'import { RiDatabase2Line, RiFileList3Line, RiRocketLine } from '@remixicon/react'import { useState } from 'react'import RadioCard from '.'diff --git a/web/app/components/base/radio-card/index.tsx b/web/app/components/base/radio-card/index.tsxindex 3af5c37517f..f3778823d6b 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 { RadioItemProps } from '@langgenius/dify-ui/radio'+import type { RadioItemProps } from '@langgenius/dify-ui/radio-group'import type { ReactNode } from 'react'import { cn } from '@langgenius/dify-ui/cn'-import { RadioControl, RadioItem } from '@langgenius/dify-ui/radio'+import { RadioControl, RadioItem } from '@langgenius/dify-ui/radio-group'type BaseProps = {className?: stringdiff --git a/web/app/components/datasets/common/retrieval-param-config/index.tsx b/web/app/components/datasets/common/retrieval-param-config/index.tsxindex fffe12b9bb3..aa48a542549 100644--- a/web/app/components/datasets/common/retrieval-param-config/index.tsx+++ b/web/app/components/datasets/common/retrieval-param-config/index.tsx@@ -2,7 +2,7 @@import type { FC } from 'react'import type { RetrievalConfig } from '@/types/app'import { cn } from '@langgenius/dify-ui/cn'-import { RadioGroup } from '@langgenius/dify-ui/radio'+import { RadioGroup } from '@langgenius/dify-ui/radio-group'import { Switch } from '@langgenius/dify-ui/switch'import { toast } from '@langgenius/dify-ui/toast'import * as React from 'react'diff --git a/web/app/components/datasets/create/step-two/components/parent-child-options.tsx b/web/app/components/datasets/create/step-two/components/parent-child-options.tsxindex 2484868aa74..1448e430394 100644--- a/web/app/components/datasets/create/step-two/components/parent-child-options.tsx+++ b/web/app/components/datasets/create/step-two/components/parent-child-options.tsx@@ -9,7 +9,7 @@ import type {} from '@/models/datasets'import { Button } from '@langgenius/dify-ui/button'import { Checkbox } from '@langgenius/dify-ui/checkbox'-import { RadioGroup } from '@langgenius/dify-ui/radio'+import { RadioGroup } from '@langgenius/dify-ui/radio-group'import { RiSearchEyeLine } from '@remixicon/react'import { useSuspenseQuery } from '@tanstack/react-query'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/__tests__/index.spec.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/__tests__/index.spec.tsxindex 2a15b6f2584..49a9b55b465 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/__tests__/index.spec.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/__tests__/index.spec.tsx@@ -1,6 +1,6 @@import type { Mock } from 'vite-plus/test'import type { OnlineDriveFile } from '@/models/pipeline'-import { RadioGroup } from '@langgenius/dify-ui/radio'+import { RadioGroup } from '@langgenius/dify-ui/radio-group'import { fireEvent, render, screen, waitFor } from '@testing-library/react'import * as React from 'react'import { OnlineDriveFileType } from '@/models/pipeline'diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/__tests__/item.spec.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/__tests__/item.spec.tsxindex a95bd775fe9..8acee1d9f42 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/__tests__/item.spec.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/__tests__/item.spec.tsx@@ -1,5 +1,5 @@import type { OnlineDriveFile } from '@/models/pipeline'-import { RadioGroup } from '@langgenius/dify-ui/radio'+import { RadioGroup } from '@langgenius/dify-ui/radio-group'import { fireEvent, render, screen } from '@testing-library/react'import { beforeEach, describe, expect, it, vi } from 'vite-plus/test'import Item from '../item'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 2ba1c033c18..ed77e0a4fb5 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@@ -1,5 +1,5 @@import type { OnlineDriveFile } from '@/models/pipeline'-import { RadioGroup } from '@langgenius/dify-ui/radio'+import { RadioGroup } from '@langgenius/dify-ui/radio-group'import { RiLoader2Line } from '@remixicon/react'import * as React from 'react'import { useEffect, useRef } from 'react'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 8d36f5f5ba3..60fc2f2a0f5 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,7 +1,7 @@import type { OnlineDriveFile } from '@/models/pipeline'import { Checkbox } from '@langgenius/dify-ui/checkbox'import { Popover, PopoverContent, PopoverTrigger } from '@langgenius/dify-ui/popover'-import { Radio } from '@langgenius/dify-ui/radio'+import { Radio } from '@langgenius/dify-ui/radio-group'import * as React from 'react'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/__tests__/index.spec.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/__tests__/index.spec.tsxindex 3fd2fd1dc18..fe9d0551c80 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/__tests__/index.spec.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/__tests__/index.spec.tsx@@ -1,5 +1,5 @@import type { CrawlResultItem as CrawlResultItemType } from '@/models/datasets'-import { RadioGroup } from '@langgenius/dify-ui/radio'+import { RadioGroup } from '@langgenius/dify-ui/radio-group'import { fireEvent, render, screen } from '@testing-library/react'import userEvent from '@testing-library/user-event'import * as React from 'react'diff --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 d932527e11d..21a62f00661 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@@ -3,7 +3,7 @@ import type { CrawlResultItem as CrawlResultItemType } from '@/models/datasets'import { Button } from '@langgenius/dify-ui/button'import { Checkbox } from '@langgenius/dify-ui/checkbox'import { cn } from '@langgenius/dify-ui/cn'-import { Radio } from '@langgenius/dify-ui/radio'+import { Radio } from '@langgenius/dify-ui/radio-group'import * as React from 'react'import { useTranslation } from 'react-i18next'diff --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 0282aeaa8e0..6eb1148ffd8 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,7 +1,7 @@'use client'import type { CrawlResultItem } from '@/models/datasets'import { cn } from '@langgenius/dify-ui/cn'-import { RadioGroup } from '@langgenius/dify-ui/radio'+import { RadioGroup } from '@langgenius/dify-ui/radio-group'import * as React from 'react'import { useCallback } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/app/components/datasets/settings/permission-selector/index.tsx b/web/app/components/datasets/settings/permission-selector/index.tsxindex 51571baa2da..791982df581 100644--- a/web/app/components/datasets/settings/permission-selector/index.tsx+++ b/web/app/components/datasets/settings/permission-selector/index.tsx@@ -2,7 +2,7 @@ import type { Member } from '@/models/common'import { Avatar } from '@langgenius/dify-ui/avatar'import { cn } from '@langgenius/dify-ui/cn'import { Popover, PopoverContent, PopoverTitle, PopoverTrigger } from '@langgenius/dify-ui/popover'-import { RadioGroup } from '@langgenius/dify-ui/radio'+import { RadioGroup } from '@langgenius/dify-ui/radio-group'import { useSuspenseQuery } from '@tanstack/react-query'import { useDebouncedValue } from 'foxact/use-debounced-value'import { useMemo, useState } from 'react'diff --git a/web/app/components/datasets/settings/permission-selector/permission-item.tsx b/web/app/components/datasets/settings/permission-selector/permission-item.tsxindex 9c017b30257..ab13e34df30 100644--- a/web/app/components/datasets/settings/permission-selector/permission-item.tsx+++ b/web/app/components/datasets/settings/permission-selector/permission-item.tsx@@ -1,7 +1,7 @@import type { ReactNode } from 'react'import type { DatasetPermission } from '@/models/datasets'import { PopoverClose } from '@langgenius/dify-ui/popover'-import { RadioItem } from '@langgenius/dify-ui/radio'+import { RadioItem } from '@langgenius/dify-ui/radio-group'type PermissionItemProps = {value: DatasetPermissiondiff --git a/web/app/components/explore/category.tsx b/web/app/components/explore/category.tsxindex 9fcd90b4be5..8d7d9ab77ad 100644--- a/web/app/components/explore/category.tsx+++ b/web/app/components/explore/category.tsx@@ -1,7 +1,7 @@'use client'import type { AppCategory } from '@/models/explore'import { cn } from '@langgenius/dify-ui/cn'-import { RadioGroup, RadioItem } from '@langgenius/dify-ui/radio'+import { RadioGroup, RadioItem } from '@langgenius/dify-ui/radio-group'import { useTranslation } from 'react-i18next'import exploreI18n from '@/i18n/en-US/explore.json'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 df28ecac295..03b2b3f050a 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@@ -13,7 +13,7 @@ import type { NodeOutPutVar } from '@/app/components/workflow/types'import { cn } from '@langgenius/dify-ui/cn'import { Field, FieldItem, FieldLabel } from '@langgenius/dify-ui/field'import { Fieldset, FieldsetLegend } from '@langgenius/dify-ui/fieldset'-import { Radio, RadioGroup } from '@langgenius/dify-ui/radio'+import { Radio, RadioGroup } from '@langgenius/dify-ui/radio-group'import {Select,SelectContent,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 46ffafb1aa0..5d2b31d02f1 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,7 +3,7 @@ import type { Node, NodeOutPutVar } from '@/app/components/workflow/types'import { cn } from '@langgenius/dify-ui/cn'import { Field, FieldItem, FieldLabel } from '@langgenius/dify-ui/field'import { Fieldset, FieldsetLegend } from '@langgenius/dify-ui/fieldset'-import { Radio, RadioGroup } from '@langgenius/dify-ui/radio'+import { Radio, RadioGroup } from '@langgenius/dify-ui/radio-group'import {Select,SelectContent,diff --git a/web/app/components/header/account-setting/update-setting-dialog-form.tsx b/web/app/components/header/account-setting/update-setting-dialog-form.tsxindex 652b639ff58..8f77a712926 100644--- a/web/app/components/header/account-setting/update-setting-dialog-form.tsx+++ b/web/app/components/header/account-setting/update-setting-dialog-form.tsx@@ -4,7 +4,7 @@ import type { AutoUpdateConfig } from '@/app/components/plugins/reference-settinimport type { dayjsToTimeOfDay } from '@/app/components/plugins/reference-setting-modal/auto-update-setting/utils'import type { PluginCategoryEnum } from '@/app/components/plugins/types'import { cn } from '@langgenius/dify-ui/cn'-import { RadioGroup } from '@langgenius/dify-ui/radio'+import { RadioGroup } from '@langgenius/dify-ui/radio-group'import { useQueryState } from 'nuqs'import { useState } from 'react'import { Trans, useTranslation } from 'react-i18next'diff --git a/web/app/components/header/account-setting/update-setting-option-card.tsx b/web/app/components/header/account-setting/update-setting-option-card.tsxindex 88729a52362..f356375551b 100644--- a/web/app/components/header/account-setting/update-setting-option-card.tsx+++ b/web/app/components/header/account-setting/update-setting-option-card.tsx@@ -1,5 +1,5 @@import { cn } from '@langgenius/dify-ui/cn'-import { RadioItem } from '@langgenius/dify-ui/radio'+import { RadioItem } from '@langgenius/dify-ui/radio-group'type UpdateSettingOptionCardProps<Value extends string> = {value: Valuediff --git a/web/app/components/header/account-setting/workspace-role-checkbox-list.tsx b/web/app/components/header/account-setting/workspace-role-checkbox-list.tsxindex db87d678376..8b5c1cc7a61 100644--- a/web/app/components/header/account-setting/workspace-role-checkbox-list.tsx+++ b/web/app/components/header/account-setting/workspace-role-checkbox-list.tsx@@ -3,7 +3,7 @@import type { Role } from '@/models/access-control'import { Checkbox } from '@langgenius/dify-ui/checkbox'import { cn } from '@langgenius/dify-ui/cn'-import { RadioControl, RadioGroup, RadioItem } from '@langgenius/dify-ui/radio'+import { RadioControl, RadioGroup, RadioItem } from '@langgenius/dify-ui/radio-group'import {ScrollArea,ScrollAreaContent,diff --git a/web/app/components/integrations/permission-quick-panel.tsx b/web/app/components/integrations/permission-quick-panel.tsxindex 2ea7380d81e..64ed8e4044e 100644--- a/web/app/components/integrations/permission-quick-panel.tsx+++ b/web/app/components/integrations/permission-quick-panel.tsx@@ -2,7 +2,7 @@import type { Permissions } from '@/app/components/plugins/types'import { cn } from '@langgenius/dify-ui/cn'-import { RadioGroup, RadioItem } from '@langgenius/dify-ui/radio'+import { RadioGroup, RadioItem } from '@langgenius/dify-ui/radio-group'import { useTranslation } from 'react-i18next'import { PluginSidecarPanel } from '@/app/components/plugins/plugin-page/plugin-sidecar-panel'import { PermissionType } from '@/app/components/plugins/types'diff --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 17f6eae1448..9f427d0ceff 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@@ -15,7 +15,7 @@ import {import { Field, FieldItem, FieldLabel } from '@langgenius/dify-ui/field'import { Fieldset, FieldsetLegend } from '@langgenius/dify-ui/fieldset'import { Input } from '@langgenius/dify-ui/input'-import { Radio, RadioGroup } from '@langgenius/dify-ui/radio'+import { Radio, RadioGroup } from '@langgenius/dify-ui/radio-group'import {ScrollArea,ScrollAreaContent,diff --git a/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/__tests__/search-method-option.spec.tsx b/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/__tests__/search-method-option.spec.tsxindex eb9c096d167..271d2345b05 100644--- a/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/__tests__/search-method-option.spec.tsx+++ b/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/__tests__/search-method-option.spec.tsx@@ -1,7 +1,7 @@import type { ComponentType, SVGProps } from 'react'import { Field } from '@langgenius/dify-ui/field'import { Fieldset, FieldsetLegend } from '@langgenius/dify-ui/fieldset'-import { RadioGroup } from '@langgenius/dify-ui/radio'+import { RadioGroup } from '@langgenius/dify-ui/radio-group'import { fireEvent, render, screen } from '@testing-library/react'import { HybridSearchModeEnum, RetrievalSearchMethodEnum, WeightedScoreEnum } from '../../../types'import { SearchMethodOption } from '../search-method-option'diff --git a/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/index.tsx b/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/index.tsxindex 35d8fe3ada5..8e2de3ad9e8 100644--- a/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/index.tsx+++ b/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/index.tsx@@ -8,7 +8,7 @@ import type { RerankingModelSelectorProps } from './reranking-model-selector'import type { TopKFieldProps, VisibleScoreThresholdFieldProps } from './top-k-and-score-threshold'import { Field } from '@langgenius/dify-ui/field'import { Fieldset, FieldsetLegend } from '@langgenius/dify-ui/fieldset'-import { RadioGroup } from '@langgenius/dify-ui/radio'+import { RadioGroup } from '@langgenius/dify-ui/radio-group'import { memo } from 'react'import { useTranslation } from 'react-i18next'import { Field as WorkflowField } from '@/app/components/workflow/nodes/_base/components/layout'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 b67c0f03ff1..6fe80258d90 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@@ -6,7 +6,7 @@ import type { HybridSearchModeOption, Option } from './type'import { cn } from '@langgenius/dify-ui/cn'import { Field, FieldItem, FieldLabel } from '@langgenius/dify-ui/field'import { Fieldset, FieldsetLegend } from '@langgenius/dify-ui/fieldset'-import { RadioControl, RadioGroup, RadioItem } from '@langgenius/dify-ui/radio'+import { RadioControl, RadioGroup, RadioItem } from '@langgenius/dify-ui/radio-group'import { Switch } from '@langgenius/dify-ui/switch'import { useTranslation } from 'react-i18next'import WeightedScoreComponent from '@/app/components/app/configuration/dataset-config/params-config/weighted-score'diff --git a/web/app/education/apply/role-selector.tsx b/web/app/education/apply/role-selector.tsxindex c60b30efeec..8c4c7ec6c47 100644--- a/web/app/education/apply/role-selector.tsx+++ b/web/app/education/apply/role-selector.tsx@@ -1,7 +1,7 @@import type { EducationRole } from './types'import { Field, FieldItem, FieldLabel } from '@langgenius/dify-ui/field'import { Fieldset, FieldsetLegend } from '@langgenius/dify-ui/fieldset'-import { Radio, RadioGroup } from '@langgenius/dify-ui/radio'+import { Radio, RadioGroup } from '@langgenius/dify-ui/radio-group'import { useTranslation } from 'react-i18next'type RoleSelectorProps = {diff --git a/web/features/agent-v2/agent-detail/configure/components/orchestrate/knowledge/dialog.tsx b/web/features/agent-v2/agent-detail/configure/components/orchestrate/knowledge/dialog.tsxindex 4510e972dd5..c347587362a 100644--- a/web/features/agent-v2/agent-detail/configure/components/orchestrate/knowledge/dialog.tsx+++ b/web/features/agent-v2/agent-detail/configure/components/orchestrate/knowledge/dialog.tsx@@ -14,7 +14,7 @@ import { cn } from '@langgenius/dify-ui/cn'import { Dialog, DialogClose, DialogContent, DialogTitle } from '@langgenius/dify-ui/dialog'import { IconButton } from '@langgenius/dify-ui/icon-button'import { Input } from '@langgenius/dify-ui/input'-import { RadioGroup, RadioItem } from '@langgenius/dify-ui/radio'+import { RadioGroup, RadioItem } from '@langgenius/dify-ui/radio-group'import { Textarea } from '@langgenius/dify-ui/textarea'import { intersectionBy } from 'es-toolkit/compat'import { useAtomValue } from 'jotai'diff --git a/web/features/new-rag/components/create-knowledge-dialog-parts.tsx b/web/features/new-rag/components/create-knowledge-dialog-parts.tsxindex 0423e6f9a48..7d9f18f9ec4 100644--- a/web/features/new-rag/components/create-knowledge-dialog-parts.tsx+++ b/web/features/new-rag/components/create-knowledge-dialog-parts.tsx@@ -3,7 +3,7 @@import type { ReactNode } from 'react'import type { NewKnowledgeStartMode } from '../routes'import { cn } from '@langgenius/dify-ui/cn'-import { RadioControl, RadioItem } from '@langgenius/dify-ui/radio'+import { RadioControl, RadioItem } from '@langgenius/dify-ui/radio-group'import { useId } from 'react'import { useTranslation } from 'react-i18next'diff --git a/web/features/new-rag/create-knowledge-page.tsx b/web/features/new-rag/create-knowledge-page.tsxindex 0c7a1e26463..6864b917fe6 100644--- a/web/features/new-rag/create-knowledge-page.tsx+++ b/web/features/new-rag/create-knowledge-page.tsx@@ -16,7 +16,7 @@ import {import { Field, FieldDescription, FieldError, FieldLabel } from '@langgenius/dify-ui/field'import { Form } from '@langgenius/dify-ui/form'import { Input } from '@langgenius/dify-ui/input'-import { RadioGroup } from '@langgenius/dify-ui/radio'+import { RadioGroup } from '@langgenius/dify-ui/radio-group'import {Select,SelectContent,