feat: publish ColorSwatchPicker and shared swatch picker parts

This commit is contained in:
maoyingjie
2026-10-27 14:42:29 +08:00
parent fa4146ee0b
commit 8d9adda8da
38 changed files with 3232 additions and 9 deletions
+54
View File
@@ -1828,6 +1828,60 @@ export const colorSwatchVariants = tv({
export type ColorSwatchVariants = VariantProps<typeof colorSwatchVariants>;
/** HeroUI 3.2.6 / ce90ea3, Apache-2.0; hv namespace only. */
export const colorSwatchPickerVariants = tv({
defaultVariants: {
layout: "grid",
size: "md",
variant: "circle",
},
slots: {
base: "hv-color-swatch-picker",
indicator: "hv-color-swatch-picker__indicator",
item: "hv-color-swatch-picker__item",
swatch: "hv-color-swatch-picker__swatch",
},
variants: {
layout: {
grid: {
base: "hv-color-swatch-picker--grid",
},
stack: {
base: "hv-color-swatch-picker--stack",
},
},
size: {
lg: {
base: "hv-color-swatch-picker--lg",
},
md: {
base: "hv-color-swatch-picker--md",
},
sm: {
base: "hv-color-swatch-picker--sm",
},
xl: {
base: "hv-color-swatch-picker--xl",
},
xs: {
base: "hv-color-swatch-picker--xs",
},
},
variant: {
circle: {
base: "hv-color-swatch-picker--circle",
},
square: {
base: "hv-color-swatch-picker--square",
},
},
},
});
export type ColorSwatchPickerVariants = VariantProps<
typeof colorSwatchPickerVariants
>;
/** HeroUI 3.2.6 / ce90ea3, Apache-2.0; hv namespace only. */
export const colorAreaVariants = tv({
defaultVariants: {