@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,272 @@
1
+ export default meta;
2
+ export const Playground: {};
3
+ export namespace Default {
4
+ namespace args {
5
+ let placeholder: string;
6
+ }
7
+ }
8
+ export namespace WithValue {
9
+ export namespace args_1 {
10
+ namespace defaultValue {
11
+ let from: string;
12
+ let to: string;
13
+ }
14
+ }
15
+ export { args_1 as args };
16
+ export function play({ canvasElement }: {
17
+ canvasElement: any;
18
+ }): Promise<void>;
19
+ }
20
+ export namespace Open {
21
+ export namespace args_2 {
22
+ export namespace defaultValue_1 {
23
+ let from_1: string;
24
+ export { from_1 as from };
25
+ let to_1: string;
26
+ export { to_1 as to };
27
+ }
28
+ export { defaultValue_1 as defaultValue };
29
+ }
30
+ export { args_2 as args };
31
+ export { roomForPanel as decorators };
32
+ export function play_1({ canvasElement }: {
33
+ canvasElement: any;
34
+ }): Promise<void>;
35
+ export { play_1 as play };
36
+ }
37
+ export namespace SingleMonth {
38
+ export namespace args_3 {
39
+ export let numberOfMonths: number;
40
+ export namespace defaultValue_2 {
41
+ let from_2: string;
42
+ export { from_2 as from };
43
+ let to_2: string;
44
+ export { to_2 as to };
45
+ }
46
+ export { defaultValue_2 as defaultValue };
47
+ }
48
+ export { args_3 as args };
49
+ export { roomForPanel as decorators };
50
+ export function play_2({ canvasElement }: {
51
+ canvasElement: any;
52
+ }): Promise<void>;
53
+ export { play_2 as play };
54
+ }
55
+ export namespace PresetsOnly {
56
+ export namespace args_4 {
57
+ export { DATE_PRESETS as presets };
58
+ export let onChange: import("storybook/test").Mock<(...args: any[]) => any>;
59
+ }
60
+ export { args_4 as args };
61
+ export { roomForPanel as decorators };
62
+ export function play_3({ canvasElement, args }: {
63
+ canvasElement: any;
64
+ args: any;
65
+ }): Promise<void>;
66
+ export { play_3 as play };
67
+ }
68
+ export namespace Bounded {
69
+ export namespace args_5 {
70
+ export let min: string;
71
+ export let max: string;
72
+ export namespace defaultValue_3 {
73
+ let from_3: string;
74
+ export { from_3 as from };
75
+ let to_3: string;
76
+ export { to_3 as to };
77
+ }
78
+ export { defaultValue_3 as defaultValue };
79
+ }
80
+ export { args_5 as args };
81
+ export { roomForPanel as decorators };
82
+ export function play_4({ canvasElement }: {
83
+ canvasElement: any;
84
+ }): Promise<void>;
85
+ export { play_4 as play };
86
+ }
87
+ export namespace KeyboardNav {
88
+ export namespace args_6 {
89
+ export namespace defaultValue_4 {
90
+ let from_4: any;
91
+ export { from_4 as from };
92
+ let to_4: any;
93
+ export { to_4 as to };
94
+ }
95
+ export { defaultValue_4 as defaultValue };
96
+ let onChange_1: import("storybook/test").Mock<(...args: any[]) => any>;
97
+ export { onChange_1 as onChange };
98
+ }
99
+ export { args_6 as args };
100
+ export { roomForPanel as decorators };
101
+ export function play_5({ canvasElement, args }: {
102
+ canvasElement: any;
103
+ args: any;
104
+ }): Promise<void>;
105
+ export { play_5 as play };
106
+ }
107
+ export namespace AlignEnd {
108
+ export namespace args_7 {
109
+ export let align: string;
110
+ export namespace defaultValue_5 {
111
+ let from_5: string;
112
+ export { from_5 as from };
113
+ let to_5: string;
114
+ export { to_5 as to };
115
+ }
116
+ export { defaultValue_5 as defaultValue };
117
+ }
118
+ export { args_7 as args };
119
+ export { roomForPanel as decorators };
120
+ export function play_6(ctx: any): Promise<void>;
121
+ export { play_6 as play };
122
+ }
123
+ export namespace Disabled {
124
+ export namespace args_8 {
125
+ export let disabled: boolean;
126
+ export namespace defaultValue_6 {
127
+ let from_6: string;
128
+ export { from_6 as from };
129
+ let to_6: string;
130
+ export { to_6 as to };
131
+ }
132
+ export { defaultValue_6 as defaultValue };
133
+ }
134
+ export { args_8 as args };
135
+ export function play_7({ canvasElement }: {
136
+ canvasElement: any;
137
+ }): Promise<void>;
138
+ export { play_7 as play };
139
+ }
140
+ export namespace SundayStart {
141
+ export namespace args_9 {
142
+ export let weekStartsOn: number;
143
+ export namespace defaultValue_7 {
144
+ let from_7: string;
145
+ export { from_7 as from };
146
+ let to_7: string;
147
+ export { to_7 as to };
148
+ }
149
+ export { defaultValue_7 as defaultValue };
150
+ }
151
+ export { args_9 as args };
152
+ export { roomForPanel as decorators };
153
+ export function play_8(ctx: any): Promise<void>;
154
+ export { play_8 as play };
155
+ }
156
+ export namespace SmallTrigger {
157
+ export namespace args_10 {
158
+ export let size: string;
159
+ export namespace defaultValue_8 {
160
+ let from_8: string;
161
+ export { from_8 as from };
162
+ let to_8: string;
163
+ export { to_8 as to };
164
+ }
165
+ export { defaultValue_8 as defaultValue };
166
+ }
167
+ export { args_10 as args };
168
+ export function render(a: any): any;
169
+ }
170
+ export namespace EmbeddedCalendar {
171
+ export function render_1(): any;
172
+ export { render_1 as render };
173
+ export function play_9({ canvasElement }: {
174
+ canvasElement: any;
175
+ }): Promise<void>;
176
+ export { play_9 as play };
177
+ }
178
+ declare namespace meta {
179
+ export let title: string;
180
+ export { DateRange as component };
181
+ export let tags: string[];
182
+ export let decorators: Function[];
183
+ export namespace argTypes {
184
+ export namespace numberOfMonths_1 {
185
+ namespace control {
186
+ let type: string;
187
+ }
188
+ let options: number[];
189
+ }
190
+ export { numberOfMonths_1 as numberOfMonths };
191
+ export namespace weekStartsOn_1 {
192
+ export namespace control_1 {
193
+ let type_1: string;
194
+ export { type_1 as type };
195
+ let min_1: number;
196
+ export { min_1 as min };
197
+ let max_1: number;
198
+ export { max_1 as max };
199
+ }
200
+ export { control_1 as control };
201
+ }
202
+ export { weekStartsOn_1 as weekStartsOn };
203
+ export namespace align_1 {
204
+ export namespace control_2 {
205
+ let type_2: string;
206
+ export { type_2 as type };
207
+ }
208
+ export { control_2 as control };
209
+ let options_1: string[];
210
+ export { options_1 as options };
211
+ }
212
+ export { align_1 as align };
213
+ export namespace size_1 {
214
+ export namespace control_3 {
215
+ let type_3: string;
216
+ export { type_3 as type };
217
+ }
218
+ export { control_3 as control };
219
+ let options_2: string[];
220
+ export { options_2 as options };
221
+ }
222
+ export { size_1 as size };
223
+ export namespace placeholder_1 {
224
+ let control_4: string;
225
+ export { control_4 as control };
226
+ }
227
+ export { placeholder_1 as placeholder };
228
+ export namespace disabled_1 {
229
+ let control_5: string;
230
+ export { control_5 as control };
231
+ }
232
+ export { disabled_1 as disabled };
233
+ export namespace clearable {
234
+ let control_6: string;
235
+ export { control_6 as control };
236
+ }
237
+ export namespace value {
238
+ let control_7: boolean;
239
+ export { control_7 as control };
240
+ }
241
+ export namespace presets {
242
+ let control_8: boolean;
243
+ export { control_8 as control };
244
+ }
245
+ export namespace onChange_2 {
246
+ let action: string;
247
+ }
248
+ export { onChange_2 as onChange };
249
+ export namespace onDraftChange {
250
+ let action_1: string;
251
+ export { action_1 as action };
252
+ }
253
+ }
254
+ export namespace args_11 {
255
+ let numberOfMonths_2: number;
256
+ export { numberOfMonths_2 as numberOfMonths };
257
+ let weekStartsOn_2: number;
258
+ export { weekStartsOn_2 as weekStartsOn };
259
+ let align_2: string;
260
+ export { align_2 as align };
261
+ let size_2: string;
262
+ export { size_2 as size };
263
+ let placeholder_2: string;
264
+ export { placeholder_2 as placeholder };
265
+ let clearable_1: boolean;
266
+ export { clearable_1 as clearable };
267
+ }
268
+ export { args_11 as args };
269
+ }
270
+ declare const roomForPanel: ((Story: any) => any)[];
271
+ import { DATE_PRESETS } from './DateRange.jsx';
272
+ import DateRange from './DateRange.jsx';
@@ -0,0 +1,9 @@
1
+ export default function Dialog({ open, onClose, title, labelId, children, footer, returnFocusRef }: {
2
+ open: any;
3
+ onClose: any;
4
+ title: any;
5
+ labelId?: string;
6
+ children: any;
7
+ footer: any;
8
+ returnFocusRef: any;
9
+ }): any;
@@ -0,0 +1,121 @@
1
+ export default meta;
2
+ export namespace Default {
3
+ function render(args: any): any;
4
+ function play({ canvasElement, step }: {
5
+ canvasElement: any;
6
+ step: any;
7
+ }): Promise<void>;
8
+ }
9
+ export namespace WithLongBody {
10
+ export function render_1(args: any): any;
11
+ export { render_1 as render };
12
+ }
13
+ export namespace Destructive {
14
+ export namespace args {
15
+ let title: string;
16
+ }
17
+ export function render_2(args: any): any;
18
+ export { render_2 as render };
19
+ }
20
+ export namespace NoFooter {
21
+ export namespace args_1 {
22
+ let title_1: string;
23
+ export { title_1 as title };
24
+ }
25
+ export { args_1 as args };
26
+ export function render_3(args: any): any;
27
+ export { render_3 as render };
28
+ }
29
+ export namespace OpenStatic {
30
+ export let name: string;
31
+ export namespace parameters {
32
+ let layout: string;
33
+ }
34
+ export let decorators: ((Story: any) => any)[];
35
+ export function render_4(args: any): any;
36
+ export { render_4 as render };
37
+ }
38
+ export namespace LongBodyStatic {
39
+ let name_1: string;
40
+ export { name_1 as name };
41
+ export namespace parameters_1 {
42
+ let layout_1: string;
43
+ export { layout_1 as layout };
44
+ }
45
+ export { parameters_1 as parameters };
46
+ let decorators_1: ((Story: any) => any)[];
47
+ export { decorators_1 as decorators };
48
+ export function render_5(args: any): any;
49
+ export { render_5 as render };
50
+ }
51
+ export namespace DestructiveStatic {
52
+ let name_2: string;
53
+ export { name_2 as name };
54
+ export namespace args_2 {
55
+ let title_2: string;
56
+ export { title_2 as title };
57
+ }
58
+ export { args_2 as args };
59
+ export namespace parameters_2 {
60
+ let layout_2: string;
61
+ export { layout_2 as layout };
62
+ }
63
+ export { parameters_2 as parameters };
64
+ let decorators_2: ((Story: any) => any)[];
65
+ export { decorators_2 as decorators };
66
+ export function render_6(args: any): any;
67
+ export { render_6 as render };
68
+ }
69
+ export namespace CustomLabelId {
70
+ let name_3: string;
71
+ export { name_3 as name };
72
+ export namespace args_3 {
73
+ let title_3: string;
74
+ export { title_3 as title };
75
+ }
76
+ export { args_3 as args };
77
+ export function render_7(args: any): any;
78
+ export { render_7 as render };
79
+ export function play_1({ canvasElement, step, args }: {
80
+ canvasElement: any;
81
+ step: any;
82
+ args: any;
83
+ }): Promise<void>;
84
+ export { play_1 as play };
85
+ }
86
+ declare namespace meta {
87
+ let title_4: string;
88
+ export { title_4 as title };
89
+ export { Dialog as component };
90
+ export let tags: string[];
91
+ let decorators_3: Function[];
92
+ export { decorators_3 as decorators };
93
+ export namespace argTypes {
94
+ export namespace title_5 {
95
+ let control: string;
96
+ }
97
+ export { title_5 as title };
98
+ export namespace open {
99
+ let control_1: boolean;
100
+ export { control_1 as control };
101
+ }
102
+ export namespace onClose {
103
+ let control_2: boolean;
104
+ export { control_2 as control };
105
+ }
106
+ export namespace children {
107
+ let control_3: boolean;
108
+ export { control_3 as control };
109
+ }
110
+ export namespace footer {
111
+ let control_4: boolean;
112
+ export { control_4 as control };
113
+ }
114
+ }
115
+ export namespace args_4 {
116
+ let title_6: string;
117
+ export { title_6 as title };
118
+ }
119
+ export { args_4 as args };
120
+ }
121
+ import Dialog from './Dialog.jsx';
@@ -0,0 +1,39 @@
1
+ /**
2
+ * DiffView — a unified hunk diff. two shapes, one chassis:
3
+ *
4
+ * default: pass `hunks` = [{ header, lines: [{ type:'add'|'del'|'ctx', oldNo, newNo, text }] }].
5
+ * renders a file header (path + +N/−N churn) then each hunk's `@@` row and lines.
6
+ *
7
+ * redaction: variant="redaction", pass `matches` = [{ category, confidence, original,
8
+ * replacement, oldNo, newNo }]. each match is a del→add pair with a category·
9
+ * confidence badge and a per-match keep/revert button.
10
+ *
11
+ * @param {object} props
12
+ * @param {string} props.file - the file path shown in the header (mono, not lowercased)
13
+ * @param {Array<{header?:string, lines:Array<{type:'add'|'del'|'ctx', oldNo?:number|string, newNo?:number|string, text:string}>}>} [props.hunks] - structured hunks (default variant)
14
+ * @param {Array<{category:string, confidence:number, original:string, replacement:string, oldNo?:number|string, newNo?:number|string}>} [props.matches] - redaction matches (redaction variant)
15
+ * @param {'default'|'redaction'} [props.variant='default']
16
+ * @param {string} [props.className]
17
+ */
18
+ export default function DiffView({ file, hunks, matches, variant, className, ...rest }: {
19
+ file: string;
20
+ hunks?: Array<{
21
+ header?: string;
22
+ lines: Array<{
23
+ type: "add" | "del" | "ctx";
24
+ oldNo?: number | string;
25
+ newNo?: number | string;
26
+ text: string;
27
+ }>;
28
+ }>;
29
+ matches?: Array<{
30
+ category: string;
31
+ confidence: number;
32
+ original: string;
33
+ replacement: string;
34
+ oldNo?: number | string;
35
+ newNo?: number | string;
36
+ }>;
37
+ variant?: "default" | "redaction";
38
+ className?: string;
39
+ }): any;
@@ -0,0 +1,118 @@
1
+ export default meta;
2
+ export namespace Default {
3
+ namespace args {
4
+ export let file: string;
5
+ export let variant: string;
6
+ export { goHunks as hunks };
7
+ }
8
+ function play({ canvasElement }: {
9
+ canvasElement: any;
10
+ }): Promise<void>;
11
+ }
12
+ export namespace Redaction {
13
+ export namespace args_1 {
14
+ let file_1: string;
15
+ export { file_1 as file };
16
+ let variant_1: string;
17
+ export { variant_1 as variant };
18
+ export { redactionMatches as matches };
19
+ }
20
+ export { args_1 as args };
21
+ export function play_1({ canvasElement }: {
22
+ canvasElement: any;
23
+ }): Promise<void>;
24
+ export { play_1 as play };
25
+ }
26
+ export namespace Empty {
27
+ export namespace args_2 {
28
+ let file_2: string;
29
+ export { file_2 as file };
30
+ let variant_2: string;
31
+ export { variant_2 as variant };
32
+ export let hunks: any[];
33
+ }
34
+ export { args_2 as args };
35
+ }
36
+ export namespace RedactionEmpty {
37
+ export namespace args_3 {
38
+ let file_3: string;
39
+ export { file_3 as file };
40
+ let variant_3: string;
41
+ export { variant_3 as variant };
42
+ export let matches: any[];
43
+ }
44
+ export { args_3 as args };
45
+ }
46
+ export namespace LightTheme {
47
+ export namespace args_4 {
48
+ let file_4: string;
49
+ export { file_4 as file };
50
+ let variant_4: string;
51
+ export { variant_4 as variant };
52
+ export { goHunks as hunks };
53
+ }
54
+ export { args_4 as args };
55
+ export namespace globals {
56
+ let theme: string;
57
+ namespace backgrounds {
58
+ let value: string;
59
+ }
60
+ }
61
+ }
62
+ declare namespace meta {
63
+ export let title: string;
64
+ export { DiffView as component };
65
+ export let tags: string[];
66
+ export let decorators: Function[];
67
+ export namespace argTypes {
68
+ export namespace variant_5 {
69
+ let control: string;
70
+ let options: string[];
71
+ }
72
+ export { variant_5 as variant };
73
+ export namespace file_5 {
74
+ let control_1: string;
75
+ export { control_1 as control };
76
+ }
77
+ export { file_5 as file };
78
+ export namespace hunks_1 {
79
+ let control_2: boolean;
80
+ export { control_2 as control };
81
+ }
82
+ export { hunks_1 as hunks };
83
+ export namespace matches_1 {
84
+ let control_3: boolean;
85
+ export { control_3 as control };
86
+ }
87
+ export { matches_1 as matches };
88
+ }
89
+ }
90
+ declare const goHunks: {
91
+ header: string;
92
+ lines: ({
93
+ type: string;
94
+ oldNo: number;
95
+ newNo: number;
96
+ text: string;
97
+ } | {
98
+ type: string;
99
+ oldNo: number;
100
+ text: string;
101
+ newNo?: undefined;
102
+ } | {
103
+ type: string;
104
+ newNo: number;
105
+ text: string;
106
+ oldNo?: undefined;
107
+ })[];
108
+ }[];
109
+ declare const redactionMatches: {
110
+ id: string;
111
+ category: string;
112
+ confidence: number;
113
+ oldNo: number;
114
+ newNo: number;
115
+ original: string;
116
+ replacement: string;
117
+ }[];
118
+ import DiffView from './DiffView.jsx';
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @typedef {import('react').ReactNode} ReactNode
3
+ * @typedef {import('react').ComponentType<{ size?: number, 'aria-hidden'?: boolean }>} IconComponent
4
+ */
5
+ /**
6
+ * EmptyState — left-aligned empty/zero-state block: a ringed icon, title,
7
+ * message, and an optional action slot. Emits the exact `.empty` markup the
8
+ * existing `src/index.css` styles (left-aligned by design).
9
+ *
10
+ * @param {object} props
11
+ * @param {IconComponent} [props.icon] - lucide-react icon component reference (e.g. `Compass`); rendered decoratively inside the `.ring`. The CSS sizes `.ring .lucide` to --ic-lg (18px).
12
+ * @param {ReactNode} props.title - short heading, rendered by the `as` element (default `h3`).
13
+ * @param {ReactNode} [props.message] - supporting copy, rendered in `p`. Omitted if not provided.
14
+ * @param {ReactNode} [props.action] - optional action slot (e.g. a button). Takes precedence over `children`.
15
+ * @param {ReactNode} [props.children] - fallback action slot, used only when `action` is not provided.
16
+ * @param {keyof JSX.IntrinsicElements} [props.as='h3'] - heading element/level for the title, so the component can fit the surrounding heading outline (e.g. `h2`).
17
+ * @returns {JSX.Element}
18
+ */
19
+ export default function EmptyState({ icon: Icon, title, message, action, children, as: Heading }: {
20
+ icon?: IconComponent;
21
+ title: ReactNode;
22
+ message?: ReactNode;
23
+ action?: ReactNode;
24
+ children?: ReactNode;
25
+ as?: keyof JSX.IntrinsicElements;
26
+ }): JSX.Element;
27
+ export type ReactNode = any;
28
+ export type IconComponent = any;