feat: publish ColorField and shared color input parts
This commit is contained in:
@@ -1902,3 +1902,33 @@ export const rangeCalendarVariants = tv({
|
||||
});
|
||||
|
||||
export type RangeCalendarVariants = VariantProps<typeof rangeCalendarVariants>;
|
||||
|
||||
/** HeroUI 3.2.6 / ce90ea3, Apache-2.0; hv namespace only. */
|
||||
export const colorFieldVariants = tv({
|
||||
base: "hv-color-field",
|
||||
defaultVariants: { fullWidth: false },
|
||||
variants: { fullWidth: { false: "", true: "hv-color-field--full-width" } },
|
||||
});
|
||||
export type ColorFieldVariants = VariantProps<typeof colorFieldVariants>;
|
||||
export const colorInputGroupVariants = tv({
|
||||
defaultVariants: { fullWidth: false, variant: "primary" },
|
||||
slots: {
|
||||
base: "hv-color-input-group",
|
||||
input: "hv-color-input-group__input",
|
||||
prefix: "hv-color-input-group__prefix",
|
||||
suffix: "hv-color-input-group__suffix",
|
||||
},
|
||||
variants: {
|
||||
fullWidth: {
|
||||
false: {},
|
||||
true: { base: "hv-color-input-group--full-width" },
|
||||
},
|
||||
variant: {
|
||||
primary: { base: "hv-color-input-group--primary" },
|
||||
secondary: { base: "hv-color-input-group--secondary" },
|
||||
},
|
||||
},
|
||||
});
|
||||
export type ColorInputGroupVariants = VariantProps<
|
||||
typeof colorInputGroupVariants
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user