@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.
Files changed (117) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +85 -0
  3. package/dist/lib/README.md +13 -0
  4. package/dist/lib/base.css +48 -0
  5. package/dist/lib/components.css +2 -0
  6. package/dist/lib/fonts.css +28 -0
  7. package/dist/lib/tokens.css +184 -0
  8. package/dist/lib/tokens.json +768 -0
  9. package/dist/lib/types/Accordion.d.ts +47 -0
  10. package/dist/lib/types/Accordion.stories.d.ts +91 -0
  11. package/dist/lib/types/Avatar.d.ts +94 -0
  12. package/dist/lib/types/Avatar.stories.d.ts +160 -0
  13. package/dist/lib/types/BrandMark.d.ts +25 -0
  14. package/dist/lib/types/BrandMark.stories.d.ts +75 -0
  15. package/dist/lib/types/Breadcrumb.d.ts +66 -0
  16. package/dist/lib/types/Breadcrumb.stories.d.ts +91 -0
  17. package/dist/lib/types/Button.d.ts +86 -0
  18. package/dist/lib/types/Button.stories.d.ts +129 -0
  19. package/dist/lib/types/Card.d.ts +145 -0
  20. package/dist/lib/types/Card.stories.d.ts +70 -0
  21. package/dist/lib/types/Chart.stories.d.ts +55 -0
  22. package/dist/lib/types/ChartBar.d.ts +51 -0
  23. package/dist/lib/types/ChartLine.d.ts +54 -0
  24. package/dist/lib/types/Checkbox.d.ts +132 -0
  25. package/dist/lib/types/Checkbox.stories.d.ts +75 -0
  26. package/dist/lib/types/Chip.d.ts +85 -0
  27. package/dist/lib/types/Chip.stories.d.ts +190 -0
  28. package/dist/lib/types/CliOnboard.d.ts +68 -0
  29. package/dist/lib/types/CliOnboard.stories.d.ts +24 -0
  30. package/dist/lib/types/CommandPalette.d.ts +6 -0
  31. package/dist/lib/types/CommandPalette.stories.d.ts +94 -0
  32. package/dist/lib/types/CommitGraph.d.ts +71 -0
  33. package/dist/lib/types/CommitGraph.stories.d.ts +17 -0
  34. package/dist/lib/types/ConnectionState.d.ts +82 -0
  35. package/dist/lib/types/ConnectionState.stories.d.ts +117 -0
  36. package/dist/lib/types/ConsentDialog.d.ts +97 -0
  37. package/dist/lib/types/ConsentDialog.stories.d.ts +61 -0
  38. package/dist/lib/types/DataTable.d.ts +116 -0
  39. package/dist/lib/types/DataTable.stories.d.ts +240 -0
  40. package/dist/lib/types/DateRange.d.ts +242 -0
  41. package/dist/lib/types/DateRange.stories.d.ts +272 -0
  42. package/dist/lib/types/Dialog.d.ts +9 -0
  43. package/dist/lib/types/Dialog.stories.d.ts +121 -0
  44. package/dist/lib/types/DiffView.d.ts +39 -0
  45. package/dist/lib/types/DiffView.stories.d.ts +118 -0
  46. package/dist/lib/types/EmptyState.d.ts +28 -0
  47. package/dist/lib/types/EmptyState.stories.d.ts +130 -0
  48. package/dist/lib/types/EvidenceCaption.d.ts +39 -0
  49. package/dist/lib/types/EvidenceCaption.stories.d.ts +43 -0
  50. package/dist/lib/types/Explainer.d.ts +82 -0
  51. package/dist/lib/types/Explainer.stories.d.ts +22 -0
  52. package/dist/lib/types/FacetRail.d.ts +13 -0
  53. package/dist/lib/types/FacetRail.stories.d.ts +28 -0
  54. package/dist/lib/types/Feedback.d.ts +222 -0
  55. package/dist/lib/types/Feedback.stories.d.ts +81 -0
  56. package/dist/lib/types/GroupedMultiSelect.d.ts +67 -0
  57. package/dist/lib/types/GroupedMultiSelect.stories.d.ts +59 -0
  58. package/dist/lib/types/Input.d.ts +158 -0
  59. package/dist/lib/types/Input.stories.d.ts +181 -0
  60. package/dist/lib/types/Intensity.d.ts +55 -0
  61. package/dist/lib/types/Intensity.stories.d.ts +108 -0
  62. package/dist/lib/types/MapCanvas.d.ts +89 -0
  63. package/dist/lib/types/MapCanvas.stories.d.ts +174 -0
  64. package/dist/lib/types/Menu.d.ts +62 -0
  65. package/dist/lib/types/Menu.stories.d.ts +173 -0
  66. package/dist/lib/types/ModerationQueue.d.ts +135 -0
  67. package/dist/lib/types/ModerationQueue.stories.d.ts +34 -0
  68. package/dist/lib/types/Pager.d.ts +47 -0
  69. package/dist/lib/types/Pager.stories.d.ts +100 -0
  70. package/dist/lib/types/Pagination.d.ts +50 -0
  71. package/dist/lib/types/Pagination.stories.d.ts +193 -0
  72. package/dist/lib/types/PolicySelect.d.ts +80 -0
  73. package/dist/lib/types/PolicySelect.stories.d.ts +130 -0
  74. package/dist/lib/types/ProviderIcon.d.ts +83 -0
  75. package/dist/lib/types/ProviderIcon.stories.d.ts +44 -0
  76. package/dist/lib/types/RailShell.d.ts +199 -0
  77. package/dist/lib/types/RailShell.stories.d.ts +32 -0
  78. package/dist/lib/types/Redaction.d.ts +53 -0
  79. package/dist/lib/types/Redaction.stories.d.ts +120 -0
  80. package/dist/lib/types/RoleRoster.d.ts +97 -0
  81. package/dist/lib/types/RoleRoster.stories.d.ts +23 -0
  82. package/dist/lib/types/SignIn.d.ts +78 -0
  83. package/dist/lib/types/SignIn.stories.d.ts +57 -0
  84. package/dist/lib/types/Sparkline.d.ts +19 -0
  85. package/dist/lib/types/StatTiles.d.ts +115 -0
  86. package/dist/lib/types/StatTiles.stories.d.ts +31 -0
  87. package/dist/lib/types/StepWizard.d.ts +92 -0
  88. package/dist/lib/types/StepWizard.stories.d.ts +18 -0
  89. package/dist/lib/types/StepsWaterfall.d.ts +67 -0
  90. package/dist/lib/types/StepsWaterfall.stories.d.ts +94 -0
  91. package/dist/lib/types/Switch.d.ts +63 -0
  92. package/dist/lib/types/Switch.stories.d.ts +134 -0
  93. package/dist/lib/types/Tabs.d.ts +48 -0
  94. package/dist/lib/types/Tabs.stories.d.ts +75 -0
  95. package/dist/lib/types/TimeStrip.d.ts +12 -0
  96. package/dist/lib/types/TimeStrip.stories.d.ts +30 -0
  97. package/dist/lib/types/Timeline.d.ts +192 -0
  98. package/dist/lib/types/Timeline.stories.d.ts +974 -0
  99. package/dist/lib/types/ToastHost.d.ts +70 -0
  100. package/dist/lib/types/ToastHost.stories.d.ts +115 -0
  101. package/dist/lib/types/ToolRenderers.d.ts +24 -0
  102. package/dist/lib/types/ToolRenderers.stories.d.ts +138 -0
  103. package/dist/lib/types/Tooltip.d.ts +80 -0
  104. package/dist/lib/types/Tooltip.stories.d.ts +116 -0
  105. package/dist/lib/types/Tour.d.ts +37 -0
  106. package/dist/lib/types/Tour.stories.d.ts +39 -0
  107. package/dist/lib/types/TranscriptMarkers.d.ts +50 -0
  108. package/dist/lib/types/TranscriptMarkers.stories.d.ts +48 -0
  109. package/dist/lib/types/Treemap.d.ts +77 -0
  110. package/dist/lib/types/Treemap.stories.d.ts +101 -0
  111. package/dist/lib/types/VisibilityControl.d.ts +54 -0
  112. package/dist/lib/types/VisibilityControl.stories.d.ts +126 -0
  113. package/dist/lib/types/chart-shared.d.ts +63 -0
  114. package/dist/lib/types/index.d.ts +53 -0
  115. package/dist/lib/types/story-frame.d.ts +12 -0
  116. package/dist/lib/ui.js +8707 -0
  117. package/package.json +67 -0
@@ -0,0 +1,70 @@
1
+ /**
2
+ * @typedef {Object} ToastOpts
3
+ * @property {React.ReactNode} [title] the title line; defaults to the tone label.
4
+ * @property {'ok'|'err'} [variant] tone; defaults per method ('ok' for show()).
5
+ * @property {React.ComponentType} [icon] override the leading lucide glyph.
6
+ * @property {number} [duration] per-toast auto-dismiss ms; 0/Infinity = sticky.
7
+ * @property {string} [closeLabel] aria-label for the dismiss button.
8
+ * @property {string} [id] supply to dedupe / target with update().
9
+ */
10
+ /**
11
+ * ToastProvider — wraps a subtree and renders the fixed stacking host. children that
12
+ * call useToast() get a stable imperative api (memoised; identity never changes).
13
+ *
14
+ * @param {Object} props
15
+ * @param {React.ReactNode} props.children the app subtree that may call useToast().
16
+ * @param {'bottom-right'|'bottom-left'|'top-right'|'top-left'|'bottom-center'|'top-center'} [props.placement='bottom-right']
17
+ * which corner the fixed region pins to and the edge new toasts enter from.
18
+ * @param {number} [props.max=4] cap on simultaneously-visible toasts.
19
+ * @param {number} [props.duration=5000] default auto-dismiss ms; 0/Infinity = sticky.
20
+ * @param {boolean} [props.inline=false] pin the host absolutely inside a relative
21
+ * container (for an in-frame doc/story example) instead of fixed to the viewport.
22
+ */
23
+ export function ToastProvider({ children, placement, max, duration, inline, }: {
24
+ children: React.ReactNode;
25
+ placement?: "bottom-right" | "bottom-left" | "top-right" | "top-left" | "bottom-center" | "top-center";
26
+ max?: number;
27
+ duration?: number;
28
+ inline?: boolean;
29
+ }): any;
30
+ /**
31
+ * useToast — the imperative api object from the nearest ToastProvider. throws a clear
32
+ * lowercase error when called outside a provider so a missing host is caught in dev.
33
+ * @returns {{ ok: Function, err: Function, show: Function, dismiss: Function, dismissAll: Function, update: Function, promise: Function }}
34
+ */
35
+ export function useToast(): {
36
+ ok: Function;
37
+ err: Function;
38
+ show: Function;
39
+ dismiss: Function;
40
+ dismissAll: Function;
41
+ update: Function;
42
+ promise: Function;
43
+ };
44
+ export default ToastProvider;
45
+ export type ToastOpts = {
46
+ /**
47
+ * the title line; defaults to the tone label.
48
+ */
49
+ title?: React.ReactNode;
50
+ /**
51
+ * tone; defaults per method ('ok' for show()).
52
+ */
53
+ variant?: "ok" | "err";
54
+ /**
55
+ * override the leading lucide glyph.
56
+ */
57
+ icon?: React.ComponentType;
58
+ /**
59
+ * per-toast auto-dismiss ms; 0/Infinity = sticky.
60
+ */
61
+ duration?: number;
62
+ /**
63
+ * aria-label for the dismiss button.
64
+ */
65
+ closeLabel?: string;
66
+ /**
67
+ * supply to dedupe / target with update().
68
+ */
69
+ id?: string;
70
+ };
@@ -0,0 +1,115 @@
1
+ export default meta;
2
+ export const Playground: {};
3
+ export namespace Success {
4
+ function play({ canvasElement }: {
5
+ canvasElement: any;
6
+ }): Promise<void>;
7
+ }
8
+ export namespace Error {
9
+ export function play_1({ canvasElement }: {
10
+ canvasElement: any;
11
+ }): Promise<void>;
12
+ export { play_1 as play };
13
+ }
14
+ export namespace Stacked {
15
+ export namespace args {
16
+ let duration: number;
17
+ }
18
+ export function play_2({ canvasElement }: {
19
+ canvasElement: any;
20
+ }): Promise<void>;
21
+ export { play_2 as play };
22
+ }
23
+ export namespace MaxCap {
24
+ export namespace args_1 {
25
+ export let max: number;
26
+ let duration_1: number;
27
+ export { duration_1 as duration };
28
+ }
29
+ export { args_1 as args };
30
+ export function play_3({ canvasElement }: {
31
+ canvasElement: any;
32
+ }): Promise<void>;
33
+ export { play_3 as play };
34
+ }
35
+ export namespace Sticky {
36
+ export namespace args_2 {
37
+ let duration_2: number;
38
+ export { duration_2 as duration };
39
+ }
40
+ export { args_2 as args };
41
+ export function play_4({ canvasElement }: {
42
+ canvasElement: any;
43
+ }): Promise<void>;
44
+ export { play_4 as play };
45
+ }
46
+ export namespace Placements {
47
+ function render(): any;
48
+ }
49
+ export namespace ReducedMotion {
50
+ namespace parameters {
51
+ namespace docs {
52
+ namespace description {
53
+ let story: string;
54
+ }
55
+ }
56
+ }
57
+ }
58
+ export namespace PausesOnHover {
59
+ export namespace args_3 {
60
+ let duration_3: number;
61
+ export { duration_3 as duration };
62
+ }
63
+ export { args_3 as args };
64
+ export function play_5({ canvasElement }: {
65
+ canvasElement: any;
66
+ }): Promise<void>;
67
+ export { play_5 as play };
68
+ }
69
+ declare namespace meta {
70
+ export let title: string;
71
+ export { ToastProvider as component };
72
+ export let tags: string[];
73
+ export let decorators: Function[];
74
+ export namespace argTypes {
75
+ export namespace placement {
76
+ let control: string;
77
+ let options: string[];
78
+ }
79
+ export namespace max_1 {
80
+ export namespace control_1 {
81
+ export let type: string;
82
+ export let min: number;
83
+ let max_2: number;
84
+ export { max_2 as max };
85
+ }
86
+ export { control_1 as control };
87
+ }
88
+ export { max_1 as max };
89
+ export namespace duration_4 {
90
+ export namespace control_2 {
91
+ let type_1: string;
92
+ export { type_1 as type };
93
+ let min_1: number;
94
+ export { min_1 as min };
95
+ let max_3: number;
96
+ export { max_3 as max };
97
+ export let step: number;
98
+ }
99
+ export { control_2 as control };
100
+ }
101
+ export { duration_4 as duration };
102
+ }
103
+ export namespace args_4 {
104
+ let placement_1: string;
105
+ export { placement_1 as placement };
106
+ let max_4: number;
107
+ export { max_4 as max };
108
+ let duration_5: number;
109
+ export { duration_5 as duration };
110
+ }
111
+ export { args_4 as args };
112
+ export function render_1(args: any): any;
113
+ export { render_1 as render };
114
+ }
115
+ import ToastProvider from './ToastHost.jsx';
@@ -0,0 +1,24 @@
1
+ /**
2
+ * ToolCall — one collapsible tool-call row that dispatches on `tool.kind` to its body.
3
+ *
4
+ * Collapsed, the row is a real <button> (carries aria-expanded / aria-controls): a tool icon,
5
+ * the tool name, a one-line arg preview, the duration, and a status word (icon + "ok"/"error",
6
+ * never color alone). Activating it toggles real open/closed state and reveals the
7
+ * kind-specific body. An unknown kind keeps the generic wrench icon + the DefaultBody.
8
+ *
9
+ * @param {object} props
10
+ * @param {{kind:string, name:string, args?:object, duration?:number, status?:'ok'|'error'}} props.tool
11
+ * @param {boolean} [props.defaultOpen=false] initial open state.
12
+ * @param {string} [props.className]
13
+ */
14
+ export default function ToolCall({ tool, defaultOpen, className, ...rest }: {
15
+ tool: {
16
+ kind: string;
17
+ name: string;
18
+ args?: object;
19
+ duration?: number;
20
+ status?: "ok" | "error";
21
+ };
22
+ defaultOpen?: boolean;
23
+ className?: string;
24
+ }): any;
@@ -0,0 +1,138 @@
1
+ export default meta;
2
+ export namespace AllTools {
3
+ function render(): any;
4
+ function play({ canvasElement }: {
5
+ canvasElement: any;
6
+ }): Promise<void>;
7
+ }
8
+ export namespace Expanded {
9
+ export function render_1(): any;
10
+ export { render_1 as render };
11
+ export function play_1({ canvasElement }: {
12
+ canvasElement: any;
13
+ }): Promise<void>;
14
+ export { play_1 as play };
15
+ }
16
+ export namespace BashError {
17
+ export namespace args {
18
+ let defaultOpen: boolean;
19
+ namespace tool {
20
+ export let kind: string;
21
+ export let name: string;
22
+ export let duration: number;
23
+ export let status: string;
24
+ export namespace args_1 {
25
+ let command: string;
26
+ let output: string;
27
+ let exitCode: number;
28
+ }
29
+ export { args_1 as args };
30
+ }
31
+ }
32
+ export function play_2({ canvasElement }: {
33
+ canvasElement: any;
34
+ }): Promise<void>;
35
+ export { play_2 as play };
36
+ }
37
+ export namespace Read {
38
+ export namespace args_2 {
39
+ export { readCall as tool };
40
+ let defaultOpen_1: boolean;
41
+ export { defaultOpen_1 as defaultOpen };
42
+ }
43
+ export { args_2 as args };
44
+ }
45
+ export namespace Edit {
46
+ export namespace args_3 {
47
+ export { editCall as tool };
48
+ let defaultOpen_2: boolean;
49
+ export { defaultOpen_2 as defaultOpen };
50
+ }
51
+ export { args_3 as args };
52
+ }
53
+ export namespace Default {
54
+ export namespace args_4 {
55
+ export { defaultCall as tool };
56
+ let defaultOpen_3: boolean;
57
+ export { defaultOpen_3 as defaultOpen };
58
+ }
59
+ export { args_4 as args };
60
+ }
61
+ export namespace LightTheme {
62
+ import render_2 = AllTools.render;
63
+ export { render_2 as render };
64
+ export namespace globals {
65
+ let theme: string;
66
+ namespace backgrounds {
67
+ let value: string;
68
+ }
69
+ }
70
+ }
71
+ declare namespace meta {
72
+ export let title: string;
73
+ export { ToolCall as component };
74
+ export let tags: string[];
75
+ export let decorators: Function[];
76
+ export namespace argTypes {
77
+ export namespace tool_1 {
78
+ let control: boolean;
79
+ }
80
+ export { tool_1 as tool };
81
+ export namespace defaultOpen_4 {
82
+ let control_1: string;
83
+ export { control_1 as control };
84
+ }
85
+ export { defaultOpen_4 as defaultOpen };
86
+ }
87
+ }
88
+ declare namespace readCall {
89
+ let kind_1: string;
90
+ export { kind_1 as kind };
91
+ let name_1: string;
92
+ export { name_1 as name };
93
+ let duration_1: number;
94
+ export { duration_1 as duration };
95
+ let status_1: string;
96
+ export { status_1 as status };
97
+ export namespace args_5 {
98
+ let file: string;
99
+ let excerpt: string;
100
+ }
101
+ export { args_5 as args };
102
+ }
103
+ declare namespace editCall {
104
+ let kind_2: string;
105
+ export { kind_2 as kind };
106
+ let name_2: string;
107
+ export { name_2 as name };
108
+ let duration_2: number;
109
+ export { duration_2 as duration };
110
+ let status_2: string;
111
+ export { status_2 as status };
112
+ export namespace args_6 {
113
+ let file_1: string;
114
+ export { file_1 as file };
115
+ export let old: string;
116
+ let _new: string;
117
+ export { _new as new };
118
+ }
119
+ export { args_6 as args };
120
+ }
121
+ declare namespace defaultCall {
122
+ let kind_3: string;
123
+ export { kind_3 as kind };
124
+ let name_3: string;
125
+ export { name_3 as name };
126
+ let duration_3: number;
127
+ export { duration_3 as duration };
128
+ let status_3: string;
129
+ export { status_3 as status };
130
+ export namespace args_7 {
131
+ let todos: {
132
+ content: string;
133
+ status: string;
134
+ }[];
135
+ }
136
+ export { args_7 as args };
137
+ }
138
+ import ToolCall from './ToolRenderers.jsx';
@@ -0,0 +1,80 @@
1
+ /**
2
+ * @typedef {Object} TooltipProps
3
+ * @property {React.ReactNode} content short, single-line helper text shown in the .tip-bubble (role=tooltip).
4
+ * @property {React.ReactElement} children the trigger: a single focusable, already-named element (e.g. a button or link). it receives aria-describedby pointing at the bubble.
5
+ * @property {string} [id] id for the bubble, linked from the trigger via aria-describedby. auto-generated if omitted.
6
+ */
7
+ export default function Tooltip({ content, children, id }: {
8
+ content: any;
9
+ children: any;
10
+ id: any;
11
+ }): any;
12
+ /**
13
+ * @typedef {Object} PopoverProps
14
+ * @property {React.ReactNode} children the trigger button content (e.g. an icon + label).
15
+ * @property {string} label accessible name for the floating dialog (aria-label on .pop-card).
16
+ * @property {React.ReactNode} [title] .pop-title text shown in the .pop-head; defaults to `label`.
17
+ * @property {import('react').ComponentType} [icon] lucide icon component for the .pop-head; decorative, sized by css (.pop-head .lucide -> --ic-sm).
18
+ * @property {React.ReactNode} content the .pop-body content.
19
+ * @property {React.ReactNode} [footer] the .pop-foot content (e.g. cancel / confirm buttons).
20
+ * @property {string} [triggerClassName] classes for the trigger button. defaults to "btn btn-secondary btn-sm".
21
+ * @property {string} [id] id for the .pop-card, linked from the trigger via aria-controls. auto-generated if omitted.
22
+ */
23
+ export function Popover({ children, label, title, icon: Icon, content, footer, triggerClassName, id, }: {
24
+ children: any;
25
+ label: any;
26
+ title: any;
27
+ icon: any;
28
+ content: any;
29
+ footer: any;
30
+ triggerClassName?: string;
31
+ id: any;
32
+ }): any;
33
+ export type TooltipProps = {
34
+ /**
35
+ * short, single-line helper text shown in the .tip-bubble (role=tooltip).
36
+ */
37
+ content: React.ReactNode;
38
+ /**
39
+ * the trigger: a single focusable, already-named element (e.g. a button or link). it receives aria-describedby pointing at the bubble.
40
+ */
41
+ children: React.ReactElement;
42
+ /**
43
+ * id for the bubble, linked from the trigger via aria-describedby. auto-generated if omitted.
44
+ */
45
+ id?: string;
46
+ };
47
+ export type PopoverProps = {
48
+ /**
49
+ * the trigger button content (e.g. an icon + label).
50
+ */
51
+ children: React.ReactNode;
52
+ /**
53
+ * accessible name for the floating dialog (aria-label on .pop-card).
54
+ */
55
+ label: string;
56
+ /**
57
+ * .pop-title text shown in the .pop-head; defaults to `label`.
58
+ */
59
+ title?: React.ReactNode;
60
+ /**
61
+ * lucide icon component for the .pop-head; decorative, sized by css (.pop-head .lucide -> --ic-sm).
62
+ */
63
+ icon?: any;
64
+ /**
65
+ * the .pop-body content.
66
+ */
67
+ content: React.ReactNode;
68
+ /**
69
+ * the .pop-foot content (e.g. cancel / confirm buttons).
70
+ */
71
+ footer?: React.ReactNode;
72
+ /**
73
+ * classes for the trigger button. defaults to "btn btn-secondary btn-sm".
74
+ */
75
+ triggerClassName?: string;
76
+ /**
77
+ * id for the .pop-card, linked from the trigger via aria-controls. auto-generated if omitted.
78
+ */
79
+ id?: string;
80
+ };
@@ -0,0 +1,116 @@
1
+ export default meta;
2
+ export namespace Playground {
3
+ export { headroom as decorators };
4
+ export { hoverOpen as play };
5
+ }
6
+ export namespace OnButton {
7
+ export namespace args {
8
+ let content: string;
9
+ let children: any;
10
+ }
11
+ export { headroom as decorators };
12
+ export { hoverOpen as play };
13
+ }
14
+ export namespace OnIconButton {
15
+ export namespace args_1 {
16
+ let content_1: string;
17
+ export { content_1 as content };
18
+ let children_1: any;
19
+ export { children_1 as children };
20
+ }
21
+ export { args_1 as args };
22
+ export { headroom as decorators };
23
+ export { hoverOpen as play };
24
+ }
25
+ export namespace LongContent {
26
+ export namespace args_2 {
27
+ let content_2: string;
28
+ export { content_2 as content };
29
+ let children_2: any;
30
+ export { children_2 as children };
31
+ }
32
+ export { args_2 as args };
33
+ export { headroom as decorators };
34
+ export { hoverOpen as play };
35
+ }
36
+ export namespace FocusReveals {
37
+ export namespace args_3 {
38
+ let content_3: string;
39
+ export { content_3 as content };
40
+ let children_3: any;
41
+ export { children_3 as children };
42
+ }
43
+ export { args_3 as args };
44
+ export { headroom as decorators };
45
+ export function play({ canvasElement }: {
46
+ canvasElement: any;
47
+ }): Promise<void>;
48
+ }
49
+ export namespace OnLink {
50
+ export namespace args_4 {
51
+ let content_4: string;
52
+ export { content_4 as content };
53
+ let children_4: any;
54
+ export { children_4 as children };
55
+ }
56
+ export { args_4 as args };
57
+ export { headroom as decorators };
58
+ export function play_1({ canvasElement }: {
59
+ canvasElement: any;
60
+ }): Promise<void>;
61
+ export { play_1 as play };
62
+ }
63
+ export namespace PopoverBasic {
64
+ export { headroom as decorators };
65
+ export function render(): any;
66
+ export function play_2({ canvasElement }: {
67
+ canvasElement: any;
68
+ }): Promise<void>;
69
+ export { play_2 as play };
70
+ }
71
+ export namespace PopoverOpen {
72
+ export { headroom as decorators };
73
+ export function render_1(): any;
74
+ export { render_1 as render };
75
+ export function play_3({ canvasElement }: {
76
+ canvasElement: any;
77
+ }): Promise<void>;
78
+ export { play_3 as play };
79
+ }
80
+ export namespace PopoverWithState {
81
+ export { headroom as decorators };
82
+ export function render_2(): any;
83
+ export { render_2 as render };
84
+ export function play_4({ canvasElement }: {
85
+ canvasElement: any;
86
+ }): Promise<void>;
87
+ export { play_4 as play };
88
+ }
89
+ declare namespace meta {
90
+ export let title: string;
91
+ export { Tooltip as component };
92
+ export let tags: string[];
93
+ export let decorators: Function[];
94
+ export namespace argTypes {
95
+ export namespace content_5 {
96
+ let control: string;
97
+ }
98
+ export { content_5 as content };
99
+ export namespace id {
100
+ let control_1: string;
101
+ export { control_1 as control };
102
+ }
103
+ }
104
+ export namespace args_5 {
105
+ let content_6: string;
106
+ export { content_6 as content };
107
+ let children_5: any;
108
+ export { children_5 as children };
109
+ }
110
+ export { args_5 as args };
111
+ }
112
+ declare const headroom: ((Story: any) => any)[];
113
+ declare function hoverOpen({ canvasElement }: {
114
+ canvasElement: any;
115
+ }): Promise<void>;
116
+ import Tooltip from './Tooltip.jsx';
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Tour — a portal-rendered spotlight coachmark over real page anchors.
3
+ *
4
+ * controlled by `open`; `onClose` fires on esc / skip / scrim-intent, and
5
+ * `onFinish` fires when "done" is pressed on the last step. internal step index
6
+ * is owned here and re-armed to 0 each time the tour (re)opens.
7
+ *
8
+ * @param {Object} props
9
+ * @param {TourStep[]} props.steps ordered steps; each spotlights one anchor
10
+ * @param {boolean} props.open whether the tour is mounted / visible
11
+ * @param {() => void} [props.onClose] called on esc / skip / scrim (tour dismissed)
12
+ * @param {() => void} [props.onFinish] called when "done" is pressed on the last step
13
+ * @param {(index: number) => void} [props.onStepChange] notified when the active step changes
14
+ * @param {string} [props.labelId='tour-title'] id wiring aria-labelledby on the coachmark
15
+ */
16
+ export default function Tour({ steps, open, onClose, onFinish, onStepChange, labelId, }: {
17
+ steps: TourStep[];
18
+ open: boolean;
19
+ onClose?: () => void;
20
+ onFinish?: () => void;
21
+ onStepChange?: (index: number) => void;
22
+ labelId?: string;
23
+ }): any;
24
+ export type TourStep = {
25
+ /**
26
+ * id (or data-tour value) of the element to spotlight
27
+ */
28
+ anchorId: string;
29
+ /**
30
+ * the coachmark title (display type)
31
+ */
32
+ title: React.ReactNode;
33
+ /**
34
+ * the coachmark prose body (reading type)
35
+ */
36
+ body: React.ReactNode;
37
+ };
@@ -0,0 +1,39 @@
1
+ export default meta;
2
+ export namespace Default {
3
+ let name: string;
4
+ function render(): any;
5
+ function play({ canvasElement, step }: {
6
+ canvasElement: any;
7
+ step: any;
8
+ }): Promise<void>;
9
+ }
10
+ export namespace ReachesDone {
11
+ let name_1: string;
12
+ export { name_1 as name };
13
+ export function render_1(): any;
14
+ export { render_1 as render };
15
+ export function play_1({ canvasElement, step }: {
16
+ canvasElement: any;
17
+ step: any;
18
+ }): Promise<void>;
19
+ export { play_1 as play };
20
+ }
21
+ export namespace SkipWithEsc {
22
+ let name_2: string;
23
+ export { name_2 as name };
24
+ export function render_2(): any;
25
+ export { render_2 as render };
26
+ export function play_2({ canvasElement, step }: {
27
+ canvasElement: any;
28
+ step: any;
29
+ }): Promise<void>;
30
+ export { play_2 as play };
31
+ }
32
+ declare namespace meta {
33
+ export let title: string;
34
+ export { Tour as component };
35
+ export namespace parameters {
36
+ let layout: string;
37
+ }
38
+ }
39
+ import Tour from './Tour.jsx';
@@ -0,0 +1,50 @@
1
+ export function PhaseDivider({ label, range, active, stickyTop, onClick, className, ...rest }: {
2
+ [x: string]: any;
3
+ label: any;
4
+ range: any;
5
+ active?: boolean;
6
+ stickyTop?: string;
7
+ onClick: any;
8
+ className?: string;
9
+ }): any;
10
+ export function Phase({ label, range, active, stickyTop, onLabelClick, children, className, ...rest }: {
11
+ [x: string]: any;
12
+ label: any;
13
+ range: any;
14
+ active?: boolean;
15
+ stickyTop?: string;
16
+ onLabelClick: any;
17
+ children: any;
18
+ className?: string;
19
+ }): any;
20
+ export function TaskBoundary({ turn, duration, tools, files, ins, del, className, ...rest }: {
21
+ [x: string]: any;
22
+ turn: any;
23
+ duration: any;
24
+ tools: any;
25
+ files: any;
26
+ ins?: number;
27
+ del?: number;
28
+ className?: string;
29
+ }): any;
30
+ export function CheckpointMarker({ hash, message, time, files, ins, del, className, ...rest }: {
31
+ [x: string]: any;
32
+ hash: any;
33
+ message: any;
34
+ time: any;
35
+ files: any;
36
+ ins?: number;
37
+ del?: number;
38
+ className?: string;
39
+ }): any;
40
+ export function TurnContextBar({ prompt, ordinal, onNext, nextLabel, stickyTop, onJump, className, ...rest }: {
41
+ [x: string]: any;
42
+ prompt: any;
43
+ ordinal: any;
44
+ onNext: any;
45
+ nextLabel?: string;
46
+ stickyTop?: string;
47
+ onJump: any;
48
+ className?: string;
49
+ }): any;
50
+ export default TaskBoundary;