lldlab-ui 0.1.0 → 0.2.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/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { ElementType, ComponentPropsWithRef, ReactNode, RefObject, KeyboardEvent } from 'react';
2
+ import { ElementType, ComponentPropsWithRef, ReactNode, RefObject, KeyboardEvent, ReactElement, MouseEvent, FocusEvent, Ref } from 'react';
3
3
 
4
4
  declare const BREAKPOINTS: readonly ["base", "sm", "md", "lg", "xl"];
5
5
  type Breakpoint = (typeof BREAKPOINTS)[number];
@@ -58,9 +58,11 @@ type BoxOwnProps = {
58
58
  tone?: SurfaceTone;
59
59
  border?: keyof typeof BORDER;
60
60
  shadow?: keyof typeof SHADOW;
61
+ /** Greys out and disables the content (inert), e.g. a panel waiting on a runtime. */
62
+ dimmed?: boolean;
61
63
  };
62
64
  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;
65
+ declare function Box<E extends ElementType = 'div'>({ as, padding, radius, tone, border, shadow, dimmed, ...rest }: BoxProps<E>): react.JSX.Element;
64
66
 
65
67
  type StackOwnProps = {
66
68
  direction?: Responsive<Direction>;
@@ -79,13 +81,13 @@ type GridProps<E extends ElementType = 'div'> = PolyProps<E, {
79
81
  /** Single column below md unless `cols` sets `base` explicitly. */
80
82
  declare function Grid<E extends ElementType = 'div'>({ as, cols, gap, ...rest }: GridProps<E>): react.JSX.Element;
81
83
 
82
- declare const SIZE$7: {
84
+ declare const SIZE$d: {
83
85
  readonly md: "max-w-3xl";
84
86
  readonly lg: "max-w-5xl";
85
87
  readonly xl: "max-w-7xl";
86
88
  };
87
89
  type ContainerProps<E extends ElementType = 'div'> = PolyProps<E, {
88
- size?: keyof typeof SIZE$7;
90
+ size?: keyof typeof SIZE$d;
89
91
  }>;
90
92
  declare function Container<E extends ElementType = 'div'>({ as, size, ...rest }: ContainerProps<E>): react.JSX.Element;
91
93
 
@@ -111,24 +113,33 @@ declare const MAIN: {
111
113
  readonly '1/1': "xl:col-span-6";
112
114
  readonly '9/3': "xl:col-span-9";
113
115
  };
116
+ declare const STICKY_ASIDE: {
117
+ readonly none: "xl:sticky xl:top-space-lg xl:self-start";
118
+ readonly appbar: "xl:sticky xl:top-[calc(var(--spacing-appbar)+1rem)] xl:self-start";
119
+ };
114
120
  type SplitProps = NativeProps<'div', {
115
121
  ratio?: keyof typeof MAIN;
116
122
  aside: ReactNode;
123
+ /** Leading rail (e.g. a table of contents) shown from lg; with it the layout is 3/7/2… columns and `ratio` is ignored. */
124
+ start?: ReactNode;
117
125
  sticky?: boolean;
126
+ /** Clear a sticky AppBar when sticking. */
127
+ stickyOffset?: keyof typeof STICKY_ASIDE;
118
128
  gap?: Responsive<Space>;
119
129
  children: ReactNode;
120
130
  }>;
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;
131
+ /** Main + aside (stacked below xl); optional start rail from lg. */
132
+ declare function Split({ ratio, aside, start, sticky, stickyOffset, gap, children, ...rest }: SplitProps): react.JSX.Element;
123
133
 
124
- declare const SIZE$6: {
134
+ declare const SIZE$c: {
125
135
  readonly sm: "text-[16px]";
126
136
  readonly md: "text-[20px]";
127
137
  readonly lg: "text-[24px]";
138
+ readonly xl: "text-[32px]";
128
139
  };
129
140
  type IconProps = NativeProps<'span', {
130
141
  name: string;
131
- size?: keyof typeof SIZE$6;
142
+ size?: keyof typeof SIZE$c;
132
143
  tone?: Tone | 'inherit';
133
144
  filled?: boolean;
134
145
  spin?: boolean;
@@ -138,24 +149,26 @@ type IconProps = NativeProps<'span', {
138
149
  /** Material Symbols Outlined ligature icon. The app loads the font. */
139
150
  declare function Icon({ name, size, tone, filled, spin, label, ...rest }: IconProps): react.JSX.Element;
140
151
 
141
- declare const SIZE$5: {
152
+ declare const SIZE$b: {
142
153
  readonly sm: "size-1.5";
143
154
  readonly md: "size-2";
144
155
  };
145
156
  type DotProps = NativeProps<'span', {
146
157
  tone?: StatusTone;
147
- size?: keyof typeof SIZE$5;
158
+ size?: keyof typeof SIZE$b;
148
159
  pulse?: boolean;
149
160
  children?: never;
150
161
  }>;
151
162
  declare function Dot({ tone, size, pulse, ...rest }: DotProps): react.JSX.Element;
152
163
 
153
- declare const VARIANT$1: {
164
+ declare const VARIANT$4: {
154
165
  readonly 'body-lead': "font-body-lead text-body-lead";
155
166
  readonly 'body-md': "font-body-md text-body-md";
156
167
  readonly 'body-sm': "font-body-sm text-body-sm";
157
- readonly label: "font-label-mono text-label-mono uppercase";
168
+ readonly label: "font-label-mono text-label-mono";
158
169
  readonly code: "font-code-inline text-code-inline";
170
+ /** Inherits font and size from the parent (inline highlights inside a Heading). */
171
+ readonly inherit: "";
159
172
  };
160
173
  declare const WEIGHT: {
161
174
  readonly regular: "";
@@ -168,15 +181,25 @@ declare const CLAMP: {
168
181
  readonly 3: "line-clamp-3";
169
182
  readonly 4: "line-clamp-4";
170
183
  };
184
+ declare const ALIGN$1: {
185
+ readonly start: "text-start";
186
+ readonly center: "text-center";
187
+ readonly end: "text-end";
188
+ };
171
189
  type TextOwnProps = {
172
- variant?: keyof typeof VARIANT$1;
190
+ variant?: keyof typeof VARIANT$4;
173
191
  tone?: Tone;
174
192
  weight?: keyof typeof WEIGHT;
175
193
  truncate?: boolean;
176
194
  clamp?: keyof typeof CLAMP;
195
+ align?: keyof typeof ALIGN$1;
196
+ /** Limit line length to a readable measure. */
197
+ measure?: boolean;
198
+ /** Defaults to true for `label`, false otherwise. */
199
+ uppercase?: boolean;
177
200
  };
178
201
  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;
202
+ declare function Text<E extends ElementType = 'p'>({ as, variant, tone, weight, truncate, clamp, align, measure, uppercase, ...rest }: TextProps<E>): react.JSX.Element;
180
203
 
181
204
  declare const TAG: {
182
205
  readonly 1: "h1";
@@ -184,36 +207,68 @@ declare const TAG: {
184
207
  readonly 3: "h3";
185
208
  readonly 4: "h4";
186
209
  };
187
- declare const TONE$6: {
210
+ declare const TONE$b: {
188
211
  readonly default: "text-ink";
189
212
  readonly muted: "text-on-surface-variant";
190
213
  readonly brand: "text-fg-brand";
191
214
  readonly inverse: "text-on-primary";
215
+ readonly success: "text-fg-success";
216
+ readonly danger: "text-fg-danger";
217
+ readonly warning: "text-fg-warning";
218
+ };
219
+ declare const ALIGN: {
220
+ readonly start: "";
221
+ readonly center: "text-center";
192
222
  };
193
223
  type HeadingProps = NativeProps<'h2', {
194
224
  level: keyof typeof TAG;
195
225
  size?: Responsive<HeadingSize>;
196
- tone?: keyof typeof TONE$6;
226
+ tone?: keyof typeof TONE$b;
227
+ truncate?: boolean;
228
+ align?: keyof typeof ALIGN;
197
229
  }>;
198
- declare function Heading({ level, size, tone, ...rest }: HeadingProps): react.JSX.Element;
230
+ declare function Heading({ level, size, tone, truncate, align, ...rest }: HeadingProps): react.JSX.Element;
199
231
 
232
+ declare const VARIANT$3: {
233
+ readonly pill: "rounded-full border border-border-subtle bg-surface-elevated px-space-sm py-space-2xs";
234
+ readonly plain: "";
235
+ };
200
236
  type EyebrowProps = NativeProps<'span', {
201
237
  tone?: StatusTone;
238
+ pulse?: boolean;
239
+ variant?: keyof typeof VARIANT$3;
202
240
  children: ReactNode;
203
241
  }>;
204
- declare function Eyebrow({ tone, children, ...rest }: EyebrowProps): react.JSX.Element;
242
+ declare function Eyebrow({ tone, pulse, variant, children, ...rest }: EyebrowProps): react.JSX.Element;
205
243
 
206
244
  type CodeProps = NativeProps<'code', {
207
245
  children: ReactNode;
208
246
  }>;
209
247
  declare function Code({ children, ...rest }: CodeProps): react.JSX.Element;
210
248
 
249
+ declare const TONE$a: {
250
+ readonly dark: {
251
+ readonly root: "bg-brand-obsidian";
252
+ readonly header: "border-white/10 text-slate-300";
253
+ };
254
+ readonly subtle: {
255
+ readonly root: "code-subtle border border-border-subtle bg-code-bg-subtle";
256
+ readonly header: "border-border-subtle text-on-surface-variant";
257
+ };
258
+ };
211
259
  type CodeBlockProps = NativeProps<'figure', {
212
260
  language?: string;
261
+ /** Syntax-highlight string children (ts, tsx, js, jsx, python, go, java, json, bash). */
262
+ highlight?: boolean;
263
+ title?: ReactNode;
264
+ meta?: ReactNode;
265
+ actions?: ReactNode;
266
+ lineNumbers?: boolean;
267
+ tone?: keyof typeof TONE$a;
213
268
  children: ReactNode;
214
269
  }>;
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;
270
+ /** Code block; scrolls inside itself so long lines never widen the page. */
271
+ declare function CodeBlock({ language, highlight, title, meta, actions, lineNumbers, tone, children, ...rest }: CodeBlockProps): react.JSX.Element;
217
272
 
218
273
  type MarkdownProps = NativeProps<'div', {
219
274
  children: string;
@@ -221,29 +276,38 @@ type MarkdownProps = NativeProps<'div', {
221
276
  declare function Markdown({ children, ...rest }: MarkdownProps): react.JSX.Element;
222
277
 
223
278
  type BadgeTone = 'neutral' | 'brand' | 'success' | 'warning' | 'danger' | 'info';
224
- declare const SIZE$4: {
279
+ declare const SIZE$a: {
225
280
  readonly sm: "px-space-xs py-space-2xs";
226
281
  readonly md: "px-space-sm py-space-xs";
227
282
  };
228
283
  type BadgeProps = NativeProps<'span', {
229
284
  tone?: BadgeTone;
230
285
  uppercase?: boolean;
231
- size?: keyof typeof SIZE$4;
286
+ size?: keyof typeof SIZE$a;
287
+ icon?: string;
288
+ dot?: StatusTone;
289
+ pulse?: boolean;
232
290
  children: ReactNode;
233
291
  }>;
234
- declare function Badge({ tone, uppercase, size, children, ...rest }: BadgeProps): react.JSX.Element;
292
+ declare function Badge({ tone, uppercase, size, icon, dot, pulse, children, ...rest }: BadgeProps): react.JSX.Element;
235
293
 
236
- declare const TONE$5: {
294
+ declare const TONE$9: {
237
295
  readonly neutral: "border-border-subtle text-on-surface";
238
296
  readonly brand: "border-brand-cobalt/40 text-fg-brand";
297
+ readonly info: "border-brand-cobalt/40 text-fg-brand";
298
+ readonly success: "border-fg-success/40 text-fg-success";
299
+ readonly warning: "border-fg-warning/40 text-fg-warning";
300
+ readonly danger: "border-fg-danger/40 text-fg-danger";
239
301
  };
240
302
  type ChipProps = NativeProps<'span', {
241
- tone?: keyof typeof TONE$5;
303
+ tone?: keyof typeof TONE$9;
242
304
  icon?: string;
305
+ /** A status tone, or any CSS colour (e.g. a language brand colour). */
306
+ dot?: StatusTone | string;
243
307
  onRemove?: () => void;
244
308
  children: string;
245
309
  }>;
246
- declare function Chip({ tone, icon, onRemove, children, ...rest }: ChipProps): react.JSX.Element;
310
+ declare function Chip({ tone, icon, dot, onRemove, children, ...rest }: ChipProps): react.JSX.Element;
247
311
 
248
312
  type StatProps = NativeProps<'div', {
249
313
  icon: string;
@@ -252,43 +316,65 @@ type StatProps = NativeProps<'div', {
252
316
  }>;
253
317
  declare function Stat({ icon, label, value, ...rest }: StatProps): react.JSX.Element;
254
318
 
255
- declare const TONE$4: {
319
+ declare const TONE$8: {
256
320
  readonly brand: "bg-brand-cobalt";
257
321
  readonly success: "bg-brand-emerald";
258
322
  readonly warning: "bg-brand-amber";
259
323
  readonly danger: "bg-brand-crimson";
260
324
  };
325
+ declare const SIZE$9: {
326
+ readonly sm: "h-1";
327
+ readonly md: "h-1.5";
328
+ };
261
329
  type ProgressBarProps = NativeProps<'div', {
262
330
  value: number;
263
331
  max?: number;
264
- tone?: keyof typeof TONE$4;
265
- label: string;
332
+ tone?: keyof typeof TONE$8;
333
+ label: ReactNode;
266
334
  hideLabel?: boolean;
335
+ /** Replaces the computed percentage (e.g. "7 of 12"). */
336
+ valueLabel?: ReactNode;
337
+ caption?: ReactNode;
338
+ size?: keyof typeof SIZE$9;
267
339
  }>;
268
- declare function ProgressBar({ value, max, tone, label, hideLabel, ...rest }: ProgressBarProps): react.JSX.Element;
340
+ declare function ProgressBar({ value, max, tone, label, hideLabel, valueLabel, caption, size, ...rest }: ProgressBarProps): react.JSX.Element;
269
341
 
270
342
  type SectionHeaderProps = NativeProps<'div', {
271
343
  title: ReactNode;
272
344
  level?: 2 | 3;
273
345
  dot?: StatusTone;
274
346
  tag?: ReactNode;
347
+ tagTone?: BadgeTone;
275
348
  meta?: ReactNode;
349
+ description?: ReactNode;
350
+ icon?: string;
351
+ accent?: StatusTone;
352
+ size?: 'sm' | 'md';
276
353
  }>;
277
- declare function SectionHeader({ title, level, dot, tag, meta, ...rest }: SectionHeaderProps): react.JSX.Element;
354
+ declare function SectionHeader({ title, level, dot, tag, tagTone, meta, description, icon, accent, size, ...rest }: SectionHeaderProps): react.JSX.Element;
278
355
 
279
- declare const TONE$3: {
356
+ declare const TONE$7: {
280
357
  readonly danger: "bg-badge-advanced-bg text-badge-advanced-text";
281
358
  readonly info: "bg-badge-intermediate-bg text-badge-intermediate-text";
282
359
  readonly success: "bg-badge-beginner-bg text-badge-beginner-text";
283
360
  readonly warning: "bg-badge-amber-bg text-badge-amber-text";
284
361
  };
362
+ declare const SIZE$8: {
363
+ readonly sm: "gap-space-xs rounded-lg p-space-sm";
364
+ readonly md: "gap-space-sm rounded-xl p-space-md";
365
+ };
285
366
  type CalloutProps = NativeProps<'div', {
286
- tone?: keyof typeof TONE$3;
367
+ tone?: keyof typeof TONE$7;
287
368
  title?: ReactNode;
288
369
  action?: ReactNode;
370
+ /** false for static content (pros/cons): no status/alert role. */
371
+ live?: boolean;
372
+ icon?: string;
373
+ size?: keyof typeof SIZE$8;
374
+ accent?: boolean;
289
375
  children: ReactNode;
290
376
  }>;
291
- declare function Callout({ tone, title, action, children, ...rest }: CalloutProps): react.JSX.Element;
377
+ declare function Callout({ tone, title, action, live, icon, size, accent, children, ...rest }: CalloutProps): react.JSX.Element;
292
378
 
293
379
  declare const STATUS: {
294
380
  readonly pass: {
@@ -301,19 +387,32 @@ declare const STATUS: {
301
387
  readonly tone: "danger";
302
388
  readonly label: "Failed";
303
389
  };
390
+ readonly warning: {
391
+ readonly icon: "warning";
392
+ readonly tone: "warning";
393
+ readonly label: "Warning";
394
+ };
304
395
  readonly pending: {
305
396
  readonly icon: "schedule";
306
397
  readonly tone: "muted";
307
398
  readonly label: "Pending";
308
399
  };
309
400
  };
401
+ declare const VARIANT$2: {
402
+ readonly plain: "py-space-sm";
403
+ readonly boxed: "rounded-lg border border-border-subtle bg-surface-subtle p-space-sm";
404
+ };
310
405
  type ResultRowProps = NativeProps<'div', {
311
406
  status: keyof typeof STATUS;
312
407
  title: ReactNode;
313
408
  detail?: ReactNode;
314
409
  meta?: ReactNode;
410
+ badge?: ReactNode;
411
+ variant?: keyof typeof VARIANT$2;
412
+ selected?: boolean;
413
+ titleMono?: boolean;
315
414
  }>;
316
- declare function ResultRow({ status, title, detail, meta, ...rest }: ResultRowProps): react.JSX.Element;
415
+ declare function ResultRow({ status, title, detail, meta, badge, variant, selected, titleMono, ...rest }: ResultRowProps): react.JSX.Element;
317
416
 
318
417
  type MessageProps = NativeProps<'p', {
319
418
  tone?: 'default' | 'danger';
@@ -322,22 +421,40 @@ type MessageProps = NativeProps<'p', {
322
421
  /** Short loading / error / empty text. Danger announces as an alert. */
323
422
  declare function Message({ tone, children, ...rest }: MessageProps): react.JSX.Element;
324
423
 
424
+ declare const TONE$6: {
425
+ readonly default: {
426
+ readonly tile: "bg-surface-muted text-on-surface-variant";
427
+ readonly text: "text-on-surface-variant";
428
+ };
429
+ readonly danger: {
430
+ readonly tile: "bg-badge-advanced-bg text-badge-advanced-text";
431
+ readonly text: "text-fg-danger";
432
+ };
433
+ };
325
434
  type EmptyStateProps = NativeProps<'div', {
326
435
  icon?: string;
327
436
  title: ReactNode;
328
437
  description?: ReactNode;
329
438
  action?: ReactNode;
439
+ /** Illustration that replaces the icon. */
440
+ media?: ReactNode;
441
+ /** Large mono numeral such as "404"; replaces the icon. */
442
+ code?: string;
443
+ tone?: keyof typeof TONE$6;
330
444
  }>;
331
- declare function EmptyState({ icon, title, description, action, ...rest }: EmptyStateProps): react.JSX.Element;
445
+ declare function EmptyState({ icon, title, description, action, media, code, tone, ...rest }: EmptyStateProps): react.JSX.Element;
332
446
 
333
447
  type CheckListProps = NativeProps<'ul', {
334
448
  items: ReactNode[];
449
+ icon?: string;
450
+ tone?: Tone;
335
451
  children?: never;
336
452
  }>;
337
- declare function CheckList({ items, ...rest }: CheckListProps): react.JSX.Element;
453
+ declare function CheckList({ items, icon, tone, ...rest }: CheckListProps): react.JSX.Element;
338
454
 
339
- declare const TONE$2: {
455
+ declare const TONE$5: {
340
456
  readonly default: "bg-surface-elevated border border-border-subtle text-on-surface";
457
+ readonly subtle: "bg-surface-subtle border border-border-subtle text-on-surface";
341
458
  readonly inverse: "bg-brand-obsidian border border-brand-slate text-on-primary";
342
459
  };
343
460
  declare const PATTERN: {
@@ -350,79 +467,113 @@ declare const ASPECT: {
350
467
  readonly wide: "aspect-[21/9]";
351
468
  readonly square: "aspect-square";
352
469
  };
470
+ declare const HEIGHT$3: {
471
+ readonly sm: "h-30";
472
+ readonly md: "h-35";
473
+ };
474
+ type CardHeaderProps = NativeProps<'div', {
475
+ start?: ReactNode;
476
+ end?: ReactNode;
477
+ children?: ReactNode;
478
+ }>;
353
479
  type CardMediaProps = NativeProps<'div', {
354
480
  pattern?: keyof typeof PATTERN;
355
481
  aspect?: keyof typeof ASPECT;
482
+ /** Fixed height instead of an aspect ratio (120px / 140px). */
483
+ height?: keyof typeof HEIGHT$3;
484
+ caption?: ReactNode;
356
485
  children?: ReactNode;
357
486
  }>;
358
487
  type CardFooterProps = NativeProps<'div', {
359
488
  children: ReactNode;
360
489
  }>;
361
- declare function CardMedia({ pattern, aspect, children, ...rest }: CardMediaProps): react.JSX.Element;
490
+ declare function CardHeader({ start, end, children, ...rest }: CardHeaderProps): react.JSX.Element;
491
+ declare function CardMedia({ pattern, aspect, height, caption, children, ...rest }: CardMediaProps): react.JSX.Element;
362
492
  declare function CardFooter({ children, ...rest }: CardFooterProps): react.JSX.Element;
363
493
  type CardOwnProps = {
364
494
  padding?: Responsive<Space>;
365
495
  interactive?: boolean;
366
- tone?: keyof typeof TONE$2;
496
+ tone?: keyof typeof TONE$5;
497
+ pattern?: keyof typeof PATTERN;
367
498
  children?: ReactNode;
368
499
  };
369
500
  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;
501
+ declare function CardRoot<E extends ElementType = 'div'>({ as, padding, interactive, tone, pattern, children, ...rest }: CardProps<E>): react.JSX.Element;
371
502
  declare const Card: typeof CardRoot & {
503
+ Header: typeof CardHeader;
372
504
  Media: typeof CardMedia;
373
505
  Footer: typeof CardFooter;
374
506
  };
375
507
 
376
- type ButtonVariant = 'primary' | 'secondary' | 'subtle' | 'ghost' | 'danger';
377
- declare const SIZE$3: {
508
+ type ButtonVariant = 'primary' | 'secondary' | 'subtle' | 'ghost' | 'danger' | 'brand' | 'accent';
509
+ declare const SIZE$7: {
378
510
  readonly sm: "h-8 px-space-md";
379
511
  readonly md: "h-10 px-space-lg";
380
512
  readonly lg: "h-12 px-space-lg";
381
513
  };
382
514
  type ButtonOwnProps = {
383
515
  variant?: ButtonVariant;
384
- size?: keyof typeof SIZE$3;
516
+ size?: keyof typeof SIZE$7;
385
517
  icon?: string;
386
518
  iconRight?: string;
519
+ iconTone?: Tone;
520
+ iconFilled?: boolean;
521
+ /** Custom leading content (e.g. a brand logo); replaces `icon`. */
522
+ leading?: ReactNode;
387
523
  fullWidth?: boolean;
388
524
  loading?: boolean;
389
525
  disabled?: boolean;
390
526
  children: ReactNode;
391
527
  };
392
528
  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;
529
+ declare function Button<E extends ElementType = 'button'>({ as, variant, size, icon, iconRight, iconTone, iconFilled, leading, fullWidth, loading, disabled, children, ...rest }: ButtonProps<E>): react.JSX.Element;
394
530
 
395
- declare const VARIANT: {
531
+ declare const VARIANT$1: {
396
532
  readonly ghost: "text-on-surface-variant hover:bg-surface-muted hover:text-on-surface";
397
533
  readonly subtle: "bg-surface-subtle text-on-surface hover:bg-surface-muted";
534
+ readonly secondary: "border border-border-subtle bg-surface-elevated text-on-surface hover:bg-surface-muted";
398
535
  readonly primary: "bg-ink text-on-ink hover:bg-ink-hover";
399
536
  };
400
- declare const SIZE$2: {
537
+ declare const SIZE$6: {
538
+ readonly xs: "size-6";
401
539
  readonly sm: "size-8";
402
540
  readonly md: "size-10";
403
541
  };
404
- type IconButtonProps = NativeProps<'button', {
542
+ type IconButtonOwnProps = {
405
543
  icon: string;
544
+ /** Accessible name and tooltip. Include what `dot`/`badge` mean (e.g. "Notifications, 3 unread"). */
406
545
  label: string;
407
- variant?: keyof typeof VARIANT;
408
- size?: keyof typeof SIZE$2;
546
+ variant?: keyof typeof VARIANT$1;
547
+ size?: keyof typeof SIZE$6;
548
+ dot?: StatusTone;
549
+ badge?: ReactNode;
409
550
  children?: never;
410
- }>;
411
- declare function IconButton({ icon, label, variant, size, type, ...rest }: IconButtonProps): react.JSX.Element;
551
+ };
552
+ type IconButtonProps<E extends ElementType = 'button'> = PolyProps<E, IconButtonOwnProps>;
553
+ declare function IconButton<E extends ElementType = 'button'>({ as, icon, label, variant, size, dot, badge, ...rest }: IconButtonProps<E>): react.JSX.Element;
412
554
 
413
555
  type KbdProps = NativeProps<'kbd', {
414
556
  children: ReactNode;
415
557
  }>;
416
558
  declare function Kbd({ children, ...rest }: KbdProps): react.JSX.Element;
417
559
 
560
+ declare const SIZE$5: {
561
+ readonly sm: "h-8";
562
+ readonly md: "h-10";
563
+ };
418
564
  type TextFieldProps = NativeProps<'input', {
419
565
  label: string;
420
566
  hideLabel?: boolean;
421
567
  icon?: string;
422
568
  hint?: ReactNode;
423
569
  error?: string;
570
+ /** Content at the end of the label row (e.g. a "Forgot password?" link). */
571
+ labelEnd?: ReactNode;
572
+ /** Adds a show/hide toggle for password fields. */
573
+ revealable?: boolean;
574
+ size?: keyof typeof SIZE$5;
424
575
  }>;
425
- declare function TextField({ label, hideLabel, icon, hint, error, id, ...rest }: TextFieldProps): react.JSX.Element;
576
+ declare function TextField({ label, hideLabel, icon, hint, error, labelEnd, revealable, size, id, type, ...rest }: TextFieldProps): react.JSX.Element;
426
577
 
427
578
  type SelectOption = {
428
579
  value: string;
@@ -441,6 +592,7 @@ type TabItem = {
441
592
  id: string;
442
593
  label: ReactNode;
443
594
  count?: number;
595
+ badge?: ReactNode;
444
596
  dot?: StatusTone;
445
597
  href?: string;
446
598
  as?: ElementType;
@@ -464,10 +616,13 @@ type TabPanelProps = NativeProps<'div', {
464
616
  /** Content for the tab whose `panelId` is `id`; hidden (not unmounted) when inactive. */
465
617
  declare function TabPanel({ id, active, children, ...rest }: TabPanelProps): react.JSX.Element;
466
618
 
619
+ /** `hideLabel` shows only the icon; `label` stays the accessible name. */
467
620
  type SegmentedOption = {
468
621
  value: string;
469
622
  label: string;
470
623
  icon?: string;
624
+ hideLabel?: boolean;
625
+ dot?: StatusTone;
471
626
  };
472
627
  type SegmentedControlProps = NativeProps<'div', {
473
628
  label: string;
@@ -478,7 +633,7 @@ type SegmentedControlProps = NativeProps<'div', {
478
633
  }>;
479
634
  declare function SegmentedControl({ label, options, value, onChange, ...rest }: SegmentedControlProps): react.JSX.Element;
480
635
 
481
- declare const SIZE$1: {
636
+ declare const SIZE$4: {
482
637
  readonly sm: "max-w-sm";
483
638
  readonly md: "max-w-md";
484
639
  readonly lg: "max-w-2xl";
@@ -489,7 +644,7 @@ type DialogProps = NativeProps<'div', {
489
644
  title: ReactNode;
490
645
  description?: ReactNode;
491
646
  footer?: ReactNode;
492
- size?: keyof typeof SIZE$1;
647
+ size?: keyof typeof SIZE$4;
493
648
  children?: ReactNode;
494
649
  }>;
495
650
  /** Native props (id, data-*, aria-*) go to the dialog panel. */
@@ -502,7 +657,13 @@ type MenuItem = {
502
657
  href?: string;
503
658
  as?: ElementType;
504
659
  tone?: 'default' | 'danger';
660
+ meta?: ReactNode;
661
+ shortcut?: string;
662
+ };
663
+ type MenuSeparator = {
664
+ type: 'separator';
505
665
  };
666
+ type MenuEntry = MenuItem | MenuSeparator;
506
667
  type MenuTriggerProps = {
507
668
  ref: RefObject<HTMLButtonElement | null>;
508
669
  id: string;
@@ -515,11 +676,14 @@ type MenuTriggerProps = {
515
676
  type MenuProps = NativeProps<'div', {
516
677
  label: string;
517
678
  trigger: (props: MenuTriggerProps) => ReactNode;
518
- items: MenuItem[];
679
+ items: MenuEntry[];
519
680
  align?: 'start' | 'end';
681
+ /** Rendered above the menu items, outside the menu role (e.g. the signed-in user). */
682
+ header?: ReactNode;
683
+ footer?: ReactNode;
520
684
  children?: never;
521
685
  }>;
522
- declare function Menu({ label, trigger, items, align, ...rest }: MenuProps): react.JSX.Element;
686
+ declare function Menu({ label, trigger, items, align, header, footer, ...rest }: MenuProps): react.JSX.Element;
523
687
 
524
688
  type Crumb = {
525
689
  label: string;
@@ -533,7 +697,7 @@ type BreadcrumbsProps = NativeProps<'nav', {
533
697
  }>;
534
698
  declare function Breadcrumbs({ items, label, ...rest }: BreadcrumbsProps): react.JSX.Element;
535
699
 
536
- declare const TONE$1: {
700
+ declare const TONE$4: {
537
701
  readonly default: "";
538
702
  readonly success: string;
539
703
  readonly danger: string;
@@ -542,7 +706,7 @@ declare const TONE$1: {
542
706
  };
543
707
  type StatusItemProps = NativeProps<'span', {
544
708
  icon?: string;
545
- tone?: keyof typeof TONE$1;
709
+ tone?: keyof typeof TONE$4;
546
710
  children: ReactNode;
547
711
  }>;
548
712
  declare function StatusItem({ icon, tone, children, ...rest }: StatusItemProps): react.JSX.Element;
@@ -557,32 +721,52 @@ declare const StatusBar: typeof StatusBarRoot & {
557
721
  Item: typeof StatusItem;
558
722
  };
559
723
 
560
- declare const TONE: {
724
+ declare const TONE$3: {
561
725
  readonly success: "text-fg-success";
562
726
  readonly danger: "text-fg-danger";
727
+ readonly warning: "text-fg-warning";
728
+ readonly brand: "text-fg-brand";
563
729
  readonly neutral: "text-ink";
564
730
  };
565
731
  type MetricTileProps = NativeProps<'div', {
566
732
  label: ReactNode;
567
733
  value: ReactNode;
568
- tone?: keyof typeof TONE;
734
+ tone?: keyof typeof TONE$3;
569
735
  icon?: string;
736
+ hint?: ReactNode;
737
+ hintTone?: Tone;
570
738
  }>;
571
- declare function MetricTile({ label, value, tone, icon, ...rest }: MetricTileProps): react.JSX.Element;
739
+ declare function MetricTile({ label, value, tone, icon, hint, hintTone, ...rest }: MetricTileProps): react.JSX.Element;
572
740
 
573
- declare const SIZE: {
741
+ declare const AVATAR_SIZE: {
574
742
  readonly sm: "size-7 text-[11px]";
575
743
  readonly md: "size-9 text-xs";
576
744
  readonly lg: "size-12 text-sm";
577
745
  };
746
+ declare const SHAPE$2: {
747
+ readonly circle: "rounded-full";
748
+ readonly square: "rounded-lg";
749
+ };
750
+ declare const TONE$2: {
751
+ readonly ink: "bg-ink text-on-ink";
752
+ readonly brand: "bg-brand-cobalt text-white";
753
+ readonly success: "bg-badge-beginner-text text-badge-beginner-bg";
754
+ readonly warning: "bg-badge-amber-text text-badge-amber-bg";
755
+ readonly danger: "bg-badge-advanced-text text-badge-advanced-bg";
756
+ };
578
757
  type AvatarProps = NativeProps<'span', {
579
758
  name: string;
580
759
  src?: string;
581
- size?: keyof typeof SIZE;
760
+ size?: keyof typeof AVATAR_SIZE;
761
+ shape?: keyof typeof SHAPE$2;
762
+ tone?: keyof typeof TONE$2;
582
763
  badge?: ReactNode;
764
+ /** Presence dot at the corner. Pair with `statusLabel` so it isn't colour-only. */
765
+ status?: StatusTone;
766
+ statusLabel?: string;
583
767
  children?: never;
584
768
  }>;
585
- declare function Avatar({ name, src, size, badge, ...rest }: AvatarProps): react.JSX.Element;
769
+ declare function Avatar({ name, src, size, shape, tone, badge, status, statusLabel, ...rest }: AvatarProps): react.JSX.Element;
586
770
 
587
771
  type EditorTab = {
588
772
  id: string;
@@ -617,6 +801,10 @@ type FileNode = {
617
801
  kind: 'file' | 'dir';
618
802
  readOnly?: boolean;
619
803
  modified?: boolean;
804
+ /** Material Symbol overriding the extension icon. */
805
+ icon?: string;
806
+ status?: 'success' | 'warning' | 'danger' | 'info';
807
+ meta?: ReactNode;
620
808
  };
621
809
 
622
810
  type FileTreeProps = NativeProps<'ul', {
@@ -654,4 +842,507 @@ declare const Workbench: typeof WorkbenchRoot & {
654
842
  Toggle: typeof Toggle;
655
843
  };
656
844
 
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 };
845
+ declare const SIDE: {
846
+ readonly left: "left-0 border-r";
847
+ readonly right: "right-0 border-l";
848
+ };
849
+ declare const SIZE$3: {
850
+ readonly sm: "w-[min(85vw,20rem)]";
851
+ readonly md: "w-[min(90vw,28rem)]";
852
+ };
853
+ type DrawerProps = NativeProps<'div', {
854
+ open: boolean;
855
+ onClose: () => void;
856
+ title: ReactNode;
857
+ side?: keyof typeof SIDE;
858
+ size?: keyof typeof SIZE$3;
859
+ children?: ReactNode;
860
+ }>;
861
+ /** Modal slide-over (mobile navigation, side panels). Native props go to the panel. */
862
+ declare function Drawer({ open, onClose, title, side, size, children, ...rest }: DrawerProps): react.ReactPortal | null;
863
+
864
+ declare const TONE$1: {
865
+ readonly brand: "text-fg-brand hover:text-fg-brand-hover";
866
+ readonly default: "text-on-surface hover:text-ink";
867
+ readonly muted: "text-on-surface-variant hover:text-on-surface";
868
+ readonly danger: "text-fg-danger";
869
+ readonly success: "text-fg-success";
870
+ readonly warning: "text-fg-warning";
871
+ };
872
+ declare const SIZE$2: {
873
+ readonly sm: "font-body-sm text-body-sm";
874
+ readonly md: "font-body-md text-body-md";
875
+ };
876
+ declare const UNDERLINE: {
877
+ readonly hover: "underline-offset-2 hover:underline";
878
+ readonly always: "underline underline-offset-2";
879
+ readonly none: "";
880
+ };
881
+ type TextLinkOwnProps = {
882
+ tone?: keyof typeof TONE$1;
883
+ size?: keyof typeof SIZE$2;
884
+ icon?: string;
885
+ iconRight?: string;
886
+ underline?: keyof typeof UNDERLINE;
887
+ children: ReactNode;
888
+ };
889
+ type TextLinkProps<E extends ElementType = 'a'> = PolyProps<E, TextLinkOwnProps>;
890
+ declare function TextLink<E extends ElementType = 'a'>({ as, tone, size, icon, iconRight, underline, children, ...rest }: TextLinkProps<E>): react.JSX.Element;
891
+
892
+ type DividerProps = NativeProps<'div', {
893
+ orientation?: 'horizontal' | 'vertical';
894
+ label?: ReactNode;
895
+ spacing?: Space;
896
+ children?: never;
897
+ }>;
898
+ declare function Divider({ orientation, label, spacing, ...rest }: DividerProps): react.JSX.Element;
899
+
900
+ type IconTileTone = 'neutral' | 'brand' | 'success' | 'warning' | 'danger';
901
+ declare const SIZE$1: {
902
+ readonly sm: "size-8";
903
+ readonly md: "size-10";
904
+ readonly lg: "size-12";
905
+ readonly xl: "size-14";
906
+ };
907
+ declare const SHAPE$1: {
908
+ readonly square: "rounded-lg";
909
+ readonly circle: "rounded-full";
910
+ };
911
+ type IconTileProps = NativeProps<'span', {
912
+ icon: string;
913
+ tone?: IconTileTone;
914
+ size?: keyof typeof SIZE$1;
915
+ shape?: keyof typeof SHAPE$1;
916
+ filled?: boolean;
917
+ label?: string;
918
+ children?: never;
919
+ }>;
920
+ declare function IconTile({ icon, tone, size, shape, filled, label, ...rest }: IconTileProps): react.JSX.Element;
921
+
922
+ type AvatarGroupProps = NativeProps<'div', {
923
+ children: ReactNode;
924
+ max?: number;
925
+ size?: keyof typeof AVATAR_SIZE;
926
+ label?: string;
927
+ }>;
928
+ declare function AvatarGroup({ children, max, size, label, ...rest }: AvatarGroupProps): react.JSX.Element;
929
+
930
+ declare const POSITION: {
931
+ readonly sticky: "sticky top-0";
932
+ readonly fixed: "fixed inset-x-0 top-0";
933
+ readonly static: "relative";
934
+ };
935
+ declare const HEIGHT$2: {
936
+ readonly sm: "h-12";
937
+ readonly md: "h-16";
938
+ };
939
+ type AppBarProps = NativeProps<'header', {
940
+ position?: keyof typeof POSITION;
941
+ start?: ReactNode;
942
+ center?: ReactNode;
943
+ end?: ReactNode;
944
+ blur?: boolean;
945
+ /** md (64px) matches --spacing-appbar, which Split stickyOffset="appbar" clears. */
946
+ height?: keyof typeof HEIGHT$2;
947
+ /** Constrain the content to the 80rem page column. */
948
+ contained?: boolean;
949
+ children?: never;
950
+ }>;
951
+ declare function AppBar({ position, start, center, end, blur, height, contained, ...rest }: AppBarProps): react.JSX.Element;
952
+
953
+ type NavItem = {
954
+ id: string;
955
+ label: ReactNode;
956
+ icon?: string;
957
+ href?: string;
958
+ as?: ElementType;
959
+ count?: ReactNode;
960
+ onSelect?: () => void;
961
+ };
962
+ declare const VARIANT: {
963
+ readonly sidebar: {
964
+ readonly item: "rounded-lg px-space-sm py-space-xs font-body-md text-body-md";
965
+ readonly active: "bg-surface-container-high font-medium text-ink";
966
+ readonly idle: "text-on-surface-variant hover:bg-surface-muted hover:text-on-surface";
967
+ };
968
+ readonly toc: {
969
+ readonly item: "border-l-2 px-space-sm py-space-2xs font-body-sm text-body-sm";
970
+ readonly active: "border-brand-cobalt bg-badge-intermediate-bg font-medium text-badge-intermediate-text";
971
+ readonly idle: "border-transparent text-on-surface-variant hover:border-border-strong hover:text-on-surface";
972
+ };
973
+ };
974
+ type NavListProps = NativeProps<'nav', {
975
+ label: string;
976
+ items: NavItem[];
977
+ current?: string;
978
+ heading?: ReactNode;
979
+ variant?: keyof typeof VARIANT;
980
+ children?: never;
981
+ }>;
982
+ /** Vertical navigation: app sidebar or in-page table of contents. */
983
+ declare function NavList({ label, items, current, heading, variant, ...rest }: NavListProps): react.JSX.Element;
984
+
985
+ /** Page numbers to show: first, last, a window of `siblingCount` around `page`, and gaps. */
986
+ declare function pageRange(page: number, pageCount: number, siblingCount?: number): Array<number | 'gap'>;
987
+ type PaginationProps = NativeProps<'nav', {
988
+ page: number;
989
+ pageCount: number;
990
+ onChange: (page: number) => void;
991
+ siblingCount?: number;
992
+ summary?: ReactNode;
993
+ label?: string;
994
+ children?: never;
995
+ }>;
996
+ /** Below md only the current page and "/ total" show between the arrows. */
997
+ declare function Pagination({ page, pageCount, onChange, siblingCount, summary, label, ...rest }: PaginationProps): react.JSX.Element | null;
998
+
999
+ type TableColumn = {
1000
+ key: string;
1001
+ header: ReactNode;
1002
+ align?: 'start' | 'end';
1003
+ mono?: boolean;
1004
+ width?: 'auto' | 'min';
1005
+ };
1006
+ declare const PAD: {
1007
+ readonly compact: "px-space-sm py-space-xs";
1008
+ readonly normal: "px-space-md py-space-sm";
1009
+ };
1010
+ type TableProps = NativeProps<'div', {
1011
+ caption: string;
1012
+ showCaption?: boolean;
1013
+ columns: TableColumn[];
1014
+ rows: Array<Record<string, ReactNode>>;
1015
+ rowKey?: (row: Record<string, ReactNode>, index: number) => string;
1016
+ density?: keyof typeof PAD;
1017
+ empty?: ReactNode;
1018
+ children?: never;
1019
+ }>;
1020
+ /** Semantic table inside a focusable horizontal scroller, so wide tables never widen the page. */
1021
+ declare function Table({ caption, showCaption, columns, rows, rowKey, density, empty, ...rest }: TableProps): react.JSX.Element;
1022
+
1023
+ declare const LAYOUT: {
1024
+ readonly stacked: "flex flex-col gap-space-sm";
1025
+ readonly inline: "grid grid-cols-1 gap-x-space-md gap-y-space-xs sm:grid-cols-[minmax(0,auto)_minmax(0,1fr)]";
1026
+ };
1027
+ type DescriptionListProps = NativeProps<'dl', {
1028
+ items: Array<{
1029
+ term: ReactNode;
1030
+ detail: ReactNode;
1031
+ }>;
1032
+ /** inline = term and detail side by side from sm. */
1033
+ layout?: keyof typeof LAYOUT;
1034
+ mono?: boolean;
1035
+ children?: never;
1036
+ }>;
1037
+ declare function DescriptionList({ items, layout, mono, ...rest }: DescriptionListProps): react.JSX.Element;
1038
+
1039
+ type TimelineStatus = 'done' | 'current' | 'locked' | 'success' | 'warning' | 'danger' | 'pending';
1040
+ type TimelineItem = {
1041
+ id: string;
1042
+ status: TimelineStatus;
1043
+ title: ReactNode;
1044
+ badge?: ReactNode;
1045
+ description?: ReactNode;
1046
+ meta?: ReactNode;
1047
+ };
1048
+ type TimelineProps = NativeProps<'ol', {
1049
+ label: string;
1050
+ items: TimelineItem[];
1051
+ children?: never;
1052
+ }>;
1053
+ declare function Timeline({ label, items, ...rest }: TimelineProps): react.JSX.Element;
1054
+
1055
+ type DisclosureProps = NativeProps<'div', {
1056
+ /** Button content; keep it free of other interactive elements. */
1057
+ summary: ReactNode;
1058
+ children: ReactNode;
1059
+ open?: boolean;
1060
+ defaultOpen?: boolean;
1061
+ onOpenChange?: (open: boolean) => void;
1062
+ selected?: boolean;
1063
+ variant?: 'plain' | 'row';
1064
+ }>;
1065
+ declare function Disclosure({ summary, children, open, defaultOpen, onOpenChange, selected, variant, ...rest }: DisclosureProps): react.JSX.Element;
1066
+
1067
+ declare const SHAPE: {
1068
+ readonly line: "rounded";
1069
+ readonly pill: "rounded-full";
1070
+ readonly rect: "rounded-xl";
1071
+ readonly circle: "rounded-full aspect-square";
1072
+ };
1073
+ declare const WIDTH: {
1074
+ readonly full: "w-full";
1075
+ readonly '3/4': "w-3/4";
1076
+ readonly '1/2': "w-1/2";
1077
+ readonly '1/3': "w-1/3";
1078
+ readonly '1/4': "w-1/4";
1079
+ };
1080
+ declare const HEIGHT$1: {
1081
+ readonly xs: "h-2";
1082
+ readonly sm: "h-3";
1083
+ readonly md: "h-4";
1084
+ readonly lg: "h-8";
1085
+ readonly xl: "h-24";
1086
+ };
1087
+ type SkeletonProps = NativeProps<'div', {
1088
+ shape?: keyof typeof SHAPE;
1089
+ width?: keyof typeof WIDTH;
1090
+ height?: keyof typeof HEIGHT$1;
1091
+ /** Render n text lines (the last one shorter). */
1092
+ lines?: number;
1093
+ children?: never;
1094
+ }>;
1095
+ /** Loading placeholder. Hidden from assistive tech: pair it with a <Message> saying what is loading. */
1096
+ declare function Skeleton({ shape, width, height, lines, ...rest }: SkeletonProps): react.JSX.Element;
1097
+
1098
+ type TerminalLine = {
1099
+ kind: 'command' | 'plain' | 'error' | 'warning' | 'hint' | 'success';
1100
+ text: string;
1101
+ };
1102
+ declare const MAX: {
1103
+ readonly sm: "max-h-40";
1104
+ readonly md: "max-h-72";
1105
+ readonly lg: "max-h-[32rem]";
1106
+ readonly none: "";
1107
+ };
1108
+ type TerminalOutputProps = NativeProps<'figure', {
1109
+ lines: TerminalLine[];
1110
+ title?: ReactNode;
1111
+ status?: ReactNode;
1112
+ maxHeight?: keyof typeof MAX;
1113
+ children?: never;
1114
+ }>;
1115
+ declare function TerminalOutput({ lines, title, status, maxHeight, ...rest }: TerminalOutputProps): react.JSX.Element;
1116
+
1117
+ declare const TITLE: {
1118
+ readonly success: "text-fg-success";
1119
+ readonly danger: "text-fg-danger";
1120
+ readonly warning: "text-fg-warning";
1121
+ };
1122
+ type VerdictBannerProps = NativeProps<'section', {
1123
+ tone: keyof typeof TITLE;
1124
+ icon: string;
1125
+ title: ReactNode;
1126
+ badge?: ReactNode;
1127
+ meta?: ReactNode[];
1128
+ actions?: ReactNode;
1129
+ children?: never;
1130
+ }>;
1131
+ /** Result hero ("Accepted"): stacks below md, a row from md. */
1132
+ declare function VerdictBanner({ tone, icon, title, badge, meta, actions, ...rest }: VerdictBannerProps): react.JSX.Element;
1133
+
1134
+ type CheckboxProps = NativeProps<'input', {
1135
+ label: ReactNode;
1136
+ description?: ReactNode;
1137
+ /** Strike the label through while checked (task lists). */
1138
+ strikeWhenChecked?: boolean;
1139
+ indeterminate?: boolean;
1140
+ }>;
1141
+ declare function Checkbox({ label, description, strikeWhenChecked, indeterminate, id, ...rest }: CheckboxProps): react.JSX.Element;
1142
+
1143
+ type SwitchProps = NativeProps<'button', {
1144
+ label: string;
1145
+ checked: boolean;
1146
+ onChange: (checked: boolean) => void;
1147
+ description?: ReactNode;
1148
+ children?: never;
1149
+ }>;
1150
+ declare function Switch({ label, checked, onChange, description, ...rest }: SwitchProps): react.JSX.Element;
1151
+
1152
+ type OverlayProps = NativeProps<'div', {
1153
+ children: ReactNode;
1154
+ overlay: ReactNode;
1155
+ blur?: boolean;
1156
+ }>;
1157
+ /** Covers content (e.g. a signed-out gate): covered content is inert and hidden from assistive tech. */
1158
+ declare function Overlay({ children, overlay, blur, ...rest }: OverlayProps): react.JSX.Element;
1159
+
1160
+ type CopyButtonProps = NativeProps<'button', {
1161
+ value: string;
1162
+ label?: string;
1163
+ copiedLabel?: string;
1164
+ size?: 'sm' | 'md';
1165
+ variant?: ButtonVariant;
1166
+ children?: never;
1167
+ }>;
1168
+ /** Copies `value` to the clipboard; shows success or failure for 2s. Never throws. */
1169
+ declare function CopyButton({ value, label, copiedLabel, size, variant, ...rest }: CopyButtonProps): react.JSX.Element;
1170
+
1171
+ type DiffViewerProps = NativeProps<'figure', {
1172
+ oldValue: string;
1173
+ newValue: string;
1174
+ oldTitle?: ReactNode;
1175
+ newTitle?: ReactNode;
1176
+ /** split collapses to unified below lg. */
1177
+ mode?: 'unified' | 'split';
1178
+ children?: never;
1179
+ }>;
1180
+ declare function DiffViewer({ oldValue, newValue, oldTitle, newTitle, mode, ...rest }: DiffViewerProps): react.JSX.Element;
1181
+
1182
+ declare const HEIGHT: {
1183
+ readonly sm: "h-16";
1184
+ readonly md: "h-28";
1185
+ };
1186
+ declare const TONE: {
1187
+ readonly brand: "bg-brand-cobalt";
1188
+ readonly success: "bg-brand-emerald";
1189
+ };
1190
+ type BarChartProps = NativeProps<'figure', {
1191
+ label: string;
1192
+ bars: Array<{
1193
+ value: number;
1194
+ label?: string;
1195
+ }>;
1196
+ highlight?: number;
1197
+ highlightLabel?: string;
1198
+ axis?: [ReactNode, ReactNode, ReactNode];
1199
+ height?: keyof typeof HEIGHT;
1200
+ tone?: keyof typeof TONE;
1201
+ children?: never;
1202
+ }>;
1203
+ /** CSS bar chart; the data is also available as a visually hidden table. */
1204
+ declare function BarChart({ label, bars, highlight, highlightLabel, axis, height, tone, ...rest }: BarChartProps): react.JSX.Element;
1205
+
1206
+ declare const EMPHASIS: {
1207
+ readonly default: "border border-border-strong";
1208
+ readonly brand: "border-2 border-brand-cobalt";
1209
+ readonly strong: "border-2 border-ink";
1210
+ };
1211
+ declare const SIZE: {
1212
+ readonly sm: {
1213
+ readonly text: "text-[11px] leading-4";
1214
+ readonly pad: "px-space-xs py-space-2xs";
1215
+ };
1216
+ readonly md: {
1217
+ readonly text: "text-code-inline";
1218
+ readonly pad: "px-space-sm py-space-xs";
1219
+ };
1220
+ };
1221
+ type UmlClassProps = NativeProps<'div', {
1222
+ name: string;
1223
+ stereotype?: string;
1224
+ attributes?: string[];
1225
+ methods?: string[];
1226
+ tag?: ReactNode;
1227
+ emphasis?: keyof typeof EMPHASIS;
1228
+ size?: keyof typeof SIZE;
1229
+ dashed?: boolean;
1230
+ children?: never;
1231
+ }>;
1232
+ /** UML class box: name compartment, attributes, methods. */
1233
+ declare function UmlClass({ name, stereotype, attributes, methods, tag, emphasis, size, dashed, ...rest }: UmlClassProps): react.JSX.Element;
1234
+
1235
+ type UmlNode = {
1236
+ id: string;
1237
+ name: string;
1238
+ stereotype?: string;
1239
+ attributes?: string[];
1240
+ methods?: string[];
1241
+ tag?: ReactNode;
1242
+ emphasis?: 'default' | 'brand' | 'strong';
1243
+ dashed?: boolean;
1244
+ };
1245
+ type UmlEdgeKind = 'association' | 'dependency' | 'realization' | 'inheritance' | 'aggregation' | 'composition';
1246
+ type UmlEdge = {
1247
+ from: string;
1248
+ to: string;
1249
+ kind: UmlEdgeKind;
1250
+ label?: string;
1251
+ fromMultiplicity?: string;
1252
+ toMultiplicity?: string;
1253
+ };
1254
+ /** Plain-language description of a diagram for screen readers. */
1255
+ declare function describeDiagram(label: string, nodes: UmlNode[], edges: UmlEdge[]): string;
1256
+ type UmlDiagramProps = NativeProps<'figure', {
1257
+ label: string;
1258
+ nodes: UmlNode[];
1259
+ edges: UmlEdge[];
1260
+ direction?: 'TB' | 'LR';
1261
+ zoomable?: boolean;
1262
+ /** Small inline diagram: no zoom controls, scaled to fit the width. */
1263
+ compact?: boolean;
1264
+ pattern?: 'dots' | 'none';
1265
+ children?: never;
1266
+ }>;
1267
+ declare function UmlDiagram({ label, nodes, edges, direction, zoomable, compact, pattern, ...rest }: UmlDiagramProps): react.JSX.Element;
1268
+
1269
+ type TriggerProps = {
1270
+ 'aria-describedby'?: string;
1271
+ onMouseEnter?: (e: MouseEvent) => void;
1272
+ onMouseLeave?: (e: MouseEvent) => void;
1273
+ onFocus?: (e: FocusEvent) => void;
1274
+ onBlur?: (e: FocusEvent) => void;
1275
+ ref?: Ref<HTMLElement>;
1276
+ };
1277
+ type TooltipProps = {
1278
+ content: ReactNode;
1279
+ children: ReactElement<TriggerProps>;
1280
+ side?: 'top' | 'bottom' | 'left' | 'right';
1281
+ delay?: number;
1282
+ };
1283
+ /** Short, non-interactive hint for a trigger. Never put essential information only in a tooltip. */
1284
+ declare function Tooltip({ content, children, side, delay }: TooltipProps): react.JSX.Element;
1285
+
1286
+ type ToastOptions = {
1287
+ title: ReactNode;
1288
+ description?: ReactNode;
1289
+ tone?: 'default' | 'success' | 'danger';
1290
+ action?: ReactNode;
1291
+ duration?: number;
1292
+ };
1293
+ declare function useToast(): {
1294
+ show: (options: ToastOptions) => number;
1295
+ dismiss: (id: number) => void;
1296
+ };
1297
+ type ToasterProps = {
1298
+ label?: string;
1299
+ };
1300
+ /** Mount once at the app root. Bottom-right from md, full width below. */
1301
+ declare function Toaster({ label }: ToasterProps): react.JSX.Element;
1302
+
1303
+ type CommandItem = {
1304
+ id: string;
1305
+ label: ReactNode;
1306
+ icon?: string;
1307
+ meta?: ReactNode;
1308
+ onSelect: () => void;
1309
+ };
1310
+ type CommandGroup = {
1311
+ label: string;
1312
+ items: CommandItem[];
1313
+ };
1314
+ type CommandPaletteProps = NativeProps<'div', {
1315
+ open: boolean;
1316
+ onClose: () => void;
1317
+ query: string;
1318
+ onQueryChange: (query: string) => void;
1319
+ groups: CommandGroup[];
1320
+ placeholder?: string;
1321
+ emptyText?: ReactNode;
1322
+ label?: string;
1323
+ children?: never;
1324
+ }>;
1325
+ /** ⌘K palette: a dialog with an APG combobox over grouped results. The caller filters `groups`. */
1326
+ declare function CommandPalette({ open, onClose, query, onQueryChange, groups, placeholder, emptyText, label, ...rest }: CommandPaletteProps): react.ReactPortal | null;
1327
+
1328
+ declare const ABOVE: {
1329
+ readonly sm: "hidden sm:contents";
1330
+ readonly md: "hidden md:contents";
1331
+ readonly lg: "hidden lg:contents";
1332
+ readonly xl: "hidden xl:contents";
1333
+ };
1334
+ declare const BELOW: {
1335
+ readonly sm: "contents sm:hidden";
1336
+ readonly md: "contents md:hidden";
1337
+ readonly lg: "contents lg:hidden";
1338
+ readonly xl: "contents xl:hidden";
1339
+ };
1340
+ type ShowProps = NativeProps<'div', {
1341
+ above?: keyof typeof ABOVE;
1342
+ below?: keyof typeof BELOW;
1343
+ children: ReactNode;
1344
+ }>;
1345
+ /** Render children only from `above` up, or only below `below`. Uses display: contents, so it adds no box. */
1346
+ declare function Show({ above, below, children, ...rest }: ShowProps): react.JSX.Element;
1347
+
1348
+ export { type Align, AppBar, type AppBarProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, type BadgeTone, BarChart, type BarChartProps, Box, type BoxProps, Breadcrumbs, type BreadcrumbsProps, type Breakpoint, Button, type ButtonProps, type ButtonVariant, Callout, type CalloutProps, Card, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardMedia, type CardMediaProps, type CardProps, CheckList, type CheckListProps, Checkbox, type CheckboxProps, Chip, type ChipProps, Code, CodeBlock, type CodeBlockProps, type CodeProps, type Cols, type CommandGroup, type CommandItem, CommandPalette, type CommandPaletteProps, Container, type ContainerProps, CopyButton, type CopyButtonProps, Countdown, type CountdownProps, type Crumb, DescriptionList, type DescriptionListProps, Dialog, type DialogProps, DiffViewer, type DiffViewerProps, type Direction, Disclosure, type DisclosureProps, Divider, type DividerProps, Dot, type DotProps, Drawer, type DrawerProps, 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, IconTile, type IconTileProps, type IconTileTone, type Justify, Kbd, type KbdProps, Markdown, type MarkdownProps, Menu, type MenuEntry, type MenuItem, type MenuProps, type MenuSeparator, type MenuTriggerProps, Message, type MessageProps, MetricTile, type MetricTileProps, type NavItem, NavList, type NavListProps, Overlay, type OverlayProps, Pagination, type PaginationProps, ProgressBar, type ProgressBarProps, type Responsive, ResultRow, type ResultRowProps, Section, SectionHeader, type SectionHeaderProps, type SectionProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, Select, type SelectOption, type SelectProps, Show, type ShowProps, Skeleton, type SkeletonProps, type Space, Split, type SplitProps, Stack, type StackProps, Stat, type StatProps, StatusBar, type StatusBarProps, type StatusItemProps, type StatusTone, type SurfaceTone, Switch, type SwitchProps, type TabItem, TabPanel, type TabPanelProps, Table, type TableColumn, type TableProps, Tabs, type TabsProps, type TerminalLine, TerminalOutput, type TerminalOutputProps, Text, TextField, type TextFieldProps, TextLink, type TextLinkProps, type TextProps, Theme, type ThemeProps, type ThemeTone, Timeline, type TimelineItem, type TimelineProps, type TimelineStatus, type ToastOptions, Toaster, type ToasterProps, type Tone, Tooltip, type TooltipProps, UmlClass, type UmlClassProps, UmlDiagram, type UmlDiagramProps, type UmlEdge, type UmlEdgeKind, type UmlNode, VerdictBanner, type VerdictBannerProps, Workbench, type WorkbenchLimits, type WorkbenchProps, type WorkbenchSizes, describeDiagram, pageRange, useThemeTone, useToast };