@kinetixui/cli 0.16.1 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +20 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -422,10 +422,25 @@ async function inspect(name, options) {
|
|
|
422
422
|
}
|
|
423
423
|
const spec = await fetchComponentSpec(options.registry, name);
|
|
424
424
|
if (spec) {
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
425
|
+
if (spec.since || spec.status) {
|
|
426
|
+
console.log();
|
|
427
|
+
console.log(`${pc4.dim("Since:")} ${spec.since ?? "\u2014"} ${pc4.dim(spec.status ? `(${spec.status})` : "")}`);
|
|
428
|
+
}
|
|
429
|
+
const axes = Object.entries(spec.variants ?? {});
|
|
430
|
+
if (axes.length) {
|
|
431
|
+
console.log();
|
|
432
|
+
console.log(pc4.dim("Variants:"));
|
|
433
|
+
for (const [axis, options_] of axes) {
|
|
434
|
+
console.log(` ${pc4.dim(axis)} ${options_.join(", ")}`);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
if (spec.components?.length) {
|
|
438
|
+
console.log();
|
|
439
|
+
console.log(pc4.dim("Parts:"));
|
|
440
|
+
for (const part of spec.components) {
|
|
441
|
+
const own = part.props.map((p) => p.required ? p.name : `${p.name}?`);
|
|
442
|
+
console.log(` ${part.name}${own.length ? ` ${pc4.dim(own.join(", "))}` : ""}`);
|
|
443
|
+
}
|
|
429
444
|
}
|
|
430
445
|
}
|
|
431
446
|
console.log();
|
|
@@ -900,7 +915,7 @@ async function themeBuild(name, options) {
|
|
|
900
915
|
// package.json
|
|
901
916
|
var package_default = {
|
|
902
917
|
name: "@kinetixui/cli",
|
|
903
|
-
version: "0.
|
|
918
|
+
version: "0.17.0",
|
|
904
919
|
description: "Add KinetixUI components and tokens to your project.",
|
|
905
920
|
type: "module",
|
|
906
921
|
license: "MIT",
|