dify/web/app/components/base/markdown-blocks
yyh f734c35443
refactor(web): redesign SelectTrigger as pure re-export and migrate WorkplaceSelector to Select
SelectTrigger was a heavily styled function coupling ARIA trigger
behavior with form-input appearance (input bg, size variants, built-in
chevron, clearable/loading). This made it unusable for non-form contexts
like WorkplaceSelector and inconsistent with DropdownMenuTrigger which
is a pure re-export.

- SelectTrigger is now a pure re-export of BaseSelect.Trigger (aligned
  with DropdownMenuTrigger pattern)
- Added SelectIcon re-export for composed triggers needing chevron state
- Removed SelectPrimitiveTrigger, selectTriggerVariants, contentPadding,
  and SelectTriggerProps
- 3 form callers migrated to inline composition with className
- WorkplaceSelector migrated from @headlessui/react Menu to base-ui
  Select with correct listbox semantics, fixing the focus ring issue

Made-with: Cursor
2026-04-16 11:06:03 +08:00
..
__tests__ refactor(web): replace react-syntax-highlighter with shiki (#33473) 2026-04-03 06:40:26 +00:00
audio-block.tsx chore: lint require and how to import react (#30041) 2025-12-23 18:02:10 +08:00
button.tsx feat(ui): scaffold @langgenius/dify-ui and migrate design tokens (#35256) 2026-04-15 13:11:20 +00:00
code-block.stories.tsx chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
code-block.tsx refactor(web): migrate notion page selectors to tanstack virtual (#34508) 2026-04-03 07:03:12 +00:00
form.tsx refactor(web): redesign SelectTrigger as pure re-export and migrate WorkplaceSelector to Select 2026-04-16 11:06:03 +08:00
img.tsx refactor: replace react markdown with streamdown (#32971) 2026-03-10 17:02:37 +08:00
index.ts chore: knip fix (#34481) 2026-04-02 15:03:42 +00:00
link.tsx refactor: update to tailwind v4 (#34415) 2026-04-02 07:06:11 +00:00
music.tsx fix: styles and missing imports (#18396) 2025-04-19 14:46:10 +08:00
paragraph.tsx fix: prevent hydration warning from div nesting inside p for inline markdown images (#32419) 2026-03-10 14:07:55 +08:00
plugin-img.tsx refactor: replace react markdown with streamdown (#32971) 2026-03-10 17:02:37 +08:00
plugin-paragraph.tsx refactor: replace react markdown with streamdown (#32971) 2026-03-10 17:02:37 +08:00
shiki-highlight.tsx refactor(web): replace react-syntax-highlighter with shiki (#33473) 2026-04-03 06:40:26 +00:00
think-block.stories.tsx refactor: spilt context for better hmr (#33033) 2026-03-05 15:54:56 +08:00
think-block.tsx feat(ui): scaffold @langgenius/dify-ui and migrate design tokens (#35256) 2026-04-15 13:11:20 +00:00
utils.ts fix: prevent hydration warning from div nesting inside p for inline markdown images (#32419) 2026-03-10 14:07:55 +08:00
video-block.tsx chore: lint require and how to import react (#30041) 2025-12-23 18:02:10 +08:00