@peasant-labs/fairtrade 0.0.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/LICENSE +21 -0
- package/README.md +85 -0
- package/dist/lib/README.md +13 -0
- package/dist/lib/base.css +48 -0
- package/dist/lib/components.css +2 -0
- package/dist/lib/fonts.css +28 -0
- package/dist/lib/tokens.css +184 -0
- package/dist/lib/tokens.json +768 -0
- package/dist/lib/types/Accordion.d.ts +47 -0
- package/dist/lib/types/Accordion.stories.d.ts +91 -0
- package/dist/lib/types/Avatar.d.ts +94 -0
- package/dist/lib/types/Avatar.stories.d.ts +160 -0
- package/dist/lib/types/BrandMark.d.ts +25 -0
- package/dist/lib/types/BrandMark.stories.d.ts +75 -0
- package/dist/lib/types/Breadcrumb.d.ts +66 -0
- package/dist/lib/types/Breadcrumb.stories.d.ts +91 -0
- package/dist/lib/types/Button.d.ts +86 -0
- package/dist/lib/types/Button.stories.d.ts +129 -0
- package/dist/lib/types/Card.d.ts +145 -0
- package/dist/lib/types/Card.stories.d.ts +70 -0
- package/dist/lib/types/Chart.stories.d.ts +55 -0
- package/dist/lib/types/ChartBar.d.ts +51 -0
- package/dist/lib/types/ChartLine.d.ts +54 -0
- package/dist/lib/types/Checkbox.d.ts +132 -0
- package/dist/lib/types/Checkbox.stories.d.ts +75 -0
- package/dist/lib/types/Chip.d.ts +85 -0
- package/dist/lib/types/Chip.stories.d.ts +190 -0
- package/dist/lib/types/CliOnboard.d.ts +68 -0
- package/dist/lib/types/CliOnboard.stories.d.ts +24 -0
- package/dist/lib/types/CommandPalette.d.ts +6 -0
- package/dist/lib/types/CommandPalette.stories.d.ts +94 -0
- package/dist/lib/types/CommitGraph.d.ts +71 -0
- package/dist/lib/types/CommitGraph.stories.d.ts +17 -0
- package/dist/lib/types/ConnectionState.d.ts +82 -0
- package/dist/lib/types/ConnectionState.stories.d.ts +117 -0
- package/dist/lib/types/ConsentDialog.d.ts +97 -0
- package/dist/lib/types/ConsentDialog.stories.d.ts +61 -0
- package/dist/lib/types/DataTable.d.ts +116 -0
- package/dist/lib/types/DataTable.stories.d.ts +240 -0
- package/dist/lib/types/DateRange.d.ts +242 -0
- package/dist/lib/types/DateRange.stories.d.ts +272 -0
- package/dist/lib/types/Dialog.d.ts +9 -0
- package/dist/lib/types/Dialog.stories.d.ts +121 -0
- package/dist/lib/types/DiffView.d.ts +39 -0
- package/dist/lib/types/DiffView.stories.d.ts +118 -0
- package/dist/lib/types/EmptyState.d.ts +28 -0
- package/dist/lib/types/EmptyState.stories.d.ts +130 -0
- package/dist/lib/types/EvidenceCaption.d.ts +39 -0
- package/dist/lib/types/EvidenceCaption.stories.d.ts +43 -0
- package/dist/lib/types/Explainer.d.ts +82 -0
- package/dist/lib/types/Explainer.stories.d.ts +22 -0
- package/dist/lib/types/FacetRail.d.ts +13 -0
- package/dist/lib/types/FacetRail.stories.d.ts +28 -0
- package/dist/lib/types/Feedback.d.ts +222 -0
- package/dist/lib/types/Feedback.stories.d.ts +81 -0
- package/dist/lib/types/GroupedMultiSelect.d.ts +67 -0
- package/dist/lib/types/GroupedMultiSelect.stories.d.ts +59 -0
- package/dist/lib/types/Input.d.ts +158 -0
- package/dist/lib/types/Input.stories.d.ts +181 -0
- package/dist/lib/types/Intensity.d.ts +55 -0
- package/dist/lib/types/Intensity.stories.d.ts +108 -0
- package/dist/lib/types/MapCanvas.d.ts +89 -0
- package/dist/lib/types/MapCanvas.stories.d.ts +174 -0
- package/dist/lib/types/Menu.d.ts +62 -0
- package/dist/lib/types/Menu.stories.d.ts +173 -0
- package/dist/lib/types/ModerationQueue.d.ts +135 -0
- package/dist/lib/types/ModerationQueue.stories.d.ts +34 -0
- package/dist/lib/types/Pager.d.ts +47 -0
- package/dist/lib/types/Pager.stories.d.ts +100 -0
- package/dist/lib/types/Pagination.d.ts +50 -0
- package/dist/lib/types/Pagination.stories.d.ts +193 -0
- package/dist/lib/types/PolicySelect.d.ts +80 -0
- package/dist/lib/types/PolicySelect.stories.d.ts +130 -0
- package/dist/lib/types/ProviderIcon.d.ts +83 -0
- package/dist/lib/types/ProviderIcon.stories.d.ts +44 -0
- package/dist/lib/types/RailShell.d.ts +199 -0
- package/dist/lib/types/RailShell.stories.d.ts +32 -0
- package/dist/lib/types/Redaction.d.ts +53 -0
- package/dist/lib/types/Redaction.stories.d.ts +120 -0
- package/dist/lib/types/RoleRoster.d.ts +97 -0
- package/dist/lib/types/RoleRoster.stories.d.ts +23 -0
- package/dist/lib/types/SignIn.d.ts +78 -0
- package/dist/lib/types/SignIn.stories.d.ts +57 -0
- package/dist/lib/types/Sparkline.d.ts +19 -0
- package/dist/lib/types/StatTiles.d.ts +115 -0
- package/dist/lib/types/StatTiles.stories.d.ts +31 -0
- package/dist/lib/types/StepWizard.d.ts +92 -0
- package/dist/lib/types/StepWizard.stories.d.ts +18 -0
- package/dist/lib/types/StepsWaterfall.d.ts +67 -0
- package/dist/lib/types/StepsWaterfall.stories.d.ts +94 -0
- package/dist/lib/types/Switch.d.ts +63 -0
- package/dist/lib/types/Switch.stories.d.ts +134 -0
- package/dist/lib/types/Tabs.d.ts +48 -0
- package/dist/lib/types/Tabs.stories.d.ts +75 -0
- package/dist/lib/types/TimeStrip.d.ts +12 -0
- package/dist/lib/types/TimeStrip.stories.d.ts +30 -0
- package/dist/lib/types/Timeline.d.ts +192 -0
- package/dist/lib/types/Timeline.stories.d.ts +974 -0
- package/dist/lib/types/ToastHost.d.ts +70 -0
- package/dist/lib/types/ToastHost.stories.d.ts +115 -0
- package/dist/lib/types/ToolRenderers.d.ts +24 -0
- package/dist/lib/types/ToolRenderers.stories.d.ts +138 -0
- package/dist/lib/types/Tooltip.d.ts +80 -0
- package/dist/lib/types/Tooltip.stories.d.ts +116 -0
- package/dist/lib/types/Tour.d.ts +37 -0
- package/dist/lib/types/Tour.stories.d.ts +39 -0
- package/dist/lib/types/TranscriptMarkers.d.ts +50 -0
- package/dist/lib/types/TranscriptMarkers.stories.d.ts +48 -0
- package/dist/lib/types/Treemap.d.ts +77 -0
- package/dist/lib/types/Treemap.stories.d.ts +101 -0
- package/dist/lib/types/VisibilityControl.d.ts +54 -0
- package/dist/lib/types/VisibilityControl.stories.d.ts +126 -0
- package/dist/lib/types/chart-shared.d.ts +63 -0
- package/dist/lib/types/index.d.ts +53 -0
- package/dist/lib/types/story-frame.d.ts +12 -0
- package/dist/lib/ui.js +8707 -0
- package/package.json +67 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export default meta;
|
|
2
|
+
export namespace Phases {
|
|
3
|
+
function render(): any;
|
|
4
|
+
function play({ canvasElement }: {
|
|
5
|
+
canvasElement: any;
|
|
6
|
+
}): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export namespace TaskBoundaryDivider {
|
|
9
|
+
export let name: string;
|
|
10
|
+
export function render_1(): any;
|
|
11
|
+
export { render_1 as render };
|
|
12
|
+
export function play_1({ canvasElement }: {
|
|
13
|
+
canvasElement: any;
|
|
14
|
+
}): Promise<void>;
|
|
15
|
+
export { play_1 as play };
|
|
16
|
+
}
|
|
17
|
+
export namespace Checkpoint {
|
|
18
|
+
export function render_2(): any;
|
|
19
|
+
export { render_2 as render };
|
|
20
|
+
export function play_2({ canvasElement }: {
|
|
21
|
+
canvasElement: any;
|
|
22
|
+
}): Promise<void>;
|
|
23
|
+
export { play_2 as play };
|
|
24
|
+
}
|
|
25
|
+
export namespace TurnContext {
|
|
26
|
+
export function render_3(): any;
|
|
27
|
+
export { render_3 as render };
|
|
28
|
+
export function play_3({ canvasElement }: {
|
|
29
|
+
canvasElement: any;
|
|
30
|
+
}): Promise<void>;
|
|
31
|
+
export { play_3 as play };
|
|
32
|
+
}
|
|
33
|
+
export namespace Divider {
|
|
34
|
+
let name_1: string;
|
|
35
|
+
export { name_1 as name };
|
|
36
|
+
export function render_4(): any;
|
|
37
|
+
export { render_4 as render };
|
|
38
|
+
}
|
|
39
|
+
declare namespace meta {
|
|
40
|
+
export let title: string;
|
|
41
|
+
export { TaskBoundary as component };
|
|
42
|
+
export let tags: string[];
|
|
43
|
+
export let decorators: Function[];
|
|
44
|
+
export namespace parameters {
|
|
45
|
+
let layout: string;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
import { TaskBoundary } from './TranscriptMarkers.jsx';
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lay `items` out as a squarified treemap filling [0,0,width,height]. Returns one
|
|
3
|
+
* tile per item (input length preserved). Zero/negative-value items get zero-size
|
|
4
|
+
* tiles (no area, so they never overlap). When every value is 0, values fall back
|
|
5
|
+
* to equal (so a no-churn set still tiles legibly). A non-positive width or height
|
|
6
|
+
* yields all-zero tiles (no NaN/Infinity).
|
|
7
|
+
*
|
|
8
|
+
* @param {Array<{id:string, value:number}>} items
|
|
9
|
+
* @param {number} width
|
|
10
|
+
* @param {number} height
|
|
11
|
+
* @returns {Array<{id:string, x:number, y:number, w:number, h:number}>}
|
|
12
|
+
*/
|
|
13
|
+
export function squarify(items: Array<{
|
|
14
|
+
id: string;
|
|
15
|
+
value: number;
|
|
16
|
+
}>, width: number, height: number): Array<{
|
|
17
|
+
id: string;
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
w: number;
|
|
21
|
+
h: number;
|
|
22
|
+
}>;
|
|
23
|
+
/**
|
|
24
|
+
* @typedef {Object} TreemapDatum
|
|
25
|
+
* @property {string} id stable key (also the default selection token)
|
|
26
|
+
* @property {string} label human label, e.g. "ingest/stream.go" (leaf shown)
|
|
27
|
+
* @property {number} value non-negative sizing weight; tile AREA ∝ value
|
|
28
|
+
* @property {number} [intensity=0] 0..4 monochrome ramp level (a SECOND metric)
|
|
29
|
+
* @property {string} [unit='lines'] noun for the aria-label, e.g. "lines", "calls"
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* Treemap — a squarified, strict-monochrome treemap. One tile per datum, AREA
|
|
33
|
+
* proportional to `value`, an optional 0..4 grayscale `intensity` reinforcing a
|
|
34
|
+
* second metric. No hue, no verdict — facts for orientation. Each tile is a real
|
|
35
|
+
* <button> (label + aria-label "<label> — N <unit>"), focus-visible ring, and a
|
|
36
|
+
* title, so sliver tiles whose label is suppressed stay identifiable. Clicking a
|
|
37
|
+
* tile fires `onSelect(id, datum)`.
|
|
38
|
+
*
|
|
39
|
+
* Emits a `role="group"` container so the interactive tiles stay in the a11y tree
|
|
40
|
+
* (role="img" would make them presentational). Renders nothing for an empty set.
|
|
41
|
+
*
|
|
42
|
+
* @param {Object} props
|
|
43
|
+
* @param {TreemapDatum[]} [props.data=[]] the tiles (area ∝ value)
|
|
44
|
+
* @param {(id:string, datum:TreemapDatum)=>void} [props.onSelect] fired on tile click
|
|
45
|
+
* @param {number} [props.height=320] container height in px
|
|
46
|
+
* @param {string} [props.ariaLabel] label for the group landmark
|
|
47
|
+
* @param {string} [props.className] extra class on the container
|
|
48
|
+
*/
|
|
49
|
+
export default function Treemap({ data, onSelect, height, ariaLabel, className, }: {
|
|
50
|
+
data?: TreemapDatum[];
|
|
51
|
+
onSelect?: (id: string, datum: TreemapDatum) => void;
|
|
52
|
+
height?: number;
|
|
53
|
+
ariaLabel?: string;
|
|
54
|
+
className?: string;
|
|
55
|
+
}): any;
|
|
56
|
+
export type TreemapDatum = {
|
|
57
|
+
/**
|
|
58
|
+
* stable key (also the default selection token)
|
|
59
|
+
*/
|
|
60
|
+
id: string;
|
|
61
|
+
/**
|
|
62
|
+
* human label, e.g. "ingest/stream.go" (leaf shown)
|
|
63
|
+
*/
|
|
64
|
+
label: string;
|
|
65
|
+
/**
|
|
66
|
+
* non-negative sizing weight; tile AREA ∝ value
|
|
67
|
+
*/
|
|
68
|
+
value: number;
|
|
69
|
+
/**
|
|
70
|
+
* 0..4 monochrome ramp level (a SECOND metric)
|
|
71
|
+
*/
|
|
72
|
+
intensity?: number;
|
|
73
|
+
/**
|
|
74
|
+
* noun for the aria-label, e.g. "lines", "calls"
|
|
75
|
+
*/
|
|
76
|
+
unit?: string;
|
|
77
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { Treemap as component };
|
|
4
|
+
export namespace parameters {
|
|
5
|
+
let layout: string;
|
|
6
|
+
namespace docs {
|
|
7
|
+
namespace description {
|
|
8
|
+
let component: string;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export let decorators: Function[];
|
|
13
|
+
export namespace argTypes {
|
|
14
|
+
namespace height {
|
|
15
|
+
namespace control {
|
|
16
|
+
let type: string;
|
|
17
|
+
let min: number;
|
|
18
|
+
let max: number;
|
|
19
|
+
let step: number;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
namespace onSelect {
|
|
23
|
+
let action: string;
|
|
24
|
+
}
|
|
25
|
+
namespace data {
|
|
26
|
+
let control_1: boolean;
|
|
27
|
+
export { control_1 as control };
|
|
28
|
+
}
|
|
29
|
+
namespace ariaLabel {
|
|
30
|
+
let control_2: string;
|
|
31
|
+
export { control_2 as control };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export default _default;
|
|
36
|
+
export namespace Default {
|
|
37
|
+
namespace args {
|
|
38
|
+
export { CHANGE_SET as data };
|
|
39
|
+
let height_1: number;
|
|
40
|
+
export { height_1 as height };
|
|
41
|
+
let onSelect_1: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
42
|
+
export { onSelect_1 as onSelect };
|
|
43
|
+
let ariaLabel_1: string;
|
|
44
|
+
export { ariaLabel_1 as ariaLabel };
|
|
45
|
+
}
|
|
46
|
+
function play({ args, canvasElement }: {
|
|
47
|
+
args: any;
|
|
48
|
+
canvasElement: any;
|
|
49
|
+
}): Promise<void>;
|
|
50
|
+
}
|
|
51
|
+
export namespace Dense {
|
|
52
|
+
export namespace args_1 {
|
|
53
|
+
export { DENSE_SET as data };
|
|
54
|
+
let height_2: number;
|
|
55
|
+
export { height_2 as height };
|
|
56
|
+
let onSelect_2: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
57
|
+
export { onSelect_2 as onSelect };
|
|
58
|
+
let ariaLabel_2: string;
|
|
59
|
+
export { ariaLabel_2 as ariaLabel };
|
|
60
|
+
}
|
|
61
|
+
export { args_1 as args };
|
|
62
|
+
}
|
|
63
|
+
export namespace SingleTile {
|
|
64
|
+
export namespace args_2 {
|
|
65
|
+
let data_1: {
|
|
66
|
+
id: string;
|
|
67
|
+
label: string;
|
|
68
|
+
value: number;
|
|
69
|
+
intensity: number;
|
|
70
|
+
}[];
|
|
71
|
+
export { data_1 as data };
|
|
72
|
+
let height_3: number;
|
|
73
|
+
export { height_3 as height };
|
|
74
|
+
let onSelect_3: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
75
|
+
export { onSelect_3 as onSelect };
|
|
76
|
+
}
|
|
77
|
+
export { args_2 as args };
|
|
78
|
+
}
|
|
79
|
+
export namespace Light {
|
|
80
|
+
export namespace args_3 { }
|
|
81
|
+
export { args_3 as args };
|
|
82
|
+
export namespace globals {
|
|
83
|
+
let theme: string;
|
|
84
|
+
namespace backgrounds {
|
|
85
|
+
let value: string;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
import Treemap from './Treemap.jsx';
|
|
90
|
+
declare const CHANGE_SET: {
|
|
91
|
+
id: string;
|
|
92
|
+
label: string;
|
|
93
|
+
value: number;
|
|
94
|
+
intensity: number;
|
|
95
|
+
}[];
|
|
96
|
+
declare const DENSE_SET: {
|
|
97
|
+
id: string;
|
|
98
|
+
label: string;
|
|
99
|
+
value: number;
|
|
100
|
+
intensity: number;
|
|
101
|
+
}[];
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VisibilityEye — a compact glyph that signals a transcript's visibility, with a tooltip naming the
|
|
3
|
+
* exact mode on hover / focus. Eye = public, EyeOff = private, Users = shared. The glyph is paired
|
|
4
|
+
* with a visually-hidden word so the state never reads on shape or color alone.
|
|
5
|
+
*
|
|
6
|
+
* @param {{ visibility?: 'public'|'private'|'shared', sharedWith?: string, size?: 'sm'|'md'|'lg' }} props
|
|
7
|
+
*/
|
|
8
|
+
export function VisibilityEye({ visibility, sharedWith, size }: {
|
|
9
|
+
visibility?: "public" | "private" | "shared";
|
|
10
|
+
sharedWith?: string;
|
|
11
|
+
size?: "sm" | "md" | "lg";
|
|
12
|
+
}): any;
|
|
13
|
+
/**
|
|
14
|
+
* VisibilitySegmented — a private | public segmented control with a one-line description under each
|
|
15
|
+
* option, and an optional "shared" override note when the server owns the state. The pressed option
|
|
16
|
+
* carries aria-pressed + a leading icon + the amber selected fill, so the choice is never color-only.
|
|
17
|
+
*
|
|
18
|
+
* @param {{ value?: 'public'|'private'|'shared', onChange?: (v:'public'|'private')=>void,
|
|
19
|
+
* sharedNote?: string, label?: string }} props
|
|
20
|
+
*/
|
|
21
|
+
export function VisibilitySegmented({ value, onChange, sharedNote, label, }: {
|
|
22
|
+
value?: "public" | "private" | "shared";
|
|
23
|
+
onChange?: (v: "public" | "private") => void;
|
|
24
|
+
sharedNote?: string;
|
|
25
|
+
label?: string;
|
|
26
|
+
}): any;
|
|
27
|
+
/**
|
|
28
|
+
* ScopeChip — a small toggle group scoping a view to task / file / change (a chip set). One chip is
|
|
29
|
+
* pressed at a time; the pressed chip carries aria-pressed + the selected fill, so the active scope
|
|
30
|
+
* never reads on color alone.
|
|
31
|
+
*
|
|
32
|
+
* @param {{ scope?: string, onChange?: (v:string)=>void,
|
|
33
|
+
* options?: {value:string,label:string}[], label?: string }} props
|
|
34
|
+
*/
|
|
35
|
+
export function ScopeChip({ scope, onChange, options, label }: {
|
|
36
|
+
scope?: string;
|
|
37
|
+
onChange?: (v: string) => void;
|
|
38
|
+
options?: {
|
|
39
|
+
value: string;
|
|
40
|
+
label: string;
|
|
41
|
+
}[];
|
|
42
|
+
label?: string;
|
|
43
|
+
}): any;
|
|
44
|
+
/**
|
|
45
|
+
* FocusedModeToggle — a single toggle button for "focused" mode (your prompts & the assistant's
|
|
46
|
+
* replies only). Carries aria-pressed + an icon + the word, so the on / off state is never color-only.
|
|
47
|
+
*
|
|
48
|
+
* @param {{ on?: boolean, onToggle?: (next:boolean)=>void }} props
|
|
49
|
+
*/
|
|
50
|
+
export function FocusedModeToggle({ on, onToggle }: {
|
|
51
|
+
on?: boolean;
|
|
52
|
+
onToggle?: (next: boolean) => void;
|
|
53
|
+
}): any;
|
|
54
|
+
export default VisibilitySegmented;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
export default meta;
|
|
2
|
+
export namespace Eyes {
|
|
3
|
+
function render(): any;
|
|
4
|
+
namespace parameters {
|
|
5
|
+
namespace controls {
|
|
6
|
+
let disable: boolean;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
function play({ canvasElement }: {
|
|
10
|
+
canvasElement: any;
|
|
11
|
+
}): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
export namespace Segmented {
|
|
14
|
+
export function render_1(args: any): any;
|
|
15
|
+
export { render_1 as render };
|
|
16
|
+
export namespace args {
|
|
17
|
+
let value: string;
|
|
18
|
+
let label: string;
|
|
19
|
+
}
|
|
20
|
+
export function play_1({ canvasElement }: {
|
|
21
|
+
canvasElement: any;
|
|
22
|
+
}): Promise<void>;
|
|
23
|
+
export { play_1 as play };
|
|
24
|
+
}
|
|
25
|
+
export namespace SharedNote {
|
|
26
|
+
export function render_2(args: any): any;
|
|
27
|
+
export { render_2 as render };
|
|
28
|
+
export namespace args_1 {
|
|
29
|
+
let value_1: string;
|
|
30
|
+
export { value_1 as value };
|
|
31
|
+
export let sharedNote: string;
|
|
32
|
+
}
|
|
33
|
+
export { args_1 as args };
|
|
34
|
+
export function play_2({ canvasElement }: {
|
|
35
|
+
canvasElement: any;
|
|
36
|
+
}): Promise<void>;
|
|
37
|
+
export { play_2 as play };
|
|
38
|
+
}
|
|
39
|
+
export namespace Scope {
|
|
40
|
+
export function render_3(): any;
|
|
41
|
+
export { render_3 as render };
|
|
42
|
+
export namespace parameters_1 {
|
|
43
|
+
export namespace controls_1 {
|
|
44
|
+
let disable_1: boolean;
|
|
45
|
+
export { disable_1 as disable };
|
|
46
|
+
}
|
|
47
|
+
export { controls_1 as controls };
|
|
48
|
+
}
|
|
49
|
+
export { parameters_1 as parameters };
|
|
50
|
+
export function play_3({ canvasElement }: {
|
|
51
|
+
canvasElement: any;
|
|
52
|
+
}): Promise<void>;
|
|
53
|
+
export { play_3 as play };
|
|
54
|
+
}
|
|
55
|
+
export namespace FocusedMode {
|
|
56
|
+
export function render_4(): any;
|
|
57
|
+
export { render_4 as render };
|
|
58
|
+
export namespace parameters_2 {
|
|
59
|
+
export namespace controls_2 {
|
|
60
|
+
let disable_2: boolean;
|
|
61
|
+
export { disable_2 as disable };
|
|
62
|
+
}
|
|
63
|
+
export { controls_2 as controls };
|
|
64
|
+
}
|
|
65
|
+
export { parameters_2 as parameters };
|
|
66
|
+
export function play_4({ canvasElement }: {
|
|
67
|
+
canvasElement: any;
|
|
68
|
+
}): Promise<void>;
|
|
69
|
+
export { play_4 as play };
|
|
70
|
+
}
|
|
71
|
+
export namespace AllControls {
|
|
72
|
+
export function render_5(): any;
|
|
73
|
+
export { render_5 as render };
|
|
74
|
+
export namespace parameters_3 {
|
|
75
|
+
export namespace controls_3 {
|
|
76
|
+
let disable_3: boolean;
|
|
77
|
+
export { disable_3 as disable };
|
|
78
|
+
}
|
|
79
|
+
export { controls_3 as controls };
|
|
80
|
+
}
|
|
81
|
+
export { parameters_3 as parameters };
|
|
82
|
+
}
|
|
83
|
+
export namespace LightTheme {
|
|
84
|
+
export function render_6(args: any): any;
|
|
85
|
+
export { render_6 as render };
|
|
86
|
+
export namespace args_2 {
|
|
87
|
+
let value_2: string;
|
|
88
|
+
export { value_2 as value };
|
|
89
|
+
}
|
|
90
|
+
export { args_2 as args };
|
|
91
|
+
export namespace globals {
|
|
92
|
+
let theme: string;
|
|
93
|
+
namespace backgrounds {
|
|
94
|
+
let value_3: string;
|
|
95
|
+
export { value_3 as value };
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
declare namespace meta {
|
|
100
|
+
export let title: string;
|
|
101
|
+
export { VisibilitySegmented as component };
|
|
102
|
+
export let tags: string[];
|
|
103
|
+
export let decorators: Function[];
|
|
104
|
+
export namespace argTypes {
|
|
105
|
+
export namespace value_4 {
|
|
106
|
+
let control: string;
|
|
107
|
+
let options: string[];
|
|
108
|
+
}
|
|
109
|
+
export { value_4 as value };
|
|
110
|
+
export namespace onChange {
|
|
111
|
+
let control_1: boolean;
|
|
112
|
+
export { control_1 as control };
|
|
113
|
+
}
|
|
114
|
+
export namespace sharedNote_1 {
|
|
115
|
+
let control_2: string;
|
|
116
|
+
export { control_2 as control };
|
|
117
|
+
}
|
|
118
|
+
export { sharedNote_1 as sharedNote };
|
|
119
|
+
export namespace label_1 {
|
|
120
|
+
let control_3: string;
|
|
121
|
+
export { control_3 as control };
|
|
122
|
+
}
|
|
123
|
+
export { label_1 as label };
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
import { VisibilitySegmented } from './VisibilityControl.jsx';
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ChartFrame - the hairline card chrome shared by ChartBar + ChartLine: an optional head
|
|
3
|
+
* (lucide icon + lowercase title + tabular aside), an optional sub line, the plot, and an
|
|
4
|
+
* optional swatch+label legend.
|
|
5
|
+
*/
|
|
6
|
+
export function ChartFrame({ icon: Icon, title, aside, sub, legend, className, children }: {
|
|
7
|
+
icon: any;
|
|
8
|
+
title: any;
|
|
9
|
+
aside: any;
|
|
10
|
+
sub: any;
|
|
11
|
+
legend: any;
|
|
12
|
+
className?: string;
|
|
13
|
+
children: any;
|
|
14
|
+
}): any;
|
|
15
|
+
/**
|
|
16
|
+
* ChartTooltip - the custom Recharts tooltip content: a square bordered chip, lowercase mono
|
|
17
|
+
* key, tabular values, each row prefixed by its series swatch (colour + label, never colour alone).
|
|
18
|
+
*/
|
|
19
|
+
export function ChartTooltip({ active, payload, label, labelFormatter, valueFormatter }: {
|
|
20
|
+
active: any;
|
|
21
|
+
payload: any;
|
|
22
|
+
label: any;
|
|
23
|
+
labelFormatter: any;
|
|
24
|
+
valueFormatter: any;
|
|
25
|
+
}): any;
|
|
26
|
+
export function resolveSeries(series: any): any;
|
|
27
|
+
export const SERIES_CLASS: {
|
|
28
|
+
teal: string;
|
|
29
|
+
olive: string;
|
|
30
|
+
clay: string;
|
|
31
|
+
mauve: string;
|
|
32
|
+
amber: string;
|
|
33
|
+
1: string;
|
|
34
|
+
2: string;
|
|
35
|
+
3: string;
|
|
36
|
+
4: string;
|
|
37
|
+
};
|
|
38
|
+
export const SERIES_VAR: {
|
|
39
|
+
teal: string;
|
|
40
|
+
olive: string;
|
|
41
|
+
clay: string;
|
|
42
|
+
mauve: string;
|
|
43
|
+
amber: string;
|
|
44
|
+
1: string;
|
|
45
|
+
2: string;
|
|
46
|
+
3: string;
|
|
47
|
+
4: string;
|
|
48
|
+
};
|
|
49
|
+
export const RAMP: string[];
|
|
50
|
+
export function seriesClass(color: any): any;
|
|
51
|
+
export function seriesVar(color: any): any;
|
|
52
|
+
export function cartesianProps(): {
|
|
53
|
+
accessibilityLayer: boolean;
|
|
54
|
+
margin: {
|
|
55
|
+
top: number;
|
|
56
|
+
right: number;
|
|
57
|
+
bottom: number;
|
|
58
|
+
left: number;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export namespace noAnim {
|
|
62
|
+
let isAnimationActive: boolean;
|
|
63
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export { default as Switch } from "./Switch.jsx";
|
|
2
|
+
export { default as Tabs } from "./Tabs.jsx";
|
|
3
|
+
export { default as Pager } from "./Pager.jsx";
|
|
4
|
+
export { default as Pagination } from "./Pagination.jsx";
|
|
5
|
+
export { default as Menu } from "./Menu.jsx";
|
|
6
|
+
export { default as EmptyState } from "./EmptyState.jsx";
|
|
7
|
+
export { default as DataTable } from "./DataTable.jsx";
|
|
8
|
+
export { default as ChartBar } from "./ChartBar.jsx";
|
|
9
|
+
export { default as ChartLine } from "./ChartLine.jsx";
|
|
10
|
+
export { default as Sparkline } from "./Sparkline.jsx";
|
|
11
|
+
export { default as Accordion } from "./Accordion.jsx";
|
|
12
|
+
export { default as Dialog } from "./Dialog.jsx";
|
|
13
|
+
export { default as CommandPalette } from "./CommandPalette.jsx";
|
|
14
|
+
export { default as CommitGraph } from "./CommitGraph.jsx";
|
|
15
|
+
export { default as DiffView } from "./DiffView.jsx";
|
|
16
|
+
export { default as TimeStrip } from "./TimeStrip.jsx";
|
|
17
|
+
export { default as PolicySelect } from "./PolicySelect.jsx";
|
|
18
|
+
export { default as MapCanvas } from "./MapCanvas.jsx";
|
|
19
|
+
export { default as StepsWaterfall } from "./StepsWaterfall.jsx";
|
|
20
|
+
export { default as GroupedMultiSelect } from "./GroupedMultiSelect.jsx";
|
|
21
|
+
export { default as ToolCallRenderer } from "./ToolRenderers.jsx";
|
|
22
|
+
export { default as Tour } from "./Tour.jsx";
|
|
23
|
+
export { default as FacetRail } from "./FacetRail.jsx";
|
|
24
|
+
export { default as Button, ButtonGroup, Segmented } from "./Button.jsx";
|
|
25
|
+
export { default as Input, Textarea, Select, Field } from "./Input.jsx";
|
|
26
|
+
export { default as Checkbox, Radio, RadioGroup } from "./Checkbox.jsx";
|
|
27
|
+
export { default as Chip, FilterChip, StatusDot, CountBadge } from "./Chip.jsx";
|
|
28
|
+
export { default as Card, CardImg, Row, MetaItem } from "./Card.jsx";
|
|
29
|
+
export { default as Breadcrumb, Steps } from "./Breadcrumb.jsx";
|
|
30
|
+
export { default as Tooltip, Popover } from "./Tooltip.jsx";
|
|
31
|
+
export { Avatar, AvatarGroup, Kbd, KbdChord, Tag } from "./Avatar.jsx";
|
|
32
|
+
export { default as BrandMark, resolveBrand } from "./BrandMark.jsx";
|
|
33
|
+
export { Skeleton, Progress, Spinner, Toast, FeedbackPanel } from "./Feedback.jsx";
|
|
34
|
+
export { default as Timeline, TimelineItem, ToolCall, ThinkingBlock } from "./Timeline.jsx";
|
|
35
|
+
export { default as ToastProvider, useToast } from "./ToastHost.jsx";
|
|
36
|
+
export { default as DateRange, DateRangeCalendar, formatRange, DATE_PRESETS } from "./DateRange.jsx";
|
|
37
|
+
export { default as MapNode, IntensitySwatch, RampLegend, Heatmap, IntensityScope, coverageLevel, effortLevel, locSize } from "./Intensity.jsx";
|
|
38
|
+
export { default as Treemap, squarify } from "./Treemap.jsx";
|
|
39
|
+
export { default as StepWizard, StepIndicator } from "./StepWizard.jsx";
|
|
40
|
+
export { default as Explainer, Term } from "./Explainer.jsx";
|
|
41
|
+
export { default as RedactionReview, WhereDoesThisGo } from "./Redaction.jsx";
|
|
42
|
+
export { default as ConsentDialog, ConsentSummary } from "./ConsentDialog.jsx";
|
|
43
|
+
export { default as ModerationQueue, ApprovalBar } from "./ModerationQueue.jsx";
|
|
44
|
+
export { default as RoleRoster, ConfirmInline, DangerZone } from "./RoleRoster.jsx";
|
|
45
|
+
export { default as RailShell, RailSection, SplitRail } from "./RailShell.jsx";
|
|
46
|
+
export { default as ProviderIcon, ProviderTag, ProviderName, AccentLegend, PROVIDER_ACCENT } from "./ProviderIcon.jsx";
|
|
47
|
+
export { default as EvidenceCaption, EvidenceTarget } from "./EvidenceCaption.jsx";
|
|
48
|
+
export { PhaseDivider, Phase, TaskBoundary, CheckpointMarker, TurnContextBar } from "./TranscriptMarkers.jsx";
|
|
49
|
+
export { default as ConnectionPill, DataState, TeachingEmptyState } from "./ConnectionState.jsx";
|
|
50
|
+
export { default as SignInProviders, HandleClaim, OnboardingCard } from "./SignIn.jsx";
|
|
51
|
+
export { default as CliSteps, CommandBlock, GettingStarted } from "./CliOnboard.jsx";
|
|
52
|
+
export { StatTile, StatGrid, GovTile, ProviderBars } from "./StatTiles.jsx";
|
|
53
|
+
export { default as VisibilitySegmented, VisibilityEye, ScopeChip, FocusedModeToggle } from "./VisibilityControl.jsx";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* frame(size) -> a CSF `decorators` array that wraps the story in a fixed-width, left-aligned box.
|
|
3
|
+
* @param {'narrow'|'panel'|'wide'|'full'} size
|
|
4
|
+
* @returns {Array<Function>}
|
|
5
|
+
*/
|
|
6
|
+
export function frame(size?: "narrow" | "panel" | "wide" | "full"): Array<Function>;
|
|
7
|
+
export namespace FRAME_W {
|
|
8
|
+
let narrow: number;
|
|
9
|
+
let panel: number;
|
|
10
|
+
let wide: number;
|
|
11
|
+
let full: string;
|
|
12
|
+
}
|