feat: publish ColorField and shared color input parts

This commit is contained in:
maoyingjie
2026-10-27 11:53:02 +08:00
parent 108a120c81
commit 6a7a89be6b
34 changed files with 1511 additions and 39 deletions
+20
View File
@@ -44,6 +44,26 @@ for (const id of process.argv.slice(2)) {
assert(lib.RangeCalendar === lib.RangeCalendarRoot);
assert(lib.rangeCalendarVariants().cell() === "hv-range-calendar__cell");
}
if (id === "color-field") {
assert(lib.ColorField === lib.ColorFieldRoot);
assert(lib.ColorFieldGroup === lib.ColorInputGroup);
assert(lib.ColorFieldGroup === lib.ColorInputGroupRoot);
assert(lib.ColorFieldInput === lib.ColorInputGroupInput);
assert(lib.ColorFieldPrefix === lib.ColorInputGroupPrefix);
assert(lib.ColorFieldSuffix === lib.ColorInputGroupSuffix);
assert(
lib
.colorFieldVariants({ fullWidth: true })
.includes("hv-color-field--full-width"),
);
const slots = lib.colorInputGroupVariants({
variant: "secondary",
fullWidth: true,
});
assert(slots.base().includes("hv-color-input-group--secondary"));
assert(slots.base().includes("hv-color-input-group--full-width"));
assert(slots.input() === "hv-color-input-group__input");
}
if (id === "time-field") {
assert(lib.TimeField === lib.TimeFieldRoot);
assert(lib.TimeFieldGroup === lib.DateInputGroup);