feat: establish color slider geometry and picker composition

This commit is contained in:
maoyingjie
2026-10-25 14:37:48 +08:00
parent e59d1bea8b
commit 712b6c6037
28 changed files with 1760 additions and 7 deletions
@@ -0,0 +1,23 @@
import assert from "node:assert/strict";
import fs from "node:fs";
import * as ui from "@heroui-vue/components";
const css = fs.readFileSync(
new URL(import.meta.resolve("@heroui-vue/styles/css")),
"utf8",
);
for (const marker of [
".hv-color-slider",
".hv-color-slider__track",
".hv-color-slider__thumb",
"--track-start-color",
"--track-end-color",
"--reka-popover-content-available-height",
"max-height:inherit",
"overscroll-behavior:contain",
])
assert.ok(css.includes(marker), marker);
for (const name of ["ColorSlider", "ColorField", "ColorPicker"])
assert.equal(name in ui, false);
console.log(
"Color slider foundation CSS and Popover constraints present; private components stay private.",
);