feat: migrate public ColorPicker composition
This commit is contained in:
@@ -237,6 +237,56 @@ for (const id of process.argv.slice(2)) {
|
||||
"ColorSwatchPickerItem declarations leak Reka types",
|
||||
);
|
||||
}
|
||||
if (id === "color-picker") {
|
||||
assert(lib.ColorPicker === lib.ColorPickerRoot);
|
||||
assert(lib.ColorPickerTrigger);
|
||||
assert(lib.ColorPickerPopover);
|
||||
assert(
|
||||
lib.colorPickerVariants().base() === "hv-color-picker",
|
||||
"ColorPicker base class must stay in the baseline namespace",
|
||||
);
|
||||
assert(
|
||||
lib.colorPickerVariants().trigger() === "hv-color-picker__trigger",
|
||||
"ColorPicker trigger class must stay in the baseline namespace",
|
||||
);
|
||||
assert(
|
||||
lib.colorPickerVariants().popover() === "hv-color-picker__popover",
|
||||
"ColorPicker popover class must stay in the baseline namespace",
|
||||
);
|
||||
const pickerDts = readFileSync(
|
||||
new URL(
|
||||
"./node_modules/@heroui-vue/components/dist/components/color-picker/ColorPicker.vue.d.ts",
|
||||
import.meta.url,
|
||||
),
|
||||
"utf8",
|
||||
);
|
||||
const triggerDts = readFileSync(
|
||||
new URL(
|
||||
"./node_modules/@heroui-vue/components/dist/components/color-picker/ColorPickerTrigger.vue.d.ts",
|
||||
import.meta.url,
|
||||
),
|
||||
"utf8",
|
||||
);
|
||||
const popoverDts = readFileSync(
|
||||
new URL(
|
||||
"./node_modules/@heroui-vue/components/dist/components/color-picker/ColorPickerPopover.vue.d.ts",
|
||||
import.meta.url,
|
||||
),
|
||||
"utf8",
|
||||
);
|
||||
assert(
|
||||
!pickerDts.includes("reka-ui"),
|
||||
"ColorPicker declarations leak Reka types",
|
||||
);
|
||||
assert(
|
||||
!triggerDts.includes("reka-ui"),
|
||||
"ColorPickerTrigger declarations leak Reka types",
|
||||
);
|
||||
assert(
|
||||
!popoverDts.includes("reka-ui"),
|
||||
"ColorPickerPopover declarations leak Reka types",
|
||||
);
|
||||
}
|
||||
if (id === "color-slider") {
|
||||
assert(lib.ColorSlider === lib.ColorSliderRoot);
|
||||
assert(lib.ColorSliderOutput);
|
||||
|
||||
Reference in New Issue
Block a user