@sanity/ui 2.9.0-corel.0 → 3.0.0-static.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/ui.js +6 -0
- package/dist/_chunks-cjs/buildCommand.js +2836 -0
- package/dist/_chunks-cjs/buildCommand.js.map +1 -0
- package/dist/_chunks-cjs/getTheme_v2.js +1 -27
- package/dist/_chunks-cjs/getTheme_v2.js.map +1 -1
- package/dist/_chunks-es/getTheme_v2.mjs +1 -27
- package/dist/_chunks-es/getTheme_v2.mjs.map +1 -1
- package/dist/_legacy/getTheme_v2.esm.js +1 -27
- package/dist/_legacy/getTheme_v2.esm.js.map +1 -1
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +23 -0
- package/dist/cli.js.map +1 -0
- package/dist/css.d.mts +943 -0
- package/dist/css.d.ts +943 -0
- package/dist/css.esm.js +3135 -0
- package/dist/css.esm.js.map +1 -0
- package/dist/css.js +3135 -0
- package/dist/css.js.map +1 -0
- package/dist/css.mjs +3135 -0
- package/dist/css.mjs.map +1 -0
- package/dist/index.d.mts +175 -164
- package/dist/index.d.ts +175 -164
- package/dist/index.esm.js +864 -1955
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +870 -1962
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +864 -1955
- package/dist/index.mjs.map +1 -1
- package/dist/sanity-theme.css +25 -0
- package/dist/system.css +2953 -0
- package/dist/theme.d.mts +84 -22
- package/dist/theme.d.ts +84 -22
- package/dist/theme.esm.js +232 -283
- package/dist/theme.esm.js.map +1 -1
- package/dist/theme.js +232 -283
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +232 -283
- package/dist/theme.mjs.map +1 -1
- package/exports/css.ts +1 -0
- package/package.json +25 -4
- package/src/core/__workshop__/constants.ts +15 -15
- package/src/core/__workshop__/fontsPlugin.tsx +1 -1
- package/src/core/components/autocomplete/autocomplete.styles.tsx +1 -1
- package/src/core/components/autocomplete/autocomplete.tsx +12 -4
- package/src/core/components/breadcrumbs/__workshop__/example.tsx +1 -3
- package/src/core/components/breadcrumbs/__workshop__/index.ts +0 -5
- package/src/core/components/breadcrumbs/breadcrumbs.styles.ts +14 -2
- package/src/core/components/breadcrumbs/breadcrumbs.tsx +14 -9
- package/src/core/components/dialog/__workshop__/panes.tsx +1 -1
- package/src/core/components/dialog/dialog.tsx +77 -92
- package/src/core/components/hotkeys/hotkeys.tsx +18 -29
- package/src/core/components/menu/menu.tsx +8 -5
- package/src/core/components/menu/menuDivider.ts +2 -1
- package/src/core/components/menu/menuGroup.tsx +16 -8
- package/src/core/components/menu/menuItem.tsx +23 -14
- package/src/core/components/skeleton/skeleton.tsx +1 -1
- package/src/core/components/skeleton/styles.ts +1 -1
- package/src/core/components/skeleton/textSkeleton.tsx +1 -1
- package/src/core/components/tab/tab.tsx +6 -7
- package/src/core/components/tab/tabList.tsx +3 -2
- package/src/core/components/toast/styles.ts +1 -1
- package/src/core/components/toast/toast.tsx +6 -4
- package/src/core/components/toast/toastProvider.tsx +31 -22
- package/src/core/components/tree/style.ts +1 -1
- package/src/core/components/tree/tree.tsx +8 -2
- package/src/core/components/tree/treeGroup.tsx +1 -1
- package/src/core/components/tree/treeItem.tsx +38 -25
- package/src/core/components/tree/types.ts +5 -1
- package/src/core/lib/styled/elements.ts +135 -0
- package/src/core/lib/styled/index.ts +2 -0
- package/src/core/lib/styled/members.ts +15 -0
- package/src/core/lib/styled/styled.ts +79 -0
- package/src/core/primitives/_selectable/selectable.tsx +27 -14
- package/src/core/primitives/avatar/avatar.tsx +52 -32
- package/src/core/primitives/avatar/avatarCounter.tsx +1 -1
- package/src/core/primitives/avatar/avatarStack.tsx +1 -1
- package/src/core/primitives/badge/__workshop__/tones.tsx +9 -16
- package/src/core/primitives/badge/badge.tsx +18 -20
- package/src/core/primitives/box/box.tsx +62 -74
- package/src/core/primitives/button/__workshop__/props.tsx +3 -1
- package/src/core/primitives/button/__workshop__/sanityUploadButton.tsx +1 -1
- package/src/core/primitives/button/__workshop__/styled1.tsx +1 -1
- package/src/core/primitives/button/__workshop__/styled2.tsx +1 -1
- package/src/core/primitives/button/button.tsx +38 -45
- package/src/core/primitives/button/styles.ts +2 -2
- package/src/core/primitives/card/RootCardContext.ts +3 -0
- package/src/core/primitives/card/__workshop__/selected.tsx +1 -1
- package/src/core/primitives/card/__workshop__/styled.tsx +1 -1
- package/src/core/primitives/card/card.tsx +44 -46
- package/src/core/primitives/card/styles.ts +1 -1
- package/src/core/primitives/checkbox/checkbox.tsx +6 -8
- package/src/core/primitives/code/code.tsx +23 -12
- package/src/core/primitives/code/styles.ts +1 -1
- package/src/core/primitives/container/container.tsx +7 -15
- package/src/core/primitives/flex/__workshop__/example.tsx +1 -1
- package/src/core/primitives/flex/flex.tsx +6 -19
- package/src/core/primitives/grid/grid.tsx +2 -1
- package/src/core/primitives/heading/heading.tsx +32 -19
- package/src/core/primitives/heading/styles.ts +1 -1
- package/src/core/primitives/inline/inline.tsx +22 -13
- package/src/core/primitives/kbd/kbd.tsx +30 -37
- package/src/core/primitives/label/label.tsx +15 -4
- package/src/core/primitives/label/styles.ts +1 -1
- package/src/core/primitives/popover/__workshop__/RecursiveStory.tsx +0 -1
- package/src/core/primitives/popover/popover.tsx +21 -15
- package/src/core/primitives/popover/popoverCard.tsx +36 -38
- package/src/core/primitives/radio/radio.tsx +1 -1
- package/src/core/primitives/radio/styles.ts +1 -1
- package/src/core/primitives/select/select.tsx +1 -1
- package/src/core/primitives/select/styles.ts +1 -1
- package/src/core/primitives/spinner/spinner.tsx +6 -20
- package/src/core/primitives/stack/stack.tsx +12 -10
- package/src/core/primitives/switch/styles.ts +9 -9
- package/src/core/primitives/switch/switch.tsx +20 -21
- package/src/core/primitives/text/__workshop__/colored.tsx +1 -1
- package/src/core/primitives/text/styles.ts +1 -2
- package/src/core/primitives/text/text.tsx +17 -21
- package/src/core/primitives/textArea/textArea.tsx +1 -1
- package/src/core/primitives/textInput/__workshop__/plain.tsx +1 -1
- package/src/core/primitives/textInput/textInput.tsx +176 -123
- package/src/core/primitives/tooltip/tooltip.test.tsx +1 -0
- package/src/core/primitives/tooltip/tooltip.tsx +13 -13
- package/src/core/primitives/tooltip/tooltipCard.tsx +15 -14
- package/src/core/primitives/types.ts +35 -16
- package/src/core/styles/border/borderStyle.ts +6 -0
- package/src/core/styles/border/types.ts +1 -0
- package/src/core/styles/box/boxStyle.ts +6 -0
- package/src/core/styles/card/_cardColorStyle.ts +0 -8
- package/src/core/styles/flex/flexStyle.ts +0 -18
- package/src/core/styles/flex/types.ts +1 -3
- package/src/core/styles/grid/gridStyle.ts +0 -10
- package/src/core/styles/helpers.ts +9 -0
- package/src/core/styles/input/textInputStyle.ts +1 -1
- package/src/core/theme/__workshop__/build/Root.tsx +1 -1
- package/src/core/theme/themeProvider.tsx +1 -1
- package/src/core/theme/useTheme.ts +1 -1
- package/src/core/types/avatar.ts +6 -1
- package/src/core/types/button.ts +1 -0
- package/src/core/types/flex.ts +27 -26
- package/src/core/types/gridItem.ts +32 -24
- package/src/core/types/radius.ts +7 -4
- package/src/core/utils/arrow/arrow.tsx +1 -1
- package/src/core/utils/elementQuery/__workshop__/customMedia.tsx +1 -1
- package/src/core/utils/layer/layer.tsx +28 -11
- package/src/core/utils/srOnly/srOnly.tsx +1 -1
- package/src/core/utils/virtualList/virtualList.tsx +1 -1
- package/src/css/_resp.ts +28 -0
- package/src/css/cli/buildCommand.ts +36 -0
- package/src/css/cli/index.ts +38 -0
- package/src/css/compile/comileRules.ts +59 -0
- package/src/css/compile/compileRule.ts +58 -0
- package/src/css/compile/compileSystem.ts +7 -0
- package/src/css/compile/compileTheme.ts +509 -0
- package/src/css/components/breadcrumbs/breadcrumbs.ts +5 -0
- package/src/css/components/breadcrumbs/index.ts +1 -0
- package/src/css/components/breadcrumbs/rules.ts +7 -0
- package/src/css/components/dialog/classes.ts +29 -0
- package/src/css/components/dialog/index.ts +1 -0
- package/src/css/components/dialog/rules.ts +75 -0
- package/src/css/components/tree/index.ts +1 -0
- package/src/css/components/tree/rules.ts +52 -0
- package/src/css/components/tree/tree.ts +5 -0
- package/src/css/composeClassNames.ts +3 -0
- package/src/css/index.ts +47 -0
- package/src/css/primitives/avatar/avatar.ts +32 -0
- package/src/css/primitives/avatar/index.ts +2 -0
- package/src/css/primitives/avatar/rules.ts +190 -0
- package/src/css/primitives/avatar/types.ts +9 -0
- package/src/css/primitives/badge/badge.ts +8 -0
- package/src/css/primitives/badge/index.ts +2 -0
- package/src/css/primitives/badge/rules.ts +25 -0
- package/src/css/primitives/badge/types.ts +8 -0
- package/src/css/primitives/box/box.ts +34 -0
- package/src/css/primitives/box/index.ts +2 -0
- package/src/css/primitives/box/rules.ts +25 -0
- package/src/css/primitives/box/types.ts +49 -0
- package/src/css/primitives/button/button.ts +26 -0
- package/src/css/primitives/button/index.ts +1 -0
- package/src/css/primitives/button/rules.ts +58 -0
- package/src/css/primitives/card/card.ts +21 -0
- package/src/css/primitives/card/index.ts +1 -0
- package/src/css/primitives/card/rules.ts +93 -0
- package/src/{core/primitives/checkbox/styles.ts → css/primitives/checkbox/__styles.ts} +3 -3
- package/src/css/primitives/checkbox/checkbox.ts +9 -0
- package/src/css/primitives/checkbox/index.ts +1 -0
- package/src/css/primitives/checkbox/rules.ts +136 -0
- package/src/css/primitives/code/code.ts +9 -0
- package/src/css/primitives/code/index.ts +2 -0
- package/src/css/primitives/code/rules.ts +71 -0
- package/src/css/primitives/code/types.ts +10 -0
- package/src/css/primitives/container/container.ts +7 -0
- package/src/css/primitives/container/index.ts +2 -0
- package/src/css/primitives/container/rules.ts +8 -0
- package/src/css/primitives/container/types.ts +6 -0
- package/src/css/primitives/heading/heading.ts +16 -0
- package/src/css/primitives/heading/index.ts +2 -0
- package/src/css/primitives/heading/rules.ts +84 -0
- package/src/css/primitives/heading/types.ts +12 -0
- package/src/css/primitives/kbd/index.ts +2 -0
- package/src/css/primitives/kbd/kbd.ts +7 -0
- package/src/css/primitives/kbd/rules.ts +20 -0
- package/src/css/primitives/kbd/types.ts +5 -0
- package/src/css/primitives/label/index.ts +2 -0
- package/src/css/primitives/label/label.ts +16 -0
- package/src/css/primitives/label/rules.ts +85 -0
- package/src/css/primitives/label/types.ts +12 -0
- package/src/css/primitives/popover/index.ts +1 -0
- package/src/css/primitives/popover/popover.ts +5 -0
- package/src/css/primitives/popover/rules.ts +5 -0
- package/src/css/primitives/radio/index.ts +1 -0
- package/src/css/primitives/radio/radio.ts +5 -0
- package/src/css/primitives/radio/rules.ts +5 -0
- package/src/css/primitives/select/index.ts +1 -0
- package/src/css/primitives/select/rules.ts +5 -0
- package/src/css/primitives/select/select.ts +5 -0
- package/src/{core/primitives/_selectable/style.ts → css/primitives/selectable/__style.ts} +5 -4
- package/src/css/primitives/selectable/index.ts +2 -0
- package/src/css/primitives/selectable/rules.ts +27 -0
- package/src/css/primitives/selectable/selectable.ts +9 -0
- package/src/css/primitives/selectable/types.ts +6 -0
- package/src/css/primitives/spinner/index.ts +1 -0
- package/src/css/primitives/spinner/rules.ts +22 -0
- package/src/css/primitives/spinner/spinner.ts +5 -0
- package/src/css/primitives/switch/index.ts +1 -0
- package/src/css/primitives/switch/rules.ts +132 -0
- package/src/css/primitives/switch/switch.ts +5 -0
- package/src/css/primitives/text/index.ts +2 -0
- package/src/css/primitives/text/rules.ts +75 -0
- package/src/css/primitives/text/text.ts +16 -0
- package/src/css/primitives/text/types.ts +11 -0
- package/src/css/primitives/textArea/index.ts +1 -0
- package/src/css/primitives/textArea/rules.ts +5 -0
- package/src/css/primitives/textArea/textArea.ts +5 -0
- package/src/css/primitives/textInput/index.ts +1 -0
- package/src/css/primitives/textInput/rules.ts +226 -0
- package/src/css/primitives/textInput/textInput.ts +7 -0
- package/src/css/primitives/token/rules.ts +45 -0
- package/src/css/primitives/tooltip/index.ts +1 -0
- package/src/css/primitives/tooltip/rules.ts +17 -0
- package/src/css/primitives/tooltip/tooltip.ts +9 -0
- package/src/css/responsiveRules.ts +25 -0
- package/src/css/rules.ts +121 -0
- package/src/css/styles/border/border.ts +22 -0
- package/src/css/styles/border/index.ts +2 -0
- package/src/css/styles/border/rules.ts +24 -0
- package/src/css/styles/border/types.ts +10 -0
- package/src/css/styles/display/rules.ts +62 -0
- package/src/css/styles/flex/flex.ts +20 -0
- package/src/css/styles/flex/index.ts +2 -0
- package/src/css/styles/flex/rules.ts +28 -0
- package/src/css/styles/flex/types.ts +35 -0
- package/src/css/styles/flexItem/flexItem.ts +8 -0
- package/src/css/styles/flexItem/index.ts +2 -0
- package/src/css/styles/flexItem/rules.ts +11 -0
- package/src/css/styles/flexItem/types.ts +11 -0
- package/src/css/styles/font/font.ts +12 -0
- package/src/css/styles/font/index.ts +2 -0
- package/src/css/styles/font/rules.ts +125 -0
- package/src/css/styles/font/types.ts +6 -0
- package/src/css/styles/gap/gap.ts +8 -0
- package/src/css/styles/gap/index.ts +2 -0
- package/src/css/styles/gap/rules.ts +33 -0
- package/src/css/styles/gap/types.ts +9 -0
- package/src/css/styles/grid/rules.ts +35 -0
- package/src/css/styles/gridItem/gridItem.ts +15 -0
- package/src/css/styles/gridItem/index.ts +2 -0
- package/src/css/styles/gridItem/rules.ts +96 -0
- package/src/css/styles/gridItem/types.ts +41 -0
- package/src/css/styles/height/rules.ts +7 -0
- package/src/css/styles/margin/index.ts +2 -0
- package/src/css/styles/margin/margin.ts +15 -0
- package/src/css/styles/margin/rules.ts +59 -0
- package/src/css/styles/margin/types.ts +11 -0
- package/src/css/styles/maxWidth/index.ts +2 -0
- package/src/css/styles/maxWidth/maxWidth.ts +6 -0
- package/src/css/styles/maxWidth/rules.ts +36 -0
- package/src/css/styles/maxWidth/types.ts +6 -0
- package/src/css/styles/overflow/rules.ts +9 -0
- package/src/css/styles/padding/index.ts +2 -0
- package/src/css/styles/padding/padding.ts +15 -0
- package/src/css/styles/padding/rules.ts +59 -0
- package/src/css/styles/padding/types.ts +12 -0
- package/src/css/styles/pointerEvents/index.ts +2 -0
- package/src/css/styles/pointerEvents/pointerEvents.ts +6 -0
- package/src/css/styles/pointerEvents/rules.ts +11 -0
- package/src/css/styles/pointerEvents/types.ts +7 -0
- package/src/css/styles/position/index.ts +2 -0
- package/src/css/styles/position/position.ts +7 -0
- package/src/css/styles/position/rules.ts +31 -0
- package/src/css/styles/position/types.ts +13 -0
- package/src/css/styles/radius/index.ts +2 -0
- package/src/css/styles/radius/radius.ts +8 -0
- package/src/css/styles/radius/rules.ts +13 -0
- package/src/css/styles/radius/types.ts +7 -0
- package/src/css/styles/shadow/rules.ts +53 -0
- package/src/css/styles/width/index.ts +2 -0
- package/src/css/styles/width/rules.ts +7 -0
- package/src/css/styles/width/types.ts +8 -0
- package/src/css/styles/width/width.ts +6 -0
- package/src/css/types.ts +591 -0
- package/src/css/varNames.ts +381 -0
- package/src/css/vars.ts +313 -0
- package/src/theme/build/_deprecated/color/factory.ts +1 -1
- package/src/theme/build/_deprecated/color/muted/createMuted.ts +2 -2
- package/src/theme/build/buildColorTheme.ts +39 -45
- package/src/theme/build/renderColorTheme.ts +65 -239
- package/src/theme/build/resolveColorTokens.ts +115 -51
- package/src/theme/config/tokens/color/types.ts +18 -4
- package/src/theme/defaults/colorTokens.ts +10 -17
- package/src/theme/defaults/config.ts +1 -1
- package/src/theme/getScopedTheme.ts +2 -9
- package/src/theme/system/_constants.ts +25 -0
- package/src/theme/system/_types.ts +41 -0
- package/src/theme/system/color/_constants.ts +0 -8
- package/src/theme/system/color/badge.ts +7 -3
- package/src/theme/system/index.ts +2 -0
- package/src/theme/system/v0/color/_system.ts +4 -8
- package/src/theme/system/v0/color/color.ts +2 -3
- package/src/theme/versioning/themeColor_v0_v2.ts +0 -26
- package/src/theme/versioning/v0_v2.ts +0 -4
- package/src/core/components/breadcrumbs/__workshop__/buttons.tsx +0 -58
- package/src/core/components/dialog/styles.ts +0 -76
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,30 @@
|
|
|
1
|
+
import {AvatarSize} from '@sanity/ui/theme'
|
|
1
2
|
import {BaseTheme as BaseTheme_2} from '@sanity/ui/theme'
|
|
3
|
+
import {BoxStyleProps} from '@sanity/ui/css'
|
|
4
|
+
import {CardStyleProps as CardStyleProps_2} from '@sanity/ui/css'
|
|
2
5
|
import {Component} from 'react'
|
|
6
|
+
import {ContainerStyleProps} from '@sanity/ui/css'
|
|
3
7
|
import {Context} from 'react'
|
|
4
8
|
import {createColorTheme as createColorTheme_2} from '@sanity/ui/theme'
|
|
5
9
|
import {CSSObject} from '@sanity/ui/theme'
|
|
6
10
|
import {DetailedHTMLProps} from 'react'
|
|
7
11
|
import {ElementType} from 'react'
|
|
8
12
|
import {FastOmit} from 'styled-components'
|
|
13
|
+
import {FlexAlign} from '@sanity/ui/css'
|
|
14
|
+
import {FlexDirection} from '@sanity/ui/css'
|
|
15
|
+
import {FlexJustify} from '@sanity/ui/css'
|
|
16
|
+
import {FlexValue} from '@sanity/ui/css'
|
|
17
|
+
import {FlexWrap} from '@sanity/ui/css'
|
|
18
|
+
import {FontTextSize} from '@sanity/ui/theme'
|
|
19
|
+
import {FontWeight} from '@sanity/ui/theme'
|
|
9
20
|
import {ForwardRefExoticComponent} from 'react'
|
|
21
|
+
import {GapStyleProps} from '@sanity/ui/css'
|
|
22
|
+
import {GridItemColumn} from '@sanity/ui/css'
|
|
23
|
+
import {GridItemColumnEnd} from '@sanity/ui/css'
|
|
24
|
+
import {GridItemColumnStart} from '@sanity/ui/css'
|
|
25
|
+
import {GridItemRow} from '@sanity/ui/css'
|
|
26
|
+
import {GridItemRowEnd} from '@sanity/ui/css'
|
|
27
|
+
import {GridItemRowStart} from '@sanity/ui/css'
|
|
10
28
|
import {hexToRgb as hexToRgb_2} from '@sanity/ui/theme'
|
|
11
29
|
import {HSL as HSL_2} from '@sanity/ui/theme'
|
|
12
30
|
import {hslToRgb as hslToRgb_2} from '@sanity/ui/theme'
|
|
@@ -17,20 +35,27 @@ import {MemoExoticComponent} from 'react'
|
|
|
17
35
|
import {multiply as multiply_2} from '@sanity/ui/theme'
|
|
18
36
|
import {MutableRefObject} from 'react'
|
|
19
37
|
import {NamedExoticComponent} from 'react'
|
|
38
|
+
import {PaddingStyleProps} from '@sanity/ui/css'
|
|
20
39
|
import {parseColor as parseColor_2} from '@sanity/ui/theme'
|
|
21
40
|
import {PartialThemeColorBuilderOpts} from '@sanity/ui/theme'
|
|
41
|
+
import {PositionStyleProps} from '@sanity/ui/css'
|
|
22
42
|
import {PropsWithChildren} from 'react'
|
|
43
|
+
import {Radius} from '@sanity/ui/theme'
|
|
44
|
+
import {RadiusStyleProps} from '@sanity/ui/css'
|
|
23
45
|
import {ReactElement} from 'react'
|
|
24
46
|
import {ReactNode} from 'react'
|
|
25
47
|
import {Ref} from 'react'
|
|
26
48
|
import {RefAttributes} from 'react'
|
|
27
49
|
import {RefCallback} from 'react'
|
|
50
|
+
import {ResponsiveProp} from '@sanity/ui/css'
|
|
28
51
|
import {RGB as RGB_2} from '@sanity/ui/theme'
|
|
29
52
|
import {rgba as rgba_2} from '@sanity/ui/theme'
|
|
30
53
|
import {rgbToHex as rgbToHex_2} from '@sanity/ui/theme'
|
|
31
54
|
import {rgbToHsl as rgbToHsl_2} from '@sanity/ui/theme'
|
|
32
55
|
import {RootTheme as RootTheme_2} from '@sanity/ui/theme'
|
|
33
56
|
import {screen as screen_3} from '@sanity/ui/theme'
|
|
57
|
+
import {Space} from '@sanity/ui/theme'
|
|
58
|
+
import {TextStyleProps} from '@sanity/ui/css'
|
|
34
59
|
import {Theme as Theme_2} from '@sanity/ui/theme'
|
|
35
60
|
import {Theme_v2} from '@sanity/ui/theme'
|
|
36
61
|
import {ThemeAvatar} from '@sanity/ui/theme'
|
|
@@ -77,6 +102,7 @@ import {ThemeInput} from '@sanity/ui/theme'
|
|
|
77
102
|
import {ThemeLayer as ThemeLayer_2} from '@sanity/ui/theme'
|
|
78
103
|
import {ThemeShadow as ThemeShadow_2} from '@sanity/ui/theme'
|
|
79
104
|
import {ThemeStyles} from '@sanity/ui/theme'
|
|
105
|
+
import {Width} from '@sanity/ui/css'
|
|
80
106
|
|
|
81
107
|
/** @beta */
|
|
82
108
|
export declare type ArrayPropPrimitive = string | number | boolean | undefined | null
|
|
@@ -176,7 +202,7 @@ export declare interface AutocompleteProps<
|
|
|
176
202
|
border?: boolean
|
|
177
203
|
customValidity?: string
|
|
178
204
|
filterOption?: (query: string, option: Option) => boolean
|
|
179
|
-
fontSize?:
|
|
205
|
+
fontSize?: ResponsiveProp<FontTextSize>
|
|
180
206
|
icon?: ElementType | ReactNode
|
|
181
207
|
id: string
|
|
182
208
|
/** @beta */
|
|
@@ -191,7 +217,7 @@ export declare interface AutocompleteProps<
|
|
|
191
217
|
openOnFocus?: boolean
|
|
192
218
|
/** The options to render. */
|
|
193
219
|
options?: Option[]
|
|
194
|
-
padding?:
|
|
220
|
+
padding?: ResponsiveProp<Space>
|
|
195
221
|
popover?: Omit<PopoverProps, 'content' | 'onMouseEnter' | 'onMouseLeave' | 'open'> &
|
|
196
222
|
Omit<HTMLProps<HTMLDivElement>, 'as' | 'children' | 'content' | 'ref' | 'width'>
|
|
197
223
|
prefix?: ReactNode
|
|
@@ -342,10 +368,7 @@ export declare interface AvatarRootStyleProps {
|
|
|
342
368
|
$color: ThemeColorAvatarColorKey
|
|
343
369
|
}
|
|
344
370
|
|
|
345
|
-
|
|
346
|
-
* @public
|
|
347
|
-
*/
|
|
348
|
-
export declare type AvatarSize = 0 | 1 | 2 | 3
|
|
371
|
+
export {AvatarSize}
|
|
349
372
|
|
|
350
373
|
/**
|
|
351
374
|
* @public
|
|
@@ -365,6 +388,9 @@ export declare interface AvatarStackProps {
|
|
|
365
388
|
tone?: 'navbar'
|
|
366
389
|
}
|
|
367
390
|
|
|
391
|
+
/**
|
|
392
|
+
* @public
|
|
393
|
+
*/
|
|
368
394
|
/**
|
|
369
395
|
* @public
|
|
370
396
|
*/
|
|
@@ -376,7 +402,7 @@ export declare type AvatarStatus = 'online' | 'editing' | 'inactive'
|
|
|
376
402
|
* @public
|
|
377
403
|
*/
|
|
378
404
|
export declare const Badge: ForwardRefExoticComponent<
|
|
379
|
-
Omit<BadgeProps & HTMLProps<HTMLDivElement>, 'ref'> & RefAttributes<
|
|
405
|
+
Omit<BadgeProps & HTMLProps<HTMLDivElement>, 'ref'> & RefAttributes<HTMLDivElement>
|
|
380
406
|
>
|
|
381
407
|
|
|
382
408
|
/**
|
|
@@ -388,7 +414,7 @@ export declare type BadgeMode = 'default' | 'outline'
|
|
|
388
414
|
/**
|
|
389
415
|
* @public
|
|
390
416
|
*/
|
|
391
|
-
export declare interface BadgeProps extends BoxProps,
|
|
417
|
+
export declare interface BadgeProps extends BoxProps, RadiusStyleProps {
|
|
392
418
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
393
419
|
fontSize?: number | number[]
|
|
394
420
|
/** @deprecated No longer used. */
|
|
@@ -448,7 +474,7 @@ export declare interface BoundaryElementProviderProps {
|
|
|
448
474
|
* @public
|
|
449
475
|
*/
|
|
450
476
|
export declare const Box: ForwardRefExoticComponent<
|
|
451
|
-
Omit<BoxProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
|
|
477
|
+
Omit<BoxProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'wrap' | 'as'>, 'ref'> &
|
|
452
478
|
RefAttributes<HTMLDivElement>
|
|
453
479
|
>
|
|
454
480
|
|
|
@@ -470,12 +496,7 @@ export declare type BoxOverflow = 'visible' | 'hidden' | 'auto'
|
|
|
470
496
|
/**
|
|
471
497
|
* @public
|
|
472
498
|
*/
|
|
473
|
-
export declare interface BoxProps
|
|
474
|
-
extends ResponsiveFlexItemProps,
|
|
475
|
-
ResponsiveBoxProps,
|
|
476
|
-
ResponsiveGridItemProps,
|
|
477
|
-
ResponsiveMarginProps,
|
|
478
|
-
ResponsivePaddingProps {
|
|
499
|
+
export declare interface BoxProps extends BoxStyleProps, GapStyleProps, PositionStyleProps {
|
|
479
500
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
480
501
|
forwardedAs?: React.ElementType | keyof JSX.IntrinsicElements
|
|
481
502
|
}
|
|
@@ -503,11 +524,8 @@ export declare const Breadcrumbs: ForwardRefExoticComponent<
|
|
|
503
524
|
/**
|
|
504
525
|
* @beta
|
|
505
526
|
*/
|
|
506
|
-
export declare interface BreadcrumbsProps {
|
|
527
|
+
export declare interface BreadcrumbsProps extends GapStyleProps {
|
|
507
528
|
expandButton?: Omit<ButtonProps, 'onClick' | 'selected'>
|
|
508
|
-
gap?: number | number[]
|
|
509
|
-
gapX?: number | number[]
|
|
510
|
-
gapY?: number | number[]
|
|
511
529
|
maxLength?: number
|
|
512
530
|
separator?: React.ReactNode
|
|
513
531
|
/** @deprecated - Use `gap`, `gapX`, `gapY` instead */
|
|
@@ -518,7 +536,10 @@ export declare interface BreadcrumbsProps {
|
|
|
518
536
|
* @public
|
|
519
537
|
*/
|
|
520
538
|
export declare const Button: ForwardRefExoticComponent<
|
|
521
|
-
Omit<
|
|
539
|
+
Omit<
|
|
540
|
+
ButtonProps & Omit<HTMLProps<HTMLButtonElement>, 'height' | 'width' | 'wrap' | 'as'>,
|
|
541
|
+
'ref'
|
|
542
|
+
> &
|
|
522
543
|
RefAttributes<HTMLButtonElement>
|
|
523
544
|
>
|
|
524
545
|
|
|
@@ -530,19 +551,19 @@ export declare type ButtonMode = ThemeColorButtonModeKey_2
|
|
|
530
551
|
/**
|
|
531
552
|
* @public
|
|
532
553
|
*/
|
|
533
|
-
export declare interface ButtonProps extends
|
|
554
|
+
export declare interface ButtonProps extends PaddingStyleProps, RadiusStyleProps {
|
|
534
555
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
535
|
-
fontSize?:
|
|
556
|
+
fontSize?: ResponsiveProp<FontTextSize>
|
|
536
557
|
mode?: ButtonMode
|
|
537
558
|
icon?: React.ElementType | React.ReactNode
|
|
538
559
|
iconRight?: React.ElementType | React.ReactNode
|
|
539
|
-
justify?: FlexJustify
|
|
560
|
+
justify?: ResponsiveProp<FlexJustify>
|
|
540
561
|
/**
|
|
541
562
|
* @beta Do not use in production, as this might change.
|
|
542
563
|
*/
|
|
543
564
|
loading?: boolean
|
|
544
565
|
selected?: boolean
|
|
545
|
-
space?:
|
|
566
|
+
space?: ResponsiveProp<Space>
|
|
546
567
|
textAlign?: ButtonTextAlign
|
|
547
568
|
muted?: boolean
|
|
548
569
|
text?: React.ReactNode
|
|
@@ -550,7 +571,7 @@ export declare interface ButtonProps extends ResponsivePaddingProps, ResponsiveR
|
|
|
550
571
|
textWeight?: TextProps['weight']
|
|
551
572
|
tone?: ButtonTone
|
|
552
573
|
type?: 'button' | 'reset' | 'submit'
|
|
553
|
-
width?:
|
|
574
|
+
width?: ResponsiveProp<Width>
|
|
554
575
|
}
|
|
555
576
|
|
|
556
577
|
/**
|
|
@@ -565,6 +586,7 @@ export declare type ButtonTone = ThemeColorStateToneKey
|
|
|
565
586
|
|
|
566
587
|
/**
|
|
567
588
|
* @public
|
|
589
|
+
* @deprecated Use `Width` from `@sanity/ui/css` instead.
|
|
568
590
|
*/
|
|
569
591
|
export declare type ButtonWidth = 'fill'
|
|
570
592
|
|
|
@@ -575,18 +597,14 @@ export declare type ButtonWidth = 'fill'
|
|
|
575
597
|
* @public
|
|
576
598
|
*/
|
|
577
599
|
export declare const Card: ForwardRefExoticComponent<
|
|
578
|
-
Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
|
|
600
|
+
Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'wrap' | 'as'>, 'ref'> &
|
|
579
601
|
RefAttributes<HTMLDivElement>
|
|
580
602
|
>
|
|
581
603
|
|
|
582
604
|
/**
|
|
583
605
|
* @public
|
|
584
606
|
*/
|
|
585
|
-
export declare interface CardProps
|
|
586
|
-
extends BoxProps,
|
|
587
|
-
ResponsiveBorderProps,
|
|
588
|
-
ResponsiveRadiusProps,
|
|
589
|
-
ResponsiveShadowProps {
|
|
607
|
+
export declare interface CardProps extends BoxProps, CardStyleProps_2 {
|
|
590
608
|
/**
|
|
591
609
|
* Do not use in production.
|
|
592
610
|
* @beta
|
|
@@ -660,7 +678,8 @@ export declare type ClickOutsideListener = (event: MouseEvent) => void
|
|
|
660
678
|
* @public
|
|
661
679
|
*/
|
|
662
680
|
export declare const Code: ForwardRefExoticComponent<
|
|
663
|
-
Omit<CodeProps & Omit<HTMLProps<
|
|
681
|
+
Omit<CodeProps & Omit<HTMLProps<HTMLPreElement>, 'size' | 'as'>, 'ref'> &
|
|
682
|
+
RefAttributes<HTMLPreElement>
|
|
664
683
|
>
|
|
665
684
|
|
|
666
685
|
/**
|
|
@@ -671,7 +690,7 @@ export declare interface CodeProps {
|
|
|
671
690
|
/** Define the language to use for syntax highlighting. */
|
|
672
691
|
language?: string
|
|
673
692
|
size?: number | number[]
|
|
674
|
-
weight?:
|
|
693
|
+
weight?: FontWeight
|
|
675
694
|
}
|
|
676
695
|
|
|
677
696
|
/**
|
|
@@ -680,7 +699,7 @@ export declare interface CodeProps {
|
|
|
680
699
|
*/
|
|
681
700
|
export declare const CodeSkeleton: ForwardRefExoticComponent<
|
|
682
701
|
Omit<
|
|
683
|
-
CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | '
|
|
702
|
+
CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
|
|
684
703
|
'ref'
|
|
685
704
|
> &
|
|
686
705
|
RefAttributes<HTMLDivElement>
|
|
@@ -725,7 +744,7 @@ export declare const Container: ForwardRefExoticComponent<
|
|
|
725
744
|
/**
|
|
726
745
|
* @public
|
|
727
746
|
*/
|
|
728
|
-
export declare interface ContainerProps extends BoxProps,
|
|
747
|
+
export declare interface ContainerProps extends Omit<BoxProps, 'width'>, ContainerStyleProps {}
|
|
729
748
|
|
|
730
749
|
/**
|
|
731
750
|
* @internal
|
|
@@ -754,7 +773,10 @@ export declare type Delay =
|
|
|
754
773
|
* @public
|
|
755
774
|
*/
|
|
756
775
|
export declare const Dialog: ForwardRefExoticComponent<
|
|
757
|
-
Omit<
|
|
776
|
+
Omit<
|
|
777
|
+
DialogProps & Omit<HTMLProps<HTMLDivElement>, 'id' | 'height' | 'width' | 'wrap' | 'as'>,
|
|
778
|
+
'ref'
|
|
779
|
+
> &
|
|
758
780
|
RefAttributes<HTMLDivElement>
|
|
759
781
|
>
|
|
760
782
|
|
|
@@ -781,7 +803,7 @@ export declare type DialogPosition = 'absolute' | 'fixed'
|
|
|
781
803
|
/**
|
|
782
804
|
* @public
|
|
783
805
|
*/
|
|
784
|
-
export declare interface DialogProps extends
|
|
806
|
+
export declare interface DialogProps extends PaddingStyleProps, ContainerStyleProps {
|
|
785
807
|
/**
|
|
786
808
|
* @beta
|
|
787
809
|
*/
|
|
@@ -790,6 +812,13 @@ export declare interface DialogProps extends ResponsivePaddingProps, ResponsiveW
|
|
|
790
812
|
* @beta
|
|
791
813
|
*/
|
|
792
814
|
__unstable_hideCloseButton?: boolean
|
|
815
|
+
/**
|
|
816
|
+
* Whether the dialog should animate in on mount.
|
|
817
|
+
*
|
|
818
|
+
* @beta
|
|
819
|
+
* @defaultValue false
|
|
820
|
+
*/
|
|
821
|
+
animate?: boolean
|
|
793
822
|
cardRadius?: Radius | Radius[]
|
|
794
823
|
cardShadow?: number | number[]
|
|
795
824
|
contentRef?: React.ForwardedRef<HTMLDivElement>
|
|
@@ -804,13 +833,6 @@ export declare interface DialogProps extends ResponsivePaddingProps, ResponsiveW
|
|
|
804
833
|
position?: DialogPosition | DialogPosition[]
|
|
805
834
|
scheme?: ThemeColorSchemeKey_2
|
|
806
835
|
zOffset?: number | number[]
|
|
807
|
-
/**
|
|
808
|
-
* Whether the dialog should animate in on mount.
|
|
809
|
-
*
|
|
810
|
-
* @beta
|
|
811
|
-
* @defaultValue false
|
|
812
|
-
*/
|
|
813
|
-
animate?: boolean
|
|
814
836
|
}
|
|
815
837
|
|
|
816
838
|
/**
|
|
@@ -929,48 +951,20 @@ export declare const Flex: ForwardRefExoticComponent<
|
|
|
929
951
|
RefAttributes<HTMLDivElement>
|
|
930
952
|
>
|
|
931
953
|
|
|
932
|
-
|
|
933
|
-
* @public
|
|
934
|
-
*/
|
|
935
|
-
export declare type FlexAlign = 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch'
|
|
954
|
+
export {FlexAlign}
|
|
936
955
|
|
|
937
|
-
|
|
938
|
-
* @public
|
|
939
|
-
*/
|
|
940
|
-
export declare type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse'
|
|
956
|
+
export {FlexDirection}
|
|
941
957
|
|
|
942
|
-
|
|
943
|
-
* @public
|
|
944
|
-
*/
|
|
945
|
-
export declare type FlexJustify =
|
|
946
|
-
| 'flex-start'
|
|
947
|
-
| 'flex-end'
|
|
948
|
-
| 'center'
|
|
949
|
-
| 'space-between'
|
|
950
|
-
| 'space-around'
|
|
951
|
-
| 'space-evenly'
|
|
958
|
+
export {FlexJustify}
|
|
952
959
|
|
|
953
960
|
/**
|
|
954
961
|
* @public
|
|
955
962
|
*/
|
|
956
|
-
export declare interface FlexProps
|
|
957
|
-
extends Omit<BoxProps, 'display'>,
|
|
958
|
-
ResponsiveFlexProps,
|
|
959
|
-
ResponsiveFlexItemProps {
|
|
960
|
-
gap?: number | number[]
|
|
961
|
-
gapX?: number | number[]
|
|
962
|
-
gapY?: number | number[]
|
|
963
|
-
}
|
|
963
|
+
export declare interface FlexProps extends Omit<BoxProps, 'display'> {}
|
|
964
964
|
|
|
965
|
-
|
|
966
|
-
* @public
|
|
967
|
-
*/
|
|
968
|
-
export declare type FlexValue = number | 'none' | 'auto' | 'initial'
|
|
965
|
+
export {FlexValue}
|
|
969
966
|
|
|
970
|
-
|
|
971
|
-
* @public
|
|
972
|
-
*/
|
|
973
|
-
export declare type FlexWrap = 'wrap' | 'wrap-reverse' | 'nowrap'
|
|
967
|
+
export {FlexWrap}
|
|
974
968
|
|
|
975
969
|
/**
|
|
976
970
|
* @internal
|
|
@@ -1028,35 +1022,17 @@ export declare type GridAutoFlow = 'row' | 'column' | 'row dense' | 'column dens
|
|
|
1028
1022
|
*/
|
|
1029
1023
|
export declare type GridAutoRows = 'auto' | 'min' | 'max' | 'fr'
|
|
1030
1024
|
|
|
1031
|
-
|
|
1032
|
-
* @public
|
|
1033
|
-
*/
|
|
1034
|
-
export declare type GridItemColumn = 'auto' | 'full' | number
|
|
1025
|
+
export {GridItemColumn}
|
|
1035
1026
|
|
|
1036
|
-
|
|
1037
|
-
* @public
|
|
1038
|
-
*/
|
|
1039
|
-
export declare type GridItemColumnEnd = 'auto' | number
|
|
1027
|
+
export {GridItemColumnEnd}
|
|
1040
1028
|
|
|
1041
|
-
|
|
1042
|
-
* @public
|
|
1043
|
-
*/
|
|
1044
|
-
export declare type GridItemColumnStart = 'auto' | number
|
|
1029
|
+
export {GridItemColumnStart}
|
|
1045
1030
|
|
|
1046
|
-
|
|
1047
|
-
* @public
|
|
1048
|
-
*/
|
|
1049
|
-
export declare type GridItemRow = 'auto' | 'full' | number
|
|
1031
|
+
export {GridItemRow}
|
|
1050
1032
|
|
|
1051
|
-
|
|
1052
|
-
* @public
|
|
1053
|
-
*/
|
|
1054
|
-
export declare type GridItemRowEnd = 'auto' | number
|
|
1033
|
+
export {GridItemRowEnd}
|
|
1055
1034
|
|
|
1056
|
-
|
|
1057
|
-
* @public
|
|
1058
|
-
*/
|
|
1059
|
-
export declare type GridItemRowStart = 'auto' | number
|
|
1035
|
+
export {GridItemRowStart}
|
|
1060
1036
|
|
|
1061
1037
|
/**
|
|
1062
1038
|
* @public
|
|
@@ -1092,7 +1068,7 @@ export declare interface HeadingProps {
|
|
|
1092
1068
|
* Use `textOverflow="ellipsis"` to render text as a single line which is concatenated with a `…` symbol.
|
|
1093
1069
|
* @beta
|
|
1094
1070
|
*/
|
|
1095
|
-
textOverflow?: 'ellipsis'
|
|
1071
|
+
textOverflow?: 'ellipsis'
|
|
1096
1072
|
weight?: ThemeFontWeightKey_2
|
|
1097
1073
|
}
|
|
1098
1074
|
|
|
@@ -1102,7 +1078,7 @@ export declare interface HeadingProps {
|
|
|
1102
1078
|
*/
|
|
1103
1079
|
export declare const HeadingSkeleton: ForwardRefExoticComponent<
|
|
1104
1080
|
Omit<
|
|
1105
|
-
HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | '
|
|
1081
|
+
HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
|
|
1106
1082
|
'ref'
|
|
1107
1083
|
> &
|
|
1108
1084
|
RefAttributes<HTMLDivElement>
|
|
@@ -1128,17 +1104,21 @@ export declare const hexToRgb: typeof hexToRgb_2
|
|
|
1128
1104
|
* @public
|
|
1129
1105
|
*/
|
|
1130
1106
|
export declare const Hotkeys: ForwardRefExoticComponent<
|
|
1131
|
-
HotkeysProps &
|
|
1107
|
+
HotkeysProps &
|
|
1108
|
+
Omit<
|
|
1109
|
+
HTMLProps<HTMLDivElement>,
|
|
1110
|
+
'display' | 'height' | 'width' | 'size' | 'wrap' | 'ref' | 'as'
|
|
1111
|
+
> &
|
|
1112
|
+
RefAttributes<HTMLDivElement>
|
|
1132
1113
|
>
|
|
1133
1114
|
|
|
1134
1115
|
/**
|
|
1135
1116
|
* @public
|
|
1136
1117
|
*/
|
|
1137
|
-
export declare interface HotkeysProps {
|
|
1138
|
-
fontSize?:
|
|
1139
|
-
padding?:
|
|
1140
|
-
|
|
1141
|
-
space?: number | number[]
|
|
1118
|
+
export declare interface HotkeysProps extends RadiusStyleProps {
|
|
1119
|
+
fontSize?: ResponsiveProp<FontTextSize>
|
|
1120
|
+
padding?: ResponsiveProp<Space>
|
|
1121
|
+
space?: ResponsiveProp<Space>
|
|
1142
1122
|
keys?: string[]
|
|
1143
1123
|
}
|
|
1144
1124
|
|
|
@@ -1160,15 +1140,16 @@ export declare const hslToRgb: typeof hslToRgb_2
|
|
|
1160
1140
|
* @public
|
|
1161
1141
|
*/
|
|
1162
1142
|
export declare const Inline: ForwardRefExoticComponent<
|
|
1163
|
-
Omit<InlineProps & HTMLProps<HTMLDivElement>, 'ref'> & RefAttributes<unknown>
|
|
1143
|
+
Omit<InlineProps & Omit<HTMLProps<HTMLDivElement>, 'wrap'>, 'ref'> & RefAttributes<unknown>
|
|
1164
1144
|
>
|
|
1165
1145
|
|
|
1166
1146
|
/**
|
|
1167
1147
|
* @public
|
|
1168
1148
|
*/
|
|
1169
|
-
export declare interface InlineProps
|
|
1149
|
+
export declare interface InlineProps
|
|
1150
|
+
extends Omit<BoxProps, 'align' | 'display' | 'gap' | 'gapX' | 'gapY' | 'justify'> {
|
|
1170
1151
|
/** The spacing between children. */
|
|
1171
|
-
space?:
|
|
1152
|
+
space?: ResponsiveProp<Space>
|
|
1172
1153
|
}
|
|
1173
1154
|
|
|
1174
1155
|
/**
|
|
@@ -1228,11 +1209,10 @@ export declare const KBD: ForwardRefExoticComponent<
|
|
|
1228
1209
|
/**
|
|
1229
1210
|
* @public
|
|
1230
1211
|
*/
|
|
1231
|
-
export declare interface KBDProps {
|
|
1212
|
+
export declare interface KBDProps extends BoxProps, RadiusStyleProps {
|
|
1232
1213
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
1233
|
-
fontSize?:
|
|
1234
|
-
padding?:
|
|
1235
|
-
radius?: Radius | Radius[]
|
|
1214
|
+
fontSize?: ResponsiveProp<FontTextSize>
|
|
1215
|
+
padding?: ResponsiveProp<Space>
|
|
1236
1216
|
}
|
|
1237
1217
|
|
|
1238
1218
|
/**
|
|
@@ -1269,7 +1249,7 @@ export declare interface LabelProps {
|
|
|
1269
1249
|
*/
|
|
1270
1250
|
export declare const LabelSkeleton: ForwardRefExoticComponent<
|
|
1271
1251
|
Omit<
|
|
1272
|
-
LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | '
|
|
1252
|
+
LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
|
|
1273
1253
|
'ref'
|
|
1274
1254
|
> &
|
|
1275
1255
|
RefAttributes<HTMLDivElement>
|
|
@@ -1287,7 +1267,8 @@ export declare interface LabelSkeletonProps extends SkeletonProps {
|
|
|
1287
1267
|
* @public
|
|
1288
1268
|
*/
|
|
1289
1269
|
export declare const Layer: ForwardRefExoticComponent<
|
|
1290
|
-
Omit<LayerProps & Omit<HTMLProps<HTMLDivElement>, 'as'>, 'ref'> &
|
|
1270
|
+
Omit<LayerProps & Omit<HTMLProps<HTMLDivElement>, 'width' | 'wrap' | 'as'>, 'ref'> &
|
|
1271
|
+
RefAttributes<HTMLDivElement>
|
|
1291
1272
|
>
|
|
1292
1273
|
|
|
1293
1274
|
/** @public */
|
|
@@ -1303,8 +1284,7 @@ export declare interface LayerContextValue {
|
|
|
1303
1284
|
/**
|
|
1304
1285
|
* @public
|
|
1305
1286
|
*/
|
|
1306
|
-
export declare interface LayerProps {
|
|
1307
|
-
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
1287
|
+
export declare interface LayerProps extends BoxProps {
|
|
1308
1288
|
/** A callback that fires when the layer becomes the top layer when it was not the top layer before. */
|
|
1309
1289
|
onActivate?: (props: {activeElement: HTMLElement | null}) => void
|
|
1310
1290
|
zOffset?: number | number[]
|
|
@@ -1350,7 +1330,11 @@ export declare interface _MediaStore {
|
|
|
1350
1330
|
* @public
|
|
1351
1331
|
*/
|
|
1352
1332
|
export declare const Menu: ForwardRefExoticComponent<
|
|
1353
|
-
Omit<
|
|
1333
|
+
Omit<
|
|
1334
|
+
MenuProps &
|
|
1335
|
+
Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'wrap' | 'role' | 'tabIndex' | 'as'>,
|
|
1336
|
+
'ref'
|
|
1337
|
+
> &
|
|
1354
1338
|
RefAttributes<HTMLDivElement>
|
|
1355
1339
|
>
|
|
1356
1340
|
|
|
@@ -1417,7 +1401,10 @@ export declare const MenuDivider: IStyledComponentBase<
|
|
|
1417
1401
|
* @public
|
|
1418
1402
|
*/
|
|
1419
1403
|
export declare function MenuGroup(
|
|
1420
|
-
props: Omit<
|
|
1404
|
+
props: Omit<
|
|
1405
|
+
React.HTMLProps<HTMLDivElement>,
|
|
1406
|
+
'as' | 'height' | 'popover' | 'ref' | 'tabIndex' | 'width' | 'wrap'
|
|
1407
|
+
> &
|
|
1421
1408
|
MenuGroupProps,
|
|
1422
1409
|
): React.ReactElement
|
|
1423
1410
|
|
|
@@ -1435,7 +1422,7 @@ export declare interface MenuGroupProps {
|
|
|
1435
1422
|
padding?: number | number[]
|
|
1436
1423
|
popover?: Omit<PopoverProps, 'content' | 'open'>
|
|
1437
1424
|
radius?: Radius | Radius[]
|
|
1438
|
-
space?:
|
|
1425
|
+
space?: ResponsiveProp<Space>
|
|
1439
1426
|
text: React.ReactNode
|
|
1440
1427
|
tone?: SelectableTone
|
|
1441
1428
|
}
|
|
@@ -1445,14 +1432,17 @@ export declare interface MenuGroupProps {
|
|
|
1445
1432
|
*/
|
|
1446
1433
|
export declare const MenuItem: ForwardRefExoticComponent<
|
|
1447
1434
|
MenuItemProps &
|
|
1448
|
-
Omit<
|
|
1435
|
+
Omit<
|
|
1436
|
+
HTMLProps<HTMLDivElement>,
|
|
1437
|
+
'selected' | 'height' | 'width' | 'wrap' | 'tabIndex' | 'ref' | 'as'
|
|
1438
|
+
> &
|
|
1449
1439
|
RefAttributes<HTMLDivElement>
|
|
1450
1440
|
>
|
|
1451
1441
|
|
|
1452
1442
|
/**
|
|
1453
1443
|
* @public
|
|
1454
1444
|
*/
|
|
1455
|
-
export declare interface MenuItemProps extends
|
|
1445
|
+
export declare interface MenuItemProps extends PaddingStyleProps, RadiusStyleProps {
|
|
1456
1446
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
1457
1447
|
fontSize?: number | number[]
|
|
1458
1448
|
hotkeys?: string[]
|
|
@@ -1460,7 +1450,7 @@ export declare interface MenuItemProps extends ResponsivePaddingProps, Responsiv
|
|
|
1460
1450
|
iconRight?: React.ElementType | React.ReactNode
|
|
1461
1451
|
pressed?: boolean
|
|
1462
1452
|
selected?: boolean
|
|
1463
|
-
space?:
|
|
1453
|
+
space?: ResponsiveProp<Space>
|
|
1464
1454
|
text?: React.ReactNode
|
|
1465
1455
|
tone?: SelectableTone
|
|
1466
1456
|
}
|
|
@@ -1468,7 +1458,7 @@ export declare interface MenuItemProps extends ResponsivePaddingProps, Responsiv
|
|
|
1468
1458
|
/**
|
|
1469
1459
|
* @public
|
|
1470
1460
|
*/
|
|
1471
|
-
export declare interface MenuProps extends
|
|
1461
|
+
export declare interface MenuProps extends PaddingStyleProps {
|
|
1472
1462
|
/**
|
|
1473
1463
|
* @deprecated Use `shouldFocus="first"` instead.
|
|
1474
1464
|
*/
|
|
@@ -1484,7 +1474,7 @@ export declare interface MenuProps extends ResponsivePaddingProps {
|
|
|
1484
1474
|
originElement?: HTMLElement | null
|
|
1485
1475
|
registerElement?: (el: HTMLElement) => () => void
|
|
1486
1476
|
shouldFocus?: 'first' | 'last' | null
|
|
1487
|
-
space?:
|
|
1477
|
+
space?: ResponsiveProp<Space>
|
|
1488
1478
|
}
|
|
1489
1479
|
|
|
1490
1480
|
/**
|
|
@@ -1528,7 +1518,11 @@ export declare type Placement =
|
|
|
1528
1518
|
export declare const Popover: MemoExoticComponent<
|
|
1529
1519
|
ForwardRefExoticComponent<
|
|
1530
1520
|
Omit<
|
|
1531
|
-
PopoverProps &
|
|
1521
|
+
PopoverProps &
|
|
1522
|
+
Omit<
|
|
1523
|
+
HTMLProps<HTMLDivElement>,
|
|
1524
|
+
'content' | 'height' | 'width' | 'wrap' | 'children' | 'as'
|
|
1525
|
+
>,
|
|
1532
1526
|
'ref'
|
|
1533
1527
|
> &
|
|
1534
1528
|
RefAttributes<HTMLDivElement>
|
|
@@ -1542,8 +1536,8 @@ export declare type PopoverMargins = [number, number, number, number]
|
|
|
1542
1536
|
|
|
1543
1537
|
/** @public */
|
|
1544
1538
|
export declare interface PopoverProps
|
|
1545
|
-
extends Omit<LayerProps, '
|
|
1546
|
-
|
|
1539
|
+
extends Omit<LayerProps, 'width'>,
|
|
1540
|
+
RadiusStyleProps,
|
|
1547
1541
|
ResponsiveShadowProps {
|
|
1548
1542
|
/** @beta */
|
|
1549
1543
|
__unstable_margins?: PopoverMargins
|
|
@@ -1666,6 +1660,11 @@ export declare interface PortalProviderProps {
|
|
|
1666
1660
|
__unstable_elements?: Record<string, HTMLElement | null | undefined>
|
|
1667
1661
|
}
|
|
1668
1662
|
|
|
1663
|
+
/**
|
|
1664
|
+
* @public
|
|
1665
|
+
*/
|
|
1666
|
+
export declare function px(pixelValue: number): string | 0
|
|
1667
|
+
|
|
1669
1668
|
/**
|
|
1670
1669
|
* The `Radio` component allows the user to select one option from a set.
|
|
1671
1670
|
*
|
|
@@ -1683,10 +1682,7 @@ export declare interface RadioProps {
|
|
|
1683
1682
|
customValidity?: string
|
|
1684
1683
|
}
|
|
1685
1684
|
|
|
1686
|
-
|
|
1687
|
-
* @public
|
|
1688
|
-
*/
|
|
1689
|
-
export declare type Radius = number | 'full'
|
|
1685
|
+
export {Radius}
|
|
1690
1686
|
|
|
1691
1687
|
/**
|
|
1692
1688
|
* @internal
|
|
@@ -1726,6 +1722,7 @@ export declare interface ResponsiveAvatarSizeStyleProps {
|
|
|
1726
1722
|
|
|
1727
1723
|
/**
|
|
1728
1724
|
* @public
|
|
1725
|
+
* @deprecated
|
|
1729
1726
|
*/
|
|
1730
1727
|
export declare interface ResponsiveBorderProps {
|
|
1731
1728
|
border?: boolean | boolean[]
|
|
@@ -1737,6 +1734,7 @@ export declare interface ResponsiveBorderProps {
|
|
|
1737
1734
|
|
|
1738
1735
|
/**
|
|
1739
1736
|
* @public
|
|
1737
|
+
* @deprecated
|
|
1740
1738
|
*/
|
|
1741
1739
|
export declare interface ResponsiveBoxProps {
|
|
1742
1740
|
display?: BoxDisplay | BoxDisplay[]
|
|
@@ -1755,6 +1753,7 @@ export declare function responsiveCodeFontStyle(
|
|
|
1755
1753
|
|
|
1756
1754
|
/**
|
|
1757
1755
|
* @public
|
|
1756
|
+
* @deprecated
|
|
1758
1757
|
*/
|
|
1759
1758
|
export declare interface ResponsiveFlexItemProps {
|
|
1760
1759
|
/** Sets the flex CSS attribute. The property is responsive. */
|
|
@@ -1763,6 +1762,7 @@ export declare interface ResponsiveFlexItemProps {
|
|
|
1763
1762
|
|
|
1764
1763
|
/**
|
|
1765
1764
|
* @public
|
|
1765
|
+
* @deprecated
|
|
1766
1766
|
*/
|
|
1767
1767
|
export declare interface ResponsiveFlexProps {
|
|
1768
1768
|
align?: FlexAlign | FlexAlign[]
|
|
@@ -1791,6 +1791,7 @@ export declare interface ResponsiveFontStyleProps
|
|
|
1791
1791
|
|
|
1792
1792
|
/**
|
|
1793
1793
|
* @public
|
|
1794
|
+
* @deprecated
|
|
1794
1795
|
*/
|
|
1795
1796
|
export declare interface ResponsiveGridItemProps {
|
|
1796
1797
|
column?: GridItemColumn | GridItemColumn[]
|
|
@@ -1809,9 +1810,6 @@ export declare interface ResponsiveGridProps {
|
|
|
1809
1810
|
autoCols?: GridAutoCols | GridAutoCols[]
|
|
1810
1811
|
autoFlow?: GridAutoFlow | GridAutoFlow[]
|
|
1811
1812
|
columns?: number | number[]
|
|
1812
|
-
gap?: number | number[]
|
|
1813
|
-
gapX?: number | number[]
|
|
1814
|
-
gapY?: number | number[]
|
|
1815
1813
|
rows?: number | number[]
|
|
1816
1814
|
}
|
|
1817
1815
|
|
|
@@ -1833,6 +1831,7 @@ export declare function responsiveLabelFont(
|
|
|
1833
1831
|
|
|
1834
1832
|
/**
|
|
1835
1833
|
* @public
|
|
1834
|
+
* @deprecated
|
|
1836
1835
|
*/
|
|
1837
1836
|
export declare interface ResponsiveMarginProps {
|
|
1838
1837
|
/** Applies margins to all sides. The property is responsive. */
|
|
@@ -1849,6 +1848,7 @@ export declare interface ResponsiveMarginProps {
|
|
|
1849
1848
|
|
|
1850
1849
|
/**
|
|
1851
1850
|
* @public
|
|
1851
|
+
* @deprecated
|
|
1852
1852
|
*/
|
|
1853
1853
|
export declare interface ResponsivePaddingProps {
|
|
1854
1854
|
padding?: number | number[]
|
|
@@ -1862,6 +1862,7 @@ export declare interface ResponsivePaddingProps {
|
|
|
1862
1862
|
|
|
1863
1863
|
/**
|
|
1864
1864
|
* @public
|
|
1865
|
+
* @deprecated
|
|
1865
1866
|
*/
|
|
1866
1867
|
export declare interface ResponsiveRadiusProps {
|
|
1867
1868
|
radius?: Radius | Radius[]
|
|
@@ -1869,6 +1870,7 @@ export declare interface ResponsiveRadiusProps {
|
|
|
1869
1870
|
|
|
1870
1871
|
/**
|
|
1871
1872
|
* @public
|
|
1873
|
+
* @deprecated
|
|
1872
1874
|
*/
|
|
1873
1875
|
export declare interface ResponsiveShadowProps {
|
|
1874
1876
|
shadow?: number | number[]
|
|
@@ -1899,6 +1901,7 @@ export declare function responsiveTextFont(
|
|
|
1899
1901
|
|
|
1900
1902
|
/**
|
|
1901
1903
|
* @public
|
|
1904
|
+
* @deprecated
|
|
1902
1905
|
*/
|
|
1903
1906
|
export declare interface ResponsiveWidthProps {
|
|
1904
1907
|
width?: number | 'auto' | (number | 'auto')[]
|
|
@@ -2006,7 +2009,7 @@ export declare const Spinner: ForwardRefExoticComponent<
|
|
|
2006
2009
|
*/
|
|
2007
2010
|
export declare interface SpinnerProps {
|
|
2008
2011
|
muted?: boolean
|
|
2009
|
-
size?:
|
|
2012
|
+
size?: ResponsiveProp<FontTextSize>
|
|
2010
2013
|
}
|
|
2011
2014
|
|
|
2012
2015
|
/**
|
|
@@ -2031,15 +2034,18 @@ export declare interface SrOnlyProps {
|
|
|
2031
2034
|
* @public
|
|
2032
2035
|
*/
|
|
2033
2036
|
export declare const Stack: ForwardRefExoticComponent<
|
|
2034
|
-
StackProps &
|
|
2037
|
+
StackProps &
|
|
2038
|
+
Omit<HTMLProps<HTMLDivElement>, 'width' | 'ref' | 'as'> &
|
|
2039
|
+
RefAttributes<HTMLDivElement>
|
|
2035
2040
|
>
|
|
2036
2041
|
|
|
2037
2042
|
/**
|
|
2038
2043
|
* @public
|
|
2039
2044
|
*/
|
|
2040
|
-
export declare interface StackProps
|
|
2045
|
+
export declare interface StackProps
|
|
2046
|
+
extends Omit<BoxProps, 'direction' | 'display' | 'gap' | 'gapX' | 'gapY'> {
|
|
2041
2047
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
2042
|
-
space?:
|
|
2048
|
+
space?: ResponsiveProp<Space>
|
|
2043
2049
|
}
|
|
2044
2050
|
|
|
2045
2051
|
/**
|
|
@@ -2136,7 +2142,7 @@ export declare interface TabProps {
|
|
|
2136
2142
|
'id': string
|
|
2137
2143
|
'icon'?: React.ElementType | React.ReactNode
|
|
2138
2144
|
'focused'?: boolean
|
|
2139
|
-
'fontSize'?:
|
|
2145
|
+
'fontSize'?: ResponsiveProp<FontTextSize>
|
|
2140
2146
|
'label'?: React.ReactNode
|
|
2141
2147
|
'padding'?: number | number[]
|
|
2142
2148
|
'selected'?: boolean
|
|
@@ -2191,7 +2197,7 @@ export declare interface TextAreaProps extends ResponsiveRadiusProps {
|
|
|
2191
2197
|
* @public
|
|
2192
2198
|
*/
|
|
2193
2199
|
export declare const TextInput: ForwardRefExoticComponent<
|
|
2194
|
-
Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, 'type' | '
|
|
2200
|
+
Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, 'type' | 'as' | 'prefix'>, 'ref'> &
|
|
2195
2201
|
RefAttributes<HTMLInputElement>
|
|
2196
2202
|
>
|
|
2197
2203
|
|
|
@@ -2204,7 +2210,7 @@ export declare type TextInputClearButtonProps = Omit<ButtonProps, 'as'> &
|
|
|
2204
2210
|
/**
|
|
2205
2211
|
* @public
|
|
2206
2212
|
*/
|
|
2207
|
-
export declare interface TextInputProps {
|
|
2213
|
+
export declare interface TextInputProps extends RadiusStyleProps {
|
|
2208
2214
|
/**
|
|
2209
2215
|
* @beta
|
|
2210
2216
|
*/
|
|
@@ -2215,17 +2221,16 @@ export declare interface TextInputProps {
|
|
|
2215
2221
|
*/
|
|
2216
2222
|
clearButton?: boolean | TextInputClearButtonProps
|
|
2217
2223
|
customValidity?: string
|
|
2218
|
-
fontSize?:
|
|
2224
|
+
fontSize?: ResponsiveProp<FontTextSize>
|
|
2219
2225
|
icon?: React.ElementType | React.ReactNode
|
|
2220
2226
|
iconRight?: React.ElementType | React.ReactNode
|
|
2221
2227
|
/**
|
|
2222
2228
|
* @beta
|
|
2223
2229
|
*/
|
|
2224
2230
|
onClear?: () => void
|
|
2225
|
-
padding
|
|
2231
|
+
padding: ResponsiveProp<Space>
|
|
2226
2232
|
prefix?: React.ReactNode
|
|
2227
|
-
|
|
2228
|
-
space?: number | number[]
|
|
2233
|
+
space?: ResponsiveProp<Space>
|
|
2229
2234
|
suffix?: React.ReactNode
|
|
2230
2235
|
type?: TextInputType
|
|
2231
2236
|
weight?: ThemeFontWeightKey_2
|
|
@@ -2251,13 +2256,12 @@ export declare type TextInputType =
|
|
|
2251
2256
|
/**
|
|
2252
2257
|
* @public
|
|
2253
2258
|
*/
|
|
2254
|
-
export declare interface TextProps {
|
|
2259
|
+
export declare interface TextProps extends TextStyleProps {
|
|
2255
2260
|
accent?: boolean
|
|
2256
2261
|
align?: TextAlign | TextAlign[]
|
|
2257
2262
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
2258
2263
|
/** When `true` the text color will be muted. */
|
|
2259
2264
|
muted?: boolean
|
|
2260
|
-
size?: number | number[]
|
|
2261
2265
|
/**
|
|
2262
2266
|
* Controls how overflowing text is treated.
|
|
2263
2267
|
* Use `textOverflow="ellipsis"` to render text as a single line which is concatenated with a `…` symbol.
|
|
@@ -2273,7 +2277,7 @@ export declare interface TextProps {
|
|
|
2273
2277
|
*/
|
|
2274
2278
|
export declare const TextSkeleton: ForwardRefExoticComponent<
|
|
2275
2279
|
Omit<
|
|
2276
|
-
TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | '
|
|
2280
|
+
TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
|
|
2277
2281
|
'ref'
|
|
2278
2282
|
> &
|
|
2279
2283
|
RefAttributes<HTMLDivElement>
|
|
@@ -2478,7 +2482,8 @@ export declare type ThemeShadow = ThemeShadow_2
|
|
|
2478
2482
|
* @public
|
|
2479
2483
|
*/
|
|
2480
2484
|
export declare function Toast(
|
|
2481
|
-
props: ToastProps &
|
|
2485
|
+
props: ToastProps &
|
|
2486
|
+
Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'height' | 'ref' | 'title' | 'width' | 'wrap'>,
|
|
2482
2487
|
): React.ReactElement
|
|
2483
2488
|
|
|
2484
2489
|
export declare namespace Toast {
|
|
@@ -2509,11 +2514,10 @@ export declare interface ToastParams {
|
|
|
2509
2514
|
/**
|
|
2510
2515
|
* @public
|
|
2511
2516
|
*/
|
|
2512
|
-
export declare interface ToastProps {
|
|
2517
|
+
export declare interface ToastProps extends RadiusStyleProps {
|
|
2513
2518
|
closable?: boolean
|
|
2514
2519
|
description?: React.ReactNode
|
|
2515
2520
|
onClose?: () => void
|
|
2516
|
-
radius?: number | number[]
|
|
2517
2521
|
title?: React.ReactNode
|
|
2518
2522
|
status?: 'error' | 'warning' | 'success' | 'info'
|
|
2519
2523
|
duration?: number
|
|
@@ -2545,7 +2549,11 @@ export declare interface ToastProviderProps {
|
|
|
2545
2549
|
* @public
|
|
2546
2550
|
*/
|
|
2547
2551
|
export declare const Tooltip: ForwardRefExoticComponent<
|
|
2548
|
-
Omit<
|
|
2552
|
+
Omit<
|
|
2553
|
+
TooltipProps &
|
|
2554
|
+
Omit<HTMLProps<HTMLDivElement>, 'content' | 'width' | 'wrap' | 'children' | 'as'>,
|
|
2555
|
+
'ref'
|
|
2556
|
+
> &
|
|
2549
2557
|
RefAttributes<HTMLDivElement>
|
|
2550
2558
|
>
|
|
2551
2559
|
|
|
@@ -2599,7 +2607,7 @@ export declare interface TooltipDelayGroupProviderProps {
|
|
|
2599
2607
|
/**
|
|
2600
2608
|
* @public
|
|
2601
2609
|
*/
|
|
2602
|
-
export declare interface TooltipProps extends Omit<LayerProps, 'as'
|
|
2610
|
+
export declare interface TooltipProps extends Omit<LayerProps, 'as'>, RadiusStyleProps {
|
|
2603
2611
|
/** @deprecated Use `fallbackPlacements` instead. */
|
|
2604
2612
|
allowedAutoPlacements?: Placement[]
|
|
2605
2613
|
arrow?: boolean
|
|
@@ -2612,7 +2620,6 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
|
|
|
2612
2620
|
placement?: Placement
|
|
2613
2621
|
/** Whether or not to render the tooltip in a portal element. */
|
|
2614
2622
|
portal?: boolean | string
|
|
2615
|
-
radius?: number | number[]
|
|
2616
2623
|
scheme?: ThemeColorSchemeKey_2
|
|
2617
2624
|
shadow?: number | number[]
|
|
2618
2625
|
/**
|
|
@@ -2642,7 +2649,10 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
|
|
|
2642
2649
|
export declare const Tree: MemoExoticComponent<
|
|
2643
2650
|
ForwardRefExoticComponent<
|
|
2644
2651
|
TreeProps &
|
|
2645
|
-
Omit<
|
|
2652
|
+
Omit<
|
|
2653
|
+
HTMLProps<HTMLDivElement>,
|
|
2654
|
+
'height' | 'width' | 'wrap' | 'role' | 'ref' | 'as' | 'align'
|
|
2655
|
+
> &
|
|
2646
2656
|
RefAttributes<HTMLDivElement>
|
|
2647
2657
|
>
|
|
2648
2658
|
>
|
|
@@ -2658,7 +2668,7 @@ export declare interface TreeContextValue {
|
|
|
2658
2668
|
registerItem: (element: HTMLElement, path: string, expanded: boolean, selected: boolean) => void
|
|
2659
2669
|
setExpanded: (path: string, expanded: boolean) => void
|
|
2660
2670
|
setFocusedElement: (focusedElement: HTMLElement | null) => void
|
|
2661
|
-
space:
|
|
2671
|
+
space: ResponsiveProp<Space>
|
|
2662
2672
|
state: TreeState
|
|
2663
2673
|
}
|
|
2664
2674
|
|
|
@@ -2667,7 +2677,8 @@ export declare interface TreeContextValue {
|
|
|
2667
2677
|
* @beta
|
|
2668
2678
|
*/
|
|
2669
2679
|
export declare const TreeItem: NamedExoticComponent<
|
|
2670
|
-
TreeItemProps &
|
|
2680
|
+
TreeItemProps &
|
|
2681
|
+
Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'wrap' | 'role' | 'ref' | 'as'>
|
|
2671
2682
|
>
|
|
2672
2683
|
|
|
2673
2684
|
/**
|
|
@@ -2682,7 +2693,7 @@ export declare interface TreeItemProps {
|
|
|
2682
2693
|
*/
|
|
2683
2694
|
linkAs?: BoxProps['as']
|
|
2684
2695
|
padding?: number | number[]
|
|
2685
|
-
space?:
|
|
2696
|
+
space?: ResponsiveProp<Space>
|
|
2686
2697
|
text?: React.ReactNode
|
|
2687
2698
|
weight?: ThemeFontWeightKey_2
|
|
2688
2699
|
}
|
|
@@ -2692,7 +2703,7 @@ export declare interface TreeItemProps {
|
|
|
2692
2703
|
* @beta
|
|
2693
2704
|
*/
|
|
2694
2705
|
export declare interface TreeProps {
|
|
2695
|
-
space?:
|
|
2706
|
+
space?: ResponsiveProp<Space>
|
|
2696
2707
|
}
|
|
2697
2708
|
|
|
2698
2709
|
/**
|