feat: migrate Toolbar with teleport-safe focus ownership

This commit is contained in:
maoyingjie
2026-10-23 10:50:42 +08:00
parent 9c93647ad2
commit b2525bb04d
33 changed files with 2168 additions and 30 deletions
+19
View File
@@ -1148,3 +1148,22 @@ export const toggleButtonGroupVariants = tv({
export type ToggleButtonGroupVariants = VariantProps<
typeof toggleButtonGroupVariants
>;
export const toolbarVariants = tv({
base: "hv-toolbar",
defaultVariants: {
isAttached: false,
orientation: "horizontal",
},
variants: {
isAttached: {
true: "hv-toolbar--attached",
},
orientation: {
horizontal: "hv-toolbar--horizontal",
vertical: "hv-toolbar--vertical",
},
},
});
export type ToolbarVariants = VariantProps<typeof toolbarVariants>;