@sanity/ui 2.10.0-corel.0 → 3.0.0-static.1
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 +3542 -0
- package/dist/_chunks-cjs/buildCommand.js.map +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +25 -0
- package/dist/cli.js.map +1 -0
- package/dist/css.d.mts +1062 -0
- package/dist/css.d.ts +1062 -0
- package/dist/css.esm.js +3794 -0
- package/dist/css.esm.js.map +1 -0
- package/dist/css.js +3794 -0
- package/dist/css.js.map +1 -0
- package/dist/css.mjs +3794 -0
- package/dist/css.mjs.map +1 -0
- package/dist/index.d.mts +240 -221
- package/dist/index.d.ts +240 -221
- package/dist/index.esm.js +3033 -4536
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3037 -4541
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3033 -4536
- package/dist/index.mjs.map +1 -1
- package/dist/sanity-theme.css +25 -0
- package/dist/system.css +3385 -0
- package/dist/theme.d.mts +84 -22
- package/dist/theme.d.ts +84 -22
- package/dist/theme.esm.js +1718 -656
- package/dist/theme.esm.js.map +1 -1
- package/dist/theme.js +1757 -693
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +1718 -656
- package/dist/theme.mjs.map +1 -1
- package/exports/css.ts +1 -0
- package/package.json +45 -24
- package/src/core/__workshop__/constants.ts +28 -19
- package/src/core/_compat/index.ts +2 -0
- package/src/core/{styles → _compat/styles}/border/borderStyle.ts +6 -0
- package/src/core/{styles → _compat/styles}/border/types.ts +1 -0
- package/src/core/{styles → _compat/styles}/box/boxStyle.ts +7 -1
- package/src/core/{styles → _compat/styles}/box/types.ts +1 -1
- package/src/core/{styles → _compat/styles}/card/_cardColorStyle.ts +2 -10
- package/src/core/{styles → _compat/styles}/flex/flexItemStyle.ts +1 -1
- package/src/core/{styles → _compat/styles}/flex/flexStyle.ts +0 -18
- package/src/core/{styles → _compat/styles}/flex/types.ts +1 -3
- package/src/core/{styles → _compat/styles}/font/types.ts +1 -1
- package/src/core/{styles → _compat/styles}/grid/gridStyle.ts +0 -10
- package/src/core/{styles → _compat/styles}/grid/types.ts +1 -1
- package/src/core/{styles → _compat/styles}/helpers.ts +10 -1
- package/src/core/{styles → _compat/styles}/input/textInputStyle.ts +2 -2
- package/src/core/{styles → _compat/styles}/radius/types.ts +1 -1
- package/src/core/{styles → _compat/styles}/shadow/shadowStyle.ts +1 -1
- package/src/core/components/autocomplete/__workshop__/custom.tsx +5 -4
- package/src/core/components/autocomplete/__workshop__/example.tsx +3 -2
- package/src/core/components/autocomplete/autocomplete.tsx +17 -9
- 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.tsx +14 -9
- package/src/core/components/dialog/__workshop__/props.tsx +2 -0
- package/src/core/components/dialog/dialog.tsx +73 -92
- package/src/core/components/hotkeys/hotkeys.tsx +18 -29
- package/src/core/components/menu/menu.tsx +13 -12
- package/src/core/components/menu/menuDivider.tsx +16 -0
- package/src/core/components/menu/menuGroup.tsx +10 -8
- package/src/core/components/menu/menuItem.tsx +23 -14
- package/src/core/components/skeleton/skeleton.tsx +14 -20
- package/src/core/components/skeleton/textSkeleton.tsx +72 -48
- package/src/core/components/tab/tab.tsx +5 -7
- package/src/core/components/tab/tabList.tsx +5 -21
- package/src/core/components/tab/tabPanel.tsx +1 -0
- package/src/core/components/toast/toast.tsx +31 -16
- package/src/core/components/toast/toastProvider.tsx +23 -23
- package/src/core/components/tree/tree.tsx +7 -2
- package/src/core/components/tree/treeGroup.tsx +4 -1
- package/src/core/components/tree/treeItem.tsx +44 -35
- package/src/core/components/tree/types.ts +5 -1
- package/src/core/hooks/useArrayProp.ts +1 -1
- package/src/core/index.ts +0 -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 +38 -39
- package/src/core/primitives/avatar/avatarCounter.tsx +2 -2
- package/src/core/primitives/avatar/avatarStack.tsx +2 -2
- package/src/core/primitives/avatar/styles.ts +2 -2
- 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 +65 -74
- package/src/core/primitives/button/__workshop__/props.tsx +5 -2
- package/src/core/primitives/button/__workshop__/stacked.tsx +2 -1
- package/src/core/primitives/button/button.tsx +38 -45
- package/src/core/primitives/button/styles.ts +5 -5
- package/src/core/primitives/card/RootCardContext.ts +3 -0
- package/src/core/primitives/card/__workshop__/props.tsx +2 -2
- package/src/core/primitives/card/card.tsx +37 -42
- package/src/core/primitives/checkbox/checkbox.tsx +6 -8
- package/src/core/primitives/code/code.tsx +22 -13
- package/src/core/primitives/code/styles.ts +1 -1
- package/src/core/primitives/container/container.tsx +7 -15
- package/src/core/primitives/container/styles.ts +1 -1
- package/src/core/primitives/flex/flex.tsx +6 -31
- package/src/core/primitives/grid/grid.tsx +6 -19
- package/src/core/primitives/heading/heading.tsx +24 -28
- package/src/core/primitives/heading/styles.ts +2 -2
- package/src/core/primitives/inline/inline.tsx +18 -18
- package/src/core/primitives/inline/styles.ts +1 -1
- package/src/core/primitives/kbd/kbd.tsx +30 -37
- package/src/core/primitives/label/label.tsx +15 -9
- package/src/core/primitives/label/styles.ts +2 -2
- package/src/core/primitives/popover/__workshop__/PlainStory.tsx +2 -2
- package/src/core/primitives/popover/__workshop__/RecursiveStory.tsx +0 -1
- package/src/core/primitives/popover/__workshop__/TestStory.tsx +2 -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 +3 -3
- package/src/core/primitives/select/select.tsx +1 -1
- package/src/core/primitives/select/styles.ts +3 -3
- package/src/core/primitives/spinner/__workshop__/Props.tsx +2 -1
- package/src/core/primitives/spinner/animatedSpinnerIcon.tsx +16 -0
- package/src/core/primitives/spinner/spinner.tsx +8 -22
- package/src/core/primitives/stack/stack.tsx +12 -10
- package/src/core/primitives/stack/styles.ts +1 -1
- package/src/core/primitives/switch/styles.ts +11 -11
- package/src/core/primitives/switch/switch.tsx +20 -21
- package/src/core/primitives/text/styles.ts +2 -3
- package/src/core/primitives/text/text.tsx +18 -25
- package/src/core/primitives/textArea/__workshop__/plain.tsx +2 -2
- package/src/core/primitives/textArea/textArea.tsx +3 -3
- package/src/core/primitives/textInput/__workshop__/plain.tsx +4 -3
- package/src/core/primitives/textInput/textInput.tsx +111 -125
- 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 +36 -16
- package/src/core/theme/__workshop__/build/story.tsx +2 -4
- package/src/core/theme/useTheme.ts +1 -1
- package/src/core/types/avatar.ts +6 -1
- package/src/core/types/box.ts +22 -16
- package/src/core/types/button.ts +1 -0
- package/src/core/types/flex.ts +27 -26
- package/src/core/types/grid.ts +17 -12
- package/src/core/types/gridItem.ts +32 -24
- package/src/core/types/radius.ts +7 -4
- package/src/core/types/text.ts +7 -4
- package/src/core/utils/arrow/arrow.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/compileRule.ts +58 -0
- package/src/css/compile/compileRules.ts +56 -0
- package/src/css/compile/compileSystem.ts +7 -0
- package/src/css/compile/compileTheme.ts +512 -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 +25 -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/menu/index.ts +1 -0
- package/src/css/components/menu/menu.ts +5 -0
- package/src/css/components/menu/rules.ts +10 -0
- package/src/css/components/skeleton/index.ts +2 -0
- package/src/css/components/skeleton/rules.ts +106 -0
- package/src/css/components/skeleton/skeleton.ts +31 -0
- package/src/css/components/skeleton/types.ts +24 -0
- package/src/css/components/toast/rules.ts +68 -0
- package/src/css/components/tree/index.ts +1 -0
- package/src/css/components/tree/rules.ts +167 -0
- package/src/css/components/tree/tree.ts +5 -0
- package/src/css/composeClassNames.ts +3 -0
- package/src/css/index.ts +51 -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 +38 -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 +48 -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 +241 -0
- package/src/css/primitives/checkbox/__styles.ts +129 -0
- 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/css/primitives/selectable/__style.ts +117 -0
- 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 +20 -0
- package/src/css/primitives/spinner/spinner.ts +9 -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 +2 -0
- package/src/css/primitives/textInput/rules.ts +321 -0
- package/src/css/primitives/textInput/textInput.ts +15 -0
- package/src/css/primitives/textInput/types.ts +8 -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 +99 -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 +17 -0
- package/src/css/styles/font/index.ts +2 -0
- package/src/css/styles/font/rules.ts +148 -0
- package/src/css/styles/font/types.ts +12 -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/grid.ts +13 -0
- package/src/css/styles/grid/index.ts +2 -0
- package/src/css/styles/grid/rules.ts +146 -0
- package/src/css/styles/grid/types.ts +29 -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 +63 -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/outline/rules.ts +7 -0
- package/src/css/styles/overflow/index.ts +2 -0
- package/src/css/styles/overflow/overflow.ts +11 -0
- package/src/css/styles/overflow/rules.ts +9 -0
- package/src/css/styles/overflow/types.ts +11 -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 +61 -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 +626 -0
- package/src/css/varNames.ts +381 -0
- package/src/css/vars.ts +399 -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/dist/_chunks-cjs/getTheme_v2.js +0 -342
- package/dist/_chunks-cjs/getTheme_v2.js.map +0 -1
- package/dist/_chunks-es/getTheme_v2.mjs +0 -343
- package/dist/_chunks-es/getTheme_v2.mjs.map +0 -1
- package/dist/_legacy/getTheme_v2.esm.js +0 -343
- package/dist/_legacy/getTheme_v2.esm.js.map +0 -1
- package/src/core/components/autocomplete/autocomplete.styles.tsx +0 -38
- package/src/core/components/breadcrumbs/__workshop__/buttons.tsx +0 -58
- package/src/core/components/breadcrumbs/breadcrumbs.styles.ts +0 -5
- package/src/core/components/dialog/styles.ts +0 -76
- package/src/core/components/menu/menuDivider.ts +0 -12
- package/src/core/components/skeleton/styles.ts +0 -50
- package/src/core/components/toast/styles.ts +0 -61
- package/src/core/components/tree/style.ts +0 -104
- package/src/core/primitives/_selectable/style.ts +0 -114
- package/src/core/primitives/card/styles.ts +0 -146
- package/src/core/primitives/checkbox/styles.ts +0 -127
- /package/src/core/{styles → _compat/styles}/border/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/box/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/card/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/flex/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/focusRing/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/codeFontStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/headingFontStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/labelFontStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/responsiveFont.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/textAlignStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/textFontStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/grid/gridItemStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/grid/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/input/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/input/responsiveInputPaddingStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/internal.ts +0 -0
- /package/src/core/{styles → _compat/styles}/margin/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/margin/marginStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/margin/marginsStyle.test.ts +0 -0
- /package/src/core/{styles → _compat/styles}/margin/types.ts +0 -0
- /package/src/core/{styles → _compat/styles}/padding/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/padding/paddingStyle.test.ts +0 -0
- /package/src/core/{styles → _compat/styles}/padding/paddingStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/padding/types.ts +0 -0
- /package/src/core/{styles → _compat/styles}/radius/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/radius/radiusStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/shadow/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/shadow/types.ts +0 -0
- /package/src/core/{styles → _compat/styles}/types.ts +0 -0
- /package/src/core/{_compat.ts → _compat/types.ts} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,36 +1,69 @@
|
|
|
1
|
+
import {AvatarSize} from '@sanity/ui/theme'
|
|
1
2
|
import {BaseTheme as BaseTheme_2} from '@sanity/ui/theme'
|
|
3
|
+
import {Display as BoxDisplay} from '@sanity/ui/css'
|
|
4
|
+
import {BoxHeight} from '@sanity/ui/css'
|
|
5
|
+
import {BoxOverflow} from '@sanity/ui/css'
|
|
6
|
+
import {BoxSizing} from '@sanity/ui/css'
|
|
7
|
+
import {BoxStyleProps} from '@sanity/ui/css'
|
|
8
|
+
import {CardStyleProps as CardStyleProps_2} from '@sanity/ui/css'
|
|
2
9
|
import {Component} from 'react'
|
|
10
|
+
import {ContainerStyleProps} from '@sanity/ui/css'
|
|
3
11
|
import {Context} from 'react'
|
|
4
12
|
import {createColorTheme as createColorTheme_2} from '@sanity/ui/theme'
|
|
5
13
|
import {CSSObject} from '@sanity/ui/theme'
|
|
6
|
-
import {DetailedHTMLProps} from 'react'
|
|
7
14
|
import {ElementType} from 'react'
|
|
8
|
-
import {
|
|
15
|
+
import {FlexAlign} from '@sanity/ui/css'
|
|
16
|
+
import {FlexDirection} from '@sanity/ui/css'
|
|
17
|
+
import {FlexJustify} from '@sanity/ui/css'
|
|
18
|
+
import {FlexValue} from '@sanity/ui/css'
|
|
19
|
+
import {FlexWrap} from '@sanity/ui/css'
|
|
20
|
+
import {FontCodeSize} from '@sanity/ui/theme'
|
|
21
|
+
import {FontHeadingSize} from '@sanity/ui/theme'
|
|
22
|
+
import {FontLabelSize} from '@sanity/ui/theme'
|
|
23
|
+
import {FontStyleProps} from '@sanity/ui/css'
|
|
24
|
+
import {FontTextSize} from '@sanity/ui/theme'
|
|
9
25
|
import {ForwardRefExoticComponent} from 'react'
|
|
26
|
+
import {GapStyleProps} from '@sanity/ui/css'
|
|
27
|
+
import {GridAutoCols} from '@sanity/ui/css'
|
|
28
|
+
import {GridAutoFlow} from '@sanity/ui/css'
|
|
29
|
+
import {GridAutoRows} from '@sanity/ui/css'
|
|
30
|
+
import {GridItemColumn} from '@sanity/ui/css'
|
|
31
|
+
import {GridItemColumnEnd} from '@sanity/ui/css'
|
|
32
|
+
import {GridItemColumnStart} from '@sanity/ui/css'
|
|
33
|
+
import {GridItemRow} from '@sanity/ui/css'
|
|
34
|
+
import {GridItemRowEnd} from '@sanity/ui/css'
|
|
35
|
+
import {GridItemRowStart} from '@sanity/ui/css'
|
|
10
36
|
import {hexToRgb as hexToRgb_2} from '@sanity/ui/theme'
|
|
11
37
|
import {HSL as HSL_2} from '@sanity/ui/theme'
|
|
12
38
|
import {hslToRgb as hslToRgb_2} from '@sanity/ui/theme'
|
|
13
|
-
import {HTMLAttributes} from 'react'
|
|
14
39
|
import {HTMLProps} from 'react'
|
|
15
|
-
import {IStyledComponentBase} from 'styled-components/dist/types'
|
|
16
40
|
import {MemoExoticComponent} from 'react'
|
|
17
41
|
import {multiply as multiply_2} from '@sanity/ui/theme'
|
|
18
42
|
import {MutableRefObject} from 'react'
|
|
19
43
|
import {NamedExoticComponent} from 'react'
|
|
44
|
+
import {PaddingStyleProps} from '@sanity/ui/css'
|
|
20
45
|
import {parseColor as parseColor_2} from '@sanity/ui/theme'
|
|
21
46
|
import {PartialThemeColorBuilderOpts} from '@sanity/ui/theme'
|
|
47
|
+
import {PositionStyleProps} from '@sanity/ui/css'
|
|
22
48
|
import {PropsWithChildren} from 'react'
|
|
49
|
+
import {Radius} from '@sanity/ui/theme'
|
|
50
|
+
import {RadiusStyleProps} from '@sanity/ui/css'
|
|
23
51
|
import {ReactElement} from 'react'
|
|
24
52
|
import {ReactNode} from 'react'
|
|
25
53
|
import {Ref} from 'react'
|
|
26
54
|
import {RefAttributes} from 'react'
|
|
27
55
|
import {RefCallback} from 'react'
|
|
56
|
+
import {ResponsiveProp} from '@sanity/ui/css'
|
|
28
57
|
import {RGB as RGB_2} from '@sanity/ui/theme'
|
|
29
58
|
import {rgba as rgba_2} from '@sanity/ui/theme'
|
|
30
59
|
import {rgbToHex as rgbToHex_2} from '@sanity/ui/theme'
|
|
31
60
|
import {rgbToHsl as rgbToHsl_2} from '@sanity/ui/theme'
|
|
32
61
|
import {RootTheme as RootTheme_2} from '@sanity/ui/theme'
|
|
33
62
|
import {screen as screen_3} from '@sanity/ui/theme'
|
|
63
|
+
import {SkeletonStyleProps} from '@sanity/ui/css'
|
|
64
|
+
import {Space} from '@sanity/ui/theme'
|
|
65
|
+
import {TextAlign} from '@sanity/ui/css'
|
|
66
|
+
import {TextStyleProps} from '@sanity/ui/css'
|
|
34
67
|
import {Theme as Theme_2} from '@sanity/ui/theme'
|
|
35
68
|
import {Theme_v2} from '@sanity/ui/theme'
|
|
36
69
|
import {ThemeAvatar} from '@sanity/ui/theme'
|
|
@@ -77,6 +110,7 @@ import {ThemeInput} from '@sanity/ui/theme'
|
|
|
77
110
|
import {ThemeLayer as ThemeLayer_2} from '@sanity/ui/theme'
|
|
78
111
|
import {ThemeShadow as ThemeShadow_2} from '@sanity/ui/theme'
|
|
79
112
|
import {ThemeStyles} from '@sanity/ui/theme'
|
|
113
|
+
import {Width} from '@sanity/ui/css'
|
|
80
114
|
|
|
81
115
|
/** @beta */
|
|
82
116
|
export declare type ArrayPropPrimitive = string | number | boolean | undefined | null
|
|
@@ -176,7 +210,7 @@ export declare interface AutocompleteProps<
|
|
|
176
210
|
border?: boolean
|
|
177
211
|
customValidity?: string
|
|
178
212
|
filterOption?: (query: string, option: Option) => boolean
|
|
179
|
-
fontSize?:
|
|
213
|
+
fontSize?: ResponsiveProp<FontTextSize>
|
|
180
214
|
icon?: ElementType | ReactNode
|
|
181
215
|
id: string
|
|
182
216
|
/** @beta */
|
|
@@ -191,7 +225,7 @@ export declare interface AutocompleteProps<
|
|
|
191
225
|
openOnFocus?: boolean
|
|
192
226
|
/** The options to render. */
|
|
193
227
|
options?: Option[]
|
|
194
|
-
padding?:
|
|
228
|
+
padding?: ResponsiveProp<Space>
|
|
195
229
|
popover?: Omit<PopoverProps, 'content' | 'onMouseEnter' | 'onMouseLeave' | 'open'> &
|
|
196
230
|
Omit<HTMLProps<HTMLDivElement>, 'as' | 'children' | 'content' | 'ref' | 'width'>
|
|
197
231
|
prefix?: ReactNode
|
|
@@ -342,10 +376,7 @@ export declare interface AvatarRootStyleProps {
|
|
|
342
376
|
$color: ThemeColorAvatarColorKey
|
|
343
377
|
}
|
|
344
378
|
|
|
345
|
-
|
|
346
|
-
* @public
|
|
347
|
-
*/
|
|
348
|
-
export declare type AvatarSize = 0 | 1 | 2 | 3
|
|
379
|
+
export {AvatarSize}
|
|
349
380
|
|
|
350
381
|
/**
|
|
351
382
|
* @public
|
|
@@ -365,6 +396,9 @@ export declare interface AvatarStackProps {
|
|
|
365
396
|
tone?: 'navbar'
|
|
366
397
|
}
|
|
367
398
|
|
|
399
|
+
/**
|
|
400
|
+
* @public
|
|
401
|
+
*/
|
|
368
402
|
/**
|
|
369
403
|
* @public
|
|
370
404
|
*/
|
|
@@ -376,7 +410,7 @@ export declare type AvatarStatus = 'online' | 'editing' | 'inactive'
|
|
|
376
410
|
* @public
|
|
377
411
|
*/
|
|
378
412
|
export declare const Badge: ForwardRefExoticComponent<
|
|
379
|
-
Omit<BadgeProps & HTMLProps<HTMLDivElement>, 'ref'> & RefAttributes<
|
|
413
|
+
Omit<BadgeProps & HTMLProps<HTMLDivElement>, 'ref'> & RefAttributes<HTMLDivElement>
|
|
380
414
|
>
|
|
381
415
|
|
|
382
416
|
/**
|
|
@@ -388,7 +422,7 @@ export declare type BadgeMode = 'default' | 'outline'
|
|
|
388
422
|
/**
|
|
389
423
|
* @public
|
|
390
424
|
*/
|
|
391
|
-
export declare interface BadgeProps extends BoxProps,
|
|
425
|
+
export declare interface BadgeProps extends BoxProps, RadiusStyleProps {
|
|
392
426
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
393
427
|
fontSize?: number | number[]
|
|
394
428
|
/** @deprecated No longer used. */
|
|
@@ -448,34 +482,23 @@ export declare interface BoundaryElementProviderProps {
|
|
|
448
482
|
* @public
|
|
449
483
|
*/
|
|
450
484
|
export declare const Box: ForwardRefExoticComponent<
|
|
451
|
-
Omit<
|
|
485
|
+
Omit<
|
|
486
|
+
BoxProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'wrap' | 'as' | 'rows'>,
|
|
487
|
+
'ref'
|
|
488
|
+
> &
|
|
452
489
|
RefAttributes<HTMLDivElement>
|
|
453
490
|
>
|
|
454
491
|
|
|
455
|
-
|
|
456
|
-
* @public
|
|
457
|
-
*/
|
|
458
|
-
export declare type BoxDisplay = 'none' | 'block' | 'grid' | 'flex' | 'inline-block'
|
|
492
|
+
export {BoxDisplay}
|
|
459
493
|
|
|
460
|
-
|
|
461
|
-
* @public
|
|
462
|
-
*/
|
|
463
|
-
export declare type BoxHeight = 'stretch' | 'fill'
|
|
494
|
+
export {BoxHeight}
|
|
464
495
|
|
|
465
|
-
|
|
466
|
-
* @public
|
|
467
|
-
*/
|
|
468
|
-
export declare type BoxOverflow = 'visible' | 'hidden' | 'auto'
|
|
496
|
+
export {BoxOverflow}
|
|
469
497
|
|
|
470
498
|
/**
|
|
471
499
|
* @public
|
|
472
500
|
*/
|
|
473
|
-
export declare interface BoxProps
|
|
474
|
-
extends ResponsiveFlexItemProps,
|
|
475
|
-
ResponsiveBoxProps,
|
|
476
|
-
ResponsiveGridItemProps,
|
|
477
|
-
ResponsiveMarginProps,
|
|
478
|
-
ResponsivePaddingProps {
|
|
501
|
+
export declare interface BoxProps extends BoxStyleProps, GapStyleProps, PositionStyleProps {
|
|
479
502
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
480
503
|
forwardedAs?: React.ElementType | keyof JSX.IntrinsicElements
|
|
481
504
|
}
|
|
@@ -486,10 +509,7 @@ export declare interface BoxProps
|
|
|
486
509
|
*/
|
|
487
510
|
export declare type BoxShadow = ThemeBoxShadow
|
|
488
511
|
|
|
489
|
-
|
|
490
|
-
* @public
|
|
491
|
-
*/
|
|
492
|
-
export declare type BoxSizing = 'content' | 'border'
|
|
512
|
+
export {BoxSizing}
|
|
493
513
|
|
|
494
514
|
/**
|
|
495
515
|
* @beta
|
|
@@ -503,11 +523,8 @@ export declare const Breadcrumbs: ForwardRefExoticComponent<
|
|
|
503
523
|
/**
|
|
504
524
|
* @beta
|
|
505
525
|
*/
|
|
506
|
-
export declare interface BreadcrumbsProps {
|
|
526
|
+
export declare interface BreadcrumbsProps extends GapStyleProps {
|
|
507
527
|
expandButton?: Omit<ButtonProps, 'onClick' | 'selected'>
|
|
508
|
-
gap?: number | number[]
|
|
509
|
-
gapX?: number | number[]
|
|
510
|
-
gapY?: number | number[]
|
|
511
528
|
maxLength?: number
|
|
512
529
|
separator?: React.ReactNode
|
|
513
530
|
/** @deprecated - Use `gap`, `gapX`, `gapY` instead */
|
|
@@ -518,7 +535,10 @@ export declare interface BreadcrumbsProps {
|
|
|
518
535
|
* @public
|
|
519
536
|
*/
|
|
520
537
|
export declare const Button: ForwardRefExoticComponent<
|
|
521
|
-
Omit<
|
|
538
|
+
Omit<
|
|
539
|
+
ButtonProps & Omit<HTMLProps<HTMLButtonElement>, 'height' | 'width' | 'wrap' | 'as'>,
|
|
540
|
+
'ref'
|
|
541
|
+
> &
|
|
522
542
|
RefAttributes<HTMLButtonElement>
|
|
523
543
|
>
|
|
524
544
|
|
|
@@ -530,19 +550,19 @@ export declare type ButtonMode = ThemeColorButtonModeKey_2
|
|
|
530
550
|
/**
|
|
531
551
|
* @public
|
|
532
552
|
*/
|
|
533
|
-
export declare interface ButtonProps extends
|
|
553
|
+
export declare interface ButtonProps extends PaddingStyleProps, RadiusStyleProps {
|
|
534
554
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
535
|
-
fontSize?:
|
|
555
|
+
fontSize?: ResponsiveProp<FontTextSize>
|
|
536
556
|
mode?: ButtonMode
|
|
537
557
|
icon?: React.ElementType | React.ReactNode
|
|
538
558
|
iconRight?: React.ElementType | React.ReactNode
|
|
539
|
-
justify?: FlexJustify
|
|
559
|
+
justify?: ResponsiveProp<FlexJustify>
|
|
540
560
|
/**
|
|
541
561
|
* @beta Do not use in production, as this might change.
|
|
542
562
|
*/
|
|
543
563
|
loading?: boolean
|
|
544
564
|
selected?: boolean
|
|
545
|
-
space?:
|
|
565
|
+
space?: ResponsiveProp<Space>
|
|
546
566
|
textAlign?: ButtonTextAlign
|
|
547
567
|
muted?: boolean
|
|
548
568
|
text?: React.ReactNode
|
|
@@ -550,7 +570,7 @@ export declare interface ButtonProps extends ResponsivePaddingProps, ResponsiveR
|
|
|
550
570
|
textWeight?: TextProps['weight']
|
|
551
571
|
tone?: ButtonTone
|
|
552
572
|
type?: 'button' | 'reset' | 'submit'
|
|
553
|
-
width?:
|
|
573
|
+
width?: ResponsiveProp<Width>
|
|
554
574
|
}
|
|
555
575
|
|
|
556
576
|
/**
|
|
@@ -565,6 +585,7 @@ export declare type ButtonTone = ThemeColorStateToneKey
|
|
|
565
585
|
|
|
566
586
|
/**
|
|
567
587
|
* @public
|
|
588
|
+
* @deprecated Use `Width` from `@sanity/ui/css` instead.
|
|
568
589
|
*/
|
|
569
590
|
export declare type ButtonWidth = 'fill'
|
|
570
591
|
|
|
@@ -575,18 +596,14 @@ export declare type ButtonWidth = 'fill'
|
|
|
575
596
|
* @public
|
|
576
597
|
*/
|
|
577
598
|
export declare const Card: ForwardRefExoticComponent<
|
|
578
|
-
Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
|
|
599
|
+
Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'wrap' | 'as'>, 'ref'> &
|
|
579
600
|
RefAttributes<HTMLDivElement>
|
|
580
601
|
>
|
|
581
602
|
|
|
582
603
|
/**
|
|
583
604
|
* @public
|
|
584
605
|
*/
|
|
585
|
-
export declare interface CardProps
|
|
586
|
-
extends BoxProps,
|
|
587
|
-
ResponsiveBorderProps,
|
|
588
|
-
ResponsiveRadiusProps,
|
|
589
|
-
ResponsiveShadowProps {
|
|
606
|
+
export declare interface CardProps extends BoxProps, CardStyleProps_2 {
|
|
590
607
|
/**
|
|
591
608
|
* Do not use in production.
|
|
592
609
|
* @beta
|
|
@@ -660,18 +677,18 @@ export declare type ClickOutsideListener = (event: MouseEvent) => void
|
|
|
660
677
|
* @public
|
|
661
678
|
*/
|
|
662
679
|
export declare const Code: ForwardRefExoticComponent<
|
|
663
|
-
Omit<CodeProps & Omit<HTMLProps<
|
|
680
|
+
Omit<CodeProps & Omit<HTMLProps<HTMLPreElement>, 'size' | 'as'>, 'ref'> &
|
|
681
|
+
RefAttributes<HTMLPreElement>
|
|
664
682
|
>
|
|
665
683
|
|
|
666
684
|
/**
|
|
667
685
|
* @public
|
|
668
686
|
*/
|
|
669
|
-
export declare interface CodeProps {
|
|
687
|
+
export declare interface CodeProps extends Omit<FontStyleProps, 'align'> {
|
|
670
688
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
671
689
|
/** Define the language to use for syntax highlighting. */
|
|
672
690
|
language?: string
|
|
673
691
|
size?: number | number[]
|
|
674
|
-
weight?: string
|
|
675
692
|
}
|
|
676
693
|
|
|
677
694
|
/**
|
|
@@ -680,7 +697,11 @@ export declare interface CodeProps {
|
|
|
680
697
|
*/
|
|
681
698
|
export declare const CodeSkeleton: ForwardRefExoticComponent<
|
|
682
699
|
Omit<
|
|
683
|
-
CodeSkeletonProps &
|
|
700
|
+
CodeSkeletonProps &
|
|
701
|
+
Omit<
|
|
702
|
+
HTMLProps<HTMLDivElement>,
|
|
703
|
+
'height' | 'width' | 'size' | 'wrap' | 'children' | 'as' | 'rows'
|
|
704
|
+
>,
|
|
684
705
|
'ref'
|
|
685
706
|
> &
|
|
686
707
|
RefAttributes<HTMLDivElement>
|
|
@@ -691,7 +712,7 @@ export declare const CodeSkeleton: ForwardRefExoticComponent<
|
|
|
691
712
|
* @beta
|
|
692
713
|
*/
|
|
693
714
|
export declare interface CodeSkeletonProps extends SkeletonProps {
|
|
694
|
-
size?:
|
|
715
|
+
size?: ResponsiveProp<FontCodeSize>
|
|
695
716
|
}
|
|
696
717
|
|
|
697
718
|
/**
|
|
@@ -725,7 +746,7 @@ export declare const Container: ForwardRefExoticComponent<
|
|
|
725
746
|
/**
|
|
726
747
|
* @public
|
|
727
748
|
*/
|
|
728
|
-
export declare interface ContainerProps extends BoxProps,
|
|
749
|
+
export declare interface ContainerProps extends Omit<BoxProps, 'width'>, ContainerStyleProps {}
|
|
729
750
|
|
|
730
751
|
/**
|
|
731
752
|
* @internal
|
|
@@ -754,7 +775,11 @@ export declare type Delay =
|
|
|
754
775
|
* @public
|
|
755
776
|
*/
|
|
756
777
|
export declare const Dialog: ForwardRefExoticComponent<
|
|
757
|
-
Omit<
|
|
778
|
+
Omit<
|
|
779
|
+
DialogProps &
|
|
780
|
+
Omit<HTMLProps<HTMLDivElement>, 'id' | 'height' | 'width' | 'wrap' | 'as' | 'rows'>,
|
|
781
|
+
'ref'
|
|
782
|
+
> &
|
|
758
783
|
RefAttributes<HTMLDivElement>
|
|
759
784
|
>
|
|
760
785
|
|
|
@@ -781,7 +806,7 @@ export declare type DialogPosition = 'absolute' | 'fixed'
|
|
|
781
806
|
/**
|
|
782
807
|
* @public
|
|
783
808
|
*/
|
|
784
|
-
export declare interface DialogProps extends
|
|
809
|
+
export declare interface DialogProps extends PaddingStyleProps, ContainerStyleProps {
|
|
785
810
|
/**
|
|
786
811
|
* @beta
|
|
787
812
|
*/
|
|
@@ -790,6 +815,13 @@ export declare interface DialogProps extends ResponsivePaddingProps, ResponsiveW
|
|
|
790
815
|
* @beta
|
|
791
816
|
*/
|
|
792
817
|
__unstable_hideCloseButton?: boolean
|
|
818
|
+
/**
|
|
819
|
+
* Whether the dialog should animate in on mount.
|
|
820
|
+
*
|
|
821
|
+
* @beta
|
|
822
|
+
* @defaultValue false
|
|
823
|
+
*/
|
|
824
|
+
animate?: boolean
|
|
793
825
|
cardRadius?: Radius | Radius[]
|
|
794
826
|
cardShadow?: number | number[]
|
|
795
827
|
contentRef?: React.ForwardedRef<HTMLDivElement>
|
|
@@ -804,13 +836,6 @@ export declare interface DialogProps extends ResponsivePaddingProps, ResponsiveW
|
|
|
804
836
|
position?: DialogPosition | DialogPosition[]
|
|
805
837
|
scheme?: ThemeColorSchemeKey_2
|
|
806
838
|
zOffset?: number | number[]
|
|
807
|
-
/**
|
|
808
|
-
* Whether the dialog should animate in on mount.
|
|
809
|
-
*
|
|
810
|
-
* @beta
|
|
811
|
-
* @defaultValue false
|
|
812
|
-
*/
|
|
813
|
-
animate?: boolean
|
|
814
839
|
}
|
|
815
840
|
|
|
816
841
|
/**
|
|
@@ -929,48 +954,20 @@ export declare const Flex: ForwardRefExoticComponent<
|
|
|
929
954
|
RefAttributes<HTMLDivElement>
|
|
930
955
|
>
|
|
931
956
|
|
|
932
|
-
|
|
933
|
-
* @public
|
|
934
|
-
*/
|
|
935
|
-
export declare type FlexAlign = 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch'
|
|
957
|
+
export {FlexAlign}
|
|
936
958
|
|
|
937
|
-
|
|
938
|
-
* @public
|
|
939
|
-
*/
|
|
940
|
-
export declare type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse'
|
|
959
|
+
export {FlexDirection}
|
|
941
960
|
|
|
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'
|
|
961
|
+
export {FlexJustify}
|
|
952
962
|
|
|
953
963
|
/**
|
|
954
964
|
* @public
|
|
955
965
|
*/
|
|
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
|
-
}
|
|
966
|
+
export declare interface FlexProps extends Omit<BoxProps, 'display'> {}
|
|
964
967
|
|
|
965
|
-
|
|
966
|
-
* @public
|
|
967
|
-
*/
|
|
968
|
-
export declare type FlexValue = number | 'none' | 'auto' | 'initial'
|
|
968
|
+
export {FlexValue}
|
|
969
969
|
|
|
970
|
-
|
|
971
|
-
* @public
|
|
972
|
-
*/
|
|
973
|
-
export declare type FlexWrap = 'wrap' | 'wrap-reverse' | 'nowrap'
|
|
970
|
+
export {FlexWrap}
|
|
974
971
|
|
|
975
972
|
/**
|
|
976
973
|
* @internal
|
|
@@ -1013,55 +1010,28 @@ export declare const Grid: ForwardRefExoticComponent<
|
|
|
1013
1010
|
RefAttributes<HTMLDivElement>
|
|
1014
1011
|
>
|
|
1015
1012
|
|
|
1016
|
-
|
|
1017
|
-
* @public
|
|
1018
|
-
*/
|
|
1019
|
-
export declare type GridAutoCols = 'auto' | 'min' | 'max' | 'fr'
|
|
1013
|
+
export {GridAutoCols}
|
|
1020
1014
|
|
|
1021
|
-
|
|
1022
|
-
* @public
|
|
1023
|
-
*/
|
|
1024
|
-
export declare type GridAutoFlow = 'row' | 'column' | 'row dense' | 'column dense'
|
|
1015
|
+
export {GridAutoFlow}
|
|
1025
1016
|
|
|
1026
|
-
|
|
1027
|
-
* @public
|
|
1028
|
-
*/
|
|
1029
|
-
export declare type GridAutoRows = 'auto' | 'min' | 'max' | 'fr'
|
|
1017
|
+
export {GridAutoRows}
|
|
1030
1018
|
|
|
1031
|
-
|
|
1032
|
-
* @public
|
|
1033
|
-
*/
|
|
1034
|
-
export declare type GridItemColumn = 'auto' | 'full' | number
|
|
1019
|
+
export {GridItemColumn}
|
|
1035
1020
|
|
|
1036
|
-
|
|
1037
|
-
* @public
|
|
1038
|
-
*/
|
|
1039
|
-
export declare type GridItemColumnEnd = 'auto' | number
|
|
1021
|
+
export {GridItemColumnEnd}
|
|
1040
1022
|
|
|
1041
|
-
|
|
1042
|
-
* @public
|
|
1043
|
-
*/
|
|
1044
|
-
export declare type GridItemColumnStart = 'auto' | number
|
|
1023
|
+
export {GridItemColumnStart}
|
|
1045
1024
|
|
|
1046
|
-
|
|
1047
|
-
* @public
|
|
1048
|
-
*/
|
|
1049
|
-
export declare type GridItemRow = 'auto' | 'full' | number
|
|
1025
|
+
export {GridItemRow}
|
|
1050
1026
|
|
|
1051
|
-
|
|
1052
|
-
* @public
|
|
1053
|
-
*/
|
|
1054
|
-
export declare type GridItemRowEnd = 'auto' | number
|
|
1027
|
+
export {GridItemRowEnd}
|
|
1055
1028
|
|
|
1056
|
-
|
|
1057
|
-
* @public
|
|
1058
|
-
*/
|
|
1059
|
-
export declare type GridItemRowStart = 'auto' | number
|
|
1029
|
+
export {GridItemRowStart}
|
|
1060
1030
|
|
|
1061
1031
|
/**
|
|
1062
1032
|
* @public
|
|
1063
1033
|
*/
|
|
1064
|
-
export declare interface GridProps extends Omit<BoxProps, 'display'
|
|
1034
|
+
export declare interface GridProps extends Omit<BoxProps, 'display'> {}
|
|
1065
1035
|
|
|
1066
1036
|
/**
|
|
1067
1037
|
* @internal
|
|
@@ -1081,19 +1051,17 @@ export declare const Heading: ForwardRefExoticComponent<
|
|
|
1081
1051
|
/**
|
|
1082
1052
|
* @public
|
|
1083
1053
|
*/
|
|
1084
|
-
export declare interface HeadingProps {
|
|
1054
|
+
export declare interface HeadingProps extends FontStyleProps {
|
|
1085
1055
|
accent?: boolean
|
|
1086
|
-
align?: TextAlign | TextAlign[]
|
|
1087
1056
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
1088
1057
|
muted?: boolean
|
|
1089
|
-
size?:
|
|
1058
|
+
size?: ResponsiveProp<FontHeadingSize>
|
|
1090
1059
|
/**
|
|
1091
1060
|
* Controls how overflowing text is treated.
|
|
1092
1061
|
* Use `textOverflow="ellipsis"` to render text as a single line which is concatenated with a `…` symbol.
|
|
1093
1062
|
* @beta
|
|
1094
1063
|
*/
|
|
1095
|
-
textOverflow?: 'ellipsis'
|
|
1096
|
-
weight?: ThemeFontWeightKey_2
|
|
1064
|
+
textOverflow?: 'ellipsis'
|
|
1097
1065
|
}
|
|
1098
1066
|
|
|
1099
1067
|
/**
|
|
@@ -1102,7 +1070,11 @@ export declare interface HeadingProps {
|
|
|
1102
1070
|
*/
|
|
1103
1071
|
export declare const HeadingSkeleton: ForwardRefExoticComponent<
|
|
1104
1072
|
Omit<
|
|
1105
|
-
HeadingSkeletonProps &
|
|
1073
|
+
HeadingSkeletonProps &
|
|
1074
|
+
Omit<
|
|
1075
|
+
HTMLProps<HTMLDivElement>,
|
|
1076
|
+
'height' | 'width' | 'size' | 'wrap' | 'children' | 'as' | 'rows'
|
|
1077
|
+
>,
|
|
1106
1078
|
'ref'
|
|
1107
1079
|
> &
|
|
1108
1080
|
RefAttributes<HTMLDivElement>
|
|
@@ -1113,7 +1085,7 @@ export declare const HeadingSkeleton: ForwardRefExoticComponent<
|
|
|
1113
1085
|
* @beta
|
|
1114
1086
|
*/
|
|
1115
1087
|
export declare interface HeadingSkeletonProps extends SkeletonProps {
|
|
1116
|
-
size?:
|
|
1088
|
+
size?: ResponsiveProp<FontHeadingSize>
|
|
1117
1089
|
}
|
|
1118
1090
|
|
|
1119
1091
|
/**
|
|
@@ -1128,17 +1100,21 @@ export declare const hexToRgb: typeof hexToRgb_2
|
|
|
1128
1100
|
* @public
|
|
1129
1101
|
*/
|
|
1130
1102
|
export declare const Hotkeys: ForwardRefExoticComponent<
|
|
1131
|
-
HotkeysProps &
|
|
1103
|
+
HotkeysProps &
|
|
1104
|
+
Omit<
|
|
1105
|
+
HTMLProps<HTMLDivElement>,
|
|
1106
|
+
'display' | 'height' | 'width' | 'size' | 'wrap' | 'ref' | 'as' | 'rows'
|
|
1107
|
+
> &
|
|
1108
|
+
RefAttributes<HTMLDivElement>
|
|
1132
1109
|
>
|
|
1133
1110
|
|
|
1134
1111
|
/**
|
|
1135
1112
|
* @public
|
|
1136
1113
|
*/
|
|
1137
|
-
export declare interface HotkeysProps {
|
|
1138
|
-
fontSize?:
|
|
1139
|
-
padding?:
|
|
1140
|
-
|
|
1141
|
-
space?: number | number[]
|
|
1114
|
+
export declare interface HotkeysProps extends RadiusStyleProps {
|
|
1115
|
+
fontSize?: ResponsiveProp<FontTextSize>
|
|
1116
|
+
padding?: ResponsiveProp<Space>
|
|
1117
|
+
space?: ResponsiveProp<Space>
|
|
1142
1118
|
keys?: string[]
|
|
1143
1119
|
}
|
|
1144
1120
|
|
|
@@ -1160,15 +1136,16 @@ export declare const hslToRgb: typeof hslToRgb_2
|
|
|
1160
1136
|
* @public
|
|
1161
1137
|
*/
|
|
1162
1138
|
export declare const Inline: ForwardRefExoticComponent<
|
|
1163
|
-
Omit<InlineProps & HTMLProps<HTMLDivElement>, 'ref'> & RefAttributes<
|
|
1139
|
+
Omit<InlineProps & Omit<HTMLProps<HTMLDivElement>, 'wrap'>, 'ref'> & RefAttributes<HTMLDivElement>
|
|
1164
1140
|
>
|
|
1165
1141
|
|
|
1166
1142
|
/**
|
|
1167
1143
|
* @public
|
|
1168
1144
|
*/
|
|
1169
|
-
export declare interface InlineProps
|
|
1145
|
+
export declare interface InlineProps
|
|
1146
|
+
extends Omit<BoxProps, 'align' | 'display' | 'gap' | 'gapX' | 'gapY' | 'justify'> {
|
|
1170
1147
|
/** The spacing between children. */
|
|
1171
|
-
space?:
|
|
1148
|
+
space?: ResponsiveProp<Space>
|
|
1172
1149
|
}
|
|
1173
1150
|
|
|
1174
1151
|
/**
|
|
@@ -1228,11 +1205,10 @@ export declare const KBD: ForwardRefExoticComponent<
|
|
|
1228
1205
|
/**
|
|
1229
1206
|
* @public
|
|
1230
1207
|
*/
|
|
1231
|
-
export declare interface KBDProps {
|
|
1208
|
+
export declare interface KBDProps extends BoxProps, RadiusStyleProps {
|
|
1232
1209
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
1233
|
-
fontSize?:
|
|
1234
|
-
padding?:
|
|
1235
|
-
radius?: Radius | Radius[]
|
|
1210
|
+
fontSize?: ResponsiveProp<FontTextSize>
|
|
1211
|
+
padding?: ResponsiveProp<Space>
|
|
1236
1212
|
}
|
|
1237
1213
|
|
|
1238
1214
|
/**
|
|
@@ -1248,9 +1224,8 @@ export declare const Label: ForwardRefExoticComponent<
|
|
|
1248
1224
|
/**
|
|
1249
1225
|
* @public
|
|
1250
1226
|
*/
|
|
1251
|
-
export declare interface LabelProps {
|
|
1227
|
+
export declare interface LabelProps extends FontStyleProps {
|
|
1252
1228
|
accent?: boolean
|
|
1253
|
-
align?: TextAlign | TextAlign[]
|
|
1254
1229
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
1255
1230
|
muted?: boolean
|
|
1256
1231
|
size?: number | number[]
|
|
@@ -1269,7 +1244,11 @@ export declare interface LabelProps {
|
|
|
1269
1244
|
*/
|
|
1270
1245
|
export declare const LabelSkeleton: ForwardRefExoticComponent<
|
|
1271
1246
|
Omit<
|
|
1272
|
-
LabelSkeletonProps &
|
|
1247
|
+
LabelSkeletonProps &
|
|
1248
|
+
Omit<
|
|
1249
|
+
HTMLProps<HTMLDivElement>,
|
|
1250
|
+
'height' | 'width' | 'size' | 'wrap' | 'children' | 'as' | 'rows'
|
|
1251
|
+
>,
|
|
1273
1252
|
'ref'
|
|
1274
1253
|
> &
|
|
1275
1254
|
RefAttributes<HTMLDivElement>
|
|
@@ -1280,14 +1259,15 @@ export declare const LabelSkeleton: ForwardRefExoticComponent<
|
|
|
1280
1259
|
* @beta
|
|
1281
1260
|
*/
|
|
1282
1261
|
export declare interface LabelSkeletonProps extends SkeletonProps {
|
|
1283
|
-
size?:
|
|
1262
|
+
size?: ResponsiveProp<FontLabelSize>
|
|
1284
1263
|
}
|
|
1285
1264
|
|
|
1286
1265
|
/**
|
|
1287
1266
|
* @public
|
|
1288
1267
|
*/
|
|
1289
1268
|
export declare const Layer: ForwardRefExoticComponent<
|
|
1290
|
-
Omit<LayerProps & Omit<HTMLProps<HTMLDivElement>, 'as'>, 'ref'> &
|
|
1269
|
+
Omit<LayerProps & Omit<HTMLProps<HTMLDivElement>, 'width' | 'wrap' | 'as' | 'rows'>, 'ref'> &
|
|
1270
|
+
RefAttributes<HTMLDivElement>
|
|
1291
1271
|
>
|
|
1292
1272
|
|
|
1293
1273
|
/** @public */
|
|
@@ -1303,8 +1283,7 @@ export declare interface LayerContextValue {
|
|
|
1303
1283
|
/**
|
|
1304
1284
|
* @public
|
|
1305
1285
|
*/
|
|
1306
|
-
export declare interface LayerProps {
|
|
1307
|
-
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
1286
|
+
export declare interface LayerProps extends BoxProps {
|
|
1308
1287
|
/** A callback that fires when the layer becomes the top layer when it was not the top layer before. */
|
|
1309
1288
|
onActivate?: (props: {activeElement: HTMLElement | null}) => void
|
|
1310
1289
|
zOffset?: number | number[]
|
|
@@ -1350,7 +1329,14 @@ export declare interface _MediaStore {
|
|
|
1350
1329
|
* @public
|
|
1351
1330
|
*/
|
|
1352
1331
|
export declare const Menu: ForwardRefExoticComponent<
|
|
1353
|
-
Omit<
|
|
1332
|
+
Omit<
|
|
1333
|
+
MenuProps &
|
|
1334
|
+
Omit<
|
|
1335
|
+
HTMLProps<HTMLDivElement>,
|
|
1336
|
+
'height' | 'width' | 'wrap' | 'role' | 'tabIndex' | 'as' | 'rows'
|
|
1337
|
+
>,
|
|
1338
|
+
'ref'
|
|
1339
|
+
> &
|
|
1354
1340
|
RefAttributes<HTMLDivElement>
|
|
1355
1341
|
>
|
|
1356
1342
|
|
|
@@ -1407,17 +1393,18 @@ export declare interface MenuButtonProps {
|
|
|
1407
1393
|
/**
|
|
1408
1394
|
* @public
|
|
1409
1395
|
*/
|
|
1410
|
-
export declare const MenuDivider:
|
|
1411
|
-
'
|
|
1412
|
-
|
|
1413
|
-
> &
|
|
1414
|
-
string
|
|
1396
|
+
export declare const MenuDivider: ForwardRefExoticComponent<
|
|
1397
|
+
Omit<HTMLProps<HTMLHRElement>, 'ref'> & RefAttributes<HTMLHRElement>
|
|
1398
|
+
>
|
|
1415
1399
|
|
|
1416
1400
|
/**
|
|
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' | 'rows' | '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' | 'rows'
|
|
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' | 'rows'
|
|
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[]
|
|
@@ -1803,15 +1804,13 @@ export declare interface ResponsiveGridItemProps {
|
|
|
1803
1804
|
|
|
1804
1805
|
/**
|
|
1805
1806
|
* @public
|
|
1807
|
+
* @deprecated
|
|
1806
1808
|
*/
|
|
1807
1809
|
export declare interface ResponsiveGridProps {
|
|
1808
1810
|
autoRows?: GridAutoRows | GridAutoRows[]
|
|
1809
1811
|
autoCols?: GridAutoCols | GridAutoCols[]
|
|
1810
1812
|
autoFlow?: GridAutoFlow | GridAutoFlow[]
|
|
1811
1813
|
columns?: number | number[]
|
|
1812
|
-
gap?: number | number[]
|
|
1813
|
-
gapX?: number | number[]
|
|
1814
|
-
gapY?: number | number[]
|
|
1815
1814
|
rows?: number | number[]
|
|
1816
1815
|
}
|
|
1817
1816
|
|
|
@@ -1833,6 +1832,7 @@ export declare function responsiveLabelFont(
|
|
|
1833
1832
|
|
|
1834
1833
|
/**
|
|
1835
1834
|
* @public
|
|
1835
|
+
* @deprecated
|
|
1836
1836
|
*/
|
|
1837
1837
|
export declare interface ResponsiveMarginProps {
|
|
1838
1838
|
/** Applies margins to all sides. The property is responsive. */
|
|
@@ -1849,6 +1849,7 @@ export declare interface ResponsiveMarginProps {
|
|
|
1849
1849
|
|
|
1850
1850
|
/**
|
|
1851
1851
|
* @public
|
|
1852
|
+
* @deprecated
|
|
1852
1853
|
*/
|
|
1853
1854
|
export declare interface ResponsivePaddingProps {
|
|
1854
1855
|
padding?: number | number[]
|
|
@@ -1862,6 +1863,7 @@ export declare interface ResponsivePaddingProps {
|
|
|
1862
1863
|
|
|
1863
1864
|
/**
|
|
1864
1865
|
* @public
|
|
1866
|
+
* @deprecated
|
|
1865
1867
|
*/
|
|
1866
1868
|
export declare interface ResponsiveRadiusProps {
|
|
1867
1869
|
radius?: Radius | Radius[]
|
|
@@ -1869,6 +1871,7 @@ export declare interface ResponsiveRadiusProps {
|
|
|
1869
1871
|
|
|
1870
1872
|
/**
|
|
1871
1873
|
* @public
|
|
1874
|
+
* @deprecated
|
|
1872
1875
|
*/
|
|
1873
1876
|
export declare interface ResponsiveShadowProps {
|
|
1874
1877
|
shadow?: number | number[]
|
|
@@ -1899,6 +1902,7 @@ export declare function responsiveTextFont(
|
|
|
1899
1902
|
|
|
1900
1903
|
/**
|
|
1901
1904
|
* @public
|
|
1905
|
+
* @deprecated
|
|
1902
1906
|
*/
|
|
1903
1907
|
export declare interface ResponsiveWidthProps {
|
|
1904
1908
|
width?: number | 'auto' | (number | 'auto')[]
|
|
@@ -1979,14 +1983,18 @@ export declare interface SelectProps {
|
|
|
1979
1983
|
* @beta
|
|
1980
1984
|
*/
|
|
1981
1985
|
export declare const Skeleton: ForwardRefExoticComponent<
|
|
1982
|
-
Omit<
|
|
1986
|
+
Omit<
|
|
1987
|
+
SkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'wrap' | 'as' | 'rows'>,
|
|
1988
|
+
'ref'
|
|
1989
|
+
> &
|
|
1990
|
+
RefAttributes<HTMLDivElement>
|
|
1983
1991
|
>
|
|
1984
1992
|
|
|
1985
1993
|
/**
|
|
1986
1994
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
1987
1995
|
* @beta
|
|
1988
1996
|
*/
|
|
1989
|
-
export declare interface SkeletonProps extends
|
|
1997
|
+
export declare interface SkeletonProps extends SkeletonStyleProps, Omit<BoxProps, 'children'> {
|
|
1990
1998
|
animated?: boolean
|
|
1991
1999
|
delay?: number
|
|
1992
2000
|
}
|
|
@@ -2006,7 +2014,7 @@ export declare const Spinner: ForwardRefExoticComponent<
|
|
|
2006
2014
|
*/
|
|
2007
2015
|
export declare interface SpinnerProps {
|
|
2008
2016
|
muted?: boolean
|
|
2009
|
-
size?:
|
|
2017
|
+
size?: ResponsiveProp<FontTextSize>
|
|
2010
2018
|
}
|
|
2011
2019
|
|
|
2012
2020
|
/**
|
|
@@ -2031,15 +2039,18 @@ export declare interface SrOnlyProps {
|
|
|
2031
2039
|
* @public
|
|
2032
2040
|
*/
|
|
2033
2041
|
export declare const Stack: ForwardRefExoticComponent<
|
|
2034
|
-
StackProps &
|
|
2042
|
+
StackProps &
|
|
2043
|
+
Omit<HTMLProps<HTMLDivElement>, 'width' | 'ref' | 'as'> &
|
|
2044
|
+
RefAttributes<HTMLDivElement>
|
|
2035
2045
|
>
|
|
2036
2046
|
|
|
2037
2047
|
/**
|
|
2038
2048
|
* @public
|
|
2039
2049
|
*/
|
|
2040
|
-
export declare interface StackProps
|
|
2050
|
+
export declare interface StackProps
|
|
2051
|
+
extends Omit<BoxProps, 'direction' | 'display' | 'gap' | 'gapX' | 'gapY'> {
|
|
2041
2052
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
2042
|
-
space?:
|
|
2053
|
+
space?: ResponsiveProp<Space>
|
|
2043
2054
|
}
|
|
2044
2055
|
|
|
2045
2056
|
/**
|
|
@@ -2093,7 +2104,7 @@ export declare const Tab: ForwardRefExoticComponent<
|
|
|
2093
2104
|
*/
|
|
2094
2105
|
export declare const TabList: ForwardRefExoticComponent<
|
|
2095
2106
|
Omit<TabListProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
|
|
2096
|
-
RefAttributes<
|
|
2107
|
+
RefAttributes<HTMLDivElement>
|
|
2097
2108
|
>
|
|
2098
2109
|
|
|
2099
2110
|
/**
|
|
@@ -2136,7 +2147,7 @@ export declare interface TabProps {
|
|
|
2136
2147
|
'id': string
|
|
2137
2148
|
'icon'?: React.ElementType | React.ReactNode
|
|
2138
2149
|
'focused'?: boolean
|
|
2139
|
-
'fontSize'?:
|
|
2150
|
+
'fontSize'?: ResponsiveProp<FontTextSize>
|
|
2140
2151
|
'label'?: React.ReactNode
|
|
2141
2152
|
'padding'?: number | number[]
|
|
2142
2153
|
'selected'?: boolean
|
|
@@ -2154,10 +2165,7 @@ declare const Text_2: ForwardRefExoticComponent<
|
|
|
2154
2165
|
>
|
|
2155
2166
|
export {Text_2 as Text}
|
|
2156
2167
|
|
|
2157
|
-
|
|
2158
|
-
* @public
|
|
2159
|
-
*/
|
|
2160
|
-
export declare type TextAlign = 'left' | 'right' | 'center' | 'justify' | 'initial'
|
|
2168
|
+
export {TextAlign}
|
|
2161
2169
|
|
|
2162
2170
|
/**
|
|
2163
2171
|
* A multiline text input.
|
|
@@ -2191,7 +2199,7 @@ export declare interface TextAreaProps extends ResponsiveRadiusProps {
|
|
|
2191
2199
|
* @public
|
|
2192
2200
|
*/
|
|
2193
2201
|
export declare const TextInput: ForwardRefExoticComponent<
|
|
2194
|
-
Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, 'type' | '
|
|
2202
|
+
Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, 'type' | 'as' | 'prefix'>, 'ref'> &
|
|
2195
2203
|
RefAttributes<HTMLInputElement>
|
|
2196
2204
|
>
|
|
2197
2205
|
|
|
@@ -2204,7 +2212,7 @@ export declare type TextInputClearButtonProps = Omit<ButtonProps, 'as'> &
|
|
|
2204
2212
|
/**
|
|
2205
2213
|
* @public
|
|
2206
2214
|
*/
|
|
2207
|
-
export declare interface TextInputProps {
|
|
2215
|
+
export declare interface TextInputProps extends RadiusStyleProps {
|
|
2208
2216
|
/**
|
|
2209
2217
|
* @beta
|
|
2210
2218
|
*/
|
|
@@ -2215,17 +2223,16 @@ export declare interface TextInputProps {
|
|
|
2215
2223
|
*/
|
|
2216
2224
|
clearButton?: boolean | TextInputClearButtonProps
|
|
2217
2225
|
customValidity?: string
|
|
2218
|
-
fontSize?:
|
|
2226
|
+
fontSize?: ResponsiveProp<FontTextSize>
|
|
2219
2227
|
icon?: React.ElementType | React.ReactNode
|
|
2220
2228
|
iconRight?: React.ElementType | React.ReactNode
|
|
2221
2229
|
/**
|
|
2222
2230
|
* @beta
|
|
2223
2231
|
*/
|
|
2224
2232
|
onClear?: () => void
|
|
2225
|
-
padding?:
|
|
2233
|
+
padding?: ResponsiveProp<Space>
|
|
2226
2234
|
prefix?: React.ReactNode
|
|
2227
|
-
|
|
2228
|
-
space?: number | number[]
|
|
2235
|
+
space?: ResponsiveProp<Space>
|
|
2229
2236
|
suffix?: React.ReactNode
|
|
2230
2237
|
type?: TextInputType
|
|
2231
2238
|
weight?: ThemeFontWeightKey_2
|
|
@@ -2251,13 +2258,11 @@ export declare type TextInputType =
|
|
|
2251
2258
|
/**
|
|
2252
2259
|
* @public
|
|
2253
2260
|
*/
|
|
2254
|
-
export declare interface TextProps {
|
|
2261
|
+
export declare interface TextProps extends TextStyleProps {
|
|
2255
2262
|
accent?: boolean
|
|
2256
|
-
align?: TextAlign | TextAlign[]
|
|
2257
2263
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
2258
2264
|
/** When `true` the text color will be muted. */
|
|
2259
2265
|
muted?: boolean
|
|
2260
|
-
size?: number | number[]
|
|
2261
2266
|
/**
|
|
2262
2267
|
* Controls how overflowing text is treated.
|
|
2263
2268
|
* Use `textOverflow="ellipsis"` to render text as a single line which is concatenated with a `…` symbol.
|
|
@@ -2273,7 +2278,11 @@ export declare interface TextProps {
|
|
|
2273
2278
|
*/
|
|
2274
2279
|
export declare const TextSkeleton: ForwardRefExoticComponent<
|
|
2275
2280
|
Omit<
|
|
2276
|
-
TextSkeletonProps &
|
|
2281
|
+
TextSkeletonProps &
|
|
2282
|
+
Omit<
|
|
2283
|
+
HTMLProps<HTMLDivElement>,
|
|
2284
|
+
'height' | 'width' | 'size' | 'wrap' | 'children' | 'as' | 'rows'
|
|
2285
|
+
>,
|
|
2277
2286
|
'ref'
|
|
2278
2287
|
> &
|
|
2279
2288
|
RefAttributes<HTMLDivElement>
|
|
@@ -2284,7 +2293,7 @@ export declare const TextSkeleton: ForwardRefExoticComponent<
|
|
|
2284
2293
|
* @beta
|
|
2285
2294
|
*/
|
|
2286
2295
|
export declare interface TextSkeletonProps extends SkeletonProps {
|
|
2287
|
-
size?:
|
|
2296
|
+
size?: ResponsiveProp<FontTextSize>
|
|
2288
2297
|
}
|
|
2289
2298
|
|
|
2290
2299
|
/**
|
|
@@ -2478,7 +2487,11 @@ export declare type ThemeShadow = ThemeShadow_2
|
|
|
2478
2487
|
* @public
|
|
2479
2488
|
*/
|
|
2480
2489
|
export declare function Toast(
|
|
2481
|
-
props: ToastProps &
|
|
2490
|
+
props: ToastProps &
|
|
2491
|
+
Omit<
|
|
2492
|
+
React.HTMLProps<HTMLDivElement>,
|
|
2493
|
+
'as' | 'height' | 'ref' | 'rows' | 'title' | 'width' | 'wrap'
|
|
2494
|
+
>,
|
|
2482
2495
|
): React.ReactElement
|
|
2483
2496
|
|
|
2484
2497
|
export declare namespace Toast {
|
|
@@ -2509,11 +2522,10 @@ export declare interface ToastParams {
|
|
|
2509
2522
|
/**
|
|
2510
2523
|
* @public
|
|
2511
2524
|
*/
|
|
2512
|
-
export declare interface ToastProps {
|
|
2525
|
+
export declare interface ToastProps extends RadiusStyleProps {
|
|
2513
2526
|
closable?: boolean
|
|
2514
2527
|
description?: React.ReactNode
|
|
2515
2528
|
onClose?: () => void
|
|
2516
|
-
radius?: number | number[]
|
|
2517
2529
|
title?: React.ReactNode
|
|
2518
2530
|
status?: 'error' | 'warning' | 'success' | 'info'
|
|
2519
2531
|
duration?: number
|
|
@@ -2545,7 +2557,11 @@ export declare interface ToastProviderProps {
|
|
|
2545
2557
|
* @public
|
|
2546
2558
|
*/
|
|
2547
2559
|
export declare const Tooltip: ForwardRefExoticComponent<
|
|
2548
|
-
Omit<
|
|
2560
|
+
Omit<
|
|
2561
|
+
TooltipProps &
|
|
2562
|
+
Omit<HTMLProps<HTMLDivElement>, 'content' | 'width' | 'wrap' | 'children' | 'as'>,
|
|
2563
|
+
'ref'
|
|
2564
|
+
> &
|
|
2549
2565
|
RefAttributes<HTMLDivElement>
|
|
2550
2566
|
>
|
|
2551
2567
|
|
|
@@ -2599,7 +2615,7 @@ export declare interface TooltipDelayGroupProviderProps {
|
|
|
2599
2615
|
/**
|
|
2600
2616
|
* @public
|
|
2601
2617
|
*/
|
|
2602
|
-
export declare interface TooltipProps extends Omit<LayerProps, 'as'
|
|
2618
|
+
export declare interface TooltipProps extends Omit<LayerProps, 'as'>, RadiusStyleProps {
|
|
2603
2619
|
/** @deprecated Use `fallbackPlacements` instead. */
|
|
2604
2620
|
allowedAutoPlacements?: Placement[]
|
|
2605
2621
|
arrow?: boolean
|
|
@@ -2612,7 +2628,6 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
|
|
|
2612
2628
|
placement?: Placement
|
|
2613
2629
|
/** Whether or not to render the tooltip in a portal element. */
|
|
2614
2630
|
portal?: boolean | string
|
|
2615
|
-
radius?: number | number[]
|
|
2616
2631
|
scheme?: ThemeColorSchemeKey_2
|
|
2617
2632
|
shadow?: number | number[]
|
|
2618
2633
|
/**
|
|
@@ -2642,7 +2657,10 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
|
|
|
2642
2657
|
export declare const Tree: MemoExoticComponent<
|
|
2643
2658
|
ForwardRefExoticComponent<
|
|
2644
2659
|
TreeProps &
|
|
2645
|
-
Omit<
|
|
2660
|
+
Omit<
|
|
2661
|
+
HTMLProps<HTMLDivElement>,
|
|
2662
|
+
'height' | 'width' | 'wrap' | 'role' | 'ref' | 'as' | 'rows' | 'align'
|
|
2663
|
+
> &
|
|
2646
2664
|
RefAttributes<HTMLDivElement>
|
|
2647
2665
|
>
|
|
2648
2666
|
>
|
|
@@ -2658,7 +2676,7 @@ export declare interface TreeContextValue {
|
|
|
2658
2676
|
registerItem: (element: HTMLElement, path: string, expanded: boolean, selected: boolean) => void
|
|
2659
2677
|
setExpanded: (path: string, expanded: boolean) => void
|
|
2660
2678
|
setFocusedElement: (focusedElement: HTMLElement | null) => void
|
|
2661
|
-
space:
|
|
2679
|
+
space: ResponsiveProp<Space>
|
|
2662
2680
|
state: TreeState
|
|
2663
2681
|
}
|
|
2664
2682
|
|
|
@@ -2667,7 +2685,8 @@ export declare interface TreeContextValue {
|
|
|
2667
2685
|
* @beta
|
|
2668
2686
|
*/
|
|
2669
2687
|
export declare const TreeItem: NamedExoticComponent<
|
|
2670
|
-
TreeItemProps &
|
|
2688
|
+
TreeItemProps &
|
|
2689
|
+
Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'wrap' | 'role' | 'ref' | 'as' | 'rows'>
|
|
2671
2690
|
>
|
|
2672
2691
|
|
|
2673
2692
|
/**
|
|
@@ -2682,7 +2701,7 @@ export declare interface TreeItemProps {
|
|
|
2682
2701
|
*/
|
|
2683
2702
|
linkAs?: BoxProps['as']
|
|
2684
2703
|
padding?: number | number[]
|
|
2685
|
-
space?:
|
|
2704
|
+
space?: ResponsiveProp<Space>
|
|
2686
2705
|
text?: React.ReactNode
|
|
2687
2706
|
weight?: ThemeFontWeightKey_2
|
|
2688
2707
|
}
|
|
@@ -2692,7 +2711,7 @@ export declare interface TreeItemProps {
|
|
|
2692
2711
|
* @beta
|
|
2693
2712
|
*/
|
|
2694
2713
|
export declare interface TreeProps {
|
|
2695
|
-
space?:
|
|
2714
|
+
space?: ResponsiveProp<Space>
|
|
2696
2715
|
}
|
|
2697
2716
|
|
|
2698
2717
|
/**
|