@godxjp/ui-mcp 0.5.0 → 0.6.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 +14 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -314,7 +314,7 @@ const columns: ColumnDef<Member>[] = [
|
|
|
314
314
|
{
|
|
315
315
|
name: "Card",
|
|
316
316
|
group: "data-display",
|
|
317
|
-
tagline:
|
|
317
|
+
tagline: 'Surface container with optional accent stripe, variant fill, size, and density. \u26A0\uFE0F The bare <Card> has NO inner padding \u2014 body content MUST be wrapped in <CardContent> (titles in <CardHeader>), or it sits FLUSH against the card edges. Never hand-roll padding with className="p-4"; use <CardContent>. Compose with CardHeader/CardTitle/CardContent/CardFooter.',
|
|
318
318
|
props: [
|
|
319
319
|
{ name: "accent", type: '"primary" | "success" | "warning" | "info" | "attention" | "destructive"', description: "3px left-edge semantic accent stripe." },
|
|
320
320
|
{ name: "variant", type: '"default" | "muted" | "outline" | "featured"', defaultValue: '"default"', description: "Surface fill style." },
|
|
@@ -1257,6 +1257,19 @@ var PATTERNS = [
|
|
|
1257
1257
|
tagline: "Fix the most common @godxjp/ui consumer mistakes & visual bugs (CardStat double-border, grey StatusBadge, crushed/empty table headers, washed-out sidebar footer, Inertia layout crash, SSR hydration). Before \u2192 after.",
|
|
1258
1258
|
tags: ["fixes", "migration", "bug", "cardstat", "statusbadge", "datatable", "sidebar", "gotcha", "review"],
|
|
1259
1259
|
code: `// \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
1260
|
+
// 0) \u2605 MOST COMMON: <Card> body has NO padding (content is flush against the edges)
|
|
1261
|
+
// Cause: the bare <Card> has ZERO inner padding \u2014 it MUST contain <CardContent>.
|
|
1262
|
+
// Don't hand-roll padding with className="p-4" on the Card either.
|
|
1263
|
+
// \u274C <Card><Stack gap="md">\u2026fields\u2026</Stack></Card> // flush, no padding
|
|
1264
|
+
// \u274C <Card className="p-4">\u2026fields\u2026</Card> // hand-rolled padding
|
|
1265
|
+
// \u2705 <Card><CardContent><Stack gap="md">\u2026fields\u2026</Stack></CardContent></Card>
|
|
1266
|
+
// Titles \u2192 <CardHeader><CardTitle>. Only go flush deliberately for a full-bleed table:
|
|
1267
|
+
// \u2705 <Card><CardContent flush><DataTable/></CardContent></Card>
|
|
1268
|
+
// GENERAL RULE \u2014 compose godx-ui primitives FULLY; never hand-roll what one ships:
|
|
1269
|
+
// padding \u2192 CardContent (not p-4) \xB7 controls \u2192 Input/Select/Button (not raw <input>/<select>/<button>)
|
|
1270
|
+
// empty rows \u2192 DataTable's built-in empty / <EmptyState> (not a custom data.length===0 guard).
|
|
1271
|
+
// If a primitive exists, USE it \u2014 don't reinvent it.
|
|
1272
|
+
|
|
1260
1273
|
// 1) CardStat shows a DOUBLE border (too thick)
|
|
1261
1274
|
// Cause: CardStat IS already a bordered Card. Don't wrap it.
|
|
1262
1275
|
// \u274C <Card><CardContent><CardStat label="x" value="1" /></CardContent></Card>
|