@sanity/ui 0.38.2-next.14 → 0.38.2-next.16
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 +5 -4
- package/dist/sanity-ui.cjs +260 -10107
- package/dist/sanity-ui.cjs.map +1 -1
- package/dist/sanity-ui.js +260 -9983
- package/dist/sanity-ui.js.map +1 -1
- package/dist/types/src/index.d.ts +239 -227
- package/package.json +20 -17
- package/src/__workshop__/color/overview.tsx +1 -1
- package/src/components/autocomplete/__workshop__/async.tsx +1 -1
- package/src/components/autocomplete/__workshop__/constrainedHeight.tsx +1 -1
- package/src/components/autocomplete/__workshop__/custom.tsx +1 -1
- package/src/components/autocomplete/__workshop__/example.tsx +1 -1
- package/src/components/autocomplete/__workshop__/focusAndBlur.tsx +1 -1
- package/src/components/autocomplete/__workshop__/fullscreen.tsx +1 -1
- package/src/components/autocomplete/autocomplete.tsx +1 -1
- package/src/components/autocomplete/autocompleteOption.tsx +1 -1
- package/src/components/breadcrumbs/__workshop__/example.tsx +1 -0
- package/src/components/breadcrumbs/breadcrumbs.tsx +9 -1
- package/src/components/dialog/__workshop__/autoFocus.tsx +1 -0
- package/src/components/dialog/__workshop__/layering.tsx +1 -0
- package/src/components/dialog/__workshop__/nested.tsx +1 -1
- package/src/components/dialog/__workshop__/onScroll.tsx +1 -1
- package/src/components/dialog/__workshop__/position.tsx +1 -0
- package/src/components/dialog/__workshop__/props.tsx +1 -1
- package/src/components/dialog/__workshop__/provider.tsx +1 -0
- package/src/components/dialog/dialog.tsx +1 -1
- package/src/components/dialog/dialogProvider.tsx +1 -1
- package/src/components/hotkeys/__workshop__/plain.tsx +1 -0
- package/src/components/hotkeys/hotkeys.tsx +1 -1
- package/src/components/menu/__workshop__/asComponent.tsx +1 -1
- package/src/components/menu/__workshop__/closableMenuButton.tsx +1 -1
- package/src/components/menu/__workshop__/constrainedInBoundary.tsx +1 -1
- package/src/components/menu/__workshop__/customMenuItem.tsx +1 -0
- package/src/components/menu/__workshop__/disableFocusOnClose.tsx +1 -0
- package/src/components/menu/__workshop__/groups.tsx +1 -0
- package/src/components/menu/__workshop__/menuButton.tsx +1 -0
- package/src/components/menu/__workshop__/menuGroupRight.tsx +1 -0
- package/src/components/menu/__workshop__/nestedMenu.tsx +1 -0
- package/src/components/menu/__workshop__/onCloseMenuButton.tsx +1 -1
- package/src/components/menu/__workshop__/selectedItem.tsx +1 -1
- package/src/components/menu/__workshop__/tones.tsx +1 -0
- package/src/components/menu/__workshop__/withoutArrow.tsx +1 -0
- package/src/components/menu/menu.test.tsx +5 -4
- package/src/components/menu/menu.tsx +1 -1
- package/src/components/menu/menuButton.tsx +9 -1
- package/src/components/menu/menuGroup.tsx +1 -1
- package/src/components/menu/menuItem.tsx +1 -1
- package/src/components/menu/useMenuController.ts +1 -1
- package/src/components/skeleton/__workshop__/delay.tsx +1 -0
- package/src/components/skeleton/__workshop__/skeleton.tsx +1 -0
- package/src/components/skeleton/skeleton.tsx +1 -1
- package/src/components/skeleton/textSkeleton.tsx +1 -1
- package/src/components/tab/__workshop__/example.tsx +1 -1
- package/src/components/tab/tab.tsx +1 -1
- package/src/components/tab/tabList.tsx +1 -1
- package/src/components/tab/tabPanel.tsx +1 -1
- package/src/components/toast/__workshop__/hook.tsx +1 -0
- package/src/components/toast/__workshop__/toast.tsx +1 -0
- package/src/components/toast/toast.test.tsx +5 -3
- package/src/components/toast/toast.tsx +1 -0
- package/src/components/toast/toastProvider.tsx +1 -1
- package/src/components/tree/__workshop__/basic.tsx +1 -1
- package/src/components/tree/tree.tsx +1 -1
- package/src/components/tree/treeGroup.tsx +1 -1
- package/src/components/tree/treeItem.tsx +3 -3
- package/src/hooks/useElementRect/__workshop__/example.tsx +1 -0
- package/src/hooks/useForwardedRef.ts +1 -1
- package/src/hooks/useMediaIndex/__workshop__/test.tsx +1 -0
- package/src/icons/__workshop__/overview.tsx +1 -1
- package/src/primitives/avatar/__workshop__/asButton.tsx +1 -0
- package/src/primitives/avatar/__workshop__/stack.tsx +1 -0
- package/src/primitives/avatar/avatar.tsx +3 -2
- package/src/primitives/avatar/avatarCounter.tsx +1 -1
- package/src/primitives/avatar/avatarStack.tsx +1 -1
- package/src/primitives/badge/__workshop__/props.tsx +1 -0
- package/src/primitives/badge/__workshop__/tones.tsx +1 -0
- package/src/primitives/badge/badge.tsx +1 -1
- package/src/primitives/box/__workshop__/props.tsx +1 -0
- package/src/primitives/box/__workshop__/responsive.tsx +1 -0
- package/src/primitives/box/box.tsx +1 -1
- package/src/primitives/button/__workshop__/custom.tsx +1 -0
- package/src/primitives/button/__workshop__/customIcons.tsx +1 -0
- package/src/primitives/button/__workshop__/mixedChildren.tsx +1 -0
- package/src/primitives/button/__workshop__/props.tsx +1 -0
- package/src/primitives/button/__workshop__/sanityUploadButton.tsx +1 -0
- package/src/primitives/button/__workshop__/stacked.tsx +1 -0
- package/src/primitives/button/__workshop__/styled1.tsx +1 -0
- package/src/primitives/button/__workshop__/styled2.tsx +1 -0
- package/src/primitives/button/__workshop__/uploadButton.tsx +1 -1
- package/src/primitives/button/button.tsx +1 -1
- package/src/primitives/card/__workshop__/allTones.tsx +1 -0
- package/src/primitives/card/__workshop__/asButton.tsx +1 -0
- package/src/primitives/card/__workshop__/asComponent.tsx +1 -1
- package/src/primitives/card/__workshop__/checkered.tsx +1 -0
- package/src/primitives/card/__workshop__/interactive.tsx +1 -0
- package/src/primitives/card/__workshop__/listNavigation.tsx +1 -0
- package/src/primitives/card/__workshop__/props.tsx +1 -0
- package/src/primitives/card/__workshop__/selected.tsx +1 -0
- package/src/primitives/card/__workshop__/styled.tsx +1 -0
- package/src/primitives/card/card.tsx +1 -1
- package/src/primitives/checkbox/__workshop__/example.tsx +1 -1
- package/src/primitives/checkbox/__workshop__/props.tsx +1 -0
- package/src/primitives/checkbox/__workshop__/readOnly.tsx +1 -0
- package/src/primitives/checkbox/__workshop__/tones.tsx +1 -0
- package/src/primitives/checkbox/checkbox.tsx +1 -1
- package/src/primitives/code/__workshop__/opticalAlignment.tsx +1 -0
- package/src/primitives/code/__workshop__/props.tsx +1 -0
- package/src/primitives/code/code.tsx +1 -1
- package/src/primitives/container/__workshop__/example.tsx +1 -0
- package/src/primitives/container/container.tsx +1 -1
- package/src/primitives/flex/__workshop__/example.tsx +1 -0
- package/src/primitives/flex/__workshop__/gap.tsx +1 -0
- package/src/primitives/flex/flex.tsx +1 -1
- package/src/primitives/grid/__workshop__/responsive.tsx +1 -0
- package/src/primitives/grid/grid.tsx +1 -1
- package/src/primitives/heading/__workshop__/opticalAlignment.tsx +1 -0
- package/src/primitives/heading/__workshop__/plain.tsx +1 -0
- package/src/primitives/heading/heading.tsx +1 -1
- package/src/primitives/inline/__workshop__/plain.tsx +1 -0
- package/src/primitives/inline/inline.tsx +1 -1
- package/src/primitives/kbd/__workshop__/plain.tsx +1 -0
- package/src/primitives/kbd/kbd.tsx +1 -1
- package/src/primitives/label/__workshop__/opticalAlignment.tsx +1 -0
- package/src/primitives/label/__workshop__/plain.tsx +1 -0
- package/src/primitives/label/label.tsx +1 -1
- package/src/primitives/popover/__workshop__/MarginsStory.tsx +1 -0
- package/src/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +1 -0
- package/src/primitives/popover/__workshop__/PlainStory.tsx +1 -1
- package/src/primitives/popover/__workshop__/RecursiveStory.tsx +1 -1
- package/src/primitives/popover/__workshop__/RightAlignedStory.tsx +1 -1
- package/src/primitives/popover/__workshop__/TestStory.tsx +1 -1
- package/src/primitives/popover/arrow.tsx +1 -1
- package/src/primitives/popover/popover.tsx +9 -1
- package/src/primitives/radio/__workshop__/example.tsx +1 -1
- package/src/primitives/radio/__workshop__/plain.tsx +1 -0
- package/src/primitives/radio/radio.tsx +1 -1
- package/src/primitives/select/__workshop__/plain.tsx +1 -0
- package/src/primitives/select/__workshop__/readOnly.tsx +1 -0
- package/src/primitives/select/select.tsx +1 -1
- package/src/primitives/spinner/__workshop__/Props.tsx +1 -0
- package/src/primitives/spinner/spinner.tsx +1 -1
- package/src/primitives/stack/__workshop__/plain.tsx +1 -0
- package/src/primitives/stack/stack.tsx +1 -1
- package/src/primitives/switch/__workshop__/example.tsx +1 -1
- package/src/primitives/switch/__workshop__/props.tsx +1 -1
- package/src/primitives/switch/switch.tsx +1 -1
- package/src/primitives/text/__workshop__/colored.tsx +1 -0
- package/src/primitives/text/__workshop__/example.tsx +1 -0
- package/src/primitives/text/__workshop__/opticalAlignment.tsx +1 -0
- package/src/primitives/text/text.tsx +1 -1
- package/src/primitives/textArea/__workshop__/plain.tsx +1 -0
- package/src/primitives/textArea/textArea.tsx +1 -1
- package/src/primitives/textInput/__workshop__/clearButton.tsx +1 -1
- package/src/primitives/textInput/__workshop__/customValidity.tsx +1 -0
- package/src/primitives/textInput/__workshop__/multipleTones.tsx +1 -0
- package/src/primitives/textInput/__workshop__/plain.tsx +1 -1
- package/src/primitives/textInput/__workshop__/readOnly.tsx +1 -0
- package/src/primitives/textInput/__workshop__/states.tsx +1 -0
- package/src/primitives/textInput/__workshop__/tones.tsx +1 -0
- package/src/primitives/textInput/__workshop__/typed.tsx +1 -1
- package/src/primitives/textInput/textInput.tsx +1 -1
- package/src/primitives/tooltip/__workshop__/props.tsx +1 -0
- package/src/primitives/tooltip/tooltip.tsx +1 -1
- package/src/primitives/tooltip/tooltipArrow.tsx +1 -1
- package/src/styles/font/responsiveFont.ts +0 -13
- package/src/styles/helpers.ts +1 -1
- package/src/theme/__workshop__/canvas.tsx +1 -1
- package/src/theme/__workshop__/color.tsx +1 -0
- package/src/theme/__workshop__/layer.tsx +1 -1
- package/src/theme/__workshop__/nestedProvider.tsx +1 -0
- package/src/theme/theme.test.tsx +5 -3
- package/src/theme/themeColorProvider.tsx +1 -0
- package/src/theme/themeProvider.tsx +1 -1
- package/src/utils/boundaryElement/__workshop__/plain.tsx +1 -1
- package/src/utils/boundaryElement/boundaryElement.test.tsx +5 -3
- package/src/utils/boundaryElement/boundaryElementProvider.tsx +1 -1
- package/src/utils/elementQuery/__workshop__/customMedia.tsx +1 -0
- package/src/utils/elementQuery/elementQuery.tsx +1 -1
- package/src/utils/errorBoundary.tsx +4 -4
- package/src/utils/layer/__workshop__/_debug.tsx +1 -0
- package/src/utils/layer/__workshop__/multipleRoots.tsx +1 -0
- package/src/utils/layer/__workshop__/plain.tsx +1 -1
- package/src/utils/layer/__workshop__/responsiveZOffset.tsx +1 -0
- package/src/utils/layer/layer.test.tsx +5 -3
- package/src/utils/layer/layer.tsx +1 -1
- package/src/utils/layer/layerProvider.tsx +1 -1
- package/src/utils/portal/__workshop__/named.tsx +1 -1
- package/src/utils/portal/portal.test.tsx +5 -3
- package/src/utils/portal/portal.ts +3 -2
- package/src/utils/portal/portalProvider.tsx +1 -1
- package/src/utils/srOnly/srOnly.tsx +1 -1
- package/src/utils/virtualList/__workshop__/changingProps.tsx +1 -1
- package/src/utils/virtualList/__workshop__/elementScroll.tsx +1 -1
- package/src/utils/virtualList/__workshop__/infiniteList.tsx +1 -1
- package/src/utils/virtualList/__workshop__/windowScrolll.tsx +1 -1
- package/src/utils/virtualList/virtualList.tsx +1 -1
- package/src/primitives/badge/badge.test.tsx +0 -13
- package/src/primitives/button/button.test.tsx +0 -41
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
|
|
3
|
-
import {Component} from 'react'
|
|
4
3
|
import {CSSObject} from 'styled-components'
|
|
5
|
-
import {
|
|
6
|
-
import {HTMLProps} from 'react'
|
|
7
|
-
import {MemoExoticComponent} from 'react'
|
|
8
|
-
import {NamedExoticComponent} from 'react'
|
|
9
|
-
import {PropsWithChildren} from 'react'
|
|
10
|
-
import {Ref} from 'react'
|
|
11
|
-
import {RefAttributes} from 'react'
|
|
4
|
+
import {default as React_2} from 'react'
|
|
12
5
|
import {StyledComponent} from 'styled-components'
|
|
13
6
|
|
|
14
7
|
/** @beta */
|
|
@@ -25,7 +18,7 @@ export declare function attemptFocus(element: HTMLElement): boolean
|
|
|
25
18
|
export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
|
|
26
19
|
props: AutocompleteProps<Option> &
|
|
27
20
|
Omit<
|
|
28
|
-
HTMLProps<HTMLInputElement>,
|
|
21
|
+
React_2.HTMLProps<HTMLInputElement>,
|
|
29
22
|
| 'value'
|
|
30
23
|
| 'ref'
|
|
31
24
|
| 'type'
|
|
@@ -45,9 +38,9 @@ export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
|
|
|
45
38
|
| 'as'
|
|
46
39
|
| 'autoComplete'
|
|
47
40
|
> & {
|
|
48
|
-
ref?: Ref<HTMLInputElement> | undefined
|
|
41
|
+
ref?: React_2.Ref<HTMLInputElement> | undefined
|
|
49
42
|
}
|
|
50
|
-
) =>
|
|
43
|
+
) => React_2.ReactElement
|
|
51
44
|
|
|
52
45
|
/**
|
|
53
46
|
* @internal
|
|
@@ -94,7 +87,7 @@ export declare interface AutocompleteProps<
|
|
|
94
87
|
customValidity?: string
|
|
95
88
|
filterOption?: (query: string, option: Option) => boolean
|
|
96
89
|
fontSize?: number | number[]
|
|
97
|
-
icon?:
|
|
90
|
+
icon?: React_2.ComponentType | React_2.ReactNode
|
|
98
91
|
id: string
|
|
99
92
|
/**
|
|
100
93
|
* @beta
|
|
@@ -111,29 +104,29 @@ export declare interface AutocompleteProps<
|
|
|
111
104
|
options?: Option[]
|
|
112
105
|
padding?: number | number[]
|
|
113
106
|
popover?: Omit<PopoverProps, 'content' | 'onMouseEnter' | 'onMouseLeave' | 'open'> &
|
|
114
|
-
Omit<
|
|
115
|
-
prefix?:
|
|
107
|
+
Omit<React_2.HTMLProps<HTMLDivElement>, 'as' | 'children' | 'content' | 'ref' | 'width'>
|
|
108
|
+
prefix?: React_2.ReactNode
|
|
116
109
|
radius?: number | number[]
|
|
117
110
|
/**
|
|
118
111
|
* @beta
|
|
119
112
|
*/
|
|
120
113
|
relatedElements?: HTMLElement[]
|
|
121
|
-
renderOption?: (option: Option) =>
|
|
114
|
+
renderOption?: (option: Option) => React_2.ReactElement
|
|
122
115
|
/**
|
|
123
116
|
* @beta
|
|
124
117
|
*/
|
|
125
118
|
renderPopover?: (
|
|
126
119
|
props: {
|
|
127
|
-
content:
|
|
120
|
+
content: React_2.ReactElement | null
|
|
128
121
|
hidden: boolean
|
|
129
122
|
inputElement: HTMLInputElement | null
|
|
130
123
|
onMouseEnter: () => void
|
|
131
124
|
onMouseLeave: () => void
|
|
132
125
|
},
|
|
133
|
-
ref:
|
|
134
|
-
) =>
|
|
126
|
+
ref: React_2.Ref<HTMLDivElement>
|
|
127
|
+
) => React_2.ReactNode
|
|
135
128
|
renderValue?: (value: string, option?: Option) => string
|
|
136
|
-
suffix?:
|
|
129
|
+
suffix?: React_2.ReactNode
|
|
137
130
|
value?: string
|
|
138
131
|
}
|
|
139
132
|
|
|
@@ -205,15 +198,17 @@ export declare interface AutocompleteValueChangeMsg {
|
|
|
205
198
|
/**
|
|
206
199
|
* @public
|
|
207
200
|
*/
|
|
208
|
-
export declare const Avatar: ForwardRefExoticComponent<
|
|
209
|
-
AvatarProps &
|
|
201
|
+
export declare const Avatar: React_2.ForwardRefExoticComponent<
|
|
202
|
+
AvatarProps &
|
|
203
|
+
Omit<React_2.HTMLProps<HTMLDivElement>, 'ref' | 'as'> &
|
|
204
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
210
205
|
>
|
|
211
206
|
|
|
212
207
|
/**
|
|
213
208
|
* @public
|
|
214
209
|
*/
|
|
215
|
-
export declare const AvatarCounter: ForwardRefExoticComponent<
|
|
216
|
-
AvatarCounterProps & RefAttributes<HTMLDivElement>
|
|
210
|
+
export declare const AvatarCounter: React_2.ForwardRefExoticComponent<
|
|
211
|
+
AvatarCounterProps & React_2.RefAttributes<HTMLDivElement>
|
|
217
212
|
>
|
|
218
213
|
|
|
219
214
|
/**
|
|
@@ -237,7 +232,7 @@ export declare type AvatarPosition = 'top' | 'bottom' | 'inside'
|
|
|
237
232
|
export declare interface AvatarProps {
|
|
238
233
|
animateArrowFrom?: AvatarPosition
|
|
239
234
|
arrowPosition?: AvatarPosition
|
|
240
|
-
as?:
|
|
235
|
+
as?: React_2.ElementType | keyof JSX.IntrinsicElements
|
|
241
236
|
color?: ThemeColorSpotKey
|
|
242
237
|
initials?: string
|
|
243
238
|
onImageLoadError?: (event: Error) => void
|
|
@@ -266,15 +261,17 @@ export declare type AvatarSize = 0 | 1 | 2
|
|
|
266
261
|
/**
|
|
267
262
|
* @public
|
|
268
263
|
*/
|
|
269
|
-
export declare const AvatarStack: ForwardRefExoticComponent<
|
|
270
|
-
AvatarStackProps &
|
|
264
|
+
export declare const AvatarStack: React_2.ForwardRefExoticComponent<
|
|
265
|
+
AvatarStackProps &
|
|
266
|
+
Omit<React_2.HTMLProps<HTMLDivElement>, 'ref' | 'as'> &
|
|
267
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
271
268
|
>
|
|
272
269
|
|
|
273
270
|
/**
|
|
274
271
|
* @public
|
|
275
272
|
*/
|
|
276
273
|
export declare interface AvatarStackProps {
|
|
277
|
-
children:
|
|
274
|
+
children: React_2.ReactNode
|
|
278
275
|
maxLength?: number
|
|
279
276
|
size?: AvatarSize | AvatarSize[]
|
|
280
277
|
/** @deprecated No longer supported. */
|
|
@@ -289,9 +286,9 @@ export declare type AvatarStatus = 'online' | 'editing' | 'inactive'
|
|
|
289
286
|
/**
|
|
290
287
|
* @public
|
|
291
288
|
*/
|
|
292
|
-
export declare const Badge: ForwardRefExoticComponent<
|
|
289
|
+
export declare const Badge: React_2.ForwardRefExoticComponent<
|
|
293
290
|
Pick<
|
|
294
|
-
BadgeProps & HTMLProps<HTMLDivElement>,
|
|
291
|
+
BadgeProps & React_2.HTMLProps<HTMLDivElement>,
|
|
295
292
|
| 'default'
|
|
296
293
|
| 'disabled'
|
|
297
294
|
| 'selected'
|
|
@@ -681,7 +678,7 @@ export declare const Badge: ForwardRefExoticComponent<
|
|
|
681
678
|
| 'paddingX'
|
|
682
679
|
| 'paddingY'
|
|
683
680
|
> &
|
|
684
|
-
RefAttributes<unknown>
|
|
681
|
+
React_2.RefAttributes<unknown>
|
|
685
682
|
>
|
|
686
683
|
|
|
687
684
|
/**
|
|
@@ -693,7 +690,7 @@ export declare type BadgeMode = 'default' | 'outline'
|
|
|
693
690
|
* @public
|
|
694
691
|
*/
|
|
695
692
|
export declare interface BadgeProps extends BoxProps, ResponsiveRadiusProps {
|
|
696
|
-
as?:
|
|
693
|
+
as?: React_2.ElementType | keyof JSX.IntrinsicElements
|
|
697
694
|
fontSize?: number | number[]
|
|
698
695
|
mode?: BadgeMode
|
|
699
696
|
tone?: BadgeTone
|
|
@@ -752,22 +749,22 @@ export declare interface BoundaryElementContextValue {
|
|
|
752
749
|
*/
|
|
753
750
|
export declare function BoundaryElementProvider(
|
|
754
751
|
props: BoundaryElementProviderProps
|
|
755
|
-
):
|
|
752
|
+
): React_2.ReactElement
|
|
756
753
|
|
|
757
754
|
/**
|
|
758
755
|
* @public
|
|
759
756
|
*/
|
|
760
757
|
export declare interface BoundaryElementProviderProps {
|
|
761
|
-
children:
|
|
758
|
+
children: React_2.ReactNode
|
|
762
759
|
element: HTMLElement | null
|
|
763
760
|
}
|
|
764
761
|
|
|
765
762
|
/**
|
|
766
763
|
* @public
|
|
767
764
|
*/
|
|
768
|
-
export declare const Box: ForwardRefExoticComponent<
|
|
765
|
+
export declare const Box: React_2.ForwardRefExoticComponent<
|
|
769
766
|
Pick<
|
|
770
|
-
BoxProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>,
|
|
767
|
+
BoxProps & Omit<React_2.HTMLProps<HTMLDivElement>, 'height' | 'as'>,
|
|
771
768
|
| 'default'
|
|
772
769
|
| 'disabled'
|
|
773
770
|
| 'selected'
|
|
@@ -1128,7 +1125,7 @@ export declare const Box: ForwardRefExoticComponent<
|
|
|
1128
1125
|
| 'wmode'
|
|
1129
1126
|
| keyof BoxProps
|
|
1130
1127
|
> &
|
|
1131
|
-
RefAttributes<HTMLDivElement>
|
|
1128
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
1132
1129
|
>
|
|
1133
1130
|
|
|
1134
1131
|
/**
|
|
@@ -1155,7 +1152,7 @@ export declare interface BoxProps
|
|
|
1155
1152
|
ResponsiveGridItemProps,
|
|
1156
1153
|
ResponsiveMarginProps,
|
|
1157
1154
|
ResponsivePaddingProps {
|
|
1158
|
-
as?:
|
|
1155
|
+
as?: React_2.ElementType | keyof JSX.IntrinsicElements
|
|
1159
1156
|
}
|
|
1160
1157
|
|
|
1161
1158
|
/**
|
|
@@ -1172,10 +1169,10 @@ export declare type BoxSizing = 'content' | 'border'
|
|
|
1172
1169
|
/**
|
|
1173
1170
|
* @beta
|
|
1174
1171
|
*/
|
|
1175
|
-
export declare const Breadcrumbs: ForwardRefExoticComponent<
|
|
1172
|
+
export declare const Breadcrumbs: React_2.ForwardRefExoticComponent<
|
|
1176
1173
|
BreadcrumbsProps &
|
|
1177
|
-
Omit<HTMLProps<HTMLOListElement>, 'ref' | 'type' | 'as'> &
|
|
1178
|
-
RefAttributes<HTMLOListElement>
|
|
1174
|
+
Omit<React_2.HTMLProps<HTMLOListElement>, 'ref' | 'type' | 'as'> &
|
|
1175
|
+
React_2.RefAttributes<HTMLOListElement>
|
|
1179
1176
|
>
|
|
1180
1177
|
|
|
1181
1178
|
/**
|
|
@@ -1183,16 +1180,16 @@ export declare const Breadcrumbs: ForwardRefExoticComponent<
|
|
|
1183
1180
|
*/
|
|
1184
1181
|
export declare interface BreadcrumbsProps {
|
|
1185
1182
|
maxLength?: number
|
|
1186
|
-
separator?:
|
|
1183
|
+
separator?: React_2.ReactNode
|
|
1187
1184
|
space?: number | number[]
|
|
1188
1185
|
}
|
|
1189
1186
|
|
|
1190
1187
|
/**
|
|
1191
1188
|
* @public
|
|
1192
1189
|
*/
|
|
1193
|
-
export declare const Button: ForwardRefExoticComponent<
|
|
1190
|
+
export declare const Button: React_2.ForwardRefExoticComponent<
|
|
1194
1191
|
Pick<
|
|
1195
|
-
ButtonProps & Omit<HTMLProps<HTMLButtonElement>, 'as'>,
|
|
1192
|
+
ButtonProps & Omit<React_2.HTMLProps<HTMLButtonElement>, 'as'>,
|
|
1196
1193
|
| 'default'
|
|
1197
1194
|
| 'disabled'
|
|
1198
1195
|
| 'name'
|
|
@@ -1552,7 +1549,7 @@ export declare const Button: ForwardRefExoticComponent<
|
|
|
1552
1549
|
| 'wmode'
|
|
1553
1550
|
| keyof ButtonProps
|
|
1554
1551
|
> &
|
|
1555
|
-
RefAttributes<HTMLButtonElement>
|
|
1552
|
+
React_2.RefAttributes<HTMLButtonElement>
|
|
1556
1553
|
>
|
|
1557
1554
|
|
|
1558
1555
|
/**
|
|
@@ -1564,11 +1561,11 @@ export declare type ButtonMode = 'default' | 'ghost' | 'bleed'
|
|
|
1564
1561
|
* @public
|
|
1565
1562
|
*/
|
|
1566
1563
|
export declare interface ButtonProps extends ResponsivePaddingProps, ResponsiveRadiusProps {
|
|
1567
|
-
as?:
|
|
1564
|
+
as?: React_2.ElementType | keyof JSX.IntrinsicElements
|
|
1568
1565
|
fontSize?: number | number[]
|
|
1569
1566
|
mode?: ButtonMode
|
|
1570
|
-
icon?:
|
|
1571
|
-
iconRight?:
|
|
1567
|
+
icon?: React_2.ComponentType | React_2.ReactNode
|
|
1568
|
+
iconRight?: React_2.ComponentType | React_2.ReactNode
|
|
1572
1569
|
justify?: FlexJustify | FlexJustify[]
|
|
1573
1570
|
/**
|
|
1574
1571
|
* @beta Do not use in production, as this might change.
|
|
@@ -1577,7 +1574,7 @@ export declare interface ButtonProps extends ResponsivePaddingProps, ResponsiveR
|
|
|
1577
1574
|
selected?: boolean
|
|
1578
1575
|
space?: number | number[]
|
|
1579
1576
|
textAlign?: ButtonTextAlign
|
|
1580
|
-
text?:
|
|
1577
|
+
text?: React_2.ReactNode
|
|
1581
1578
|
tone?: ButtonTone
|
|
1582
1579
|
type?: 'button' | 'reset' | 'submit'
|
|
1583
1580
|
}
|
|
@@ -1595,9 +1592,9 @@ export declare type ButtonTone = 'default' | 'primary' | 'positive' | 'caution'
|
|
|
1595
1592
|
/**
|
|
1596
1593
|
* @public
|
|
1597
1594
|
*/
|
|
1598
|
-
export declare const Card: ForwardRefExoticComponent<
|
|
1595
|
+
export declare const Card: React_2.ForwardRefExoticComponent<
|
|
1599
1596
|
Pick<
|
|
1600
|
-
CardProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>,
|
|
1597
|
+
CardProps & Omit<React_2.HTMLProps<HTMLDivElement>, 'height' | 'as'>,
|
|
1601
1598
|
| 'default'
|
|
1602
1599
|
| 'disabled'
|
|
1603
1600
|
| 'selected'
|
|
@@ -1958,7 +1955,7 @@ export declare const Card: ForwardRefExoticComponent<
|
|
|
1958
1955
|
| 'wmode'
|
|
1959
1956
|
| keyof CardProps
|
|
1960
1957
|
> &
|
|
1961
|
-
RefAttributes<HTMLDivElement>
|
|
1958
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
1962
1959
|
>
|
|
1963
1960
|
|
|
1964
1961
|
/**
|
|
@@ -2001,9 +1998,9 @@ export declare type CardTone = ThemeColorToneKey | 'inherit'
|
|
|
2001
1998
|
/**
|
|
2002
1999
|
* @public
|
|
2003
2000
|
*/
|
|
2004
|
-
export declare const Checkbox: ForwardRefExoticComponent<
|
|
2001
|
+
export declare const Checkbox: React_2.ForwardRefExoticComponent<
|
|
2005
2002
|
Pick<
|
|
2006
|
-
Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & CheckboxProps,
|
|
2003
|
+
Omit<React_2.HTMLProps<HTMLInputElement>, 'type' | 'as'> & CheckboxProps,
|
|
2007
2004
|
| 'default'
|
|
2008
2005
|
| 'disabled'
|
|
2009
2006
|
| 'selected'
|
|
@@ -2364,7 +2361,7 @@ export declare const Checkbox: ForwardRefExoticComponent<
|
|
|
2364
2361
|
| 'wmode'
|
|
2365
2362
|
| keyof CheckboxProps
|
|
2366
2363
|
> &
|
|
2367
|
-
RefAttributes<HTMLInputElement>
|
|
2364
|
+
React_2.RefAttributes<HTMLInputElement>
|
|
2368
2365
|
>
|
|
2369
2366
|
|
|
2370
2367
|
/**
|
|
@@ -2383,9 +2380,9 @@ export declare type ClickOutsideListener = (event: MouseEvent) => void
|
|
|
2383
2380
|
/**
|
|
2384
2381
|
* @public
|
|
2385
2382
|
*/
|
|
2386
|
-
export declare const Code: ForwardRefExoticComponent<
|
|
2383
|
+
export declare const Code: React_2.ForwardRefExoticComponent<
|
|
2387
2384
|
Pick<
|
|
2388
|
-
CodeProps & Omit<HTMLProps<HTMLElement>, 'size' | 'as'>,
|
|
2385
|
+
CodeProps & Omit<React_2.HTMLProps<HTMLElement>, 'size' | 'as'>,
|
|
2389
2386
|
| 'default'
|
|
2390
2387
|
| 'disabled'
|
|
2391
2388
|
| 'selected'
|
|
@@ -2746,14 +2743,14 @@ export declare const Code: ForwardRefExoticComponent<
|
|
|
2746
2743
|
| 'wmode'
|
|
2747
2744
|
| keyof CodeProps
|
|
2748
2745
|
> &
|
|
2749
|
-
RefAttributes<HTMLElement>
|
|
2746
|
+
React_2.RefAttributes<HTMLElement>
|
|
2750
2747
|
>
|
|
2751
2748
|
|
|
2752
2749
|
/**
|
|
2753
2750
|
* @public
|
|
2754
2751
|
*/
|
|
2755
2752
|
export declare interface CodeProps {
|
|
2756
|
-
as?:
|
|
2753
|
+
as?: React_2.ElementType | keyof JSX.IntrinsicElements
|
|
2757
2754
|
language?: string
|
|
2758
2755
|
size?: number | number[]
|
|
2759
2756
|
weight?: string
|
|
@@ -2763,9 +2760,10 @@ export declare interface CodeProps {
|
|
|
2763
2760
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
2764
2761
|
* @beta
|
|
2765
2762
|
*/
|
|
2766
|
-
export declare const CodeSkeleton: ForwardRefExoticComponent<
|
|
2763
|
+
export declare const CodeSkeleton: React_2.ForwardRefExoticComponent<
|
|
2767
2764
|
Pick<
|
|
2768
|
-
CodeSkeletonProps &
|
|
2765
|
+
CodeSkeletonProps &
|
|
2766
|
+
Omit<React_2.HTMLProps<HTMLDivElement>, 'children' | 'size' | 'height' | 'as'>,
|
|
2769
2767
|
| 'default'
|
|
2770
2768
|
| 'disabled'
|
|
2771
2769
|
| 'selected'
|
|
@@ -3124,7 +3122,7 @@ export declare const CodeSkeleton: ForwardRefExoticComponent<
|
|
|
3124
3122
|
| 'wmode'
|
|
3125
3123
|
| keyof CodeSkeletonProps
|
|
3126
3124
|
> &
|
|
3127
|
-
RefAttributes<HTMLDivElement>
|
|
3125
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
3128
3126
|
>
|
|
3129
3127
|
|
|
3130
3128
|
/**
|
|
@@ -3138,9 +3136,9 @@ export declare interface CodeSkeletonProps extends SkeletonProps {
|
|
|
3138
3136
|
/**
|
|
3139
3137
|
* @public
|
|
3140
3138
|
*/
|
|
3141
|
-
export declare const Container: ForwardRefExoticComponent<
|
|
3139
|
+
export declare const Container: React_2.ForwardRefExoticComponent<
|
|
3142
3140
|
Pick<
|
|
3143
|
-
ContainerProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'as'>,
|
|
3141
|
+
ContainerProps & Omit<React_2.HTMLProps<HTMLDivElement>, 'height' | 'width' | 'as'>,
|
|
3144
3142
|
| 'default'
|
|
3145
3143
|
| 'disabled'
|
|
3146
3144
|
| 'selected'
|
|
@@ -3500,7 +3498,7 @@ export declare const Container: ForwardRefExoticComponent<
|
|
|
3500
3498
|
| 'wmode'
|
|
3501
3499
|
| keyof ContainerProps
|
|
3502
3500
|
> &
|
|
3503
|
-
RefAttributes<HTMLDivElement>
|
|
3501
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
3504
3502
|
>
|
|
3505
3503
|
|
|
3506
3504
|
/**
|
|
@@ -3518,9 +3516,9 @@ export declare function createColorTheme(
|
|
|
3518
3516
|
/**
|
|
3519
3517
|
* @public
|
|
3520
3518
|
*/
|
|
3521
|
-
export declare const Dialog: ForwardRefExoticComponent<
|
|
3519
|
+
export declare const Dialog: React_2.ForwardRefExoticComponent<
|
|
3522
3520
|
Pick<
|
|
3523
|
-
DialogProps & Omit<HTMLProps<HTMLDivElement>, 'width' | 'id' | 'as'>,
|
|
3521
|
+
DialogProps & Omit<React_2.HTMLProps<HTMLDivElement>, 'width' | 'id' | 'as'>,
|
|
3524
3522
|
| 'default'
|
|
3525
3523
|
| 'disabled'
|
|
3526
3524
|
| 'selected'
|
|
@@ -3880,7 +3878,7 @@ export declare const Dialog: ForwardRefExoticComponent<
|
|
|
3880
3878
|
| 'wmode'
|
|
3881
3879
|
| keyof DialogProps
|
|
3882
3880
|
> &
|
|
3883
|
-
RefAttributes<HTMLDivElement>
|
|
3881
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
3884
3882
|
>
|
|
3885
3883
|
|
|
3886
3884
|
/**
|
|
@@ -3917,9 +3915,9 @@ export declare interface DialogProps extends ResponsivePaddingProps, ResponsiveW
|
|
|
3917
3915
|
__unstable_hideCloseButton?: boolean
|
|
3918
3916
|
cardRadius?: number | number[]
|
|
3919
3917
|
cardShadow?: number | number[]
|
|
3920
|
-
contentRef?:
|
|
3921
|
-
footer?:
|
|
3922
|
-
header?:
|
|
3918
|
+
contentRef?: React_2.ForwardedRef<HTMLDivElement>
|
|
3919
|
+
footer?: React_2.ReactNode
|
|
3920
|
+
header?: React_2.ReactNode
|
|
3923
3921
|
id: string
|
|
3924
3922
|
onClickOutside?: () => void
|
|
3925
3923
|
onClose?: () => void
|
|
@@ -3933,14 +3931,14 @@ export declare interface DialogProps extends ResponsivePaddingProps, ResponsiveW
|
|
|
3933
3931
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
3934
3932
|
* @beta
|
|
3935
3933
|
*/
|
|
3936
|
-
export declare function DialogProvider(props: DialogProviderProps):
|
|
3934
|
+
export declare function DialogProvider(props: DialogProviderProps): React_2.ReactElement
|
|
3937
3935
|
|
|
3938
3936
|
/**
|
|
3939
3937
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
3940
3938
|
* @beta
|
|
3941
3939
|
*/
|
|
3942
3940
|
export declare interface DialogProviderProps {
|
|
3943
|
-
children?:
|
|
3941
|
+
children?: React_2.ReactNode
|
|
3944
3942
|
position?: DialogPosition | DialogPosition[]
|
|
3945
3943
|
zOffset?: number | number[]
|
|
3946
3944
|
}
|
|
@@ -3949,9 +3947,9 @@ export declare interface DialogProviderProps {
|
|
|
3949
3947
|
* DO NOT USE IN PRODUCTION.
|
|
3950
3948
|
* @beta
|
|
3951
3949
|
*/
|
|
3952
|
-
export declare const ElementQuery: ForwardRefExoticComponent<
|
|
3950
|
+
export declare const ElementQuery: React_2.ForwardRefExoticComponent<
|
|
3953
3951
|
Pick<
|
|
3954
|
-
MediaQueryProps & Omit<HTMLProps<HTMLDivElement>, 'media' | 'as'>,
|
|
3952
|
+
MediaQueryProps & Omit<React_2.HTMLProps<HTMLDivElement>, 'media' | 'as'>,
|
|
3955
3953
|
| 'default'
|
|
3956
3954
|
| 'disabled'
|
|
3957
3955
|
| 'selected'
|
|
@@ -4312,7 +4310,7 @@ export declare const ElementQuery: ForwardRefExoticComponent<
|
|
|
4312
4310
|
| 'wmode'
|
|
4313
4311
|
| keyof MediaQueryProps
|
|
4314
4312
|
> &
|
|
4315
|
-
RefAttributes<HTMLDivElement>
|
|
4313
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
4316
4314
|
>
|
|
4317
4315
|
|
|
4318
4316
|
/**
|
|
@@ -4361,20 +4359,23 @@ export declare type _ElementSizeSubscriber = (elementRect: ElementSize) => void
|
|
|
4361
4359
|
* DO NOT USE IN PRODUCTION
|
|
4362
4360
|
* @beta
|
|
4363
4361
|
*/
|
|
4364
|
-
export declare class ErrorBoundary extends Component<
|
|
4362
|
+
export declare class ErrorBoundary extends React_2.Component<
|
|
4363
|
+
ErrorBoundaryProps,
|
|
4364
|
+
ErrorBoundaryState
|
|
4365
|
+
> {
|
|
4365
4366
|
state: ErrorBoundaryState
|
|
4366
4367
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState
|
|
4367
|
-
componentDidCatch(error: Error, info:
|
|
4368
|
-
render():
|
|
4368
|
+
componentDidCatch(error: Error, info: React_2.ErrorInfo): void
|
|
4369
|
+
render(): React_2.ReactNode
|
|
4369
4370
|
}
|
|
4370
4371
|
|
|
4371
4372
|
/**
|
|
4372
4373
|
* DO NOT USE IN PRODUCTION
|
|
4373
4374
|
* @beta
|
|
4374
4375
|
*/
|
|
4375
|
-
export declare
|
|
4376
|
-
onCatch: (params: {error: Error; info:
|
|
4377
|
-
}
|
|
4376
|
+
export declare interface ErrorBoundaryProps {
|
|
4377
|
+
onCatch: (params: {error: Error; info: React_2.ErrorInfo}) => void
|
|
4378
|
+
}
|
|
4378
4379
|
|
|
4379
4380
|
/**
|
|
4380
4381
|
* DO NOT USE IN PRODUCTION
|
|
@@ -4395,9 +4396,9 @@ export declare function _fillCSSObject(
|
|
|
4395
4396
|
/**
|
|
4396
4397
|
* @public
|
|
4397
4398
|
*/
|
|
4398
|
-
export declare const Flex: ForwardRefExoticComponent<
|
|
4399
|
+
export declare const Flex: React_2.ForwardRefExoticComponent<
|
|
4399
4400
|
Pick<
|
|
4400
|
-
FlexProps & Omit<HTMLProps<HTMLDivElement>, 'wrap' | 'as'>,
|
|
4401
|
+
FlexProps & Omit<React_2.HTMLProps<HTMLDivElement>, 'wrap' | 'as'>,
|
|
4401
4402
|
| 'default'
|
|
4402
4403
|
| 'disabled'
|
|
4403
4404
|
| 'selected'
|
|
@@ -4757,7 +4758,7 @@ export declare const Flex: ForwardRefExoticComponent<
|
|
|
4757
4758
|
| 'wmode'
|
|
4758
4759
|
| keyof FlexProps
|
|
4759
4760
|
> &
|
|
4760
|
-
RefAttributes<HTMLDivElement>
|
|
4761
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
4761
4762
|
>
|
|
4762
4763
|
|
|
4763
4764
|
/**
|
|
@@ -4835,9 +4836,9 @@ export declare function _getResponsiveSpace(
|
|
|
4835
4836
|
/**
|
|
4836
4837
|
* @public
|
|
4837
4838
|
*/
|
|
4838
|
-
export declare const Grid: ForwardRefExoticComponent<
|
|
4839
|
+
export declare const Grid: React_2.ForwardRefExoticComponent<
|
|
4839
4840
|
Pick<
|
|
4840
|
-
GridProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as' | 'rows'>,
|
|
4841
|
+
GridProps & Omit<React_2.HTMLProps<HTMLDivElement>, 'height' | 'as' | 'rows'>,
|
|
4841
4842
|
| 'default'
|
|
4842
4843
|
| 'disabled'
|
|
4843
4844
|
| 'selected'
|
|
@@ -5197,7 +5198,7 @@ export declare const Grid: ForwardRefExoticComponent<
|
|
|
5197
5198
|
| 'wmode'
|
|
5198
5199
|
| keyof GridProps
|
|
5199
5200
|
> &
|
|
5200
|
-
RefAttributes<HTMLDivElement>
|
|
5201
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
5201
5202
|
>
|
|
5202
5203
|
|
|
5203
5204
|
/**
|
|
@@ -5258,9 +5259,9 @@ export declare function _hasFocus(element: HTMLElement): boolean
|
|
|
5258
5259
|
/**
|
|
5259
5260
|
* @public
|
|
5260
5261
|
*/
|
|
5261
|
-
export declare const Heading: ForwardRefExoticComponent<
|
|
5262
|
+
export declare const Heading: React_2.ForwardRefExoticComponent<
|
|
5262
5263
|
Pick<
|
|
5263
|
-
HeadingProps & Omit<HTMLProps<HTMLElement>, 'size' | 'as'>,
|
|
5264
|
+
HeadingProps & Omit<React_2.HTMLProps<HTMLElement>, 'size' | 'as'>,
|
|
5264
5265
|
| 'default'
|
|
5265
5266
|
| 'disabled'
|
|
5266
5267
|
| 'selected'
|
|
@@ -5620,7 +5621,7 @@ export declare const Heading: ForwardRefExoticComponent<
|
|
|
5620
5621
|
| 'wmode'
|
|
5621
5622
|
| keyof HeadingProps
|
|
5622
5623
|
> &
|
|
5623
|
-
RefAttributes<HTMLElement>
|
|
5624
|
+
React_2.RefAttributes<HTMLElement>
|
|
5624
5625
|
>
|
|
5625
5626
|
|
|
5626
5627
|
/**
|
|
@@ -5629,7 +5630,7 @@ export declare const Heading: ForwardRefExoticComponent<
|
|
|
5629
5630
|
export declare interface HeadingProps {
|
|
5630
5631
|
accent?: boolean
|
|
5631
5632
|
align?: TextAlign | TextAlign[]
|
|
5632
|
-
as?:
|
|
5633
|
+
as?: React_2.ElementType | keyof JSX.IntrinsicElements
|
|
5633
5634
|
muted?: boolean
|
|
5634
5635
|
size?: number | number[]
|
|
5635
5636
|
/**
|
|
@@ -5645,9 +5646,10 @@ export declare interface HeadingProps {
|
|
|
5645
5646
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
5646
5647
|
* @beta
|
|
5647
5648
|
*/
|
|
5648
|
-
export declare const HeadingSkeleton: ForwardRefExoticComponent<
|
|
5649
|
+
export declare const HeadingSkeleton: React_2.ForwardRefExoticComponent<
|
|
5649
5650
|
Pick<
|
|
5650
|
-
HeadingSkeletonProps &
|
|
5651
|
+
HeadingSkeletonProps &
|
|
5652
|
+
Omit<React_2.HTMLProps<HTMLDivElement>, 'children' | 'size' | 'height' | 'as'>,
|
|
5651
5653
|
| 'default'
|
|
5652
5654
|
| 'disabled'
|
|
5653
5655
|
| 'selected'
|
|
@@ -6006,7 +6008,7 @@ export declare const HeadingSkeleton: ForwardRefExoticComponent<
|
|
|
6006
6008
|
| 'wmode'
|
|
6007
6009
|
| keyof HeadingSkeletonProps
|
|
6008
6010
|
> &
|
|
6009
|
-
RefAttributes<HTMLDivElement>
|
|
6011
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
6010
6012
|
>
|
|
6011
6013
|
|
|
6012
6014
|
/**
|
|
@@ -6025,8 +6027,10 @@ export declare function hexToRgb(hex: string): RGB
|
|
|
6025
6027
|
/**
|
|
6026
6028
|
* @public
|
|
6027
6029
|
*/
|
|
6028
|
-
export declare const Hotkeys: ForwardRefExoticComponent<
|
|
6029
|
-
HotkeysProps &
|
|
6030
|
+
export declare const Hotkeys: React_2.ForwardRefExoticComponent<
|
|
6031
|
+
HotkeysProps &
|
|
6032
|
+
Omit<React_2.HTMLProps<HTMLElement>, 'ref' | 'size' | 'as'> &
|
|
6033
|
+
React_2.RefAttributes<HTMLElement>
|
|
6030
6034
|
>
|
|
6031
6035
|
|
|
6032
6036
|
/**
|
|
@@ -6057,9 +6061,9 @@ export declare function hslToRgb(hsl: HSL): RGB
|
|
|
6057
6061
|
/**
|
|
6058
6062
|
* @public
|
|
6059
6063
|
*/
|
|
6060
|
-
export declare const Inline: ForwardRefExoticComponent<
|
|
6064
|
+
export declare const Inline: React_2.ForwardRefExoticComponent<
|
|
6061
6065
|
Pick<
|
|
6062
|
-
InlineProps & HTMLProps<HTMLDivElement>,
|
|
6066
|
+
InlineProps & React_2.HTMLProps<HTMLDivElement>,
|
|
6063
6067
|
| 'default'
|
|
6064
6068
|
| 'disabled'
|
|
6065
6069
|
| 'selected'
|
|
@@ -6445,7 +6449,7 @@ export declare const Inline: ForwardRefExoticComponent<
|
|
|
6445
6449
|
| 'paddingX'
|
|
6446
6450
|
| 'paddingY'
|
|
6447
6451
|
> &
|
|
6448
|
-
RefAttributes<unknown>
|
|
6452
|
+
React_2.RefAttributes<unknown>
|
|
6449
6453
|
>
|
|
6450
6454
|
|
|
6451
6455
|
/**
|
|
@@ -6503,15 +6507,17 @@ export declare function _isScrollable(el: Node): boolean
|
|
|
6503
6507
|
/**
|
|
6504
6508
|
* @public
|
|
6505
6509
|
*/
|
|
6506
|
-
export declare const KBD: ForwardRefExoticComponent<
|
|
6507
|
-
KBDProps &
|
|
6510
|
+
export declare const KBD: React_2.ForwardRefExoticComponent<
|
|
6511
|
+
KBDProps &
|
|
6512
|
+
Omit<React_2.HTMLProps<HTMLElement>, 'ref' | 'size' | 'as'> &
|
|
6513
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
6508
6514
|
>
|
|
6509
6515
|
|
|
6510
6516
|
/**
|
|
6511
6517
|
* @public
|
|
6512
6518
|
*/
|
|
6513
6519
|
export declare interface KBDProps {
|
|
6514
|
-
as?:
|
|
6520
|
+
as?: React_2.ElementType | keyof JSX.IntrinsicElements
|
|
6515
6521
|
fontSize?: number | number[]
|
|
6516
6522
|
padding?: number | number[]
|
|
6517
6523
|
radius?: number | number[]
|
|
@@ -6520,9 +6526,9 @@ export declare interface KBDProps {
|
|
|
6520
6526
|
/**
|
|
6521
6527
|
* @public
|
|
6522
6528
|
*/
|
|
6523
|
-
export declare const Label: ForwardRefExoticComponent<
|
|
6529
|
+
export declare const Label: React_2.ForwardRefExoticComponent<
|
|
6524
6530
|
Pick<
|
|
6525
|
-
LabelProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'as'>,
|
|
6531
|
+
LabelProps & Omit<React_2.HTMLProps<HTMLDivElement>, 'size' | 'as'>,
|
|
6526
6532
|
| 'default'
|
|
6527
6533
|
| 'disabled'
|
|
6528
6534
|
| 'selected'
|
|
@@ -6882,7 +6888,7 @@ export declare const Label: ForwardRefExoticComponent<
|
|
|
6882
6888
|
| 'wmode'
|
|
6883
6889
|
| keyof LabelProps
|
|
6884
6890
|
> &
|
|
6885
|
-
RefAttributes<HTMLDivElement>
|
|
6891
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
6886
6892
|
>
|
|
6887
6893
|
|
|
6888
6894
|
/**
|
|
@@ -6891,7 +6897,7 @@ export declare const Label: ForwardRefExoticComponent<
|
|
|
6891
6897
|
export declare interface LabelProps {
|
|
6892
6898
|
accent?: boolean
|
|
6893
6899
|
align?: TextAlign | TextAlign[]
|
|
6894
|
-
as?:
|
|
6900
|
+
as?: React_2.ElementType | keyof JSX.IntrinsicElements
|
|
6895
6901
|
muted?: boolean
|
|
6896
6902
|
size?: number | number[]
|
|
6897
6903
|
/**
|
|
@@ -6907,9 +6913,10 @@ export declare interface LabelProps {
|
|
|
6907
6913
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
6908
6914
|
* @beta
|
|
6909
6915
|
*/
|
|
6910
|
-
export declare const LabelSkeleton: ForwardRefExoticComponent<
|
|
6916
|
+
export declare const LabelSkeleton: React_2.ForwardRefExoticComponent<
|
|
6911
6917
|
Pick<
|
|
6912
|
-
LabelSkeletonProps &
|
|
6918
|
+
LabelSkeletonProps &
|
|
6919
|
+
Omit<React_2.HTMLProps<HTMLDivElement>, 'children' | 'size' | 'height' | 'as'>,
|
|
6913
6920
|
| 'default'
|
|
6914
6921
|
| 'disabled'
|
|
6915
6922
|
| 'selected'
|
|
@@ -7268,7 +7275,7 @@ export declare const LabelSkeleton: ForwardRefExoticComponent<
|
|
|
7268
7275
|
| 'wmode'
|
|
7269
7276
|
| keyof LabelSkeletonProps
|
|
7270
7277
|
> &
|
|
7271
|
-
RefAttributes<HTMLDivElement>
|
|
7278
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
7272
7279
|
>
|
|
7273
7280
|
|
|
7274
7281
|
/**
|
|
@@ -7282,9 +7289,9 @@ export declare interface LabelSkeletonProps extends SkeletonProps {
|
|
|
7282
7289
|
/**
|
|
7283
7290
|
* @public
|
|
7284
7291
|
*/
|
|
7285
|
-
export declare const Layer: ForwardRefExoticComponent<
|
|
7292
|
+
export declare const Layer: React_2.ForwardRefExoticComponent<
|
|
7286
7293
|
Pick<
|
|
7287
|
-
LayerProps & Omit<HTMLProps<HTMLDivElement>, 'as'>,
|
|
7294
|
+
LayerProps & Omit<React_2.HTMLProps<HTMLDivElement>, 'as'>,
|
|
7288
7295
|
| 'default'
|
|
7289
7296
|
| 'disabled'
|
|
7290
7297
|
| 'selected'
|
|
@@ -7646,7 +7653,7 @@ export declare const Layer: ForwardRefExoticComponent<
|
|
|
7646
7653
|
| 'wmode'
|
|
7647
7654
|
| keyof LayerProps
|
|
7648
7655
|
> &
|
|
7649
|
-
RefAttributes<HTMLDivElement>
|
|
7656
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
7650
7657
|
>
|
|
7651
7658
|
|
|
7652
7659
|
/**
|
|
@@ -7664,20 +7671,20 @@ export declare interface LayerContextValue {
|
|
|
7664
7671
|
* @public
|
|
7665
7672
|
*/
|
|
7666
7673
|
export declare interface LayerProps {
|
|
7667
|
-
as?:
|
|
7674
|
+
as?: React_2.ElementType | keyof JSX.IntrinsicElements
|
|
7668
7675
|
zOffset?: number | number[]
|
|
7669
7676
|
}
|
|
7670
7677
|
|
|
7671
7678
|
/**
|
|
7672
7679
|
* @public
|
|
7673
7680
|
*/
|
|
7674
|
-
export declare function LayerProvider(props: LayerProviderProps):
|
|
7681
|
+
export declare function LayerProvider(props: LayerProviderProps): React_2.ReactElement
|
|
7675
7682
|
|
|
7676
7683
|
/**
|
|
7677
7684
|
* @public
|
|
7678
7685
|
*/
|
|
7679
7686
|
export declare interface LayerProviderProps {
|
|
7680
|
-
children?:
|
|
7687
|
+
children?: React_2.ReactNode
|
|
7681
7688
|
zOffset?: number | number[]
|
|
7682
7689
|
}
|
|
7683
7690
|
|
|
@@ -7686,16 +7693,16 @@ export declare interface LayerProviderProps {
|
|
|
7686
7693
|
* @beta
|
|
7687
7694
|
*/
|
|
7688
7695
|
export declare interface MediaQueryProps {
|
|
7689
|
-
as?:
|
|
7696
|
+
as?: React_2.ElementType | keyof JSX.IntrinsicElements
|
|
7690
7697
|
media?: number[]
|
|
7691
7698
|
}
|
|
7692
7699
|
|
|
7693
7700
|
/**
|
|
7694
7701
|
* @public
|
|
7695
7702
|
*/
|
|
7696
|
-
export declare const Menu: ForwardRefExoticComponent<
|
|
7703
|
+
export declare const Menu: React_2.ForwardRefExoticComponent<
|
|
7697
7704
|
Pick<
|
|
7698
|
-
MenuProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'tabIndex' | 'role' | 'as'>,
|
|
7705
|
+
MenuProps & Omit<React_2.HTMLProps<HTMLDivElement>, 'height' | 'tabIndex' | 'role' | 'as'>,
|
|
7699
7706
|
| 'default'
|
|
7700
7707
|
| 'disabled'
|
|
7701
7708
|
| 'selected'
|
|
@@ -8054,14 +8061,14 @@ export declare const Menu: ForwardRefExoticComponent<
|
|
|
8054
8061
|
| 'wmode'
|
|
8055
8062
|
| keyof MenuProps
|
|
8056
8063
|
> &
|
|
8057
|
-
RefAttributes<HTMLDivElement>
|
|
8064
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
8058
8065
|
>
|
|
8059
8066
|
|
|
8060
8067
|
/**
|
|
8061
8068
|
* @public
|
|
8062
8069
|
*/
|
|
8063
|
-
export declare const MenuButton: ForwardRefExoticComponent<
|
|
8064
|
-
MenuButtonProps & RefAttributes<HTMLButtonElement | null>
|
|
8070
|
+
export declare const MenuButton: React_2.ForwardRefExoticComponent<
|
|
8071
|
+
MenuButtonProps & React_2.RefAttributes<HTMLButtonElement | null>
|
|
8065
8072
|
>
|
|
8066
8073
|
|
|
8067
8074
|
/**
|
|
@@ -8076,9 +8083,9 @@ export declare interface MenuButtonProps {
|
|
|
8076
8083
|
* @deprecated Use `popover={{boundaryElement: element}}` instead.
|
|
8077
8084
|
*/
|
|
8078
8085
|
boundaryElement?: HTMLElement
|
|
8079
|
-
button:
|
|
8086
|
+
button: React_2.ReactElement
|
|
8080
8087
|
id: string
|
|
8081
|
-
menu?:
|
|
8088
|
+
menu?: React_2.ReactElement
|
|
8082
8089
|
onClose?: () => void
|
|
8083
8090
|
/**
|
|
8084
8091
|
* @deprecated Use `popover={{placement: 'top'}}` instead.
|
|
@@ -8114,46 +8121,46 @@ export declare const MenuDivider: StyledComponent<'hr', Theme>
|
|
|
8114
8121
|
*/
|
|
8115
8122
|
export declare function MenuGroup(
|
|
8116
8123
|
props: MenuGroupProps &
|
|
8117
|
-
Omit<
|
|
8118
|
-
):
|
|
8124
|
+
Omit<React_2.HTMLProps<HTMLDivElement>, 'as' | 'height' | 'ref' | 'tabIndex'>
|
|
8125
|
+
): React_2.ReactElement
|
|
8119
8126
|
|
|
8120
8127
|
/**
|
|
8121
8128
|
* @public
|
|
8122
8129
|
*/
|
|
8123
8130
|
export declare interface MenuGroupProps {
|
|
8124
|
-
as?:
|
|
8131
|
+
as?: React_2.ElementType | keyof JSX.IntrinsicElements
|
|
8125
8132
|
fontSize?: number | number[]
|
|
8126
|
-
icon?:
|
|
8133
|
+
icon?: React_2.ComponentType | React_2.ReactNode
|
|
8127
8134
|
padding?: number | number[]
|
|
8128
8135
|
popover?: Omit<PopoverProps, 'content' | 'open'>
|
|
8129
8136
|
radius?: number | number[]
|
|
8130
8137
|
space?: number | number[]
|
|
8131
|
-
text:
|
|
8138
|
+
text: React_2.ReactNode
|
|
8132
8139
|
tone?: SelectableTone
|
|
8133
8140
|
}
|
|
8134
8141
|
|
|
8135
8142
|
/**
|
|
8136
8143
|
* @public
|
|
8137
8144
|
*/
|
|
8138
|
-
export declare const MenuItem: ForwardRefExoticComponent<
|
|
8145
|
+
export declare const MenuItem: React_2.ForwardRefExoticComponent<
|
|
8139
8146
|
MenuItemProps &
|
|
8140
|
-
Omit<HTMLProps<HTMLDivElement>, 'selected' | 'ref' | 'height' | 'tabIndex' | 'as'> &
|
|
8141
|
-
RefAttributes<HTMLDivElement>
|
|
8147
|
+
Omit<React_2.HTMLProps<HTMLDivElement>, 'selected' | 'ref' | 'height' | 'tabIndex' | 'as'> &
|
|
8148
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
8142
8149
|
>
|
|
8143
8150
|
|
|
8144
8151
|
/**
|
|
8145
8152
|
* @public
|
|
8146
8153
|
*/
|
|
8147
8154
|
export declare interface MenuItemProps extends ResponsivePaddingProps, ResponsiveRadiusProps {
|
|
8148
|
-
as?:
|
|
8155
|
+
as?: React_2.ElementType | keyof JSX.IntrinsicElements
|
|
8149
8156
|
fontSize?: number | number[]
|
|
8150
8157
|
hotkeys?: string[]
|
|
8151
|
-
icon?:
|
|
8152
|
-
iconRight?:
|
|
8158
|
+
icon?: React_2.ComponentType | React_2.ReactNode
|
|
8159
|
+
iconRight?: React_2.ComponentType | React_2.ReactNode
|
|
8153
8160
|
pressed?: boolean
|
|
8154
8161
|
selected?: boolean
|
|
8155
8162
|
space?: number | number[]
|
|
8156
|
-
text?:
|
|
8163
|
+
text?: React_2.ReactNode
|
|
8157
8164
|
tone?: SelectableTone
|
|
8158
8165
|
}
|
|
8159
8166
|
|
|
@@ -8218,9 +8225,9 @@ export declare type Placement =
|
|
|
8218
8225
|
/**
|
|
8219
8226
|
* @public
|
|
8220
8227
|
*/
|
|
8221
|
-
export declare const Popover: ForwardRefExoticComponent<
|
|
8228
|
+
export declare const Popover: React_2.ForwardRefExoticComponent<
|
|
8222
8229
|
Pick<
|
|
8223
|
-
PopoverProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'content' | 'width' | 'as'>,
|
|
8230
|
+
PopoverProps & Omit<React_2.HTMLProps<HTMLDivElement>, 'children' | 'content' | 'width' | 'as'>,
|
|
8224
8231
|
| 'default'
|
|
8225
8232
|
| 'selected'
|
|
8226
8233
|
| 'name'
|
|
@@ -8577,7 +8584,7 @@ export declare const Popover: ForwardRefExoticComponent<
|
|
|
8577
8584
|
| 'wmode'
|
|
8578
8585
|
| keyof PopoverProps
|
|
8579
8586
|
> &
|
|
8580
|
-
RefAttributes<HTMLDivElement>
|
|
8587
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
8581
8588
|
>
|
|
8582
8589
|
|
|
8583
8590
|
/**
|
|
@@ -8600,9 +8607,9 @@ export declare interface PopoverProps
|
|
|
8600
8607
|
allowedAutoPlacements?: Placement[]
|
|
8601
8608
|
arrow?: boolean
|
|
8602
8609
|
boundaryElement?: HTMLElement | null
|
|
8603
|
-
children?:
|
|
8610
|
+
children?: React_2.ReactElement
|
|
8604
8611
|
constrainSize?: boolean
|
|
8605
|
-
content?:
|
|
8612
|
+
content?: React_2.ReactNode
|
|
8606
8613
|
disabled?: boolean
|
|
8607
8614
|
fallbackPlacements?: Placement[]
|
|
8608
8615
|
open?: boolean
|
|
@@ -8621,7 +8628,7 @@ export declare interface PopoverProps
|
|
|
8621
8628
|
/**
|
|
8622
8629
|
* @public
|
|
8623
8630
|
*/
|
|
8624
|
-
export declare function Portal(props: PortalProps):
|
|
8631
|
+
export declare function Portal(props: PortalProps): React_2.ReactPortal | null
|
|
8625
8632
|
|
|
8626
8633
|
/**
|
|
8627
8634
|
* @public
|
|
@@ -8637,7 +8644,7 @@ export declare interface PortalContextValue {
|
|
|
8637
8644
|
* @public
|
|
8638
8645
|
*/
|
|
8639
8646
|
export declare interface PortalProps {
|
|
8640
|
-
children:
|
|
8647
|
+
children: React_2.ReactNode
|
|
8641
8648
|
/**
|
|
8642
8649
|
* @beta This API might change. DO NOT USE IN PRODUCTION.
|
|
8643
8650
|
*/
|
|
@@ -8647,7 +8654,7 @@ export declare interface PortalProps {
|
|
|
8647
8654
|
/**
|
|
8648
8655
|
* @public
|
|
8649
8656
|
*/
|
|
8650
|
-
export declare function PortalProvider(props: PortalProviderProps):
|
|
8657
|
+
export declare function PortalProvider(props: PortalProviderProps): React_2.ReactElement
|
|
8651
8658
|
|
|
8652
8659
|
/**
|
|
8653
8660
|
* @public
|
|
@@ -8657,7 +8664,7 @@ export declare interface PortalProviderProps {
|
|
|
8657
8664
|
* @deprecated Use `<BoundaryElementProvider element={...} />` instead
|
|
8658
8665
|
*/
|
|
8659
8666
|
boundaryElement?: HTMLElement | null
|
|
8660
|
-
children:
|
|
8667
|
+
children: React_2.ReactNode
|
|
8661
8668
|
element?: HTMLElement | null
|
|
8662
8669
|
/**
|
|
8663
8670
|
* @beta
|
|
@@ -8668,9 +8675,9 @@ export declare interface PortalProviderProps {
|
|
|
8668
8675
|
/**
|
|
8669
8676
|
* @public
|
|
8670
8677
|
*/
|
|
8671
|
-
export declare const Radio: ForwardRefExoticComponent<
|
|
8678
|
+
export declare const Radio: React_2.ForwardRefExoticComponent<
|
|
8672
8679
|
Pick<
|
|
8673
|
-
Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & RadioProps,
|
|
8680
|
+
Omit<React_2.HTMLProps<HTMLInputElement>, 'type' | 'as'> & RadioProps,
|
|
8674
8681
|
| 'default'
|
|
8675
8682
|
| 'disabled'
|
|
8676
8683
|
| 'selected'
|
|
@@ -9031,7 +9038,7 @@ export declare const Radio: ForwardRefExoticComponent<
|
|
|
9031
9038
|
| 'wmode'
|
|
9032
9039
|
| 'customValidity'
|
|
9033
9040
|
> &
|
|
9034
|
-
RefAttributes<HTMLInputElement>
|
|
9041
|
+
React_2.RefAttributes<HTMLInputElement>
|
|
9035
9042
|
>
|
|
9036
9043
|
|
|
9037
9044
|
/**
|
|
@@ -9301,9 +9308,9 @@ export {screen_2 as screen}
|
|
|
9301
9308
|
/**
|
|
9302
9309
|
* @public
|
|
9303
9310
|
*/
|
|
9304
|
-
export declare const Select: ForwardRefExoticComponent<
|
|
9311
|
+
export declare const Select: React_2.ForwardRefExoticComponent<
|
|
9305
9312
|
Pick<
|
|
9306
|
-
SelectProps & Omit<HTMLProps<HTMLSelectElement>, 'as'>,
|
|
9313
|
+
SelectProps & Omit<React_2.HTMLProps<HTMLSelectElement>, 'as'>,
|
|
9307
9314
|
| 'default'
|
|
9308
9315
|
| 'disabled'
|
|
9309
9316
|
| 'selected'
|
|
@@ -9665,7 +9672,7 @@ export declare const Select: ForwardRefExoticComponent<
|
|
|
9665
9672
|
| 'wmode'
|
|
9666
9673
|
| keyof SelectProps
|
|
9667
9674
|
> &
|
|
9668
|
-
RefAttributes<HTMLSelectElement>
|
|
9675
|
+
React_2.RefAttributes<HTMLSelectElement>
|
|
9669
9676
|
>
|
|
9670
9677
|
|
|
9671
9678
|
/**
|
|
@@ -9688,9 +9695,9 @@ export declare interface SelectProps {
|
|
|
9688
9695
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
9689
9696
|
* @beta
|
|
9690
9697
|
*/
|
|
9691
|
-
export declare const Skeleton: ForwardRefExoticComponent<
|
|
9698
|
+
export declare const Skeleton: React_2.ForwardRefExoticComponent<
|
|
9692
9699
|
Pick<
|
|
9693
|
-
SkeletonProps & HTMLProps<HTMLDivElement>,
|
|
9700
|
+
SkeletonProps & React_2.HTMLProps<HTMLDivElement>,
|
|
9694
9701
|
| 'default'
|
|
9695
9702
|
| 'disabled'
|
|
9696
9703
|
| 'selected'
|
|
@@ -10079,7 +10086,7 @@ export declare const Skeleton: ForwardRefExoticComponent<
|
|
|
10079
10086
|
| 'animated'
|
|
10080
10087
|
| 'delay'
|
|
10081
10088
|
> &
|
|
10082
|
-
RefAttributes<HTMLDivElement>
|
|
10089
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
10083
10090
|
>
|
|
10084
10091
|
|
|
10085
10092
|
/**
|
|
@@ -10094,9 +10101,9 @@ export declare interface SkeletonProps extends ResponsiveRadiusProps, Omit<BoxPr
|
|
|
10094
10101
|
/**
|
|
10095
10102
|
* @public
|
|
10096
10103
|
*/
|
|
10097
|
-
export declare const Spinner: ForwardRefExoticComponent<
|
|
10104
|
+
export declare const Spinner: React_2.ForwardRefExoticComponent<
|
|
10098
10105
|
Pick<
|
|
10099
|
-
SpinnerProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'as'>,
|
|
10106
|
+
SpinnerProps & Omit<React_2.HTMLProps<HTMLDivElement>, 'size' | 'as'>,
|
|
10100
10107
|
| 'default'
|
|
10101
10108
|
| 'disabled'
|
|
10102
10109
|
| 'selected'
|
|
@@ -10456,7 +10463,7 @@ export declare const Spinner: ForwardRefExoticComponent<
|
|
|
10456
10463
|
| 'wmode'
|
|
10457
10464
|
| keyof SpinnerProps
|
|
10458
10465
|
> &
|
|
10459
|
-
RefAttributes<HTMLDivElement>
|
|
10466
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
10460
10467
|
>
|
|
10461
10468
|
|
|
10462
10469
|
/**
|
|
@@ -10470,9 +10477,9 @@ export declare interface SpinnerProps {
|
|
|
10470
10477
|
/**
|
|
10471
10478
|
* @public
|
|
10472
10479
|
*/
|
|
10473
|
-
export declare const SrOnly: ForwardRefExoticComponent<
|
|
10480
|
+
export declare const SrOnly: React_2.ForwardRefExoticComponent<
|
|
10474
10481
|
Pick<
|
|
10475
|
-
SrOnlyProps & Omit<HTMLProps<HTMLDivElement>, 'aria-hidden' | 'as'>,
|
|
10482
|
+
SrOnlyProps & Omit<React_2.HTMLProps<HTMLDivElement>, 'aria-hidden' | 'as'>,
|
|
10476
10483
|
| 'default'
|
|
10477
10484
|
| 'disabled'
|
|
10478
10485
|
| 'selected'
|
|
@@ -10832,29 +10839,31 @@ export declare const SrOnly: ForwardRefExoticComponent<
|
|
|
10832
10839
|
| 'wmode'
|
|
10833
10840
|
| keyof SrOnlyProps
|
|
10834
10841
|
> &
|
|
10835
|
-
RefAttributes<HTMLDivElement>
|
|
10842
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
10836
10843
|
>
|
|
10837
10844
|
|
|
10838
10845
|
/**
|
|
10839
10846
|
* @public
|
|
10840
10847
|
*/
|
|
10841
10848
|
export declare interface SrOnlyProps {
|
|
10842
|
-
as?:
|
|
10843
|
-
children?:
|
|
10849
|
+
as?: React_2.ElementType | keyof JSX.IntrinsicElements
|
|
10850
|
+
children?: React_2.ReactNode
|
|
10844
10851
|
}
|
|
10845
10852
|
|
|
10846
10853
|
/**
|
|
10847
10854
|
* @public
|
|
10848
10855
|
*/
|
|
10849
|
-
export declare const Stack: ForwardRefExoticComponent<
|
|
10850
|
-
StackProps &
|
|
10856
|
+
export declare const Stack: React_2.ForwardRefExoticComponent<
|
|
10857
|
+
StackProps &
|
|
10858
|
+
Omit<React_2.HTMLProps<HTMLDivElement>, 'ref' | 'as'> &
|
|
10859
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
10851
10860
|
>
|
|
10852
10861
|
|
|
10853
10862
|
/**
|
|
10854
10863
|
* @public
|
|
10855
10864
|
*/
|
|
10856
10865
|
export declare interface StackProps extends BoxProps {
|
|
10857
|
-
as?:
|
|
10866
|
+
as?: React_2.ElementType | keyof JSX.IntrinsicElements
|
|
10858
10867
|
space?: number | number[]
|
|
10859
10868
|
}
|
|
10860
10869
|
|
|
@@ -10879,9 +10888,9 @@ export declare interface Styles {
|
|
|
10879
10888
|
/**
|
|
10880
10889
|
* @public
|
|
10881
10890
|
*/
|
|
10882
|
-
export declare const Switch: ForwardRefExoticComponent<
|
|
10891
|
+
export declare const Switch: React_2.ForwardRefExoticComponent<
|
|
10883
10892
|
Pick<
|
|
10884
|
-
Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & SwitchProps,
|
|
10893
|
+
Omit<React_2.HTMLProps<HTMLInputElement>, 'type' | 'as'> & SwitchProps,
|
|
10885
10894
|
| 'default'
|
|
10886
10895
|
| 'disabled'
|
|
10887
10896
|
| 'selected'
|
|
@@ -11242,7 +11251,7 @@ export declare const Switch: ForwardRefExoticComponent<
|
|
|
11242
11251
|
| 'wmode'
|
|
11243
11252
|
| 'indeterminate'
|
|
11244
11253
|
> &
|
|
11245
|
-
RefAttributes<HTMLInputElement>
|
|
11254
|
+
React_2.RefAttributes<HTMLInputElement>
|
|
11246
11255
|
>
|
|
11247
11256
|
|
|
11248
11257
|
/**
|
|
@@ -11255,9 +11264,10 @@ export declare interface SwitchProps {
|
|
|
11255
11264
|
/**
|
|
11256
11265
|
* @public
|
|
11257
11266
|
*/
|
|
11258
|
-
export declare const Tab: ForwardRefExoticComponent<
|
|
11267
|
+
export declare const Tab: React_2.ForwardRefExoticComponent<
|
|
11259
11268
|
Pick<
|
|
11260
|
-
TabProps &
|
|
11269
|
+
TabProps &
|
|
11270
|
+
Omit<React_2.HTMLProps<HTMLButtonElement>, 'label' | 'type' | 'id' | 'aria-controls' | 'as'>,
|
|
11261
11271
|
| 'default'
|
|
11262
11272
|
| 'disabled'
|
|
11263
11273
|
| 'name'
|
|
@@ -11614,15 +11624,15 @@ export declare const Tab: ForwardRefExoticComponent<
|
|
|
11614
11624
|
| 'wmode'
|
|
11615
11625
|
| keyof TabProps
|
|
11616
11626
|
> &
|
|
11617
|
-
RefAttributes<HTMLButtonElement>
|
|
11627
|
+
React_2.RefAttributes<HTMLButtonElement>
|
|
11618
11628
|
>
|
|
11619
11629
|
|
|
11620
11630
|
/**
|
|
11621
11631
|
* @public
|
|
11622
11632
|
*/
|
|
11623
|
-
export declare const TabList: ForwardRefExoticComponent<
|
|
11633
|
+
export declare const TabList: React_2.ForwardRefExoticComponent<
|
|
11624
11634
|
Pick<
|
|
11625
|
-
TabListProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>,
|
|
11635
|
+
TabListProps & Omit<React_2.HTMLProps<HTMLDivElement>, 'height' | 'as'>,
|
|
11626
11636
|
| 'default'
|
|
11627
11637
|
| 'disabled'
|
|
11628
11638
|
| 'selected'
|
|
@@ -11982,22 +11992,23 @@ export declare const TabList: ForwardRefExoticComponent<
|
|
|
11982
11992
|
| 'wmode'
|
|
11983
11993
|
| keyof TabListProps
|
|
11984
11994
|
> &
|
|
11985
|
-
RefAttributes<unknown>
|
|
11995
|
+
React_2.RefAttributes<unknown>
|
|
11986
11996
|
>
|
|
11987
11997
|
|
|
11988
11998
|
/**
|
|
11989
11999
|
* @public
|
|
11990
12000
|
*/
|
|
11991
12001
|
export declare interface TabListProps extends Omit<InlineProps, 'as' | 'height'> {
|
|
11992
|
-
children: Array<
|
|
12002
|
+
children: Array<React_2.ReactElement | null | undefined | false>
|
|
11993
12003
|
}
|
|
11994
12004
|
|
|
11995
12005
|
/**
|
|
11996
12006
|
* @public
|
|
11997
12007
|
*/
|
|
11998
|
-
export declare const TabPanel: ForwardRefExoticComponent<
|
|
12008
|
+
export declare const TabPanel: React_2.ForwardRefExoticComponent<
|
|
11999
12009
|
Pick<
|
|
12000
|
-
TabPanelProps &
|
|
12010
|
+
TabPanelProps &
|
|
12011
|
+
Omit<React_2.HTMLProps<HTMLDivElement>, 'id' | 'role' | 'aria-labelledby' | 'as'>,
|
|
12001
12012
|
| 'default'
|
|
12002
12013
|
| 'disabled'
|
|
12003
12014
|
| 'selected'
|
|
@@ -12355,7 +12366,7 @@ export declare const TabPanel: ForwardRefExoticComponent<
|
|
|
12355
12366
|
| 'wmode'
|
|
12356
12367
|
| keyof TabPanelProps
|
|
12357
12368
|
> &
|
|
12358
|
-
RefAttributes<HTMLDivElement>
|
|
12369
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
12359
12370
|
>
|
|
12360
12371
|
|
|
12361
12372
|
/**
|
|
@@ -12378,10 +12389,10 @@ export declare interface TabProps {
|
|
|
12378
12389
|
*/
|
|
12379
12390
|
'aria-controls': string
|
|
12380
12391
|
id: string
|
|
12381
|
-
icon?:
|
|
12392
|
+
icon?: React_2.ComponentType | React_2.ReactNode
|
|
12382
12393
|
focused?: boolean
|
|
12383
12394
|
fontSize?: number | number[]
|
|
12384
|
-
label?:
|
|
12395
|
+
label?: React_2.ReactNode
|
|
12385
12396
|
padding?: number | number[]
|
|
12386
12397
|
selected?: boolean
|
|
12387
12398
|
tone?: ButtonTone
|
|
@@ -12390,9 +12401,9 @@ export declare interface TabProps {
|
|
|
12390
12401
|
/**
|
|
12391
12402
|
* @public
|
|
12392
12403
|
*/
|
|
12393
|
-
declare const Text_2: ForwardRefExoticComponent<
|
|
12404
|
+
declare const Text_2: React_2.ForwardRefExoticComponent<
|
|
12394
12405
|
Pick<
|
|
12395
|
-
TextProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'as'>,
|
|
12406
|
+
TextProps & Omit<React_2.HTMLProps<HTMLDivElement>, 'size' | 'as'>,
|
|
12396
12407
|
| 'default'
|
|
12397
12408
|
| 'disabled'
|
|
12398
12409
|
| 'selected'
|
|
@@ -12752,7 +12763,7 @@ declare const Text_2: ForwardRefExoticComponent<
|
|
|
12752
12763
|
| 'wmode'
|
|
12753
12764
|
| keyof TextProps
|
|
12754
12765
|
> &
|
|
12755
|
-
RefAttributes<HTMLDivElement>
|
|
12766
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
12756
12767
|
>
|
|
12757
12768
|
export {Text_2 as Text}
|
|
12758
12769
|
|
|
@@ -12764,9 +12775,9 @@ export declare type TextAlign = 'left' | 'right' | 'center' | 'justify' | 'initi
|
|
|
12764
12775
|
/**
|
|
12765
12776
|
* @public
|
|
12766
12777
|
*/
|
|
12767
|
-
export declare const TextArea: ForwardRefExoticComponent<
|
|
12778
|
+
export declare const TextArea: React_2.ForwardRefExoticComponent<
|
|
12768
12779
|
Pick<
|
|
12769
|
-
TextAreaProps & Omit<HTMLProps<HTMLTextAreaElement>, 'as'>,
|
|
12780
|
+
TextAreaProps & Omit<React_2.HTMLProps<HTMLTextAreaElement>, 'as'>,
|
|
12770
12781
|
| 'default'
|
|
12771
12782
|
| 'disabled'
|
|
12772
12783
|
| 'selected'
|
|
@@ -13128,7 +13139,7 @@ export declare const TextArea: ForwardRefExoticComponent<
|
|
|
13128
13139
|
| 'wmode'
|
|
13129
13140
|
| keyof TextAreaProps
|
|
13130
13141
|
> &
|
|
13131
|
-
RefAttributes<HTMLTextAreaElement>
|
|
13142
|
+
React_2.RefAttributes<HTMLTextAreaElement>
|
|
13132
13143
|
>
|
|
13133
13144
|
|
|
13134
13145
|
/**
|
|
@@ -13145,9 +13156,9 @@ export declare interface TextAreaProps extends ResponsiveRadiusProps {
|
|
|
13145
13156
|
/**
|
|
13146
13157
|
* @public
|
|
13147
13158
|
*/
|
|
13148
|
-
export declare const TextInput: ForwardRefExoticComponent<
|
|
13159
|
+
export declare const TextInput: React_2.ForwardRefExoticComponent<
|
|
13149
13160
|
Pick<
|
|
13150
|
-
TextInputProps & Omit<HTMLProps<HTMLInputElement>, 'type' | 'prefix' | 'as'>,
|
|
13161
|
+
TextInputProps & Omit<React_2.HTMLProps<HTMLInputElement>, 'type' | 'prefix' | 'as'>,
|
|
13151
13162
|
| 'default'
|
|
13152
13163
|
| 'disabled'
|
|
13153
13164
|
| 'selected'
|
|
@@ -13507,14 +13518,14 @@ export declare const TextInput: ForwardRefExoticComponent<
|
|
|
13507
13518
|
| 'wmode'
|
|
13508
13519
|
| keyof TextInputProps
|
|
13509
13520
|
> &
|
|
13510
|
-
RefAttributes<HTMLInputElement>
|
|
13521
|
+
React_2.RefAttributes<HTMLInputElement>
|
|
13511
13522
|
>
|
|
13512
13523
|
|
|
13513
13524
|
/**
|
|
13514
13525
|
* @public
|
|
13515
13526
|
*/
|
|
13516
13527
|
export declare type TextInputClearButtonProps = Omit<ButtonProps, 'as'> &
|
|
13517
|
-
Omit<
|
|
13528
|
+
Omit<React_2.HTMLProps<HTMLButtonElement>, 'as' | 'onClick' | 'onMouseDown' | 'ref'>
|
|
13518
13529
|
|
|
13519
13530
|
/**
|
|
13520
13531
|
* @public
|
|
@@ -13527,17 +13538,17 @@ export declare interface TextInputProps {
|
|
|
13527
13538
|
clearButton?: boolean | TextInputClearButtonProps
|
|
13528
13539
|
customValidity?: string
|
|
13529
13540
|
fontSize?: number | number[]
|
|
13530
|
-
icon?:
|
|
13531
|
-
iconRight?:
|
|
13541
|
+
icon?: React_2.ComponentType | React_2.ReactNode
|
|
13542
|
+
iconRight?: React_2.ComponentType | React_2.ReactNode
|
|
13532
13543
|
/**
|
|
13533
13544
|
* @beta
|
|
13534
13545
|
*/
|
|
13535
13546
|
onClear?: () => void
|
|
13536
13547
|
padding?: number | number[]
|
|
13537
|
-
prefix?:
|
|
13548
|
+
prefix?: React_2.ReactNode
|
|
13538
13549
|
radius?: number | number[]
|
|
13539
13550
|
space?: number | number[]
|
|
13540
|
-
suffix?:
|
|
13551
|
+
suffix?: React_2.ReactNode
|
|
13541
13552
|
type?: TextInputType
|
|
13542
13553
|
weight?: ThemeFontWeightKey
|
|
13543
13554
|
}
|
|
@@ -13564,7 +13575,7 @@ export declare type TextInputType =
|
|
|
13564
13575
|
export declare interface TextProps {
|
|
13565
13576
|
accent?: boolean
|
|
13566
13577
|
align?: TextAlign | TextAlign[]
|
|
13567
|
-
as?:
|
|
13578
|
+
as?: React_2.ElementType | keyof JSX.IntrinsicElements
|
|
13568
13579
|
muted?: boolean
|
|
13569
13580
|
size?: number | number[]
|
|
13570
13581
|
/**
|
|
@@ -13580,9 +13591,10 @@ export declare interface TextProps {
|
|
|
13580
13591
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
13581
13592
|
* @beta
|
|
13582
13593
|
*/
|
|
13583
|
-
export declare const TextSkeleton: ForwardRefExoticComponent<
|
|
13594
|
+
export declare const TextSkeleton: React_2.ForwardRefExoticComponent<
|
|
13584
13595
|
Pick<
|
|
13585
|
-
TextSkeletonProps &
|
|
13596
|
+
TextSkeletonProps &
|
|
13597
|
+
Omit<React_2.HTMLProps<HTMLDivElement>, 'children' | 'size' | 'height' | 'as'>,
|
|
13586
13598
|
| 'default'
|
|
13587
13599
|
| 'disabled'
|
|
13588
13600
|
| 'selected'
|
|
@@ -13941,7 +13953,7 @@ export declare const TextSkeleton: ForwardRefExoticComponent<
|
|
|
13941
13953
|
| 'wmode'
|
|
13942
13954
|
| keyof TextSkeletonProps
|
|
13943
13955
|
> &
|
|
13944
|
-
RefAttributes<HTMLDivElement>
|
|
13956
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
13945
13957
|
>
|
|
13946
13958
|
|
|
13947
13959
|
/**
|
|
@@ -14216,13 +14228,13 @@ export declare type ThemeColorName =
|
|
|
14216
14228
|
/**
|
|
14217
14229
|
* @public
|
|
14218
14230
|
*/
|
|
14219
|
-
export declare function ThemeColorProvider(props: ThemeColorProviderProps):
|
|
14231
|
+
export declare function ThemeColorProvider(props: ThemeColorProviderProps): React_2.ReactElement
|
|
14220
14232
|
|
|
14221
14233
|
/**
|
|
14222
14234
|
* @public
|
|
14223
14235
|
*/
|
|
14224
14236
|
export declare interface ThemeColorProviderProps {
|
|
14225
|
-
children?:
|
|
14237
|
+
children?: React_2.ReactNode
|
|
14226
14238
|
scheme?: ThemeColorSchemeKey
|
|
14227
14239
|
tone?: ThemeColorName
|
|
14228
14240
|
}
|
|
@@ -14497,13 +14509,13 @@ export declare interface ThemeProps {
|
|
|
14497
14509
|
/**
|
|
14498
14510
|
* @public
|
|
14499
14511
|
*/
|
|
14500
|
-
export declare function ThemeProvider(props: ThemeProviderProps):
|
|
14512
|
+
export declare function ThemeProvider(props: ThemeProviderProps): React_2.ReactElement
|
|
14501
14513
|
|
|
14502
14514
|
/**
|
|
14503
14515
|
* @public
|
|
14504
14516
|
*/
|
|
14505
14517
|
export declare interface ThemeProviderProps {
|
|
14506
|
-
children?:
|
|
14518
|
+
children?: React_2.ReactNode
|
|
14507
14519
|
scheme?: ThemeColorSchemeKey
|
|
14508
14520
|
theme?: RootTheme
|
|
14509
14521
|
tone?: ThemeColorName
|
|
@@ -14522,8 +14534,8 @@ export declare interface ThemeShadow {
|
|
|
14522
14534
|
* @public
|
|
14523
14535
|
*/
|
|
14524
14536
|
export declare function Toast(
|
|
14525
|
-
props: ToastProps & Omit<
|
|
14526
|
-
):
|
|
14537
|
+
props: ToastProps & Omit<React_2.HTMLProps<HTMLDivElement>, 'as' | 'height' | 'ref' | 'title'>
|
|
14538
|
+
): React_2.ReactElement
|
|
14527
14539
|
|
|
14528
14540
|
/**
|
|
14529
14541
|
* @public
|
|
@@ -14551,22 +14563,22 @@ export declare interface ToastParams {
|
|
|
14551
14563
|
*/
|
|
14552
14564
|
export declare interface ToastProps {
|
|
14553
14565
|
closable?: boolean
|
|
14554
|
-
description?:
|
|
14566
|
+
description?: React_2.ReactNode
|
|
14555
14567
|
onClose?: () => void
|
|
14556
|
-
title?:
|
|
14568
|
+
title?: React_2.ReactNode
|
|
14557
14569
|
status?: 'error' | 'warning' | 'success' | 'info'
|
|
14558
14570
|
}
|
|
14559
14571
|
|
|
14560
14572
|
/**
|
|
14561
14573
|
* @public
|
|
14562
14574
|
*/
|
|
14563
|
-
export declare function ToastProvider(props: ToastProviderProps):
|
|
14575
|
+
export declare function ToastProvider(props: ToastProviderProps): React_2.ReactElement
|
|
14564
14576
|
|
|
14565
14577
|
/**
|
|
14566
14578
|
* @public
|
|
14567
14579
|
*/
|
|
14568
14580
|
export declare interface ToastProviderProps {
|
|
14569
|
-
children?:
|
|
14581
|
+
children?: React_2.ReactNode
|
|
14570
14582
|
padding?: number | number[]
|
|
14571
14583
|
paddingX?: number | number[]
|
|
14572
14584
|
paddingY?: number | number[]
|
|
@@ -14576,9 +14588,9 @@ export declare interface ToastProviderProps {
|
|
|
14576
14588
|
/**
|
|
14577
14589
|
* @public
|
|
14578
14590
|
*/
|
|
14579
|
-
export declare const Tooltip: ForwardRefExoticComponent<
|
|
14591
|
+
export declare const Tooltip: React_2.ForwardRefExoticComponent<
|
|
14580
14592
|
Pick<
|
|
14581
|
-
TooltipProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'content' | 'as'>,
|
|
14593
|
+
TooltipProps & Omit<React_2.HTMLProps<HTMLDivElement>, 'children' | 'content' | 'as'>,
|
|
14582
14594
|
| 'default'
|
|
14583
14595
|
| 'selected'
|
|
14584
14596
|
| 'name'
|
|
@@ -14937,7 +14949,7 @@ export declare const Tooltip: ForwardRefExoticComponent<
|
|
|
14937
14949
|
| 'wmode'
|
|
14938
14950
|
| keyof TooltipProps
|
|
14939
14951
|
> &
|
|
14940
|
-
RefAttributes<HTMLDivElement>
|
|
14952
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
14941
14953
|
>
|
|
14942
14954
|
|
|
14943
14955
|
/**
|
|
@@ -14946,8 +14958,8 @@ export declare const Tooltip: ForwardRefExoticComponent<
|
|
|
14946
14958
|
export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
|
|
14947
14959
|
allowedAutoPlacements?: Placement[]
|
|
14948
14960
|
boundaryElement?: HTMLElement | null
|
|
14949
|
-
children?:
|
|
14950
|
-
content?:
|
|
14961
|
+
children?: React_2.ReactElement
|
|
14962
|
+
content?: React_2.ReactNode
|
|
14951
14963
|
disabled?: boolean
|
|
14952
14964
|
fallbackPlacements?: Placement[]
|
|
14953
14965
|
placement?: Placement
|
|
@@ -14959,11 +14971,11 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
|
|
|
14959
14971
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
14960
14972
|
* @beta
|
|
14961
14973
|
*/
|
|
14962
|
-
export declare const Tree: MemoExoticComponent<
|
|
14963
|
-
ForwardRefExoticComponent<
|
|
14974
|
+
export declare const Tree: React_2.MemoExoticComponent<
|
|
14975
|
+
React_2.ForwardRefExoticComponent<
|
|
14964
14976
|
TreeProps &
|
|
14965
|
-
Omit<HTMLProps<HTMLDivElement>, 'ref' | 'wrap' | 'height' | 'role' | 'as' | 'align'> &
|
|
14966
|
-
RefAttributes<HTMLDivElement>
|
|
14977
|
+
Omit<React_2.HTMLProps<HTMLDivElement>, 'ref' | 'wrap' | 'height' | 'role' | 'as' | 'align'> &
|
|
14978
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
14967
14979
|
>
|
|
14968
14980
|
>
|
|
14969
14981
|
|
|
@@ -14986,8 +14998,8 @@ export declare interface TreeContextValue {
|
|
|
14986
14998
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
14987
14999
|
* @beta
|
|
14988
15000
|
*/
|
|
14989
|
-
export declare const TreeItem: NamedExoticComponent<
|
|
14990
|
-
TreeItemProps & Omit<HTMLProps<HTMLLIElement>, 'ref' | 'role' | 'as'>
|
|
15001
|
+
export declare const TreeItem: React_2.NamedExoticComponent<
|
|
15002
|
+
TreeItemProps & Omit<React_2.HTMLProps<HTMLLIElement>, 'ref' | 'role' | 'as'>
|
|
14991
15003
|
>
|
|
14992
15004
|
|
|
14993
15005
|
/**
|
|
@@ -14996,10 +15008,10 @@ export declare const TreeItem: NamedExoticComponent<
|
|
|
14996
15008
|
export declare interface TreeItemProps {
|
|
14997
15009
|
expanded?: boolean
|
|
14998
15010
|
fontSize?: number | number[]
|
|
14999
|
-
icon?:
|
|
15011
|
+
icon?: React_2.ComponentType
|
|
15000
15012
|
padding?: number | number[]
|
|
15001
15013
|
space?: number | number[]
|
|
15002
|
-
text?:
|
|
15014
|
+
text?: React_2.ReactNode
|
|
15003
15015
|
weight?: ThemeFontWeightKey
|
|
15004
15016
|
}
|
|
15005
15017
|
|
|
@@ -15082,8 +15094,8 @@ export declare function useElementSize(element: HTMLElement | null): ElementSize
|
|
|
15082
15094
|
* @beta
|
|
15083
15095
|
*/
|
|
15084
15096
|
export declare function useForwardedRef<T>(
|
|
15085
|
-
ref:
|
|
15086
|
-
):
|
|
15097
|
+
ref: React_2.ForwardedRef<T>
|
|
15098
|
+
): React_2.MutableRefObject<T | null>
|
|
15087
15099
|
|
|
15088
15100
|
/**
|
|
15089
15101
|
* @beta
|
|
@@ -15134,11 +15146,11 @@ export declare function useTree(): TreeContextValue
|
|
|
15134
15146
|
/**
|
|
15135
15147
|
* @beta
|
|
15136
15148
|
*/
|
|
15137
|
-
export declare const VirtualList: ForwardRefExoticComponent<
|
|
15149
|
+
export declare const VirtualList: React_2.ForwardRefExoticComponent<
|
|
15138
15150
|
VirtualListProps<any> &
|
|
15139
15151
|
StackProps &
|
|
15140
|
-
Omit<HTMLProps<HTMLDivElement>, 'children' | 'ref' | 'onChange' | 'as'> &
|
|
15141
|
-
RefAttributes<HTMLDivElement>
|
|
15152
|
+
Omit<React_2.HTMLProps<HTMLDivElement>, 'children' | 'ref' | 'onChange' | 'as'> &
|
|
15153
|
+
React_2.RefAttributes<HTMLDivElement>
|
|
15142
15154
|
>
|
|
15143
15155
|
|
|
15144
15156
|
/**
|
|
@@ -15157,12 +15169,12 @@ export declare interface VirtualListChangeOpts {
|
|
|
15157
15169
|
* @beta
|
|
15158
15170
|
*/
|
|
15159
15171
|
export declare interface VirtualListProps<Item = any> {
|
|
15160
|
-
as?:
|
|
15172
|
+
as?: React_2.ElementType | keyof JSX.IntrinsicElements
|
|
15161
15173
|
gap?: number
|
|
15162
15174
|
getItemKey?: (item: Item, itemIndex: number) => string
|
|
15163
15175
|
items?: Item[]
|
|
15164
15176
|
onChange?: (opts: VirtualListChangeOpts) => void
|
|
15165
|
-
renderItem?: (item: Item) =>
|
|
15177
|
+
renderItem?: (item: Item) => React_2.ReactNode
|
|
15166
15178
|
}
|
|
15167
15179
|
|
|
15168
15180
|
export {}
|