cherry-studio/packages/ui/stories/components/primitives
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
..
Breadcrumb.stories.tsx feat: update UI component stories to use centralized imports from @cherrystudio/ui 2025-11-21 13:34:02 +08:00
Button.stories.tsx feat: update UI component stories to use centralized imports from @cherrystudio/ui 2025-11-21 13:34:02 +08:00
Checkbox.stories.tsx feat: update UI component stories to use centralized imports from @cherrystudio/ui 2025-11-21 13:34:02 +08:00
Combobox.stories.tsx feat: update UI component stories to use centralized imports from @cherrystudio/ui 2025-11-21 13:34:02 +08:00
CopyButton.stories.tsx chore: remove unused CSS files and update Storybook configurations 2025-11-03 18:31:48 +08:00
CustomTag.stories.tsx chore: remove unused CSS files and update Storybook configurations 2025-11-03 18:31:48 +08:00
DescriptionSwitch.stories.tsx feat(ui): new Switch (#11061) 2025-12-01 17:04:43 +08:00
Dialog.stories.tsx feat(dialog): enhance Dialog component and add comprehensive Storybook examples 2025-12-02 18:31:49 +08:00
DividerWithText.stories.tsx chore: remove unused CSS files and update Storybook configurations 2025-11-03 18:31:48 +08:00
EmojiAvatar.stories.tsx chore: remove unused CSS files and update Storybook configurations 2025-11-03 18:31:48 +08:00
EmojiIcon.stories.tsx chore: remove unused CSS files and update Storybook configurations 2025-11-03 18:31:48 +08:00
ErrorBoundary.stories.tsx refactor: update imports and button event handlers in story files 2025-11-03 19:17:50 +08:00
IndicatorLight.stories.tsx chore: remove unused CSS files and update Storybook configurations 2025-11-03 18:31:48 +08:00
Input.stories.tsx refactor(stories): update imports in Input and Switch stories 2025-12-02 10:50:14 +08:00
InputGroup.stories.tsx feat(ui): new Input (#11110) 2025-12-01 17:15:07 +08:00
Kbd.stories.tsx feat: update UI component stories to use centralized imports from @cherrystudio/ui 2025-11-21 13:34:02 +08:00
Pagination.stories.tsx feat: update UI component stories to use centralized imports from @cherrystudio/ui 2025-11-21 13:34:02 +08:00
RadioGroup.stories.tsx feat: update UI component stories to use centralized imports from @cherrystudio/ui 2025-11-21 13:34:02 +08:00
Select.stories.tsx feat: update UI component stories to use centralized imports from @cherrystudio/ui 2025-11-21 13:34:02 +08:00
Spinner.stories.tsx feat: update UI component stories to use centralized imports from @cherrystudio/ui 2025-11-21 13:34:02 +08:00
Switch.stories.tsx refactor(stories): update imports in Input and Switch stories 2025-12-02 10:50:14 +08:00
Tabs.stories.tsx style(tabs.stories):lint 2025-11-21 17:26:14 +08:00
Textarea.stories.tsx feat(textarea): add Textarea component with variants and Storybook examples (#11260) 2025-12-02 18:33:06 +08:00