vibe-design-system 2.8.68 → 2.8.69
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
|
@@ -4200,7 +4200,7 @@ function writeComponentInventoryStory(components, foundations) {
|
|
|
4200
4200
|
`const uniqueTokens = ${uniqueTokens};`,
|
|
4201
4201
|
``,
|
|
4202
4202
|
// CardPreview: renders the actual component at the right scale, falls back to shape HTML
|
|
4203
|
-
`const
|
|
4203
|
+
`const _InvPreview = ({ comp }: { comp: any }) => {`,
|
|
4204
4204
|
` const s: number = comp.previewScale || 0.4;`,
|
|
4205
4205
|
` const centered = s >= 0.9;`,
|
|
4206
4206
|
` const fn = PREVIEWS[comp.name];`,
|
|
@@ -4224,10 +4224,10 @@ function writeComponentInventoryStory(components, foundations) {
|
|
|
4224
4224
|
` </div>`,
|
|
4225
4225
|
` );`,
|
|
4226
4226
|
`};`,
|
|
4227
|
-
`const
|
|
4227
|
+
`const InventoryCard = ({ comp }: { comp: any }) => (`,
|
|
4228
4228
|
` <div style={{ border: "1px solid " + (comp.active ? "#e5e7eb" : "#f0f0f0"), borderRadius: 10, overflow: "hidden", background: comp.active ? "#fff" : "#fafafa", display: "flex", flexDirection: "column" as any, boxShadow: comp.active ? "0 1px 3px rgba(0,0,0,0.05)" : "none", opacity: comp.active ? 1 : 0.55 }}>`,
|
|
4229
4229
|
` <div style={{ background: comp.active ? "#f8f9fa" : "#f5f5f5", borderBottom: "1px solid #f0f0f0" }}>`,
|
|
4230
|
-
` <
|
|
4230
|
+
` <_InvPreview comp={comp} />`,
|
|
4231
4231
|
` </div>`,
|
|
4232
4232
|
` <div style={{ padding: "10px 12px" }}>`,
|
|
4233
4233
|
` <div style={{ display: "flex", alignItems: "center", gap: 5, marginBottom: 5 }}>`,
|
|
@@ -4279,8 +4279,8 @@ function writeComponentInventoryStory(components, foundations) {
|
|
|
4279
4279
|
` {inactive.length > 0 && <span style={{ fontSize: 12, background: "#f3f4f6", color: "#9ca3af", padding: "2px 9px", borderRadius: 12 }}>{inactive.length} installed</span>}`,
|
|
4280
4280
|
` </div>`,
|
|
4281
4281
|
` <div style={{ display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(200px, 1fr))", gap: 12 }}>`,
|
|
4282
|
-
` {active.map((comp: any) => <
|
|
4283
|
-
` {expanded && inactive.map((comp: any) => <
|
|
4282
|
+
` {active.map((comp: any) => <InventoryCard key={comp.name} comp={comp} />)}`,
|
|
4283
|
+
` {expanded && inactive.map((comp: any) => <InventoryCard key={comp.name} comp={comp} />)}`,
|
|
4284
4284
|
` </div>`,
|
|
4285
4285
|
` </div>`,
|
|
4286
4286
|
` );`,
|