feat: migrate ColorSwatch and public color boundary

This commit is contained in:
maoyingjie
2026-10-26 13:25:21 +08:00
parent 60af6ee40b
commit 270dea5cff
29 changed files with 1427 additions and 18 deletions
+23
View File
@@ -1782,3 +1782,26 @@ export const autocompleteVariants = tv({
});
export type AutocompleteVariants = VariantProps<typeof autocompleteVariants>;
export const colorSwatchVariants = tv({
base: "hv-color-swatch",
defaultVariants: {
shape: "circle",
size: "md",
},
variants: {
shape: {
circle: "hv-color-swatch--circle",
square: "hv-color-swatch--square",
},
size: {
lg: "hv-color-swatch--lg",
md: "hv-color-swatch--md",
sm: "hv-color-swatch--sm",
xl: "hv-color-swatch--xl",
xs: "hv-color-swatch--xs",
},
},
});
export type ColorSwatchVariants = VariantProps<typeof colorSwatchVariants>;