@godxjp/ui-mcp 13.16.4 → 13.17.1
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 +24 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1624,18 +1624,23 @@ import { ResponsiveGrid } from "@godxjp/ui/layout";
|
|
|
1624
1624
|
{
|
|
1625
1625
|
name: "Timeline",
|
|
1626
1626
|
group: "data-display",
|
|
1627
|
-
tagline: "Vertical event list with an icon rail. Current item gets a highlighted glyph.",
|
|
1627
|
+
tagline: "Vertical event list with an icon rail. Current item gets a highlighted glyph. `variant` switches the rail to numbered (ordinal) or status-driven glyphs, and each item carries a 3-state `status` (done/current/pending) plus an optional per-item `icon`.",
|
|
1628
1628
|
props: [
|
|
1629
1629
|
{
|
|
1630
1630
|
name: "items",
|
|
1631
1631
|
type: "TimelineItem[]",
|
|
1632
1632
|
required: true,
|
|
1633
|
-
description: "Array of { title, location?, time?, note?, current? }."
|
|
1633
|
+
description: "Array of `{ title, location?, time?, note?, current?, status?, icon? }`. `status` is the explicit 3-state ('done' | 'current' | 'pending'); `current: true` is shorthand for `status: 'current'`. `icon` (a LucideIcon) overrides the auto-glyph for that item."
|
|
1634
|
+
},
|
|
1635
|
+
{
|
|
1636
|
+
name: "variant",
|
|
1637
|
+
type: '"icon" | "ordinal" | "status"',
|
|
1638
|
+
description: "Rail glyph strategy (default 'icon'). 'icon' = legacy look (Plane for current, CheckCircle2 otherwise). 'ordinal' = every glyph is its 1-based step number; status sets colour only. 'status' = glyph by status (done \u2192 check, current \u2192 filled dot, pending \u2192 step number)."
|
|
1634
1639
|
}
|
|
1635
1640
|
],
|
|
1636
1641
|
usage: [
|
|
1637
|
-
"DO pass an array of `TimelineItem` objects to `items
|
|
1638
|
-
"DO mark
|
|
1642
|
+
"DO pass an array of `TimelineItem` objects to `items`. Each item is `{ title, location?, time?, note?, current?, status?, icon? }`. All fields except `title` are optional. The only other prop is `variant`.",
|
|
1643
|
+
"DO mark the in-progress event with `current: true` (or `status: 'current'`). In the default `variant='icon'`, the current item renders a `Plane` icon and every other item a `CheckCircle2`. Use `variant='ordinal'` for a numbered route stepper (1,2,3\u2026) or `variant='status'` for a done\u2192check / current\u2192dot / pending\u2192number tracker. Pass `status: 'done' | 'current' | 'pending'` per item to drive colour and (in the status variant) the glyph; pass `icon` (a LucideIcon) to override the glyph for a single item.",
|
|
1639
1644
|
"DO pass `ReactNode` to `title`, `location`, `time`, and `note` \u2014 you can embed formatted text, `<Badge>`, `<Badge>`, or `<span>` inside those fields. Use `formatDate` to pre-format timestamps before passing them as `time`.",
|
|
1640
1645
|
"DO NOT hand-roll a vertical event list with divs, icons, and connector lines \u2014 that is exactly what Timeline ships. Do not apply extra padding or wrapping outside the component; it manages its own rail and spacing internally.",
|
|
1641
1646
|
"DO NOT use Timeline for user-facing wizard progress (steps the user must complete in order) \u2014 use `Steps` for that. Timeline is read-only historical/status display; it has no interactive state, no `onClick`, and no concept of 'go to step'.",
|
|
@@ -1657,10 +1662,24 @@ import { ResponsiveGrid } from "@godxjp/ui/layout";
|
|
|
1657
1662
|
],
|
|
1658
1663
|
example: `import { Timeline } from "@godxjp/ui/data-display";
|
|
1659
1664
|
|
|
1665
|
+
// Default icon variant
|
|
1660
1666
|
<Timeline items={[
|
|
1661
1667
|
{ title: "\u6CE8\u6587\u53D7\u4ED8", time: "2024-06-01 10:00" },
|
|
1662
1668
|
{ title: "\u767A\u9001\u6E96\u5099\u4E2D", time: "2024-06-01 14:00" },
|
|
1663
1669
|
{ title: "\u914D\u9001\u4E2D", current: true },
|
|
1670
|
+
]} />
|
|
1671
|
+
|
|
1672
|
+
// Numbered route stepper (Pattern A)
|
|
1673
|
+
<Timeline variant="ordinal" items={[
|
|
1674
|
+
{ title: "\u96C6\u8377", location: "\u6771\u4EAC \u2192 \u540D\u53E4\u5C4B", status: "pending" },
|
|
1675
|
+
{ title: "\u5E79\u7DDA\u8F38\u9001", location: "\u540D\u53E4\u5C4B \u2192 \u5927\u962A", status: "pending" },
|
|
1676
|
+
]} />
|
|
1677
|
+
|
|
1678
|
+
// Status tracker (Pattern B): done \u2192 check, current \u2192 dot, pending \u2192 number
|
|
1679
|
+
<Timeline variant="status" items={[
|
|
1680
|
+
{ title: "\u8ACB\u6C42\u66F8\u3092\u767A\u884C", status: "done" },
|
|
1681
|
+
{ title: "\u627F\u8A8D\u5F85\u3061", status: "current" },
|
|
1682
|
+
{ title: "\u6D88\u8CBB\u7A0E\u3092\u8A08\u4E0A", status: "pending" },
|
|
1664
1683
|
]} />`,
|
|
1665
1684
|
storyPath: "data-display/Timeline.stories.tsx",
|
|
1666
1685
|
rules: []
|
|
@@ -11693,7 +11712,7 @@ ${c.example}
|
|
|
11693
11712
|
// package.json
|
|
11694
11713
|
var package_default = {
|
|
11695
11714
|
name: "@godxjp/ui-mcp",
|
|
11696
|
-
version: "13.
|
|
11715
|
+
version: "13.17.1",
|
|
11697
11716
|
description: "Model Context Protocol server for @godxjp/ui \u2014 gives Claude Code / Codex CLI / Cursor / any MCP-aware agent live access to the component catalog, prop vocabulary, design tokens, 45 cardinal rules, copy-paste-ready patterns, 12 design / taste skills synthesised from Leonxlnx/taste-skill, 20+ anti-AI-tell patterns, and a 50-check redesign audit \u2014 token-efficient (list \u2192 drill-down).",
|
|
11698
11717
|
type: "module",
|
|
11699
11718
|
main: "./dist/index.js",
|