feat: publish ColorSwatchPicker and shared swatch picker parts
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user