feat: publish ColorField and shared color input parts
This commit is contained in:
@@ -53,7 +53,8 @@
|
||||
========================================================================== */
|
||||
|
||||
.hv-color-input-group__input {
|
||||
@apply flex h-full flex-1 cursor-text items-center rounded-none border-0 bg-transparent px-3 py-2 text-base shadow-none outline-none sm:text-sm;
|
||||
/* Vue native input has a browser intrinsic minimum width; keep narrow channel inputs and affixes inside the group. */
|
||||
@apply flex min-w-0 h-full flex-1 cursor-text items-center rounded-none border-0 bg-transparent px-3 py-2 text-base shadow-none outline-none sm:text-sm;
|
||||
|
||||
/* Placeholder styling */
|
||||
&::placeholder {
|
||||
|
||||
@@ -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