cherry-studio/packages/ui/src
SuYao ebddfd3e56
feat(textarea): add Textarea component with variants and Storybook examples (#11260)
* feat(textarea): add Textarea component with variants and Storybook examples

* feat(textarea): enhance Textarea component with context, improved variants, and Storybook examples

* Fine-tuning the style

* fix ci

* feat(textarea): refactor Textarea stories to use custom label and caption components

* feat(textarea): add TextareaContext for managing textarea state

* fix: format

* feat(textarea): refactor TextareaInput to simplify props and remove autoSize handling

* feat(textarea): remove TextareaContext and update stories to reflect new error handling

* refactor(textarea): remove TextareaRoot component

After removing TextareaContext, TextareaRoot became a simple wrapper div
with no functionality beyond applying layout styles. This change:

- Removes TextareaRoot component and its exports
- Updates all Storybook stories to use plain divs with the same styling
- Simplifies the component API while maintaining the same functionality

Addresses reviewer feedback: https://github.com/CherryHQ/cherry-studio/pull/11260#discussion_r2580009134

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* chore: format

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: MyPrototypeWhat <daoquqiexing@gmail.com>
2025-12-02 18:33:06 +08:00
..
components feat(textarea): add Textarea component with variants and Storybook examples (#11260) 2025-12-02 18:33:06 +08:00
hooks refactor: migrate sortable (#10204) 2025-09-17 17:26:40 +08:00
styles refactor(theme): comment out spacing variables for Tailwind CSS v4 compatibility 2025-12-02 18:31:12 +08:00
types refactor: migrate to toast from antd message (#10233) 2025-09-20 16:58:41 +08:00
utils feat(ui): new Input (#11110) 2025-12-01 17:15:07 +08:00
index.ts refactor: migrate sortable (#10204) 2025-09-17 17:26:40 +08:00