@nikkory/vibe-cli 2.4.4 → 2.4.5
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 +28 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6452,6 +6452,13 @@ var ClassMapper = class {
|
|
|
6452
6452
|
}
|
|
6453
6453
|
};
|
|
6454
6454
|
var TemplateEngine = class {
|
|
6455
|
+
/**
|
|
6456
|
+
* Format component name with spaces for comments
|
|
6457
|
+
* @example "IosHigButtonStandard" → "IosHig Button Standard"
|
|
6458
|
+
*/
|
|
6459
|
+
formatDisplayName(componentName) {
|
|
6460
|
+
return componentName.replace(/([A-Z][a-z]+)(?=[A-Z])/g, "$1 ").replace(/([a-z])(?=[A-Z])/g, "$1 ");
|
|
6461
|
+
}
|
|
6455
6462
|
/**
|
|
6456
6463
|
* Generate import statements based on tier
|
|
6457
6464
|
*/
|
|
@@ -6580,9 +6587,9 @@ var TemplateEngine = class {
|
|
|
6580
6587
|
generate(config) {
|
|
6581
6588
|
const parts = [];
|
|
6582
6589
|
parts.push("/**");
|
|
6583
|
-
parts.push(` * ${config.componentName} Component`);
|
|
6590
|
+
parts.push(` * ${this.formatDisplayName(config.componentName)} Component`);
|
|
6584
6591
|
parts.push(" *");
|
|
6585
|
-
parts.push(` * Generated by Nikkory Vibe
|
|
6592
|
+
parts.push(` * Generated by Nikkory Vibe`);
|
|
6586
6593
|
parts.push(" *");
|
|
6587
6594
|
parts.push(" * @packageDocumentation");
|
|
6588
6595
|
parts.push(" * @since 1.0.0");
|
|
@@ -6787,9 +6794,23 @@ var MatrixResolver = class {
|
|
|
6787
6794
|
*/
|
|
6788
6795
|
formatComponentName(componentId, designSystem, tier) {
|
|
6789
6796
|
const componentParts = componentId.split("-").map((part) => part.charAt(0).toUpperCase() + part.slice(1));
|
|
6790
|
-
const
|
|
6797
|
+
const designSystemNames = {
|
|
6798
|
+
"material-design": "Material",
|
|
6799
|
+
"ios-hig": "IosHig",
|
|
6800
|
+
glassmorphism: "Glass",
|
|
6801
|
+
neumorphism: "Neu",
|
|
6802
|
+
brutalism: "Brutal",
|
|
6803
|
+
minimalism: "Minimal",
|
|
6804
|
+
fluent: "Fluent",
|
|
6805
|
+
carbon: "Carbon",
|
|
6806
|
+
"ant-design": "Ant",
|
|
6807
|
+
chakra: "Chakra",
|
|
6808
|
+
atlassian: "Atlassian",
|
|
6809
|
+
blueprint: "Blueprint"
|
|
6810
|
+
};
|
|
6811
|
+
const dsName = designSystemNames[designSystem] ?? designSystem.split("-").map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join("");
|
|
6791
6812
|
const tierPart = tier.charAt(0).toUpperCase() + tier.slice(1);
|
|
6792
|
-
return `${
|
|
6813
|
+
return `${dsName}${componentParts.join("")}${tierPart}`;
|
|
6793
6814
|
}
|
|
6794
6815
|
/**
|
|
6795
6816
|
* Resolve complete component configuration using matrix multiplication
|
|
@@ -7033,7 +7054,7 @@ var PageSectionGenerator = class {
|
|
|
7033
7054
|
return `/**
|
|
7034
7055
|
* ${componentName} Section
|
|
7035
7056
|
*
|
|
7036
|
-
* Generated by Nikkory Vibe
|
|
7057
|
+
* Generated by Nikkory Vibe
|
|
7037
7058
|
*
|
|
7038
7059
|
* @packageDocumentation
|
|
7039
7060
|
* @since 1.0.0
|
|
@@ -7562,7 +7583,7 @@ ${y2.bold(" \u255A\u2588\u2588\u2557 \u2588\u2588\u2554\u255D\u2588\
|
|
|
7562
7583
|
${y2.bold(" \u255A\u2588\u2588\u2588\u2588\u2554\u255D \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557 ")}
|
|
7563
7584
|
${y2.bold(" \u255A\u2550\u2550\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D ")}
|
|
7564
7585
|
|
|
7565
|
-
${y2(" happy together")} ${import_chalk5.default.white("\u2022 v2.4.
|
|
7586
|
+
${y2(" happy together")} ${import_chalk5.default.white("\u2022 v2.4.5")}
|
|
7566
7587
|
|
|
7567
7588
|
${import_chalk5.default.gray(" Production-ready code in seconds")}
|
|
7568
7589
|
${import_chalk5.default.gray(" https://nikkory.com")}
|
|
@@ -7601,7 +7622,7 @@ ${y.bold(" \u255A\u2588\u2588\u2557 \u2588\u2588\u2554\u255D\u2588\u
|
|
|
7601
7622
|
${y.bold(" \u255A\u2588\u2588\u2588\u2588\u2554\u255D \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557 ")}
|
|
7602
7623
|
${y.bold(" \u255A\u2550\u2550\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D ")}
|
|
7603
7624
|
|
|
7604
|
-
${y(" happy together")} ${import_chalk6.default.white("\u2022 v2.4.
|
|
7625
|
+
${y(" happy together")} ${import_chalk6.default.white("\u2022 v2.4.5")}
|
|
7605
7626
|
|
|
7606
7627
|
${import_chalk6.default.gray(" Production-ready code in seconds")}
|
|
7607
7628
|
${import_chalk6.default.gray(" https://nikkory.com")}
|