vibe-design-system 2.8.53 → 2.8.54
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/package.json
CHANGED
|
@@ -2577,11 +2577,11 @@ function writeFoundationsStories(foundations) {
|
|
|
2577
2577
|
" </p>",
|
|
2578
2578
|
" <p style={{ margin: \"0 0 12px\", fontSize: 12, color: \"#475569\" }}>gap-* values across all components.</p>",
|
|
2579
2579
|
" <div style={{ display: \"flex\", flexWrap: \"wrap\", gap: 8 }}>",
|
|
2580
|
-
" {(gapEntries as [string, number][]).map(([val,
|
|
2580
|
+
" {(gapEntries as [string, { count: number; topFiles: string[] }][]).map(([val, data]) => (",
|
|
2581
2581
|
" <span key={val} style={{ display: \"flex\", alignItems: \"center\", gap: 6,",
|
|
2582
2582
|
" background: \"#0a0f1a\", border: \"1px solid #1e293b\", borderRadius: 6, padding: \"5px 10px\", fontSize: 12 }}>",
|
|
2583
2583
|
" <code style={{ color: \"#67e8f9\" }}>gap-{val}</code>",
|
|
2584
|
-
" <span style={{ color: \"#475569\", fontSize: 11 }}>×{count}</span>",
|
|
2584
|
+
" <span style={{ color: \"#475569\", fontSize: 11 }}>×{data.count}</span>",
|
|
2585
2585
|
" </span>",
|
|
2586
2586
|
" ))}",
|
|
2587
2587
|
" </div>",
|
|
@@ -3383,9 +3383,12 @@ function writeCursorRules(components, foundations) {
|
|
|
3383
3383
|
const gridSystem = foundations?.gridSystem;
|
|
3384
3384
|
if (gridSystem) {
|
|
3385
3385
|
lines.push(`## 📐 Spacing & Layout (detected in this project)`);
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3386
|
+
const _gaps = gridSystem.gaps || {};
|
|
3387
|
+
if (Object.keys(_gaps).length > 0) {
|
|
3388
|
+
const gapLine = Object.entries(_gaps)
|
|
3389
|
+
.sort((a,b) => (typeof b[1] === "object" ? b[1].count : b[1]) - (typeof a[1] === "object" ? a[1].count : a[1]))
|
|
3390
|
+
.slice(0,8)
|
|
3391
|
+
.map(([v, d]) => `\`gap-${v}\` ×${typeof d === "object" ? d.count : d}`).join(" · ");
|
|
3389
3392
|
lines.push(`**Common gaps:** ${gapLine}`);
|
|
3390
3393
|
}
|
|
3391
3394
|
if (Object.keys(gridSystem.gridCols || {}).length > 0) {
|