@peasant-labs/fairtrade 0.0.11 → 0.0.13
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/lib/commons.js +1 -1
- package/dist/lib/components.css +1 -1
- package/dist/lib/types/Accordion.d.ts +1 -1
- package/dist/lib/types/Avatar.d.ts +5 -5
- package/dist/lib/types/Button.d.ts +3 -3
- package/dist/lib/types/Card.d.ts +4 -4
- package/dist/lib/types/ChartBar.d.ts +1 -1
- package/dist/lib/types/ChartLine.d.ts +1 -1
- package/dist/lib/types/Checkbox.d.ts +9 -9
- package/dist/lib/types/Chip.d.ts +4 -4
- package/dist/lib/types/CliOnboard.d.ts +3 -3
- package/dist/lib/types/CommandPalette.d.ts +1 -1
- package/dist/lib/types/CommitGraph.d.ts +1 -1
- package/dist/lib/types/ConnectionState.d.ts +9 -9
- package/dist/lib/types/ConsentDialog.d.ts +2 -2
- package/dist/lib/types/DataTable.d.ts +1 -1
- package/dist/lib/types/DateRange.d.ts +2 -2
- package/dist/lib/types/Dialog.d.ts +1 -1
- package/dist/lib/types/DiffView.d.ts +1 -1
- package/dist/lib/types/EmptyState.d.ts +5 -2
- package/dist/lib/types/EvidenceCaption.d.ts +2 -2
- package/dist/lib/types/Explainer.d.ts +2 -2
- package/dist/lib/types/FacetRail.d.ts +1 -1
- package/dist/lib/types/Feedback.d.ts +5 -5
- package/dist/lib/types/GroupedMultiSelect.d.ts +4 -4
- package/dist/lib/types/Intensity.d.ts +5 -5
- package/dist/lib/types/MapCanvas.d.ts +1 -1
- package/dist/lib/types/Menu.d.ts +1 -1
- package/dist/lib/types/ModerationQueue.d.ts +2 -2
- package/dist/lib/types/Pager.d.ts +1 -1
- package/dist/lib/types/Pagination.d.ts +1 -1
- package/dist/lib/types/PolicySelect.d.ts +5 -5
- package/dist/lib/types/RailShell.d.ts +3 -3
- package/dist/lib/types/Redaction.d.ts +10 -5
- package/dist/lib/types/RoleRoster.d.ts +3 -3
- package/dist/lib/types/Sparkline.d.ts +1 -1
- package/dist/lib/types/StatTiles.d.ts +4 -4
- package/dist/lib/types/StepWizard.d.ts +2 -2
- package/dist/lib/types/StepsWaterfall.d.ts +1 -1
- package/dist/lib/types/Switch.d.ts +1 -1
- package/dist/lib/types/Tabs.d.ts +1 -1
- package/dist/lib/types/TimeStrip.d.ts +1 -1
- package/dist/lib/types/Timeline.d.ts +4 -4
- package/dist/lib/types/ToastHost.d.ts +1 -1
- package/dist/lib/types/ToolRenderers.d.ts +1 -1
- package/dist/lib/types/Tooltip.d.ts +3 -3
- package/dist/lib/types/TranscriptMarkers.d.ts +5 -5
- package/dist/lib/types/Treemap.d.ts +1 -1
- package/dist/lib/types/VisibilityControl.d.ts +4 -4
- package/dist/lib/types/analytics/ChartCard.d.ts +8 -5
- package/dist/lib/types/analytics/ContributorTable.d.ts +2 -2
- package/dist/lib/types/analytics/ProjectOverview.d.ts +4 -4
- package/dist/lib/types/chart-shared.d.ts +2 -2
- package/dist/lib/types/commons/Explore.d.ts +1 -1
- package/dist/lib/types/commons/Manage.d.ts +1 -1
- package/dist/lib/types/graph/ChangeDetail.d.ts +1 -1
- package/dist/lib/types/graph/Changes.d.ts +1 -1
- package/dist/lib/types/graph/CodeMap.d.ts +1 -1
- package/dist/lib/types/graph/CodeMapComposition.d.ts +2 -2
- package/dist/lib/types/graph/CodeMapNavigator.d.ts +1 -1
- package/dist/lib/types/graph/GhostCommitNode.d.ts +1 -1
- package/dist/lib/types/graph/GhostGroup.d.ts +1 -1
- package/dist/lib/types/graph/HighlightEdge.d.ts +1 -1
- package/dist/lib/types/graph/InsightPanel.d.ts +1 -1
- package/dist/lib/types/graph/RankModeControl.d.ts +1 -1
- package/dist/lib/types/graph/RankedRow.d.ts +1 -1
- package/dist/lib/types/graph/ScentTag.d.ts +1 -1
- package/dist/lib/types/graph/SessionLane.d.ts +1 -1
- package/dist/lib/types/graph/SessionOverflowDisclosure.d.ts +1 -1
- package/dist/lib/types/graph/TouchedFileCluster.d.ts +1 -1
- package/dist/lib/types/inuse/InUseShell.d.ts +5 -5
- package/dist/lib/types/transcript/CheckRow.d.ts +1 -1
- package/dist/lib/types/transcript/DiffEntryCard.d.ts +2 -2
- package/dist/lib/types/transcript/FilterSection.d.ts +1 -1
- package/dist/lib/types/transcript/FiltersRail.d.ts +1 -1
- package/dist/lib/types/transcript/LabelPopover.d.ts +1 -1
- package/dist/lib/types/transcript/Markdown.d.ts +10 -2
- package/dist/lib/types/transcript/OutlineRail.d.ts +1 -1
- package/dist/lib/types/transcript/Scorecard.d.ts +1 -1
- package/dist/lib/types/transcript/Scrubber.d.ts +1 -1
- package/dist/lib/types/transcript/TaskBody.d.ts +1 -1
- package/dist/lib/types/transcript/Thinking.d.ts +1 -1
- package/dist/lib/types/transcript/ToolBody.d.ts +1 -1
- package/dist/lib/types/transcript/ToolCall.d.ts +1 -1
- package/dist/lib/types/transcript/TranscriptViewer.d.ts +29 -1
- package/dist/lib/types/transcript/TurnCard.d.ts +1 -1
- package/dist/lib/types/transcript/ViewSwitch.d.ts +1 -1
- package/dist/lib/types/transcript/adapter.d.ts +8 -1
- package/dist/lib/types/transcript/state-capabilities.d.ts +1 -1
- package/dist/lib/types/transcript/view-model.d.ts +8 -0
- package/dist/lib/ui-B1R1d4x1.js +21024 -0
- package/dist/lib/ui.js +1 -1
- package/package.json +16 -5
- package/dist/lib/ui-CBAC_ipm.js +0 -11000
|
@@ -26,7 +26,7 @@ export default function Accordion({ items, defaultOpen, allowMultiple, headingLe
|
|
|
26
26
|
defaultOpen?: string | string[];
|
|
27
27
|
allowMultiple?: boolean;
|
|
28
28
|
headingLevel?: number;
|
|
29
|
-
}):
|
|
29
|
+
}): import("react").JSX.Element;
|
|
30
30
|
export type AccordionItem = {
|
|
31
31
|
/**
|
|
32
32
|
* stable id for the item (used for the header/region aria wiring)
|
|
@@ -20,7 +20,7 @@ export function Avatar({ name, initials, size, src, more, className, ...rest }:
|
|
|
20
20
|
src?: string;
|
|
21
21
|
more?: boolean;
|
|
22
22
|
className?: string;
|
|
23
|
-
}):
|
|
23
|
+
}): import("react").JSX.Element;
|
|
24
24
|
/**
|
|
25
25
|
* a stacked, overlapping run of avatars with an optional +N overflow tile.
|
|
26
26
|
* pass <Avatar> children directly; the .av-group nth-child rules handle overlap + z-order.
|
|
@@ -34,7 +34,7 @@ export function AvatarGroup({ label, children, className, ...rest }: {
|
|
|
34
34
|
label: string;
|
|
35
35
|
children: React.ReactNode;
|
|
36
36
|
className?: string;
|
|
37
|
-
}):
|
|
37
|
+
}): import("react").JSX.Element;
|
|
38
38
|
/**
|
|
39
39
|
* a real <kbd> styled as a single keyboard key. accepts text children or a lucide icon (e.g. icon={ArrowUp}).
|
|
40
40
|
* the CSS sizes the icon (.kbd-key .lucide), so render it plainly.
|
|
@@ -50,7 +50,7 @@ export function Kbd({ icon: Icon, label, children, className, ...rest }: {
|
|
|
50
50
|
label?: string;
|
|
51
51
|
children?: React.ReactNode;
|
|
52
52
|
className?: string;
|
|
53
|
-
}):
|
|
53
|
+
}): import("react").JSX.Element;
|
|
54
54
|
/**
|
|
55
55
|
* a keyboard chord: several <Kbd> keys joined by a faint, aria-hidden "+" that is not itself a key.
|
|
56
56
|
* the spoken form lives in `label` (e.g. "command k"); the visible "+" is decorative.
|
|
@@ -64,7 +64,7 @@ export function KbdChord({ label, children, className, ...rest }: {
|
|
|
64
64
|
label: string;
|
|
65
65
|
children: React.ReactNode;
|
|
66
66
|
className?: string;
|
|
67
|
-
}):
|
|
67
|
+
}): import("react").JSX.Element;
|
|
68
68
|
/**
|
|
69
69
|
* a tag / label token. may carry a leading swatch dot (color pairs with the word, never color alone),
|
|
70
70
|
* a leading lucide icon, a selected (amber) state, and an optional dismiss button.
|
|
@@ -89,6 +89,6 @@ export function Tag({ children, brand, icon: Icon, dot, selected, onRemove, remo
|
|
|
89
89
|
onRemove?: () => void;
|
|
90
90
|
removeLabel?: string;
|
|
91
91
|
className?: string;
|
|
92
|
-
}):
|
|
92
|
+
}): import("react").JSX.Element;
|
|
93
93
|
export default Avatar;
|
|
94
94
|
export type AvatarSize = "sm" | "md" | "lg";
|
|
@@ -26,7 +26,7 @@ export default function Button({ variant, size, icon: Icon, iconRight: IconRight
|
|
|
26
26
|
as?: "button" | "a";
|
|
27
27
|
className?: string;
|
|
28
28
|
children?: React.ReactNode;
|
|
29
|
-
}):
|
|
29
|
+
}): import("react").JSX.Element;
|
|
30
30
|
/**
|
|
31
31
|
* groups a set of related buttons into one track with shared seams (.bs-group). pass real Button
|
|
32
32
|
* children. carries role="group"; give it an aria-label naming the action set.
|
|
@@ -40,7 +40,7 @@ export function ButtonGroup({ label, className, children, ...rest }: {
|
|
|
40
40
|
label?: string;
|
|
41
41
|
className?: string;
|
|
42
42
|
children: React.ReactNode;
|
|
43
|
-
}):
|
|
43
|
+
}): import("react").JSX.Element;
|
|
44
44
|
/**
|
|
45
45
|
* @typedef {object} SegmentedOption
|
|
46
46
|
* @property {string} value - the option's value, compared against the control's value
|
|
@@ -67,7 +67,7 @@ export function Segmented({ options, value, defaultValue, onChange, label, class
|
|
|
67
67
|
onChange?: (value: string) => void;
|
|
68
68
|
label?: string;
|
|
69
69
|
className?: string;
|
|
70
|
-
}):
|
|
70
|
+
}): import("react").JSX.Element;
|
|
71
71
|
export type SegmentedOption = {
|
|
72
72
|
/**
|
|
73
73
|
* - the option's value, compared against the control's value
|
package/dist/lib/types/Card.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Slot content via children, or compose with <CardImg/> for the imagery-on-top variant.
|
|
10
10
|
* @param {CardProps & React.HTMLAttributes<HTMLElement>} props
|
|
11
11
|
*/
|
|
12
|
-
export default function Card({ children, link, className, ...rest }: CardProps & React.HTMLAttributes<HTMLElement>):
|
|
12
|
+
export default function Card({ children, link, className, ...rest }: CardProps & React.HTMLAttributes<HTMLElement>): import("react").JSX.Element;
|
|
13
13
|
/**
|
|
14
14
|
* @typedef {Object} CardImgProps
|
|
15
15
|
* @property {React.ReactNode} [thumb] - decorative imagery rendered inside `.card-thumb` (e.g. an <AsciiImage/>).
|
|
@@ -28,7 +28,7 @@ export default function Card({ children, link, className, ...rest }: CardProps &
|
|
|
28
28
|
* already-aria-hidden specimen, e.g. <AsciiImage/>). All text slots are optional.
|
|
29
29
|
* @param {CardImgProps & React.HTMLAttributes<HTMLElement>} props
|
|
30
30
|
*/
|
|
31
|
-
export function CardImg({ thumb, head, title, desc, bullets, foot, link, className, children, ...rest }: CardImgProps & React.HTMLAttributes<HTMLElement>):
|
|
31
|
+
export function CardImg({ thumb, head, title, desc, bullets, foot, link, className, children, ...rest }: CardImgProps & React.HTMLAttributes<HTMLElement>): import("react").JSX.Element;
|
|
32
32
|
/**
|
|
33
33
|
* @typedef {Object} RowProps
|
|
34
34
|
* @property {React.ReactNode} [children] - row contents: metaitems, a `.grow` label, an avatar, etc.
|
|
@@ -42,7 +42,7 @@ export function CardImg({ thumb, head, title, desc, bullets, foot, link, classNa
|
|
|
42
42
|
* focusable <a> that earns its hover affordance and the global focus ring; a plain row is static.
|
|
43
43
|
* @param {RowProps & React.HTMLAttributes<HTMLElement>} props
|
|
44
44
|
*/
|
|
45
|
-
export function Row({ children, link, className, ...rest }: RowProps & React.HTMLAttributes<HTMLElement>):
|
|
45
|
+
export function Row({ children, link, className, ...rest }: RowProps & React.HTMLAttributes<HTMLElement>): import("react").JSX.Element;
|
|
46
46
|
/**
|
|
47
47
|
* @typedef {Object} MetaItemProps
|
|
48
48
|
* @property {React.ComponentType<{ size?: number }>} [icon] - leading icon component reference (e.g. icon={Clock}). Icon size is owned by the `.metaitem .lucide` token rule (`--ic-sm`); it is not configurable per-instance.
|
|
@@ -56,7 +56,7 @@ export function Row({ children, link, className, ...rest }: RowProps & React.HTM
|
|
|
56
56
|
* Decorative icon gets aria-hidden. Pass `value` for counts/durations so they render in the tnum face.
|
|
57
57
|
* @param {MetaItemProps & React.HTMLAttributes<HTMLSpanElement>} props
|
|
58
58
|
*/
|
|
59
|
-
export function MetaItem({ icon: Icon, value, children, className, ...rest }: MetaItemProps & React.HTMLAttributes<HTMLSpanElement>):
|
|
59
|
+
export function MetaItem({ icon: Icon, value, children, className, ...rest }: MetaItemProps & React.HTMLAttributes<HTMLSpanElement>): import("react").JSX.Element;
|
|
60
60
|
export type CardProps = {
|
|
61
61
|
/**
|
|
62
62
|
* - card contents (slotted, e.g. a <CardImg/> or arbitrary markup).
|
|
@@ -36,7 +36,7 @@ export default function ChartBar({ data, xKey, series, stacked, icon, title, asi
|
|
|
36
36
|
yFormatter?: (v: any) => React.ReactNode;
|
|
37
37
|
valueFormatter?: (v: any) => React.ReactNode;
|
|
38
38
|
className?: string;
|
|
39
|
-
}):
|
|
39
|
+
}): import("react").JSX.Element;
|
|
40
40
|
export type BarSeries = {
|
|
41
41
|
/**
|
|
42
42
|
* the data key this series reads from each row.
|
|
@@ -35,7 +35,7 @@ export default function ChartLine({ data, xKey, series, icon, title, aside, sub,
|
|
|
35
35
|
yFormatter?: (v: any) => React.ReactNode;
|
|
36
36
|
valueFormatter?: (v: any) => React.ReactNode;
|
|
37
37
|
className?: string;
|
|
38
|
-
}):
|
|
38
|
+
}): import("react").JSX.Element;
|
|
39
39
|
export type LineSeries = {
|
|
40
40
|
/**
|
|
41
41
|
* data key.
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* A single checkbox: <label class="check"> wrapping the styled <input type="checkbox" class="check-box">.
|
|
11
11
|
* @param {CheckboxProps & import('react').InputHTMLAttributes<HTMLInputElement>} props
|
|
12
12
|
*/
|
|
13
|
-
export default function Checkbox({ checked, defaultChecked, onChange, disabled, children, ...rest }: CheckboxProps &
|
|
13
|
+
export default function Checkbox({ checked, defaultChecked, onChange, disabled, children, ...rest }: CheckboxProps & import("react").InputHTMLAttributes<HTMLInputElement>): import("react").JSX.Element;
|
|
14
14
|
/**
|
|
15
15
|
* @typedef {Object} RadioProps
|
|
16
16
|
* @property {string} name shared group name; radios must come in groups of >=2 so any one
|
|
@@ -30,7 +30,7 @@ export default function Checkbox({ checked, defaultChecked, onChange, disabled,
|
|
|
30
30
|
* binary choice use Checkbox or Switch instead.
|
|
31
31
|
* @param {RadioProps & import('react').InputHTMLAttributes<HTMLInputElement>} props
|
|
32
32
|
*/
|
|
33
|
-
export function Radio({ name, value, checked, defaultChecked, onChange, disabled, children, ...rest }: RadioProps &
|
|
33
|
+
export function Radio({ name, value, checked, defaultChecked, onChange, disabled, children, ...rest }: RadioProps & import("react").InputHTMLAttributes<HTMLInputElement>): import("react").JSX.Element;
|
|
34
34
|
/**
|
|
35
35
|
* @typedef {Object} RadioOption
|
|
36
36
|
* @property {string} value
|
|
@@ -52,7 +52,7 @@ export function Radio({ name, value, checked, defaultChecked, onChange, disabled
|
|
|
52
52
|
* Only one option is selectable because every input shares `name`.
|
|
53
53
|
* @param {RadioGroupProps & import('react').HTMLAttributes<HTMLDivElement>} props
|
|
54
54
|
*/
|
|
55
|
-
export function RadioGroup({ name, value, defaultValue, onChange, options, ariaLabel, ...rest }: RadioGroupProps &
|
|
55
|
+
export function RadioGroup({ name, value, defaultValue, onChange, options, ariaLabel, ...rest }: RadioGroupProps & import("react").HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
56
56
|
export type CheckboxProps = {
|
|
57
57
|
/**
|
|
58
58
|
* controlled checked state (pair with onChange)
|
|
@@ -62,7 +62,7 @@ export type CheckboxProps = {
|
|
|
62
62
|
* initial state for uncontrolled use (default false)
|
|
63
63
|
*/
|
|
64
64
|
defaultChecked?: boolean;
|
|
65
|
-
onChange?: (checked: boolean, event:
|
|
65
|
+
onChange?: (checked: boolean, event: import("react").ChangeEvent<HTMLInputElement>) => void;
|
|
66
66
|
/**
|
|
67
67
|
* native disabled attribute (default false)
|
|
68
68
|
*/
|
|
@@ -70,7 +70,7 @@ export type CheckboxProps = {
|
|
|
70
70
|
/**
|
|
71
71
|
* label text (rendered as passed, not lowercased)
|
|
72
72
|
*/
|
|
73
|
-
children?:
|
|
73
|
+
children?: import("react").ReactNode;
|
|
74
74
|
};
|
|
75
75
|
export type RadioProps = {
|
|
76
76
|
/**
|
|
@@ -91,7 +91,7 @@ export type RadioProps = {
|
|
|
91
91
|
* initial state for uncontrolled use (default false)
|
|
92
92
|
*/
|
|
93
93
|
defaultChecked?: boolean;
|
|
94
|
-
onChange?: (event:
|
|
94
|
+
onChange?: (event: import("react").ChangeEvent<HTMLInputElement>) => void;
|
|
95
95
|
/**
|
|
96
96
|
* native disabled attribute (default false)
|
|
97
97
|
*/
|
|
@@ -99,11 +99,11 @@ export type RadioProps = {
|
|
|
99
99
|
/**
|
|
100
100
|
* label text (rendered as passed, not lowercased)
|
|
101
101
|
*/
|
|
102
|
-
children?:
|
|
102
|
+
children?: import("react").ReactNode;
|
|
103
103
|
};
|
|
104
104
|
export type RadioOption = {
|
|
105
105
|
value: string;
|
|
106
|
-
label:
|
|
106
|
+
label: import("react").ReactNode;
|
|
107
107
|
disabled?: boolean;
|
|
108
108
|
};
|
|
109
109
|
export type RadioGroupProps = {
|
|
@@ -119,7 +119,7 @@ export type RadioGroupProps = {
|
|
|
119
119
|
* initial selected value for uncontrolled use
|
|
120
120
|
*/
|
|
121
121
|
defaultValue?: string;
|
|
122
|
-
onChange?: (value: string, event:
|
|
122
|
+
onChange?: (value: string, event: import("react").ChangeEvent<HTMLInputElement>) => void;
|
|
123
123
|
/**
|
|
124
124
|
* the choices to render
|
|
125
125
|
*/
|
package/dist/lib/types/Chip.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export default function Chip({ tone, size, brand, icon: Icon, chrome, removable,
|
|
|
29
29
|
removeLabel?: string;
|
|
30
30
|
className?: string;
|
|
31
31
|
children: React.ReactNode;
|
|
32
|
-
}):
|
|
32
|
+
}): import("react").JSX.Element;
|
|
33
33
|
/**
|
|
34
34
|
* a filter / toggle chip: a real `<button class="chip chip-toggle" aria-pressed>`. selected shows a
|
|
35
35
|
* leading check (.chipx-tick, revealed by css) and an amber fill; the css carries the rest. supports
|
|
@@ -51,7 +51,7 @@ export function FilterChip({ pressed, defaultPressed, onChange, brand, icon: Ico
|
|
|
51
51
|
icon?: React.ElementType;
|
|
52
52
|
className?: string;
|
|
53
53
|
children: React.ReactNode;
|
|
54
|
-
}):
|
|
54
|
+
}): import("react").JSX.Element;
|
|
55
55
|
/**
|
|
56
56
|
* a status dot ALWAYS paired with a label, so status never rides on color alone. renders the small
|
|
57
57
|
* filled .chipx-dot square (tinted via the --c color var) followed by the required label text.
|
|
@@ -67,7 +67,7 @@ export function StatusDot({ label, color, bare, className, ...rest }: {
|
|
|
67
67
|
color?: string;
|
|
68
68
|
bare?: boolean;
|
|
69
69
|
className?: string;
|
|
70
|
-
}):
|
|
70
|
+
}): import("react").JSX.Element;
|
|
71
71
|
/**
|
|
72
72
|
* a numeric notification count: a trailing pill of tabular digits (.chipx-count). neutral by default;
|
|
73
73
|
* .unread flips it to the scarce amber. tnum keeps digits tabular.
|
|
@@ -80,6 +80,6 @@ export function CountBadge({ count, unread, className, ...rest }: {
|
|
|
80
80
|
count: number | string;
|
|
81
81
|
unread?: boolean;
|
|
82
82
|
className?: string;
|
|
83
|
-
}):
|
|
83
|
+
}): import("react").JSX.Element;
|
|
84
84
|
export type ChipTone = "ok" | "warn" | "err";
|
|
85
85
|
export type ChipSize = "sm";
|
|
@@ -11,7 +11,7 @@ export function CommandBlock({ command, label, className, ...rest }: {
|
|
|
11
11
|
command: string;
|
|
12
12
|
label?: string;
|
|
13
13
|
className?: string;
|
|
14
|
-
}):
|
|
14
|
+
}): import("react").JSX.Element;
|
|
15
15
|
/**
|
|
16
16
|
* @typedef {object} CliStep
|
|
17
17
|
* @property {string} title - the step heading (e.g. "install"). Chrome — rendered lowercase by CSS.
|
|
@@ -31,7 +31,7 @@ export function CliSteps({ steps, label, className, ...rest }: {
|
|
|
31
31
|
steps: CliStep[];
|
|
32
32
|
label?: string;
|
|
33
33
|
className?: string;
|
|
34
|
-
}):
|
|
34
|
+
}): import("react").JSX.Element;
|
|
35
35
|
/**
|
|
36
36
|
* GettingStarted — a dismissible card wrapping <CliSteps>: a header (title + close button) over the
|
|
37
37
|
* step list. Dismissing persists "dismissed" to localStorage under `storageKey`, so the card stays
|
|
@@ -50,7 +50,7 @@ export function GettingStarted({ title, steps, storageKey, onDismiss, className,
|
|
|
50
50
|
storageKey?: string;
|
|
51
51
|
onDismiss?: () => void;
|
|
52
52
|
className?: string;
|
|
53
|
-
}):
|
|
53
|
+
}): import("react").JSX.Element;
|
|
54
54
|
export default CliSteps;
|
|
55
55
|
export type CliStep = {
|
|
56
56
|
/**
|
|
@@ -73,7 +73,7 @@ export default function CommitGraph({ commits, selectedId, onNavigate, onSelect,
|
|
|
73
73
|
onToggleCommitSessions?: (commitHash: string) => void;
|
|
74
74
|
touchedFilesByCommit?: Record<string, string[]>;
|
|
75
75
|
onOpenTouchedFile?: (file: string) => void;
|
|
76
|
-
}):
|
|
76
|
+
}): import("react").JSX.Element;
|
|
77
77
|
export type Commit = {
|
|
78
78
|
/**
|
|
79
79
|
* - stable key (e.g. short hash)
|
|
@@ -15,7 +15,7 @@ export function ConnectionPill({ status, showNote, className, ...rest }: {
|
|
|
15
15
|
status?: "live" | "connecting" | "disconnected";
|
|
16
16
|
showNote?: boolean;
|
|
17
17
|
className?: string;
|
|
18
|
-
}):
|
|
18
|
+
}): import("react").JSX.Element;
|
|
19
19
|
/**
|
|
20
20
|
* DataState — the discriminator between the states a data view can be in, so a dropped connection
|
|
21
21
|
* never reads as "empty". precedence is deliberate:
|
|
@@ -46,12 +46,12 @@ export function DataState({ status, loading, error, empty, children, emptyState,
|
|
|
46
46
|
loading?: boolean;
|
|
47
47
|
error?: boolean | string;
|
|
48
48
|
empty?: boolean;
|
|
49
|
-
children?:
|
|
50
|
-
emptyState?:
|
|
49
|
+
children?: import("react").ReactNode;
|
|
50
|
+
emptyState?: import("react").ReactNode;
|
|
51
51
|
onRetry?: () => void;
|
|
52
52
|
skeletonRows?: number;
|
|
53
53
|
className?: string;
|
|
54
|
-
}):
|
|
54
|
+
}): import("react").JSX.Element;
|
|
55
55
|
/**
|
|
56
56
|
* TeachingEmptyState — an empty state that TEACHES the mechanism instead of just declaring the
|
|
57
57
|
* absence. a leading icon, a title, a line of guidance, and a copy-able `$ command` chip (the
|
|
@@ -71,12 +71,12 @@ export function DataState({ status, loading, error, empty, children, emptyState,
|
|
|
71
71
|
* @param {string} [props.className]
|
|
72
72
|
*/
|
|
73
73
|
export function TeachingEmptyState({ icon: Icon, title, body, command, privacy, as: Heading, className, ...rest }: {
|
|
74
|
-
icon?:
|
|
75
|
-
title:
|
|
76
|
-
body?:
|
|
74
|
+
icon?: import("react").ComponentType;
|
|
75
|
+
title: import("react").ReactNode;
|
|
76
|
+
body?: import("react").ReactNode;
|
|
77
77
|
command?: string;
|
|
78
|
-
privacy?:
|
|
78
|
+
privacy?: import("react").ReactNode;
|
|
79
79
|
as?: keyof JSX.IntrinsicElements;
|
|
80
80
|
className?: string;
|
|
81
|
-
}):
|
|
81
|
+
}): import("react").JSX.Element;
|
|
82
82
|
export default ConnectionPill;
|
|
@@ -21,7 +21,7 @@ export function ConsentSummary({ axes, caption, className, ...rest }: {
|
|
|
21
21
|
axes: ConsentAxis[];
|
|
22
22
|
caption?: string;
|
|
23
23
|
className?: string;
|
|
24
|
-
}):
|
|
24
|
+
}): import("react").JSX.Element;
|
|
25
25
|
/**
|
|
26
26
|
* ConsentDialog — a scrim + bordered modal that frames a governance decision.
|
|
27
27
|
* structure: head (mono lowercase title + close) / body (intro prose, a
|
|
@@ -72,7 +72,7 @@ export default function ConsentDialog({ open, title, intro, axes, summaryCaption
|
|
|
72
72
|
busy?: boolean;
|
|
73
73
|
labelId?: string;
|
|
74
74
|
returnFocusRef?: React.RefObject<HTMLElement>;
|
|
75
|
-
}):
|
|
75
|
+
}): import("react").JSX.Element;
|
|
76
76
|
export type ConsentAxis = {
|
|
77
77
|
/**
|
|
78
78
|
* lucide component for the row (rendered in a square chip)
|
|
@@ -51,7 +51,7 @@ export default function DataTable({ columns, rows, selectable, rowKey, defaultSo
|
|
|
51
51
|
onSelectionChange?: (keys: Array<string | number>) => void;
|
|
52
52
|
caption?: string;
|
|
53
53
|
className?: string;
|
|
54
|
-
}):
|
|
54
|
+
}): import("react").JSX.Element;
|
|
55
55
|
/**
|
|
56
56
|
* a sortable + selectable data table. square, hairline, mono headers; both themes
|
|
57
57
|
* via tokens. sort + selection state/logic are powered by TanStack Table
|
|
@@ -40,7 +40,7 @@ export function DateRangeCalendar({ value, defaultValue, onChange, onDraftChange
|
|
|
40
40
|
className?: string;
|
|
41
41
|
autoFocus?: boolean;
|
|
42
42
|
gridLabelId: any;
|
|
43
|
-
}):
|
|
43
|
+
}): import("react").JSX.Element;
|
|
44
44
|
/**
|
|
45
45
|
* @typedef {Object} DateRangeProps
|
|
46
46
|
* @property {{from:string|null,to:string|null}} [value] controlled ISO range
|
|
@@ -87,7 +87,7 @@ export default function DateRange({ value, defaultValue, onChange, onDraftChange
|
|
|
87
87
|
disabled?: boolean;
|
|
88
88
|
clearable?: boolean;
|
|
89
89
|
id: any;
|
|
90
|
-
}):
|
|
90
|
+
}): import("react").JSX.Element;
|
|
91
91
|
/**
|
|
92
92
|
* DATE_PRESETS - the default quick-range list. each `range()` is evaluated at open time
|
|
93
93
|
* against today's local date, so "last 7 days" always tracks the real calendar.
|
|
@@ -24,5 +24,8 @@ export default function EmptyState({ icon: Icon, title, message, action, childre
|
|
|
24
24
|
children?: ReactNode;
|
|
25
25
|
as?: keyof JSX.IntrinsicElements;
|
|
26
26
|
}): JSX.Element;
|
|
27
|
-
export type ReactNode =
|
|
28
|
-
export type IconComponent =
|
|
27
|
+
export type ReactNode = import("react").ReactNode;
|
|
28
|
+
export type IconComponent = import("react").ComponentType<{
|
|
29
|
+
size?: number;
|
|
30
|
+
"aria-hidden"?: boolean;
|
|
31
|
+
}>;
|
|
@@ -18,7 +18,7 @@ export function EvidenceCaption({ fragments, onJump, "aria-label": ariaLabel, cl
|
|
|
18
18
|
label?: string;
|
|
19
19
|
}>;
|
|
20
20
|
onJump?: (anchorId: string) => void;
|
|
21
|
-
}):
|
|
21
|
+
}): import("react").JSX.Element;
|
|
22
22
|
/**
|
|
23
23
|
* EvidenceTarget — the proof block a fragment jumps to. it owns the `id` the caption scrolls to and
|
|
24
24
|
* the `data-ec-flash` attribute the CSS animates on arrival. give it an `eyebrow` (a small mono
|
|
@@ -35,5 +35,5 @@ export function EvidenceTarget({ id, eyebrow, children, className, ...rest }: {
|
|
|
35
35
|
eyebrow?: string;
|
|
36
36
|
children: React.ReactNode;
|
|
37
37
|
className?: string;
|
|
38
|
-
}):
|
|
38
|
+
}): import("react").JSX.Element;
|
|
39
39
|
export default EvidenceCaption;
|
|
@@ -21,7 +21,7 @@ export default function Explainer({ children, title, defaultOpen, storageKey, to
|
|
|
21
21
|
storageKey: any;
|
|
22
22
|
tone?: string;
|
|
23
23
|
className?: string;
|
|
24
|
-
}):
|
|
24
|
+
}): import("react").JSX.Element;
|
|
25
25
|
/**
|
|
26
26
|
* @typedef {Object} TermProps
|
|
27
27
|
* @property {string} def the plain-language definition shown in the tooltip (mono chrome).
|
|
@@ -39,7 +39,7 @@ export function Term({ def, children, className }: {
|
|
|
39
39
|
def: any;
|
|
40
40
|
children: any;
|
|
41
41
|
className?: string;
|
|
42
|
-
}):
|
|
42
|
+
}): import("react").JSX.Element;
|
|
43
43
|
export type ExplainerProps = {
|
|
44
44
|
/**
|
|
45
45
|
* the explanatory PROSE (rendered in var(--font-body)); may contain <Term> words.
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
/**
|
|
12
12
|
* @param {SkeletonProps} props
|
|
13
13
|
*/
|
|
14
|
-
export function Skeleton({ label, avatar, lines, className }: SkeletonProps):
|
|
14
|
+
export function Skeleton({ label, avatar, lines, className }: SkeletonProps): import("react").JSX.Element;
|
|
15
15
|
/**
|
|
16
16
|
* Progress — a determinate progress bar with a labelled head + tabular percent.
|
|
17
17
|
* @typedef {Object} ProgressProps
|
|
@@ -28,7 +28,7 @@ export function Skeleton({ label, avatar, lines, className }: SkeletonProps): an
|
|
|
28
28
|
/**
|
|
29
29
|
* @param {ProgressProps} props
|
|
30
30
|
*/
|
|
31
|
-
export function Progress({ value, min, max, label, ariaLabel, showPct, className, }: ProgressProps):
|
|
31
|
+
export function Progress({ value, min, max, label, ariaLabel, showPct, className, }: ProgressProps): import("react").JSX.Element;
|
|
32
32
|
/**
|
|
33
33
|
* Spinner — an inline busy marker: spinning icon + lowercase label, in a live region.
|
|
34
34
|
* @typedef {Object} SpinnerProps
|
|
@@ -40,7 +40,7 @@ export function Progress({ value, min, max, label, ariaLabel, showPct, className
|
|
|
40
40
|
/**
|
|
41
41
|
* @param {SpinnerProps} props
|
|
42
42
|
*/
|
|
43
|
-
export function Spinner({ children, icon: Icon, className }: SpinnerProps):
|
|
43
|
+
export function Spinner({ children, icon: Icon, className }: SpinnerProps): import("react").JSX.Element;
|
|
44
44
|
/**
|
|
45
45
|
* Toast — a transient notification: icon + title + message + dismiss button.
|
|
46
46
|
* Render inside an aria-live region (e.g. a wrapper with aria-live="polite") for the
|
|
@@ -59,7 +59,7 @@ export function Spinner({ children, icon: Icon, className }: SpinnerProps): any;
|
|
|
59
59
|
/**
|
|
60
60
|
* @param {ToastProps} props
|
|
61
61
|
*/
|
|
62
|
-
export function Toast({ variant, title, children, icon: Icon, onClose, closeLabel, className, }: ToastProps):
|
|
62
|
+
export function Toast({ variant, title, children, icon: Icon, onClose, closeLabel, className, }: ToastProps): import("react").JSX.Element;
|
|
63
63
|
/**
|
|
64
64
|
* FeedbackPanel — a centred inline state surface (loading / error / empty), with an
|
|
65
65
|
* icon tile, lowercase title and a message. Loading sets aria-busy + role=status;
|
|
@@ -76,7 +76,7 @@ export function Toast({ variant, title, children, icon: Icon, onClose, closeLabe
|
|
|
76
76
|
/**
|
|
77
77
|
* @param {FeedbackPanelProps} props
|
|
78
78
|
*/
|
|
79
|
-
export function FeedbackPanel({ variant, title, children, icon: Icon, className }: FeedbackPanelProps):
|
|
79
|
+
export function FeedbackPanel({ variant, title, children, icon: Icon, className }: FeedbackPanelProps): import("react").JSX.Element;
|
|
80
80
|
export default Spinner;
|
|
81
81
|
/**
|
|
82
82
|
* Skeleton — a placeholder block that mirrors the shape of loading content.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* A grouped tri-state multi-select tree. See GroupedMultiSelectProps.
|
|
3
3
|
* @param {GroupedMultiSelectProps} props
|
|
4
4
|
*/
|
|
5
|
-
export default function GroupedMultiSelect({ groups, value, defaultValue, onChange, tokenLabel, defaultOpen, ariaLabel, }: GroupedMultiSelectProps):
|
|
5
|
+
export default function GroupedMultiSelect({ groups, value, defaultValue, onChange, tokenLabel, defaultOpen, ariaLabel, }: GroupedMultiSelectProps): import("react").JSX.Element;
|
|
6
6
|
export type GMSItem = {
|
|
7
7
|
/**
|
|
8
8
|
* unique selection id (what lands in the value Set).
|
|
@@ -11,11 +11,11 @@ export type GMSItem = {
|
|
|
11
11
|
/**
|
|
12
12
|
* the item title — user content, rendered verbatim.
|
|
13
13
|
*/
|
|
14
|
-
label:
|
|
14
|
+
label: import("react").ReactNode;
|
|
15
15
|
/**
|
|
16
16
|
* one-line secondary metadata (e.g. "42 turns · jun 3").
|
|
17
17
|
*/
|
|
18
|
-
meta?:
|
|
18
|
+
meta?: import("react").ReactNode;
|
|
19
19
|
/**
|
|
20
20
|
* token count for the running tally; defaults to 0.
|
|
21
21
|
*/
|
|
@@ -29,7 +29,7 @@ export type GMSGroup = {
|
|
|
29
29
|
/**
|
|
30
30
|
* the group title — user content, rendered verbatim.
|
|
31
31
|
*/
|
|
32
|
-
label:
|
|
32
|
+
label: import("react").ReactNode;
|
|
33
33
|
/**
|
|
34
34
|
* the group's selectable items.
|
|
35
35
|
*/
|
|
@@ -18,12 +18,12 @@ export function IntensitySwatch({ level, accent, size, label, className, ...rest
|
|
|
18
18
|
size: any;
|
|
19
19
|
label: any;
|
|
20
20
|
className?: string;
|
|
21
|
-
}):
|
|
21
|
+
}): import("react").JSX.Element;
|
|
22
22
|
export function RampLegend({ title, words, className }: {
|
|
23
23
|
title?: string;
|
|
24
24
|
words?: string[];
|
|
25
25
|
className?: string;
|
|
26
|
-
}):
|
|
26
|
+
}): import("react").JSX.Element;
|
|
27
27
|
export function Heatmap({ values, levels, max, labels, ariaLabel, className }: {
|
|
28
28
|
values: any;
|
|
29
29
|
levels: any;
|
|
@@ -31,7 +31,7 @@ export function Heatmap({ values, levels, max, labels, ariaLabel, className }: {
|
|
|
31
31
|
labels: any;
|
|
32
32
|
ariaLabel?: string;
|
|
33
33
|
className?: string;
|
|
34
|
-
}):
|
|
34
|
+
}): import("react").JSX.Element;
|
|
35
35
|
export function MapNode({ label, loc, coverage, recorded, total, selected, violation, effortPct, size, as, onClick, className, ...rest }: {
|
|
36
36
|
[x: string]: any;
|
|
37
37
|
label: any;
|
|
@@ -46,10 +46,10 @@ export function MapNode({ label, loc, coverage, recorded, total, selected, viola
|
|
|
46
46
|
as?: string;
|
|
47
47
|
onClick: any;
|
|
48
48
|
className?: string;
|
|
49
|
-
}):
|
|
49
|
+
}): import("react").JSX.Element;
|
|
50
50
|
export function IntensityScope({ children, className, ...rest }: {
|
|
51
51
|
[x: string]: any;
|
|
52
52
|
children: any;
|
|
53
53
|
className?: string;
|
|
54
|
-
}):
|
|
54
|
+
}): import("react").JSX.Element;
|
|
55
55
|
export default MapNode;
|
|
@@ -107,7 +107,7 @@ export default function MapCanvas({ data, grain: grainProp, expandedIds, visible
|
|
|
107
107
|
}) => void;
|
|
108
108
|
onStateAction?: (action: import("./graph/codeMapState.js").CodeMapAction) => void;
|
|
109
109
|
canonicalControlled?: boolean;
|
|
110
|
-
}):
|
|
110
|
+
}): import("react").JSX.Element;
|
|
111
111
|
export type MapNode = {
|
|
112
112
|
/**
|
|
113
113
|
* stable key (repo-relative path)
|
package/dist/lib/types/Menu.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export default function Menu({ label, items, align, caption, defaultOpen }: {
|
|
|
25
25
|
align?: "start" | "end";
|
|
26
26
|
caption?: React.ReactNode;
|
|
27
27
|
defaultOpen?: boolean;
|
|
28
|
-
}):
|
|
28
|
+
}): import("react").JSX.Element;
|
|
29
29
|
export type MenuItem = {
|
|
30
30
|
/**
|
|
31
31
|
* row label (passed-through children case preserved)
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
/**
|
|
14
14
|
* @param {ApprovalBarProps} props
|
|
15
15
|
*/
|
|
16
|
-
export function ApprovalBar({ subject, onApprove, onReject, approveLabel, rejectLabel, className, }: ApprovalBarProps):
|
|
16
|
+
export function ApprovalBar({ subject, onApprove, onReject, approveLabel, rejectLabel, className, }: ApprovalBarProps): import("react").JSX.Element;
|
|
17
17
|
/**
|
|
18
18
|
* ModerationQueue — a panel listing pending items (member requests OR shares). Each row shows who +
|
|
19
19
|
* detail + relative time, with approve/reject buttons. Acting on a row resolves it OPTIMISTICALLY in
|
|
@@ -38,7 +38,7 @@ export function ApprovalBar({ subject, onApprove, onReject, approveLabel, reject
|
|
|
38
38
|
/**
|
|
39
39
|
* @param {ModerationQueueProps} props
|
|
40
40
|
*/
|
|
41
|
-
export function ModerationQueue({ title, items, onApprove, onReject, emptyLabel, className, }: ModerationQueueProps):
|
|
41
|
+
export function ModerationQueue({ title, items, onApprove, onReject, emptyLabel, className, }: ModerationQueueProps): import("react").JSX.Element;
|
|
42
42
|
export default ModerationQueue;
|
|
43
43
|
/**
|
|
44
44
|
* ApprovalBar — a sticky top bar for reviewing a single pending item. Once acted on it collapses
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @param {PagerProps} props
|
|
15
15
|
*/
|
|
16
|
-
export default function Pager({ page, total, onPrev, onNext, onChange, label }: PagerProps):
|
|
16
|
+
export default function Pager({ page, total, onPrev, onNext, onChange, label }: PagerProps): import("react").JSX.Element;
|
|
17
17
|
/**
|
|
18
18
|
* the simple prev/next pager (the .pager specimen). a label naming the current page,
|
|
19
19
|
* flanked by previous/next icon buttons. reuses .pager + .btn.btn-secondary.btn-sm.btn-icon
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @param {PaginationProps} props
|
|
14
14
|
*/
|
|
15
|
-
export default function Pagination({ page, defaultPage, total, totalItems, pageSize, onChange, siblingCount, label, }: PaginationProps):
|
|
15
|
+
export default function Pagination({ page, defaultPage, total, totalItems, pageSize, onChange, siblingCount, label, }: PaginationProps): import("react").JSX.Element;
|
|
16
16
|
export type PaginationProps = {
|
|
17
17
|
/**
|
|
18
18
|
* controlled current page (1-based); pair with onChange.
|