@sanity/ui 4.0.0-next.3 → 4.0.0-next.5

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 (97) hide show
  1. package/README.md +4 -0
  2. package/dist/_system-CTe2lb5l.d.ts +40 -0
  3. package/dist/_system-CTe2lb5l.d.ts.map +1 -0
  4. package/dist/arrow-BG0EMNiC.js +159 -0
  5. package/dist/arrow-BG0EMNiC.js.map +1 -0
  6. package/dist/autocomplete.d.ts +140 -0
  7. package/dist/autocomplete.d.ts.map +1 -0
  8. package/dist/autocomplete.js +468 -0
  9. package/dist/autocomplete.js.map +1 -0
  10. package/dist/breadcrumbs.d.ts +18 -0
  11. package/dist/breadcrumbs.d.ts.map +1 -0
  12. package/dist/breadcrumbs.js +112 -0
  13. package/dist/breadcrumbs.js.map +1 -0
  14. package/dist/button-BzoZs3Sl.d.ts +76 -0
  15. package/dist/button-BzoZs3Sl.d.ts.map +1 -0
  16. package/dist/button-DZkAQOL2.js +174 -0
  17. package/dist/button-DZkAQOL2.js.map +1 -0
  18. package/dist/card-C0a0wQTc.d.ts +7 -0
  19. package/dist/card-C0a0wQTc.d.ts.map +1 -0
  20. package/dist/code.d.ts +20 -0
  21. package/dist/code.d.ts.map +1 -0
  22. package/dist/code.js +85 -0
  23. package/dist/code.js.map +1 -0
  24. package/dist/codeFontStyle-DYUujk7K.js +11 -0
  25. package/dist/codeFontStyle-DYUujk7K.js.map +1 -0
  26. package/dist/component-DVlwaWB-.d.ts +25 -0
  27. package/dist/component-DVlwaWB-.d.ts.map +1 -0
  28. package/dist/element-BYgCE_iK.js +51 -0
  29. package/dist/element-BYgCE_iK.js.map +1 -0
  30. package/dist/{getScopedTheme-CqaSCfTH.js → factory-CvRcEQ36.js} +6 -753
  31. package/dist/factory-CvRcEQ36.js.map +1 -0
  32. package/dist/flex-BYRpBTOc.js +69 -0
  33. package/dist/flex-BYRpBTOc.js.map +1 -0
  34. package/dist/font-EtfxKPUz.d.ts +49 -0
  35. package/dist/font-EtfxKPUz.d.ts.map +1 -0
  36. package/dist/getElementRef-5HZQ-Owu.js +91 -0
  37. package/dist/getElementRef-5HZQ-Owu.js.map +1 -0
  38. package/dist/getScopedTheme-C-sZsyAz.js +267 -0
  39. package/dist/getScopedTheme-C-sZsyAz.js.map +1 -0
  40. package/dist/getTheme_v2-y09KqtEb.js +487 -0
  41. package/dist/getTheme_v2-y09KqtEb.js.map +1 -0
  42. package/dist/grid-D88j-N7f.js +108 -0
  43. package/dist/grid-D88j-N7f.js.map +1 -0
  44. package/dist/helpers-bwfx1e-Y.js +67 -0
  45. package/dist/helpers-bwfx1e-Y.js.map +1 -0
  46. package/dist/hotkeys-B08HIKNu.js +145 -0
  47. package/dist/hotkeys-B08HIKNu.js.map +1 -0
  48. package/dist/index.d.ts +139 -926
  49. package/dist/index.d.ts.map +1 -1
  50. package/dist/index.js +421 -4686
  51. package/dist/index.js.map +1 -1
  52. package/dist/layer-BQfdK7rt.d.ts +242 -0
  53. package/dist/layer-BQfdK7rt.d.ts.map +1 -0
  54. package/dist/layer-BdkSGATt.js +56 -0
  55. package/dist/layer-BdkSGATt.js.map +1 -0
  56. package/dist/menu.d.ts +146 -0
  57. package/dist/menu.d.ts.map +1 -0
  58. package/dist/menu.js +602 -0
  59. package/dist/menu.js.map +1 -0
  60. package/dist/popover-DmmmSNzL.d.ts +96 -0
  61. package/dist/popover-DmmmSNzL.d.ts.map +1 -0
  62. package/dist/popover-Iy6EZEmv.js +406 -0
  63. package/dist/popover-Iy6EZEmv.js.map +1 -0
  64. package/dist/popover.d.ts +2 -0
  65. package/dist/popover.js +3 -0
  66. package/dist/responsiveFont-hN1mZFjm.js +55 -0
  67. package/dist/responsiveFont-hN1mZFjm.js.map +1 -0
  68. package/dist/{rgba-LmTDhX0u.d.ts → rgba-BSYaEUW6.d.ts} +4 -87
  69. package/dist/rgba-BSYaEUW6.d.ts.map +1 -0
  70. package/dist/selectable-B0GUIL74.d.ts +7 -0
  71. package/dist/selectable-B0GUIL74.d.ts.map +1 -0
  72. package/dist/stack-C5WV-BRh.js +98 -0
  73. package/dist/stack-C5WV-BRh.js.map +1 -0
  74. package/dist/styles.css +1 -0
  75. package/dist/textInput-IbiDH7Jc.js +315 -0
  76. package/dist/textInput-IbiDH7Jc.js.map +1 -0
  77. package/dist/theme.d.ts +3 -1
  78. package/dist/theme.d.ts.map +1 -1
  79. package/dist/theme.js +3 -1
  80. package/dist/theme.js.map +1 -1
  81. package/dist/toast.d.ts +73 -0
  82. package/dist/toast.d.ts.map +1 -0
  83. package/dist/toast.js +297 -0
  84. package/dist/toast.js.map +1 -0
  85. package/dist/tooltip.d.ts +88 -0
  86. package/dist/tooltip.d.ts.map +1 -0
  87. package/dist/tooltip.js +432 -0
  88. package/dist/tooltip.js.map +1 -0
  89. package/dist/useClickOutsideEvent-lEVhDFCQ.js +36 -0
  90. package/dist/useClickOutsideEvent-lEVhDFCQ.js.map +1 -0
  91. package/dist/useElementSize-BJvbGHq8.js +51 -0
  92. package/dist/useElementSize-BJvbGHq8.js.map +1 -0
  93. package/dist/useLayer-9Pz-GG0r.js +704 -0
  94. package/dist/useLayer-9Pz-GG0r.js.map +1 -0
  95. package/package.json +15 -4
  96. package/dist/getScopedTheme-CqaSCfTH.js.map +0 -1
  97. package/dist/rgba-LmTDhX0u.d.ts.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,5 +1,12 @@
1
- import { A as ThemeColorMutedTone, At as ThemeColorSchemeKey$1, B as ThemeColorBase, C as ThemeColorSpotKey, Ct as ThemeColorSyntax$1, D as ThemeColorSelectableState, Dt as ThemeColorCardToneKey, E as ThemeColorSelectable, Et as ThemeColorButtonModeKey$1, F as ThemeColorCardState, H as ThemeColorToneKey, Ht as HSL$1, I as ThemeColorButton, L as ThemeColorButtonState, M as ThemeColorInputState, Mt as ThemeColorStateToneKey, N as ThemeColorInputStates, O as ThemeColorSelectableStates, P as ThemeColorCard, R as ThemeColorButtonStates, S as ThemeColorSpot, St as ThemeFonts$1, T as ThemeColorSolidTone, U as ThemeColorGenericState, Ut as RGB$1, V as ThemeColorName, W as ThemeAvatar, _ as Theme_v2, _t as ThemeFont$1, a as rgbToHex$1, b as ThemeColorScheme, bt as ThemeFontWeight$1, c as screen$1, d as ThemeColorBuilderOpts, f as createColorTheme$1, ft as ThemeStyles, g as Theme$1, gt as ThemeLayer$1, ht as ThemeShadow$1, i as hslToRgb$1, j as ThemeColorInput, k as ThemeColorMuted, l as multiply$1, m as RootTheme$1, mt as ThemeBoxShadow, n as parseColor$1, o as rgbToHsl$1, p as BaseTheme$1, pt as CSSObject, r as hexToRgb$1, t as rgba$1, u as PartialThemeColorBuilderOpts, v as ThemeInput, vt as ThemeFontKey$1, w as ThemeColorSolid, wt as ThemeColorAvatarColorKey, x as ThemeColorSchemes, xt as ThemeFontWeightKey$1, y as ThemeColor, yt as ThemeFontSize$1, z as ThemeColorButtonTones } from "./rgba-LmTDhX0u.js";
2
- import { Component, ElementType as ElementType$1, HTMLProps, PropsWithChildren, ReactNode, Ref } from "react";
1
+ import { a as Props, i as EmptyProps, n as ComponentType, o as TagType, r as ElementType, t as Assign } from "./component-DVlwaWB-.js";
2
+ import { A as FlexWrap, C as GridAutoCols, D as FlexDirection, E as FlexAlign, M as BoxHeight, N as BoxOverflow, O as FlexJustify, P as BoxSizing, S as GridItemRowStart, T as GridAutoRows, _ as GridItemColumn, a as ResponsiveBorderProps, b as GridItemRow, c as ResponsiveFlexProps, d as ResponsiveMarginProps, f as ResponsivePaddingProps, g as Radius, h as ResponsiveWidthProps, i as Delay, j as BoxDisplay, k as FlexValue, l as ResponsiveGridItemProps, m as ResponsiveShadowProps, n as LayerProps, o as ResponsiveBoxProps, p as ResponsiveRadiusProps, r as Placement, s as ResponsiveFlexItemProps, t as Layer, u as ResponsiveGridProps, v as GridItemColumnEnd, w as GridAutoFlow, x as GridItemRowEnd, y as GridItemColumnStart } from "./layer-BQfdK7rt.js";
3
+ import { a as ButtonTextAlign, c as Box, i as ButtonMode, l as BoxOwnProps, n as ButtonOwnProps, o as ButtonTone, r as ButtonProps, s as ButtonWidth, t as Button, u as BoxProps } from "./button-BzoZs3Sl.js";
4
+ import { i as ThemeColorCardToneKey, l as ThemeColorStateToneKey, r as ThemeColorButtonModeKey$1, s as ThemeColorSchemeKey$1, t as ThemeColorAvatarColorKey } from "./_system-CTe2lb5l.js";
5
+ import { t as CardTone } from "./card-C0a0wQTc.js";
6
+ import { a as ThemeFontWeightKey$1, i as ThemeFontWeight$1, n as ThemeFontKey$1, o as ThemeFonts$1, r as ThemeFontSize$1, t as ThemeFont$1 } from "./font-EtfxKPUz.js";
7
+ import { A as ThemeColorMutedTone, B as ThemeColorBase, C as ThemeColorSpotKey, D as ThemeColorSelectableState, E as ThemeColorSelectable, F as ThemeColorCardState, H as ThemeColorToneKey, I as ThemeColorButton, L as ThemeColorButtonState, M as ThemeColorInputState, N as ThemeColorInputStates, O as ThemeColorSelectableStates, P as ThemeColorCard, R as ThemeColorButtonStates, S as ThemeColorSpot, T as ThemeColorSolidTone, U as ThemeColorGenericState, V as ThemeColorName, W as ThemeAvatar, _ as Theme_v2, _t as ThemeColorSyntax$1, a as rgbToHex$1, b as ThemeColorScheme, c as screen$1, d as ThemeColorBuilderOpts, f as createColorTheme$1, ft as ThemeStyles, g as Theme$1, gt as ThemeLayer$1, ht as ThemeShadow$1, i as hslToRgb$1, j as ThemeColorInput, k as ThemeColorMuted, l as multiply$1, m as RootTheme$1, mt as ThemeBoxShadow, n as parseColor$1, o as rgbToHsl$1, p as BaseTheme$1, pt as CSSObject, r as hexToRgb$1, t as rgba$1, u as PartialThemeColorBuilderOpts, v as ThemeInput, vt as HSL$1, w as ThemeColorSolid, x as ThemeColorSchemes, y as ThemeColor, yt as RGB$1, z as ThemeColorButtonTones } from "./rgba-BSYaEUW6.js";
8
+ import { t as SelectableTone } from "./selectable-B0GUIL74.js";
9
+ import { Component, HTMLProps, PropsWithChildren } from "react";
3
10
  /**
4
11
  * @public
5
12
  * @deprecated Use `BaseTheme` from `@sanity/ui/theme` instead.
@@ -140,585 +147,6 @@ declare const screen: typeof screen$1;
140
147
  * @deprecated Use `buildTheme` from `@sanity/ui/theme` instead.
141
148
  */
142
149
  declare const studioTheme: BaseTheme$1;
143
- /**
144
- * Assign properties from `U` to `T`, excluding properties that already exist in `T`.
145
- *
146
- * @public
147
- */
148
- type Assign<T extends object, U extends object> = Omit<T, keyof U> & U;
149
- /** @public */
150
- type EmptyProps = object;
151
- /** @public */
152
- type TagType = keyof React.JSX.IntrinsicElements;
153
- /** @public */
154
- type ComponentType<P = any> = React.FunctionComponent<P> | React.ComponentClass<P> | React.ExoticComponent<P>;
155
- /** @public */
156
- type ElementType<P = any> = TagType | ComponentType<P>;
157
- /**
158
- * Resolves the props of a polymorphic component: the props of the element/component passed to `as`
159
- * (defaulting to the component's own element), with the component's own props assigned on top.
160
- *
161
- * @public
162
- */
163
- type Props<P extends EmptyProps, E extends ElementType<P>> = Assign<E extends TagType ? React.JSX.IntrinsicElements[E] : React.ComponentProps<E>, P & {
164
- as?: E;
165
- }>;
166
- /**
167
- * @public
168
- */
169
- type BoxSizing = 'content' | 'border';
170
- /**
171
- * @public
172
- */
173
- type BoxDisplay = 'none' | 'block' | 'grid' | 'flex' | 'inline-block';
174
- /**
175
- * @public
176
- */
177
- type BoxHeight = 'stretch' | 'fill';
178
- /**
179
- * @public
180
- */
181
- type BoxOverflow = 'visible' | 'hidden' | 'auto';
182
- /**
183
- * @public
184
- */
185
- type FlexAlign = 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
186
- /**
187
- * @public
188
- */
189
- type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
190
- /**
191
- * @public
192
- */
193
- type FlexJustify = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
194
- /**
195
- * @public
196
- */
197
- type FlexValue = number | 'none' | 'auto' | 'initial';
198
- /**
199
- * @public
200
- */
201
- type FlexWrap = 'wrap' | 'wrap-reverse' | 'nowrap';
202
- /**
203
- * @public
204
- */
205
- type GridAutoRows = 'auto' | 'min' | 'max' | 'fr';
206
- /**
207
- * @public
208
- */
209
- type GridAutoCols = 'auto' | 'min' | 'max' | 'fr';
210
- /**
211
- * @public
212
- */
213
- type GridAutoFlow = 'row' | 'column' | 'row dense' | 'column dense';
214
- /**
215
- * @public
216
- */
217
- type GridItemColumn = 'auto' | 'full' | number;
218
- /**
219
- * @public
220
- */
221
- type GridItemColumnStart = 'auto' | number;
222
- /**
223
- * @public
224
- */
225
- type GridItemColumnEnd = 'auto' | number;
226
- /**
227
- * @public
228
- */
229
- type GridItemRow = 'auto' | 'full' | number;
230
- /**
231
- * @public
232
- */
233
- type GridItemRowStart = 'auto' | number;
234
- /**
235
- * @public
236
- */
237
- type GridItemRowEnd = 'auto' | number;
238
- /**
239
- * @public
240
- */
241
- type Radius = number | 'full';
242
- /**
243
- * @public
244
- */
245
- interface ResponsiveBorderProps {
246
- border?: boolean | boolean[];
247
- borderTop?: boolean | boolean[];
248
- borderRight?: boolean | boolean[];
249
- borderBottom?: boolean | boolean[];
250
- borderLeft?: boolean | boolean[];
251
- }
252
- /**
253
- * @public
254
- */
255
- interface ResponsiveBoxProps {
256
- display?: BoxDisplay | BoxDisplay[];
257
- height?: BoxHeight | BoxHeight[];
258
- overflow?: BoxOverflow | BoxOverflow[];
259
- sizing?: BoxSizing | BoxSizing[];
260
- }
261
- /**
262
- * @public
263
- */
264
- interface ResponsiveFlexProps {
265
- align?: FlexAlign | FlexAlign[];
266
- direction?: FlexDirection | FlexDirection[];
267
- justify?: FlexJustify | FlexJustify[];
268
- wrap?: FlexWrap | FlexWrap[];
269
- }
270
- /**
271
- * @public
272
- */
273
- interface ResponsiveFlexItemProps {
274
- /** Sets the flex CSS attribute. The property is responsive. */
275
- flex?: FlexValue | FlexValue[];
276
- }
277
- /**
278
- * @public
279
- */
280
- interface ResponsiveGridProps {
281
- autoRows?: GridAutoRows | GridAutoRows[];
282
- autoCols?: GridAutoCols | GridAutoCols[];
283
- autoFlow?: GridAutoFlow | GridAutoFlow[];
284
- /**
285
- * @deprecated Use `gridTemplateColumns` instead.
286
- */
287
- columns?: never;
288
- gridTemplateColumns?: number | number[];
289
- gap?: number | number[];
290
- gapX?: number | number[];
291
- gapY?: number | number[];
292
- /**
293
- * @deprecated Use `gridTemplateRows` instead.
294
- */
295
- rows?: never;
296
- gridTemplateRows?: number | number[];
297
- }
298
- /**
299
- * @public
300
- */
301
- interface ResponsiveGridItemProps {
302
- gridColumn?: GridItemColumn | GridItemColumn[];
303
- /**
304
- * @deprecated Use `gridColumn` instead.
305
- */
306
- column?: never;
307
- gridColumnStart?: GridItemColumnStart | GridItemColumnStart[];
308
- /**
309
- * @deprecated Use `gridColumnStart` instead.
310
- */
311
- columnStart?: never;
312
- gridColumnEnd?: GridItemColumnEnd | GridItemColumnEnd[];
313
- /**
314
- * @deprecated Use `gridColumnEnd` instead.
315
- */
316
- columnEnd?: never;
317
- gridRow?: GridItemRow | GridItemRow[];
318
- /**
319
- * @deprecated Use `gridRow` instead.
320
- */
321
- row?: never;
322
- gridRowStart?: GridItemRowStart | GridItemRowStart[];
323
- /**
324
- * @deprecated Use `gridRowStart` instead.
325
- */
326
- rowStart?: never;
327
- gridRowEnd?: GridItemRowEnd | GridItemRowEnd[];
328
- /**
329
- * @deprecated Use `gridRowEnd` instead.
330
- */
331
- rowEnd?: never;
332
- }
333
- /**
334
- * @public
335
- */
336
- interface ResponsiveMarginProps {
337
- /** Applies margins to all sides. The property is responsive. */
338
- margin?: number | number[];
339
- /** Applies margins to the left and right sides. The property is responsive. */
340
- marginX?: number | number[];
341
- /** Applies margins to the top and bottom sides. The property is responsive. */
342
- marginY?: number | number[];
343
- marginTop?: number | number[];
344
- marginRight?: number | number[];
345
- marginBottom?: number | number[];
346
- marginLeft?: number | number[];
347
- }
348
- /**
349
- * @public
350
- */
351
- interface ResponsivePaddingProps {
352
- padding?: number | number[];
353
- paddingX?: number | number[];
354
- paddingY?: number | number[];
355
- paddingTop?: number | number[];
356
- paddingRight?: number | number[];
357
- paddingBottom?: number | number[];
358
- paddingLeft?: number | number[];
359
- }
360
- /**
361
- * @public
362
- */
363
- interface ResponsiveRadiusProps {
364
- radius?: Radius | Radius[];
365
- }
366
- /**
367
- * @public
368
- */
369
- interface ResponsiveShadowProps {
370
- shadow?: number | number[];
371
- }
372
- /**
373
- * @public
374
- */
375
- interface ResponsiveWidthProps {
376
- width?: number | 'auto' | (number | 'auto')[];
377
- }
378
- /**
379
- * @public
380
- */
381
- type Delay = number | Partial<{
382
- open: number;
383
- close: number;
384
- }>;
385
- /**
386
- * The props that `Box` adds on top of the element it renders as.
387
- *
388
- * @public
389
- */
390
- interface BoxOwnProps extends ResponsiveFlexItemProps, ResponsiveBoxProps, ResponsiveGridItemProps, ResponsiveMarginProps, ResponsivePaddingProps {
391
- forwardedAs?: ElementType;
392
- }
393
- /**
394
- * @public
395
- */
396
- type BoxProps<E extends ElementType = 'div'> = Props<BoxOwnProps, E>;
397
- /**
398
- * The `Box` component is a basic layout wrapper component which provides utility properties
399
- * for flex, margins and padding.
400
- *
401
- * @public
402
- */
403
- declare const Box: <E extends ElementType = 'div'>(props: BoxProps<E>) => React.JSX.Element;
404
- /**
405
- * @public
406
- */
407
- type CardTone = ThemeColorCardToneKey | 'inherit';
408
- /**
409
- * Placement of floating UI elements.
410
- *
411
- * @public
412
- */
413
- type Placement = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
414
- /**
415
- * @beta
416
- */
417
- type PopoverMargins = [number, number, number, number];
418
- /**
419
- * @public
420
- */
421
- interface LayerProps {
422
- as?: React.ElementType | keyof React.JSX.IntrinsicElements;
423
- /** A callback that fires when the layer becomes the top layer when it was not the top layer before. */
424
- onActivate?: (props: {
425
- activeElement: HTMLElement | null;
426
- }) => void;
427
- zOffset?: number | number[];
428
- }
429
- /**
430
- * @public
431
- */
432
- declare const Layer: import("react").ForwardRefExoticComponent<Omit<LayerProps & Omit<import("react").HTMLProps<HTMLDivElement>, "as">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
433
- /** @beta */
434
- type PopoverUpdateCallback = () => void;
435
- /** @public */
436
- type PopoverWidth = number | 'auto';
437
- /** @public */
438
- interface PopoverProps extends Omit<LayerProps, 'as'>, ResponsiveRadiusProps, ResponsiveShadowProps {
439
- /** @beta */
440
- __unstable_margins?: PopoverMargins;
441
- /**
442
- * Whether the popover should animate in and out.
443
- *
444
- * @beta
445
- * @defaultValue false
446
- */
447
- animate?: boolean;
448
- arrow?: boolean;
449
- /** @deprecated Use `floatingBoundary` and/or `referenceBoundary` instead */
450
- boundaryElement?: never;
451
- children?: React.JSX.Element;
452
- /**
453
- * When `true`, prevent overflow within the current boundary:
454
- * - by flipping on its side axis
455
- * - by resizing
456
- /*
457
- * Note that:
458
- * - setting `preventOverflow` to `true` also prevents overflow on its side axis
459
- * - setting `matchReferenceWidth` to `true` also causes the popover to resize
460
- *
461
- * @defaultValue false
462
- */
463
- constrainSize?: boolean;
464
- content?: React.ReactNode;
465
- disabled?: boolean;
466
- fallbackPlacements?: Placement[];
467
- floatingBoundary?: HTMLElement | null;
468
- /**
469
- * When `true`, set the maximum width to match the reference element, and also prevent overflow within
470
- * the current boundary by resizing.
471
- *
472
- * Note that setting `constrainSize` to `true` also causes the popover to resize
473
- *
474
- * @defaultValue false
475
- */
476
- matchReferenceWidth?: boolean;
477
- /**
478
- * When true, blocks all pointer interaction with elements beneath the popover until closed.
479
- *
480
- * @beta
481
- * @defaultValue false
482
- */
483
- modal?: boolean;
484
- open?: boolean;
485
- overflow?: BoxOverflow;
486
- padding?: number | number[];
487
- placement?: Placement;
488
- /**
489
- * When 'flip' (default), the placement is determined from the initial placement and the
490
- * fallback placements in order. Whichever fits in the viewport first.
491
- *
492
- * When 'autoPlacement', the initial placement and all fallback placements are evaluated
493
- * and the placement with the most viewport space available.
494
- *
495
- * Option is only relevant if either `constrainSize` or `preventOverflow` is `true`
496
- */
497
- placementStrategy?: 'flip' | 'autoPlacement';
498
- /** Whether or not to render the popover in a portal element. */
499
- portal?: boolean | string;
500
- preventOverflow?: boolean;
501
- referenceBoundary?: HTMLElement | null;
502
- /**
503
- * When defined, the popover will be positioned relative to this element.
504
- * The children of the popover won't be rendered.
505
- */
506
- referenceElement?: HTMLElement | null;
507
- scheme?: ThemeColorSchemeKey$1;
508
- tone?: CardTone;
509
- /** @beta */
510
- updateRef?: Ref<PopoverUpdateCallback | undefined>;
511
- width?: PopoverWidth | PopoverWidth[];
512
- }
513
- /**
514
- * The `Popover` component is used to display some content on top of another.
515
- *
516
- * @public
517
- */
518
- declare const Popover: import("react").ForwardRefExoticComponent<Omit<PopoverProps & Omit<import("react").HTMLProps<HTMLDivElement>, "as" | "children" | "content" | "width">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
519
- /**
520
- * @public
521
- */
522
- type ButtonMode = ThemeColorButtonModeKey$1;
523
- /**
524
- * @public
525
- */
526
- type ButtonTextAlign = 'left' | 'right' | 'center';
527
- /**
528
- * @public
529
- */
530
- type ButtonTone = ThemeColorStateToneKey;
531
- /**
532
- * @public
533
- */
534
- type ButtonWidth = 'fill';
535
- /**
536
- * @public
537
- */
538
- interface ButtonOwnProps extends ResponsivePaddingProps, ResponsiveRadiusProps {
539
- fontSize?: number | number[];
540
- mode?: ButtonMode;
541
- icon?: React.ElementType | React.ReactNode;
542
- iconRight?: React.ElementType | React.ReactNode;
543
- justify?: FlexJustify | FlexJustify[];
544
- /**
545
- * @beta Do not use in production, as this might change.
546
- */
547
- loading?: boolean;
548
- selected?: boolean;
549
- /**
550
- * @deprecated Use `gap` instead.
551
- */
552
- space?: never;
553
- gap?: number | number[];
554
- muted?: boolean;
555
- text?: React.ReactNode;
556
- textAlign?: ButtonTextAlign;
557
- textWeight?: ThemeFontWeightKey$1;
558
- tone?: ButtonTone;
559
- type?: 'button' | 'reset' | 'submit';
560
- width?: ButtonWidth;
561
- }
562
- /**
563
- * @public
564
- */
565
- type ButtonProps<E extends ElementType = 'button'> = Props<ButtonOwnProps, E>;
566
- /**
567
- * @public
568
- */
569
- declare const Button: <E extends ElementType = 'button'>(props: ButtonProps<E>) => React.JSX.Element;
570
- /**
571
- * @public
572
- */
573
- type AutocompleteOpenButtonProps = ButtonOwnProps & Omit<React.HTMLProps<HTMLButtonElement>, 'as' | 'ref'>;
574
- /**
575
- * @public
576
- */
577
- interface BaseAutocompleteOption {
578
- value: string;
579
- }
580
- /**
581
- * @internal
582
- */
583
- interface AutocompleteState {
584
- activeValue: string | null;
585
- focused: boolean;
586
- listFocused: boolean;
587
- query: string | null;
588
- value: string | null;
589
- }
590
- /**
591
- * @internal
592
- */
593
- interface AutocompleteRootBlurMsg {
594
- type: 'root/blur';
595
- }
596
- /**
597
- * @internal
598
- */
599
- interface AutocompleteRootClearMsg {
600
- type: 'root/clear';
601
- }
602
- /**
603
- * @internal
604
- */
605
- interface AutocompleteRootEscapeMsg {
606
- type: 'root/escape';
607
- }
608
- /**
609
- * @internal
610
- */
611
- interface AutocompleteRootOpenMsg {
612
- type: 'root/open';
613
- query: string | null;
614
- }
615
- /**
616
- * @internal
617
- */
618
- interface AutocompleteRootSetActiveValueMsg {
619
- type: 'root/setActiveValue';
620
- value: string;
621
- listFocused?: boolean;
622
- }
623
- /**
624
- * @internal
625
- */
626
- interface AutocompleteRootSetListFocusedMsg {
627
- type: 'root/setListFocused';
628
- listFocused: boolean;
629
- }
630
- /**
631
- * @internal
632
- */
633
- interface AutocompleteInputChangeMsg {
634
- type: 'input/change';
635
- query: string | null;
636
- }
637
- /**
638
- * @internal
639
- */
640
- interface AutocompleteInputFoocusMsg {
641
- type: 'input/focus';
642
- }
643
- /**
644
- * @internal
645
- */
646
- interface AutocompleteValueChangeMsg {
647
- type: 'value/change';
648
- value: string | null;
649
- }
650
- /**
651
- * @internal
652
- */
653
- type AutocompleteMsg = AutocompleteRootBlurMsg | AutocompleteRootClearMsg | AutocompleteRootEscapeMsg | AutocompleteRootOpenMsg | AutocompleteRootSetActiveValueMsg | AutocompleteRootSetListFocusedMsg | AutocompleteInputChangeMsg | AutocompleteInputFoocusMsg | AutocompleteValueChangeMsg;
654
- /**
655
- * @public
656
- */
657
- interface AutocompleteProps<Option extends BaseAutocompleteOption = BaseAutocompleteOption> {
658
- border?: boolean;
659
- customValidity?: string;
660
- filterOption?: (query: string, option: Option) => boolean;
661
- fontSize?: number | number[];
662
- icon?: ElementType$1 | ReactNode;
663
- id: string;
664
- /** @beta */
665
- listBox?: BoxProps;
666
- loading?: boolean;
667
- onChange?: (value: string) => void;
668
- onQueryChange?: (query: string | null) => void;
669
- onSelect?: (value: string) => void;
670
- /** @beta */
671
- openButton?: boolean | AutocompleteOpenButtonProps;
672
- /** @beta */
673
- openOnFocus?: boolean;
674
- /** The options to render. */
675
- options?: Option[];
676
- padding?: number | number[];
677
- popover?: Omit<PopoverProps, 'content' | 'onMouseEnter' | 'onMouseLeave' | 'open'> & Omit<HTMLProps<HTMLDivElement>, 'as' | 'children' | 'content' | 'ref' | 'width'>;
678
- prefix?: ReactNode;
679
- radius?: Radius | Radius[];
680
- /** @beta */
681
- relatedElements?: HTMLElement[];
682
- /** The callback function for rendering each option. */
683
- renderOption?: (option: Option) => React.JSX.Element;
684
- /** @beta */
685
- renderPopover?: (props: {
686
- content: React.JSX.Element | null;
687
- hidden: boolean;
688
- inputElement: HTMLInputElement | null;
689
- onMouseEnter: () => void;
690
- onMouseLeave: () => void;
691
- }, ref: Ref<HTMLDivElement>) => ReactNode;
692
- renderValue?: (value: string, option?: Option) => string;
693
- suffix?: ReactNode;
694
- /** The current value. */
695
- value?: string;
696
- }
697
- /**
698
- * The Autocomplete component is typically used for search components.
699
- * It consists of a text input for writing a query, and properties for rendering suggestions.
700
- *
701
- * @public
702
- */
703
- declare const Autocomplete: <Option extends BaseAutocompleteOption>(props: AutocompleteProps<Option> & Omit<HTMLProps<HTMLInputElement>, 'aria-activedescendant' | 'aria-autocomplete' | 'aria-expanded' | 'aria-owns' | 'as' | 'autoCapitalize' | 'autoComplete' | 'autoCorrect' | 'id' | 'inputMode' | 'onChange' | 'onSelect' | 'popover' | 'prefix' | 'ref' | 'role' | 'spellCheck' | 'type' | 'value'> & {
704
- ref?: Ref<HTMLInputElement>;
705
- }) => React.JSX.Element;
706
- /**
707
- * @beta
708
- */
709
- interface BreadcrumbsProps {
710
- maxLength?: number;
711
- separator?: React.ReactNode;
712
- gap?: number | number[];
713
- /**
714
- * @deprecated Use `gap` instead.
715
- */
716
- space?: never;
717
- }
718
- /**
719
- * @beta
720
- */
721
- declare const Breadcrumbs: import("react").ForwardRefExoticComponent<BreadcrumbsProps & Omit<import("react").HTMLProps<HTMLOListElement>, "as" | "ref" | "type"> & import("react").RefAttributes<HTMLOListElement>>;
722
150
  /**
723
151
  * @public
724
152
  */
@@ -762,7 +190,7 @@ interface DialogProps extends ResponsivePaddingProps, ResponsiveWidthProps {
762
190
  *
763
191
  * @public
764
192
  */
765
- declare const Dialog: import("react").ForwardRefExoticComponent<Omit<DialogProps & Omit<import("react").HTMLProps<HTMLDivElement>, "as" | "id" | "width">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
193
+ declare const Dialog: (props: DialogProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'id' | 'width'>) => import("react").JSX.Element;
766
194
  /**
767
195
  * This API might change. DO NOT USE IN PRODUCTION.
768
196
  * @beta
@@ -814,150 +242,7 @@ interface HotkeysProps {
814
242
  *
815
243
  * @public
816
244
  */
817
- declare const Hotkeys: import("react").ForwardRefExoticComponent<HotkeysProps & Omit<import("react").HTMLProps<HTMLElement>, "as" | "ref" | "size"> & import("react").RefAttributes<HTMLElement>>;
818
- /**
819
- * @public
820
- */
821
- interface MenuProps extends ResponsivePaddingProps {
822
- /**
823
- * @deprecated Use `shouldFocus="first"` instead.
824
- */
825
- 'focusFirst'?: never;
826
- /**
827
- * @deprecated Use `shouldFocus="last"` instead.
828
- */
829
- 'focusLast'?: never;
830
- 'onClickOutside'?: (event: MouseEvent) => void;
831
- 'onEscape'?: () => void;
832
- 'onItemClick'?: () => void;
833
- 'onItemSelect'?: (index: number) => void;
834
- 'originElement'?: HTMLElement | null;
835
- 'registerElement'?: (el: HTMLElement) => () => void;
836
- 'shouldFocus'?: 'first' | 'last' | null;
837
- 'gap'?: number | number[];
838
- /**
839
- * @deprecated Use `gap` instead.
840
- */
841
- 'space'?: never;
842
- 'aria-labelledby'?: string;
843
- 'onBlurCapture'?: (event: FocusEvent) => void;
844
- }
845
- /**
846
- * The `Menu` component is a building block for application menus.
847
- *
848
- * @public
849
- */
850
- declare const Menu: import("react").ForwardRefExoticComponent<Omit<MenuProps & Omit<import("react").HTMLProps<HTMLDivElement>, "as" | "height" | "role" | "tabIndex">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
851
- /**
852
- * @public
853
- */
854
- interface MenuButtonProps {
855
- /**
856
- * @beta Do not use in production.
857
- */
858
- __unstable_disableRestoreFocusOnClose?: boolean;
859
- /**
860
- * @deprecated Use `popover={{boundaryElement: element}}` instead.
861
- */
862
- boundaryElement?: never;
863
- button: React.JSX.Element;
864
- id: string;
865
- menu?: React.JSX.Element;
866
- onClose?: () => void;
867
- onOpen?: () => void;
868
- /**
869
- * @deprecated Use `popover={{placement: 'top'}}` instead.
870
- */
871
- placement?: never;
872
- popover?: Omit<PopoverProps, 'content' | 'open'>;
873
- /**
874
- * @deprecated Use `popover={{scheme: 'dark'}}` instead.
875
- */
876
- popoverScheme?: never;
877
- /**
878
- * @deprecated Use `popover={{radius: 2}}` instead.
879
- */
880
- popoverRadius?: never;
881
- /**
882
- * @beta Do not use in production.
883
- * @deprecated Use `popover={{portal: true}}` instead.
884
- */
885
- portal?: never;
886
- /**
887
- * @deprecated Use `popover={{preventOverflow: true}}` instead.
888
- */
889
- preventOverflow?: never;
890
- }
891
- /**
892
- * The `MenuButton` component follows the WAI-ARIA specification for menu buttons.
893
- *
894
- * @public
895
- */
896
- declare const MenuButton: import("react").ForwardRefExoticComponent<MenuButtonProps & import("react").RefAttributes<HTMLButtonElement | null>>;
897
- /**
898
- * @public
899
- */
900
- type MenuDividerProps<E extends ElementType = 'hr'> = Props<EmptyProps, E>;
901
- /**
902
- * @public
903
- */
904
- declare const MenuDivider: <E extends ElementType = 'hr'>(props: MenuDividerProps<E>) => React.JSX.Element;
905
- /**
906
- * @public
907
- */
908
- type SelectableTone = ThemeColorStateToneKey;
909
- /**
910
- * @public
911
- */
912
- interface MenuGroupOwnProps {
913
- fontSize?: number | number[];
914
- icon?: React.ElementType | React.ReactNode;
915
- menu?: Omit<MenuProps, 'onClickOutside' | 'onEscape' | 'onItemClick' | 'onKeyDown' | 'onMouseEnter' | 'registerElement' | 'shouldFocus' | 'onBlurCapture'>;
916
- padding?: number | number[];
917
- popover?: Omit<PopoverProps, 'content' | 'open'>;
918
- radius?: Radius | Radius[];
919
- gap?: number | number[];
920
- /**
921
- * @deprecated Use `gap` instead.
922
- */
923
- space?: never;
924
- text: React.ReactNode;
925
- tone?: SelectableTone;
926
- }
927
- /**
928
- * @public
929
- */
930
- type MenuGroupProps<E extends ElementType = 'button'> = Props<MenuGroupOwnProps, E>;
931
- /**
932
- * @public
933
- */
934
- declare const MenuGroup: <E extends ElementType = 'button'>(props: MenuGroupProps<E>) => React.JSX.Element;
935
- /**
936
- * @public
937
- */
938
- interface MenuItemOwnProps extends ResponsivePaddingProps, ResponsiveRadiusProps {
939
- fontSize?: number | number[];
940
- hotkeys?: string[];
941
- icon?: React.ElementType | React.ReactNode;
942
- iconRight?: React.ElementType | React.ReactNode;
943
- pressed?: boolean;
944
- selected?: boolean;
945
- gap?: number | number[];
946
- /**
947
- * @deprecated Use `gap` instead.
948
- */
949
- space?: never;
950
- text?: React.ReactNode;
951
- tone?: SelectableTone;
952
- }
953
- /**
954
- * @public
955
- */
956
- type MenuItemProps<E extends ElementType = 'button'> = Props<MenuItemOwnProps, E>;
957
- /**
958
- * @public
959
- */
960
- declare const MenuItem: <E extends ElementType = 'button'>(props: MenuItemProps<E>) => React.JSX.Element;
245
+ declare const Hotkeys: (props: HotkeysProps & Omit<React.HTMLProps<HTMLElement>, 'as' | 'size'>) => import("react").JSX.Element;
961
246
  /**
962
247
  * This API might change. DO NOT USE IN PRODUCTION.
963
248
  * @beta
@@ -970,7 +255,7 @@ interface SkeletonProps extends ResponsiveRadiusProps, Omit<BoxOwnProps, 'childr
970
255
  * This API might change. DO NOT USE IN PRODUCTION.
971
256
  * @beta
972
257
  */
973
- declare const Skeleton: import("react").ForwardRefExoticComponent<Omit<SkeletonProps & Omit<import("react").HTMLProps<HTMLDivElement>, "height">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
258
+ declare const Skeleton: (props: SkeletonProps & Omit<React.HTMLProps<HTMLDivElement>, 'height'>) => import("react").JSX.Element;
974
259
  /**
975
260
  * This API might change. DO NOT USE IN PRODUCTION.
976
261
  * @beta
@@ -1003,22 +288,22 @@ interface CodeSkeletonProps extends SkeletonProps {
1003
288
  * This API might change. DO NOT USE IN PRODUCTION.
1004
289
  * @beta
1005
290
  */
1006
- declare const TextSkeleton: import("react").ForwardRefExoticComponent<Omit<TextSkeletonProps & Omit<import("react").HTMLProps<HTMLDivElement>, "as" | "children" | "height" | "size">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
291
+ declare const TextSkeleton: (props: TextSkeletonProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'children' | 'height' | 'size'>) => import("react").JSX.Element;
1007
292
  /**
1008
293
  * This API might change. DO NOT USE IN PRODUCTION.
1009
294
  * @beta
1010
295
  */
1011
- declare const LabelSkeleton: import("react").ForwardRefExoticComponent<Omit<LabelSkeletonProps & Omit<import("react").HTMLProps<HTMLDivElement>, "as" | "children" | "height" | "size">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
296
+ declare const LabelSkeleton: (props: LabelSkeletonProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'children' | 'height' | 'size'>) => import("react").JSX.Element;
1012
297
  /**
1013
298
  * This API might change. DO NOT USE IN PRODUCTION.
1014
299
  * @beta
1015
300
  */
1016
- declare const HeadingSkeleton: import("react").ForwardRefExoticComponent<Omit<HeadingSkeletonProps & Omit<import("react").HTMLProps<HTMLDivElement>, "as" | "children" | "height" | "size">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
301
+ declare const HeadingSkeleton: (props: HeadingSkeletonProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'children' | 'height' | 'size'>) => import("react").JSX.Element;
1017
302
  /**
1018
303
  * This API might change. DO NOT USE IN PRODUCTION.
1019
304
  * @beta
1020
305
  */
1021
- declare const CodeSkeleton: import("react").ForwardRefExoticComponent<Omit<CodeSkeletonProps & Omit<import("react").HTMLProps<HTMLDivElement>, "as" | "children" | "height" | "size">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
306
+ declare const CodeSkeleton: (props: CodeSkeletonProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'children' | 'height' | 'size'>) => import("react").JSX.Element;
1022
307
  /**
1023
308
  * @public
1024
309
  */
@@ -1039,7 +324,7 @@ interface TabProps {
1039
324
  /**
1040
325
  * @public
1041
326
  */
1042
- declare const Tab: import("react").ForwardRefExoticComponent<Omit<TabProps & Omit<import("react").HTMLProps<HTMLButtonElement>, "aria-controls" | "as" | "id" | "label" | "type" | "width">, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
327
+ declare const Tab: (props: TabProps & Omit<React.HTMLProps<HTMLButtonElement>, 'aria-controls' | 'as' | 'id' | 'label' | 'type' | 'width'>) => import("react").JSX.Element;
1043
328
  /**
1044
329
  * @public
1045
330
  */
@@ -1070,7 +355,7 @@ interface TabListProps extends Omit<InlineOwnProps, 'height'> {
1070
355
  /**
1071
356
  * @public
1072
357
  */
1073
- declare const TabList: import("react").ForwardRefExoticComponent<Omit<TabListProps & Omit<import("react").HTMLProps<HTMLDivElement>, "as" | "height">, "ref"> & import("react").RefAttributes<unknown>>;
358
+ declare const TabList: (props: TabListProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'height'>) => import("react").JSX.Element;
1074
359
  /**
1075
360
  * @public
1076
361
  */
@@ -1084,78 +369,7 @@ interface TabPanelProps extends BoxOwnProps {
1084
369
  /**
1085
370
  * @public
1086
371
  */
1087
- declare const TabPanel: import("react").ForwardRefExoticComponent<Omit<TabPanelProps & Omit<import("react").HTMLProps<HTMLDivElement>, "aria-labelledby" | "as" | "id" | "role">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
1088
- /**
1089
- * @public
1090
- */
1091
- interface ToastProps {
1092
- closable?: boolean;
1093
- description?: React.ReactNode;
1094
- onClose: () => void;
1095
- radius?: number | number[];
1096
- title?: React.ReactNode;
1097
- status?: 'error' | 'warning' | 'success' | 'info';
1098
- duration?: number;
1099
- updatedAt?: number;
1100
- }
1101
- /**
1102
- * The `Toast` component gives feedback to users when an action has taken place.
1103
- *
1104
- * Toasts can be closed with a close button, or auto-dismiss after a certain timeout.
1105
- *
1106
- * @public
1107
- */
1108
- declare function Toast(props: ToastProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'height' | 'ref' | 'title' | 'onAnimationStart' | 'onDragStart' | 'onDragEnd' | 'onDrag'>): React.JSX.Element;
1109
- /**
1110
- * @public
1111
- */
1112
- interface ToastLayerProps {
1113
- children: React.ReactNode;
1114
- padding?: number | number[];
1115
- paddingX?: number | number[];
1116
- paddingY?: number | number[];
1117
- gap?: number | number[];
1118
- }
1119
- /**
1120
- * @public
1121
- */
1122
- interface ToastProviderProps extends Omit<ToastLayerProps, 'children'> {
1123
- children?: React.ReactNode;
1124
- zOffset?: number | number[];
1125
- }
1126
- /**
1127
- * @public
1128
- */
1129
- declare function ToastProvider(props: ToastProviderProps): React.JSX.Element;
1130
- /**
1131
- * @public
1132
- */
1133
- interface ToastParams {
1134
- closable?: boolean;
1135
- description?: React.ReactNode;
1136
- duration?: number;
1137
- id?: string;
1138
- onClose?: () => void;
1139
- title?: React.ReactNode;
1140
- status?: 'error' | 'warning' | 'success' | 'info';
1141
- }
1142
- /**
1143
- * @public
1144
- */
1145
- interface ToastContextValue {
1146
- version: 0.0;
1147
- /**
1148
- * Creates or updates a toast notification.
1149
- * If a toast with the same ID already exists, it will be updated.
1150
- * If an ID is not provided, a random one will be generated.
1151
- * The returned ID can be used to programatically update a toast.
1152
- */
1153
- push: (params: ToastParams) => string;
1154
- }
1155
- /**
1156
- * @public
1157
- */
1158
- declare function useToast(): ToastContextValue;
372
+ declare const TabPanel: (props: TabPanelProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'aria-labelledby' | 'id' | 'role'>) => import("react").JSX.Element;
1159
373
  /**
1160
374
  * This API might change. DO NOT USE IN PRODUCTION.
1161
375
  * @beta
@@ -1171,7 +385,7 @@ interface TreeProps {
1171
385
  * This API might change. DO NOT USE IN PRODUCTION.
1172
386
  * @beta
1173
387
  */
1174
- declare const Tree: import("react").ForwardRefExoticComponent<TreeProps & Omit<import("react").HTMLProps<HTMLUListElement>, "align" | "as" | "height" | "ref" | "role" | "wrap"> & import("react").RefAttributes<HTMLUListElement>>;
388
+ declare const Tree: (props: TreeProps & Omit<React.HTMLProps<HTMLUListElement>, 'align' | 'as' | 'height' | 'role' | 'wrap'>) => React.JSX.Element;
1175
389
  /**
1176
390
  * @beta
1177
391
  */
@@ -1460,10 +674,6 @@ declare function usePrefersDark(getServerSnapshot?: () => boolean): boolean;
1460
674
  * @public
1461
675
  */
1462
676
  declare function usePrefersReducedMotion(getServerSnapshot?: () => boolean): boolean;
1463
- /**
1464
- * @internal
1465
- */
1466
- declare const _ResizeObserver: typeof ResizeObserver;
1467
677
  /**
1468
678
  * @public
1469
679
  */
@@ -1518,7 +728,9 @@ interface AvatarCounterProps {
1518
728
  /**
1519
729
  * @public
1520
730
  */
1521
- declare const AvatarCounter: import("react").ForwardRefExoticComponent<AvatarCounterProps & import("react").RefAttributes<HTMLDivElement>>;
731
+ declare const AvatarCounter: (props: AvatarCounterProps & {
732
+ ref?: React.Ref<HTMLDivElement>;
733
+ }) => import("react").JSX.Element;
1522
734
  /**
1523
735
  * @public
1524
736
  */
@@ -1532,7 +744,7 @@ interface AvatarStackProps {
1532
744
  /**
1533
745
  * @public
1534
746
  */
1535
- declare const AvatarStack: import("react").ForwardRefExoticComponent<AvatarStackProps & Omit<import("react").HTMLProps<HTMLDivElement>, "as" | "ref"> & import("react").RefAttributes<HTMLDivElement>>;
747
+ declare const AvatarStack: (props: AvatarStackProps & Omit<React.HTMLProps<HTMLDivElement>, 'as'>) => import("react").JSX.Element;
1536
748
  /**
1537
749
  * @internal
1538
750
  */
@@ -1626,24 +838,7 @@ interface CheckboxProps {
1626
838
  *
1627
839
  * @public
1628
840
  */
1629
- declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").HTMLProps<HTMLInputElement>, "as" | "type"> & CheckboxProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
1630
- /**
1631
- * @public
1632
- */
1633
- interface CodeOwnProps {
1634
- /** Define the language to use for syntax highlighting. */
1635
- language?: string;
1636
- size?: number | number[];
1637
- weight?: string;
1638
- }
1639
- /**
1640
- * @public
1641
- */
1642
- type CodeProps<E extends ElementType = 'pre'> = Props<CodeOwnProps, E>;
1643
- /**
1644
- * @public
1645
- */
1646
- declare const Code: <E extends ElementType = 'pre'>(props: CodeProps<E>) => React.JSX.Element;
841
+ declare const Checkbox: (props: Omit<React.HTMLProps<HTMLInputElement>, 'as' | 'type'> & CheckboxProps) => import("react").JSX.Element;
1647
842
  /**
1648
843
  * @public
1649
844
  */
@@ -1779,7 +974,7 @@ interface RadioProps {
1779
974
  *
1780
975
  * @public
1781
976
  */
1782
- declare const Radio: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").HTMLProps<HTMLInputElement>, "as" | "type"> & RadioProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
977
+ declare const Radio: (props: Omit<React.HTMLProps<HTMLInputElement>, 'as' | 'type'> & RadioProps) => import("react").JSX.Element;
1783
978
  /**
1784
979
  * @public
1785
980
  */
@@ -1799,7 +994,7 @@ interface SelectProps {
1799
994
  *
1800
995
  * @public
1801
996
  */
1802
- declare const Select: import("react").ForwardRefExoticComponent<Omit<SelectProps & Omit<import("react").HTMLProps<HTMLSelectElement>, "as">, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
997
+ declare const Select: (props: SelectProps & Omit<React.HTMLProps<HTMLSelectElement>, 'as'>) => import("react").JSX.Element;
1803
998
  /**
1804
999
  * @public
1805
1000
  */
@@ -1812,7 +1007,7 @@ interface SpinnerProps {
1812
1007
  *
1813
1008
  * @public
1814
1009
  */
1815
- declare const Spinner: import("react").ForwardRefExoticComponent<Omit<SpinnerProps & Omit<import("react").HTMLProps<HTMLDivElement>, "as" | "size">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
1010
+ declare const Spinner: (props: SpinnerProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'size'>) => import("react").JSX.Element;
1816
1011
  /**
1817
1012
  * @public
1818
1013
  */
@@ -1846,7 +1041,7 @@ interface SwitchProps {
1846
1041
  *
1847
1042
  * @public
1848
1043
  */
1849
- declare const Switch: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").HTMLProps<HTMLInputElement>, "as" | "type"> & SwitchProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
1044
+ declare const Switch: (props: Omit<React.HTMLProps<HTMLInputElement>, 'as' | 'type'> & SwitchProps) => import("react").JSX.Element;
1850
1045
  /**
1851
1046
  * @public
1852
1047
  */
@@ -1893,7 +1088,7 @@ interface TextAreaProps extends ResponsiveRadiusProps {
1893
1088
  *
1894
1089
  * @public
1895
1090
  */
1896
- declare const TextArea: import("react").ForwardRefExoticComponent<Omit<TextAreaProps & Omit<import("react").HTMLProps<HTMLTextAreaElement>, "as">, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>>;
1091
+ declare const TextArea: (props: TextAreaProps & Omit<React.HTMLProps<HTMLTextAreaElement>, 'as'>) => import("react").JSX.Element;
1897
1092
  /**
1898
1093
  * @public
1899
1094
  */
@@ -1940,91 +1135,7 @@ interface TextInputProps {
1940
1135
  *
1941
1136
  * @public
1942
1137
  */
1943
- declare const TextInput: import("react").ForwardRefExoticComponent<Omit<TextInputProps & Omit<import("react").HTMLProps<HTMLInputElement>, "as" | "prefix" | "type">, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
1944
- /**
1945
- * @public
1946
- */
1947
- interface TooltipProps extends Omit<LayerProps, 'as'> {
1948
- /** @deprecated Use `fallbackPlacements` instead. */
1949
- allowedAutoPlacements?: never;
1950
- arrow?: boolean;
1951
- boundaryElement?: HTMLElement | null;
1952
- children?: React.JSX.Element;
1953
- content?: React.ReactNode;
1954
- disabled?: boolean;
1955
- fallbackPlacements?: Placement[];
1956
- padding?: number | number[];
1957
- placement?: Placement;
1958
- /** Whether or not to render the tooltip in a portal element. */
1959
- portal?: boolean | string;
1960
- radius?: number | number[];
1961
- scheme?: ThemeColorSchemeKey$1;
1962
- shadow?: number | number[];
1963
- /**
1964
- * Adds a delay to open or close the tooltip.
1965
- *
1966
- * If only a `number` is passed, it will be used for both opening and closing.
1967
- *
1968
- * If an object `{open: number; close:number}` is passed, it can be used to set different delays for each action.
1969
- *
1970
- * @public
1971
- * @defaultValue 0
1972
- */
1973
- delay?: Delay;
1974
- /**
1975
- * Whether the tooltip should animate in and out.
1976
- *
1977
- * @beta
1978
- * @defaultValue false
1979
- */
1980
- animate?: boolean;
1981
- }
1982
- /**
1983
- * Tooltips display information when hovering, focusing or tapping.
1984
- *
1985
- * @public
1986
- */
1987
- declare const Tooltip: import("react").ForwardRefExoticComponent<Omit<TooltipProps & Omit<import("react").HTMLProps<HTMLDivElement>, "as" | "children" | "content">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
1988
- /**
1989
- * @beta
1990
- */
1991
- interface TooltipDelayGroupContextValue {
1992
- setIsGroupActive: (nextState: React.SetStateAction<boolean>, delay?: number | undefined) => void;
1993
- setOpenTooltipId: (nextId: string | null, delay?: number | undefined) => void;
1994
- openDelay: number;
1995
- closeDelay: number;
1996
- openTooltipId: string | null;
1997
- }
1998
- /**
1999
- * @beta
2000
- */
2001
- declare const TooltipDelayGroupContext: import("react").Context<TooltipDelayGroupContextValue | null>;
2002
- /**
2003
- * @public
2004
- * */
2005
- interface TooltipDelayGroupProviderProps {
2006
- children?: React.ReactNode;
2007
- /**
2008
- * Handles the delays to open or close a tooltip inside a group
2009
- *
2010
- * If only a `number` is passed, it will be used for both opening and closing.
2011
- *
2012
- * If an object `{open: number; close:number}` is passed, it can be used to set different delays for each action.
2013
- *
2014
- * @public
2015
- */
2016
- delay: Delay;
2017
- }
2018
- /**
2019
- * @public
2020
- * Provides context for a group of tooltip elements that should share a delay
2021
- * which temporarily becomes 1 ms after the first floating element of the group opens.
2022
- */
2023
- declare function TooltipDelayGroupProvider(props: TooltipDelayGroupProviderProps): React.JSX.Element;
2024
- /**
2025
- * @beta
2026
- */
2027
- declare function useTooltipDelayGroup(): TooltipDelayGroupContextValue | null;
1138
+ declare const TextInput: (props: TextInputProps & Omit<React.HTMLProps<HTMLInputElement>, 'as' | 'prefix' | 'type'>) => import("react").JSX.Element;
2028
1139
  /**
2029
1140
  * @internal
2030
1141
  */
@@ -2149,11 +1260,11 @@ declare function useTheme(): Theme$1;
2149
1260
  */
2150
1261
  declare function useTheme_v2(): Theme_v2;
2151
1262
  /** @internal */
2152
- declare const Arrow: import("react").ForwardRefExoticComponent<Omit<{
1263
+ declare const Arrow: (props: {
2153
1264
  width: number;
2154
1265
  height: number;
2155
1266
  radius?: number;
2156
- } & Omit<HTMLProps<HTMLDivElement>, "height" | "width">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
1267
+ } & Omit<HTMLProps<HTMLDivElement>, 'width' | 'height'>) => React.JSX.Element;
2157
1268
  /**
2158
1269
  * @public
2159
1270
  */
@@ -2193,7 +1304,7 @@ interface MediaQueryProps {
2193
1304
  * DO NOT USE IN PRODUCTION.
2194
1305
  * @beta
2195
1306
  */
2196
- declare const ElementQuery: import("react").ForwardRefExoticComponent<Omit<MediaQueryProps & Omit<import("react").HTMLProps<HTMLDivElement>, "as" | "media">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
1307
+ declare const ElementQuery: (props: MediaQueryProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'media'>) => import("react").JSX.Element;
2197
1308
  /**
2198
1309
  * DO NOT USE IN PRODUCTION
2199
1310
  * @beta
@@ -2301,7 +1412,7 @@ interface SrOnlyProps {
2301
1412
  /**
2302
1413
  * @public
2303
1414
  */
2304
- declare const SrOnly: import("react").ForwardRefExoticComponent<Omit<SrOnlyProps & Omit<import("react").HTMLProps<HTMLDivElement>, "aria-hidden" | "as">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
1415
+ declare const SrOnly: (props: SrOnlyProps & Omit<React.HTMLProps<HTMLDivElement>, 'aria-hidden' | 'as'>) => import("react").JSX.Element;
2305
1416
  /**
2306
1417
  * @beta
2307
1418
  */
@@ -2327,6 +1438,108 @@ interface VirtualListProps<Item = any> {
2327
1438
  /**
2328
1439
  * @beta
2329
1440
  */
2330
- declare const VirtualList: import("react").ForwardRefExoticComponent<VirtualListProps<any> & StackOwnProps & Omit<import("react").HTMLProps<HTMLDivElement>, "as" | "children" | "onChange" | "ref"> & import("react").RefAttributes<HTMLDivElement>>;
2331
- export { type ArrayPropPrimitive, Arrow, type Assign, Autocomplete, type AutocompleteInputChangeMsg, type AutocompleteInputFoocusMsg, type AutocompleteMsg, type AutocompleteOpenButtonProps, type AutocompleteProps, type AutocompleteRootBlurMsg, type AutocompleteRootClearMsg, type AutocompleteRootEscapeMsg, type AutocompleteRootOpenMsg, type AutocompleteRootSetActiveValueMsg, type AutocompleteRootSetListFocusedMsg, type AutocompleteState, type AutocompleteValueChangeMsg, Avatar, AvatarCounter, type AvatarCounterProps, type AvatarOwnProps, type AvatarPosition, type AvatarProps, type AvatarRootStyleProps, type AvatarSize, AvatarStack, type AvatarStackProps, type AvatarStatus, Badge, type BadgeMode, type BadgeOwnProps, type BadgeProps, type BadgeTone, type BaseAutocompleteOption, type BaseTheme, type BoundaryElementContextValue, BoundaryElementProvider, type BoundaryElementProviderProps, Box, type BoxDisplay, type BoxHeight, type BoxOverflow, type BoxOwnProps, type BoxProps, type BoxShadow, type BoxSizing, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonMode, type ButtonOwnProps, type ButtonProps, type ButtonTextAlign, type ButtonTone, type ButtonWidth, Card, type CardOwnProps, type CardProps, type CardStyleProps, type CardTone, Checkbox, type CheckboxProps, type ClickOutsideElements, type ClickOutsideEventElements, type ClickOutsideEventListener, type ClickOutsideListener, Code, type CodeOwnProps, type CodeProps, CodeSkeleton, type CodeSkeletonProps, type ComponentType, ConditionalWrapper, Container, type ContainerOwnProps, type ContainerProps, type Delay, Dialog, DialogContext, type DialogContextValue, type DialogPosition, type DialogProps, DialogProvider, type DialogProviderProps, ElementQuery, type ElementRectValue, type ElementSize, type ElementType, type EmptyProps, ErrorBoundary, type ErrorBoundaryProps, type ErrorBoundaryState, Flex, type FlexAlign, type FlexDirection, type FlexJustify, type FlexOwnProps, type FlexProps, type FlexValue, type FlexWrap, type FontWeightStyleProps, Grid, type GridAutoCols, type GridAutoFlow, type GridAutoRows, type GridItemColumn, type GridItemColumnEnd, type GridItemColumnStart, type GridItemRow, type GridItemRowEnd, type GridItemRowStart, type GridOwnProps, type GridProps, type HSL, Heading, type HeadingOwnProps, type HeadingProps, HeadingSkeleton, type HeadingSkeletonProps, Hotkeys, type HotkeysProps, Inline, type InlineOwnProps, type InlineProps, KBD, type KBDOwnProps, type KBDProps, Label, type LabelOwnProps, type LabelProps, LabelSkeleton, type LabelSkeletonProps, Layer, type LayerContextValue, type LayerProps, LayerProvider, type LayerProviderProps, type MediaQueryProps, Menu, MenuButton, type MenuButtonProps, MenuDivider, type MenuDividerProps, MenuGroup, type MenuGroupOwnProps, type MenuGroupProps, MenuItem, type MenuItemOwnProps, type MenuItemProps, type MenuProps, type PartialThemeColorBuilderOpts, type Placement, Popover, type PopoverMargins, type PopoverProps, type PopoverUpdateCallback, type PopoverWidth, Portal, type PortalContextValue, type PortalProps, PortalProvider, type PortalProviderProps, type Props, type RGB, Radio, type RadioProps, type Radius, type ResponsiveAvatarSizeStyleProps, type ResponsiveBorderProps, type ResponsiveBoxProps, type ResponsiveFlexItemProps, type ResponsiveFlexProps, type ResponsiveFontSizeStyleProps, type ResponsiveFontStyleProps, type ResponsiveGridItemProps, type ResponsiveGridProps, type ResponsiveMarginProps, type ResponsivePaddingProps, type ResponsiveRadiusProps, type ResponsiveShadowProps, type ResponsiveTextAlignStyleProps, type ResponsiveWidthProps, type ResponsiveWidthStyleProps, type RootTheme, Select, type SelectProps, type SelectableTone, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, SrOnly, type SrOnlyProps, Stack, type StackOwnProps, type StackProps, type Styles, Switch, type SwitchProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, type TagType, Text, type TextAlign, TextArea, type TextAreaProps, TextInput, type TextInputClearButtonProps, type TextInputProps, type TextInputType, type TextOwnProps, type TextProps, TextSkeleton, type TextSkeletonProps, type Theme, type ThemeAvatar, type ThemeColor, type ThemeColorBase, type ThemeColorBuilderOpts, type ThemeColorButton, type ThemeColorButtonModeKey, type ThemeColorButtonState, type ThemeColorButtonStates, type ThemeColorButtonTones, type ThemeColorCard, type ThemeColorCardState, type ThemeColorGenericState, type ThemeColorInput, type ThemeColorInputState, type ThemeColorInputStates, type ThemeColorMuted, type ThemeColorMutedTone, type ThemeColorName, ThemeColorProvider, type ThemeColorProviderProps, type ThemeColorScheme, type ThemeColorSchemeKey, type ThemeColorSchemes, type ThemeColorSelectable, type ThemeColorSelectableState, type ThemeColorSelectableStates, type ThemeColorSolid, type ThemeColorSolidTone, type ThemeColorSpot, type ThemeColorSpotKey, type ThemeColorSyntax, type ThemeColorToneKey, type ThemeContextValue, type ThemeFont, type ThemeFontKey, type ThemeFontSize, type ThemeFontWeight, type ThemeFontWeightKey, type ThemeFonts, type ThemeInput, type ThemeLayer, type ThemeProps, ThemeProvider, type ThemeProviderProps, type ThemeShadow, Toast, type ToastContextValue, type ToastParams, type ToastProps, ToastProvider, type ToastProviderProps, Tooltip, TooltipDelayGroupContext, type TooltipDelayGroupContextValue, TooltipDelayGroupProvider, type TooltipDelayGroupProviderProps, type TooltipProps, Tree, type TreeContextValue, TreeItem, type TreeItemProps, type TreeProps, type TreeState, VirtualList, type VirtualListChangeOpts, type VirtualListProps, type _ElementSizeListener, type _ElementSizeObserver, type _ElementSizeSubscriber, type _MediaStore, _ResizeObserver, _elementSizeObserver, _fillCSSObject, _getArrayProp, _getResponsiveSpace, _hasFocus, _isEnterToClickElement, _isScrollable, _raf, _raf2, _responsive, attemptFocus, containsOrEqualsElement, createColorTheme, focusFirstDescendant, focusLastDescendant, hexToRgb, hslToRgb, isFocusable, isHTMLAnchorElement, isHTMLButtonElement, isHTMLElement, isHTMLInputElement, isHTMLSelectElement, isHTMLTextAreaElement, multiply, parseColor, rem, responsiveCodeFontStyle, responsiveHeadingFont, responsiveLabelFont, responsiveTextAlignStyle, responsiveTextFont, rgbToHex, rgbToHsl, rgba, screen, studioTheme, useArrayProp, useBoundaryElement, useClickOutside, useClickOutsideEvent, useCustomValidity, useDialog, useElementRect, useElementSize, useForwardedRef, useGlobalKeyDown, useLayer, useMatchMedia, useMediaIndex, usePortal, usePrefersDark, usePrefersReducedMotion, useRootTheme, useTheme, useTheme_v2, useToast, useTooltipDelayGroup, useTree };
1441
+ declare const VirtualList: (props: VirtualListProps & StackOwnProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'children' | 'onChange'>) => React.JSX.Element;
1442
+ /** @deprecated Moved to `@sanity/ui/autocomplete` */
1443
+ declare const Autocomplete: never;
1444
+ /** @deprecated Moved to `@sanity/ui/autocomplete` */
1445
+ type AutocompleteInputChangeMsg = never;
1446
+ /** @deprecated Moved to `@sanity/ui/autocomplete` */
1447
+ type AutocompleteInputFoocusMsg = never;
1448
+ /** @deprecated Moved to `@sanity/ui/autocomplete` */
1449
+ type AutocompleteMsg = never;
1450
+ /** @deprecated Moved to `@sanity/ui/autocomplete` */
1451
+ type AutocompleteOpenButtonProps = never;
1452
+ /** @deprecated Moved to `@sanity/ui/autocomplete` */
1453
+ type AutocompleteProps = never;
1454
+ /** @deprecated Moved to `@sanity/ui/autocomplete` */
1455
+ type AutocompleteRootBlurMsg = never;
1456
+ /** @deprecated Moved to `@sanity/ui/autocomplete` */
1457
+ type AutocompleteRootClearMsg = never;
1458
+ /** @deprecated Moved to `@sanity/ui/autocomplete` */
1459
+ type AutocompleteRootEscapeMsg = never;
1460
+ /** @deprecated Moved to `@sanity/ui/autocomplete` */
1461
+ type AutocompleteRootOpenMsg = never;
1462
+ /** @deprecated Moved to `@sanity/ui/autocomplete` */
1463
+ type AutocompleteRootSetActiveValueMsg = never;
1464
+ /** @deprecated Moved to `@sanity/ui/autocomplete` */
1465
+ type AutocompleteRootSetListFocusedMsg = never;
1466
+ /** @deprecated Moved to `@sanity/ui/autocomplete` */
1467
+ type AutocompleteState = never;
1468
+ /** @deprecated Moved to `@sanity/ui/autocomplete` */
1469
+ type AutocompleteValueChangeMsg = never;
1470
+ /** @deprecated Moved to `@sanity/ui/autocomplete` */
1471
+ type BaseAutocompleteOption = never;
1472
+ /** @deprecated Moved to `@sanity/ui/breadcrumbs` */
1473
+ declare const Breadcrumbs: never;
1474
+ /** @deprecated Moved to `@sanity/ui/breadcrumbs` */
1475
+ type BreadcrumbsProps = never;
1476
+ /** @deprecated Moved to `@sanity/ui/code` */
1477
+ declare const Code: never;
1478
+ /** @deprecated Moved to `@sanity/ui/code` */
1479
+ type CodeOwnProps = never;
1480
+ /** @deprecated Moved to `@sanity/ui/code` */
1481
+ type CodeProps = never;
1482
+ /** @deprecated Moved to `@sanity/ui/menu` */
1483
+ declare const Menu: never;
1484
+ /** @deprecated Moved to `@sanity/ui/menu` */
1485
+ declare const MenuButton: never;
1486
+ /** @deprecated Moved to `@sanity/ui/menu` */
1487
+ type MenuButtonProps = never;
1488
+ /** @deprecated Moved to `@sanity/ui/menu` */
1489
+ declare const MenuDivider: never;
1490
+ /** @deprecated Moved to `@sanity/ui/menu` */
1491
+ type MenuDividerProps = never;
1492
+ /** @deprecated Moved to `@sanity/ui/menu` */
1493
+ declare const MenuGroup: never;
1494
+ /** @deprecated Moved to `@sanity/ui/menu` */
1495
+ type MenuGroupOwnProps = never;
1496
+ /** @deprecated Moved to `@sanity/ui/menu` */
1497
+ type MenuGroupProps = never;
1498
+ /** @deprecated Moved to `@sanity/ui/menu` */
1499
+ declare const MenuItem: never;
1500
+ /** @deprecated Moved to `@sanity/ui/menu` */
1501
+ type MenuItemOwnProps = never;
1502
+ /** @deprecated Moved to `@sanity/ui/menu` */
1503
+ type MenuItemProps = never;
1504
+ /** @deprecated Moved to `@sanity/ui/menu` */
1505
+ type MenuProps = never;
1506
+ /** @deprecated Moved to `@sanity/ui/popover` */
1507
+ declare const Popover: never;
1508
+ /** @deprecated Moved to `@sanity/ui/popover` */
1509
+ type PopoverMargins = never;
1510
+ /** @deprecated Moved to `@sanity/ui/popover` */
1511
+ type PopoverProps = never;
1512
+ /** @deprecated Moved to `@sanity/ui/popover` */
1513
+ type PopoverUpdateCallback = never;
1514
+ /** @deprecated Moved to `@sanity/ui/popover` */
1515
+ type PopoverWidth = never;
1516
+ /** @deprecated Moved to `@sanity/ui/toast` */
1517
+ declare const Toast: never;
1518
+ /** @deprecated Moved to `@sanity/ui/toast` */
1519
+ type ToastContextValue = never;
1520
+ /** @deprecated Moved to `@sanity/ui/toast` */
1521
+ type ToastParams = never;
1522
+ /** @deprecated Moved to `@sanity/ui/toast` */
1523
+ type ToastProps = never;
1524
+ /** @deprecated Moved to `@sanity/ui/toast` */
1525
+ declare const ToastProvider: never;
1526
+ /** @deprecated Moved to `@sanity/ui/toast` */
1527
+ type ToastProviderProps = never;
1528
+ /** @deprecated Moved to `@sanity/ui/toast` */
1529
+ declare const useToast: never;
1530
+ /** @deprecated Moved to `@sanity/ui/tooltip` */
1531
+ declare const Tooltip: never;
1532
+ /** @deprecated Moved to `@sanity/ui/tooltip` */
1533
+ declare const TooltipDelayGroupContext: never;
1534
+ /** @deprecated Moved to `@sanity/ui/tooltip` */
1535
+ type TooltipDelayGroupContextValue = never;
1536
+ /** @deprecated Moved to `@sanity/ui/tooltip` */
1537
+ declare const TooltipDelayGroupProvider: never;
1538
+ /** @deprecated Moved to `@sanity/ui/tooltip` */
1539
+ type TooltipDelayGroupProviderProps = never;
1540
+ /** @deprecated Moved to `@sanity/ui/tooltip` */
1541
+ type TooltipProps = never;
1542
+ /** @deprecated Moved to `@sanity/ui/tooltip` */
1543
+ declare const useTooltipDelayGroup: never;
1544
+ export { type ArrayPropPrimitive, Arrow, type Assign, Autocomplete, AutocompleteInputChangeMsg, AutocompleteInputFoocusMsg, AutocompleteMsg, AutocompleteOpenButtonProps, AutocompleteProps, AutocompleteRootBlurMsg, AutocompleteRootClearMsg, AutocompleteRootEscapeMsg, AutocompleteRootOpenMsg, AutocompleteRootSetActiveValueMsg, AutocompleteRootSetListFocusedMsg, AutocompleteState, AutocompleteValueChangeMsg, Avatar, AvatarCounter, type AvatarCounterProps, type AvatarOwnProps, type AvatarPosition, type AvatarProps, type AvatarRootStyleProps, type AvatarSize, AvatarStack, type AvatarStackProps, type AvatarStatus, Badge, type BadgeMode, type BadgeOwnProps, type BadgeProps, type BadgeTone, BaseAutocompleteOption, type BaseTheme, type BoundaryElementContextValue, BoundaryElementProvider, type BoundaryElementProviderProps, Box, type BoxDisplay, type BoxHeight, type BoxOverflow, type BoxOwnProps, type BoxProps, type BoxShadow, type BoxSizing, Breadcrumbs, BreadcrumbsProps, Button, type ButtonMode, type ButtonOwnProps, type ButtonProps, type ButtonTextAlign, type ButtonTone, type ButtonWidth, Card, type CardOwnProps, type CardProps, type CardStyleProps, type CardTone, Checkbox, type CheckboxProps, type ClickOutsideElements, type ClickOutsideEventElements, type ClickOutsideEventListener, type ClickOutsideListener, Code, CodeOwnProps, CodeProps, CodeSkeleton, type CodeSkeletonProps, type ComponentType, ConditionalWrapper, Container, type ContainerOwnProps, type ContainerProps, type Delay, Dialog, DialogContext, type DialogContextValue, type DialogPosition, type DialogProps, DialogProvider, type DialogProviderProps, ElementQuery, type ElementRectValue, type ElementSize, type ElementType, type EmptyProps, ErrorBoundary, type ErrorBoundaryProps, type ErrorBoundaryState, Flex, type FlexAlign, type FlexDirection, type FlexJustify, type FlexOwnProps, type FlexProps, type FlexValue, type FlexWrap, type FontWeightStyleProps, Grid, type GridAutoCols, type GridAutoFlow, type GridAutoRows, type GridItemColumn, type GridItemColumnEnd, type GridItemColumnStart, type GridItemRow, type GridItemRowEnd, type GridItemRowStart, type GridOwnProps, type GridProps, type HSL, Heading, type HeadingOwnProps, type HeadingProps, HeadingSkeleton, type HeadingSkeletonProps, Hotkeys, type HotkeysProps, Inline, type InlineOwnProps, type InlineProps, KBD, type KBDOwnProps, type KBDProps, Label, type LabelOwnProps, type LabelProps, LabelSkeleton, type LabelSkeletonProps, Layer, type LayerContextValue, type LayerProps, LayerProvider, type LayerProviderProps, type MediaQueryProps, Menu, MenuButton, MenuButtonProps, MenuDivider, MenuDividerProps, MenuGroup, MenuGroupOwnProps, MenuGroupProps, MenuItem, MenuItemOwnProps, MenuItemProps, MenuProps, type PartialThemeColorBuilderOpts, type Placement, Popover, PopoverMargins, PopoverProps, PopoverUpdateCallback, PopoverWidth, Portal, type PortalContextValue, type PortalProps, PortalProvider, type PortalProviderProps, type Props, type RGB, Radio, type RadioProps, type Radius, type ResponsiveAvatarSizeStyleProps, type ResponsiveBorderProps, type ResponsiveBoxProps, type ResponsiveFlexItemProps, type ResponsiveFlexProps, type ResponsiveFontSizeStyleProps, type ResponsiveFontStyleProps, type ResponsiveGridItemProps, type ResponsiveGridProps, type ResponsiveMarginProps, type ResponsivePaddingProps, type ResponsiveRadiusProps, type ResponsiveShadowProps, type ResponsiveTextAlignStyleProps, type ResponsiveWidthProps, type ResponsiveWidthStyleProps, type RootTheme, Select, type SelectProps, type SelectableTone, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, SrOnly, type SrOnlyProps, Stack, type StackOwnProps, type StackProps, type Styles, Switch, type SwitchProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, type TagType, Text, type TextAlign, TextArea, type TextAreaProps, TextInput, type TextInputClearButtonProps, type TextInputProps, type TextInputType, type TextOwnProps, type TextProps, TextSkeleton, type TextSkeletonProps, type Theme, type ThemeAvatar, type ThemeColor, type ThemeColorBase, type ThemeColorBuilderOpts, type ThemeColorButton, type ThemeColorButtonModeKey, type ThemeColorButtonState, type ThemeColorButtonStates, type ThemeColorButtonTones, type ThemeColorCard, type ThemeColorCardState, type ThemeColorGenericState, type ThemeColorInput, type ThemeColorInputState, type ThemeColorInputStates, type ThemeColorMuted, type ThemeColorMutedTone, type ThemeColorName, ThemeColorProvider, type ThemeColorProviderProps, type ThemeColorScheme, type ThemeColorSchemeKey, type ThemeColorSchemes, type ThemeColorSelectable, type ThemeColorSelectableState, type ThemeColorSelectableStates, type ThemeColorSolid, type ThemeColorSolidTone, type ThemeColorSpot, type ThemeColorSpotKey, type ThemeColorSyntax, type ThemeColorToneKey, type ThemeContextValue, type ThemeFont, type ThemeFontKey, type ThemeFontSize, type ThemeFontWeight, type ThemeFontWeightKey, type ThemeFonts, type ThemeInput, type ThemeLayer, type ThemeProps, ThemeProvider, type ThemeProviderProps, type ThemeShadow, Toast, ToastContextValue, ToastParams, ToastProps, ToastProvider, ToastProviderProps, Tooltip, TooltipDelayGroupContext, TooltipDelayGroupContextValue, TooltipDelayGroupProvider, TooltipDelayGroupProviderProps, TooltipProps, Tree, type TreeContextValue, TreeItem, type TreeItemProps, type TreeProps, type TreeState, VirtualList, type VirtualListChangeOpts, type VirtualListProps, type _ElementSizeListener, type _ElementSizeObserver, type _ElementSizeSubscriber, type _MediaStore, _elementSizeObserver, _fillCSSObject, _getArrayProp, _getResponsiveSpace, _hasFocus, _isEnterToClickElement, _isScrollable, _raf, _raf2, _responsive, attemptFocus, containsOrEqualsElement, createColorTheme, focusFirstDescendant, focusLastDescendant, hexToRgb, hslToRgb, isFocusable, isHTMLAnchorElement, isHTMLButtonElement, isHTMLElement, isHTMLInputElement, isHTMLSelectElement, isHTMLTextAreaElement, multiply, parseColor, rem, responsiveCodeFontStyle, responsiveHeadingFont, responsiveLabelFont, responsiveTextAlignStyle, responsiveTextFont, rgbToHex, rgbToHsl, rgba, screen, studioTheme, useArrayProp, useBoundaryElement, useClickOutside, useClickOutsideEvent, useCustomValidity, useDialog, useElementRect, useElementSize, useForwardedRef, useGlobalKeyDown, useLayer, useMatchMedia, useMediaIndex, usePortal, usePrefersDark, usePrefersReducedMotion, useRootTheme, useTheme, useTheme_v2, useToast, useTooltipDelayGroup, useTree };
2332
1545
  //# sourceMappingURL=index.d.ts.map