@sanity/ui 5.0.0-alpha.24 → 5.0.0-alpha.26

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 (86) hide show
  1. package/dist/index.d.ts +145 -147
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +256 -179
  4. package/dist/index.js.map +1 -1
  5. package/dist/styles.css +1 -1
  6. package/package.json +1 -1
  7. package/src/components/avatar/avatar.props.ts +4 -2
  8. package/src/components/avatar-counter/avatarCounter.props.ts +4 -2
  9. package/src/components/avatar-stack/avatarStack.props.ts +4 -2
  10. package/src/components/badge/Badge.tsx +2 -5
  11. package/src/components/badge/badge.props.ts +15 -15
  12. package/src/components/box/Box.tsx +2 -5
  13. package/src/components/box/box.props.ts +18 -12
  14. package/src/components/button/Button.tsx +2 -2
  15. package/src/components/button/button.props.ts +49 -43
  16. package/src/components/card/Card.tsx +2 -2
  17. package/src/components/card/card.props.ts +19 -13
  18. package/src/components/checkbox/Checkbox.tsx +3 -2
  19. package/src/components/checkbox/checkbox.props.ts +4 -2
  20. package/src/components/code/code.props.ts +5 -3
  21. package/src/components/container/Container.tsx +2 -2
  22. package/src/components/container/container.props.ts +17 -11
  23. package/src/components/dialog/Dialog.tsx +13 -7
  24. package/src/components/dialog/dialog.props.ts +11 -3
  25. package/src/components/divider/divider.props.ts +4 -2
  26. package/src/components/eyebrow/Eyebrow.tsx +2 -5
  27. package/src/components/eyebrow/eyebrow.props.ts +19 -12
  28. package/src/components/flex/Flex.tsx +2 -5
  29. package/src/components/flex/flex.props.ts +19 -12
  30. package/src/components/grid/Grid.tsx +2 -5
  31. package/src/components/grid/grid.props.ts +20 -16
  32. package/src/components/h-stack/HStack.tsx +2 -5
  33. package/src/components/h-stack/hStack.props.ts +7 -4
  34. package/src/components/heading/Heading.tsx +2 -5
  35. package/src/components/heading/heading.props.ts +18 -13
  36. package/src/components/hotkeys/hotkeys.props.ts +4 -2
  37. package/src/components/icon/icon.props.ts +3 -3
  38. package/src/components/icon-button/IconButton.tsx +2 -4
  39. package/src/components/icon-button/iconButton.props.ts +17 -17
  40. package/src/components/index.css +1 -0
  41. package/src/components/indicator/Indicator.tsx +2 -2
  42. package/src/components/indicator/indicator.props.ts +17 -11
  43. package/src/components/indicator-stack/IndicatorStack.tsx +2 -4
  44. package/src/components/indicator-stack/indicatorStack.props.ts +13 -7
  45. package/src/components/inline/Inline.tsx +2 -2
  46. package/src/components/inline/inline.props.ts +17 -11
  47. package/src/components/kbd/kbd.props.ts +4 -2
  48. package/src/components/link/link.props.ts +4 -2
  49. package/src/components/list/List.tsx +47 -97
  50. package/src/components/list/list.css +28 -9
  51. package/src/components/list/list.props.ts +59 -68
  52. package/src/components/popover/popover.props.ts +7 -5
  53. package/src/components/press-area/PressArea.tsx +2 -4
  54. package/src/components/press-area/press-area.css +9 -3
  55. package/src/components/press-area/pressArea.props.ts +13 -7
  56. package/src/components/radio/radio.props.ts +2 -1
  57. package/src/components/search-input/SearchInput.tsx +90 -0
  58. package/src/components/search-input/search-input.css +125 -0
  59. package/src/components/search-input/searchInput.props.ts +18 -0
  60. package/src/components/select/Select.tsx +6 -1
  61. package/src/components/select/select.css +10 -12
  62. package/src/components/select/select.props.ts +4 -2
  63. package/src/components/skip-to-content/skipToContent.props.ts +4 -2
  64. package/src/components/spinner/spinner.props.ts +4 -2
  65. package/src/components/switch/switch.props.ts +4 -2
  66. package/src/components/tabs/tabs.props.ts +8 -9
  67. package/src/components/text/Text.tsx +2 -5
  68. package/src/components/text/text.props.ts +19 -12
  69. package/src/components/text-area/textArea.props.ts +4 -5
  70. package/src/components/text-input/textInput.props.ts +5 -3
  71. package/src/components/tooltip/tooltip.props.ts +7 -5
  72. package/src/components/tooltip-group/TooltipGroup.tsx +8 -9
  73. package/src/components/tooltip-group/tooltipGroup.props.ts +13 -7
  74. package/src/components/v-stack/VStack.tsx +2 -5
  75. package/src/components/v-stack/vStack.props.ts +7 -4
  76. package/src/components/visually-hidden/VisuallyHidden.tsx +2 -4
  77. package/src/components/visually-hidden/visuallyHidden.props.ts +18 -12
  78. package/src/index.ts +1 -0
  79. package/src/types/Interactive.ts +3 -1
  80. package/src/types/Polymorphic.ts +9 -0
  81. package/src/types/Tone.ts +1 -1
  82. package/src/utils/composeRefs.test.ts +130 -0
  83. package/src/utils/composeRefs.ts +52 -0
  84. package/src/utils/getProps.test.ts +18 -0
  85. package/src/utils/getProps.ts +31 -16
  86. package/src/version.ts +2 -2
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import React$1, { ComponentProps, ComponentPropsWithRef, ElementType, SVGProps } from "react";
1
+ import { ComponentProps, ComponentPropsWithRef, ComponentType, ElementType, HTMLInputTypeAttribute, ReactElement, ReactEventHandler, ReactNode, SVGProps } from "react";
2
2
  declare const AVATAR_SIZE: readonly [0, 1, 2];
3
3
  type AvatarSize = (typeof AVATAR_SIZE)[number];
4
4
  declare const AVATAR_COLOR: readonly ["gray", "purple", "magenta", "red", "orange", "yellow", "green", "cyan"];
@@ -18,7 +18,7 @@ type Responsive<T> = T | [] | ([T | undefined | null, ...(T | undefined | null)[
18
18
  length: 6;
19
19
  });
20
20
  /** @public */
21
- interface AvatarProps extends React.ComponentProps<'figure'> {
21
+ interface AvatarProps extends ComponentProps<'figure'> {
22
22
  /** Avatar color */
23
23
  color?: AvatarColor;
24
24
  /** Avatar name, only first letter will be displayed */
@@ -31,7 +31,7 @@ interface AvatarProps extends React.ComponentProps<'figure'> {
31
31
  /** @public */
32
32
  export declare function Avatar({ color, size, ...props }: AvatarProps): import("react").JSX.Element;
33
33
  /** @public */
34
- interface AvatarCounterProps extends React.ComponentProps<'figure'> {
34
+ interface AvatarCounterProps extends ComponentProps<'figure'> {
35
35
  /** Count */
36
36
  count: number;
37
37
  /** Composite prop for setting height and font size */
@@ -40,7 +40,7 @@ interface AvatarCounterProps extends React.ComponentProps<'figure'> {
40
40
  /** @public */
41
41
  export declare function AvatarCounter({ size, ...props }: AvatarCounterProps): import("react").JSX.Element;
42
42
  /** @public */
43
- interface AvatarStackProps extends React.ComponentProps<'ul'> {
43
+ interface AvatarStackProps extends ComponentProps<'ul'> {
44
44
  /** Max number of avatars to display */
45
45
  maxLength?: number;
46
46
  /** Avatar and AvatarCounter size */
@@ -49,7 +49,7 @@ interface AvatarStackProps extends React.ComponentProps<'ul'> {
49
49
  /** @public */
50
50
  export declare function AvatarStack({ size, ...props }: AvatarStackProps): import("react").JSX.Element;
51
51
  declare const TONE: readonly ["neutral", "positive", "suggest", "caution", "critical"];
52
- declare const TONE_WITH_DEFAULT: string[];
52
+ declare const TONE_WITH_DEFAULT: readonly ["default", "neutral", "positive", "suggest", "caution", "critical"];
53
53
  /** @public */
54
54
  type Tone = (typeof TONE)[number];
55
55
  type ToneWithDefault = (typeof TONE_WITH_DEFAULT)[number];
@@ -59,23 +59,18 @@ type ToneProps = {
59
59
  type ToneWithDefaultProps = {
60
60
  tone?: ToneWithDefault;
61
61
  };
62
+ type Polymorphic<T extends ElementType, Props extends object> = Props & Omit<T extends ((props: infer AsProps, ...args: never) => unknown) ? AsProps : ComponentPropsWithRef<T>, keyof Props>;
62
63
  /** @public */
63
- interface BadgeProps<T extends React.ElementType = 'span'> extends ToneProps {
64
- /**
65
- * HTML element to render.
66
- */
64
+ type BadgeProps<T extends ElementType = 'span'> = Polymorphic<T, ToneProps & {
65
+ /** HTML element to render. */
67
66
  as?: T;
68
- /**
69
- * Shows an icon in the start position (left side in left-to-right languages).
70
- */
71
- iconStart?: React.ElementType | React.ReactNode;
72
- /**
73
- * Sets Badge's text label. Use instead of children unless you have a special use case.
74
- */
67
+ /** Shows an icon in the start position (left side in left-to-right languages). */
68
+ iconStart?: ElementType | ReactNode;
69
+ /** Sets Badge's text label. Use instead of children unless you have a special use case. */
75
70
  text?: string;
76
- }
71
+ }>;
77
72
  /** @public */
78
- export declare function Badge<T extends ElementType = 'span'>({ tone, ...props }: BadgeProps<T> & Omit<ComponentPropsWithRef<T>, keyof BadgeProps<T>>): import("react").JSX.Element;
73
+ export declare function Badge<T extends ElementType = 'span'>({ tone, ...props }: BadgeProps<T>): import("react").JSX.Element;
79
74
  declare const RADIUS: readonly [0, 1, 2, 3, 4, 5, 6, "full"];
80
75
  /** @public */
81
76
  type Radius = (typeof RADIUS)[number];
@@ -228,7 +223,7 @@ declare const DISPLAY_GRID: readonly ["grid", "inline-grid", "none"];
228
223
  /** @public */
229
224
  type DisplayGrid = (typeof DISPLAY_GRID)[number];
230
225
  /** @public */
231
- interface BoxProps<T extends React.ElementType = 'div'> extends LayoutProps {
226
+ type BoxProps<T extends ElementType = 'div'> = Polymorphic<T, LayoutProps & {
232
227
  /**
233
228
  * HTML element or component to render.
234
229
  */
@@ -238,9 +233,9 @@ interface BoxProps<T extends React.ElementType = 'div'> extends LayoutProps {
238
233
  * @remarks Does not include `'flex'` or `'grid'`. Use the Flex or Grid components for those.
239
234
  */
240
235
  display?: Responsive<DisplayBlock>;
241
- }
236
+ }>;
242
237
  /** @public */
243
- export declare function Box<T extends ElementType = 'div'>({ display, ...props }: BoxProps<T> & Omit<ComponentPropsWithRef<T>, keyof BoxProps<T>>): import("react").JSX.Element;
238
+ export declare function Box<T extends ElementType = 'div'>({ display, ...props }: BoxProps<T>): import("react").JSX.Element;
244
239
  declare const BUTTON_DENSITY: readonly ["regular", "loose"];
245
240
  type ButtonDensity = (typeof BUTTON_DENSITY)[number];
246
241
  declare const BUTTON_LEVEL: readonly ["primary", "secondary", "tertiary"];
@@ -249,9 +244,9 @@ declare const BUTTON_TONE: readonly ["neutral", "critical"];
249
244
  type ButtonTone = (typeof BUTTON_TONE)[number];
250
245
  declare const INTERACTIVE_TAG: readonly ["button", "a"];
251
246
  type InteractiveTag = (typeof INTERACTIVE_TAG)[number];
252
- type InteractiveAs<T extends React.ElementType> = T extends InteractiveTag ? T : T extends string ? never : T;
247
+ type InteractiveAs<T extends ElementType> = T extends InteractiveTag ? T : T extends string ? never : T;
253
248
  /** @public */
254
- interface ButtonProps<T extends React.ElementType = 'button'> {
249
+ type ButtonProps<T extends ElementType = 'button'> = Polymorphic<T, {
255
250
  /**
256
251
  * HTML element to render.
257
252
  */
@@ -267,11 +262,11 @@ interface ButtonProps<T extends React.ElementType = 'button'> {
267
262
  /**
268
263
  * Shows an icon in the start position (left side in left-to-right languages).
269
264
  */
270
- iconStart?: React.ElementType | React.ReactNode;
265
+ iconStart?: ElementType | ReactNode;
271
266
  /**
272
267
  * Shows an icon in the end position (right side in left-to-right languages).
273
268
  */
274
- iconEnd?: React.ElementType | React.ReactNode;
269
+ iconEnd?: ElementType | ReactNode;
275
270
  /**
276
271
  * Sets the importance of Button's action.
277
272
  */
@@ -292,14 +287,14 @@ interface ButtonProps<T extends React.ElementType = 'button'> {
292
287
  * Sets Button's semantic meaning and related color.
293
288
  */
294
289
  tone?: ButtonTone;
295
- }
290
+ }>;
296
291
  /** @public */
297
- export declare function Button<T extends ElementType = 'button'>({ density, level, tone, ...props }: ButtonProps<T> & Omit<ComponentPropsWithRef<T>, keyof ButtonProps<T>>): import("react").JSX.Element;
292
+ export declare function Button<T extends ElementType = 'button'>({ density, level, tone, ...props }: ButtonProps<T>): import("react").JSX.Element;
298
293
  declare const DENSITY: readonly ["compact", "regular", "loose"];
299
294
  /** @public */
300
295
  type Density = (typeof DENSITY)[number];
301
296
  /** @public */
302
- interface CardProps<T extends React.ElementType = 'div'> extends MarginProps, ToneWithDefaultProps {
297
+ type CardProps<T extends ElementType = 'div'> = Polymorphic<T, MarginProps & ToneWithDefaultProps & {
303
298
  /**
304
299
  * HTML element or component to render.
305
300
  */
@@ -308,11 +303,11 @@ interface CardProps<T extends React.ElementType = 'div'> extends MarginProps, To
308
303
  * Sets padding, gap, and border-radius together to specify size. This prop is used in place of separate `padding`, `gap`, and `border-radius` props.
309
304
  */
310
305
  density?: Responsive<Density>;
311
- }
306
+ }>;
312
307
  /** @public */
313
- export declare function Card<T extends ElementType = 'div'>({ density, tone, ...props }: CardProps<T> & Omit<ComponentPropsWithRef<T>, keyof CardProps<T>>): import("react").JSX.Element;
308
+ export declare function Card<T extends ElementType = 'div'>({ density, tone, ...props }: CardProps<T>): import("react").JSX.Element;
314
309
  /** @beta */
315
- interface CheckboxProps extends React.ComponentProps<'input'> {
310
+ interface CheckboxProps extends ComponentProps<'input'> {
316
311
  /**
317
312
  * Applies error styling to the checkbox mark for invalid states.
318
313
  * @remarks Use when form validation fails. Pair with a visible error message.
@@ -325,7 +320,7 @@ interface CheckboxProps extends React.ComponentProps<'input'> {
325
320
  indeterminate?: boolean;
326
321
  }
327
322
  /** @beta */
328
- export declare function Checkbox(props: CheckboxProps): import("react").JSX.Element;
323
+ export declare function Checkbox({ ref, ...props }: CheckboxProps): import("react").JSX.Element;
329
324
  declare const FONT_WEIGHT: readonly ["regular", "medium", "semibold", "bold"];
330
325
  /** @public */
331
326
  type FontWeight = (typeof FONT_WEIGHT)[number];
@@ -365,16 +360,16 @@ type CodeProps = (CodeBaseProps & {
365
360
  * @remarks Block code is wrapped in a `<pre>` tag.
366
361
  */
367
362
  inline?: false;
368
- } & Omit<React.ComponentPropsWithRef<'pre'>, keyof CodeBaseProps>) | (CodeBaseProps & {
363
+ } & Omit<ComponentPropsWithRef<'pre'>, keyof CodeBaseProps>) | (CodeBaseProps & {
369
364
  inline: true;
370
- } & Omit<React.ComponentPropsWithRef<'span'>, keyof CodeBaseProps>);
365
+ } & Omit<ComponentPropsWithRef<'span'>, keyof CodeBaseProps>);
371
366
  /** @public */
372
367
  export declare function Code({ size, ...props }: CodeProps): import("react").JSX.Element;
373
368
  declare const CONTAINER_SIZE: readonly [0, 1, 2, 3, 4, 5];
374
369
  /** @public */
375
370
  type ContainerSize = (typeof CONTAINER_SIZE)[number];
376
371
  /** @public */
377
- interface ContainerProps<T extends React.ElementType = 'div'> extends LayoutProps {
372
+ type ContainerProps<T extends ElementType = 'div'> = Polymorphic<T, LayoutProps & {
378
373
  /**
379
374
  * HTML element or component to render.
380
375
  */
@@ -383,11 +378,11 @@ interface ContainerProps<T extends React.ElementType = 'div'> extends LayoutProp
383
378
  * Maximum width of the container.
384
379
  */
385
380
  size?: Responsive<ContainerSize>;
386
- }
381
+ }>;
387
382
  /** @public */
388
- export declare function Container<T extends ElementType = 'div'>({ marginX, size, ...props }: ContainerProps<T> & Omit<ComponentPropsWithRef<T>, keyof ContainerProps<T>>): import("react").JSX.Element;
383
+ export declare function Container<T extends ElementType = 'div'>({ marginX, size, ...props }: ContainerProps<T>): import("react").JSX.Element;
389
384
  /** @beta */
390
- interface DialogProps extends Omit<React.ComponentProps<'dialog'>, 'open'> {
385
+ interface DialogProps extends Omit<ComponentProps<'dialog'>, 'open'> {
391
386
  /**
392
387
  * Text for the dialog heading.
393
388
  * @remarks Recommended for accessibility. The component sets `aria-labelledby` to the heading when you give this prop.
@@ -397,7 +392,7 @@ interface DialogProps extends Omit<React.ComponentProps<'dialog'>, 'open'> {
397
392
  * A function to call alongside the native `close` event.
398
393
  * @remarks Use it to set `open` back to `false`. It runs for every close cause: the Escape key, a backdrop click, the close button, or a programmatic close.
399
394
  */
400
- onClose: React.ReactEventHandler<HTMLDialogElement>;
395
+ onClose: ReactEventHandler<HTMLDialogElement>;
401
396
  /**
402
397
  * Toggles the dialog's open state.
403
398
  * @remarks `true` calls `showModal()` on the element. `false` calls `close()`.
@@ -408,14 +403,18 @@ interface DialogProps extends Omit<React.ComponentProps<'dialog'>, 'open'> {
408
403
  /** CSS length value used to set the Dialog’s distance from the top of the viewport; Dialog is centered if not provided */
409
404
  topAnchor?: string;
410
405
  }
411
- declare function DialogRoot({ open, size, ...props }: DialogProps): import("react").JSX.Element;
406
+ /** @beta */
407
+ interface DialogContentProps extends ComponentProps<'div'> {}
408
+ /** @beta */
409
+ interface DialogFooterProps extends ComponentProps<'div'> {}
410
+ declare function DialogRoot({ open, size, ref, ...props }: DialogProps): import("react").JSX.Element;
412
411
  declare namespace DialogRoot {
413
412
  var displayName: string;
414
413
  var Content: typeof DialogContent;
415
414
  var Footer: typeof DialogFooter;
416
415
  }
417
- declare function DialogContent(props: ComponentProps<'div'>): import("react").JSX.Element;
418
- declare function DialogFooter(props: ComponentProps<'div'>): import("react").JSX.Element;
416
+ declare function DialogContent(props: DialogContentProps): import("react").JSX.Element;
417
+ declare function DialogFooter(props: DialogFooterProps): import("react").JSX.Element;
419
418
  /**
420
419
  * @beta
421
420
  *
@@ -430,14 +429,14 @@ declare function DialogFooter(props: ComponentProps<'div'>): import("react").JSX
430
429
  */
431
430
  export declare const Dialog: typeof DialogRoot;
432
431
  /** @public */
433
- interface DividerProps extends React.ComponentProps<'hr'>, MarginProps {}
432
+ interface DividerProps extends ComponentProps<'hr'>, MarginProps {}
434
433
  /** @public */
435
434
  export declare function Divider(props: DividerProps): import("react").JSX.Element;
436
435
  declare const EYEBROW_SIZE: readonly [0, 1, 2, 3, 4, 5];
437
436
  /** @public */
438
437
  type EyebrowSize = (typeof EYEBROW_SIZE)[number];
439
438
  /** @public */
440
- interface EyebrowProps<T extends React.ElementType = 'span'> extends MarginProps, ToneProps, Omit<TypographyProps, 'weight'> {
439
+ type EyebrowProps<T extends ElementType = 'span'> = Polymorphic<T, MarginProps & ToneProps & Omit<TypographyProps, 'weight'> & {
441
440
  /**
442
441
  * HTML element to render.
443
442
  */
@@ -446,9 +445,9 @@ interface EyebrowProps<T extends React.ElementType = 'span'> extends MarginProps
446
445
  * Sets font size. Uses the same scale as Label.
447
446
  */
448
447
  size?: Responsive<EyebrowSize>;
449
- }
448
+ }>;
450
449
  /** @public */
451
- export declare function Eyebrow<T extends ElementType = 'span'>({ size, ...props }: EyebrowProps<T> & Omit<ComponentPropsWithRef<T>, keyof EyebrowProps<T>>): import("react").JSX.Element;
450
+ export declare function Eyebrow<T extends ElementType = 'span'>({ size, ...props }: EyebrowProps<T>): import("react").JSX.Element;
452
451
  declare const ALIGN_ITEMS: readonly ["baseline", "center", "flex-end", "flex-start", "stretch"];
453
452
  /** @public */
454
453
  type AlignItems = (typeof ALIGN_ITEMS)[number];
@@ -482,7 +481,7 @@ type GapProps = {
482
481
  columnGap?: Responsive<SpaceInherit>;
483
482
  };
484
483
  /** @public */
485
- interface FlexProps<T extends React.ElementType = 'div'> extends FlexParentProps, GapProps, LayoutProps {
484
+ type FlexProps<T extends ElementType = 'div'> = Polymorphic<T, FlexParentProps & GapProps & LayoutProps & {
486
485
  /**
487
486
  * HTML element or component to render.
488
487
  */
@@ -491,9 +490,9 @@ interface FlexProps<T extends React.ElementType = 'div'> extends FlexParentProps
491
490
  * CSS `display` property.
492
491
  */
493
492
  display?: Responsive<DisplayFlex>;
494
- }
493
+ }>;
495
494
  /** @public */
496
- export declare function Flex<T extends ElementType = 'div'>({ display, ...props }: FlexProps<T> & Omit<ComponentPropsWithRef<T>, keyof FlexProps<T>>): import("react").JSX.Element;
495
+ export declare function Flex<T extends ElementType = 'div'>({ display, ...props }: FlexProps<T>): import("react").JSX.Element;
497
496
  declare const GRID_AUTO_FLOW: readonly ["row", "column", "row dense", "column dense", "dense"];
498
497
  /** @public */
499
498
  type GridAutoFlow = (typeof GRID_AUTO_FLOW)[number];
@@ -511,7 +510,7 @@ type GridParentProps = {
511
510
  gridTemplateRows?: Responsive<string>;
512
511
  };
513
512
  /** @public */
514
- interface GridProps<T extends React.ElementType = 'div'> extends Pick<FlexParentProps, 'alignItems' | 'justifyContent'>, GridParentProps, GapProps, LayoutProps {
513
+ type GridProps<T extends ElementType = 'div'> = Polymorphic<T, Pick<FlexParentProps, 'alignItems' | 'justifyContent'> & GridParentProps & GapProps & LayoutProps & {
515
514
  /**
516
515
  * HTML element or component to render.
517
516
  */
@@ -520,34 +519,34 @@ interface GridProps<T extends React.ElementType = 'div'> extends Pick<FlexParent
520
519
  * CSS `display` property.
521
520
  */
522
521
  display?: Responsive<DisplayGrid>;
523
- }
522
+ }>;
524
523
  /** @public */
525
- export declare function Grid<T extends ElementType = 'div'>({ display, ...props }: GridProps<T> & Omit<ComponentPropsWithRef<T>, keyof GridProps<T>>): import("react").JSX.Element;
524
+ export declare function Grid<T extends ElementType = 'div'>({ display, ...props }: GridProps<T>): import("react").JSX.Element;
526
525
  /** @public */
527
- interface HStackProps<T extends React.ElementType = 'div'> extends Pick<FlexProps<T>, 'as' | 'gap'> {}
526
+ type HStackProps<T extends ElementType = 'div'> = Polymorphic<T, Pick<FlexProps<T>, 'as' | 'gap'>>;
528
527
  /** @public */
529
- export declare function HStack<T extends ElementType = 'div'>({ className, ...props }: HStackProps<T> & Omit<ComponentPropsWithRef<T>, keyof HStackProps<T>>): import("react").JSX.Element;
528
+ export declare function HStack<T extends ElementType = 'div'>({ className, ...props }: HStackProps<T>): import("react").JSX.Element;
530
529
  declare const HEADING_TAG: readonly ["h1", "h2", "h3", "h4", "h5", "h6"];
531
530
  type HeadingTag = (typeof HEADING_TAG)[number];
532
531
  declare const HEADING_SIZE: readonly [0, 1, 2, 3, 4, 5];
533
532
  /** @public */
534
533
  type HeadingSize = (typeof HEADING_SIZE)[number];
535
534
  /** @public */
536
- interface HeadingProps extends MarginProps, ToneProps, Omit<TypographyProps, 'muted' | 'weight'> {
535
+ type HeadingProps<T extends HeadingTag = HeadingTag> = Polymorphic<T, MarginProps & ToneProps & Omit<TypographyProps, 'muted' | 'weight'> & {
537
536
  /**
538
537
  * Semantic heading element to render.
539
538
  */
540
- as: HeadingTag;
539
+ as: T;
541
540
  /**
542
541
  * Sets font size.
543
542
  * @remarks Independent of `as`.
544
543
  */
545
544
  size?: Responsive<HeadingSize>;
546
- }
545
+ }>;
547
546
  /** @public */
548
- export declare function Heading<T extends ElementType = 'h2'>({ size, ...props }: HeadingProps & Omit<ComponentPropsWithRef<T>, keyof HeadingProps>): import("react").JSX.Element;
547
+ export declare function Heading<T extends HeadingTag = 'h2'>({ size, ...props }: HeadingProps<T>): import("react").JSX.Element;
549
548
  /** @public */
550
- interface HotkeysProps extends React.ComponentProps<'kbd'> {
549
+ interface HotkeysProps extends ComponentProps<'kbd'> {
551
550
  /**
552
551
  * The keys in the shortcut, in order. Each one renders as a KBD.
553
552
  */
@@ -563,7 +562,7 @@ interface IconProps extends ComponentProps<'svg'>, Pick<TypographyProps, 'muted'
563
562
  /**
564
563
  * The icon component to render.
565
564
  */
566
- icon: React.ComponentType<SVGProps<SVGSVGElement>> | React.ReactElement<SVGProps<SVGSVGElement>>;
565
+ icon: ComponentType<SVGProps<SVGSVGElement>> | ReactElement<SVGProps<SVGSVGElement>>;
567
566
  /**
568
567
  * Sets icon size.
569
568
  */
@@ -572,7 +571,7 @@ interface IconProps extends ComponentProps<'svg'>, Pick<TypographyProps, 'muted'
572
571
  /** @public */
573
572
  export declare function Icon({ icon, size, ...props }: IconProps): import("react").ReactElement<SVGProps<SVGSVGElement>, string | import("react").JSXElementConstructor<any>>;
574
573
  /** @public */
575
- interface IconButtonProps<T extends React$1.ElementType = 'button'> extends Pick<ButtonProps<T>, 'as' | 'density' | 'level' | 'loading' | 'tone'> {
574
+ type IconButtonProps<T extends ElementType = 'button'> = Polymorphic<T, Pick<ButtonProps<T>, 'as' | 'density' | 'level' | 'loading' | 'tone'> & {
576
575
  /**
577
576
  * Accessible name for the button.
578
577
  * @remarks Because IconButtons have no visible text, this is required.
@@ -581,12 +580,12 @@ interface IconButtonProps<T extends React$1.ElementType = 'button'> extends Pick
581
580
  /**
582
581
  * Icon to render.
583
582
  */
584
- 'icon': React$1.ComponentType<SVGProps<SVGSVGElement>>;
585
- }
583
+ 'icon': ComponentType<SVGProps<SVGSVGElement>>;
584
+ }>;
586
585
  /** @public */
587
- export declare function IconButton<T extends ElementType = 'button'>(props: IconButtonProps<T> & Omit<ComponentPropsWithRef<T>, keyof IconButtonProps<T>>): import("react").JSX.Element;
586
+ export declare function IconButton<T extends ElementType = 'button'>(props: IconButtonProps<T>): import("react").JSX.Element;
588
587
  /** @beta */
589
- interface IndicatorProps<T extends React.ElementType = 'span'> extends ToneProps {
588
+ type IndicatorProps<T extends ElementType = 'span'> = Polymorphic<T, ToneProps & {
590
589
  /**
591
590
  * HTML element to render.
592
591
  */
@@ -595,21 +594,21 @@ interface IndicatorProps<T extends React.ElementType = 'span'> extends ToneProps
595
594
  * Accessible label.
596
595
  */
597
596
  label?: string;
598
- }
597
+ }>;
599
598
  /** @beta */
600
- export declare function Indicator<T extends ElementType = 'span'>({ tone, ...props }: IndicatorProps<T> & Omit<ComponentPropsWithRef<T>, keyof IndicatorProps<T>>): import("react").JSX.Element;
599
+ export declare function Indicator<T extends ElementType = 'span'>({ tone, ...props }: IndicatorProps<T>): import("react").JSX.Element;
601
600
  /** @public */
602
- interface IndicatorStackProps<T extends React.ElementType = 'div'> {
601
+ type IndicatorStackProps<T extends ElementType = 'div'> = Polymorphic<T, {
603
602
  /**
604
603
  * HTML element to render.
605
604
  */
606
605
  as?: T;
607
- }
606
+ }>;
608
607
  /** @public */
609
- export declare function IndicatorStack<T extends ElementType = 'div'>(props: IndicatorStackProps<T> & Omit<ComponentPropsWithRef<T>, keyof IndicatorStackProps<T>>): import("react").JSX.Element;
608
+ export declare function IndicatorStack<T extends ElementType = 'div'>(props: IndicatorStackProps<T>): import("react").JSX.Element;
610
609
  /** @deprecated Use HStack component instead */
611
610
  /** @public */
612
- interface InlineProps<T extends React.ElementType = 'div'> extends PaddingProps {
611
+ type InlineProps<T extends ElementType = 'div'> = Polymorphic<T, PaddingProps & {
613
612
  /**
614
613
  * HTML element or component to render.
615
614
  */
@@ -618,12 +617,12 @@ interface InlineProps<T extends React.ElementType = 'div'> extends PaddingProps
618
617
  * Space between children.
619
618
  */
620
619
  gap?: Responsive<SpaceInherit>;
621
- }
620
+ }>;
622
621
  /** @deprecated Use HStack component instead */
623
622
  /** @public */
624
- export declare function Inline<T extends ElementType = 'div'>(props: InlineProps<T> & Omit<ComponentPropsWithRef<T>, keyof InlineProps<T>>): import("react").JSX.Element;
623
+ export declare function Inline<T extends ElementType = 'div'>(props: InlineProps<T>): import("react").JSX.Element;
625
624
  /** @public */
626
- interface KBDProps extends React.ComponentProps<'kbd'> {
625
+ interface KBDProps extends ComponentProps<'kbd'> {
627
626
  /**
628
627
  * Sets KBD's key label.
629
628
  */
@@ -637,7 +636,7 @@ interface KBDProps extends React.ComponentProps<'kbd'> {
637
636
  /** @alpha */
638
637
  export declare function KBD(props: KBDProps): import("react").JSX.Element;
639
638
  /** @beta */
640
- interface LinkProps extends React.ComponentProps<'a'> {
639
+ interface LinkProps extends ComponentProps<'a'> {
641
640
  /**
642
641
  * Sets the link to `target="_blank"` and `rel="noopener noreferrer"`.
643
642
  */
@@ -652,29 +651,16 @@ export declare function Link({ underlined, ...props }: LinkProps): import("react
652
651
  declare const LIST_TAG: readonly ["ol", "ul"];
653
652
  type ListTag = (typeof LIST_TAG)[number];
654
653
  /** @beta */
655
- interface ListProps<T extends ListTag = 'ul'> extends Pick<GapProps, 'gap'> {
654
+ type ListProps<T extends ListTag = 'ul'> = Polymorphic<T, Pick<GapProps, 'gap'> & {
656
655
  /**
657
656
  * HTML element to render.
658
657
  */
659
658
  as?: T;
660
- }
659
+ }>;
661
660
  /** @beta */
662
- interface ListItemProps extends React$1.ComponentProps<'li'> {
663
- /**
664
- * Sets horizontal padding, gap, and minimum row height together.
665
- */
666
- density?: Responsive<Density>;
667
- /**
668
- * Slot at the left edge of the row.
669
- */
670
- start?: React$1.ReactNode;
671
- /**
672
- * Slot at the right edge of the row.
673
- */
674
- end?: React$1.ReactNode;
675
- }
661
+ interface ListItemProps extends ComponentProps<'li'> {}
676
662
  /** @beta */
677
- interface ListButtonItemProps<T extends React$1.ElementType = 'button'> extends ListItemProps {
663
+ type ListItemButtonProps<T extends ElementType = 'button'> = Polymorphic<T, {
678
664
  /**
679
665
  * Element or component to render for the press target.
680
666
  */
@@ -682,37 +668,43 @@ interface ListButtonItemProps<T extends React$1.ElementType = 'button'> extends
682
668
  /**
683
669
  * Marks the row as the current selection.
684
670
  */
685
- selected?: boolean;
686
- }
687
- /** @beta */
688
- interface ListItemTextProps<T extends React$1.ElementType = 'div'> {
671
+ current?: boolean;
689
672
  /**
690
- * HTML element to render.
673
+ * Sets horizontal padding, gap, and minimum row height together.
691
674
  */
692
- as?: T;
675
+ density?: Responsive<Density>;
676
+ /**
677
+ * Slot at the left edge of the row.
678
+ */
679
+ start?: ReactNode;
680
+ /**
681
+ * Slot at the right edge of the row.
682
+ */
683
+ end?: ReactNode;
693
684
  /**
694
685
  * Main label.
695
686
  */
696
- title?: React$1.ReactNode;
687
+ text?: ReactNode;
697
688
  /**
698
689
  * Text below the title.
699
690
  */
700
- subtitle?: React$1.ReactNode;
701
- }
702
- declare function ListRoot<T extends ListTag = 'ul'>(props: ListProps<T> & Omit<ComponentPropsWithRef<T>, keyof ListProps<T>>): import("react").JSX.Element;
691
+ subtext?: ReactNode;
692
+ }>;
693
+ /** @beta */
694
+ interface ListImageProps extends ComponentProps<'img'> {}
695
+ declare function ListRoot<T extends ListTag = 'ul'>(props: ListProps<T>): import("react").JSX.Element;
703
696
  declare namespace ListRoot {
704
697
  var displayName: string;
705
- var Item: typeof ListItem;
706
- var ButtonItem: typeof ListButtonItem;
707
- var ItemText: typeof ListItemText;
708
- var ItemImage: typeof ListItemImage;
709
698
  }
710
- declare function ListItem({ density, ...props }: ListItemProps): import("react").JSX.Element;
711
- declare function ListButtonItem<T extends ElementType = 'button'>({ density, ...props }: ListButtonItemProps<T> & Omit<ComponentPropsWithRef<T>, keyof ListButtonItemProps<T>>): import("react").JSX.Element;
712
- declare function ListItemText<T extends ElementType = 'div'>(props: ListItemTextProps<T> & Omit<ComponentPropsWithRef<T>, keyof ListItemTextProps<T>>): import("react").JSX.Element;
713
- declare function ListItemImage(props: ComponentProps<'img'>): import("react").JSX.Element;
699
+ declare function ListItem({ className, ...rest }: ListItemProps): import("react").JSX.Element;
700
+ declare function ListItemButton<T extends ElementType = 'button'>({ density, ...props }: ListItemButtonProps<T>): import("react").JSX.Element;
701
+ declare function ListItemImage({ className, ...rest }: ListImageProps): import("react").JSX.Element;
714
702
  /** @beta */
715
- export declare const List: typeof ListRoot;
703
+ export declare const List: typeof ListRoot & {
704
+ Item: typeof ListItem;
705
+ ItemButton: typeof ListItemButton;
706
+ ItemImage: typeof ListItemImage;
707
+ };
716
708
  declare const PLACEMENT: readonly ["top", "top-start", "top-end", "right", "right-start", "right-end", "bottom", "bottom-start", "bottom-end", "left", "left-start", "left-end"];
717
709
  /** @public */
718
710
  type Placement = (typeof PLACEMENT)[number];
@@ -722,21 +714,21 @@ type PlacementProps = {
722
714
  placement?: Placement;
723
715
  };
724
716
  /** @beta */
725
- interface PopoverProps extends Omit<React.ComponentProps<'div'>, 'children' | 'content'>, PlacementProps {
717
+ interface PopoverProps extends Omit<ComponentProps<'div'>, 'children' | 'content'>, PlacementProps {
726
718
  /**
727
719
  * Shared anchor identifier.
728
720
  * @remarks Set the same value on a Tooltip and a Popover to point both at one trigger.
729
721
  */
730
- anchorName?: React.ReactNode;
722
+ anchorName?: ReactNode;
731
723
  /**
732
724
  * The trigger element.
733
725
  * @remarks Popover clones it and attaches the `popovertarget` attribute that opens the floating layer.
734
726
  */
735
- children: React.ReactElement<Record<string, unknown>>;
727
+ children: ReactElement<Record<string, unknown>>;
736
728
  /**
737
729
  * The floating content.
738
730
  */
739
- content?: React.ReactNode;
731
+ content?: ReactNode;
740
732
  /**
741
733
  * Removes popover padding.
742
734
  */
@@ -754,16 +746,16 @@ export declare const Popover: typeof PopoverRoot & {
754
746
  forwardsTriggerProps: boolean;
755
747
  };
756
748
  /** @public */
757
- interface PressAreaProps<T extends React.ElementType = 'button'> {
749
+ type PressAreaProps<T extends ElementType = 'button'> = Polymorphic<T, {
758
750
  /**
759
751
  * Element or component to render.
760
752
  */
761
753
  as?: InteractiveAs<T>;
762
- }
754
+ }>;
763
755
  /** @public */
764
- export declare function PressArea<T extends ElementType = 'button'>(props: PressAreaProps<T> & Omit<ComponentPropsWithRef<T>, keyof PressAreaProps<T>>): import("react").JSX.Element;
756
+ export declare function PressArea<T extends ElementType = 'button'>(props: PressAreaProps<T>): import("react").JSX.Element;
765
757
  /** @beta */
766
- interface RadioProps extends React.ComponentProps<'input'> {}
758
+ interface RadioProps extends ComponentProps<'input'> {}
767
759
  /** @beta */
768
760
  export declare function Radio(props: RadioProps): import("react").JSX.Element;
769
761
  declare const FORM_ELEMENT_DENSITY: readonly ["regular", "loose"];
@@ -776,7 +768,7 @@ type FormElementDensityProps = {
776
768
  density?: FormElementDensity;
777
769
  };
778
770
  /** @public */
779
- interface SelectProps extends React.ComponentProps<'select'>, FormElementDensityProps {
771
+ interface SelectProps extends ComponentProps<'select'>, FormElementDensityProps {
780
772
  /**
781
773
  * Used to trigger styling for invalid states.
782
774
  * @remarks Use when form validation fails. Pair with a visible error message.
@@ -786,7 +778,7 @@ interface SelectProps extends React.ComponentProps<'select'>, FormElementDensity
786
778
  /** @public */
787
779
  export declare function Select({ density, hasError, ...props }: SelectProps): import("react").JSX.Element;
788
780
  /** @beta */
789
- interface SkipToContentProps extends React.ComponentProps<'a'> {
781
+ interface SkipToContentProps extends ComponentProps<'a'> {
790
782
  /**
791
783
  * Same-page fragment to jump to.
792
784
  * @remarks Note: The hash character # is required for proper linking.
@@ -805,7 +797,7 @@ interface SkipToContentProps extends React.ComponentProps<'a'> {
805
797
  /** @beta */
806
798
  export declare function SkipToContent(props: SkipToContentProps): import("react").JSX.Element;
807
799
  /** @public */
808
- interface SpinnerProps extends React.ComponentProps<'svg'> {
800
+ interface SpinnerProps extends ComponentProps<'svg'> {
809
801
  /**
810
802
  * Size of the spinner icon.
811
803
  */
@@ -814,7 +806,7 @@ interface SpinnerProps extends React.ComponentProps<'svg'> {
814
806
  /** @public */
815
807
  export declare function Spinner({ size, ...props }: SpinnerProps): import("react").JSX.Element;
816
808
  /** @beta */
817
- interface SwitchProps extends React.ComponentProps<'input'> {
809
+ interface SwitchProps extends ComponentProps<'input'> {
818
810
  /**
819
811
  * Applies error styling to the switch track for invalid states.
820
812
  * @remarks Use when form validation fails. Pair with a visible error message.
@@ -824,7 +816,7 @@ interface SwitchProps extends React.ComponentProps<'input'> {
824
816
  /** @beta */
825
817
  export declare function Switch(props: SwitchProps): import("react").JSX.Element;
826
818
  /** @public */
827
- interface TabsProps extends React.ComponentProps<'div'> {
819
+ interface TabsProps extends ComponentProps<'div'> {
828
820
  /** The `value` of the active Tabs.Tab */
829
821
  value: string;
830
822
  /** An updater function to set `value` - will be invoked with the `value` of the selected Tabs.Tab */
@@ -838,18 +830,18 @@ type TabsListLabelProps = {
838
830
  'aria-labelledby'?: never;
839
831
  };
840
832
  /** @public */
841
- type TabsListProps = Omit<React.ComponentProps<'div'>, 'id' | 'role'> & TabsListLabelProps;
833
+ type TabsListProps = Omit<ComponentProps<'div'>, 'id' | 'role'> & TabsListLabelProps;
842
834
  /** @public */
843
- interface TabProps extends Omit<React.ComponentProps<'button'>, 'aria-disabled' | 'disabled' | 'id' | 'role'>, ToneProps {
835
+ interface TabProps extends Omit<ComponentProps<'button'>, 'aria-disabled' | 'disabled' | 'id' | 'role'>, ToneProps {
844
836
  /** Optional icon for the tab */
845
- icon?: React.ElementType | React.ReactNode;
837
+ icon?: ElementType | ReactNode;
846
838
  /** Text label to display in the tab */
847
839
  label: string;
848
840
  /** Unique string used to identify this tab and its matching Tabs.Panel */
849
841
  value: string;
850
842
  }
851
843
  /** @public */
852
- interface TabsPanelProps extends Omit<React.ComponentProps<'div'>, 'id' | 'role'>, LayoutProps {
844
+ interface TabsPanelProps extends Omit<ComponentProps<'div'>, 'id' | 'role'>, LayoutProps {
853
845
  /** Unique string used to identify this panel and its matching Tabs.Tab */
854
846
  value: string;
855
847
  }
@@ -868,7 +860,7 @@ declare const TEXT_SIZE: readonly [0, 1, 2, 3, 4];
868
860
  /** @public */
869
861
  type TextSize = (typeof TEXT_SIZE)[number];
870
862
  /** @public */
871
- interface TextProps<T extends React.ElementType = 'span'> extends MarginProps, ToneProps, TypographyProps {
863
+ type TextProps<T extends ElementType = 'span'> = Polymorphic<T, MarginProps & ToneProps & TypographyProps & {
872
864
  /**
873
865
  * HTML element to render.
874
866
  */
@@ -877,11 +869,11 @@ interface TextProps<T extends React.ElementType = 'span'> extends MarginProps, T
877
869
  * Sets font size.
878
870
  */
879
871
  size?: Responsive<TextSize>;
880
- }
872
+ }>;
881
873
  /** @public */
882
- export declare function Text<T extends ElementType = 'span'>({ size, ...props }: TextProps<T> & Omit<ComponentPropsWithRef<T>, keyof TextProps<T>>): import("react").JSX.Element;
874
+ export declare function Text<T extends ElementType = 'span'>({ size, ...props }: TextProps<T>): import("react").JSX.Element;
883
875
  /** @public */
884
- interface TextAreaProps extends React.ComponentProps<'textarea'>, FormElementDensityProps, Pick<HeightProps, 'maxHeight'> {
876
+ interface TextAreaProps extends ComponentProps<'textarea'>, FormElementDensityProps, Pick<HeightProps, 'maxHeight'> {
885
877
  /**
886
878
  * Sizes the textarea to its content via the CSS `field-sizing` property.
887
879
  */
@@ -901,9 +893,9 @@ declare const TEXT_INPUT_EXCLUDED_TYPES: readonly ["button", "checkbox", "color"
901
893
  /** @public */
902
894
  type TextInputExcludedTypes = (typeof TEXT_INPUT_EXCLUDED_TYPES)[number];
903
895
  /** @public */
904
- type TextInputType = Exclude<React.HTMLInputTypeAttribute, TextInputExcludedTypes>;
896
+ type TextInputType = Exclude<HTMLInputTypeAttribute, TextInputExcludedTypes>;
905
897
  /** @public */
906
- interface TextInputProps extends Omit<React.ComponentProps<'input'>, 'type'>, FormElementDensityProps {
898
+ interface TextInputProps extends Omit<ComponentProps<'input'>, 'type'>, FormElementDensityProps {
907
899
  /**
908
900
  * Used to trigger styling for invalid states.
909
901
  * @remarks Use when form validation fails. Pair with a visible error message.
@@ -917,19 +909,19 @@ interface TextInputProps extends Omit<React.ComponentProps<'input'>, 'type'>, Fo
917
909
  /** @public */
918
910
  export declare function TextInput({ density, hasError, type, ...props }: TextInputProps): import("react").JSX.Element;
919
911
  /** @beta */
920
- interface TooltipProps extends Omit<React.ComponentProps<'div'>, 'children' | 'content'>, PlacementProps {
912
+ interface TooltipProps extends Omit<ComponentProps<'div'>, 'children' | 'content'>, PlacementProps {
921
913
  /**
922
914
  * Shared anchor identifier.
923
915
  */
924
- anchorName?: React.ReactNode;
916
+ anchorName?: ReactNode;
925
917
  /**
926
918
  * The trigger element.
927
919
  */
928
- children: React.ReactElement<Record<string, unknown>>;
920
+ children: ReactElement<Record<string, unknown>>;
929
921
  /**
930
922
  * The tooltip label.
931
923
  */
932
- content?: React.ReactNode;
924
+ content?: ReactNode;
933
925
  /**
934
926
  * Renders the label into `document.body` through a React portal instead of inline.
935
927
  */
@@ -941,20 +933,20 @@ declare function TooltipRoot({ placement, ...props }: TooltipProps & {
941
933
  /** @beta */
942
934
  export declare const Tooltip: typeof TooltipRoot;
943
935
  /** @public */
944
- interface TooltipGroupProps<T extends React.ElementType = 'div'> {
936
+ type TooltipGroupProps<T extends ElementType = 'div'> = Polymorphic<T, {
945
937
  /**
946
938
  * HTML element to render.
947
939
  */
948
940
  as?: T;
949
- }
941
+ }>;
950
942
  /** @public */
951
- export declare function TooltipGroup<T extends ElementType = 'div'>(props: TooltipGroupProps<T> & Omit<ComponentPropsWithRef<T>, keyof TooltipGroupProps<T>>): import("react").JSX.Element;
943
+ export declare function TooltipGroup<T extends ElementType = 'div'>(props: TooltipGroupProps<T>): import("react").JSX.Element;
952
944
  /** @public */
953
- interface VStackProps<T extends React.ElementType = 'div'> extends Pick<FlexProps<T>, 'as' | 'gap'> {}
945
+ type VStackProps<T extends ElementType = 'div'> = Polymorphic<T, Pick<FlexProps<T>, 'as' | 'gap'>>;
954
946
  /** @public */
955
- export declare function VStack<T extends ElementType = 'div'>({ className, ...props }: VStackProps<T> & Omit<ComponentPropsWithRef<T>, keyof VStackProps<T>>): import("react").JSX.Element;
947
+ export declare function VStack<T extends ElementType = 'div'>({ className, ...props }: VStackProps<T>): import("react").JSX.Element;
956
948
  /** @public */
957
- interface VisuallyHiddenProps<T extends React.ElementType = 'span'> {
949
+ type VisuallyHiddenProps<T extends ElementType = 'span'> = Polymorphic<T, {
958
950
  /**
959
951
  * HTML element to render.
960
952
  */
@@ -963,10 +955,16 @@ interface VisuallyHiddenProps<T extends React.ElementType = 'span'> {
963
955
  * If true, the element becomes visible on `:focus-visible`.
964
956
  */
965
957
  visibleOnFocus?: boolean;
966
- }
958
+ }>;
967
959
  /** @public */
968
- export declare function VisuallyHidden<T extends ElementType = 'span'>(props: VisuallyHiddenProps<T> & Omit<ComponentPropsWithRef<T>, keyof VisuallyHiddenProps<T>>): import("react").JSX.Element;
960
+ export declare function VisuallyHidden<T extends ElementType = 'span'>(props: VisuallyHiddenProps<T>): import("react").JSX.Element;
969
961
  /** @public */
970
962
  export declare function useIsClient(): boolean;
971
- export type { AlignItems, AvatarCounterProps, AvatarProps, AvatarStackProps, BadgeProps, BoxProps, ButtonProps, CardProps, CheckboxProps, CodeProps, CodeSize, ContainerProps, ContainerSize, Density, DialogProps, DisplayBlock, DisplayFlex, DisplayGrid, DividerProps, EyebrowProps, EyebrowSize, FlexDirection, FlexParentProps, FlexProps, FlexWrap, FontWeight, GapProps, GridAutoFlow, GridParentProps, GridProps, HStackProps, HeadingProps, HeadingSize, HotkeysProps, IconButtonProps, IconProps, IconSize, IndicatorProps, IndicatorStackProps, InlineProps, JustifyContent, KBDProps, LayoutProps, LinkProps, ListButtonItemProps, ListItemProps, ListItemTextProps, ListProps, MarginProps, Overflow, PaddingProps, Placement, PlacementProps, PopoverProps, Position, PressAreaProps, RadioProps, Radius, Responsive, SelectProps, Shadow, SkipToContentProps, Space, SpaceAuto, SpaceAutoNegative, SpaceInherit, SpinnerProps, SwitchProps, TabProps, TabsListProps, TabsPanelProps, TabsProps, TextAlign, TextAreaProps, TextInputProps, TextProps, TextSize, Tone, TooltipGroupProps, TooltipProps, TypographyProps, VStackProps, VisuallyHiddenProps };
963
+ /** @public */
964
+ interface SearchInputProps extends FormElementDensityProps, Omit<ComponentProps<'input'>, 'type'> {
965
+ loading?: boolean;
966
+ }
967
+ /** @public */
968
+ export declare function SearchInput({ density, loading, placeholder, ref, ...props }: SearchInputProps): import("react").JSX.Element;
969
+ export type { AlignItems, AvatarCounterProps, AvatarProps, AvatarStackProps, BadgeProps, BoxProps, ButtonProps, CardProps, CheckboxProps, CodeProps, CodeSize, ContainerProps, ContainerSize, Density, DialogContentProps, DialogFooterProps, DialogProps, DisplayBlock, DisplayFlex, DisplayGrid, DividerProps, EyebrowProps, EyebrowSize, FlexDirection, FlexParentProps, FlexProps, FlexWrap, FontWeight, GapProps, GridAutoFlow, GridParentProps, GridProps, HStackProps, HeadingProps, HeadingSize, HotkeysProps, IconButtonProps, IconProps, IconSize, IndicatorProps, IndicatorStackProps, InlineProps, JustifyContent, KBDProps, LayoutProps, LinkProps, ListImageProps, ListItemButtonProps, ListItemProps, ListProps, MarginProps, Overflow, PaddingProps, Placement, PlacementProps, PopoverProps, Position, PressAreaProps, RadioProps, Radius, Responsive, SearchInputProps, SelectProps, Shadow, SkipToContentProps, Space, SpaceAuto, SpaceAutoNegative, SpaceInherit, SpinnerProps, SwitchProps, TabProps, TabsListProps, TabsPanelProps, TabsProps, TextAlign, TextAreaProps, TextInputProps, TextProps, TextSize, Tone, TooltipGroupProps, TooltipProps, TypographyProps, VStackProps, VisuallyHiddenProps };
972
970
  //# sourceMappingURL=index.d.ts.map