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