feat: migrate Tag, TagGroup and ErrorMessage with collection and focus contracts
Port the fixed HeroUI baseline tag/tag-group/error-message components onto the existing collection selection/registry protocols instead of a second state model. - TagGroup owns selection, disabled scope, removal requests and name/description wiring; TagGroupList renders the role=grid node and Tag renders role=row. - Removal has one path: a press inside the remove subtree is a removal request, so custom remove buttons work without a second event source; focus follows the next neighbour only after the item is actually gone. - ErrorMessage keeps the baseline slot marker and reuses the field part ids without gaining validation or aria-invalid semantics. - Ship the 12 tag-group and 2 error-message previews, both doc pages, navigation, a 35-case behavioural suite and independent tarball consumption checks.
This commit is contained in:
@@ -110,6 +110,11 @@ export const componentItems: DocsItem[] = [
|
||||
url: "/components/empty-state",
|
||||
category: "feedback",
|
||||
},
|
||||
{
|
||||
title: "ErrorMessage 错误消息",
|
||||
url: "/components/error-message",
|
||||
category: "forms",
|
||||
},
|
||||
{
|
||||
title: "FieldError 字段错误",
|
||||
url: "/components/field-error",
|
||||
@@ -260,6 +265,11 @@ export const componentItems: DocsItem[] = [
|
||||
url: "/components/tabs",
|
||||
category: "navigation",
|
||||
},
|
||||
{
|
||||
title: "TagGroup 标签组",
|
||||
url: "/components/tag-group",
|
||||
category: "collections",
|
||||
},
|
||||
{
|
||||
title: "TextArea 多行文本框",
|
||||
url: "/components/textarea",
|
||||
|
||||
Reference in New Issue
Block a user