@sanity/ui 4.0.0-next.4 → 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.
- package/README.md +4 -0
- package/dist/_system-CTe2lb5l.d.ts +40 -0
- package/dist/_system-CTe2lb5l.d.ts.map +1 -0
- package/dist/arrow-BG0EMNiC.js +159 -0
- package/dist/arrow-BG0EMNiC.js.map +1 -0
- package/dist/autocomplete.d.ts +140 -0
- package/dist/autocomplete.d.ts.map +1 -0
- package/dist/autocomplete.js +468 -0
- package/dist/autocomplete.js.map +1 -0
- package/dist/breadcrumbs.d.ts +18 -0
- package/dist/breadcrumbs.d.ts.map +1 -0
- package/dist/breadcrumbs.js +112 -0
- package/dist/breadcrumbs.js.map +1 -0
- package/dist/button-BzoZs3Sl.d.ts +76 -0
- package/dist/button-BzoZs3Sl.d.ts.map +1 -0
- package/dist/button-DZkAQOL2.js +174 -0
- package/dist/button-DZkAQOL2.js.map +1 -0
- package/dist/card-C0a0wQTc.d.ts +7 -0
- package/dist/card-C0a0wQTc.d.ts.map +1 -0
- package/dist/code.d.ts +20 -0
- package/dist/code.d.ts.map +1 -0
- package/dist/code.js +85 -0
- package/dist/code.js.map +1 -0
- package/dist/codeFontStyle-DYUujk7K.js +11 -0
- package/dist/codeFontStyle-DYUujk7K.js.map +1 -0
- package/dist/component-DVlwaWB-.d.ts +25 -0
- package/dist/component-DVlwaWB-.d.ts.map +1 -0
- package/dist/element-BYgCE_iK.js +51 -0
- package/dist/element-BYgCE_iK.js.map +1 -0
- package/dist/{getScopedTheme-CqaSCfTH.js → factory-CvRcEQ36.js} +6 -753
- package/dist/factory-CvRcEQ36.js.map +1 -0
- package/dist/flex-BYRpBTOc.js +69 -0
- package/dist/flex-BYRpBTOc.js.map +1 -0
- package/dist/font-EtfxKPUz.d.ts +49 -0
- package/dist/font-EtfxKPUz.d.ts.map +1 -0
- package/dist/getElementRef-5HZQ-Owu.js +91 -0
- package/dist/getElementRef-5HZQ-Owu.js.map +1 -0
- package/dist/getScopedTheme-C-sZsyAz.js +267 -0
- package/dist/getScopedTheme-C-sZsyAz.js.map +1 -0
- package/dist/getTheme_v2-y09KqtEb.js +487 -0
- package/dist/getTheme_v2-y09KqtEb.js.map +1 -0
- package/dist/grid-D88j-N7f.js +108 -0
- package/dist/grid-D88j-N7f.js.map +1 -0
- package/dist/helpers-bwfx1e-Y.js +67 -0
- package/dist/helpers-bwfx1e-Y.js.map +1 -0
- package/dist/hotkeys-B08HIKNu.js +145 -0
- package/dist/hotkeys-B08HIKNu.js.map +1 -0
- package/dist/index.d.ts +112 -896
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +93 -4409
- package/dist/index.js.map +1 -1
- package/dist/layer-BQfdK7rt.d.ts +242 -0
- package/dist/layer-BQfdK7rt.d.ts.map +1 -0
- package/dist/layer-BdkSGATt.js +56 -0
- package/dist/layer-BdkSGATt.js.map +1 -0
- package/dist/menu.d.ts +146 -0
- package/dist/menu.d.ts.map +1 -0
- package/dist/menu.js +602 -0
- package/dist/menu.js.map +1 -0
- package/dist/popover-DmmmSNzL.d.ts +96 -0
- package/dist/popover-DmmmSNzL.d.ts.map +1 -0
- package/dist/popover-Iy6EZEmv.js +406 -0
- package/dist/popover-Iy6EZEmv.js.map +1 -0
- package/dist/popover.d.ts +2 -0
- package/dist/popover.js +3 -0
- package/dist/responsiveFont-hN1mZFjm.js +55 -0
- package/dist/responsiveFont-hN1mZFjm.js.map +1 -0
- package/dist/{rgba-LmTDhX0u.d.ts → rgba-BSYaEUW6.d.ts} +4 -87
- package/dist/rgba-BSYaEUW6.d.ts.map +1 -0
- package/dist/selectable-B0GUIL74.d.ts +7 -0
- package/dist/selectable-B0GUIL74.d.ts.map +1 -0
- package/dist/stack-C5WV-BRh.js +98 -0
- package/dist/stack-C5WV-BRh.js.map +1 -0
- package/dist/styles.css +1 -0
- package/dist/textInput-IbiDH7Jc.js +315 -0
- package/dist/textInput-IbiDH7Jc.js.map +1 -0
- package/dist/theme.d.ts +3 -1
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +3 -1
- package/dist/theme.js.map +1 -1
- package/dist/toast.d.ts +73 -0
- package/dist/toast.d.ts.map +1 -0
- package/dist/toast.js +297 -0
- package/dist/toast.js.map +1 -0
- package/dist/tooltip.d.ts +88 -0
- package/dist/tooltip.d.ts.map +1 -0
- package/dist/tooltip.js +432 -0
- package/dist/tooltip.js.map +1 -0
- package/dist/useClickOutsideEvent-lEVhDFCQ.js +36 -0
- package/dist/useClickOutsideEvent-lEVhDFCQ.js.map +1 -0
- package/dist/useElementSize-BJvbGHq8.js +51 -0
- package/dist/useElementSize-BJvbGHq8.js.map +1 -0
- package/dist/useLayer-9Pz-GG0r.js +704 -0
- package/dist/useLayer-9Pz-GG0r.js.map +1 -0
- package/package.json +15 -3
- package/dist/getScopedTheme-CqaSCfTH.js.map +0 -1
- package/dist/rgba-LmTDhX0u.d.ts.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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,583 +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: (props: LayerProps & Omit<React.HTMLProps<HTMLDivElement>, 'as'>) => import("react").JSX.Element;
|
|
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: (props: PopoverProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'children' | 'content' | 'width'>) => React.JSX.Element;
|
|
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' | 'role' | 'spellCheck' | 'type' | 'value'>) => import("react").JSX.Element;
|
|
704
|
-
/**
|
|
705
|
-
* @beta
|
|
706
|
-
*/
|
|
707
|
-
interface BreadcrumbsProps {
|
|
708
|
-
maxLength?: number;
|
|
709
|
-
separator?: React.ReactNode;
|
|
710
|
-
gap?: number | number[];
|
|
711
|
-
/**
|
|
712
|
-
* @deprecated Use `gap` instead.
|
|
713
|
-
*/
|
|
714
|
-
space?: never;
|
|
715
|
-
}
|
|
716
|
-
/**
|
|
717
|
-
* @beta
|
|
718
|
-
*/
|
|
719
|
-
declare const Breadcrumbs: (props: BreadcrumbsProps & Omit<React.HTMLProps<HTMLOListElement>, 'as' | 'type'>) => import("react").JSX.Element;
|
|
720
150
|
/**
|
|
721
151
|
* @public
|
|
722
152
|
*/
|
|
@@ -813,150 +243,6 @@ interface HotkeysProps {
|
|
|
813
243
|
* @public
|
|
814
244
|
*/
|
|
815
245
|
declare const Hotkeys: (props: HotkeysProps & Omit<React.HTMLProps<HTMLElement>, 'as' | 'size'>) => import("react").JSX.Element;
|
|
816
|
-
/**
|
|
817
|
-
* @public
|
|
818
|
-
*/
|
|
819
|
-
interface MenuProps extends ResponsivePaddingProps {
|
|
820
|
-
/**
|
|
821
|
-
* @deprecated Use `shouldFocus="first"` instead.
|
|
822
|
-
*/
|
|
823
|
-
'focusFirst'?: never;
|
|
824
|
-
/**
|
|
825
|
-
* @deprecated Use `shouldFocus="last"` instead.
|
|
826
|
-
*/
|
|
827
|
-
'focusLast'?: never;
|
|
828
|
-
'onClickOutside'?: (event: MouseEvent) => void;
|
|
829
|
-
'onEscape'?: () => void;
|
|
830
|
-
'onItemClick'?: () => void;
|
|
831
|
-
'onItemSelect'?: (index: number) => void;
|
|
832
|
-
'originElement'?: HTMLElement | null;
|
|
833
|
-
'registerElement'?: (el: HTMLElement) => () => void;
|
|
834
|
-
'shouldFocus'?: 'first' | 'last' | null;
|
|
835
|
-
'gap'?: number | number[];
|
|
836
|
-
/**
|
|
837
|
-
* @deprecated Use `gap` instead.
|
|
838
|
-
*/
|
|
839
|
-
'space'?: never;
|
|
840
|
-
'aria-labelledby'?: string;
|
|
841
|
-
'onBlurCapture'?: (event: FocusEvent) => void;
|
|
842
|
-
}
|
|
843
|
-
/**
|
|
844
|
-
* The `Menu` component is a building block for application menus.
|
|
845
|
-
*
|
|
846
|
-
* @public
|
|
847
|
-
*/
|
|
848
|
-
declare const Menu: (props: MenuProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'height' | 'role' | 'tabIndex'>) => import("react").JSX.Element;
|
|
849
|
-
/**
|
|
850
|
-
* @public
|
|
851
|
-
*/
|
|
852
|
-
interface MenuButtonProps {
|
|
853
|
-
/**
|
|
854
|
-
* @beta Do not use in production.
|
|
855
|
-
*/
|
|
856
|
-
__unstable_disableRestoreFocusOnClose?: boolean;
|
|
857
|
-
/**
|
|
858
|
-
* @deprecated Use `popover={{boundaryElement: element}}` instead.
|
|
859
|
-
*/
|
|
860
|
-
boundaryElement?: never;
|
|
861
|
-
button: React.JSX.Element;
|
|
862
|
-
id: string;
|
|
863
|
-
menu?: React.JSX.Element;
|
|
864
|
-
onClose?: () => void;
|
|
865
|
-
onOpen?: () => void;
|
|
866
|
-
/**
|
|
867
|
-
* @deprecated Use `popover={{placement: 'top'}}` instead.
|
|
868
|
-
*/
|
|
869
|
-
placement?: never;
|
|
870
|
-
popover?: Omit<PopoverProps, 'content' | 'open'>;
|
|
871
|
-
/**
|
|
872
|
-
* @deprecated Use `popover={{scheme: 'dark'}}` instead.
|
|
873
|
-
*/
|
|
874
|
-
popoverScheme?: never;
|
|
875
|
-
/**
|
|
876
|
-
* @deprecated Use `popover={{radius: 2}}` instead.
|
|
877
|
-
*/
|
|
878
|
-
popoverRadius?: never;
|
|
879
|
-
/**
|
|
880
|
-
* @beta Do not use in production.
|
|
881
|
-
* @deprecated Use `popover={{portal: true}}` instead.
|
|
882
|
-
*/
|
|
883
|
-
portal?: never;
|
|
884
|
-
/**
|
|
885
|
-
* @deprecated Use `popover={{preventOverflow: true}}` instead.
|
|
886
|
-
*/
|
|
887
|
-
preventOverflow?: never;
|
|
888
|
-
ref?: React.Ref<HTMLButtonElement | null>;
|
|
889
|
-
}
|
|
890
|
-
/**
|
|
891
|
-
* The `MenuButton` component follows the WAI-ARIA specification for menu buttons.
|
|
892
|
-
*
|
|
893
|
-
* @public
|
|
894
|
-
*/
|
|
895
|
-
declare const MenuButton: (props: MenuButtonProps) => import("react").JSX.Element;
|
|
896
|
-
/**
|
|
897
|
-
* @public
|
|
898
|
-
*/
|
|
899
|
-
type MenuDividerProps<E extends ElementType = 'hr'> = Props<EmptyProps, E>;
|
|
900
|
-
/**
|
|
901
|
-
* @public
|
|
902
|
-
*/
|
|
903
|
-
declare const MenuDivider: <E extends ElementType = 'hr'>(props: MenuDividerProps<E>) => React.JSX.Element;
|
|
904
|
-
/**
|
|
905
|
-
* @public
|
|
906
|
-
*/
|
|
907
|
-
type SelectableTone = ThemeColorStateToneKey;
|
|
908
|
-
/**
|
|
909
|
-
* @public
|
|
910
|
-
*/
|
|
911
|
-
interface MenuGroupOwnProps {
|
|
912
|
-
fontSize?: number | number[];
|
|
913
|
-
icon?: React.ElementType | React.ReactNode;
|
|
914
|
-
menu?: Omit<MenuProps, 'onClickOutside' | 'onEscape' | 'onItemClick' | 'onKeyDown' | 'onMouseEnter' | 'registerElement' | 'shouldFocus' | 'onBlurCapture'>;
|
|
915
|
-
padding?: number | number[];
|
|
916
|
-
popover?: Omit<PopoverProps, 'content' | 'open'>;
|
|
917
|
-
radius?: Radius | Radius[];
|
|
918
|
-
gap?: number | number[];
|
|
919
|
-
/**
|
|
920
|
-
* @deprecated Use `gap` instead.
|
|
921
|
-
*/
|
|
922
|
-
space?: never;
|
|
923
|
-
text: React.ReactNode;
|
|
924
|
-
tone?: SelectableTone;
|
|
925
|
-
}
|
|
926
|
-
/**
|
|
927
|
-
* @public
|
|
928
|
-
*/
|
|
929
|
-
type MenuGroupProps<E extends ElementType = 'button'> = Props<MenuGroupOwnProps, E>;
|
|
930
|
-
/**
|
|
931
|
-
* @public
|
|
932
|
-
*/
|
|
933
|
-
declare const MenuGroup: <E extends ElementType = 'button'>(props: MenuGroupProps<E>) => React.JSX.Element;
|
|
934
|
-
/**
|
|
935
|
-
* @public
|
|
936
|
-
*/
|
|
937
|
-
interface MenuItemOwnProps extends ResponsivePaddingProps, ResponsiveRadiusProps {
|
|
938
|
-
fontSize?: number | number[];
|
|
939
|
-
hotkeys?: string[];
|
|
940
|
-
icon?: React.ElementType | React.ReactNode;
|
|
941
|
-
iconRight?: React.ElementType | React.ReactNode;
|
|
942
|
-
pressed?: boolean;
|
|
943
|
-
selected?: boolean;
|
|
944
|
-
gap?: number | number[];
|
|
945
|
-
/**
|
|
946
|
-
* @deprecated Use `gap` instead.
|
|
947
|
-
*/
|
|
948
|
-
space?: never;
|
|
949
|
-
text?: React.ReactNode;
|
|
950
|
-
tone?: SelectableTone;
|
|
951
|
-
}
|
|
952
|
-
/**
|
|
953
|
-
* @public
|
|
954
|
-
*/
|
|
955
|
-
type MenuItemProps<E extends ElementType = 'button'> = Props<MenuItemOwnProps, E>;
|
|
956
|
-
/**
|
|
957
|
-
* @public
|
|
958
|
-
*/
|
|
959
|
-
declare const MenuItem: <E extends ElementType = 'button'>(props: MenuItemProps<E>) => React.JSX.Element;
|
|
960
246
|
/**
|
|
961
247
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
962
248
|
* @beta
|
|
@@ -1084,77 +370,6 @@ interface TabPanelProps extends BoxOwnProps {
|
|
|
1084
370
|
* @public
|
|
1085
371
|
*/
|
|
1086
372
|
declare const TabPanel: (props: TabPanelProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'aria-labelledby' | 'id' | 'role'>) => import("react").JSX.Element;
|
|
1087
|
-
/**
|
|
1088
|
-
* @public
|
|
1089
|
-
*/
|
|
1090
|
-
interface ToastProps {
|
|
1091
|
-
closable?: boolean;
|
|
1092
|
-
description?: React.ReactNode;
|
|
1093
|
-
onClose: () => void;
|
|
1094
|
-
radius?: number | number[];
|
|
1095
|
-
title?: React.ReactNode;
|
|
1096
|
-
status?: 'error' | 'warning' | 'success' | 'info';
|
|
1097
|
-
duration?: number;
|
|
1098
|
-
updatedAt?: number;
|
|
1099
|
-
}
|
|
1100
|
-
/**
|
|
1101
|
-
* The `Toast` component gives feedback to users when an action has taken place.
|
|
1102
|
-
*
|
|
1103
|
-
* Toasts can be closed with a close button, or auto-dismiss after a certain timeout.
|
|
1104
|
-
*
|
|
1105
|
-
* @public
|
|
1106
|
-
*/
|
|
1107
|
-
declare function Toast(props: ToastProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'height' | 'ref' | 'title' | 'onAnimationStart' | 'onDragStart' | 'onDragEnd' | 'onDrag'>): React.JSX.Element;
|
|
1108
|
-
/**
|
|
1109
|
-
* @public
|
|
1110
|
-
*/
|
|
1111
|
-
interface ToastLayerProps {
|
|
1112
|
-
children: React.ReactNode;
|
|
1113
|
-
padding?: number | number[];
|
|
1114
|
-
paddingX?: number | number[];
|
|
1115
|
-
paddingY?: number | number[];
|
|
1116
|
-
gap?: number | number[];
|
|
1117
|
-
}
|
|
1118
|
-
/**
|
|
1119
|
-
* @public
|
|
1120
|
-
*/
|
|
1121
|
-
interface ToastProviderProps extends Omit<ToastLayerProps, 'children'> {
|
|
1122
|
-
children?: React.ReactNode;
|
|
1123
|
-
zOffset?: number | number[];
|
|
1124
|
-
}
|
|
1125
|
-
/**
|
|
1126
|
-
* @public
|
|
1127
|
-
*/
|
|
1128
|
-
declare function ToastProvider(props: ToastProviderProps): React.JSX.Element;
|
|
1129
|
-
/**
|
|
1130
|
-
* @public
|
|
1131
|
-
*/
|
|
1132
|
-
interface ToastParams {
|
|
1133
|
-
closable?: boolean;
|
|
1134
|
-
description?: React.ReactNode;
|
|
1135
|
-
duration?: number;
|
|
1136
|
-
id?: string;
|
|
1137
|
-
onClose?: () => void;
|
|
1138
|
-
title?: React.ReactNode;
|
|
1139
|
-
status?: 'error' | 'warning' | 'success' | 'info';
|
|
1140
|
-
}
|
|
1141
|
-
/**
|
|
1142
|
-
* @public
|
|
1143
|
-
*/
|
|
1144
|
-
interface ToastContextValue {
|
|
1145
|
-
version: 0.0;
|
|
1146
|
-
/**
|
|
1147
|
-
* Creates or updates a toast notification.
|
|
1148
|
-
* If a toast with the same ID already exists, it will be updated.
|
|
1149
|
-
* If an ID is not provided, a random one will be generated.
|
|
1150
|
-
* The returned ID can be used to programatically update a toast.
|
|
1151
|
-
*/
|
|
1152
|
-
push: (params: ToastParams) => string;
|
|
1153
|
-
}
|
|
1154
|
-
/**
|
|
1155
|
-
* @public
|
|
1156
|
-
*/
|
|
1157
|
-
declare function useToast(): ToastContextValue;
|
|
1158
373
|
/**
|
|
1159
374
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
1160
375
|
* @beta
|
|
@@ -1624,23 +839,6 @@ interface CheckboxProps {
|
|
|
1624
839
|
* @public
|
|
1625
840
|
*/
|
|
1626
841
|
declare const Checkbox: (props: Omit<React.HTMLProps<HTMLInputElement>, 'as' | 'type'> & CheckboxProps) => import("react").JSX.Element;
|
|
1627
|
-
/**
|
|
1628
|
-
* @public
|
|
1629
|
-
*/
|
|
1630
|
-
interface CodeOwnProps {
|
|
1631
|
-
/** Define the language to use for syntax highlighting. */
|
|
1632
|
-
language?: string;
|
|
1633
|
-
size?: number | number[];
|
|
1634
|
-
weight?: string;
|
|
1635
|
-
}
|
|
1636
|
-
/**
|
|
1637
|
-
* @public
|
|
1638
|
-
*/
|
|
1639
|
-
type CodeProps<E extends ElementType = 'pre'> = Props<CodeOwnProps, E>;
|
|
1640
|
-
/**
|
|
1641
|
-
* @public
|
|
1642
|
-
*/
|
|
1643
|
-
declare const Code: <E extends ElementType = 'pre'>(props: CodeProps<E>) => React.JSX.Element;
|
|
1644
842
|
/**
|
|
1645
843
|
* @public
|
|
1646
844
|
*/
|
|
@@ -1938,90 +1136,6 @@ interface TextInputProps {
|
|
|
1938
1136
|
* @public
|
|
1939
1137
|
*/
|
|
1940
1138
|
declare const TextInput: (props: TextInputProps & Omit<React.HTMLProps<HTMLInputElement>, 'as' | 'prefix' | 'type'>) => import("react").JSX.Element;
|
|
1941
|
-
/**
|
|
1942
|
-
* @public
|
|
1943
|
-
*/
|
|
1944
|
-
interface TooltipProps extends Omit<LayerProps, 'as'> {
|
|
1945
|
-
/** @deprecated Use `fallbackPlacements` instead. */
|
|
1946
|
-
allowedAutoPlacements?: never;
|
|
1947
|
-
arrow?: boolean;
|
|
1948
|
-
boundaryElement?: HTMLElement | null;
|
|
1949
|
-
children?: React.JSX.Element;
|
|
1950
|
-
content?: React.ReactNode;
|
|
1951
|
-
disabled?: boolean;
|
|
1952
|
-
fallbackPlacements?: Placement[];
|
|
1953
|
-
padding?: number | number[];
|
|
1954
|
-
placement?: Placement;
|
|
1955
|
-
/** Whether or not to render the tooltip in a portal element. */
|
|
1956
|
-
portal?: boolean | string;
|
|
1957
|
-
radius?: number | number[];
|
|
1958
|
-
scheme?: ThemeColorSchemeKey$1;
|
|
1959
|
-
shadow?: number | number[];
|
|
1960
|
-
/**
|
|
1961
|
-
* Adds a delay to open or close the tooltip.
|
|
1962
|
-
*
|
|
1963
|
-
* If only a `number` is passed, it will be used for both opening and closing.
|
|
1964
|
-
*
|
|
1965
|
-
* If an object `{open: number; close:number}` is passed, it can be used to set different delays for each action.
|
|
1966
|
-
*
|
|
1967
|
-
* @public
|
|
1968
|
-
* @defaultValue 0
|
|
1969
|
-
*/
|
|
1970
|
-
delay?: Delay;
|
|
1971
|
-
/**
|
|
1972
|
-
* Whether the tooltip should animate in and out.
|
|
1973
|
-
*
|
|
1974
|
-
* @beta
|
|
1975
|
-
* @defaultValue false
|
|
1976
|
-
*/
|
|
1977
|
-
animate?: boolean;
|
|
1978
|
-
}
|
|
1979
|
-
/**
|
|
1980
|
-
* Tooltips display information when hovering, focusing or tapping.
|
|
1981
|
-
*
|
|
1982
|
-
* @public
|
|
1983
|
-
*/
|
|
1984
|
-
declare const Tooltip: (props: TooltipProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'children' | 'content'>) => import("react").JSX.Element;
|
|
1985
|
-
/**
|
|
1986
|
-
* @beta
|
|
1987
|
-
*/
|
|
1988
|
-
interface TooltipDelayGroupContextValue {
|
|
1989
|
-
setIsGroupActive: (nextState: React.SetStateAction<boolean>, delay?: number | undefined) => void;
|
|
1990
|
-
setOpenTooltipId: (nextId: string | null, delay?: number | undefined) => void;
|
|
1991
|
-
openDelay: number;
|
|
1992
|
-
closeDelay: number;
|
|
1993
|
-
openTooltipId: string | null;
|
|
1994
|
-
}
|
|
1995
|
-
/**
|
|
1996
|
-
* @beta
|
|
1997
|
-
*/
|
|
1998
|
-
declare const TooltipDelayGroupContext: import("react").Context<TooltipDelayGroupContextValue | null>;
|
|
1999
|
-
/**
|
|
2000
|
-
* @public
|
|
2001
|
-
* */
|
|
2002
|
-
interface TooltipDelayGroupProviderProps {
|
|
2003
|
-
children?: React.ReactNode;
|
|
2004
|
-
/**
|
|
2005
|
-
* Handles the delays to open or close a tooltip inside a group
|
|
2006
|
-
*
|
|
2007
|
-
* If only a `number` is passed, it will be used for both opening and closing.
|
|
2008
|
-
*
|
|
2009
|
-
* If an object `{open: number; close:number}` is passed, it can be used to set different delays for each action.
|
|
2010
|
-
*
|
|
2011
|
-
* @public
|
|
2012
|
-
*/
|
|
2013
|
-
delay: Delay;
|
|
2014
|
-
}
|
|
2015
|
-
/**
|
|
2016
|
-
* @public
|
|
2017
|
-
* Provides context for a group of tooltip elements that should share a delay
|
|
2018
|
-
* which temporarily becomes 1 ms after the first floating element of the group opens.
|
|
2019
|
-
*/
|
|
2020
|
-
declare function TooltipDelayGroupProvider(props: TooltipDelayGroupProviderProps): React.JSX.Element;
|
|
2021
|
-
/**
|
|
2022
|
-
* @beta
|
|
2023
|
-
*/
|
|
2024
|
-
declare function useTooltipDelayGroup(): TooltipDelayGroupContextValue | null;
|
|
2025
1139
|
/**
|
|
2026
1140
|
* @internal
|
|
2027
1141
|
*/
|
|
@@ -2325,5 +1439,107 @@ interface VirtualListProps<Item = any> {
|
|
|
2325
1439
|
* @beta
|
|
2326
1440
|
*/
|
|
2327
1441
|
declare const VirtualList: (props: VirtualListProps & StackOwnProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'children' | 'onChange'>) => React.JSX.Element;
|
|
2328
|
-
|
|
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 };
|
|
2329
1545
|
//# sourceMappingURL=index.d.ts.map
|