lldlab-ui 0.1.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.
@@ -0,0 +1,657 @@
1
+ import * as react from 'react';
2
+ import { ElementType, ComponentPropsWithRef, ReactNode, RefObject, KeyboardEvent } from 'react';
3
+
4
+ declare const BREAKPOINTS: readonly ["base", "sm", "md", "lg", "xl"];
5
+ type Breakpoint = (typeof BREAKPOINTS)[number];
6
+ /** One value, or one value per breakpoint (min-width, Tailwind semantics). */
7
+ type Responsive<T extends string | number> = T | Partial<Record<Breakpoint, T>>;
8
+
9
+ type Space = 'none' | '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
10
+ type Direction = 'row' | 'column';
11
+ type Align = 'start' | 'center' | 'end' | 'stretch' | 'baseline';
12
+ type Justify = 'start' | 'center' | 'end' | 'between';
13
+ type Cols = 1 | 2 | 3 | 4 | 5 | 6;
14
+ type HeadingSize = 'display' | 'xl' | 'lg' | 'md' | 'sm';
15
+
16
+ /** Foreground tones for text and icons. Status tones use the AA-safe fg-* tokens. */
17
+ type Tone = 'default' | 'muted' | 'strong' | 'brand' | 'success' | 'warning' | 'danger' | 'inverse';
18
+ type StatusTone = 'neutral' | 'brand' | 'success' | 'warning' | 'danger';
19
+
20
+ /** Props no public component accepts: styling only changes through variants. */
21
+ type Forbidden = 'className' | 'style';
22
+ /** Own props P, plus `as`, plus the rendered element's props minus Forbidden. */
23
+ type PolyProps<E extends ElementType, P> = P & {
24
+ as?: E;
25
+ } & Omit<ComponentPropsWithRef<E>, keyof P | 'as' | Forbidden>;
26
+ /** Own props P plus a fixed element's props minus Forbidden. */
27
+ type NativeProps<E extends ElementType, P> = P & Omit<ComponentPropsWithRef<E>, keyof P | Forbidden>;
28
+
29
+ type ThemeTone = 'light' | 'dark';
30
+ /** The nearest <Theme> tone, for components that render outside their scope's DOM (portals). */
31
+ declare function useThemeTone(): ThemeTone | undefined;
32
+ type ThemeProps<E extends ElementType = 'div'> = PolyProps<E, {
33
+ tone?: ThemeTone;
34
+ }>;
35
+ /** Scopes the colour tokens: everything inside renders in `tone`. */
36
+ declare function Theme<E extends ElementType = 'div'>({ as, tone, ...rest }: ThemeProps<E>): react.JSX.Element;
37
+
38
+ type SurfaceTone = 'surface' | 'subtle' | 'elevated' | 'low' | 'inverse';
39
+ declare const RADIUS: {
40
+ readonly none: "";
41
+ readonly sm: "rounded";
42
+ readonly md: "rounded-lg";
43
+ readonly lg: "rounded-xl";
44
+ };
45
+ declare const BORDER: {
46
+ readonly none: "";
47
+ readonly subtle: "border border-border-subtle";
48
+ readonly strong: "border border-border-strong";
49
+ };
50
+ declare const SHADOW: {
51
+ readonly none: "";
52
+ readonly sm: "shadow-sm";
53
+ readonly md: "shadow-md";
54
+ };
55
+ type BoxOwnProps = {
56
+ padding?: Responsive<Space>;
57
+ radius?: keyof typeof RADIUS;
58
+ tone?: SurfaceTone;
59
+ border?: keyof typeof BORDER;
60
+ shadow?: keyof typeof SHADOW;
61
+ };
62
+ type BoxProps<E extends ElementType = 'div'> = PolyProps<E, BoxOwnProps>;
63
+ declare function Box<E extends ElementType = 'div'>({ as, padding, radius, tone, border, shadow, ...rest }: BoxProps<E>): react.JSX.Element;
64
+
65
+ type StackOwnProps = {
66
+ direction?: Responsive<Direction>;
67
+ gap?: Responsive<Space>;
68
+ align?: Responsive<Align>;
69
+ justify?: Responsive<Justify>;
70
+ wrap?: boolean;
71
+ };
72
+ type StackProps<E extends ElementType = 'div'> = PolyProps<E, StackOwnProps>;
73
+ declare function Stack<E extends ElementType = 'div'>({ as, direction, gap, align, justify, wrap, ...rest }: StackProps<E>): react.JSX.Element;
74
+
75
+ type GridProps<E extends ElementType = 'div'> = PolyProps<E, {
76
+ cols?: Responsive<Cols>;
77
+ gap?: Responsive<Space>;
78
+ }>;
79
+ /** Single column below md unless `cols` sets `base` explicitly. */
80
+ declare function Grid<E extends ElementType = 'div'>({ as, cols, gap, ...rest }: GridProps<E>): react.JSX.Element;
81
+
82
+ declare const SIZE$7: {
83
+ readonly md: "max-w-3xl";
84
+ readonly lg: "max-w-5xl";
85
+ readonly xl: "max-w-7xl";
86
+ };
87
+ type ContainerProps<E extends ElementType = 'div'> = PolyProps<E, {
88
+ size?: keyof typeof SIZE$7;
89
+ }>;
90
+ declare function Container<E extends ElementType = 'div'>({ as, size, ...rest }: ContainerProps<E>): react.JSX.Element;
91
+
92
+ declare const PADDING: {
93
+ readonly md: "py-section-md";
94
+ readonly lg: "py-section-lg";
95
+ readonly xl: "py-section-xl";
96
+ };
97
+ declare const PATTERN$1: {
98
+ readonly none: "";
99
+ readonly dots: "bg-pattern-dots";
100
+ readonly grid: "bg-pattern-grid";
101
+ };
102
+ type SectionProps<E extends ElementType = 'section'> = PolyProps<E, {
103
+ tone?: SurfaceTone;
104
+ padding?: keyof typeof PADDING;
105
+ pattern?: keyof typeof PATTERN$1;
106
+ }>;
107
+ declare function Section<E extends ElementType = 'section'>({ as, tone, padding, pattern, ...rest }: SectionProps<E>): react.JSX.Element;
108
+
109
+ declare const MAIN: {
110
+ readonly '8/4': "xl:col-span-8";
111
+ readonly '1/1': "xl:col-span-6";
112
+ readonly '9/3': "xl:col-span-9";
113
+ };
114
+ type SplitProps = NativeProps<'div', {
115
+ ratio?: keyof typeof MAIN;
116
+ aside: ReactNode;
117
+ sticky?: boolean;
118
+ gap?: Responsive<Space>;
119
+ children: ReactNode;
120
+ }>;
121
+ /** Main + aside; the aside stacks below the main content under xl. */
122
+ declare function Split({ ratio, aside, sticky, gap, children, ...rest }: SplitProps): react.JSX.Element;
123
+
124
+ declare const SIZE$6: {
125
+ readonly sm: "text-[16px]";
126
+ readonly md: "text-[20px]";
127
+ readonly lg: "text-[24px]";
128
+ };
129
+ type IconProps = NativeProps<'span', {
130
+ name: string;
131
+ size?: keyof typeof SIZE$6;
132
+ tone?: Tone | 'inherit';
133
+ filled?: boolean;
134
+ spin?: boolean;
135
+ label?: string;
136
+ children?: never;
137
+ }>;
138
+ /** Material Symbols Outlined ligature icon. The app loads the font. */
139
+ declare function Icon({ name, size, tone, filled, spin, label, ...rest }: IconProps): react.JSX.Element;
140
+
141
+ declare const SIZE$5: {
142
+ readonly sm: "size-1.5";
143
+ readonly md: "size-2";
144
+ };
145
+ type DotProps = NativeProps<'span', {
146
+ tone?: StatusTone;
147
+ size?: keyof typeof SIZE$5;
148
+ pulse?: boolean;
149
+ children?: never;
150
+ }>;
151
+ declare function Dot({ tone, size, pulse, ...rest }: DotProps): react.JSX.Element;
152
+
153
+ declare const VARIANT$1: {
154
+ readonly 'body-lead': "font-body-lead text-body-lead";
155
+ readonly 'body-md': "font-body-md text-body-md";
156
+ readonly 'body-sm': "font-body-sm text-body-sm";
157
+ readonly label: "font-label-mono text-label-mono uppercase";
158
+ readonly code: "font-code-inline text-code-inline";
159
+ };
160
+ declare const WEIGHT: {
161
+ readonly regular: "";
162
+ readonly medium: "font-medium";
163
+ readonly semibold: "font-semibold";
164
+ };
165
+ declare const CLAMP: {
166
+ readonly 1: "line-clamp-1";
167
+ readonly 2: "line-clamp-2";
168
+ readonly 3: "line-clamp-3";
169
+ readonly 4: "line-clamp-4";
170
+ };
171
+ type TextOwnProps = {
172
+ variant?: keyof typeof VARIANT$1;
173
+ tone?: Tone;
174
+ weight?: keyof typeof WEIGHT;
175
+ truncate?: boolean;
176
+ clamp?: keyof typeof CLAMP;
177
+ };
178
+ type TextProps<E extends ElementType = 'p'> = PolyProps<E, TextOwnProps>;
179
+ declare function Text<E extends ElementType = 'p'>({ as, variant, tone, weight, truncate, clamp, ...rest }: TextProps<E>): react.JSX.Element;
180
+
181
+ declare const TAG: {
182
+ readonly 1: "h1";
183
+ readonly 2: "h2";
184
+ readonly 3: "h3";
185
+ readonly 4: "h4";
186
+ };
187
+ declare const TONE$6: {
188
+ readonly default: "text-ink";
189
+ readonly muted: "text-on-surface-variant";
190
+ readonly brand: "text-fg-brand";
191
+ readonly inverse: "text-on-primary";
192
+ };
193
+ type HeadingProps = NativeProps<'h2', {
194
+ level: keyof typeof TAG;
195
+ size?: Responsive<HeadingSize>;
196
+ tone?: keyof typeof TONE$6;
197
+ }>;
198
+ declare function Heading({ level, size, tone, ...rest }: HeadingProps): react.JSX.Element;
199
+
200
+ type EyebrowProps = NativeProps<'span', {
201
+ tone?: StatusTone;
202
+ children: ReactNode;
203
+ }>;
204
+ declare function Eyebrow({ tone, children, ...rest }: EyebrowProps): react.JSX.Element;
205
+
206
+ type CodeProps = NativeProps<'code', {
207
+ children: ReactNode;
208
+ }>;
209
+ declare function Code({ children, ...rest }: CodeProps): react.JSX.Element;
210
+
211
+ type CodeBlockProps = NativeProps<'figure', {
212
+ language?: string;
213
+ children: ReactNode;
214
+ }>;
215
+ /** Dark code block; scrolls inside itself so long lines never widen the page. */
216
+ declare function CodeBlock({ language, children, ...rest }: CodeBlockProps): react.JSX.Element;
217
+
218
+ type MarkdownProps = NativeProps<'div', {
219
+ children: string;
220
+ }>;
221
+ declare function Markdown({ children, ...rest }: MarkdownProps): react.JSX.Element;
222
+
223
+ type BadgeTone = 'neutral' | 'brand' | 'success' | 'warning' | 'danger' | 'info';
224
+ declare const SIZE$4: {
225
+ readonly sm: "px-space-xs py-space-2xs";
226
+ readonly md: "px-space-sm py-space-xs";
227
+ };
228
+ type BadgeProps = NativeProps<'span', {
229
+ tone?: BadgeTone;
230
+ uppercase?: boolean;
231
+ size?: keyof typeof SIZE$4;
232
+ children: ReactNode;
233
+ }>;
234
+ declare function Badge({ tone, uppercase, size, children, ...rest }: BadgeProps): react.JSX.Element;
235
+
236
+ declare const TONE$5: {
237
+ readonly neutral: "border-border-subtle text-on-surface";
238
+ readonly brand: "border-brand-cobalt/40 text-fg-brand";
239
+ };
240
+ type ChipProps = NativeProps<'span', {
241
+ tone?: keyof typeof TONE$5;
242
+ icon?: string;
243
+ onRemove?: () => void;
244
+ children: string;
245
+ }>;
246
+ declare function Chip({ tone, icon, onRemove, children, ...rest }: ChipProps): react.JSX.Element;
247
+
248
+ type StatProps = NativeProps<'div', {
249
+ icon: string;
250
+ label: ReactNode;
251
+ value: ReactNode;
252
+ }>;
253
+ declare function Stat({ icon, label, value, ...rest }: StatProps): react.JSX.Element;
254
+
255
+ declare const TONE$4: {
256
+ readonly brand: "bg-brand-cobalt";
257
+ readonly success: "bg-brand-emerald";
258
+ readonly warning: "bg-brand-amber";
259
+ readonly danger: "bg-brand-crimson";
260
+ };
261
+ type ProgressBarProps = NativeProps<'div', {
262
+ value: number;
263
+ max?: number;
264
+ tone?: keyof typeof TONE$4;
265
+ label: string;
266
+ hideLabel?: boolean;
267
+ }>;
268
+ declare function ProgressBar({ value, max, tone, label, hideLabel, ...rest }: ProgressBarProps): react.JSX.Element;
269
+
270
+ type SectionHeaderProps = NativeProps<'div', {
271
+ title: ReactNode;
272
+ level?: 2 | 3;
273
+ dot?: StatusTone;
274
+ tag?: ReactNode;
275
+ meta?: ReactNode;
276
+ }>;
277
+ declare function SectionHeader({ title, level, dot, tag, meta, ...rest }: SectionHeaderProps): react.JSX.Element;
278
+
279
+ declare const TONE$3: {
280
+ readonly danger: "bg-badge-advanced-bg text-badge-advanced-text";
281
+ readonly info: "bg-badge-intermediate-bg text-badge-intermediate-text";
282
+ readonly success: "bg-badge-beginner-bg text-badge-beginner-text";
283
+ readonly warning: "bg-badge-amber-bg text-badge-amber-text";
284
+ };
285
+ type CalloutProps = NativeProps<'div', {
286
+ tone?: keyof typeof TONE$3;
287
+ title?: ReactNode;
288
+ action?: ReactNode;
289
+ children: ReactNode;
290
+ }>;
291
+ declare function Callout({ tone, title, action, children, ...rest }: CalloutProps): react.JSX.Element;
292
+
293
+ declare const STATUS: {
294
+ readonly pass: {
295
+ readonly icon: "check_circle";
296
+ readonly tone: "success";
297
+ readonly label: "Passed";
298
+ };
299
+ readonly fail: {
300
+ readonly icon: "cancel";
301
+ readonly tone: "danger";
302
+ readonly label: "Failed";
303
+ };
304
+ readonly pending: {
305
+ readonly icon: "schedule";
306
+ readonly tone: "muted";
307
+ readonly label: "Pending";
308
+ };
309
+ };
310
+ type ResultRowProps = NativeProps<'div', {
311
+ status: keyof typeof STATUS;
312
+ title: ReactNode;
313
+ detail?: ReactNode;
314
+ meta?: ReactNode;
315
+ }>;
316
+ declare function ResultRow({ status, title, detail, meta, ...rest }: ResultRowProps): react.JSX.Element;
317
+
318
+ type MessageProps = NativeProps<'p', {
319
+ tone?: 'default' | 'danger';
320
+ children: ReactNode;
321
+ }>;
322
+ /** Short loading / error / empty text. Danger announces as an alert. */
323
+ declare function Message({ tone, children, ...rest }: MessageProps): react.JSX.Element;
324
+
325
+ type EmptyStateProps = NativeProps<'div', {
326
+ icon?: string;
327
+ title: ReactNode;
328
+ description?: ReactNode;
329
+ action?: ReactNode;
330
+ }>;
331
+ declare function EmptyState({ icon, title, description, action, ...rest }: EmptyStateProps): react.JSX.Element;
332
+
333
+ type CheckListProps = NativeProps<'ul', {
334
+ items: ReactNode[];
335
+ children?: never;
336
+ }>;
337
+ declare function CheckList({ items, ...rest }: CheckListProps): react.JSX.Element;
338
+
339
+ declare const TONE$2: {
340
+ readonly default: "bg-surface-elevated border border-border-subtle text-on-surface";
341
+ readonly inverse: "bg-brand-obsidian border border-brand-slate text-on-primary";
342
+ };
343
+ declare const PATTERN: {
344
+ readonly none: "";
345
+ readonly dots: "bg-pattern-dots";
346
+ readonly grid: "bg-pattern-grid";
347
+ };
348
+ declare const ASPECT: {
349
+ readonly video: "aspect-video";
350
+ readonly wide: "aspect-[21/9]";
351
+ readonly square: "aspect-square";
352
+ };
353
+ type CardMediaProps = NativeProps<'div', {
354
+ pattern?: keyof typeof PATTERN;
355
+ aspect?: keyof typeof ASPECT;
356
+ children?: ReactNode;
357
+ }>;
358
+ type CardFooterProps = NativeProps<'div', {
359
+ children: ReactNode;
360
+ }>;
361
+ declare function CardMedia({ pattern, aspect, children, ...rest }: CardMediaProps): react.JSX.Element;
362
+ declare function CardFooter({ children, ...rest }: CardFooterProps): react.JSX.Element;
363
+ type CardOwnProps = {
364
+ padding?: Responsive<Space>;
365
+ interactive?: boolean;
366
+ tone?: keyof typeof TONE$2;
367
+ children?: ReactNode;
368
+ };
369
+ type CardProps<E extends ElementType = 'div'> = PolyProps<E, CardOwnProps>;
370
+ declare function CardRoot<E extends ElementType = 'div'>({ as, padding, interactive, tone, children, ...rest }: CardProps<E>): react.JSX.Element;
371
+ declare const Card: typeof CardRoot & {
372
+ Media: typeof CardMedia;
373
+ Footer: typeof CardFooter;
374
+ };
375
+
376
+ type ButtonVariant = 'primary' | 'secondary' | 'subtle' | 'ghost' | 'danger';
377
+ declare const SIZE$3: {
378
+ readonly sm: "h-8 px-space-md";
379
+ readonly md: "h-10 px-space-lg";
380
+ readonly lg: "h-12 px-space-lg";
381
+ };
382
+ type ButtonOwnProps = {
383
+ variant?: ButtonVariant;
384
+ size?: keyof typeof SIZE$3;
385
+ icon?: string;
386
+ iconRight?: string;
387
+ fullWidth?: boolean;
388
+ loading?: boolean;
389
+ disabled?: boolean;
390
+ children: ReactNode;
391
+ };
392
+ type ButtonProps<E extends ElementType = 'button'> = PolyProps<E, ButtonOwnProps>;
393
+ declare function Button<E extends ElementType = 'button'>({ as, variant, size, icon, iconRight, fullWidth, loading, disabled, children, ...rest }: ButtonProps<E>): react.JSX.Element;
394
+
395
+ declare const VARIANT: {
396
+ readonly ghost: "text-on-surface-variant hover:bg-surface-muted hover:text-on-surface";
397
+ readonly subtle: "bg-surface-subtle text-on-surface hover:bg-surface-muted";
398
+ readonly primary: "bg-ink text-on-ink hover:bg-ink-hover";
399
+ };
400
+ declare const SIZE$2: {
401
+ readonly sm: "size-8";
402
+ readonly md: "size-10";
403
+ };
404
+ type IconButtonProps = NativeProps<'button', {
405
+ icon: string;
406
+ label: string;
407
+ variant?: keyof typeof VARIANT;
408
+ size?: keyof typeof SIZE$2;
409
+ children?: never;
410
+ }>;
411
+ declare function IconButton({ icon, label, variant, size, type, ...rest }: IconButtonProps): react.JSX.Element;
412
+
413
+ type KbdProps = NativeProps<'kbd', {
414
+ children: ReactNode;
415
+ }>;
416
+ declare function Kbd({ children, ...rest }: KbdProps): react.JSX.Element;
417
+
418
+ type TextFieldProps = NativeProps<'input', {
419
+ label: string;
420
+ hideLabel?: boolean;
421
+ icon?: string;
422
+ hint?: ReactNode;
423
+ error?: string;
424
+ }>;
425
+ declare function TextField({ label, hideLabel, icon, hint, error, id, ...rest }: TextFieldProps): react.JSX.Element;
426
+
427
+ type SelectOption = {
428
+ value: string;
429
+ label: string;
430
+ };
431
+ type SelectProps = NativeProps<'select', {
432
+ label: string;
433
+ hideLabel?: boolean;
434
+ options: SelectOption[];
435
+ children?: never;
436
+ }>;
437
+ declare function Select({ label, hideLabel, options, id, ...rest }: SelectProps): react.JSX.Element;
438
+
439
+ /** `panelId` links a tablist tab to a `<TabPanel id={panelId}>` (aria-controls / aria-labelledby). */
440
+ type TabItem = {
441
+ id: string;
442
+ label: ReactNode;
443
+ count?: number;
444
+ dot?: StatusTone;
445
+ href?: string;
446
+ as?: ElementType;
447
+ panelId?: string;
448
+ };
449
+ type TabsProps = NativeProps<'div', {
450
+ items: TabItem[];
451
+ value: string;
452
+ onChange?: (id: string) => void;
453
+ variant?: 'underline' | 'pills';
454
+ label: string;
455
+ children?: never;
456
+ }>;
457
+ /** Scrolls horizontally instead of wrapping. Links (any item with href) render as navigation, not a tablist. */
458
+ declare function Tabs({ items, value, onChange, variant, label, ...rest }: TabsProps): react.JSX.Element | null;
459
+ type TabPanelProps = NativeProps<'div', {
460
+ id: string;
461
+ active: boolean;
462
+ children: ReactNode;
463
+ }>;
464
+ /** Content for the tab whose `panelId` is `id`; hidden (not unmounted) when inactive. */
465
+ declare function TabPanel({ id, active, children, ...rest }: TabPanelProps): react.JSX.Element;
466
+
467
+ type SegmentedOption = {
468
+ value: string;
469
+ label: string;
470
+ icon?: string;
471
+ };
472
+ type SegmentedControlProps = NativeProps<'div', {
473
+ label: string;
474
+ options: SegmentedOption[];
475
+ value: string;
476
+ onChange: (value: string) => void;
477
+ children?: never;
478
+ }>;
479
+ declare function SegmentedControl({ label, options, value, onChange, ...rest }: SegmentedControlProps): react.JSX.Element;
480
+
481
+ declare const SIZE$1: {
482
+ readonly sm: "max-w-sm";
483
+ readonly md: "max-w-md";
484
+ readonly lg: "max-w-2xl";
485
+ };
486
+ type DialogProps = NativeProps<'div', {
487
+ open: boolean;
488
+ onClose: () => void;
489
+ title: ReactNode;
490
+ description?: ReactNode;
491
+ footer?: ReactNode;
492
+ size?: keyof typeof SIZE$1;
493
+ children?: ReactNode;
494
+ }>;
495
+ /** Native props (id, data-*, aria-*) go to the dialog panel. */
496
+ declare function Dialog({ open, onClose, title, description, footer, size, children, ...rest }: DialogProps): react.ReactPortal | null;
497
+
498
+ type MenuItem = {
499
+ label: string;
500
+ icon?: string;
501
+ onSelect?: () => void;
502
+ href?: string;
503
+ as?: ElementType;
504
+ tone?: 'default' | 'danger';
505
+ };
506
+ type MenuTriggerProps = {
507
+ ref: RefObject<HTMLButtonElement | null>;
508
+ id: string;
509
+ 'aria-haspopup': 'menu';
510
+ 'aria-expanded': boolean;
511
+ 'aria-controls': string | undefined;
512
+ onClick: () => void;
513
+ onKeyDown: (e: KeyboardEvent) => void;
514
+ };
515
+ type MenuProps = NativeProps<'div', {
516
+ label: string;
517
+ trigger: (props: MenuTriggerProps) => ReactNode;
518
+ items: MenuItem[];
519
+ align?: 'start' | 'end';
520
+ children?: never;
521
+ }>;
522
+ declare function Menu({ label, trigger, items, align, ...rest }: MenuProps): react.JSX.Element;
523
+
524
+ type Crumb = {
525
+ label: string;
526
+ href?: string;
527
+ as?: ElementType;
528
+ };
529
+ type BreadcrumbsProps = NativeProps<'nav', {
530
+ items: Crumb[];
531
+ label?: string;
532
+ children?: never;
533
+ }>;
534
+ declare function Breadcrumbs({ items, label, ...rest }: BreadcrumbsProps): react.JSX.Element;
535
+
536
+ declare const TONE$1: {
537
+ readonly default: "";
538
+ readonly success: string;
539
+ readonly danger: string;
540
+ readonly warning: string;
541
+ readonly brand: string;
542
+ };
543
+ type StatusItemProps = NativeProps<'span', {
544
+ icon?: string;
545
+ tone?: keyof typeof TONE$1;
546
+ children: ReactNode;
547
+ }>;
548
+ declare function StatusItem({ icon, tone, children, ...rest }: StatusItemProps): react.JSX.Element;
549
+ type StatusBarProps = NativeProps<'footer', {
550
+ start?: ReactNode;
551
+ end?: ReactNode;
552
+ label?: string;
553
+ children?: never;
554
+ }>;
555
+ declare function StatusBarRoot({ start, end, label, ...rest }: StatusBarProps): react.JSX.Element;
556
+ declare const StatusBar: typeof StatusBarRoot & {
557
+ Item: typeof StatusItem;
558
+ };
559
+
560
+ declare const TONE: {
561
+ readonly success: "text-fg-success";
562
+ readonly danger: "text-fg-danger";
563
+ readonly neutral: "text-ink";
564
+ };
565
+ type MetricTileProps = NativeProps<'div', {
566
+ label: ReactNode;
567
+ value: ReactNode;
568
+ tone?: keyof typeof TONE;
569
+ icon?: string;
570
+ }>;
571
+ declare function MetricTile({ label, value, tone, icon, ...rest }: MetricTileProps): react.JSX.Element;
572
+
573
+ declare const SIZE: {
574
+ readonly sm: "size-7 text-[11px]";
575
+ readonly md: "size-9 text-xs";
576
+ readonly lg: "size-12 text-sm";
577
+ };
578
+ type AvatarProps = NativeProps<'span', {
579
+ name: string;
580
+ src?: string;
581
+ size?: keyof typeof SIZE;
582
+ badge?: ReactNode;
583
+ children?: never;
584
+ }>;
585
+ declare function Avatar({ name, src, size, badge, ...rest }: AvatarProps): react.JSX.Element;
586
+
587
+ type EditorTab = {
588
+ id: string;
589
+ label: string;
590
+ modified?: boolean;
591
+ readOnly?: boolean;
592
+ };
593
+ type EditorTabsProps = NativeProps<'nav', {
594
+ tabs: EditorTab[];
595
+ activeId: string;
596
+ onSelect: (id: string) => void;
597
+ onClose?: (id: string) => void;
598
+ label?: string;
599
+ children?: never;
600
+ }>;
601
+ /** Open-file tabs. A nav list (not a tablist) because each tab carries its own close button. */
602
+ declare function EditorTabs({ tabs, activeId, onSelect, onClose, label, ...rest }: EditorTabsProps): react.JSX.Element | null;
603
+
604
+ type CountdownProps = NativeProps<'span', {
605
+ seconds?: number;
606
+ until?: Date;
607
+ direction?: 'down' | 'up';
608
+ warnAt?: number;
609
+ onExpire?: () => void;
610
+ label?: string;
611
+ children?: never;
612
+ }>;
613
+ declare function Countdown({ seconds, until, direction, warnAt, onExpire, label, ...rest }: CountdownProps): react.JSX.Element;
614
+
615
+ type FileNode = {
616
+ path: string;
617
+ kind: 'file' | 'dir';
618
+ readOnly?: boolean;
619
+ modified?: boolean;
620
+ };
621
+
622
+ type FileTreeProps = NativeProps<'ul', {
623
+ nodes: FileNode[];
624
+ activePath?: string;
625
+ onOpen: (path: string) => void;
626
+ defaultExpanded?: string[] | 'all';
627
+ label: string;
628
+ children?: never;
629
+ }>;
630
+ declare function FileTree({ nodes, activePath, onOpen, defaultExpanded, label, ...rest }: FileTreeProps): react.JSX.Element | null;
631
+
632
+ type Panel = 'left' | 'right' | 'bottom';
633
+ type Side = 'left' | 'right';
634
+ type WorkbenchSizes = Record<Panel, number>;
635
+ type WorkbenchLimits = Record<Panel, readonly [number, number]>;
636
+ type Labels = Record<'left' | 'main' | 'right' | 'bottom', string>;
637
+ declare function Toggle({ panel }: {
638
+ panel: Side;
639
+ }): react.JSX.Element | null;
640
+ type WorkbenchProps = NativeProps<'div', {
641
+ header?: ReactNode;
642
+ left?: ReactNode;
643
+ main: ReactNode;
644
+ right?: ReactNode;
645
+ bottom?: ReactNode;
646
+ labels?: Partial<Labels>;
647
+ defaultSizes?: Partial<WorkbenchSizes>;
648
+ limits?: Partial<WorkbenchLimits>;
649
+ persistKey?: string;
650
+ children?: never;
651
+ }>;
652
+ declare function WorkbenchRoot({ header, left, main, right, bottom, labels: labelsProp, defaultSizes, limits: limitsProp, persistKey, ...rest }: WorkbenchProps): react.JSX.Element;
653
+ declare const Workbench: typeof WorkbenchRoot & {
654
+ Toggle: typeof Toggle;
655
+ };
656
+
657
+ export { type Align, Avatar, type AvatarProps, Badge, type BadgeProps, type BadgeTone, Box, type BoxProps, Breadcrumbs, type BreadcrumbsProps, type Breakpoint, Button, type ButtonProps, type ButtonVariant, Callout, type CalloutProps, Card, CardFooter, type CardFooterProps, CardMedia, type CardMediaProps, type CardProps, CheckList, type CheckListProps, Chip, type ChipProps, Code, CodeBlock, type CodeBlockProps, type CodeProps, type Cols, Container, type ContainerProps, Countdown, type CountdownProps, type Crumb, Dialog, type DialogProps, type Direction, Dot, type DotProps, type EditorTab, EditorTabs, type EditorTabsProps, EmptyState, type EmptyStateProps, Eyebrow, type EyebrowProps, type FileNode, FileTree, type FileTreeProps, Grid, type GridProps, Heading, type HeadingProps, type HeadingSize, Icon, IconButton, type IconButtonProps, type IconProps, type Justify, Kbd, type KbdProps, Markdown, type MarkdownProps, Menu, type MenuItem, type MenuProps, type MenuTriggerProps, Message, type MessageProps, MetricTile, type MetricTileProps, ProgressBar, type ProgressBarProps, type Responsive, ResultRow, type ResultRowProps, Section, SectionHeader, type SectionHeaderProps, type SectionProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, Select, type SelectOption, type SelectProps, type Space, Split, type SplitProps, Stack, type StackProps, Stat, type StatProps, StatusBar, type StatusBarProps, type StatusItemProps, type StatusTone, type SurfaceTone, type TabItem, TabPanel, type TabPanelProps, Tabs, type TabsProps, Text, TextField, type TextFieldProps, type TextProps, Theme, type ThemeProps, type ThemeTone, type Tone, Workbench, type WorkbenchLimits, type WorkbenchProps, type WorkbenchSizes, useThemeTone };