@sanity/ui 4.1.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{arrow-C6TlkggA.js → arrow-BmX6qbAS.js} +57 -49
- package/dist/arrow-BmX6qbAS.js.map +1 -0
- package/dist/autocomplete.d.ts +2 -2
- package/dist/autocomplete.d.ts.map +1 -1
- package/dist/autocomplete.js +5 -5
- package/dist/breadcrumbs.d.ts +2 -2
- package/dist/breadcrumbs.d.ts.map +1 -1
- package/dist/breadcrumbs.js +10 -5
- package/dist/breadcrumbs.js.map +1 -1
- package/dist/{button-D3iEd7Je.js → button-BNyKSDyA.js} +6 -5
- package/dist/button-BNyKSDyA.js.map +1 -0
- package/dist/code.d.ts +2 -2
- package/dist/code.d.ts.map +1 -1
- package/dist/{factory-BA3gEfyI.js → factory-BzXTX8_Q.js} +2 -2
- package/dist/{factory-BA3gEfyI.js.map → factory-BzXTX8_Q.js.map} +1 -1
- package/dist/{flex-CySCBzQm.js → flex-DmbDG2ks.js} +2 -2
- package/dist/{flex-CySCBzQm.js.map → flex-DmbDG2ks.js.map} +1 -1
- package/dist/{getElementRef-5HZQ-Owu.js → getElementRef-Jw7gY0eV.js} +13 -2
- package/dist/getElementRef-Jw7gY0eV.js.map +1 -0
- package/dist/{grid-I2TNptX-.js → grid-6JSgMj1O.js} +2 -2
- package/dist/{grid-I2TNptX-.js.map → grid-6JSgMj1O.js.map} +1 -1
- package/dist/{hotkeys-Bi6Q5963.js → hotkeys-CaHsQlsO.js} +9 -6
- package/dist/hotkeys-CaHsQlsO.js.map +1 -0
- package/dist/index.d.ts +156 -156
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +83 -159
- package/dist/index.js.map +1 -1
- package/dist/{layer-BK7xWHcE.js → layer-Bl5R3uNR.js} +4 -4
- package/dist/{layer-BK7xWHcE.js.map → layer-Bl5R3uNR.js.map} +1 -1
- package/dist/menu.d.ts +6 -6
- package/dist/menu.d.ts.map +1 -1
- package/dist/menu.js +6 -6
- package/dist/menu.js.map +1 -1
- package/dist/{popover-CdBTZDvj.js → popover-B7-28L8y.js} +44 -40
- package/dist/popover-B7-28L8y.js.map +1 -0
- package/dist/popover-CMlQeKn0.d.ts.map +1 -1
- package/dist/popover.js +1 -1
- package/dist/{stack-BGFEokua.js → stack-rsNFPq2-.js} +2 -2
- package/dist/{stack-BGFEokua.js.map → stack-rsNFPq2-.js.map} +1 -1
- package/dist/styles.css +135 -24
- package/dist/{textInput-Bu3QuADZ.js → textInput-pSfQjkmx.js} +23 -19
- package/dist/textInput-pSfQjkmx.js.map +1 -0
- package/dist/theme.d.ts +33 -33
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +1 -1
- package/dist/toast.d.ts +4 -4
- package/dist/toast.d.ts.map +1 -1
- package/dist/toast.js +6 -5
- package/dist/toast.js.map +1 -1
- package/dist/tooltip.d.ts +5 -5
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.js +28 -27
- package/dist/tooltip.js.map +1 -1
- package/dist/{useLayer-jUJIz8mh.js → useLayer-D1usxIE0.js} +2 -2
- package/dist/{useLayer-jUJIz8mh.js.map → useLayer-D1usxIE0.js.map} +1 -1
- package/package.json +10 -9
- package/dist/arrow-C6TlkggA.js.map +0 -1
- package/dist/button-D3iEd7Je.js.map +0 -1
- package/dist/getElementRef-5HZQ-Owu.js.map +0 -1
- package/dist/hotkeys-Bi6Q5963.js.map +0 -1
- package/dist/popover-CdBTZDvj.js.map +0 -1
- package/dist/textInput-Bu3QuADZ.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -101,52 +101,52 @@ type ThemeShadow = ThemeShadow$1;
|
|
|
101
101
|
* @public
|
|
102
102
|
* @deprecated Use `createColorTheme` from `@sanity/ui/theme` instead.
|
|
103
103
|
*/
|
|
104
|
-
declare const createColorTheme: typeof createColorTheme$1;
|
|
104
|
+
export declare const createColorTheme: typeof createColorTheme$1;
|
|
105
105
|
/**
|
|
106
106
|
* @public
|
|
107
107
|
* @deprecated Use `hexToRgb` from `@sanity/ui/theme` instead.
|
|
108
108
|
*/
|
|
109
|
-
declare const hexToRgb: typeof hexToRgb$1;
|
|
109
|
+
export declare const hexToRgb: typeof hexToRgb$1;
|
|
110
110
|
/**
|
|
111
111
|
* @public
|
|
112
112
|
* @deprecated Use `hslToRgb` from `@sanity/ui/theme` instead.
|
|
113
113
|
*/
|
|
114
|
-
declare const hslToRgb: typeof hslToRgb$1;
|
|
114
|
+
export declare const hslToRgb: typeof hslToRgb$1;
|
|
115
115
|
/**
|
|
116
116
|
* @public
|
|
117
117
|
* @deprecated Use `multiply` from `@sanity/ui/theme` instead.
|
|
118
118
|
*/
|
|
119
|
-
declare const multiply: typeof multiply$1;
|
|
119
|
+
export declare const multiply: typeof multiply$1;
|
|
120
120
|
/**
|
|
121
121
|
* @public
|
|
122
122
|
* @deprecated Use `parseColor` from `@sanity/ui/theme` instead.
|
|
123
123
|
*/
|
|
124
|
-
declare const parseColor: typeof parseColor$1;
|
|
124
|
+
export declare const parseColor: typeof parseColor$1;
|
|
125
125
|
/**
|
|
126
126
|
* @public
|
|
127
127
|
* @deprecated Use `rgbToHex` from `@sanity/ui/theme` instead.
|
|
128
128
|
*/
|
|
129
|
-
declare const rgbToHex: typeof rgbToHex$1;
|
|
129
|
+
export declare const rgbToHex: typeof rgbToHex$1;
|
|
130
130
|
/**
|
|
131
131
|
* @public
|
|
132
132
|
* @deprecated Use `rgbToHsl` from `@sanity/ui/theme` instead.
|
|
133
133
|
*/
|
|
134
|
-
declare const rgbToHsl: typeof rgbToHsl$1;
|
|
134
|
+
export declare const rgbToHsl: typeof rgbToHsl$1;
|
|
135
135
|
/**
|
|
136
136
|
* @public
|
|
137
137
|
* @deprecated Use `rgba` from `@sanity/ui/theme` instead.
|
|
138
138
|
*/
|
|
139
|
-
declare const rgba: typeof rgba$1;
|
|
139
|
+
export declare const rgba: typeof rgba$1;
|
|
140
140
|
/**
|
|
141
141
|
* @public
|
|
142
142
|
* @deprecated Use `screen` from `@sanity/ui/theme` instead.
|
|
143
143
|
*/
|
|
144
|
-
declare const screen: typeof screen$1;
|
|
144
|
+
export declare const screen: typeof screen$1;
|
|
145
145
|
/**
|
|
146
146
|
* @public
|
|
147
147
|
* @deprecated Use `buildTheme` from `@sanity/ui/theme` instead.
|
|
148
148
|
*/
|
|
149
|
-
declare const studioTheme: BaseTheme$1;
|
|
149
|
+
export declare const studioTheme: BaseTheme$1;
|
|
150
150
|
/**
|
|
151
151
|
* @public
|
|
152
152
|
*/
|
|
@@ -190,7 +190,7 @@ interface DialogProps extends ResponsivePaddingProps, ResponsiveWidthProps {
|
|
|
190
190
|
*
|
|
191
191
|
* @public
|
|
192
192
|
*/
|
|
193
|
-
declare function Dialog(props: DialogProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'id' | 'width'>): import("react").JSX.Element;
|
|
193
|
+
export declare function Dialog(props: DialogProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'id' | 'width'>): import("react").JSX.Element;
|
|
194
194
|
/**
|
|
195
195
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
196
196
|
* @beta
|
|
@@ -203,7 +203,7 @@ interface DialogContextValue {
|
|
|
203
203
|
/**
|
|
204
204
|
* @internal
|
|
205
205
|
*/
|
|
206
|
-
declare const DialogContext: import("react").Context<DialogContextValue>;
|
|
206
|
+
export declare const DialogContext: import("react").Context<DialogContextValue>;
|
|
207
207
|
/**
|
|
208
208
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
209
209
|
* @beta
|
|
@@ -217,12 +217,12 @@ interface DialogProviderProps {
|
|
|
217
217
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
218
218
|
* @beta
|
|
219
219
|
*/
|
|
220
|
-
declare function DialogProvider(props: DialogProviderProps): React.JSX.Element;
|
|
220
|
+
export declare function DialogProvider(props: DialogProviderProps): React.JSX.Element;
|
|
221
221
|
/**
|
|
222
222
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
223
223
|
* @beta
|
|
224
224
|
*/
|
|
225
|
-
declare function useDialog(): DialogContextValue;
|
|
225
|
+
export declare function useDialog(): DialogContextValue;
|
|
226
226
|
/**
|
|
227
227
|
* @public
|
|
228
228
|
*/
|
|
@@ -242,7 +242,7 @@ interface HotkeysProps {
|
|
|
242
242
|
*
|
|
243
243
|
* @public
|
|
244
244
|
*/
|
|
245
|
-
declare function Hotkeys(props: HotkeysProps & Omit<React.HTMLProps<HTMLElement>, 'as' | 'size'>): import("react").JSX.Element;
|
|
245
|
+
export declare function Hotkeys(props: HotkeysProps & Omit<React.HTMLProps<HTMLElement>, 'as' | 'size'>): import("react").JSX.Element;
|
|
246
246
|
/**
|
|
247
247
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
248
248
|
* @beta
|
|
@@ -255,7 +255,7 @@ interface SkeletonProps extends ResponsiveRadiusProps, Omit<BoxOwnProps, 'childr
|
|
|
255
255
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
256
256
|
* @beta
|
|
257
257
|
*/
|
|
258
|
-
declare function Skeleton(props: SkeletonProps & Omit<React.HTMLProps<HTMLDivElement>, 'height'>): import("react").JSX.Element;
|
|
258
|
+
export declare function Skeleton(props: SkeletonProps & Omit<React.HTMLProps<HTMLDivElement>, 'height'>): import("react").JSX.Element;
|
|
259
259
|
/**
|
|
260
260
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
261
261
|
* @beta
|
|
@@ -288,22 +288,22 @@ interface CodeSkeletonProps extends SkeletonProps {
|
|
|
288
288
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
289
289
|
* @beta
|
|
290
290
|
*/
|
|
291
|
-
declare function TextSkeleton(props: TextSkeletonProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'children' | 'height' | 'size'>): import("react").JSX.Element;
|
|
291
|
+
export declare function TextSkeleton(props: TextSkeletonProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'children' | 'height' | 'size'>): import("react").JSX.Element;
|
|
292
292
|
/**
|
|
293
293
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
294
294
|
* @beta
|
|
295
295
|
*/
|
|
296
|
-
declare function LabelSkeleton(props: LabelSkeletonProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'children' | 'height' | 'size'>): import("react").JSX.Element;
|
|
296
|
+
export declare function LabelSkeleton(props: LabelSkeletonProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'children' | 'height' | 'size'>): import("react").JSX.Element;
|
|
297
297
|
/**
|
|
298
298
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
299
299
|
* @beta
|
|
300
300
|
*/
|
|
301
|
-
declare function HeadingSkeleton(props: HeadingSkeletonProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'children' | 'height' | 'size'>): import("react").JSX.Element;
|
|
301
|
+
export declare function HeadingSkeleton(props: HeadingSkeletonProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'children' | 'height' | 'size'>): import("react").JSX.Element;
|
|
302
302
|
/**
|
|
303
303
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
304
304
|
* @beta
|
|
305
305
|
*/
|
|
306
|
-
declare function CodeSkeleton(props: CodeSkeletonProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'children' | 'height' | 'size'>): import("react").JSX.Element;
|
|
306
|
+
export declare function CodeSkeleton(props: CodeSkeletonProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'children' | 'height' | 'size'>): import("react").JSX.Element;
|
|
307
307
|
/**
|
|
308
308
|
* @public
|
|
309
309
|
*/
|
|
@@ -324,7 +324,7 @@ interface TabProps {
|
|
|
324
324
|
/**
|
|
325
325
|
* @public
|
|
326
326
|
*/
|
|
327
|
-
declare function Tab(props: TabProps & Omit<React.HTMLProps<HTMLButtonElement>, 'aria-controls' | 'as' | 'id' | 'label' | 'type' | 'width'>): import("react").JSX.Element;
|
|
327
|
+
export declare function Tab(props: TabProps & Omit<React.HTMLProps<HTMLButtonElement>, 'aria-controls' | 'as' | 'id' | 'label' | 'type' | 'width'>): import("react").JSX.Element;
|
|
328
328
|
/**
|
|
329
329
|
* @public
|
|
330
330
|
*/
|
|
@@ -345,7 +345,7 @@ type InlineProps<E extends ElementType = 'div'> = Props<InlineOwnProps, E>;
|
|
|
345
345
|
*
|
|
346
346
|
* @public
|
|
347
347
|
*/
|
|
348
|
-
declare const Inline: <E extends ElementType = 'div'>(props: InlineProps<E>) => React.JSX.Element;
|
|
348
|
+
export declare const Inline: <E extends ElementType = 'div'>(props: InlineProps<E>) => React.JSX.Element;
|
|
349
349
|
/**
|
|
350
350
|
* @public
|
|
351
351
|
*/
|
|
@@ -355,7 +355,7 @@ interface TabListProps extends Omit<InlineOwnProps, 'height'> {
|
|
|
355
355
|
/**
|
|
356
356
|
* @public
|
|
357
357
|
*/
|
|
358
|
-
declare function TabList(props: TabListProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'height'>): import("react").JSX.Element;
|
|
358
|
+
export declare function TabList(props: TabListProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'height'>): import("react").JSX.Element;
|
|
359
359
|
/**
|
|
360
360
|
* @public
|
|
361
361
|
*/
|
|
@@ -369,7 +369,7 @@ interface TabPanelProps extends BoxOwnProps {
|
|
|
369
369
|
/**
|
|
370
370
|
* @public
|
|
371
371
|
*/
|
|
372
|
-
declare function TabPanel(props: TabPanelProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'aria-labelledby' | 'id' | 'role'>): import("react").JSX.Element;
|
|
372
|
+
export declare function TabPanel(props: TabPanelProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'aria-labelledby' | 'id' | 'role'>): import("react").JSX.Element;
|
|
373
373
|
/**
|
|
374
374
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
375
375
|
* @beta
|
|
@@ -385,7 +385,7 @@ interface TreeProps {
|
|
|
385
385
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
386
386
|
* @beta
|
|
387
387
|
*/
|
|
388
|
-
declare function Tree(props: TreeProps & Omit<React.HTMLProps<HTMLUListElement>, 'align' | 'as' | 'height' | 'role' | 'wrap'>): React.JSX.Element;
|
|
388
|
+
export declare function Tree(props: TreeProps & Omit<React.HTMLProps<HTMLUListElement>, 'align' | 'as' | 'height' | 'role' | 'wrap'>): React.JSX.Element;
|
|
389
389
|
/**
|
|
390
390
|
* @beta
|
|
391
391
|
*/
|
|
@@ -416,7 +416,7 @@ interface TreeItemProps {
|
|
|
416
416
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
417
417
|
* @beta
|
|
418
418
|
*/
|
|
419
|
-
declare function TreeItem(props: TreeItemProps & Omit<React.HTMLProps<HTMLLIElement>, 'as' | 'ref' | 'role'>): React.JSX.Element;
|
|
419
|
+
export declare function TreeItem(props: TreeItemProps & Omit<React.HTMLProps<HTMLLIElement>, 'as' | 'ref' | 'role'>): React.JSX.Element;
|
|
420
420
|
/**
|
|
421
421
|
* @beta
|
|
422
422
|
*/
|
|
@@ -447,78 +447,78 @@ interface TreeContextValue {
|
|
|
447
447
|
/**
|
|
448
448
|
* @beta
|
|
449
449
|
*/
|
|
450
|
-
declare function useTree(): TreeContextValue;
|
|
450
|
+
export declare function useTree(): TreeContextValue;
|
|
451
451
|
/**
|
|
452
452
|
* @internal
|
|
453
453
|
*/
|
|
454
|
-
declare function _raf(fn: () => void): () => void;
|
|
454
|
+
export declare function _raf(fn: () => void): () => void;
|
|
455
455
|
/**
|
|
456
456
|
* @internal
|
|
457
457
|
*/
|
|
458
|
-
declare function _raf2(fn: () => void): () => void;
|
|
458
|
+
export declare function _raf2(fn: () => void): () => void;
|
|
459
459
|
/**
|
|
460
460
|
* @internal
|
|
461
461
|
*/
|
|
462
|
-
declare function _isEnterToClickElement(element: HTMLElement): boolean;
|
|
462
|
+
export declare function _isEnterToClickElement(element: HTMLElement): boolean;
|
|
463
463
|
/**
|
|
464
464
|
* @internal
|
|
465
465
|
*/
|
|
466
|
-
declare function isHTMLElement(node: unknown): node is HTMLElement;
|
|
466
|
+
export declare function isHTMLElement(node: unknown): node is HTMLElement;
|
|
467
467
|
/**
|
|
468
468
|
* @internal
|
|
469
469
|
*/
|
|
470
|
-
declare function isHTMLAnchorElement(element: unknown): element is HTMLAnchorElement;
|
|
470
|
+
export declare function isHTMLAnchorElement(element: unknown): element is HTMLAnchorElement;
|
|
471
471
|
/**
|
|
472
472
|
* @internal
|
|
473
473
|
*/
|
|
474
|
-
declare function isHTMLInputElement(element: unknown): element is HTMLInputElement;
|
|
474
|
+
export declare function isHTMLInputElement(element: unknown): element is HTMLInputElement;
|
|
475
475
|
/**
|
|
476
476
|
* @internal
|
|
477
477
|
*/
|
|
478
|
-
declare function isHTMLButtonElement(element: unknown): element is HTMLButtonElement;
|
|
478
|
+
export declare function isHTMLButtonElement(element: unknown): element is HTMLButtonElement;
|
|
479
479
|
/**
|
|
480
480
|
* @internal
|
|
481
481
|
*/
|
|
482
|
-
declare function isHTMLSelectElement(element: unknown): element is HTMLSelectElement;
|
|
482
|
+
export declare function isHTMLSelectElement(element: unknown): element is HTMLSelectElement;
|
|
483
483
|
/**
|
|
484
484
|
* @internal
|
|
485
485
|
*/
|
|
486
|
-
declare function isHTMLTextAreaElement(element: unknown): element is HTMLTextAreaElement;
|
|
486
|
+
export declare function isHTMLTextAreaElement(element: unknown): element is HTMLTextAreaElement;
|
|
487
487
|
/**
|
|
488
488
|
* @internal
|
|
489
489
|
*/
|
|
490
|
-
declare function containsOrEqualsElement(element: HTMLElement, node: Node): boolean;
|
|
490
|
+
export declare function containsOrEqualsElement(element: HTMLElement, node: Node): boolean;
|
|
491
491
|
/**
|
|
492
492
|
* @internal
|
|
493
493
|
*/
|
|
494
|
-
declare function _hasFocus(element: HTMLElement): boolean;
|
|
494
|
+
export declare function _hasFocus(element: HTMLElement): boolean;
|
|
495
495
|
/**
|
|
496
496
|
* @internal
|
|
497
497
|
*/
|
|
498
|
-
declare function isFocusable(element: HTMLElement): boolean;
|
|
498
|
+
export declare function isFocusable(element: HTMLElement): boolean;
|
|
499
499
|
/**
|
|
500
500
|
* @internal
|
|
501
501
|
*/
|
|
502
|
-
declare function attemptFocus(element: HTMLElement): boolean;
|
|
502
|
+
export declare function attemptFocus(element: HTMLElement): boolean;
|
|
503
503
|
/**
|
|
504
504
|
* @internal
|
|
505
505
|
*/
|
|
506
|
-
declare function focusFirstDescendant(element: HTMLElement): boolean;
|
|
506
|
+
export declare function focusFirstDescendant(element: HTMLElement): boolean;
|
|
507
507
|
/**
|
|
508
508
|
* @internal
|
|
509
509
|
*/
|
|
510
|
-
declare function focusLastDescendant(element: HTMLElement): boolean;
|
|
510
|
+
export declare function focusLastDescendant(element: HTMLElement): boolean;
|
|
511
511
|
/**
|
|
512
512
|
* @internal
|
|
513
513
|
*/
|
|
514
|
-
declare function _isScrollable(el: Node): boolean;
|
|
514
|
+
export declare function _isScrollable(el: Node): boolean;
|
|
515
515
|
/** @beta */
|
|
516
516
|
type ArrayPropPrimitive = string | number | boolean | undefined | null;
|
|
517
517
|
/**
|
|
518
518
|
* @deprecated instead of `useArrayProp(width)` use `Array.isArray(width) ? width : [width]` instead
|
|
519
519
|
* @beta
|
|
520
520
|
*/
|
|
521
|
-
declare function useArrayProp(_val?: never, _defaultVal?: never): never;
|
|
521
|
+
export declare function useArrayProp(_val?: never, _defaultVal?: never): never;
|
|
522
522
|
/**
|
|
523
523
|
* @public
|
|
524
524
|
*/
|
|
@@ -542,7 +542,7 @@ type ClickOutsideElements = (HTMLElement | null | (HTMLElement | null)[])[];
|
|
|
542
542
|
* return <button ref={buttonRef} />
|
|
543
543
|
* ```
|
|
544
544
|
*/
|
|
545
|
-
declare function useClickOutside(_listener?: never, _elementsArg?: never, _boundaryElement?: never): never;
|
|
545
|
+
export declare function useClickOutside(_listener?: never, _elementsArg?: never, _boundaryElement?: never): never;
|
|
546
546
|
/**
|
|
547
547
|
* @public
|
|
548
548
|
*/
|
|
@@ -554,11 +554,11 @@ type ClickOutsideEventElements = (HTMLElement | null | (HTMLElement | null)[])[]
|
|
|
554
554
|
/**
|
|
555
555
|
* @public
|
|
556
556
|
*/
|
|
557
|
-
declare function useClickOutsideEvent(listener: ClickOutsideEventListener | false | undefined, elementsArg?: () => ClickOutsideEventElements, boundaryElement?: () => HTMLElement | null): void;
|
|
557
|
+
export declare function useClickOutsideEvent(listener: ClickOutsideEventListener | false | undefined, elementsArg?: () => ClickOutsideEventElements, boundaryElement?: () => HTMLElement | null): void;
|
|
558
558
|
/**
|
|
559
559
|
* @beta
|
|
560
560
|
*/
|
|
561
|
-
declare function useCustomValidity(ref: {
|
|
561
|
+
export declare function useCustomValidity(ref: {
|
|
562
562
|
current: null | {
|
|
563
563
|
setCustomValidity: (validity: string) => void;
|
|
564
564
|
};
|
|
@@ -569,7 +569,7 @@ declare function useCustomValidity(ref: {
|
|
|
569
569
|
*
|
|
570
570
|
* @deprecated Use `useElementSize` instead
|
|
571
571
|
*/
|
|
572
|
-
declare function useElementRect(_element?: never): never;
|
|
572
|
+
export declare function useElementRect(_element?: never): never;
|
|
573
573
|
/**
|
|
574
574
|
* @beta
|
|
575
575
|
*/
|
|
@@ -605,12 +605,12 @@ interface _ElementSizeListener {
|
|
|
605
605
|
/**
|
|
606
606
|
* @internal
|
|
607
607
|
*/
|
|
608
|
-
declare const _elementSizeObserver: _ElementSizeObserver;
|
|
608
|
+
export declare const _elementSizeObserver: _ElementSizeObserver;
|
|
609
609
|
/**
|
|
610
610
|
* Subscribe to the size of a DOM element.
|
|
611
611
|
* @beta
|
|
612
612
|
*/
|
|
613
|
-
declare function useElementSize(element: HTMLElement | null): ElementSize | null;
|
|
613
|
+
export declare function useElementSize(element: HTMLElement | null): ElementSize | null;
|
|
614
614
|
/**
|
|
615
615
|
* @beta
|
|
616
616
|
* @deprecated use `useImperativeHandle` instead
|
|
@@ -621,7 +621,7 @@ declare function useElementSize(element: HTMLElement | null): ElementSize | null
|
|
|
621
621
|
* +useImperativeHandle(forwardedRef, () => ref.current)
|
|
622
622
|
* ```
|
|
623
623
|
*/
|
|
624
|
-
declare function useForwardedRef(_ref?: never): never;
|
|
624
|
+
export declare function useForwardedRef(_ref?: never): never;
|
|
625
625
|
/**
|
|
626
626
|
* Adds global keydown event listener to the window.
|
|
627
627
|
*
|
|
@@ -629,7 +629,7 @@ declare function useForwardedRef(_ref?: never): never;
|
|
|
629
629
|
* @param options - The options to pass to the addEventListener function (example, capture: true)
|
|
630
630
|
* @beta
|
|
631
631
|
*/
|
|
632
|
-
declare function useGlobalKeyDown(onKeyDown: (event: KeyboardEvent) => void, options?: AddEventListenerOptions): void;
|
|
632
|
+
export declare function useGlobalKeyDown(onKeyDown: (event: KeyboardEvent) => void, options?: AddEventListenerOptions): void;
|
|
633
633
|
/**
|
|
634
634
|
* Efficiently subscribes to `window.matchMedia` queries
|
|
635
635
|
*
|
|
@@ -637,7 +637,7 @@ declare function useGlobalKeyDown(onKeyDown: (event: KeyboardEvent) => void, opt
|
|
|
637
637
|
*
|
|
638
638
|
* @public
|
|
639
639
|
*/
|
|
640
|
-
declare function useMatchMedia(mediaQueryString: `(${string})`, getServerSnapshot?: () => boolean): boolean;
|
|
640
|
+
export declare function useMatchMedia(mediaQueryString: `(${string})`, getServerSnapshot?: () => boolean): boolean;
|
|
641
641
|
/**
|
|
642
642
|
* @internal
|
|
643
643
|
*/
|
|
@@ -649,7 +649,7 @@ interface _MediaStore {
|
|
|
649
649
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
650
650
|
* @beta
|
|
651
651
|
*/
|
|
652
|
-
declare function useMediaIndex(): number;
|
|
652
|
+
export declare function useMediaIndex(): number;
|
|
653
653
|
/**
|
|
654
654
|
* Returns true if a dark color scheme is preferred, false if a light color scheme is preferred or the preference is not known.
|
|
655
655
|
*
|
|
@@ -661,7 +661,7 @@ declare function useMediaIndex(): number;
|
|
|
661
661
|
*
|
|
662
662
|
* @public
|
|
663
663
|
*/
|
|
664
|
-
declare function usePrefersDark(getServerSnapshot?: () => boolean): boolean;
|
|
664
|
+
export declare function usePrefersDark(getServerSnapshot?: () => boolean): boolean;
|
|
665
665
|
/**
|
|
666
666
|
* Returns true if motion should be reduced
|
|
667
667
|
*
|
|
@@ -673,7 +673,7 @@ declare function usePrefersDark(getServerSnapshot?: () => boolean): boolean;
|
|
|
673
673
|
*
|
|
674
674
|
* @public
|
|
675
675
|
*/
|
|
676
|
-
declare function usePrefersReducedMotion(getServerSnapshot?: () => boolean): boolean;
|
|
676
|
+
export declare function usePrefersReducedMotion(getServerSnapshot?: () => boolean): boolean;
|
|
677
677
|
/**
|
|
678
678
|
* @public
|
|
679
679
|
*/
|
|
@@ -715,7 +715,7 @@ type AvatarProps<E extends ElementType = 'div'> = Props<AvatarOwnProps, E>;
|
|
|
715
715
|
*
|
|
716
716
|
* @public
|
|
717
717
|
*/
|
|
718
|
-
declare const Avatar: <E extends ElementType = 'div'>(props: AvatarProps<E>) => React.JSX.Element;
|
|
718
|
+
export declare const Avatar: <E extends ElementType = 'div'>(props: AvatarProps<E>) => React.JSX.Element;
|
|
719
719
|
/**
|
|
720
720
|
* @public
|
|
721
721
|
*/
|
|
@@ -728,7 +728,7 @@ interface AvatarCounterProps {
|
|
|
728
728
|
/**
|
|
729
729
|
* @public
|
|
730
730
|
*/
|
|
731
|
-
declare function AvatarCounter(props: AvatarCounterProps & {
|
|
731
|
+
export declare function AvatarCounter(props: AvatarCounterProps & {
|
|
732
732
|
ref?: React.Ref<HTMLDivElement>;
|
|
733
733
|
}): import("react").JSX.Element;
|
|
734
734
|
/**
|
|
@@ -744,7 +744,7 @@ interface AvatarStackProps {
|
|
|
744
744
|
/**
|
|
745
745
|
* @public
|
|
746
746
|
*/
|
|
747
|
-
declare function AvatarStack(props: AvatarStackProps & Omit<React.HTMLProps<HTMLDivElement>, 'as'>): import("react").JSX.Element;
|
|
747
|
+
export declare function AvatarStack(props: AvatarStackProps & Omit<React.HTMLProps<HTMLDivElement>, 'as'>): import("react").JSX.Element;
|
|
748
748
|
/**
|
|
749
749
|
* @internal
|
|
750
750
|
*/
|
|
@@ -784,7 +784,7 @@ type BadgeProps<E extends ElementType = 'div'> = Props<BadgeOwnProps, E>;
|
|
|
784
784
|
*
|
|
785
785
|
* @public
|
|
786
786
|
*/
|
|
787
|
-
declare const Badge: <E extends ElementType = 'div'>(props: BadgeProps<E>) => React.JSX.Element;
|
|
787
|
+
export declare const Badge: <E extends ElementType = 'div'>(props: BadgeProps<E>) => React.JSX.Element;
|
|
788
788
|
/**
|
|
789
789
|
* @public
|
|
790
790
|
*/
|
|
@@ -816,7 +816,7 @@ type CardProps<E extends ElementType = 'div'> = Props<CardOwnProps, E>;
|
|
|
816
816
|
*
|
|
817
817
|
* @public
|
|
818
818
|
*/
|
|
819
|
-
declare const Card: <E extends ElementType = 'div'>(props: CardProps<E>) => React.JSX.Element;
|
|
819
|
+
export declare const Card: <E extends ElementType = 'div'>(props: CardProps<E>) => React.JSX.Element;
|
|
820
820
|
/**
|
|
821
821
|
* @internal
|
|
822
822
|
*/
|
|
@@ -838,7 +838,7 @@ interface CheckboxProps {
|
|
|
838
838
|
*
|
|
839
839
|
* @public
|
|
840
840
|
*/
|
|
841
|
-
declare function Checkbox(props: Omit<React.HTMLProps<HTMLInputElement>, 'as' | 'type'> & CheckboxProps): import("react").JSX.Element;
|
|
841
|
+
export declare function Checkbox(props: Omit<React.HTMLProps<HTMLInputElement>, 'as' | 'type'> & CheckboxProps): import("react").JSX.Element;
|
|
842
842
|
/**
|
|
843
843
|
* @public
|
|
844
844
|
*/
|
|
@@ -852,7 +852,7 @@ type ContainerProps<E extends ElementType = 'div'> = Props<ContainerOwnProps, E>
|
|
|
852
852
|
*
|
|
853
853
|
* @public
|
|
854
854
|
*/
|
|
855
|
-
declare const Container: <E extends ElementType = 'div'>(props: ContainerProps<E>) => React.JSX.Element;
|
|
855
|
+
export declare const Container: <E extends ElementType = 'div'>(props: ContainerProps<E>) => React.JSX.Element;
|
|
856
856
|
/**
|
|
857
857
|
* @internal
|
|
858
858
|
*/
|
|
@@ -874,7 +874,7 @@ type FlexProps<E extends ElementType = 'div'> = Props<FlexOwnProps, E>;
|
|
|
874
874
|
*
|
|
875
875
|
* @public
|
|
876
876
|
*/
|
|
877
|
-
declare const Flex: <E extends ElementType = 'div'>(props: FlexProps<E>) => React.JSX.Element;
|
|
877
|
+
export declare const Flex: <E extends ElementType = 'div'>(props: FlexProps<E>) => React.JSX.Element;
|
|
878
878
|
/**
|
|
879
879
|
* @public
|
|
880
880
|
*/
|
|
@@ -888,7 +888,7 @@ type GridProps<E extends ElementType = 'div'> = Props<GridOwnProps, E>;
|
|
|
888
888
|
*
|
|
889
889
|
* @public
|
|
890
890
|
*/
|
|
891
|
-
declare const Grid: <E extends ElementType = 'div'>(props: GridProps<E>) => React.JSX.Element;
|
|
891
|
+
export declare const Grid: <E extends ElementType = 'div'>(props: GridProps<E>) => React.JSX.Element;
|
|
892
892
|
/**
|
|
893
893
|
* @public
|
|
894
894
|
*/
|
|
@@ -918,7 +918,7 @@ type HeadingProps<E extends ElementType = 'div'> = Props<HeadingOwnProps, E>;
|
|
|
918
918
|
*
|
|
919
919
|
* @public
|
|
920
920
|
*/
|
|
921
|
-
declare const Heading: <E extends ElementType = 'div'>(props: HeadingProps<E>) => React.JSX.Element;
|
|
921
|
+
export declare const Heading: <E extends ElementType = 'div'>(props: HeadingProps<E>) => React.JSX.Element;
|
|
922
922
|
/**
|
|
923
923
|
* @public
|
|
924
924
|
*/
|
|
@@ -936,7 +936,7 @@ type KBDProps<E extends ElementType = 'kbd'> = Props<KBDOwnProps, E>;
|
|
|
936
936
|
*
|
|
937
937
|
* @public
|
|
938
938
|
*/
|
|
939
|
-
declare const KBD: <E extends ElementType = 'kbd'>(props: KBDProps<E>) => React.JSX.Element;
|
|
939
|
+
export declare const KBD: <E extends ElementType = 'kbd'>(props: KBDProps<E>) => React.JSX.Element;
|
|
940
940
|
/**
|
|
941
941
|
* @public
|
|
942
942
|
*/
|
|
@@ -962,7 +962,7 @@ type LabelProps<E extends ElementType = 'div'> = Props<LabelOwnProps, E>;
|
|
|
962
962
|
*
|
|
963
963
|
* @public
|
|
964
964
|
*/
|
|
965
|
-
declare const Label: <E extends ElementType = 'div'>(props: LabelProps<E>) => React.JSX.Element;
|
|
965
|
+
export declare const Label: <E extends ElementType = 'div'>(props: LabelProps<E>) => React.JSX.Element;
|
|
966
966
|
/**
|
|
967
967
|
* @public
|
|
968
968
|
*/
|
|
@@ -974,7 +974,7 @@ interface RadioProps {
|
|
|
974
974
|
*
|
|
975
975
|
* @public
|
|
976
976
|
*/
|
|
977
|
-
declare function Radio(props: Omit<React.HTMLProps<HTMLInputElement>, 'as' | 'type'> & RadioProps): import("react").JSX.Element;
|
|
977
|
+
export declare function Radio(props: Omit<React.HTMLProps<HTMLInputElement>, 'as' | 'type'> & RadioProps): import("react").JSX.Element;
|
|
978
978
|
/**
|
|
979
979
|
* @public
|
|
980
980
|
*/
|
|
@@ -994,7 +994,7 @@ interface SelectProps {
|
|
|
994
994
|
*
|
|
995
995
|
* @public
|
|
996
996
|
*/
|
|
997
|
-
declare function Select(props: SelectProps & Omit<React.HTMLProps<HTMLSelectElement>, 'as'>): import("react").JSX.Element;
|
|
997
|
+
export declare function Select(props: SelectProps & Omit<React.HTMLProps<HTMLSelectElement>, 'as'>): import("react").JSX.Element;
|
|
998
998
|
/**
|
|
999
999
|
* @public
|
|
1000
1000
|
*/
|
|
@@ -1007,7 +1007,7 @@ interface SpinnerProps {
|
|
|
1007
1007
|
*
|
|
1008
1008
|
* @public
|
|
1009
1009
|
*/
|
|
1010
|
-
declare function Spinner(props: SpinnerProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'size'>): import("react").JSX.Element;
|
|
1010
|
+
export declare function Spinner(props: SpinnerProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'size'>): import("react").JSX.Element;
|
|
1011
1011
|
/**
|
|
1012
1012
|
* @public
|
|
1013
1013
|
*/
|
|
@@ -1027,7 +1027,7 @@ type StackProps<E extends ElementType = 'div'> = Props<StackOwnProps, E>;
|
|
|
1027
1027
|
*
|
|
1028
1028
|
* @public
|
|
1029
1029
|
*/
|
|
1030
|
-
declare const Stack: <E extends ElementType = 'div'>(props: StackProps<E>) => React.JSX.Element;
|
|
1030
|
+
export declare const Stack: <E extends ElementType = 'div'>(props: StackProps<E>) => React.JSX.Element;
|
|
1031
1031
|
/**
|
|
1032
1032
|
* @public
|
|
1033
1033
|
*/
|
|
@@ -1041,7 +1041,7 @@ interface SwitchProps {
|
|
|
1041
1041
|
*
|
|
1042
1042
|
* @public
|
|
1043
1043
|
*/
|
|
1044
|
-
declare function Switch(props: Omit<React.HTMLProps<HTMLInputElement>, 'as' | 'type'> & SwitchProps): import("react").JSX.Element;
|
|
1044
|
+
export declare function Switch(props: Omit<React.HTMLProps<HTMLInputElement>, 'as' | 'type'> & SwitchProps): import("react").JSX.Element;
|
|
1045
1045
|
/**
|
|
1046
1046
|
* @public
|
|
1047
1047
|
*/
|
|
@@ -1068,7 +1068,7 @@ type TextProps<E extends ElementType = 'div'> = Props<TextOwnProps, E>;
|
|
|
1068
1068
|
*
|
|
1069
1069
|
* @public
|
|
1070
1070
|
*/
|
|
1071
|
-
declare const Text: <E extends ElementType = 'div'>(props: TextProps<E>) => React.JSX.Element;
|
|
1071
|
+
export declare const Text: <E extends ElementType = 'div'>(props: TextProps<E>) => React.JSX.Element;
|
|
1072
1072
|
/**
|
|
1073
1073
|
* @public
|
|
1074
1074
|
*/
|
|
@@ -1088,7 +1088,7 @@ interface TextAreaProps extends ResponsiveRadiusProps {
|
|
|
1088
1088
|
*
|
|
1089
1089
|
* @public
|
|
1090
1090
|
*/
|
|
1091
|
-
declare function TextArea(props: TextAreaProps & Omit<React.HTMLProps<HTMLTextAreaElement>, 'as'>): import("react").JSX.Element;
|
|
1091
|
+
export declare function TextArea(props: TextAreaProps & Omit<React.HTMLProps<HTMLTextAreaElement>, 'as'>): import("react").JSX.Element;
|
|
1092
1092
|
/**
|
|
1093
1093
|
* @public
|
|
1094
1094
|
*/
|
|
@@ -1135,7 +1135,7 @@ interface TextInputProps {
|
|
|
1135
1135
|
*
|
|
1136
1136
|
* @public
|
|
1137
1137
|
*/
|
|
1138
|
-
declare function TextInput(props: TextInputProps & Omit<React.HTMLProps<HTMLInputElement>, 'as' | 'prefix' | 'type'>): import("react").JSX.Element;
|
|
1138
|
+
export declare function TextInput(props: TextInputProps & Omit<React.HTMLProps<HTMLInputElement>, 'as' | 'prefix' | 'type'>): import("react").JSX.Element;
|
|
1139
1139
|
/**
|
|
1140
1140
|
* @internal
|
|
1141
1141
|
*/
|
|
@@ -1171,47 +1171,47 @@ interface ResponsiveFontStyleProps extends FontWeightStyleProps, ResponsiveFontS
|
|
|
1171
1171
|
* Get responsive CSS for the `code` font style.
|
|
1172
1172
|
* @internal
|
|
1173
1173
|
*/
|
|
1174
|
-
declare function responsiveCodeFontStyle(props: FontWeightStyleProps & ResponsiveFontSizeStyleProps & ThemeProps): CSSObject[];
|
|
1174
|
+
export declare function responsiveCodeFontStyle(props: FontWeightStyleProps & ResponsiveFontSizeStyleProps & ThemeProps): CSSObject[];
|
|
1175
1175
|
/**
|
|
1176
1176
|
* Get responsive CSS for the `heading` font style.
|
|
1177
1177
|
* @internal
|
|
1178
1178
|
*/
|
|
1179
|
-
declare function responsiveHeadingFont(props: ResponsiveFontStyleProps & ThemeProps): CSSObject[];
|
|
1179
|
+
export declare function responsiveHeadingFont(props: ResponsiveFontStyleProps & ThemeProps): CSSObject[];
|
|
1180
1180
|
/**
|
|
1181
1181
|
* Get responsive CSS for the `label` font style.
|
|
1182
1182
|
* @internal
|
|
1183
1183
|
*/
|
|
1184
|
-
declare function responsiveLabelFont(props: ResponsiveFontStyleProps & ThemeProps): CSSObject[];
|
|
1184
|
+
export declare function responsiveLabelFont(props: ResponsiveFontStyleProps & ThemeProps): CSSObject[];
|
|
1185
1185
|
/**
|
|
1186
1186
|
* Get responsive text align styles.
|
|
1187
1187
|
* @internal
|
|
1188
1188
|
*/
|
|
1189
|
-
declare function responsiveTextAlignStyle(props: ResponsiveTextAlignStyleProps & ThemeProps): CSSObject[];
|
|
1189
|
+
export declare function responsiveTextAlignStyle(props: ResponsiveTextAlignStyleProps & ThemeProps): CSSObject[];
|
|
1190
1190
|
/**
|
|
1191
1191
|
* Get responsive CSS for the `text` font style.
|
|
1192
1192
|
* @internal
|
|
1193
1193
|
*/
|
|
1194
|
-
declare function responsiveTextFont(props: ResponsiveFontStyleProps & ThemeProps): CSSObject[];
|
|
1194
|
+
export declare function responsiveTextFont(props: ResponsiveFontStyleProps & ThemeProps): CSSObject[];
|
|
1195
1195
|
/**
|
|
1196
1196
|
* @internal
|
|
1197
1197
|
*/
|
|
1198
|
-
declare function _fillCSSObject(keys: string[], value: string | number | CSSObject): CSSObject;
|
|
1198
|
+
export declare function _fillCSSObject(keys: string[], value: string | number | CSSObject): CSSObject;
|
|
1199
1199
|
/**
|
|
1200
1200
|
* @public
|
|
1201
1201
|
*/
|
|
1202
|
-
declare function rem(pixelValue: number): string | 0;
|
|
1202
|
+
export declare function rem(pixelValue: number): string | 0;
|
|
1203
1203
|
/**
|
|
1204
1204
|
* @internal
|
|
1205
1205
|
*/
|
|
1206
|
-
declare function _responsive<T>(media: number[], values: T[], callback: (value: T, index: number, array: T[]) => CSSObject): CSSObject[];
|
|
1206
|
+
export declare function _responsive<T>(media: number[], values: T[], callback: (value: T, index: number, array: T[]) => CSSObject): CSSObject[];
|
|
1207
1207
|
/**
|
|
1208
1208
|
* @internal
|
|
1209
1209
|
*/
|
|
1210
|
-
declare function _getArrayProp<T = number>(val: T | T[] | undefined, defaultVal?: T[]): T[];
|
|
1210
|
+
export declare function _getArrayProp<T = number>(val: T | T[] | undefined, defaultVal?: T[]): T[];
|
|
1211
1211
|
/**
|
|
1212
1212
|
* @internal
|
|
1213
1213
|
*/
|
|
1214
|
-
declare function _getResponsiveSpace(theme: Theme$1, props: string[], spaceIndexes?: number[]): CSSObject[] | null;
|
|
1214
|
+
export declare function _getResponsiveSpace(theme: Theme$1, props: string[], spaceIndexes?: number[]): CSSObject[] | null;
|
|
1215
1215
|
/**
|
|
1216
1216
|
* @public
|
|
1217
1217
|
*/
|
|
@@ -1223,7 +1223,7 @@ interface ThemeColorProviderProps {
|
|
|
1223
1223
|
/**
|
|
1224
1224
|
* @public
|
|
1225
1225
|
*/
|
|
1226
|
-
declare function ThemeColorProvider(props: ThemeColorProviderProps): React.JSX.Element;
|
|
1226
|
+
export declare function ThemeColorProvider(props: ThemeColorProviderProps): React.JSX.Element;
|
|
1227
1227
|
/**
|
|
1228
1228
|
* @public
|
|
1229
1229
|
*/
|
|
@@ -1236,7 +1236,7 @@ interface ThemeProviderProps {
|
|
|
1236
1236
|
/**
|
|
1237
1237
|
* @public
|
|
1238
1238
|
*/
|
|
1239
|
-
declare function ThemeProvider(props: ThemeProviderProps): React.JSX.Element;
|
|
1239
|
+
export declare function ThemeProvider(props: ThemeProviderProps): React.JSX.Element;
|
|
1240
1240
|
/**
|
|
1241
1241
|
* @public
|
|
1242
1242
|
*/
|
|
@@ -1250,17 +1250,17 @@ interface ThemeContextValue {
|
|
|
1250
1250
|
/**
|
|
1251
1251
|
* @public
|
|
1252
1252
|
*/
|
|
1253
|
-
declare function useRootTheme(): ThemeContextValue;
|
|
1253
|
+
export declare function useRootTheme(): ThemeContextValue;
|
|
1254
1254
|
/**
|
|
1255
1255
|
* @public
|
|
1256
1256
|
*/
|
|
1257
|
-
declare function useTheme(): Theme$1;
|
|
1257
|
+
export declare function useTheme(): Theme$1;
|
|
1258
1258
|
/**
|
|
1259
1259
|
* @public
|
|
1260
1260
|
*/
|
|
1261
|
-
declare function useTheme_v2(): Theme_v2;
|
|
1261
|
+
export declare function useTheme_v2(): Theme_v2;
|
|
1262
1262
|
/** @internal */
|
|
1263
|
-
declare function Arrow(props: {
|
|
1263
|
+
export declare function Arrow(props: {
|
|
1264
1264
|
width: number;
|
|
1265
1265
|
height: number;
|
|
1266
1266
|
radius?: number;
|
|
@@ -1275,7 +1275,7 @@ interface BoundaryElementProviderProps {
|
|
|
1275
1275
|
/**
|
|
1276
1276
|
* @public
|
|
1277
1277
|
*/
|
|
1278
|
-
declare function BoundaryElementProvider(props: BoundaryElementProviderProps): React.JSX.Element;
|
|
1278
|
+
export declare function BoundaryElementProvider(props: BoundaryElementProviderProps): React.JSX.Element;
|
|
1279
1279
|
/**
|
|
1280
1280
|
* @public
|
|
1281
1281
|
*/
|
|
@@ -1286,12 +1286,12 @@ interface BoundaryElementContextValue {
|
|
|
1286
1286
|
/**
|
|
1287
1287
|
* @public
|
|
1288
1288
|
*/
|
|
1289
|
-
declare function useBoundaryElement(): BoundaryElementContextValue;
|
|
1289
|
+
export declare function useBoundaryElement(): BoundaryElementContextValue;
|
|
1290
1290
|
/**
|
|
1291
1291
|
* @internal
|
|
1292
1292
|
* @deprecated ConditionalWrapper was removed in @sanity/ui v4. Inline the conditional wrapping logic instead.
|
|
1293
1293
|
*/
|
|
1294
|
-
declare function ConditionalWrapper(_props?: never): never;
|
|
1294
|
+
export declare function ConditionalWrapper(_props?: never): never;
|
|
1295
1295
|
/**
|
|
1296
1296
|
* DO NOT USE IN PRODUCTION.
|
|
1297
1297
|
* @beta
|
|
@@ -1304,7 +1304,7 @@ interface MediaQueryProps {
|
|
|
1304
1304
|
* DO NOT USE IN PRODUCTION.
|
|
1305
1305
|
* @beta
|
|
1306
1306
|
*/
|
|
1307
|
-
declare function ElementQuery(props: MediaQueryProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'media'>): import("react").JSX.Element;
|
|
1307
|
+
export declare function ElementQuery(props: MediaQueryProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'media'>): import("react").JSX.Element;
|
|
1308
1308
|
/**
|
|
1309
1309
|
* DO NOT USE IN PRODUCTION
|
|
1310
1310
|
* @beta
|
|
@@ -1326,7 +1326,7 @@ interface ErrorBoundaryState {
|
|
|
1326
1326
|
* DO NOT USE IN PRODUCTION
|
|
1327
1327
|
* @beta
|
|
1328
1328
|
*/
|
|
1329
|
-
declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
1329
|
+
export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
1330
1330
|
state: ErrorBoundaryState;
|
|
1331
1331
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
1332
1332
|
componentDidCatch(error: Error, info: React.ErrorInfo): void;
|
|
@@ -1342,7 +1342,7 @@ interface LayerProviderProps {
|
|
|
1342
1342
|
/**
|
|
1343
1343
|
* @public
|
|
1344
1344
|
*/
|
|
1345
|
-
declare function LayerProvider(props: LayerProviderProps): React.JSX.Element;
|
|
1345
|
+
export declare function LayerProvider(props: LayerProviderProps): React.JSX.Element;
|
|
1346
1346
|
/** @public */
|
|
1347
1347
|
interface LayerContextValue {
|
|
1348
1348
|
version: 0.0;
|
|
@@ -1355,7 +1355,7 @@ interface LayerContextValue {
|
|
|
1355
1355
|
/**
|
|
1356
1356
|
* @public
|
|
1357
1357
|
*/
|
|
1358
|
-
declare function useLayer(): LayerContextValue;
|
|
1358
|
+
export declare function useLayer(): LayerContextValue;
|
|
1359
1359
|
/**
|
|
1360
1360
|
* @public
|
|
1361
1361
|
*/
|
|
@@ -1369,7 +1369,7 @@ interface PortalProps {
|
|
|
1369
1369
|
/**
|
|
1370
1370
|
* @public
|
|
1371
1371
|
*/
|
|
1372
|
-
declare function Portal(props: PortalProps): React.ReactPortal | null;
|
|
1372
|
+
export declare function Portal(props: PortalProps): React.ReactPortal | null;
|
|
1373
1373
|
/**
|
|
1374
1374
|
* @public
|
|
1375
1375
|
*/
|
|
@@ -1388,7 +1388,7 @@ interface PortalProviderProps {
|
|
|
1388
1388
|
/**
|
|
1389
1389
|
* @public
|
|
1390
1390
|
*/
|
|
1391
|
-
declare function PortalProvider(props: PortalProviderProps): React.JSX.Element;
|
|
1391
|
+
export declare function PortalProvider(props: PortalProviderProps): React.JSX.Element;
|
|
1392
1392
|
/**
|
|
1393
1393
|
* @public
|
|
1394
1394
|
*/
|
|
@@ -1401,7 +1401,7 @@ interface PortalContextValue {
|
|
|
1401
1401
|
/**
|
|
1402
1402
|
* @public
|
|
1403
1403
|
*/
|
|
1404
|
-
declare function usePortal(): PortalContextValue;
|
|
1404
|
+
export declare function usePortal(): PortalContextValue;
|
|
1405
1405
|
/**
|
|
1406
1406
|
* @public
|
|
1407
1407
|
*/
|
|
@@ -1412,7 +1412,7 @@ interface SrOnlyProps {
|
|
|
1412
1412
|
/**
|
|
1413
1413
|
* @public
|
|
1414
1414
|
*/
|
|
1415
|
-
declare function SrOnly(props: SrOnlyProps & Omit<React.HTMLProps<HTMLDivElement>, 'aria-hidden' | 'as'>): import("react").JSX.Element;
|
|
1415
|
+
export declare function SrOnly(props: SrOnlyProps & Omit<React.HTMLProps<HTMLDivElement>, 'aria-hidden' | 'as'>): import("react").JSX.Element;
|
|
1416
1416
|
/**
|
|
1417
1417
|
* @beta
|
|
1418
1418
|
*/
|
|
@@ -1438,108 +1438,108 @@ interface VirtualListProps<Item = any> {
|
|
|
1438
1438
|
/**
|
|
1439
1439
|
* @beta
|
|
1440
1440
|
*/
|
|
1441
|
-
declare function VirtualList(props: VirtualListProps & StackOwnProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'children' | 'onChange'>): React.JSX.Element;
|
|
1441
|
+
export declare function VirtualList(props: VirtualListProps & StackOwnProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'children' | 'onChange'>): React.JSX.Element;
|
|
1442
1442
|
/** @deprecated Moved to `@sanity/ui/autocomplete` */
|
|
1443
|
-
declare const Autocomplete: never;
|
|
1443
|
+
export declare const Autocomplete: never;
|
|
1444
1444
|
/** @deprecated Moved to `@sanity/ui/autocomplete` */
|
|
1445
|
-
type AutocompleteInputChangeMsg = never;
|
|
1445
|
+
export type AutocompleteInputChangeMsg = never;
|
|
1446
1446
|
/** @deprecated Moved to `@sanity/ui/autocomplete` */
|
|
1447
|
-
type AutocompleteInputFoocusMsg = never;
|
|
1447
|
+
export type AutocompleteInputFoocusMsg = never;
|
|
1448
1448
|
/** @deprecated Moved to `@sanity/ui/autocomplete` */
|
|
1449
|
-
type AutocompleteMsg = never;
|
|
1449
|
+
export type AutocompleteMsg = never;
|
|
1450
1450
|
/** @deprecated Moved to `@sanity/ui/autocomplete` */
|
|
1451
|
-
type AutocompleteOpenButtonProps = never;
|
|
1451
|
+
export type AutocompleteOpenButtonProps = never;
|
|
1452
1452
|
/** @deprecated Moved to `@sanity/ui/autocomplete` */
|
|
1453
|
-
type AutocompleteProps = never;
|
|
1453
|
+
export type AutocompleteProps = never;
|
|
1454
1454
|
/** @deprecated Moved to `@sanity/ui/autocomplete` */
|
|
1455
|
-
type AutocompleteRootBlurMsg = never;
|
|
1455
|
+
export type AutocompleteRootBlurMsg = never;
|
|
1456
1456
|
/** @deprecated Moved to `@sanity/ui/autocomplete` */
|
|
1457
|
-
type AutocompleteRootClearMsg = never;
|
|
1457
|
+
export type AutocompleteRootClearMsg = never;
|
|
1458
1458
|
/** @deprecated Moved to `@sanity/ui/autocomplete` */
|
|
1459
|
-
type AutocompleteRootEscapeMsg = never;
|
|
1459
|
+
export type AutocompleteRootEscapeMsg = never;
|
|
1460
1460
|
/** @deprecated Moved to `@sanity/ui/autocomplete` */
|
|
1461
|
-
type AutocompleteRootOpenMsg = never;
|
|
1461
|
+
export type AutocompleteRootOpenMsg = never;
|
|
1462
1462
|
/** @deprecated Moved to `@sanity/ui/autocomplete` */
|
|
1463
|
-
type AutocompleteRootSetActiveValueMsg = never;
|
|
1463
|
+
export type AutocompleteRootSetActiveValueMsg = never;
|
|
1464
1464
|
/** @deprecated Moved to `@sanity/ui/autocomplete` */
|
|
1465
|
-
type AutocompleteRootSetListFocusedMsg = never;
|
|
1465
|
+
export type AutocompleteRootSetListFocusedMsg = never;
|
|
1466
1466
|
/** @deprecated Moved to `@sanity/ui/autocomplete` */
|
|
1467
|
-
type AutocompleteState = never;
|
|
1467
|
+
export type AutocompleteState = never;
|
|
1468
1468
|
/** @deprecated Moved to `@sanity/ui/autocomplete` */
|
|
1469
|
-
type AutocompleteValueChangeMsg = never;
|
|
1469
|
+
export type AutocompleteValueChangeMsg = never;
|
|
1470
1470
|
/** @deprecated Moved to `@sanity/ui/autocomplete` */
|
|
1471
|
-
type BaseAutocompleteOption = never;
|
|
1471
|
+
export type BaseAutocompleteOption = never;
|
|
1472
1472
|
/** @deprecated Moved to `@sanity/ui/breadcrumbs` */
|
|
1473
|
-
declare const Breadcrumbs: never;
|
|
1473
|
+
export declare const Breadcrumbs: never;
|
|
1474
1474
|
/** @deprecated Moved to `@sanity/ui/breadcrumbs` */
|
|
1475
|
-
type BreadcrumbsProps = never;
|
|
1475
|
+
export type BreadcrumbsProps = never;
|
|
1476
1476
|
/** @deprecated Moved to `@sanity/ui/code` */
|
|
1477
|
-
declare const Code: never;
|
|
1477
|
+
export declare const Code: never;
|
|
1478
1478
|
/** @deprecated Moved to `@sanity/ui/code` */
|
|
1479
|
-
type CodeOwnProps = never;
|
|
1479
|
+
export type CodeOwnProps = never;
|
|
1480
1480
|
/** @deprecated Moved to `@sanity/ui/code` */
|
|
1481
|
-
type CodeProps = never;
|
|
1481
|
+
export type CodeProps = never;
|
|
1482
1482
|
/** @deprecated Moved to `@sanity/ui/menu` */
|
|
1483
|
-
declare const Menu: never;
|
|
1483
|
+
export declare const Menu: never;
|
|
1484
1484
|
/** @deprecated Moved to `@sanity/ui/menu` */
|
|
1485
|
-
declare const MenuButton: never;
|
|
1485
|
+
export declare const MenuButton: never;
|
|
1486
1486
|
/** @deprecated Moved to `@sanity/ui/menu` */
|
|
1487
|
-
type MenuButtonProps = never;
|
|
1487
|
+
export type MenuButtonProps = never;
|
|
1488
1488
|
/** @deprecated Moved to `@sanity/ui/menu` */
|
|
1489
|
-
declare const MenuDivider: never;
|
|
1489
|
+
export declare const MenuDivider: never;
|
|
1490
1490
|
/** @deprecated Moved to `@sanity/ui/menu` */
|
|
1491
|
-
type MenuDividerProps = never;
|
|
1491
|
+
export type MenuDividerProps = never;
|
|
1492
1492
|
/** @deprecated Moved to `@sanity/ui/menu` */
|
|
1493
|
-
declare const MenuGroup: never;
|
|
1493
|
+
export declare const MenuGroup: never;
|
|
1494
1494
|
/** @deprecated Moved to `@sanity/ui/menu` */
|
|
1495
|
-
type MenuGroupOwnProps = never;
|
|
1495
|
+
export type MenuGroupOwnProps = never;
|
|
1496
1496
|
/** @deprecated Moved to `@sanity/ui/menu` */
|
|
1497
|
-
type MenuGroupProps = never;
|
|
1497
|
+
export type MenuGroupProps = never;
|
|
1498
1498
|
/** @deprecated Moved to `@sanity/ui/menu` */
|
|
1499
|
-
declare const MenuItem: never;
|
|
1499
|
+
export declare const MenuItem: never;
|
|
1500
1500
|
/** @deprecated Moved to `@sanity/ui/menu` */
|
|
1501
|
-
type MenuItemOwnProps = never;
|
|
1501
|
+
export type MenuItemOwnProps = never;
|
|
1502
1502
|
/** @deprecated Moved to `@sanity/ui/menu` */
|
|
1503
|
-
type MenuItemProps = never;
|
|
1503
|
+
export type MenuItemProps = never;
|
|
1504
1504
|
/** @deprecated Moved to `@sanity/ui/menu` */
|
|
1505
|
-
type MenuProps = never;
|
|
1505
|
+
export type MenuProps = never;
|
|
1506
1506
|
/** @deprecated Moved to `@sanity/ui/popover` */
|
|
1507
|
-
declare const Popover: never;
|
|
1507
|
+
export declare const Popover: never;
|
|
1508
1508
|
/** @deprecated Moved to `@sanity/ui/popover` */
|
|
1509
|
-
type PopoverMargins = never;
|
|
1509
|
+
export type PopoverMargins = never;
|
|
1510
1510
|
/** @deprecated Moved to `@sanity/ui/popover` */
|
|
1511
|
-
type PopoverProps = never;
|
|
1511
|
+
export type PopoverProps = never;
|
|
1512
1512
|
/** @deprecated Moved to `@sanity/ui/popover` */
|
|
1513
|
-
type PopoverUpdateCallback = never;
|
|
1513
|
+
export type PopoverUpdateCallback = never;
|
|
1514
1514
|
/** @deprecated Moved to `@sanity/ui/popover` */
|
|
1515
|
-
type PopoverWidth = never;
|
|
1515
|
+
export type PopoverWidth = never;
|
|
1516
1516
|
/** @deprecated Moved to `@sanity/ui/toast` */
|
|
1517
|
-
declare const Toast: never;
|
|
1517
|
+
export declare const Toast: never;
|
|
1518
1518
|
/** @deprecated Moved to `@sanity/ui/toast` */
|
|
1519
|
-
type ToastContextValue = never;
|
|
1519
|
+
export type ToastContextValue = never;
|
|
1520
1520
|
/** @deprecated Moved to `@sanity/ui/toast` */
|
|
1521
|
-
type ToastParams = never;
|
|
1521
|
+
export type ToastParams = never;
|
|
1522
1522
|
/** @deprecated Moved to `@sanity/ui/toast` */
|
|
1523
|
-
type ToastProps = never;
|
|
1523
|
+
export type ToastProps = never;
|
|
1524
1524
|
/** @deprecated Moved to `@sanity/ui/toast` */
|
|
1525
|
-
declare const ToastProvider: never;
|
|
1525
|
+
export declare const ToastProvider: never;
|
|
1526
1526
|
/** @deprecated Moved to `@sanity/ui/toast` */
|
|
1527
|
-
type ToastProviderProps = never;
|
|
1527
|
+
export type ToastProviderProps = never;
|
|
1528
1528
|
/** @deprecated Moved to `@sanity/ui/toast` */
|
|
1529
|
-
declare const useToast: never;
|
|
1529
|
+
export declare const useToast: never;
|
|
1530
1530
|
/** @deprecated Moved to `@sanity/ui/tooltip` */
|
|
1531
|
-
declare const Tooltip: never;
|
|
1531
|
+
export declare const Tooltip: never;
|
|
1532
1532
|
/** @deprecated Moved to `@sanity/ui/tooltip` */
|
|
1533
|
-
declare const TooltipDelayGroupContext: never;
|
|
1533
|
+
export declare const TooltipDelayGroupContext: never;
|
|
1534
1534
|
/** @deprecated Moved to `@sanity/ui/tooltip` */
|
|
1535
|
-
type TooltipDelayGroupContextValue = never;
|
|
1535
|
+
export type TooltipDelayGroupContextValue = never;
|
|
1536
1536
|
/** @deprecated Moved to `@sanity/ui/tooltip` */
|
|
1537
|
-
declare const TooltipDelayGroupProvider: never;
|
|
1537
|
+
export declare const TooltipDelayGroupProvider: never;
|
|
1538
1538
|
/** @deprecated Moved to `@sanity/ui/tooltip` */
|
|
1539
|
-
type TooltipDelayGroupProviderProps = never;
|
|
1539
|
+
export type TooltipDelayGroupProviderProps = never;
|
|
1540
1540
|
/** @deprecated Moved to `@sanity/ui/tooltip` */
|
|
1541
|
-
type TooltipProps = never;
|
|
1541
|
+
export type TooltipProps = never;
|
|
1542
1542
|
/** @deprecated Moved to `@sanity/ui/tooltip` */
|
|
1543
|
-
declare const useTooltipDelayGroup: never;
|
|
1544
|
-
export { type ArrayPropPrimitive,
|
|
1543
|
+
export declare const useTooltipDelayGroup: never;
|
|
1544
|
+
export { type ArrayPropPrimitive, type Assign, type AvatarCounterProps, type AvatarOwnProps, type AvatarPosition, type AvatarProps, type AvatarRootStyleProps, type AvatarSize, type AvatarStackProps, type AvatarStatus, type BadgeMode, type BadgeOwnProps, type BadgeProps, type BadgeTone, type BaseTheme, type BoundaryElementContextValue, type BoundaryElementProviderProps, Box, type BoxDisplay, type BoxHeight, type BoxOverflow, type BoxOwnProps, type BoxProps, type BoxShadow, type BoxSizing, Button, type ButtonMode, type ButtonOwnProps, type ButtonProps, type ButtonTextAlign, type ButtonTone, type ButtonWidth, type CardOwnProps, type CardProps, type CardStyleProps, type CardTone, type CheckboxProps, type ClickOutsideElements, type ClickOutsideEventElements, type ClickOutsideEventListener, type ClickOutsideListener, type CodeSkeletonProps, type ComponentType, type ContainerOwnProps, type ContainerProps, type Delay, type DialogContextValue, type DialogPosition, type DialogProps, type DialogProviderProps, type ElementRectValue, type ElementSize, type ElementType, type EmptyProps, type ErrorBoundaryProps, type ErrorBoundaryState, type FlexAlign, type FlexDirection, type FlexJustify, type FlexOwnProps, type FlexProps, type FlexValue, type FlexWrap, type FontWeightStyleProps, type GridAutoCols, type GridAutoFlow, type GridAutoRows, type GridItemColumn, type GridItemColumnEnd, type GridItemColumnStart, type GridItemRow, type GridItemRowEnd, type GridItemRowStart, type GridOwnProps, type GridProps, type HSL, type HeadingOwnProps, type HeadingProps, type HeadingSkeletonProps, type HotkeysProps, type InlineOwnProps, type InlineProps, type KBDOwnProps, type KBDProps, type LabelOwnProps, type LabelProps, type LabelSkeletonProps, Layer, type LayerContextValue, type LayerProps, type LayerProviderProps, type MediaQueryProps, type PartialThemeColorBuilderOpts, type Placement, type PortalContextValue, type PortalProps, type PortalProviderProps, type Props, type RGB, 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, type SelectProps, type SelectableTone, type SkeletonProps, type SpinnerProps, type SrOnlyProps, type StackOwnProps, type StackProps, type Styles, type SwitchProps, type TabListProps, type TabPanelProps, type TabProps, type TagType, type TextAlign, type TextAreaProps, type TextInputClearButtonProps, type TextInputProps, type TextInputType, type TextOwnProps, type TextProps, 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, 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, type ThemeProviderProps, type ThemeShadow, type TreeContextValue, type TreeItemProps, type TreeProps, type TreeState, type VirtualListChangeOpts, type VirtualListProps, type _ElementSizeListener, type _ElementSizeObserver, type _ElementSizeSubscriber, type _MediaStore };
|
|
1545
1545
|
//# sourceMappingURL=index.d.ts.map
|