@godxjp/ui 31.29.0 → 31.30.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.
@@ -3,7 +3,7 @@
3
3
  You are about to write code against a design system you did not author. This file is the whole
4
4
  contract. Read it before you write JSX.
5
5
 
6
- **This catalog describes `@godxjp/ui` 31.29.0.** If the project you are editing has a different
6
+ **This catalog describes `@godxjp/ui` 31.30.0.** If the project you are editing has a different
7
7
  version in its `package.json`, read the pinned catalog for THAT version instead
8
8
  (`…/v<their-version>/agent/…`). A catalog newer than the installed package describes props that do
9
9
  not exist yet; older, and it hides props that do. Neither failure announces itself.
@@ -56,10 +56,10 @@ Then ask it: `search_components`, `get_component`, `get_tokens`, `get_rule`, `li
56
56
  its `importPath`, and its examples. Fetch only the handful you picked in step 1.
57
57
  3. `rules.json` — 50 cardinal rules. The ones about raw HTML and hardcoded colour are not
58
58
  style advice.
59
- 4. `tokens.json` — 2168 design tokens, each tagged with its `tier`. **If you were handed a
59
+ 4. `tokens.json` — 2176 design tokens, each tagged with its `tier`. **If you were handed a
60
60
  brand, read the 211 `foundation` entries first** — `--primary`, `--background`,
61
61
  `--radius`, `--font-size-base` are the handful everything else derives from. The
62
- 1845 `component` entries are per-part knobs; reach for one only when a role is
62
+ 1853 `component` entries are per-part knobs; reach for one only when a role is
63
63
  right everywhere except one component.
64
64
  5. `anti-ai-tells.json` — 26 shapes that make generated UI look generated, each with the
65
65
  fix. Read before you reach for a gradient hero or a wall of coloured chips.
@@ -145,7 +145,7 @@ has stopped following the brand.
145
145
  |---|---|---|---|
146
146
  | `foundation` | 211 | the seeds — `--primary`, `--background`, `--foreground`, `--radius`, `--font-size-base`, `--shadow-color`. Everything below is derived from these | **yes — this is the main road.** Handed a brand colour, this is where it goes: `:root { --primary: <H> <S>% <L>%; }` (HSL components, no `hsl()` wrapper) |
147
147
  | `semantic` | 112 | named roles that follow the seeds — `--ring`, `--text-link`, `--primary-hover`, `--overlay-background` | only when the seed is right and ONE role must differ. That role then stops following a later brand change |
148
- | `component` | 1845 | per-part knobs, `--{component}-{part}-{property}` | rarely. Most are declared `initial` with the real default at the call site — deliberate, so a scoped override re-resolves instead of freezing at `:root` |
148
+ | `component` | 1853 | per-part knobs, `--{component}-{part}-{property}` | rarely. Most are declared `initial` with the real default at the call site — deliberate, so a scoped override re-resolves instead of freezing at `:root` |
149
149
 
150
150
  A token whose `value` is `initial` is not empty and not broken: `initial` is the guaranteed-invalid
151
151
  value, so the real default is computed where the element paints it. Set it and yours wins.
@@ -5,7 +5,7 @@
5
5
  "name": "Legend",
6
6
  "props": [
7
7
  {
8
- "description": "The keys, in the order the marks they explain appear. `label` is required and cannot be omitted: colour alone never carries meaning (WCAG 1.4.1), so a wordless key would be the exact failure the component prevents.",
8
+ "description": "The keys, in the order the marks they explain appear. `label` is required and cannot be omitted: colour alone never carries meaning (WCAG 1.4.1), so a wordless key would be the exact failure the component prevents. Each item is `{ tone, label }` or `{ color, label }`: `color` is a hex from data (user-chosen status colours, the same contract as Badge color and RangeTimelineRow color, gh#1189).",
9
9
  "name": "items",
10
10
  "required": true,
11
11
  "type": "{ tone: \"default\" | \"success\" | \"warning\" | \"destructive\" | \"info\" | \"muted\" | \"neutral\"; label: ReactNode }[]"
@@ -22,9 +22,9 @@
22
22
  "type": "boolean"
23
23
  },
24
24
  {
25
- "description": "Text labels for the three score buckets.",
25
+ "description": "Every visible and screen-reader string, each optional (gh#1191). Unset entries come from the kit's own ja / en / vi catalogue for the active locale, so most apps pass nothing: the score words, the checklist line per rule (length / upper / lower / number / symbol), the sr-only passed / failed prefixes, and the polite live-region sentence (`announcement(strength)`). Pass only the ones your product words differently.",
26
26
  "name": "labels",
27
- "type": "{ weak: string; fair: string; strong: string }"
27
+ "type": "{ weak?: string; fair?: string; strong?: string; rules?: Partial<Record<PasswordRule, string>>; passed?: string; failed?: string; announcement?: (strength: string) => string }"
28
28
  }
29
29
  ],
30
30
  "related": [
@@ -23,7 +23,7 @@
23
23
  "type": "{ label: string; units: number }[]"
24
24
  },
25
25
  {
26
- "description": "Each row has id, label, inclusive start/end unit offsets, and localized startLabel/endLabel including current values. Optional `depth` (0 = top level) nests rows: pass them flat and depth-first (a parent, then its descendants); a row is a parent when the row after it is deeper. The component indents the label cell by `--range-timeline-indent-width` per level (logical padding, so RTL indents from the right; the label column keeps its width) and gives each parent a disclosure button. With no `depth > 0` anywhere the markup is unchanged.",
26
+ "description": "Each row has id, label, inclusive start/end unit offsets (`null` for either = the row has no dates: no bar, no handles, a muted \"no dates\" hint, gh#1189), optional `color` (hex from data, e.g. a status colour; grip ink flips black/white by luminance; non-hex keeps the default ink), `muted` (a done row recedes, --range-timeline-bar-muted-alpha), `overdue` (destructive inline-end edge that keeps the colour, plus a localized sr-only \"overdue\"), `tooltip` (ReactNode on hover and keyboard focus of a focusable bar layer named by the row label, beside the grips, never around them), `plan` ({ start, end } | null — the PLANNED range 予定, a dashed ghost bar behind the solid ACTUAL bar 実績; past the planned end a destructive overrun segment with a localized \"+N日\" label (override with `varianceLabel`, `false` hides it); ending before it a small success early marker; both also spoken; the ghost is never draggable), `planNote` (muted text after the bar for a row WITHOUT a plan, e.g. \"baseline後に追加\"), `editable` (true | false | { start?, end? }: which grips a row offers when onRangeChange is set; a started-but-open issue whose end is \"today\" passes { end: false }), and localized startLabel/endLabel including current values. Optional `depth` (0 = top level) nests rows: pass them flat and depth-first (a parent, then its descendants); a row is a parent when the row after it is deeper. The component indents the label cell by `--range-timeline-indent-width` per level (logical padding, so RTL indents from the right; the label column keeps its width) and gives each parent a disclosure button. With no `depth > 0` anywhere the markup is unchanged.",
27
27
  "name": "rows",
28
28
  "required": true,
29
29
  "type": "RangeTimelineRow[]"
@@ -70,6 +70,33 @@
70
70
  "description": "antd Table `sticky` — keep the axis header (bands + ticks) on screen while the PAGE scrolls a long schedule. `offsetHeader` is px from the top of the scrolling viewport (the height of a fixed app topbar). The header moves out of the horizontal scroller and follows its scrollLeft; the section becomes `overflow: clip` and the body scroller takes the keyboard tab stop. Like antd, it needs no clipping ancestor between the timeline and the page scroller: `Card` is `overflow: hidden`, so a sticky timeline goes in the page as its own section, not inside a Card. antd's `offsetScroll` / `getContainer` (sticky horizontal scrollbar) are not ported.",
71
71
  "name": "sticky",
72
72
  "type": "boolean | { offsetHeader?: number }"
73
+ },
74
+ {
75
+ "defaultValue": "false",
76
+ "description": "Let the user resize the label column by dragging a divider on its inline-end edge in the header (gh#1189): role=separator, aria-orientation vertical, aria-valuenow/min/max, ArrowLeft/Right (Shift = 32px step, else 8px), Home/End to min/max, RTL-aware, pointer drag. `true` = min 160 / max 640 px. The width lands on --range-timeline-label-width, so the token stays the default until the user drags.",
77
+ "name": "resizableLabel",
78
+ "type": "boolean | { min?: number; max?: number }"
79
+ },
80
+ {
81
+ "description": "Controlled label-column width in px. Persist it per user from onLabelWidthChange.",
82
+ "name": "labelWidth",
83
+ "type": "number"
84
+ },
85
+ {
86
+ "description": "Uncontrolled initial label-column width in px. Omitted: the token's width.",
87
+ "name": "defaultLabelWidth",
88
+ "type": "number"
89
+ },
90
+ {
91
+ "description": "Fires with the next label-column width (px, clamped) while dragging and on every key step.",
92
+ "name": "onLabelWidthChange",
93
+ "type": "(width: number) => void"
94
+ },
95
+ {
96
+ "defaultValue": "false",
97
+ "description": "A new range is loading while the previous rows stay on screen: dims the body (--range-timeline-busy-body-alpha), draws an indeterminate line under the header (static under prefers-reduced-motion) and sets aria-busy.",
98
+ "name": "busy",
99
+ "type": "boolean"
73
100
  }
74
101
  ],
75
102
  "rules": [],
@@ -549,7 +549,7 @@
549
549
  "type": "{ label: string; units: number }[]"
550
550
  },
551
551
  {
552
- "description": "Each row has id, label, inclusive start/end unit offsets, and localized startLabel/endLabel including current values. Optional `depth` (0 = top level) nests rows: pass them flat and depth-first (a parent, then its descendants); a row is a parent when the row after it is deeper. The component indents the label cell by `--range-timeline-indent-width` per level (logical padding, so RTL indents from the right; the label column keeps its width) and gives each parent a disclosure button. With no `depth > 0` anywhere the markup is unchanged.",
552
+ "description": "Each row has id, label, inclusive start/end unit offsets (`null` for either = the row has no dates: no bar, no handles, a muted \"no dates\" hint, gh#1189), optional `color` (hex from data, e.g. a status colour; grip ink flips black/white by luminance; non-hex keeps the default ink), `muted` (a done row recedes, --range-timeline-bar-muted-alpha), `overdue` (destructive inline-end edge that keeps the colour, plus a localized sr-only \"overdue\"), `tooltip` (ReactNode on hover and keyboard focus of a focusable bar layer named by the row label, beside the grips, never around them), `plan` ({ start, end } | null — the PLANNED range 予定, a dashed ghost bar behind the solid ACTUAL bar 実績; past the planned end a destructive overrun segment with a localized \"+N日\" label (override with `varianceLabel`, `false` hides it); ending before it a small success early marker; both also spoken; the ghost is never draggable), `planNote` (muted text after the bar for a row WITHOUT a plan, e.g. \"baseline後に追加\"), `editable` (true | false | { start?, end? }: which grips a row offers when onRangeChange is set; a started-but-open issue whose end is \"today\" passes { end: false }), and localized startLabel/endLabel including current values. Optional `depth` (0 = top level) nests rows: pass them flat and depth-first (a parent, then its descendants); a row is a parent when the row after it is deeper. The component indents the label cell by `--range-timeline-indent-width` per level (logical padding, so RTL indents from the right; the label column keeps its width) and gives each parent a disclosure button. With no `depth > 0` anywhere the markup is unchanged.",
553
553
  "name": "rows",
554
554
  "required": true,
555
555
  "type": "RangeTimelineRow[]"
@@ -596,6 +596,33 @@
596
596
  "description": "antd Table `sticky` — keep the axis header (bands + ticks) on screen while the PAGE scrolls a long schedule. `offsetHeader` is px from the top of the scrolling viewport (the height of a fixed app topbar). The header moves out of the horizontal scroller and follows its scrollLeft; the section becomes `overflow: clip` and the body scroller takes the keyboard tab stop. Like antd, it needs no clipping ancestor between the timeline and the page scroller: `Card` is `overflow: hidden`, so a sticky timeline goes in the page as its own section, not inside a Card. antd's `offsetScroll` / `getContainer` (sticky horizontal scrollbar) are not ported.",
597
597
  "name": "sticky",
598
598
  "type": "boolean | { offsetHeader?: number }"
599
+ },
600
+ {
601
+ "defaultValue": "false",
602
+ "description": "Let the user resize the label column by dragging a divider on its inline-end edge in the header (gh#1189): role=separator, aria-orientation vertical, aria-valuenow/min/max, ArrowLeft/Right (Shift = 32px step, else 8px), Home/End to min/max, RTL-aware, pointer drag. `true` = min 160 / max 640 px. The width lands on --range-timeline-label-width, so the token stays the default until the user drags.",
603
+ "name": "resizableLabel",
604
+ "type": "boolean | { min?: number; max?: number }"
605
+ },
606
+ {
607
+ "description": "Controlled label-column width in px. Persist it per user from onLabelWidthChange.",
608
+ "name": "labelWidth",
609
+ "type": "number"
610
+ },
611
+ {
612
+ "description": "Uncontrolled initial label-column width in px. Omitted: the token's width.",
613
+ "name": "defaultLabelWidth",
614
+ "type": "number"
615
+ },
616
+ {
617
+ "description": "Fires with the next label-column width (px, clamped) while dragging and on every key step.",
618
+ "name": "onLabelWidthChange",
619
+ "type": "(width: number) => void"
620
+ },
621
+ {
622
+ "defaultValue": "false",
623
+ "description": "A new range is loading while the previous rows stay on screen: dims the body (--range-timeline-busy-body-alpha), draws an indeterminate line under the header (static under prefers-reduced-motion) and sets aria-busy.",
624
+ "name": "busy",
625
+ "type": "boolean"
599
626
  }
600
627
  ],
601
628
  "rules": [],
@@ -4250,7 +4277,7 @@
4250
4277
  "name": "Legend",
4251
4278
  "props": [
4252
4279
  {
4253
- "description": "The keys, in the order the marks they explain appear. `label` is required and cannot be omitted: colour alone never carries meaning (WCAG 1.4.1), so a wordless key would be the exact failure the component prevents.",
4280
+ "description": "The keys, in the order the marks they explain appear. `label` is required and cannot be omitted: colour alone never carries meaning (WCAG 1.4.1), so a wordless key would be the exact failure the component prevents. Each item is `{ tone, label }` or `{ color, label }`: `color` is a hex from data (user-chosen status colours, the same contract as Badge color and RangeTimelineRow color, gh#1189).",
4254
4281
  "name": "items",
4255
4282
  "required": true,
4256
4283
  "type": "{ tone: \"default\" | \"success\" | \"warning\" | \"destructive\" | \"info\" | \"muted\" | \"neutral\"; label: ReactNode }[]"
@@ -13011,9 +13038,9 @@
13011
13038
  "type": "boolean"
13012
13039
  },
13013
13040
  {
13014
- "description": "Text labels for the three score buckets.",
13041
+ "description": "Every visible and screen-reader string, each optional (gh#1191). Unset entries come from the kit's own ja / en / vi catalogue for the active locale, so most apps pass nothing: the score words, the checklist line per rule (length / upper / lower / number / symbol), the sr-only passed / failed prefixes, and the polite live-region sentence (`announcement(strength)`). Pass only the ones your product words differently.",
13015
13042
  "name": "labels",
13016
- "type": "{ weak: string; fair: string; strong: string }"
13043
+ "type": "{ weak?: string; fair?: string; strong?: string; rules?: Partial<Record<PasswordRule, string>>; passed?: string; failed?: string; announcement?: (strength: string) => string }"
13017
13044
  }
13018
13045
  ],
13019
13046
  "related": [
package/agent/index.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "components": 185,
5
5
  "patterns": 21,
6
6
  "rules": 50,
7
- "tokens": 2168,
7
+ "tokens": 2176,
8
8
  "vocabulary": 14
9
9
  },
10
10
  "files": [
@@ -48,19 +48,19 @@
48
48
  "note": "Pin to the tag that matches the @godxjp/ui version you installed. A catalog newer than your package describes props you do not have; older, and it hides props you do.",
49
49
  "read": {
50
50
  "live": "https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/index.json",
51
- "pinned": "https://raw.githubusercontent.com/godx-jp/godxjp-ui/v31.29.0/agent/index.json"
51
+ "pinned": "https://raw.githubusercontent.com/godx-jp/godxjp-ui/v31.30.0/agent/index.json"
52
52
  },
53
53
  "source": "mcp/src/data — the same data @godxjp/ui-mcp serves — plus the foundation and semantic token tiers, read from src/tokens/*.css",
54
54
  "start": "https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/START-HERE.md",
55
55
  "tokenTiers": {
56
56
  "component": "per-part knobs, --{component}-{part}-{property}; usually leave these alone",
57
57
  "counts": {
58
- "component": 1845,
58
+ "component": 1853,
59
59
  "foundation": 211,
60
60
  "semantic": 112
61
61
  },
62
62
  "foundation": "the seeds a consumer is invited to set — --primary, --background, --radius",
63
63
  "semantic": "named roles that follow the seeds — --ring, --text-link, --overlay-background"
64
64
  },
65
- "version": "31.29.0"
65
+ "version": "31.30.0"
66
66
  }
package/agent/llms.txt CHANGED
@@ -1,10 +1,10 @@
1
1
  # @godxjp/ui
2
2
 
3
- > A Japanese-enterprise React design system: 185 components, 2168 design tokens,
4
- > 50 cardinal rules. This file is the entry point for AI agents. Catalog version 31.29.0.
3
+ > A Japanese-enterprise React design system: 185 components, 2176 design tokens,
4
+ > 50 cardinal rules. This file is the entry point for AI agents. Catalog version 31.30.0.
5
5
 
6
6
  If your client can run a process, do not read these files — run the MCP server instead
7
- (`npx @godxjp/ui-mcp@31.29.0`). It is searchable and version-locked. These files exist for agents
7
+ (`npx @godxjp/ui-mcp@31.30.0`). It is searchable and version-locked. These files exist for agents
8
8
  that can only fetch URLs.
9
9
 
10
10
  ## Start
@@ -18,7 +18,7 @@ that can only fetch URLs.
18
18
  - [components-index.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/components-index.json): 51 KB — all 185 components as name, group, tagline, plus `absorbed`: the names that do NOT exist and map to it (`Combobox` → `Select`).
19
19
  - [components/&lt;Name&gt;.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/components/Select.json): one file per component (1 KB–36 KB, median 6 KB). Read the index, then fetch only the ones you chose — this is the selective route, and the reason you do not need the blob.
20
20
  - [components.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/components.json): 1.3 MB — every entry in one file. Most URL fetchers truncate a response this size without saying so; prefer the per-component files.
21
- - [tokens.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/tokens.json): every design token with its value, the reason it exists, and its `tier` — 211 `foundation` seeds (`--primary`, `--background`, `--radius`: set these when you are handed a brand), 112 `semantic` roles, 1845 `component` knobs.
21
+ - [tokens.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/tokens.json): every design token with its value, the reason it exists, and its `tier` — 211 `foundation` seeds (`--primary`, `--background`, `--radius`: set these when you are handed a brand), 112 `semantic` roles, 1853 `component` knobs.
22
22
  - [vocabulary.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/vocabulary.json): the controlled prop vocabulary — which prop name means what, across every component.
23
23
  - [rules.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/rules.json): 50 cardinal rules.
24
24
  - [anti-ai-tells.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/anti-ai-tells.json): 26 shapes that make generated UI look generated, each with its fix.
@@ -26,7 +26,7 @@ that can only fetch URLs.
26
26
  ## Pinning
27
27
 
28
28
  Every URL above tracks `main`. To pin to the release a project actually installed, swap `main` for
29
- the tag: `.../godx-jp/godxjp-ui/v31.29.0/agent/...`. A catalog that does not match the installed
29
+ the tag: `.../godx-jp/godxjp-ui/v31.30.0/agent/...`. A catalog that does not match the installed
30
30
  package describes props that are absent, or hides props that are present, and says nothing either way.
31
31
 
32
32
  Pinned catalogs only exist for releases whose tag actually contains `agent/`. If `…/v<version>/agent/index.json` returns 404, that release predates this catalog: read `…/main/…` instead and compare `index.json` → `version` against the package you have, so you at least know which way it drifted.
package/agent/tokens.json CHANGED
@@ -6047,6 +6047,30 @@
6047
6047
  "tier": "component",
6048
6048
  "value": "var(--app-shell-sidebar-width)"
6049
6049
  },
6050
+ {
6051
+ "description": "Label-column resize divider (gh#1189): the hit area straddles the column border and meets WCAG 2.5.8's 24px; the visible rule is the border itself, thickened on hover/focus.",
6052
+ "name": "--range-timeline-resizer-inline-size",
6053
+ "tier": "component",
6054
+ "value": "var(--space-6)"
6055
+ },
6056
+ {
6057
+ "description": "Data-display component tokens — small-by-design text knobs (rule #45/#46).",
6058
+ "name": "--range-timeline-resizer-active-width",
6059
+ "tier": "component",
6060
+ "value": "var(--stroke-md, 2px)"
6061
+ },
6062
+ {
6063
+ "description": "`busy` (gh#1189): how far the body dims while a new range loads, and the progress line.",
6064
+ "name": "--range-timeline-busy-body-alpha",
6065
+ "tier": "component",
6066
+ "value": "0.55"
6067
+ },
6068
+ {
6069
+ "description": "Data-display component tokens — small-by-design text knobs (rule #45/#46).",
6070
+ "name": "--range-timeline-busy-line-block-size",
6071
+ "tier": "component",
6072
+ "value": "var(--stroke-md, 2px)"
6073
+ },
6050
6074
  {
6051
6075
  "description": "Floor for ONE axis unit, so a day column never collapses; the live knob the canvas reads. `density` re-points it per instance at the three steps below — set THIS one in a theme to move every step's baseline, set a step to retune one density.",
6052
6076
  "name": "--range-timeline-unit-width",
@@ -6083,6 +6107,30 @@
6083
6107
  "tier": "component",
6084
6108
  "value": "var(--control-height-sm)"
6085
6109
  },
6110
+ {
6111
+ "description": "Per-row bar state (gh#1189 follow-up): a done row recedes, an overdue row gets a danger edge that keeps its status colour. `--range-timeline-bar-color` / `-ink` are set per row from data.",
6112
+ "name": "--range-timeline-bar-muted-alpha",
6113
+ "tier": "component",
6114
+ "value": "0.45"
6115
+ },
6116
+ {
6117
+ "description": "Data-display component tokens — small-by-design text knobs (rule #45/#46).",
6118
+ "name": "--range-timeline-bar-overdue-width",
6119
+ "tier": "component",
6120
+ "value": "var(--stroke-md)"
6121
+ },
6122
+ {
6123
+ "description": "Planned vs actual (予定 / 実績): the ghost outline of the plan, the overrun segment past it, and the early marker where the actual ends before it.",
6124
+ "name": "--range-timeline-plan-border-width",
6125
+ "tier": "component",
6126
+ "value": "var(--stroke-hairline)"
6127
+ },
6128
+ {
6129
+ "description": "Data-display component tokens — small-by-design text knobs (rule #45/#46).",
6130
+ "name": "--range-timeline-early-marker-inline-size",
6131
+ "tier": "component",
6132
+ "value": "var(--stroke-md)"
6133
+ },
6086
6134
  {
6087
6135
  "description": "The OUTER FRAME of the timeline and its label-column divider — the --border tier, the same rule weight a Card edge and a DataTable row use. The grid INSIDE it now reads the same tier (see --range-timeline-grid-color), which is the point of gh#730: the day grid may never be heavier than the frame around it, and at one tier it cannot become so under any theme.",
6088
6136
  "name": "--range-timeline-border-color",
@@ -1,5 +1,6 @@
1
+ import type * as React from "react";
1
2
  import type { LegendProp } from "../../props/components/data-display.prop.js";
2
- export type { LegendItemProp, LegendProp, LegendProp as LegendProps } from "../../props/components/data-display.prop.js";
3
+ export type { LegendItemProp, LegendProp, LegendProp as LegendProps, } from "../../props/components/data-display.prop.js";
3
4
  /**
4
5
  * Legend — the KEY for a set of tones: which colour means what.
5
6
  *
@@ -12,4 +13,4 @@ export type { LegendItemProp, LegendProp, LegendProp as LegendProps } from "../.
12
13
  * reader announcing "square, overdue" twice per key is noise. What reaches assistive tech is a
13
14
  * plain list of the labels, which is exactly what the key says.
14
15
  */
15
- export declare function Legend({ items, className, ...props }: LegendProp): import("react").JSX.Element;
16
+ export declare function Legend({ items, className, ...props }: LegendProp): React.JSX.Element;
@@ -2,7 +2,16 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { cn } from "../../lib/utils.js";
3
3
  function Legend({ items, className, ...props }) {
4
4
  return /* @__PURE__ */ jsx("ul", { className: cn("ui-legend", className), ...props, children: items.map((item, index) => /* @__PURE__ */ jsxs("li", { className: "ui-legend-item", children: [
5
- /* @__PURE__ */ jsx("span", { className: "ui-legend-swatch", "data-tone": item.tone, "aria-hidden": "true" }),
5
+ /* @__PURE__ */ jsx(
6
+ "span",
7
+ {
8
+ className: "ui-legend-swatch",
9
+ "data-tone": item.color ? void 0 : item.tone,
10
+ "data-color": item.color ? "true" : void 0,
11
+ style: item.color ? { "--legend-swatch-color": item.color } : void 0,
12
+ "aria-hidden": "true"
13
+ }
14
+ ),
6
15
  item.label
7
16
  ] }, index)) });
8
17
  }
@@ -3,8 +3,12 @@ import type { DensityProp } from "../../props/vocabulary/index.js";
3
3
  export type RangeTimelineRow = {
4
4
  id: string;
5
5
  label: React.ReactNode;
6
- start: number;
7
- end: number;
6
+ /**
7
+ * First and last unit of the bar. `null` (either) means the row has no dates yet: no bar, a
8
+ * muted "no dates" hint in its track, and no resize handles (gh#1189).
9
+ */
10
+ start: number | null;
11
+ end: number | null;
8
12
  startLabel: string;
9
13
  endLabel: string;
10
14
  /**
@@ -13,6 +17,51 @@ export type RangeTimelineRow = {
13
17
  * indent (`--range-timeline-indent-width` per level) and the disclosure.
14
18
  */
15
19
  depth?: number;
20
+ /**
21
+ * The bar's fill, a hex colour from data (the same contract as `Badge color`), e.g. the issue
22
+ * status colour. The grips' ink flips black or white from the colour's luminance, the same pivot
23
+ * `tenantTheme` uses for `--primary-foreground`; a value that is not a hex keeps the default ink.
24
+ */
25
+ color?: string;
26
+ /** De-emphasise a closed / done row's bar (`--range-timeline-bar-muted-alpha`), nothing else. */
27
+ muted?: boolean;
28
+ /**
29
+ * Mark the bar overdue: a destructive edge on its inline end that keeps `color`, plus a localized
30
+ * screen-reader "overdue" so the colour is never the only carrier.
31
+ */
32
+ overdue?: boolean;
33
+ /**
34
+ * Shown on hover and on keyboard focus of the bar (key, title, status, assignee, start → due).
35
+ * The bar gains a focusable layer named by the row label; the grips stay separate buttons.
36
+ */
37
+ tooltip?: React.ReactNode;
38
+ /**
39
+ * The PLANNED range (予定), drawn as a dashed ghost bar; `start` / `end` are then the ACTUAL range
40
+ * (実績), drawn solid. Past the planned end the actual bar carries a destructive overrun segment;
41
+ * ending before it, a small early marker. Both are also spoken.
42
+ */
43
+ plan?: {
44
+ start: number | null;
45
+ end: number | null;
46
+ } | null;
47
+ /**
48
+ * Text after an overrun segment. Default: the overrun in axis units, localized as days
49
+ * ("+3日" / "+3d" / "+3 ngày"), since a Gantt's unit is the day. `false` shows none.
50
+ */
51
+ varianceLabel?: React.ReactNode | false;
52
+ /**
53
+ * A muted note shown after the bar when the row has no `plan`, e.g. "baseline後に追加". Nothing
54
+ * is drawn for a row without a plan unless this is set.
55
+ */
56
+ planNote?: React.ReactNode;
57
+ /**
58
+ * Which grips this row offers when `onRangeChange` is set. Default `true` (both). A started-but-open
59
+ * issue whose end is "today" passes `{ end: false }`, keeping the start grip. `false` removes both.
60
+ */
61
+ editable?: boolean | {
62
+ start?: boolean;
63
+ end?: boolean;
64
+ };
16
65
  };
17
66
  export type RangeTimelineProps = React.HTMLAttributes<HTMLElement> & {
18
67
  label: string;
@@ -63,6 +112,27 @@ export type RangeTimelineProps = React.HTMLAttributes<HTMLElement> & {
63
112
  sticky?: boolean | {
64
113
  offsetHeader?: number;
65
114
  };
115
+ /**
116
+ * Let the user resize the label column by dragging a divider in the header (gh#1189): a
117
+ * `role="separator"` with aria-valuenow/min/max, ArrowLeft/Right (Shift = a bigger step),
118
+ * Home/End, RTL-aware. `true` uses min 160 / max 640 px. The width lands on
119
+ * `--range-timeline-label-width`, so the token stays the default until the user drags.
120
+ */
121
+ resizableLabel?: boolean | {
122
+ min?: number;
123
+ max?: number;
124
+ };
125
+ /** Controlled label-column width in px. Persist it per user from `onLabelWidthChange`. */
126
+ labelWidth?: number;
127
+ /** Uncontrolled initial label-column width in px. Omitted: the token's width. */
128
+ defaultLabelWidth?: number;
129
+ /** Fires with the next label-column width (px) while dragging and on every key step. */
130
+ onLabelWidthChange?: (width: number) => void;
131
+ /**
132
+ * A new range is loading while the previous rows stay on screen: dims the body, draws an
133
+ * indeterminate line under the header and sets `aria-busy` (gh#1189).
134
+ */
135
+ busy?: boolean;
66
136
  };
67
137
  /** A horizontal range axis. Units and labels are data; the design system owns all geometry. */
68
138
  export declare const RangeTimeline: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
@@ -114,4 +184,25 @@ export declare const RangeTimeline: React.ForwardRefExoticComponent<React.HTMLAt
114
184
  sticky?: boolean | {
115
185
  offsetHeader?: number;
116
186
  };
187
+ /**
188
+ * Let the user resize the label column by dragging a divider in the header (gh#1189): a
189
+ * `role="separator"` with aria-valuenow/min/max, ArrowLeft/Right (Shift = a bigger step),
190
+ * Home/End, RTL-aware. `true` uses min 160 / max 640 px. The width lands on
191
+ * `--range-timeline-label-width`, so the token stays the default until the user drags.
192
+ */
193
+ resizableLabel?: boolean | {
194
+ min?: number;
195
+ max?: number;
196
+ };
197
+ /** Controlled label-column width in px. Persist it per user from `onLabelWidthChange`. */
198
+ labelWidth?: number;
199
+ /** Uncontrolled initial label-column width in px. Omitted: the token's width. */
200
+ defaultLabelWidth?: number;
201
+ /** Fires with the next label-column width (px) while dragging and on every key step. */
202
+ onLabelWidthChange?: (width: number) => void;
203
+ /**
204
+ * A new range is loading while the previous rows stay on screen: dims the body, draws an
205
+ * indeterminate line under the header and sets `aria-busy` (gh#1189).
206
+ */
207
+ busy?: boolean;
117
208
  } & React.RefAttributes<HTMLElement>>;