feat: establish composed color picker protocol

This commit is contained in:
maoyingjie
2026-10-25 19:52:12 +08:00
parent 92c76824bd
commit fc1f98a15e
23 changed files with 695 additions and 128 deletions
@@ -0,0 +1,19 @@
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 name of [
".hv-color-picker",
".hv-color-picker__trigger",
".hv-color-picker__popover",
"--tw-enter-scale:.95",
])
assert.ok(css.includes(name), name);
for (const name of ["ColorPicker", "ColorPickerTrigger", "ColorPickerPopover"])
assert.equal(name in ui, false);
console.log(
"Picker protocol CSS present; unfinished public exports remain private.",
);