@sanity/ui 3.0.0-static.1 → 3.0.0-static.11
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/LICENSE +1 -1
- package/bin/ui.js +0 -1
- package/dist/_chunks-cjs/_visual-editing.js +3091 -0
- package/dist/_chunks-cjs/_visual-editing.js.map +1 -0
- package/dist/_chunks-cjs/buildCommand.js +14 -3524
- package/dist/_chunks-cjs/buildCommand.js.map +1 -1
- package/dist/_chunks-cjs/refractor.js +27 -0
- package/dist/_chunks-cjs/refractor.js.map +1 -0
- package/dist/_chunks-es/_visual-editing.mjs +3098 -0
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -0
- package/dist/_chunks-es/refractor.mjs +26 -0
- package/dist/_chunks-es/refractor.mjs.map +1 -0
- package/dist/_visual-editing.d.mts +809 -0
- package/dist/_visual-editing.d.ts +809 -0
- package/dist/_visual-editing.js +31 -0
- package/dist/_visual-editing.js.map +1 -0
- package/dist/_visual-editing.mjs +31 -0
- package/dist/_visual-editing.mjs.map +1 -0
- package/dist/cli.js +337 -5
- package/dist/cli.js.map +1 -1
- package/dist/css.d.mts +978 -454
- package/dist/css.d.ts +978 -454
- package/dist/css.js +4533 -3312
- package/dist/css.js.map +1 -1
- package/dist/css.mjs +4535 -3313
- package/dist/css.mjs.map +1 -1
- package/dist/index.d.mts +462 -532
- package/dist/index.d.ts +462 -532
- package/dist/index.js +782 -4640
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +686 -4553
- package/dist/index.mjs.map +1 -1
- package/dist/sanity-palette.css +1 -0
- package/dist/sanity-theme.css +1 -25
- package/dist/system.css +23466 -3377
- package/dist/theme.d.mts +399 -112
- package/dist/theme.d.ts +399 -112
- package/dist/theme.js +1378 -2380
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +1422 -2424
- package/dist/theme.mjs.map +1 -1
- package/exports/_visual-editing.ts +31 -0
- package/exports/index.ts +1 -1
- package/package.json +93 -82
- package/src/cli/buildCommand.ts +48 -0
- package/src/cli/index.ts +38 -0
- package/src/css/_comp.test.ts +7 -0
- package/src/css/_comp.ts +11 -0
- package/src/css/_mergeStyles.ts +31 -0
- package/src/css/_resp.ts +15 -6
- package/src/css/_responsiveRule.ts +38 -0
- package/src/css/aspects/border/border.style.ts +13 -0
- package/src/css/aspects/border/border.ts +14 -0
- package/src/css/aspects/display/display.style.ts +34 -0
- package/src/css/aspects/display/display.ts +7 -0
- package/src/css/aspects/display/index.ts +2 -0
- package/src/css/aspects/display/types.ts +17 -0
- package/src/css/aspects/flex/flex.style.ts +30 -0
- package/src/css/aspects/flex/flex.ts +13 -0
- package/src/css/aspects/flex/flexAlign.style.ts +12 -0
- package/src/css/aspects/flex/flexDirection.style.ts +11 -0
- package/src/css/aspects/flex/flexJustify.style.ts +13 -0
- package/src/css/aspects/flex/flexWrap.style.ts +10 -0
- package/src/css/aspects/flexItem/flex.style.ts +22 -0
- package/src/css/aspects/flexItem/flexItem.ts +8 -0
- package/src/css/aspects/flexItem/types.ts +27 -0
- package/src/css/aspects/font/font.style.ts +92 -0
- package/src/css/aspects/font/font.ts +12 -0
- package/src/css/aspects/gap/gap.style.ts +21 -0
- package/src/css/aspects/gap/gap.ts +8 -0
- package/src/css/aspects/gap/types.ts +10 -0
- package/src/css/aspects/grid/grid.ts +13 -0
- package/src/css/aspects/grid/gridAutoColumns.style.ts +11 -0
- package/src/css/aspects/grid/gridAutoFlow.style.ts +11 -0
- package/src/css/aspects/grid/gridAutoRows.style.ts +11 -0
- package/src/css/aspects/grid/gridColumns.style.ts +18 -0
- package/src/css/aspects/grid/gridRows.style.ts +18 -0
- package/src/css/aspects/grid/types.ts +29 -0
- package/src/css/aspects/gridItem/gridColumn.style.ts +20 -0
- package/src/css/aspects/gridItem/gridColumnEnd.style.ts +20 -0
- package/src/css/aspects/gridItem/gridColumnStart.style.ts +20 -0
- package/src/css/aspects/gridItem/gridItem.ts +15 -0
- package/src/css/aspects/gridItem/gridRow.style.ts +20 -0
- package/src/css/aspects/gridItem/gridRowEnd.style.ts +20 -0
- package/src/css/aspects/gridItem/gridRowStart.style.ts +20 -0
- package/src/css/aspects/height/height.style.ts +9 -0
- package/src/css/aspects/height/height.ts +17 -0
- package/src/css/aspects/height/index.ts +1 -0
- package/src/css/aspects/index.ts +21 -0
- package/src/css/aspects/inset/index.ts +2 -0
- package/src/css/aspects/inset/inset.style.ts +12 -0
- package/src/css/aspects/inset/inset.ts +13 -0
- package/src/css/aspects/inset/types.ts +13 -0
- package/src/css/aspects/margin/margin.style.ts +46 -0
- package/src/css/aspects/margin/margin.ts +15 -0
- package/src/css/aspects/maxWidth/maxWidth.style.ts +16 -0
- package/src/css/aspects/maxWidth/types.ts +7 -0
- package/src/css/aspects/minWidth/index.ts +2 -0
- package/src/css/aspects/minWidth/minWidth.style.ts +13 -0
- package/src/css/aspects/minWidth/minWidth.ts +6 -0
- package/src/css/aspects/minWidth/types.ts +7 -0
- package/src/css/aspects/outline/outline.style.ts +9 -0
- package/src/css/aspects/overflow/overflow.style.ts +11 -0
- package/src/css/aspects/overflow/overflow.ts +11 -0
- package/src/css/aspects/padding/padding.style.ts +46 -0
- package/src/css/aspects/padding/padding.ts +15 -0
- package/src/css/aspects/padding/types.ts +14 -0
- package/src/css/aspects/pointerEvents/pointerEvents.style.ts +13 -0
- package/src/css/aspects/pointerEvents/pointerEvents.ts +6 -0
- package/src/css/aspects/position/position.style.ts +12 -0
- package/src/css/aspects/position/position.ts +7 -0
- package/src/css/aspects/position/types.ts +9 -0
- package/src/css/aspects/radius/radius.style.ts +16 -0
- package/src/css/aspects/radius/radius.ts +8 -0
- package/src/css/aspects/radius/types.ts +8 -0
- package/src/css/aspects/shadow/index.ts +2 -0
- package/src/css/aspects/shadow/shadow.style.ts +24 -0
- package/src/css/aspects/shadow/shadow.ts +7 -0
- package/src/css/aspects/shadow/types.ts +8 -0
- package/src/css/aspects/textOverflow/index.ts +2 -0
- package/src/css/aspects/textOverflow/textOverflow.style.ts +21 -0
- package/src/css/aspects/textOverflow/textOverflow.ts +6 -0
- package/src/css/aspects/textOverflow/types.ts +8 -0
- package/src/css/aspects/width/index.ts +2 -0
- package/src/css/aspects/width/rules.ts +8 -0
- package/src/css/aspects/width/types.ts +9 -0
- package/src/css/aspects/width/width.style.ts +11 -0
- package/src/css/compile/compilePalette.ts +28 -0
- package/src/css/compile/compileRule.ts +50 -11
- package/src/css/compile/compileRules.test.ts +36 -0
- package/src/css/compile/compileRules.ts +17 -30
- package/src/css/compile/compileStyle.ts +148 -0
- package/src/css/compile/compileSystem.ts +3 -3
- package/src/css/compile/compileTheme.ts +8 -505
- package/src/css/compile/compileTheme_v3.ts +415 -0
- package/src/css/compile/types.ts +6 -0
- package/src/css/components/breadcrumbs/breadcrumbs.style.ts +9 -0
- package/src/css/components/breadcrumbs/breadcrumbs.ts +3 -3
- package/src/css/components/dialog/dialog.style.ts +79 -0
- package/src/css/components/dialog/dialog.ts +30 -0
- package/src/css/components/dialog/index.ts +1 -1
- package/src/css/components/menu/menu.style.ts +17 -0
- package/src/css/components/menu/menu.ts +7 -3
- package/src/css/components/menu/rules.ts +6 -1
- package/src/css/components/skeleton/skeleton.style.ts +100 -0
- package/src/css/components/skeleton/skeleton.ts +12 -12
- package/src/css/components/skeleton/types.ts +3 -1
- package/src/css/components/toast/index.ts +1 -0
- package/src/css/components/toast/toast.style.ts +20 -0
- package/src/css/components/toast/toast.ts +21 -0
- package/src/css/components/tree/tree.style.ts +55 -0
- package/src/css/components/tree/tree.ts +3 -3
- package/src/css/composeClassNames.ts +16 -2
- package/src/css/constants.ts +10 -0
- package/src/css/index.ts +14 -23
- package/src/css/primitives/_arrow/_arrow.style.ts +71 -0
- package/src/css/primitives/_arrow/_arrow.ts +18 -0
- package/src/css/primitives/_arrow/index.ts +1 -0
- package/src/css/primitives/_input/__workshop__/customInput.tsx +16 -0
- package/src/css/primitives/_input/__workshop__/index.ts +14 -0
- package/src/css/primitives/_input/_input.style.ts +162 -0
- package/src/css/primitives/_input/index.ts +2 -0
- package/src/css/primitives/_input/input.ts +25 -0
- package/src/css/primitives/_input/types.ts +12 -0
- package/src/css/primitives/_selectable/__style.ts +117 -0
- package/src/css/primitives/_selectable/_contants.ts +11 -0
- package/src/css/primitives/_selectable/_selectable.style.ts +132 -0
- package/src/css/primitives/_selectable/selectable.ts +9 -0
- package/src/css/primitives/_selectable/types.ts +8 -0
- package/src/css/primitives/avatar/avatar.style.ts +175 -0
- package/src/css/primitives/avatar/avatar.ts +13 -18
- package/src/css/primitives/avatar/rules.ts +85 -99
- package/src/css/primitives/avatar/types.ts +1 -2
- package/src/css/primitives/badge/badge.style.ts +22 -0
- package/src/css/primitives/badge/badge.ts +4 -4
- package/src/css/primitives/badge/types.ts +2 -2
- package/src/css/primitives/box/box.style.ts +31 -0
- package/src/css/primitives/box/box.ts +31 -17
- package/src/css/primitives/box/types.ts +28 -25
- package/src/css/primitives/button/_constants.ts +17 -0
- package/src/css/primitives/button/button.style.ts +234 -0
- package/src/css/primitives/button/button.ts +29 -14
- package/src/css/primitives/button/rules.ts +284 -40
- package/src/css/primitives/card/_constants.ts +13 -0
- package/src/css/primitives/card/card.style.ts +270 -0
- package/src/css/primitives/card/card.ts +9 -16
- package/src/css/primitives/card/index.ts +1 -0
- package/src/css/primitives/card/types.ts +10 -0
- package/src/css/primitives/checkbox/checkbox.style.ts +154 -0
- package/src/css/primitives/checkbox/checkbox.ts +5 -5
- package/src/css/primitives/checkbox/rules.ts +31 -15
- package/src/css/primitives/code/code.style.ts +62 -0
- package/src/css/primitives/code/code.ts +4 -4
- package/src/css/primitives/code/rules.ts +27 -2
- package/src/css/primitives/code/types.ts +1 -1
- package/src/css/primitives/container/container.style.ts +10 -0
- package/src/css/primitives/container/container.ts +4 -4
- package/src/css/primitives/container/types.ts +1 -0
- package/src/css/primitives/heading/heading.style.ts +47 -0
- package/src/css/primitives/heading/heading.ts +6 -5
- package/src/css/primitives/heading/rules.ts +77 -6
- package/src/css/primitives/heading/types.ts +2 -2
- package/src/css/primitives/kbd/kbd.style.ts +22 -0
- package/src/css/primitives/kbd/kbd.ts +4 -4
- package/src/css/primitives/kbd/rules.ts +5 -5
- package/src/css/primitives/kbd/types.ts +3 -1
- package/src/css/primitives/label/label.style.ts +48 -0
- package/src/css/primitives/label/label.ts +4 -4
- package/src/css/primitives/label/rules.ts +54 -2
- package/src/css/primitives/label/types.ts +1 -1
- package/src/css/primitives/popover/popover.style.ts +5 -0
- package/src/css/primitives/popover/popover.ts +7 -3
- package/src/css/primitives/radio/radio.style.ts +123 -0
- package/src/css/primitives/radio/radio.ts +3 -3
- package/src/css/primitives/radio/rules.ts +117 -1
- package/src/css/primitives/select/index.ts +1 -0
- package/src/css/primitives/select/rules.ts +18 -1
- package/src/css/primitives/select/select.style.ts +24 -0
- package/src/css/primitives/select/select.ts +9 -2
- package/src/css/primitives/select/types.ts +5 -0
- package/src/css/primitives/spinner/spinner.style.ts +22 -0
- package/src/css/primitives/spinner/spinner.ts +5 -5
- package/src/css/primitives/stack/stack.style.ts +9 -0
- package/src/css/primitives/stack/stack.ts +6 -0
- package/src/css/primitives/switch/rules.ts +264 -56
- package/src/css/primitives/switch/switch.style.ts +94 -0
- package/src/css/primitives/switch/switch.ts +19 -3
- package/src/css/primitives/text/rules.ts +93 -4
- package/src/css/primitives/text/text.style.ts +64 -0
- package/src/css/primitives/text/text.ts +5 -4
- package/src/css/primitives/text/types.ts +2 -2
- package/src/css/primitives/textArea/index.ts +1 -0
- package/src/css/primitives/textArea/rules.ts +3 -1
- package/src/css/primitives/textArea/textArea.style.ts +9 -0
- package/src/css/primitives/textArea/textArea.ts +5 -2
- package/src/css/primitives/textArea/types.ts +5 -0
- package/src/css/primitives/textInput/rules.ts +33 -130
- package/src/css/primitives/textInput/textInput.style.ts +167 -0
- package/src/css/primitives/textInput/textInput.ts +4 -11
- package/src/css/primitives/textInput/types.ts +8 -5
- package/src/css/primitives/token/token.style.ts +50 -0
- package/src/css/primitives/tooltip/rules.ts +2 -0
- package/src/css/primitives/tooltip/tooltip.style.ts +21 -0
- package/src/css/primitives/tooltip/tooltip.ts +5 -5
- package/src/css/responsiveRules.ts +12 -19
- package/src/css/scopeClassName.ts +6 -0
- package/src/css/system.style.ts +158 -0
- package/src/css/types.ts +704 -375
- package/src/css/util.ts +27 -0
- package/src/css/utils/srOnly/srOnly.style.ts +14 -0
- package/src/css/utils/srOnly/srOnly.ts +5 -0
- package/src/css/varNames.ts +494 -258
- package/src/css/vars.ts +408 -282
- package/src/theme/_constants.ts +26 -0
- package/src/theme/_types.ts +41 -0
- package/src/theme/build/_deprecated/color/_selectable/createSelectableTones.ts +1 -1
- package/src/theme/build/_deprecated/color/_solid/createSolidTones.ts +1 -1
- package/src/theme/build/_deprecated/color/button/createButtonModes.ts +1 -6
- package/src/theme/build/_deprecated/color/button/createButtonTones.ts +2 -2
- package/src/theme/build/_deprecated/color/card/createCardStates.ts +2 -2
- package/src/theme/build/_deprecated/color/factory.ts +8 -9
- package/src/theme/build/_deprecated/color/input/createInputModes.ts +1 -1
- package/src/theme/build/_deprecated/color/muted/createMuted.ts +2 -2
- package/src/theme/build/_deprecated/color/spot/createSpot.ts +1 -1
- package/src/theme/build/buildColorTheme.ts +62 -52
- package/src/theme/build/buildTheme.ts +8 -32
- package/src/theme/build/colorToken/colorToken.ts +1 -1
- package/src/theme/build/lib/color-fns/rgba.ts +4 -0
- package/src/theme/build/merge.ts +0 -2
- package/src/theme/build/mixThemeColor.ts +1 -1
- package/src/theme/build/renderColorTheme.ts +34 -37
- package/src/theme/build/renderColorValue.ts +4 -3
- package/src/theme/build/resolveColorTokens.ts +57 -120
- package/src/theme/config/helpers.ts +2 -2
- package/src/theme/config/system.ts +3 -2
- package/src/theme/config/tokens/color/types.ts +5 -18
- package/src/theme/config/tokens/parseTokenKey.ts +1 -1
- package/src/theme/config/tokens/parseTokenValue.ts +1 -1
- package/src/theme/config/tokens/types.ts +3 -2
- package/src/theme/config/types.ts +4 -4
- package/src/theme/defaults/colorTokens.ts +8 -6
- package/src/theme/defaults/config.ts +2 -2
- package/src/theme/defaults/fonts.ts +17 -16
- package/src/theme/getScopedTheme.ts +10 -4
- package/src/theme/index.ts +7 -1
- package/src/theme/palette/constants.ts +13 -0
- package/src/theme/palette/index.ts +2 -0
- package/src/theme/palette/types.ts +4 -0
- package/src/theme/types.ts +32 -0
- package/src/theme/v0/color/_generic.ts +35 -0
- package/src/theme/v0/color/_system.ts +17 -0
- package/src/theme/v0/color/color.ts +40 -0
- package/src/theme/v0/color/index.ts +11 -0
- package/src/theme/v0/color/input.ts +34 -0
- package/src/theme/v0/color/spot.ts +13 -0
- package/src/theme/v0/css.ts +8 -0
- package/src/theme/v0/font.ts +53 -0
- package/src/theme/v0/index.ts +10 -0
- package/src/theme/v0/theme.ts +72 -0
- package/src/theme/v2/avatar.ts +14 -0
- package/src/theme/v2/color/_constants.ts +45 -0
- package/src/theme/v2/color/_helpers.ts +24 -0
- package/src/theme/v2/color/_system.ts +40 -0
- package/src/theme/v2/color/badge.ts +16 -0
- package/src/theme/v2/color/color.ts +34 -0
- package/src/theme/v2/index.ts +4 -0
- package/src/theme/v2/input.ts +33 -0
- package/src/theme/v2/theme.ts +49 -0
- package/src/theme/v3/buildTheme_v3.test.ts +40 -0
- package/src/theme/v3/buildTheme_v3.ts +29 -0
- package/src/theme/v3/color/buildColor_v3.ts +198 -0
- package/src/theme/v3/color/card.ts +121 -0
- package/src/theme/v3/color/color.ts +98 -0
- package/src/theme/v3/color/element.ts +19 -0
- package/src/theme/v3/color/index.ts +7 -0
- package/src/theme/v3/color/parseColor.test.ts +79 -0
- package/src/theme/v3/color/parseColor.ts +167 -0
- package/src/theme/v3/color/renderColor.test.ts +19 -0
- package/src/theme/v3/color/renderColor.ts +33 -0
- package/src/theme/v3/color/token.ts +17 -0
- package/src/theme/v3/color/tokens.ts +5 -0
- package/src/theme/v3/defaultTokens.ts +201 -0
- package/src/theme/v3/index.ts +6 -0
- package/src/theme/v3/merge.ts +22 -0
- package/src/theme/v3/resolveTokens.ts +204 -0
- package/src/theme/v3/tokens.ts +16 -0
- package/src/theme/v3/types.ts +45 -0
- package/src/theme/versioning/getTheme_v2.ts +2 -1
- package/src/theme/versioning/index.ts +0 -4
- package/src/theme/versioning/is_v0.ts +2 -1
- package/src/theme/versioning/is_v2.ts +2 -1
- package/src/theme/versioning/themeColor_v0_v2.ts +33 -5
- package/src/theme/versioning/themeColor_v2_v2_9.ts +49 -0
- package/src/theme/versioning/themeColor_v3_v2.ts +206 -0
- package/src/theme/versioning/v0_v2.ts +6 -1
- package/src/theme/versioning/v2_v0.ts +6 -6
- package/src/theme/versioning/v3_v2.ts +108 -0
- package/src/ui/RootClassNames.tsx +41 -0
- package/src/ui/StyleTags.tsx +24 -0
- package/src/ui/_compat/helpers.ts +72 -0
- package/src/ui/_compat/index.ts +5 -0
- package/src/ui/_compat/studioTheme.ts +7 -0
- package/src/ui/_compat/styles/_responsive.ts +19 -0
- package/src/ui/_compat/styles/index.ts +1 -0
- package/src/ui/_compat/theme/index.ts +5 -0
- package/src/ui/_compat/theme/theme.test.tsx +73 -0
- package/src/ui/_compat/theme/themeColorProvider.tsx +30 -0
- package/src/ui/_compat/theme/themeContext.ts +10 -0
- package/src/ui/_compat/theme/themeProvider.tsx +74 -0
- package/src/ui/_compat/theme/useRootTheme.ts +17 -0
- package/src/ui/_compat/theme/useTheme.ts +16 -0
- package/src/ui/_compat/types.ts +191 -0
- package/src/ui/components/autocomplete/__mocks__/apiStore.ts +49 -0
- package/src/ui/components/autocomplete/__workshop__/async.tsx +156 -0
- package/src/ui/components/autocomplete/__workshop__/constrainedHeight.tsx +131 -0
- package/src/ui/components/autocomplete/__workshop__/custom.tsx +90 -0
- package/src/ui/components/autocomplete/__workshop__/example.tsx +80 -0
- package/src/ui/components/autocomplete/__workshop__/fullscreen.tsx +293 -0
- package/src/ui/components/autocomplete/autocomplete.tsx +722 -0
- package/src/ui/components/autocomplete/autocompleteOption.tsx +45 -0
- package/src/ui/components/autocomplete/types.ts +108 -0
- package/src/ui/components/breadcrumbs/__workshop__/example.tsx +62 -0
- package/src/ui/components/breadcrumbs/breadcrumbs.tsx +127 -0
- package/src/ui/components/dialog/__workshop__/activate.tsx +134 -0
- package/src/ui/components/dialog/__workshop__/nested.tsx +72 -0
- package/src/ui/components/dialog/__workshop__/onScroll.tsx +39 -0
- package/src/ui/components/dialog/__workshop__/panes.tsx +82 -0
- package/src/ui/components/dialog/__workshop__/position.tsx +30 -0
- package/src/ui/components/dialog/__workshop__/props.tsx +77 -0
- package/src/ui/components/dialog/__workshop__/wrapped.tsx +76 -0
- package/src/ui/components/dialog/dialog.tsx +432 -0
- package/src/ui/components/dialog/dialogProvider.tsx +35 -0
- package/src/ui/components/dialog/useDialog.ts +11 -0
- package/src/ui/components/hotkeys/hotkeys.tsx +54 -0
- package/src/ui/components/menu/__workshop__/asComponent.tsx +45 -0
- package/src/ui/components/menu/__workshop__/avatarMenu.tsx +51 -0
- package/src/ui/components/menu/__workshop__/constrainedInBoundary.tsx +134 -0
- package/src/ui/components/menu/__workshop__/customSelectedState.tsx +39 -0
- package/src/ui/components/menu/__workshop__/menuButton.tsx +80 -0
- package/src/ui/components/menu/__workshop__/shouldFocus.tsx +47 -0
- package/src/ui/components/menu/__workshop__/tones.tsx +25 -0
- package/src/ui/components/menu/menu.test.tsx +128 -0
- package/src/ui/components/menu/menu.tsx +200 -0
- package/src/ui/components/menu/menuButton.tsx +275 -0
- package/src/ui/components/menu/menuContext.ts +31 -0
- package/src/ui/components/menu/menuDivider.tsx +22 -0
- package/src/ui/components/menu/menuGroup.tsx +228 -0
- package/src/ui/components/menu/menuItem.tsx +180 -0
- package/src/ui/components/menu/useMenu.ts +21 -0
- package/src/ui/components/menu/useMenuController.ts +241 -0
- package/src/ui/components/skeleton/__workshop__/delay.tsx +70 -0
- package/src/ui/components/skeleton/__workshop__/skeleton.tsx +64 -0
- package/src/ui/components/skeleton/skeleton.tsx +53 -0
- package/src/ui/components/skeleton/textSkeleton.tsx +132 -0
- package/src/ui/components/tab/tab.tsx +105 -0
- package/src/ui/components/tab/tabList.tsx +74 -0
- package/src/ui/components/tab/tabPanel.tsx +40 -0
- package/src/ui/components/toast/__workshop__/hook.tsx +71 -0
- package/src/ui/components/toast/__workshop__/toast.tsx +26 -0
- package/src/ui/components/toast/toast.test.tsx +101 -0
- package/src/ui/components/toast/toast.tsx +211 -0
- package/src/ui/components/toast/toastLayer.tsx +38 -0
- package/src/ui/components/toast/toastProvider.tsx +113 -0
- package/src/ui/components/toast/toastState.ts +6 -0
- package/src/ui/components/toast/types.ts +28 -0
- package/src/ui/components/toast/useToast.ts +25 -0
- package/src/ui/components/tree/__workshop__/basic.tsx +105 -0
- package/src/ui/components/tree/__workshop__/tabFromElement.tsx +84 -0
- package/src/ui/components/tree/tree.tsx +244 -0
- package/src/ui/components/tree/treeGroup.tsx +30 -0
- package/src/ui/components/tree/treeItem.tsx +220 -0
- package/src/ui/components/tree/useTree.ts +17 -0
- package/src/ui/constants.ts +85 -0
- package/src/ui/helpers/focus.ts +100 -0
- package/src/ui/helpers/index.ts +5 -0
- package/src/ui/helpers/props.ts +10 -0
- package/src/ui/hooks/useArrayProp.ts +29 -0
- package/src/ui/hooks/useClickOutside.test.tsx +482 -0
- package/src/ui/hooks/useClickOutside.ts +117 -0
- package/src/ui/hooks/useClickOutsideEvent.test.tsx +115 -0
- package/src/ui/hooks/useClickOutsideEvent.ts +73 -0
- package/src/ui/hooks/useDelayed.test.ts +68 -0
- package/src/ui/hooks/useDelayedState.ts +28 -0
- package/src/ui/hooks/useElementRect/__workshop__/example.tsx +32 -0
- package/src/ui/hooks/useElementSize.ts +19 -0
- package/src/ui/hooks/useForwardedRef.ts +19 -0
- package/src/ui/hooks/useGlobalKeyDown.ts +17 -0
- package/src/ui/hooks/useMatchMedia.ts +28 -0
- package/src/ui/hooks/useMediaIndex/useMediaIndex.test.tsx +36 -0
- package/src/ui/hooks/useMediaIndex/useMediaIndex.ts +102 -0
- package/src/ui/hooks/usePrefersDark.hydration.test.tsx +56 -0
- package/src/ui/hooks/usePrefersDark.test.tsx +19 -0
- package/src/ui/hooks/usePrefersDark.ts +16 -0
- package/src/ui/hooks/usePrefersReducedMotion.hydration.test.tsx +56 -0
- package/src/ui/hooks/usePrefersReducedMotion.test.tsx +19 -0
- package/src/ui/hooks/usePrefersReducedMotion.ts +16 -0
- package/src/ui/index.ts +10 -0
- package/src/ui/lib/createGlobalScopedContext.ts +34 -0
- package/src/ui/lib/globalScope.ts +19 -0
- package/src/ui/primitives/_selectable/selectable.tsx +31 -0
- package/src/ui/primitives/avatar/__workshop__/asButton.tsx +14 -0
- package/src/ui/primitives/avatar/__workshop__/stack.tsx +25 -0
- package/src/ui/primitives/avatar/__workshop__/withinButton.tsx +63 -0
- package/src/ui/primitives/avatar/__workshop__/withinMenuItem.tsx +72 -0
- package/src/ui/primitives/avatar/avatar.tsx +158 -0
- package/src/ui/primitives/avatar/avatarCounter.tsx +62 -0
- package/src/ui/primitives/avatar/avatarStack.tsx +82 -0
- package/src/ui/primitives/avatar/types.ts +17 -0
- package/src/ui/primitives/badge/__workshop__/props.tsx +30 -0
- package/src/ui/primitives/badge/__workshop__/tones.tsx +21 -0
- package/src/ui/primitives/badge/badge.test.tsx +16 -0
- package/src/ui/primitives/badge/badge.tsx +64 -0
- package/src/ui/primitives/box/__workshop__/props.tsx +20 -0
- package/src/ui/primitives/box/box.tsx +162 -0
- package/src/ui/primitives/button/__workshop__/custom.tsx +50 -0
- package/src/ui/primitives/button/__workshop__/disabled.tsx +74 -0
- package/src/ui/primitives/button/__workshop__/props.tsx +58 -0
- package/src/ui/primitives/button/__workshop__/stacked.tsx +59 -0
- package/src/ui/primitives/button/button.test.tsx +44 -0
- package/src/ui/primitives/button/button.tsx +206 -0
- package/src/ui/primitives/card/__workshop__/allTones.tsx +27 -0
- package/src/ui/primitives/card/__workshop__/asButton.tsx +107 -0
- package/src/ui/primitives/card/__workshop__/asComponent.tsx +27 -0
- package/src/ui/primitives/card/__workshop__/checkered.tsx +26 -0
- package/src/ui/primitives/card/__workshop__/interactive.tsx +30 -0
- package/src/ui/primitives/card/__workshop__/listNavigation.tsx +80 -0
- package/src/ui/primitives/card/__workshop__/props.tsx +55 -0
- package/src/ui/primitives/card/__workshop__/selected.tsx +93 -0
- package/src/ui/primitives/card/card.tsx +118 -0
- package/src/ui/primitives/card/cardContext.ts +10 -0
- package/src/ui/primitives/card/cardProvider.tsx +19 -0
- package/src/ui/primitives/card/index.ts +4 -0
- package/src/ui/primitives/card/types.ts +27 -0
- package/src/ui/primitives/card/useCard.ts +7 -0
- package/src/ui/primitives/checkbox/__workshop__/tones.tsx +28 -0
- package/src/ui/primitives/checkbox/checkbox.tsx +74 -0
- package/src/ui/primitives/code/__workshop__/props.tsx +21 -0
- package/src/ui/primitives/code/code.tsx +49 -0
- package/src/ui/primitives/code/refractor.tsx +20 -0
- package/src/ui/primitives/container/__workshop__/example.tsx +20 -0
- package/src/ui/primitives/container/container.tsx +35 -0
- package/src/ui/primitives/flex/__workshop__/example.tsx +34 -0
- package/src/ui/primitives/flex/__workshop__/gap.tsx +25 -0
- package/src/ui/primitives/flex/flex.tsx +29 -0
- package/src/ui/primitives/grid/__workshop__/responsive.tsx +54 -0
- package/src/ui/primitives/grid/grid.tsx +30 -0
- package/src/ui/primitives/heading/__workshop__/opticalAlignment.tsx +54 -0
- package/src/ui/primitives/heading/__workshop__/plain.tsx +32 -0
- package/src/ui/primitives/heading/heading.tsx +62 -0
- package/src/ui/primitives/inline/__workshop__/plain.tsx +27 -0
- package/src/ui/primitives/inline/inline.tsx +50 -0
- package/src/ui/primitives/kbd/kbd.tsx +55 -0
- package/src/ui/primitives/label/__workshop__/opticalAlignment.tsx +54 -0
- package/src/ui/primitives/label/__workshop__/plain.tsx +37 -0
- package/src/ui/primitives/label/label.tsx +67 -0
- package/src/ui/primitives/popover/__workshop__/AlignedStory.tsx +77 -0
- package/src/ui/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +32 -0
- package/src/ui/primitives/popover/__workshop__/OpenOnMountStory.tsx +11 -0
- package/src/ui/primitives/popover/__workshop__/PlainStory.tsx +71 -0
- package/src/ui/primitives/popover/__workshop__/SidePanelStory.tsx +93 -0
- package/src/ui/primitives/popover/__workshop__/TestStory.tsx +98 -0
- package/src/ui/primitives/popover/floating-ui/size.ts +83 -0
- package/src/ui/primitives/popover/helpers.ts +32 -0
- package/src/ui/primitives/popover/popover.tsx +440 -0
- package/src/ui/primitives/popover/popoverCard.tsx +162 -0
- package/src/ui/primitives/radio/__workshop__/plain.tsx +28 -0
- package/src/ui/primitives/radio/radio.tsx +49 -0
- package/src/ui/primitives/select/__workshop__/plain.tsx +30 -0
- package/src/ui/primitives/select/__workshop__/readOnly.tsx +23 -0
- package/src/ui/primitives/select/select.tsx +85 -0
- package/src/ui/primitives/spinner/__workshop__/Props.tsx +16 -0
- package/src/ui/primitives/spinner/spinner.tsx +33 -0
- package/src/ui/primitives/stack/__workshop__/plain.tsx +32 -0
- package/src/ui/primitives/stack/index.ts +1 -0
- package/src/ui/primitives/stack/stack.tsx +45 -0
- package/src/ui/primitives/switch/switch.tsx +75 -0
- package/src/ui/primitives/text/__workshop__/colored.tsx +23 -0
- package/src/ui/primitives/text/__workshop__/example.tsx +39 -0
- package/src/ui/primitives/text/__workshop__/opticalAlignment.tsx +48 -0
- package/src/ui/primitives/text/text.tsx +64 -0
- package/src/ui/primitives/textArea/__workshop__/plain.tsx +50 -0
- package/src/ui/primitives/textArea/textArea.tsx +71 -0
- package/src/ui/primitives/textInput/__workshop__/index.ts +44 -0
- package/src/ui/primitives/textInput/__workshop__/plain.tsx +104 -0
- package/src/ui/primitives/textInput/__workshop__/readOnly.tsx +9 -0
- package/src/ui/primitives/textInput/__workshop__/tones.tsx +277 -0
- package/src/ui/primitives/textInput/__workshop__/typed.tsx +23 -0
- package/src/ui/primitives/textInput/textInput.tsx +286 -0
- package/src/ui/primitives/tooltip/__workshop__/customPortal.tsx +102 -0
- package/src/ui/primitives/tooltip/__workshop__/overflowingBoundary.tsx +74 -0
- package/src/ui/primitives/tooltip/__workshop__/props.tsx +111 -0
- package/src/ui/primitives/tooltip/__workshop__/resizableBoundary.tsx +86 -0
- package/src/ui/primitives/tooltip/tooltip.test.tsx +453 -0
- package/src/ui/primitives/tooltip/tooltip.tsx +473 -0
- package/src/ui/primitives/tooltip/tooltipCard.tsx +115 -0
- package/src/ui/primitives/tooltip/tooltipDelayGroup/index.ts +4 -0
- package/src/ui/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +55 -0
- package/src/ui/primitives/tooltip/tooltipDelayGroup/types.ts +10 -0
- package/src/ui/primitives/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +13 -0
- package/src/ui/primitives/types.ts +166 -0
- package/src/ui/types/box.ts +22 -0
- package/src/ui/types/button.ts +24 -0
- package/src/ui/types/flex.ts +27 -0
- package/src/ui/types/grid.ts +17 -0
- package/src/ui/types/gridItem.ts +32 -0
- package/src/ui/types/index.ts +15 -0
- package/src/ui/types/props.ts +18 -0
- package/src/ui/types/selectable.ts +7 -0
- package/src/ui/utils/arrow/arrow.tsx +51 -0
- package/src/ui/utils/boundaryElement/boundaryElement.test.tsx +100 -0
- package/src/ui/utils/boundaryElement/boundaryElementProvider.tsx +24 -0
- package/src/ui/utils/boundaryElement/index.ts +3 -0
- package/src/ui/utils/boundaryElement/useBoundaryElement.ts +26 -0
- package/src/ui/utils/conditionalWrapper/conditionalWrapper.tsx +23 -0
- package/src/ui/utils/elementQuery/elementQuery.tsx +55 -0
- package/src/ui/utils/errorBoundary.tsx +48 -0
- package/src/ui/utils/getElementRef.ts +26 -0
- package/src/ui/utils/layer/__workshop__/multipleRoots.tsx +49 -0
- package/src/ui/utils/layer/__workshop__/nested.tsx +98 -0
- package/src/ui/utils/layer/__workshop__/responsiveZOffset.tsx +13 -0
- package/src/ui/utils/layer/index.ts +4 -0
- package/src/ui/utils/layer/layer.test.tsx +108 -0
- package/src/ui/utils/layer/layer.tsx +112 -0
- package/src/ui/utils/layer/layerProvider.tsx +110 -0
- package/src/ui/utils/layer/useLayer.ts +26 -0
- package/src/ui/utils/portal/portal.test.tsx +103 -0
- package/src/ui/utils/portal/portal.ts +46 -0
- package/src/ui/utils/portal/portalProvider.tsx +79 -0
- package/src/ui/utils/portal/usePortal.ts +25 -0
- package/src/ui/utils/spanWithTextOverflow.tsx +10 -0
- package/src/ui/utils/srOnly/index.ts +1 -0
- package/src/ui/utils/srOnly/srOnly.tsx +35 -0
- package/src/ui/utils/virtualList/virtualList.tsx +194 -0
- package/dist/css.esm.js +0 -3794
- package/dist/css.esm.js.map +0 -1
- package/dist/index.esm.js +0 -5431
- package/dist/index.esm.js.map +0 -1
- package/dist/theme.esm.js +0 -4201
- package/dist/theme.esm.js.map +0 -1
- package/src/core/__workshop__/constants.ts +0 -305
- package/src/core/__workshop__/fontsPlugin.tsx +0 -76
- package/src/core/_compat/index.ts +0 -2
- package/src/core/_compat/styles/border/borderStyle.ts +0 -61
- package/src/core/_compat/styles/border/index.ts +0 -2
- package/src/core/_compat/styles/border/types.ts +0 -11
- package/src/core/_compat/styles/box/boxStyle.ts +0 -74
- package/src/core/_compat/styles/box/index.ts +0 -2
- package/src/core/_compat/styles/box/types.ts +0 -11
- package/src/core/_compat/styles/card/_cardColorStyle.ts +0 -101
- package/src/core/_compat/styles/card/index.ts +0 -1
- package/src/core/_compat/styles/flex/flexItemStyle.ts +0 -26
- package/src/core/_compat/styles/flex/flexStyle.ts +0 -69
- package/src/core/_compat/styles/flex/index.ts +0 -3
- package/src/core/_compat/styles/flex/types.ts +0 -24
- package/src/core/_compat/styles/focusRing/index.ts +0 -25
- package/src/core/_compat/styles/font/codeFontStyle.ts +0 -12
- package/src/core/_compat/styles/font/headingFontStyle.ts +0 -12
- package/src/core/_compat/styles/font/index.ts +0 -6
- package/src/core/_compat/styles/font/labelFontStyle.ts +0 -12
- package/src/core/_compat/styles/font/responsiveFont.ts +0 -101
- package/src/core/_compat/styles/font/textAlignStyle.ts +0 -18
- package/src/core/_compat/styles/font/textFontStyle.ts +0 -12
- package/src/core/_compat/styles/font/types.ts +0 -34
- package/src/core/_compat/styles/grid/gridItemStyle.ts +0 -81
- package/src/core/_compat/styles/grid/gridStyle.ts +0 -97
- package/src/core/_compat/styles/grid/index.ts +0 -3
- package/src/core/_compat/styles/grid/types.ts +0 -37
- package/src/core/_compat/styles/helpers.ts +0 -81
- package/src/core/_compat/styles/index.ts +0 -5
- package/src/core/_compat/styles/input/index.ts +0 -2
- package/src/core/_compat/styles/input/responsiveInputPaddingStyle.ts +0 -77
- package/src/core/_compat/styles/input/textInputStyle.ts +0 -263
- package/src/core/_compat/styles/internal.ts +0 -12
- package/src/core/_compat/styles/margin/index.ts +0 -2
- package/src/core/_compat/styles/margin/marginStyle.ts +0 -20
- package/src/core/_compat/styles/margin/marginsStyle.test.ts +0 -32
- package/src/core/_compat/styles/margin/types.ts +0 -9
- package/src/core/_compat/styles/padding/index.ts +0 -2
- package/src/core/_compat/styles/padding/paddingStyle.test.ts +0 -32
- package/src/core/_compat/styles/padding/paddingStyle.ts +0 -20
- package/src/core/_compat/styles/padding/types.ts +0 -12
- package/src/core/_compat/styles/radius/index.ts +0 -2
- package/src/core/_compat/styles/radius/radiusStyle.ts +0 -22
- package/src/core/_compat/styles/radius/types.ts +0 -8
- package/src/core/_compat/styles/shadow/index.ts +0 -2
- package/src/core/_compat/styles/shadow/shadowStyle.ts +0 -29
- package/src/core/_compat/styles/shadow/types.ts +0 -6
- package/src/core/_compat/styles/types.ts +0 -8
- package/src/core/_compat/types.ts +0 -264
- package/src/core/components/autocomplete/__mocks__/apiStore.ts +0 -49
- package/src/core/components/autocomplete/__workshop__/.eslintrc +0 -5
- package/src/core/components/autocomplete/__workshop__/async.tsx +0 -155
- package/src/core/components/autocomplete/__workshop__/constrainedHeight.tsx +0 -136
- package/src/core/components/autocomplete/__workshop__/custom.tsx +0 -89
- package/src/core/components/autocomplete/__workshop__/example.tsx +0 -79
- package/src/core/components/autocomplete/__workshop__/fullscreen.tsx +0 -293
- package/src/core/components/autocomplete/autocomplete.tsx +0 -735
- package/src/core/components/autocomplete/autocompleteOption.tsx +0 -44
- package/src/core/components/autocomplete/types.ts +0 -108
- package/src/core/components/breadcrumbs/__workshop__/.eslintrc +0 -5
- package/src/core/components/breadcrumbs/__workshop__/example.tsx +0 -55
- package/src/core/components/breadcrumbs/breadcrumbs.tsx +0 -111
- package/src/core/components/dialog/__workshop__/.eslintrc +0 -5
- package/src/core/components/dialog/__workshop__/activate.tsx +0 -133
- package/src/core/components/dialog/__workshop__/nested.tsx +0 -72
- package/src/core/components/dialog/__workshop__/onScroll.tsx +0 -39
- package/src/core/components/dialog/__workshop__/panes.tsx +0 -81
- package/src/core/components/dialog/__workshop__/position.tsx +0 -29
- package/src/core/components/dialog/__workshop__/props.tsx +0 -76
- package/src/core/components/dialog/__workshop__/wrapped.tsx +0 -78
- package/src/core/components/dialog/dialog.tsx +0 -410
- package/src/core/components/dialog/dialogProvider.tsx +0 -34
- package/src/core/components/dialog/useDialog.ts +0 -10
- package/src/core/components/hotkeys/__workshop__/.eslintrc +0 -5
- package/src/core/components/hotkeys/hotkeys.tsx +0 -50
- package/src/core/components/menu/__workshop__/.eslintrc +0 -5
- package/src/core/components/menu/__workshop__/asComponent.tsx +0 -44
- package/src/core/components/menu/__workshop__/avatarMenu.tsx +0 -50
- package/src/core/components/menu/__workshop__/constrainedInBoundary.tsx +0 -133
- package/src/core/components/menu/__workshop__/customSelectedState.tsx +0 -38
- package/src/core/components/menu/__workshop__/menuButton.tsx +0 -79
- package/src/core/components/menu/__workshop__/shouldFocus.tsx +0 -46
- package/src/core/components/menu/__workshop__/tones.tsx +0 -25
- package/src/core/components/menu/menu.test.tsx +0 -129
- package/src/core/components/menu/menu.tsx +0 -173
- package/src/core/components/menu/menuButton.tsx +0 -289
- package/src/core/components/menu/menuContext.ts +0 -29
- package/src/core/components/menu/menuDivider.tsx +0 -16
- package/src/core/components/menu/menuGroup.tsx +0 -204
- package/src/core/components/menu/menuItem.tsx +0 -187
- package/src/core/components/menu/useMenu.ts +0 -20
- package/src/core/components/menu/useMenuController.ts +0 -230
- package/src/core/components/skeleton/__workshop__/.eslintrc +0 -5
- package/src/core/components/skeleton/__workshop__/delay.tsx +0 -69
- package/src/core/components/skeleton/__workshop__/skeleton.tsx +0 -63
- package/src/core/components/skeleton/skeleton.tsx +0 -52
- package/src/core/components/skeleton/textSkeleton.tsx +0 -146
- package/src/core/components/tab/__workshop__/.eslintrc +0 -5
- package/src/core/components/tab/tab.tsx +0 -98
- package/src/core/components/tab/tabList.tsx +0 -61
- package/src/core/components/tab/tabPanel.tsx +0 -39
- package/src/core/components/toast/__workshop__/.eslintrc +0 -5
- package/src/core/components/toast/__workshop__/hook.tsx +0 -71
- package/src/core/components/toast/__workshop__/toast.tsx +0 -25
- package/src/core/components/toast/toast.test.tsx +0 -102
- package/src/core/components/toast/toast.tsx +0 -122
- package/src/core/components/toast/toastProvider.tsx +0 -193
- package/src/core/components/toast/types.ts +0 -20
- package/src/core/components/toast/useToast.ts +0 -24
- package/src/core/components/tree/__workshop__/.eslintrc +0 -5
- package/src/core/components/tree/__workshop__/basic.tsx +0 -104
- package/src/core/components/tree/__workshop__/tabFromElement.tsx +0 -83
- package/src/core/components/tree/tree.tsx +0 -241
- package/src/core/components/tree/treeGroup.tsx +0 -32
- package/src/core/components/tree/treeItem.tsx +0 -213
- package/src/core/components/tree/useTree.ts +0 -16
- package/src/core/constants.ts +0 -57
- package/src/core/helpers/focus.ts +0 -100
- package/src/core/helpers/index.ts +0 -4
- package/src/core/hooks/useArrayProp.ts +0 -25
- package/src/core/hooks/useClickOutside.test.tsx +0 -483
- package/src/core/hooks/useClickOutside.ts +0 -116
- package/src/core/hooks/useClickOutsideEvent.test.tsx +0 -116
- package/src/core/hooks/useClickOutsideEvent.ts +0 -72
- package/src/core/hooks/useDelayed.test.ts +0 -67
- package/src/core/hooks/useDelayedState.ts +0 -29
- package/src/core/hooks/useElementRect/__workshop__/.eslintrc +0 -5
- package/src/core/hooks/useElementRect/__workshop__/example.tsx +0 -31
- package/src/core/hooks/useElementSize.ts +0 -18
- package/src/core/hooks/useForwardedRef.ts +0 -19
- package/src/core/hooks/useGlobalKeyDown.ts +0 -12
- package/src/core/hooks/useMatchMedia.ts +0 -46
- package/src/core/hooks/useMediaIndex/__workshop__/.eslintrc +0 -5
- package/src/core/hooks/useMediaIndex/useMediaIndex.test.tsx +0 -35
- package/src/core/hooks/useMediaIndex/useMediaIndex.ts +0 -101
- package/src/core/hooks/usePrefersDark.hydration.test.tsx +0 -57
- package/src/core/hooks/usePrefersDark.test.tsx +0 -18
- package/src/core/hooks/usePrefersDark.ts +0 -16
- package/src/core/hooks/usePrefersReducedMotion.hydration.test.tsx +0 -57
- package/src/core/hooks/usePrefersReducedMotion.test.tsx +0 -18
- package/src/core/hooks/usePrefersReducedMotion.ts +0 -16
- package/src/core/index.ts +0 -10
- package/src/core/lib/createGlobalScopedContext.ts +0 -33
- package/src/core/lib/globalScope.ts +0 -20
- package/src/core/lib/styled/elements.ts +0 -135
- package/src/core/lib/styled/index.ts +0 -2
- package/src/core/lib/styled/members.ts +0 -15
- package/src/core/lib/styled/styled.ts +0 -79
- package/src/core/primitives/_selectable/selectable.tsx +0 -27
- package/src/core/primitives/avatar/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/avatar/__workshop__/asButton.tsx +0 -13
- package/src/core/primitives/avatar/__workshop__/stack.tsx +0 -24
- package/src/core/primitives/avatar/__workshop__/withinButton.tsx +0 -62
- package/src/core/primitives/avatar/__workshop__/withinMenuItem.tsx +0 -69
- package/src/core/primitives/avatar/avatar.tsx +0 -196
- package/src/core/primitives/avatar/avatarCounter.tsx +0 -93
- package/src/core/primitives/avatar/avatarStack.tsx +0 -100
- package/src/core/primitives/avatar/styles.ts +0 -166
- package/src/core/primitives/avatar/types.ts +0 -16
- package/src/core/primitives/badge/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/badge/__workshop__/props.tsx +0 -29
- package/src/core/primitives/badge/__workshop__/tones.tsx +0 -20
- package/src/core/primitives/badge/badge.test.tsx +0 -15
- package/src/core/primitives/badge/badge.tsx +0 -59
- package/src/core/primitives/badge/styles.ts +0 -19
- package/src/core/primitives/box/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/box/__workshop__/props.tsx +0 -19
- package/src/core/primitives/box/box.tsx +0 -121
- package/src/core/primitives/button/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/button/__workshop__/custom.tsx +0 -47
- package/src/core/primitives/button/__workshop__/disabled.tsx +0 -73
- package/src/core/primitives/button/__workshop__/props.tsx +0 -53
- package/src/core/primitives/button/__workshop__/stacked.tsx +0 -58
- package/src/core/primitives/button/button.test.tsx +0 -43
- package/src/core/primitives/button/button.tsx +0 -181
- package/src/core/primitives/button/styles.ts +0 -116
- package/src/core/primitives/card/RootCardContext.ts +0 -3
- package/src/core/primitives/card/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/card/__workshop__/allTones.tsx +0 -27
- package/src/core/primitives/card/__workshop__/asButton.tsx +0 -88
- package/src/core/primitives/card/__workshop__/asComponent.tsx +0 -27
- package/src/core/primitives/card/__workshop__/checkered.tsx +0 -16
- package/src/core/primitives/card/__workshop__/interactive.tsx +0 -23
- package/src/core/primitives/card/__workshop__/listNavigation.tsx +0 -77
- package/src/core/primitives/card/__workshop__/props.tsx +0 -49
- package/src/core/primitives/card/__workshop__/selected.tsx +0 -91
- package/src/core/primitives/card/card.tsx +0 -110
- package/src/core/primitives/card/index.ts +0 -2
- package/src/core/primitives/card/types.ts +0 -11
- package/src/core/primitives/checkbox/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/checkbox/__workshop__/tones.tsx +0 -22
- package/src/core/primitives/checkbox/checkbox.tsx +0 -70
- package/src/core/primitives/code/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/code/__workshop__/props.tsx +0 -20
- package/src/core/primitives/code/code.tsx +0 -49
- package/src/core/primitives/code/styles.ts +0 -77
- package/src/core/primitives/container/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/container/__workshop__/example.tsx +0 -19
- package/src/core/primitives/container/container.tsx +0 -32
- package/src/core/primitives/container/styles.ts +0 -22
- package/src/core/primitives/flex/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/flex/__workshop__/example.tsx +0 -33
- package/src/core/primitives/flex/__workshop__/gap.tsx +0 -25
- package/src/core/primitives/flex/flex.tsx +0 -32
- package/src/core/primitives/grid/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/grid/__workshop__/responsive.tsx +0 -54
- package/src/core/primitives/grid/grid.tsx +0 -34
- package/src/core/primitives/heading/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/heading/__workshop__/opticalAlignment.tsx +0 -66
- package/src/core/primitives/heading/__workshop__/plain.tsx +0 -31
- package/src/core/primitives/heading/heading.tsx +0 -82
- package/src/core/primitives/heading/styles.ts +0 -63
- package/src/core/primitives/heading/types.ts +0 -7
- package/src/core/primitives/inline/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/inline/__workshop__/plain.tsx +0 -26
- package/src/core/primitives/inline/inline.tsx +0 -47
- package/src/core/primitives/inline/styles.ts +0 -31
- package/src/core/primitives/kbd/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/kbd/kbd.tsx +0 -53
- package/src/core/primitives/label/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/label/__workshop__/opticalAlignment.tsx +0 -48
- package/src/core/primitives/label/__workshop__/plain.tsx +0 -23
- package/src/core/primitives/label/label.tsx +0 -91
- package/src/core/primitives/label/styles.ts +0 -44
- package/src/core/primitives/popover/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/popover/__workshop__/AlignedStory.tsx +0 -76
- package/src/core/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +0 -31
- package/src/core/primitives/popover/__workshop__/OpenOnMountStory.tsx +0 -11
- package/src/core/primitives/popover/__workshop__/PlainStory.tsx +0 -70
- package/src/core/primitives/popover/__workshop__/SidePanelStory.tsx +0 -86
- package/src/core/primitives/popover/__workshop__/TestStory.tsx +0 -97
- package/src/core/primitives/popover/floating-ui/size.ts +0 -82
- package/src/core/primitives/popover/helpers.ts +0 -31
- package/src/core/primitives/popover/popover.tsx +0 -476
- package/src/core/primitives/popover/popoverCard.tsx +0 -153
- package/src/core/primitives/radio/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/radio/__workshop__/plain.tsx +0 -28
- package/src/core/primitives/radio/radio.tsx +0 -50
- package/src/core/primitives/radio/styles.ts +0 -116
- package/src/core/primitives/select/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/select/__workshop__/plain.tsx +0 -27
- package/src/core/primitives/select/__workshop__/readOnly.tsx +0 -23
- package/src/core/primitives/select/select.tsx +0 -86
- package/src/core/primitives/select/styles.ts +0 -166
- package/src/core/primitives/spinner/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/spinner/__workshop__/Props.tsx +0 -15
- package/src/core/primitives/spinner/spinner.tsx +0 -31
- package/src/core/primitives/stack/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/stack/__workshop__/plain.tsx +0 -31
- package/src/core/primitives/stack/stack.tsx +0 -41
- package/src/core/primitives/stack/styles.ts +0 -31
- package/src/core/primitives/switch/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/switch/styles.ts +0 -172
- package/src/core/primitives/switch/switch.tsx +0 -66
- package/src/core/primitives/text/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/text/__workshop__/colored.tsx +0 -29
- package/src/core/primitives/text/__workshop__/example.tsx +0 -38
- package/src/core/primitives/text/__workshop__/opticalAlignment.tsx +0 -58
- package/src/core/primitives/text/styles.ts +0 -73
- package/src/core/primitives/text/text.tsx +0 -82
- package/src/core/primitives/textArea/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/textArea/__workshop__/plain.tsx +0 -49
- package/src/core/primitives/textArea/textArea.tsx +0 -118
- package/src/core/primitives/textInput/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/textInput/__workshop__/index.ts +0 -49
- package/src/core/primitives/textInput/__workshop__/multipleTones.tsx +0 -20
- package/src/core/primitives/textInput/__workshop__/plain.tsx +0 -99
- package/src/core/primitives/textInput/__workshop__/readOnly.tsx +0 -5
- package/src/core/primitives/textInput/__workshop__/tones.tsx +0 -239
- package/src/core/primitives/textInput/__workshop__/typed.tsx +0 -22
- package/src/core/primitives/textInput/textInput.tsx +0 -373
- package/src/core/primitives/tooltip/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/tooltip/__workshop__/customPortal.tsx +0 -101
- package/src/core/primitives/tooltip/__workshop__/overflowingBoundary.tsx +0 -73
- package/src/core/primitives/tooltip/__workshop__/props.tsx +0 -106
- package/src/core/primitives/tooltip/__workshop__/resizableBoundary.tsx +0 -85
- package/src/core/primitives/tooltip/tooltip.test.tsx +0 -451
- package/src/core/primitives/tooltip/tooltip.tsx +0 -464
- package/src/core/primitives/tooltip/tooltipCard.tsx +0 -110
- package/src/core/primitives/tooltip/tooltipDelayGroup/index.ts +0 -4
- package/src/core/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +0 -57
- package/src/core/primitives/tooltip/tooltipDelayGroup/types.ts +0 -11
- package/src/core/primitives/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +0 -12
- package/src/core/primitives/types.ts +0 -166
- package/src/core/theme/__workshop__/.eslintrc +0 -5
- package/src/core/theme/__workshop__/build/Root.tsx +0 -367
- package/src/core/theme/__workshop__/build/helpers.ts +0 -46
- package/src/core/theme/__workshop__/build/story.tsx +0 -457
- package/src/core/theme/__workshop__/canvas.tsx +0 -350
- package/src/core/theme/__workshop__/color.tsx +0 -62
- package/src/core/theme/__workshop__/debug/story.tsx +0 -401
- package/src/core/theme/__workshop__/index.ts +0 -39
- package/src/core/theme/__workshop__/layer.tsx +0 -78
- package/src/core/theme/__workshop__/nestedProvider.tsx +0 -15
- package/src/core/theme/index.ts +0 -5
- package/src/core/theme/theme.test.tsx +0 -73
- package/src/core/theme/themeColorProvider.tsx +0 -28
- package/src/core/theme/themeContext.ts +0 -10
- package/src/core/theme/themeProvider.tsx +0 -63
- package/src/core/theme/useRootTheme.ts +0 -16
- package/src/core/theme/useTheme.ts +0 -16
- package/src/core/types/box.ts +0 -25
- package/src/core/types/button.ts +0 -22
- package/src/core/types/flex.ts +0 -31
- package/src/core/types/grid.ts +0 -19
- package/src/core/types/gridItem.ts +0 -37
- package/src/core/types/index.ts +0 -14
- package/src/core/types/selectable.ts +0 -6
- package/src/core/utils/arrow/arrow.tsx +0 -122
- package/src/core/utils/boundaryElement/__workshop__/.eslintrc +0 -5
- package/src/core/utils/boundaryElement/boundaryElement.test.tsx +0 -101
- package/src/core/utils/boundaryElement/boundaryElementProvider.tsx +0 -23
- package/src/core/utils/boundaryElement/index.ts +0 -3
- package/src/core/utils/boundaryElement/useBoundaryElement.ts +0 -25
- package/src/core/utils/conditionalWrapper/conditionalWrapper.tsx +0 -21
- package/src/core/utils/elementQuery/__workshop__/.eslintrc +0 -5
- package/src/core/utils/elementQuery/elementQuery.tsx +0 -53
- package/src/core/utils/errorBoundary.tsx +0 -47
- package/src/core/utils/layer/__workshop__/.eslintrc +0 -5
- package/src/core/utils/layer/__workshop__/multipleRoots.tsx +0 -48
- package/src/core/utils/layer/__workshop__/nested.tsx +0 -97
- package/src/core/utils/layer/__workshop__/responsiveZOffset.tsx +0 -12
- package/src/core/utils/layer/index.ts +0 -4
- package/src/core/utils/layer/layer.test.tsx +0 -109
- package/src/core/utils/layer/layer.tsx +0 -108
- package/src/core/utils/layer/layerProvider.tsx +0 -109
- package/src/core/utils/layer/useLayer.ts +0 -25
- package/src/core/utils/portal/__workshop__/.eslintrc +0 -5
- package/src/core/utils/portal/portal.test.tsx +0 -104
- package/src/core/utils/portal/portal.ts +0 -31
- package/src/core/utils/portal/portalProvider.tsx +0 -78
- package/src/core/utils/portal/usePortal.ts +0 -24
- package/src/core/utils/srOnly/srOnly.tsx +0 -36
- package/src/core/utils/virtualList/__workshop__/.eslintrc +0 -5
- package/src/core/utils/virtualList/virtualList.tsx +0 -170
- package/src/css/cli/buildCommand.ts +0 -36
- package/src/css/cli/index.ts +0 -38
- package/src/css/components/breadcrumbs/rules.ts +0 -25
- package/src/css/components/dialog/classes.ts +0 -29
- package/src/css/components/dialog/rules.ts +0 -75
- package/src/css/components/skeleton/rules.ts +0 -106
- package/src/css/components/toast/rules.ts +0 -68
- package/src/css/components/tree/rules.ts +0 -167
- package/src/css/primitives/badge/rules.ts +0 -25
- package/src/css/primitives/box/rules.ts +0 -25
- package/src/css/primitives/card/rules.ts +0 -241
- package/src/css/primitives/popover/rules.ts +0 -5
- package/src/css/primitives/selectable/__style.ts +0 -117
- package/src/css/primitives/selectable/rules.ts +0 -27
- package/src/css/primitives/selectable/selectable.ts +0 -9
- package/src/css/primitives/selectable/types.ts +0 -6
- package/src/css/primitives/spinner/rules.ts +0 -20
- package/src/css/primitives/token/rules.ts +0 -45
- package/src/css/rules.ts +0 -99
- package/src/css/styles/border/border.ts +0 -22
- package/src/css/styles/border/rules.ts +0 -24
- package/src/css/styles/display/rules.ts +0 -62
- package/src/css/styles/flex/flex.ts +0 -20
- package/src/css/styles/flex/rules.ts +0 -28
- package/src/css/styles/flexItem/flexItem.ts +0 -8
- package/src/css/styles/flexItem/rules.ts +0 -11
- package/src/css/styles/flexItem/types.ts +0 -11
- package/src/css/styles/font/font.ts +0 -17
- package/src/css/styles/font/rules.ts +0 -148
- package/src/css/styles/gap/gap.ts +0 -8
- package/src/css/styles/gap/rules.ts +0 -33
- package/src/css/styles/gap/types.ts +0 -9
- package/src/css/styles/grid/grid.ts +0 -13
- package/src/css/styles/grid/rules.ts +0 -146
- package/src/css/styles/grid/types.ts +0 -29
- package/src/css/styles/gridItem/gridItem.ts +0 -15
- package/src/css/styles/gridItem/rules.ts +0 -96
- package/src/css/styles/margin/margin.ts +0 -15
- package/src/css/styles/margin/rules.ts +0 -63
- package/src/css/styles/maxWidth/rules.ts +0 -36
- package/src/css/styles/maxWidth/types.ts +0 -6
- package/src/css/styles/outline/rules.ts +0 -7
- package/src/css/styles/overflow/overflow.ts +0 -11
- package/src/css/styles/overflow/rules.ts +0 -9
- package/src/css/styles/padding/padding.ts +0 -15
- package/src/css/styles/padding/rules.ts +0 -61
- package/src/css/styles/padding/types.ts +0 -12
- package/src/css/styles/pointerEvents/pointerEvents.ts +0 -6
- package/src/css/styles/pointerEvents/rules.ts +0 -11
- package/src/css/styles/position/position.ts +0 -7
- package/src/css/styles/position/rules.ts +0 -31
- package/src/css/styles/position/types.ts +0 -13
- package/src/css/styles/radius/radius.ts +0 -8
- package/src/css/styles/radius/rules.ts +0 -13
- package/src/css/styles/radius/types.ts +0 -7
- package/src/css/styles/shadow/rules.ts +0 -53
- package/src/css/styles/width/index.ts +0 -2
- package/src/css/styles/width/rules.ts +0 -7
- package/src/css/styles/width/types.ts +0 -8
- package/src/theme/system/_constants.ts +0 -25
- package/src/theme/system/_types.ts +0 -41
- package/src/theme/system/avatar.ts +0 -14
- package/src/theme/system/color/_constants.ts +0 -41
- package/src/theme/system/color/_helpers.ts +0 -23
- package/src/theme/system/color/_system.ts +0 -40
- package/src/theme/system/color/badge.ts +0 -20
- package/src/theme/system/color/color.ts +0 -34
- package/src/theme/system/css.ts +0 -9
- package/src/theme/system/font.ts +0 -52
- package/src/theme/system/index.ts +0 -14
- package/src/theme/system/input.ts +0 -33
- package/src/theme/system/theme.ts +0 -138
- package/src/theme/system/v0/color/_generic.ts +0 -35
- package/src/theme/system/v0/color/_system.ts +0 -13
- package/src/theme/system/v0/color/color.ts +0 -39
- package/src/theme/system/v0/color/index.ts +0 -11
- package/src/theme/system/v0/color/input.ts +0 -34
- package/src/theme/system/v0/color/spot.ts +0 -13
- package/src/theme/system/v0/index.ts +0 -3
- package/theme.js +0 -2
- /package/src/css/{styles → aspects}/border/index.ts +0 -0
- /package/src/css/{styles → aspects}/border/types.ts +0 -0
- /package/src/css/{styles → aspects}/flex/index.ts +0 -0
- /package/src/css/{styles → aspects}/flex/types.ts +0 -0
- /package/src/css/{styles → aspects}/flexItem/index.ts +0 -0
- /package/src/css/{styles → aspects}/font/index.ts +0 -0
- /package/src/css/{styles → aspects}/font/types.ts +0 -0
- /package/src/css/{styles → aspects}/gap/index.ts +0 -0
- /package/src/css/{styles → aspects}/grid/index.ts +0 -0
- /package/src/css/{styles → aspects}/gridItem/index.ts +0 -0
- /package/src/css/{styles → aspects}/gridItem/types.ts +0 -0
- /package/src/css/{styles → aspects}/height/rules.ts +0 -0
- /package/src/css/{styles → aspects}/margin/index.ts +0 -0
- /package/src/css/{styles → aspects}/margin/types.ts +0 -0
- /package/src/css/{styles → aspects}/maxWidth/index.ts +0 -0
- /package/src/css/{styles → aspects}/maxWidth/maxWidth.ts +0 -0
- /package/src/css/{styles → aspects}/overflow/index.ts +0 -0
- /package/src/css/{styles → aspects}/overflow/types.ts +0 -0
- /package/src/css/{styles → aspects}/padding/index.ts +0 -0
- /package/src/css/{styles → aspects}/pointerEvents/index.ts +0 -0
- /package/src/css/{styles → aspects}/pointerEvents/types.ts +0 -0
- /package/src/css/{styles → aspects}/position/index.ts +0 -0
- /package/src/css/{styles → aspects}/radius/index.ts +0 -0
- /package/src/css/{styles → aspects}/width/width.ts +0 -0
- /package/src/css/primitives/{selectable → _selectable}/index.ts +0 -0
- /package/src/{core → css}/primitives/stack/index.ts +0 -0
- /package/src/{core → css}/utils/srOnly/index.ts +0 -0
- /package/src/theme/{system/v0 → v0}/avatar.ts +0 -0
- /package/src/theme/{system/v0 → v0}/color/base.ts +0 -0
- /package/src/theme/{system/v0 → v0}/color/button.ts +0 -0
- /package/src/theme/{system/v0 → v0}/color/card.ts +0 -0
- /package/src/theme/{system/v0 → v0}/color/muted.ts +0 -0
- /package/src/theme/{system/v0 → v0}/color/selectable.ts +0 -0
- /package/src/theme/{system/v0 → v0}/color/solid.ts +0 -0
- /package/src/theme/{system → v0}/focusRing.ts +0 -0
- /package/src/theme/{system/v0 → v0}/input.ts +0 -0
- /package/src/theme/{system → v0}/layer.ts +0 -0
- /package/src/theme/{system → v0}/shadow.ts +0 -0
- /package/src/theme/{system → v0}/styles.ts +0 -0
- /package/src/theme/{system → v2}/color/avatar.ts +0 -0
- /package/src/theme/{system → v2}/color/button.ts +0 -0
- /package/src/theme/{system → v2}/color/index.ts +0 -0
- /package/src/theme/{system → v2}/color/input.ts +0 -0
- /package/src/theme/{system → v2}/color/kbd.ts +0 -0
- /package/src/theme/{system → v2}/color/selectable.ts +0 -0
- /package/src/theme/{system → v2}/color/shadow.ts +0 -0
- /package/src/theme/{system → v2}/color/state.ts +0 -0
- /package/src/theme/{system → v2}/color/syntax.ts +0 -0
- /package/src/{core → ui/_compat}/theme/types.ts +0 -0
- /package/src/{core/components/autocomplete/__fixtures__ → ui/components/autocomplete/__mocks__}/countries.ts +0 -0
- /package/src/{core → ui}/components/autocomplete/__workshop__/focusAndBlur.tsx +0 -0
- /package/src/{core → ui}/components/autocomplete/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/autocomplete/__workshop__/types.ts +0 -0
- /package/src/{core → ui}/components/autocomplete/autocompleteReducer.ts +0 -0
- /package/src/{core → ui}/components/autocomplete/constants.ts +0 -0
- /package/src/{core → ui}/components/autocomplete/index.ts +0 -0
- /package/src/{core → ui}/components/breadcrumbs/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/breadcrumbs/index.ts +0 -0
- /package/src/{core → ui}/components/dialog/__workshop__/autoFocus.tsx +0 -0
- /package/src/{core → ui}/components/dialog/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/dialog/__workshop__/layering.tsx +0 -0
- /package/src/{core → ui}/components/dialog/__workshop__/provider.tsx +0 -0
- /package/src/{core → ui}/components/dialog/dialogContext.ts +0 -0
- /package/src/{core → ui}/components/dialog/index.ts +0 -0
- /package/src/{core → ui}/components/hotkeys/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/hotkeys/__workshop__/plain.tsx +0 -0
- /package/src/{core → ui}/components/hotkeys/index.ts +0 -0
- /package/src/{core → ui}/components/index.ts +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/closableMenuButton.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/customMenuItem.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/disableFocusOnClose.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/groups.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/menuGroupRight.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/nestedMenu.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/onCloseMenuButton.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/selectedItem.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/withoutArrow.tsx +0 -0
- /package/src/{core → ui}/components/menu/helpers.ts +0 -0
- /package/src/{core → ui}/components/menu/index.ts +0 -0
- /package/src/{core → ui}/components/skeleton/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/skeleton/index.ts +0 -0
- /package/src/{core → ui}/components/tab/__workshop__/example.tsx +0 -0
- /package/src/{core → ui}/components/tab/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/tab/index.ts +0 -0
- /package/src/{core → ui}/components/toast/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/toast/index.ts +0 -0
- /package/src/{core → ui}/components/toast/toastContext.ts +0 -0
- /package/src/{core → ui}/components/tree/__workshop__/basic.perf.ts +0 -0
- /package/src/{core → ui}/components/tree/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/tree/helpers.ts +0 -0
- /package/src/{core → ui}/components/tree/index.ts +0 -0
- /package/src/{core → ui}/components/tree/treeContext.ts +0 -0
- /package/src/{core → ui}/components/tree/types.ts +0 -0
- /package/src/{core → ui}/global.ts +0 -0
- /package/src/{core → ui}/helpers/animation.ts +0 -0
- /package/src/{core → ui}/helpers/element.ts +0 -0
- /package/src/{core → ui}/helpers/scroll.ts +0 -0
- /package/src/{core → ui}/hooks/index.ts +0 -0
- /package/src/{core → ui}/hooks/useCustomValidity.ts +0 -0
- /package/src/{core → ui}/hooks/useElementRect/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/hooks/useElementRect/index.ts +0 -0
- /package/src/{core → ui}/hooks/useElementRect/useElementRect.ts +0 -0
- /package/src/{core → ui}/hooks/useIsomorphicEffect.ts +0 -0
- /package/src/{core → ui}/hooks/useMediaIndex/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/hooks/useMediaIndex/__workshop__/test.tsx +0 -0
- /package/src/{core → ui}/hooks/useMediaIndex/index.ts +0 -0
- /package/src/{core → ui}/hooks/useMounted.ts +0 -0
- /package/src/{core → ui}/lib/isRecord.ts +0 -0
- /package/src/{core → ui}/middleware/origin.ts +0 -0
- /package/src/{core → ui}/observers/elementSizeObserver.ts +0 -0
- /package/src/{core → ui}/observers/index.ts +0 -0
- /package/src/{core → ui}/observers/resizeObserver.ts +0 -0
- /package/src/{core → ui}/primitives/_selectable/index.ts +0 -0
- /package/src/{core → ui}/primitives/avatar/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/avatar/index.ts +0 -0
- /package/src/{core → ui}/primitives/badge/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/badge/index.ts +0 -0
- /package/src/{core → ui}/primitives/badge/types.ts +0 -0
- /package/src/{core → ui}/primitives/box/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/box/__workshop__/responsive.tsx +0 -0
- /package/src/{core → ui}/primitives/box/index.ts +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/customIcons.tsx +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/mixedChildren.tsx +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/sanityUploadButton.tsx +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/styled1.tsx +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/styled2.tsx +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/uploadButton.tsx +0 -0
- /package/src/{core → ui}/primitives/button/index.ts +0 -0
- /package/src/{core → ui}/primitives/card/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/card/__workshop__/styled.tsx +0 -0
- /package/src/{core → ui}/primitives/checkbox/__workshop__/example.tsx +0 -0
- /package/src/{core → ui}/primitives/checkbox/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/checkbox/__workshop__/props.tsx +0 -0
- /package/src/{core → ui}/primitives/checkbox/__workshop__/readOnly.tsx +0 -0
- /package/src/{core → ui}/primitives/checkbox/index.ts +0 -0
- /package/src/{core → ui}/primitives/code/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/code/__workshop__/opticalAlignment.tsx +0 -0
- /package/src/{core → ui}/primitives/code/index.ts +0 -0
- /package/src/{core → ui}/primitives/container/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/container/index.ts +0 -0
- /package/src/{core → ui}/primitives/container/types.ts +0 -0
- /package/src/{core → ui}/primitives/flex/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/flex/index.ts +0 -0
- /package/src/{core → ui}/primitives/grid/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/grid/index.ts +0 -0
- /package/src/{core → ui}/primitives/heading/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/heading/index.ts +0 -0
- /package/src/{core → ui}/primitives/index.ts +0 -0
- /package/src/{core → ui}/primitives/inline/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/inline/index.ts +0 -0
- /package/src/{core → ui}/primitives/inline/types.ts +0 -0
- /package/src/{core → ui}/primitives/kbd/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/kbd/__workshop__/plain.tsx +0 -0
- /package/src/{core/primitives/kbd/index.tsx → ui/primitives/kbd/index.ts} +0 -0
- /package/src/{core → ui}/primitives/label/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/label/index.ts +0 -0
- /package/src/{core → ui}/primitives/popover/__workshop__/MarginsStory.tsx +0 -0
- /package/src/{core → ui}/primitives/popover/__workshop__/RecursiveStory.tsx +0 -0
- /package/src/{core → ui}/primitives/popover/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/popover/constants.ts +0 -0
- /package/src/{core → ui}/primitives/popover/index.ts +0 -0
- /package/src/{core → ui}/primitives/popover/types.ts +0 -0
- /package/src/{core → ui}/primitives/radio/__workshop__/example.tsx +0 -0
- /package/src/{core → ui}/primitives/radio/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/radio/index.ts +0 -0
- /package/src/{core → ui}/primitives/select/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/select/index.ts +0 -0
- /package/src/{core → ui}/primitives/spinner/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/spinner/animatedSpinnerIcon.tsx +0 -0
- /package/src/{core → ui}/primitives/spinner/index.ts +0 -0
- /package/src/{core → ui}/primitives/stack/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/switch/__workshop__/example.tsx +0 -0
- /package/src/{core → ui}/primitives/switch/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/switch/__workshop__/props.tsx +0 -0
- /package/src/{core → ui}/primitives/switch/index.ts +0 -0
- /package/src/{core → ui}/primitives/text/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/text/index.ts +0 -0
- /package/src/{core → ui}/primitives/textArea/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/textArea/index.ts +0 -0
- /package/src/{core → ui}/primitives/textInput/__workshop__/clearButton.tsx +0 -0
- /package/src/{core → ui}/primitives/textInput/__workshop__/customValidity.tsx +0 -0
- /package/src/{core → ui}/primitives/textInput/__workshop__/states.tsx +0 -0
- /package/src/{core → ui}/primitives/textInput/index.ts +0 -0
- /package/src/{core → ui}/primitives/tooltip/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/tooltip/constants.ts +0 -0
- /package/src/{core → ui}/primitives/tooltip/index.ts +0 -0
- /package/src/{core → ui}/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupContext.tsx +0 -0
- /package/src/{core → ui}/types/avatar.ts +0 -0
- /package/src/{core → ui}/types/badge.ts +0 -0
- /package/src/{core → ui}/types/card.ts +0 -0
- /package/src/{core → ui}/types/dialog.ts +0 -0
- /package/src/{core → ui}/types/placement.ts +0 -0
- /package/src/{core → ui}/types/popover.ts +0 -0
- /package/src/{core → ui}/types/radius.ts +0 -0
- /package/src/{core → ui}/types/text.ts +0 -0
- /package/src/{core → ui}/utils/arrow/cmds.ts +0 -0
- /package/src/{core → ui}/utils/arrow/index.ts +0 -0
- /package/src/{core → ui}/utils/boundaryElement/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/utils/boundaryElement/__workshop__/plain.tsx +0 -0
- /package/src/{core → ui}/utils/boundaryElement/boundaryElementContext.ts +0 -0
- /package/src/{core → ui}/utils/boundaryElement/types.ts +0 -0
- /package/src/{core → ui}/utils/conditionalWrapper/index.ts +0 -0
- /package/src/{core → ui}/utils/elementQuery/__workshop__/customMedia.tsx +0 -0
- /package/src/{core → ui}/utils/elementQuery/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/utils/elementQuery/helpers.ts +0 -0
- /package/src/{core → ui}/utils/elementQuery/index.ts +0 -0
- /package/src/{core → ui}/utils/index.ts +0 -0
- /package/src/{core → ui}/utils/layer/__workshop__/_debug.tsx +0 -0
- /package/src/{core → ui}/utils/layer/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/utils/layer/getLayerContext.test.ts +0 -0
- /package/src/{core → ui}/utils/layer/getLayerContext.ts +0 -0
- /package/src/{core → ui}/utils/layer/layerContext.ts +0 -0
- /package/src/{core → ui}/utils/layer/types.ts +0 -0
- /package/src/{core → ui}/utils/portal/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/utils/portal/__workshop__/named.tsx +0 -0
- /package/src/{core → ui}/utils/portal/index.ts +0 -0
- /package/src/{core → ui}/utils/portal/portalContext.ts +0 -0
- /package/src/{core → ui}/utils/portal/types.ts +0 -0
- /package/src/{core → ui}/utils/virtualList/__workshop__/changingProps.tsx +0 -0
- /package/src/{core → ui}/utils/virtualList/__workshop__/elementScroll.tsx +0 -0
- /package/src/{core → ui}/utils/virtualList/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/utils/virtualList/__workshop__/infiniteList.tsx +0 -0
- /package/src/{core → ui}/utils/virtualList/__workshop__/windowScrolll.tsx +0 -0
- /package/src/{core → ui}/utils/virtualList/index.ts +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -5,16 +5,24 @@ import {BoxHeight} from '@sanity/ui/css'
|
|
|
5
5
|
import {BoxOverflow} from '@sanity/ui/css'
|
|
6
6
|
import {BoxSizing} from '@sanity/ui/css'
|
|
7
7
|
import {BoxStyleProps} from '@sanity/ui/css'
|
|
8
|
+
import {ButtonStyleProps} from '@sanity/ui/css'
|
|
9
|
+
import {CardContextValue as CardContextValue_2} from './types'
|
|
8
10
|
import {CardStyleProps as CardStyleProps_2} from '@sanity/ui/css'
|
|
9
11
|
import {Component} from 'react'
|
|
12
|
+
import type {ComponentProps} from 'react'
|
|
13
|
+
import {ComponentType} from 'react'
|
|
10
14
|
import {ContainerStyleProps} from '@sanity/ui/css'
|
|
11
15
|
import {Context} from 'react'
|
|
12
16
|
import {createColorTheme as createColorTheme_2} from '@sanity/ui/theme'
|
|
13
17
|
import {CSSObject} from '@sanity/ui/theme'
|
|
18
|
+
import {DisplayStyleProps} from '@sanity/ui/css'
|
|
19
|
+
import {ElementProps as ElementProps_2} from '../..'
|
|
14
20
|
import {ElementType} from 'react'
|
|
21
|
+
import {ErrorInfo} from 'react'
|
|
15
22
|
import {FlexAlign} from '@sanity/ui/css'
|
|
16
23
|
import {FlexDirection} from '@sanity/ui/css'
|
|
17
24
|
import {FlexJustify} from '@sanity/ui/css'
|
|
25
|
+
import {FlexStyleProps} from '@sanity/ui/css'
|
|
18
26
|
import {FlexValue} from '@sanity/ui/css'
|
|
19
27
|
import {FlexWrap} from '@sanity/ui/css'
|
|
20
28
|
import {FontCodeSize} from '@sanity/ui/theme'
|
|
@@ -22,6 +30,7 @@ import {FontHeadingSize} from '@sanity/ui/theme'
|
|
|
22
30
|
import {FontLabelSize} from '@sanity/ui/theme'
|
|
23
31
|
import {FontStyleProps} from '@sanity/ui/css'
|
|
24
32
|
import {FontTextSize} from '@sanity/ui/theme'
|
|
33
|
+
import {ForwardedRef} from 'react'
|
|
25
34
|
import {ForwardRefExoticComponent} from 'react'
|
|
26
35
|
import {GapStyleProps} from '@sanity/ui/css'
|
|
27
36
|
import {GridAutoCols} from '@sanity/ui/css'
|
|
@@ -33,26 +42,32 @@ import {GridItemColumnStart} from '@sanity/ui/css'
|
|
|
33
42
|
import {GridItemRow} from '@sanity/ui/css'
|
|
34
43
|
import {GridItemRowEnd} from '@sanity/ui/css'
|
|
35
44
|
import {GridItemRowStart} from '@sanity/ui/css'
|
|
45
|
+
import {HeadingStyleProps} from '@sanity/ui/css'
|
|
36
46
|
import {hexToRgb as hexToRgb_2} from '@sanity/ui/theme'
|
|
37
47
|
import {HSL as HSL_2} from '@sanity/ui/theme'
|
|
38
48
|
import {hslToRgb as hslToRgb_2} from '@sanity/ui/theme'
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
49
|
+
import {InputStyleProps} from '@sanity/ui/css'
|
|
50
|
+
import {InsetStyleProps} from '@sanity/ui/css'
|
|
51
|
+
import {JSX} from 'react'
|
|
52
|
+
import {LabelSize} from '@sanity/ui/css'
|
|
41
53
|
import {multiply as multiply_2} from '@sanity/ui/theme'
|
|
42
54
|
import {MutableRefObject} from 'react'
|
|
43
55
|
import {NamedExoticComponent} from 'react'
|
|
44
56
|
import {PaddingStyleProps} from '@sanity/ui/css'
|
|
45
57
|
import {parseColor as parseColor_2} from '@sanity/ui/theme'
|
|
46
58
|
import {PartialThemeColorBuilderOpts} from '@sanity/ui/theme'
|
|
59
|
+
import {PolymorphicProps as PolymorphicProps_2} from '../..'
|
|
47
60
|
import {PositionStyleProps} from '@sanity/ui/css'
|
|
48
61
|
import {PropsWithChildren} from 'react'
|
|
62
|
+
import {px} from '@sanity/ui/css'
|
|
49
63
|
import {Radius} from '@sanity/ui/theme'
|
|
50
64
|
import {RadiusStyleProps} from '@sanity/ui/css'
|
|
51
65
|
import {ReactElement} from 'react'
|
|
52
66
|
import {ReactNode} from 'react'
|
|
53
|
-
import {
|
|
67
|
+
import {ReactPortal} from 'react'
|
|
54
68
|
import {RefAttributes} from 'react'
|
|
55
69
|
import {RefCallback} from 'react'
|
|
70
|
+
import {rem} from '@sanity/ui/css'
|
|
56
71
|
import {ResponsiveProp} from '@sanity/ui/css'
|
|
57
72
|
import {RGB as RGB_2} from '@sanity/ui/theme'
|
|
58
73
|
import {rgba as rgba_2} from '@sanity/ui/theme'
|
|
@@ -60,12 +75,17 @@ import {rgbToHex as rgbToHex_2} from '@sanity/ui/theme'
|
|
|
60
75
|
import {rgbToHsl as rgbToHsl_2} from '@sanity/ui/theme'
|
|
61
76
|
import {RootTheme as RootTheme_2} from '@sanity/ui/theme'
|
|
62
77
|
import {screen as screen_3} from '@sanity/ui/theme'
|
|
78
|
+
import {SelectStyleProps} from '@sanity/ui/css'
|
|
79
|
+
import {ShadowStyleProps} from '@sanity/ui/css'
|
|
63
80
|
import {SkeletonStyleProps} from '@sanity/ui/css'
|
|
64
81
|
import {Space} from '@sanity/ui/theme'
|
|
65
82
|
import {TextAlign} from '@sanity/ui/css'
|
|
83
|
+
import {TextAreaStyleProps} from '@sanity/ui/css'
|
|
84
|
+
import {TextOverflowStyleProps} from '@sanity/ui/css'
|
|
66
85
|
import {TextStyleProps} from '@sanity/ui/css'
|
|
67
86
|
import {Theme as Theme_2} from '@sanity/ui/theme'
|
|
68
87
|
import {Theme_v2} from '@sanity/ui/theme'
|
|
88
|
+
import {Theme_v3} from '@sanity/ui/theme'
|
|
69
89
|
import {ThemeAvatar} from '@sanity/ui/theme'
|
|
70
90
|
import {ThemeBoxShadow} from '@sanity/ui/theme'
|
|
71
91
|
import {ThemeColor} from '@sanity/ui/theme'
|
|
@@ -112,22 +132,18 @@ import {ThemeShadow as ThemeShadow_2} from '@sanity/ui/theme'
|
|
|
112
132
|
import {ThemeStyles} from '@sanity/ui/theme'
|
|
113
133
|
import {Width} from '@sanity/ui/css'
|
|
114
134
|
|
|
115
|
-
/** @beta */
|
|
116
|
-
export declare type ArrayPropPrimitive = string | number | boolean | undefined | null
|
|
117
|
-
|
|
118
135
|
/** @internal */
|
|
119
136
|
export declare const Arrow: ForwardRefExoticComponent<
|
|
120
|
-
Omit<
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
} & Omit<HTMLProps<HTMLDivElement>, 'height' | 'width'>,
|
|
126
|
-
'ref'
|
|
127
|
-
> &
|
|
128
|
-
RefAttributes<HTMLDivElement>
|
|
137
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, 'radius' | 'height' | 'width'> & {
|
|
138
|
+
width: number
|
|
139
|
+
height: number
|
|
140
|
+
radius?: number
|
|
141
|
+
} & RefAttributes<HTMLDivElement>
|
|
129
142
|
>
|
|
130
143
|
|
|
144
|
+
/** @public */
|
|
145
|
+
export declare type Assign<T, U> = Omit<T, keyof U> & U
|
|
146
|
+
|
|
131
147
|
/**
|
|
132
148
|
* @internal
|
|
133
149
|
*/
|
|
@@ -140,30 +156,20 @@ export declare function attemptFocus(element: HTMLElement): boolean
|
|
|
140
156
|
* @public
|
|
141
157
|
*/
|
|
142
158
|
export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
|
|
143
|
-
props:
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
| 'onSelect'
|
|
158
|
-
| 'prefix'
|
|
159
|
-
| 'ref'
|
|
160
|
-
| 'role'
|
|
161
|
-
| 'spellCheck'
|
|
162
|
-
| 'type'
|
|
163
|
-
| 'value'
|
|
164
|
-
> & {
|
|
165
|
-
ref?: Ref<HTMLInputElement>
|
|
166
|
-
},
|
|
159
|
+
props: Omit<
|
|
160
|
+
Props<AutocompleteProps<Option>, 'input'>,
|
|
161
|
+
| 'aria-activedescendant'
|
|
162
|
+
| 'aria-autocomplete'
|
|
163
|
+
| 'aria-expanded'
|
|
164
|
+
| 'aria-owns'
|
|
165
|
+
| 'autoCapitalize'
|
|
166
|
+
| 'autoComplete'
|
|
167
|
+
| 'autoCorrect'
|
|
168
|
+
| 'inputMode'
|
|
169
|
+
| 'role'
|
|
170
|
+
| 'spellCheck'
|
|
171
|
+
| 'type'
|
|
172
|
+
>,
|
|
167
173
|
) => ReactElement
|
|
168
174
|
|
|
169
175
|
/**
|
|
@@ -198,8 +204,7 @@ export declare type AutocompleteMsg =
|
|
|
198
204
|
/**
|
|
199
205
|
* @public
|
|
200
206
|
*/
|
|
201
|
-
export declare type AutocompleteOpenButtonProps = Omit<ButtonProps, 'as'>
|
|
202
|
-
Omit<React.HTMLProps<HTMLButtonElement>, 'as' | 'ref'>
|
|
207
|
+
export declare type AutocompleteOpenButtonProps = Omit<Props<ButtonProps, 'button'>, 'as'>
|
|
203
208
|
|
|
204
209
|
/**
|
|
205
210
|
* @public
|
|
@@ -209,6 +214,7 @@ export declare interface AutocompleteProps<
|
|
|
209
214
|
> {
|
|
210
215
|
border?: boolean
|
|
211
216
|
customValidity?: string
|
|
217
|
+
disabled?: boolean
|
|
212
218
|
filterOption?: (query: string, option: Option) => boolean
|
|
213
219
|
fontSize?: ResponsiveProp<FontTextSize>
|
|
214
220
|
icon?: ElementType | ReactNode
|
|
@@ -226,24 +232,25 @@ export declare interface AutocompleteProps<
|
|
|
226
232
|
/** The options to render. */
|
|
227
233
|
options?: Option[]
|
|
228
234
|
padding?: ResponsiveProp<Space>
|
|
229
|
-
popover?: Omit<PopoverProps, 'content' | 'onMouseEnter' | 'onMouseLeave' | 'open'>
|
|
230
|
-
Omit<HTMLProps<HTMLDivElement>, 'as' | 'children' | 'content' | 'ref' | 'width'>
|
|
235
|
+
popover?: Omit<Props<PopoverProps, 'div'>, 'content' | 'onMouseEnter' | 'onMouseLeave' | 'open'>
|
|
231
236
|
prefix?: ReactNode
|
|
232
237
|
radius?: Radius | Radius[]
|
|
238
|
+
readOnly?: boolean
|
|
239
|
+
ref?: ForwardedRef<HTMLInputElement>
|
|
233
240
|
/** @beta */
|
|
234
241
|
relatedElements?: HTMLElement[]
|
|
235
242
|
/** The callback function for rendering each option. */
|
|
236
|
-
renderOption?: (option: Option) =>
|
|
243
|
+
renderOption?: (option: Option) => React.JSX.Element
|
|
237
244
|
/** @beta */
|
|
238
245
|
renderPopover?: (
|
|
239
246
|
props: {
|
|
240
|
-
content:
|
|
247
|
+
content: React.JSX.Element | null
|
|
241
248
|
hidden: boolean
|
|
242
249
|
inputElement: HTMLInputElement | null
|
|
243
250
|
onMouseEnter: () => void
|
|
244
251
|
onMouseLeave: () => void
|
|
245
252
|
},
|
|
246
|
-
ref:
|
|
253
|
+
ref: ForwardedRef<HTMLDivElement>,
|
|
247
254
|
) => ReactNode
|
|
248
255
|
renderValue?: (value: string, option?: Option) => string
|
|
249
256
|
suffix?: ReactNode
|
|
@@ -322,22 +329,27 @@ export declare interface AutocompleteValueChangeMsg {
|
|
|
322
329
|
* @public
|
|
323
330
|
*/
|
|
324
331
|
export declare const Avatar: ForwardRefExoticComponent<
|
|
325
|
-
|
|
332
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof AvatarProps> &
|
|
333
|
+
AvatarProps &
|
|
334
|
+
RefAttributes<HTMLDivElement>
|
|
326
335
|
>
|
|
327
336
|
|
|
328
337
|
/**
|
|
329
338
|
* @public
|
|
330
339
|
*/
|
|
331
340
|
export declare const AvatarCounter: ForwardRefExoticComponent<
|
|
332
|
-
|
|
341
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof AvatarCounterProps> &
|
|
342
|
+
AvatarCounterProps &
|
|
343
|
+
RefAttributes<HTMLDivElement>
|
|
333
344
|
>
|
|
334
345
|
|
|
335
346
|
/**
|
|
336
347
|
* @public
|
|
337
348
|
*/
|
|
338
|
-
export declare interface AvatarCounterProps
|
|
349
|
+
export declare interface AvatarCounterProps
|
|
350
|
+
extends Omit<BoxProps, 'align' | 'className' | 'display' | 'justify' | 'paddingX' | 'sizing'> {
|
|
339
351
|
count: number
|
|
340
|
-
size?: AvatarSize
|
|
352
|
+
size?: ResponsiveProp<AvatarSize>
|
|
341
353
|
/** @deprecated No longer supported. */
|
|
342
354
|
tone?: 'navbar'
|
|
343
355
|
}
|
|
@@ -355,11 +367,10 @@ export declare interface AvatarProps {
|
|
|
355
367
|
__unstable_hideInnerStroke?: boolean
|
|
356
368
|
animateArrowFrom?: AvatarPosition
|
|
357
369
|
arrowPosition?: AvatarPosition
|
|
358
|
-
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
359
370
|
color?: ThemeColorAvatarColorKey
|
|
360
371
|
initials?: string
|
|
361
372
|
onImageLoadError?: (event: Error) => void
|
|
362
|
-
size?: AvatarSize
|
|
373
|
+
size?: ResponsiveProp<AvatarSize>
|
|
363
374
|
src?: string
|
|
364
375
|
/**
|
|
365
376
|
* The status of the entity this Avatar represents.
|
|
@@ -382,16 +393,28 @@ export {AvatarSize}
|
|
|
382
393
|
* @public
|
|
383
394
|
*/
|
|
384
395
|
export declare const AvatarStack: ForwardRefExoticComponent<
|
|
385
|
-
|
|
396
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof AvatarStackProps> &
|
|
397
|
+
AvatarStackProps &
|
|
398
|
+
RefAttributes<HTMLDivElement>
|
|
386
399
|
>
|
|
387
400
|
|
|
388
401
|
/**
|
|
389
402
|
* @public
|
|
390
403
|
*/
|
|
391
|
-
export declare
|
|
392
|
-
|
|
404
|
+
export declare type AvatarStackChild =
|
|
405
|
+
| ReactElement<Props<AvatarProps, 'div'>>
|
|
406
|
+
| null
|
|
407
|
+
| undefined
|
|
408
|
+
| false
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* @public
|
|
412
|
+
*/
|
|
413
|
+
export declare interface AvatarStackProps
|
|
414
|
+
extends Omit<BoxProps, 'align' | 'className' | 'display'> {
|
|
415
|
+
children: AvatarStackChild | AvatarStackChild[]
|
|
393
416
|
maxLength?: number
|
|
394
|
-
size?: AvatarSize
|
|
417
|
+
size?: ResponsiveProp<AvatarSize>
|
|
395
418
|
/** @deprecated No longer supported. */
|
|
396
419
|
tone?: 'navbar'
|
|
397
420
|
}
|
|
@@ -410,7 +433,9 @@ export declare type AvatarStatus = 'online' | 'editing' | 'inactive'
|
|
|
410
433
|
* @public
|
|
411
434
|
*/
|
|
412
435
|
export declare const Badge: ForwardRefExoticComponent<
|
|
413
|
-
Omit<
|
|
436
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof BadgeProps> &
|
|
437
|
+
BadgeProps &
|
|
438
|
+
RefAttributes<HTMLDivElement>
|
|
414
439
|
>
|
|
415
440
|
|
|
416
441
|
/**
|
|
@@ -423,10 +448,10 @@ export declare type BadgeMode = 'default' | 'outline'
|
|
|
423
448
|
* @public
|
|
424
449
|
*/
|
|
425
450
|
export declare interface BadgeProps extends BoxProps, RadiusStyleProps {
|
|
426
|
-
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
427
451
|
fontSize?: number | number[]
|
|
428
452
|
/** @deprecated No longer used. */
|
|
429
453
|
mode?: BadgeMode
|
|
454
|
+
textAlign?: TextProps['align']
|
|
430
455
|
tone?: BadgeTone
|
|
431
456
|
}
|
|
432
457
|
|
|
@@ -459,9 +484,7 @@ export declare interface BoundaryElementContextValue {
|
|
|
459
484
|
/**
|
|
460
485
|
* @public
|
|
461
486
|
*/
|
|
462
|
-
export declare function BoundaryElementProvider(
|
|
463
|
-
props: BoundaryElementProviderProps,
|
|
464
|
-
): React.ReactElement
|
|
487
|
+
export declare function BoundaryElementProvider(props: BoundaryElementProviderProps): ReactElement
|
|
465
488
|
|
|
466
489
|
export declare namespace BoundaryElementProvider {
|
|
467
490
|
var displayName: string
|
|
@@ -471,7 +494,7 @@ export declare namespace BoundaryElementProvider {
|
|
|
471
494
|
* @public
|
|
472
495
|
*/
|
|
473
496
|
export declare interface BoundaryElementProviderProps {
|
|
474
|
-
children:
|
|
497
|
+
children: ReactNode
|
|
475
498
|
element: HTMLElement | null
|
|
476
499
|
}
|
|
477
500
|
|
|
@@ -482,10 +505,8 @@ export declare interface BoundaryElementProviderProps {
|
|
|
482
505
|
* @public
|
|
483
506
|
*/
|
|
484
507
|
export declare const Box: ForwardRefExoticComponent<
|
|
485
|
-
Omit<
|
|
486
|
-
BoxProps &
|
|
487
|
-
'ref'
|
|
488
|
-
> &
|
|
508
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof BoxProps> &
|
|
509
|
+
BoxProps &
|
|
489
510
|
RefAttributes<HTMLDivElement>
|
|
490
511
|
>
|
|
491
512
|
|
|
@@ -498,10 +519,11 @@ export {BoxOverflow}
|
|
|
498
519
|
/**
|
|
499
520
|
* @public
|
|
500
521
|
*/
|
|
501
|
-
export declare interface BoxProps
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
522
|
+
export declare interface BoxProps
|
|
523
|
+
extends BoxStyleProps,
|
|
524
|
+
GapStyleProps,
|
|
525
|
+
InsetStyleProps,
|
|
526
|
+
PositionStyleProps {}
|
|
505
527
|
|
|
506
528
|
/**
|
|
507
529
|
* @public
|
|
@@ -515,9 +537,9 @@ export {BoxSizing}
|
|
|
515
537
|
* @beta
|
|
516
538
|
*/
|
|
517
539
|
export declare const Breadcrumbs: ForwardRefExoticComponent<
|
|
518
|
-
BreadcrumbsProps &
|
|
519
|
-
|
|
520
|
-
RefAttributes<
|
|
540
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof BreadcrumbsProps> &
|
|
541
|
+
BreadcrumbsProps &
|
|
542
|
+
RefAttributes<HTMLDivElement>
|
|
521
543
|
>
|
|
522
544
|
|
|
523
545
|
/**
|
|
@@ -526,7 +548,7 @@ export declare const Breadcrumbs: ForwardRefExoticComponent<
|
|
|
526
548
|
export declare interface BreadcrumbsProps extends GapStyleProps {
|
|
527
549
|
expandButton?: Omit<ButtonProps, 'onClick' | 'selected'>
|
|
528
550
|
maxLength?: number
|
|
529
|
-
separator?:
|
|
551
|
+
separator?: ReactNode
|
|
530
552
|
/** @deprecated - Use `gap`, `gapX`, `gapY` instead */
|
|
531
553
|
space?: number | number[]
|
|
532
554
|
}
|
|
@@ -535,42 +557,46 @@ export declare interface BreadcrumbsProps extends GapStyleProps {
|
|
|
535
557
|
* @public
|
|
536
558
|
*/
|
|
537
559
|
export declare const Button: ForwardRefExoticComponent<
|
|
538
|
-
Omit<
|
|
539
|
-
ButtonProps &
|
|
540
|
-
'ref'
|
|
541
|
-
> &
|
|
560
|
+
Omit<ElementProps_2<'button'> & PolymorphicProps_2, keyof ButtonProps> &
|
|
561
|
+
ButtonProps &
|
|
542
562
|
RefAttributes<HTMLButtonElement>
|
|
543
563
|
>
|
|
544
564
|
|
|
545
565
|
/**
|
|
546
566
|
* @public
|
|
567
|
+
* @deprecated Use `ThemeColorButtonModeKey` instead
|
|
547
568
|
*/
|
|
548
569
|
export declare type ButtonMode = ThemeColorButtonModeKey_2
|
|
549
570
|
|
|
550
571
|
/**
|
|
551
572
|
* @public
|
|
552
573
|
*/
|
|
553
|
-
export declare interface ButtonProps
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
+
export declare interface ButtonProps
|
|
575
|
+
extends ButtonStyleProps,
|
|
576
|
+
DisplayStyleProps,
|
|
577
|
+
FlexStyleProps,
|
|
578
|
+
GapStyleProps,
|
|
579
|
+
PaddingStyleProps {
|
|
580
|
+
'data-ui'?: string
|
|
581
|
+
'fontSize'?: ResponsiveProp<FontTextSize>
|
|
582
|
+
'href'?: string
|
|
583
|
+
'mode'?: ButtonMode
|
|
584
|
+
'icon'?: ElementType | ReactNode
|
|
585
|
+
'iconRight'?: ElementType | ReactNode
|
|
586
|
+
/** @beta Do not use in production, as this might change.*/
|
|
587
|
+
'loading'?: boolean
|
|
588
|
+
'selected'?: boolean
|
|
589
|
+
/** @deprecated Use `gap` instead. */
|
|
590
|
+
'space'?: ResponsiveProp<Space>
|
|
591
|
+
'textAlign'?: ButtonTextAlign
|
|
592
|
+
'muted'?: boolean
|
|
593
|
+
'target'?: string
|
|
594
|
+
'text'?: ReactNode
|
|
595
|
+
'textOverflow'?: TextProps['textOverflow']
|
|
596
|
+
'textWeight'?: TextProps['weight']
|
|
597
|
+
'tone'?: ButtonTone
|
|
598
|
+
'type'?: 'button' | 'reset' | 'submit'
|
|
599
|
+
'width'?: ResponsiveProp<Width>
|
|
574
600
|
}
|
|
575
601
|
|
|
576
602
|
/**
|
|
@@ -580,6 +606,7 @@ export declare type ButtonTextAlign = 'left' | 'right' | 'center'
|
|
|
580
606
|
|
|
581
607
|
/**
|
|
582
608
|
* @public
|
|
609
|
+
* @deprecated Use `ThemeColorStateToneKey` instead
|
|
583
610
|
*/
|
|
584
611
|
export declare type ButtonTone = ThemeColorStateToneKey
|
|
585
612
|
|
|
@@ -596,10 +623,25 @@ export declare type ButtonWidth = 'fill'
|
|
|
596
623
|
* @public
|
|
597
624
|
*/
|
|
598
625
|
export declare const Card: ForwardRefExoticComponent<
|
|
599
|
-
Omit<
|
|
626
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof CardProps> &
|
|
627
|
+
CardProps &
|
|
600
628
|
RefAttributes<HTMLDivElement>
|
|
601
629
|
>
|
|
602
630
|
|
|
631
|
+
export declare type CardCompatProviderComponent = ComponentType<{
|
|
632
|
+
children?: ReactNode
|
|
633
|
+
tone: ThemeColorCardToneKey
|
|
634
|
+
scheme: ThemeColorSchemeKey_2
|
|
635
|
+
}>
|
|
636
|
+
|
|
637
|
+
/** @internal */
|
|
638
|
+
export declare interface CardContextValue {
|
|
639
|
+
compat_provider?: CardCompatProviderComponent
|
|
640
|
+
rendered: boolean
|
|
641
|
+
tone: ThemeColorCardToneKey
|
|
642
|
+
scheme: ThemeColorSchemeKey_2
|
|
643
|
+
}
|
|
644
|
+
|
|
603
645
|
/**
|
|
604
646
|
* @public
|
|
605
647
|
*/
|
|
@@ -614,20 +656,30 @@ export declare interface CardProps extends BoxProps, CardStyleProps_2 {
|
|
|
614
656
|
* @beta
|
|
615
657
|
*/
|
|
616
658
|
__unstable_focusRing?: boolean
|
|
617
|
-
|
|
659
|
+
disabled?: boolean
|
|
660
|
+
href?: string
|
|
618
661
|
pressed?: boolean
|
|
619
|
-
|
|
620
|
-
|
|
662
|
+
selected?: boolean
|
|
663
|
+
target?: string
|
|
621
664
|
}
|
|
622
665
|
|
|
666
|
+
export declare function CardProvider(props: {
|
|
667
|
+
compat_provider?: CardCompatProviderComponent
|
|
668
|
+
children?: ReactNode
|
|
669
|
+
rendered?: boolean
|
|
670
|
+
tone: ThemeColorCardToneKey
|
|
671
|
+
scheme: ThemeColorSchemeKey_2
|
|
672
|
+
}): JSX.Element
|
|
673
|
+
|
|
623
674
|
/**
|
|
624
675
|
* @internal
|
|
676
|
+
* @deprecated Use `CardStyleProps` from `@sanity/ui/css` instead.
|
|
625
677
|
*/
|
|
626
678
|
export declare interface CardStyleProps {
|
|
627
679
|
$checkered: boolean
|
|
628
680
|
$focusRing: boolean
|
|
629
681
|
$muted: boolean
|
|
630
|
-
$tone:
|
|
682
|
+
$tone: ThemeColorCardToneKey
|
|
631
683
|
}
|
|
632
684
|
|
|
633
685
|
/**
|
|
@@ -641,7 +693,8 @@ export declare type CardTone = ThemeColorCardToneKey | 'inherit'
|
|
|
641
693
|
* @public
|
|
642
694
|
*/
|
|
643
695
|
export declare const Checkbox: ForwardRefExoticComponent<
|
|
644
|
-
Omit<
|
|
696
|
+
Omit<ElementProps_2<'input'> & PolymorphicProps_2, keyof CheckboxProps> &
|
|
697
|
+
CheckboxProps &
|
|
645
698
|
RefAttributes<HTMLInputElement>
|
|
646
699
|
>
|
|
647
700
|
|
|
@@ -677,7 +730,8 @@ export declare type ClickOutsideListener = (event: MouseEvent) => void
|
|
|
677
730
|
* @public
|
|
678
731
|
*/
|
|
679
732
|
export declare const Code: ForwardRefExoticComponent<
|
|
680
|
-
Omit<
|
|
733
|
+
Omit<ElementProps_2<'pre'> & PolymorphicProps_2, keyof CodeProps> &
|
|
734
|
+
CodeProps &
|
|
681
735
|
RefAttributes<HTMLPreElement>
|
|
682
736
|
>
|
|
683
737
|
|
|
@@ -685,7 +739,6 @@ export declare const Code: ForwardRefExoticComponent<
|
|
|
685
739
|
* @public
|
|
686
740
|
*/
|
|
687
741
|
export declare interface CodeProps extends Omit<FontStyleProps, 'align'> {
|
|
688
|
-
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
689
742
|
/** Define the language to use for syntax highlighting. */
|
|
690
743
|
language?: string
|
|
691
744
|
size?: number | number[]
|
|
@@ -696,14 +749,8 @@ export declare interface CodeProps extends Omit<FontStyleProps, 'align'> {
|
|
|
696
749
|
* @beta
|
|
697
750
|
*/
|
|
698
751
|
export declare const CodeSkeleton: ForwardRefExoticComponent<
|
|
699
|
-
Omit<
|
|
752
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof CodeSkeletonProps> &
|
|
700
753
|
CodeSkeletonProps &
|
|
701
|
-
Omit<
|
|
702
|
-
HTMLProps<HTMLDivElement>,
|
|
703
|
-
'height' | 'width' | 'size' | 'wrap' | 'children' | 'as' | 'rows'
|
|
704
|
-
>,
|
|
705
|
-
'ref'
|
|
706
|
-
> &
|
|
707
754
|
RefAttributes<HTMLDivElement>
|
|
708
755
|
>
|
|
709
756
|
|
|
@@ -724,10 +771,10 @@ export declare function ConditionalWrapper({
|
|
|
724
771
|
condition,
|
|
725
772
|
wrapper,
|
|
726
773
|
}: {
|
|
727
|
-
children:
|
|
774
|
+
children: ReactNode
|
|
728
775
|
condition: boolean
|
|
729
|
-
wrapper: (children:
|
|
730
|
-
}):
|
|
776
|
+
wrapper: (children: ReactNode) => ReactNode
|
|
777
|
+
}): ReactNode
|
|
731
778
|
|
|
732
779
|
export declare namespace ConditionalWrapper {
|
|
733
780
|
var displayName: string
|
|
@@ -739,7 +786,8 @@ export declare namespace ConditionalWrapper {
|
|
|
739
786
|
* @public
|
|
740
787
|
*/
|
|
741
788
|
export declare const Container: ForwardRefExoticComponent<
|
|
742
|
-
Omit<
|
|
789
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof ContainerProps> &
|
|
790
|
+
ContainerProps &
|
|
743
791
|
RefAttributes<HTMLDivElement>
|
|
744
792
|
>
|
|
745
793
|
|
|
@@ -775,11 +823,8 @@ export declare type Delay =
|
|
|
775
823
|
* @public
|
|
776
824
|
*/
|
|
777
825
|
export declare const Dialog: ForwardRefExoticComponent<
|
|
778
|
-
Omit<
|
|
826
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof DialogProps> &
|
|
779
827
|
DialogProps &
|
|
780
|
-
Omit<HTMLProps<HTMLDivElement>, 'id' | 'height' | 'width' | 'wrap' | 'as' | 'rows'>,
|
|
781
|
-
'ref'
|
|
782
|
-
> &
|
|
783
828
|
RefAttributes<HTMLDivElement>
|
|
784
829
|
>
|
|
785
830
|
|
|
@@ -806,7 +851,10 @@ export declare type DialogPosition = 'absolute' | 'fixed'
|
|
|
806
851
|
/**
|
|
807
852
|
* @public
|
|
808
853
|
*/
|
|
809
|
-
export declare interface DialogProps
|
|
854
|
+
export declare interface DialogProps
|
|
855
|
+
extends ContainerStyleProps,
|
|
856
|
+
PaddingStyleProps,
|
|
857
|
+
ShadowStyleProps {
|
|
810
858
|
/**
|
|
811
859
|
* @beta
|
|
812
860
|
*/
|
|
@@ -822,19 +870,20 @@ export declare interface DialogProps extends PaddingStyleProps, ContainerStylePr
|
|
|
822
870
|
* @defaultValue false
|
|
823
871
|
*/
|
|
824
872
|
animate?: boolean
|
|
825
|
-
cardRadius?: Radius
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
header?: React.ReactNode
|
|
873
|
+
cardRadius?: ResponsiveProp<Radius>
|
|
874
|
+
contentRef?: ForwardedRef<HTMLDivElement>
|
|
875
|
+
footer?: ReactNode
|
|
876
|
+
header?: ReactNode
|
|
830
877
|
id: string
|
|
831
878
|
/** A callback that fires when the dialog becomes the top layer when it was not the top layer before. */
|
|
832
879
|
onActivate?: LayerProps['onActivate']
|
|
833
880
|
onClickOutside?: () => void
|
|
834
881
|
onClose?: () => void
|
|
882
|
+
open?: boolean
|
|
835
883
|
portal?: string
|
|
836
884
|
position?: DialogPosition | DialogPosition[]
|
|
837
885
|
scheme?: ThemeColorSchemeKey_2
|
|
886
|
+
tone?: CardTone
|
|
838
887
|
zOffset?: number | number[]
|
|
839
888
|
}
|
|
840
889
|
|
|
@@ -842,7 +891,7 @@ export declare interface DialogProps extends PaddingStyleProps, ContainerStylePr
|
|
|
842
891
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
843
892
|
* @beta
|
|
844
893
|
*/
|
|
845
|
-
export declare function DialogProvider(props: DialogProviderProps):
|
|
894
|
+
export declare function DialogProvider(props: DialogProviderProps): ReactElement
|
|
846
895
|
|
|
847
896
|
export declare namespace DialogProvider {
|
|
848
897
|
var displayName: string
|
|
@@ -853,17 +902,21 @@ export declare namespace DialogProvider {
|
|
|
853
902
|
* @beta
|
|
854
903
|
*/
|
|
855
904
|
export declare interface DialogProviderProps {
|
|
856
|
-
children?:
|
|
905
|
+
children?: ReactNode
|
|
857
906
|
position?: DialogPosition | DialogPosition[]
|
|
858
907
|
zOffset?: number | number[]
|
|
859
908
|
}
|
|
860
909
|
|
|
910
|
+
/** @public */
|
|
911
|
+
export declare type ElementProps<E extends ElementType> = Omit<ComponentProps<E>, 'as' | 'ref'>
|
|
912
|
+
|
|
861
913
|
/**
|
|
862
914
|
* DO NOT USE IN PRODUCTION.
|
|
863
915
|
* @beta
|
|
864
916
|
*/
|
|
865
917
|
export declare const ElementQuery: ForwardRefExoticComponent<
|
|
866
|
-
Omit<
|
|
918
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, 'media'> &
|
|
919
|
+
MediaQueryProps &
|
|
867
920
|
RefAttributes<HTMLDivElement>
|
|
868
921
|
>
|
|
869
922
|
|
|
@@ -916,8 +969,8 @@ export declare type _ElementSizeSubscriber = (elementRect: ElementSize) => void
|
|
|
916
969
|
export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
917
970
|
state: ErrorBoundaryState
|
|
918
971
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState
|
|
919
|
-
componentDidCatch(error: Error, info:
|
|
920
|
-
render():
|
|
972
|
+
componentDidCatch(error: Error, info: ErrorInfo): void
|
|
973
|
+
render(): ReactNode
|
|
921
974
|
}
|
|
922
975
|
|
|
923
976
|
/**
|
|
@@ -925,7 +978,7 @@ export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBo
|
|
|
925
978
|
* @beta
|
|
926
979
|
*/
|
|
927
980
|
export declare type ErrorBoundaryProps = PropsWithChildren<{
|
|
928
|
-
onCatch: (params: {error: Error; info:
|
|
981
|
+
onCatch: (params: {error: Error; info: ErrorInfo}) => void
|
|
929
982
|
}>
|
|
930
983
|
|
|
931
984
|
/**
|
|
@@ -936,21 +989,14 @@ export declare interface ErrorBoundaryState {
|
|
|
936
989
|
error: Error | null
|
|
937
990
|
}
|
|
938
991
|
|
|
939
|
-
/**
|
|
940
|
-
* @internal
|
|
941
|
-
*/
|
|
942
|
-
export declare function _fillCSSObject(
|
|
943
|
-
keys: string[],
|
|
944
|
-
value: string | number | CSSObject,
|
|
945
|
-
): CSSObject
|
|
946
|
-
|
|
947
992
|
/**
|
|
948
993
|
* The `Flex` component is a wrapper component for flexible elements (`Box`, `Card` and `Flex`).
|
|
949
994
|
*
|
|
950
995
|
* @public
|
|
951
996
|
*/
|
|
952
997
|
export declare const Flex: ForwardRefExoticComponent<
|
|
953
|
-
Omit<
|
|
998
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof FlexProps> &
|
|
999
|
+
FlexProps &
|
|
954
1000
|
RefAttributes<HTMLDivElement>
|
|
955
1001
|
>
|
|
956
1002
|
|
|
@@ -963,7 +1009,9 @@ export {FlexJustify}
|
|
|
963
1009
|
/**
|
|
964
1010
|
* @public
|
|
965
1011
|
*/
|
|
966
|
-
export declare interface FlexProps extends Omit<BoxProps, 'display'> {
|
|
1012
|
+
export declare interface FlexProps extends Omit<BoxProps, 'display'> {
|
|
1013
|
+
htmlFor?: string
|
|
1014
|
+
}
|
|
967
1015
|
|
|
968
1016
|
export {FlexValue}
|
|
969
1017
|
|
|
@@ -982,23 +1030,7 @@ export declare function focusLastDescendant(element: HTMLElement): boolean
|
|
|
982
1030
|
/**
|
|
983
1031
|
* @internal
|
|
984
1032
|
*/
|
|
985
|
-
export declare
|
|
986
|
-
$weight?: ThemeFontWeightKey_2
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
/**
|
|
990
|
-
* @internal
|
|
991
|
-
*/
|
|
992
|
-
export declare function _getArrayProp<T = number>(val: T | T[] | undefined, defaultVal?: T[]): T[]
|
|
993
|
-
|
|
994
|
-
/**
|
|
995
|
-
* @internal
|
|
996
|
-
*/
|
|
997
|
-
export declare function _getResponsiveSpace(
|
|
998
|
-
theme: Theme_2,
|
|
999
|
-
props: string[],
|
|
1000
|
-
spaceIndexes?: number[],
|
|
1001
|
-
): CSSObject[] | null
|
|
1033
|
+
export declare function _getArrayProp<T>(val: T | T[] | undefined, defaultVal?: T[]): T[]
|
|
1002
1034
|
|
|
1003
1035
|
/**
|
|
1004
1036
|
* The `Grid` component is for building 2-dimensional layers (based on CSS grid).
|
|
@@ -1006,7 +1038,8 @@ export declare function _getResponsiveSpace(
|
|
|
1006
1038
|
* @public
|
|
1007
1039
|
*/
|
|
1008
1040
|
export declare const Grid: ForwardRefExoticComponent<
|
|
1009
|
-
Omit<
|
|
1041
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof GridProps> &
|
|
1042
|
+
GridProps &
|
|
1010
1043
|
RefAttributes<HTMLDivElement>
|
|
1011
1044
|
>
|
|
1012
1045
|
|
|
@@ -1044,39 +1077,23 @@ export declare function _hasFocus(element: HTMLElement): boolean
|
|
|
1044
1077
|
* @public
|
|
1045
1078
|
*/
|
|
1046
1079
|
export declare const Heading: ForwardRefExoticComponent<
|
|
1047
|
-
Omit<
|
|
1080
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof HeadingProps> &
|
|
1081
|
+
HeadingProps &
|
|
1048
1082
|
RefAttributes<HTMLElement>
|
|
1049
1083
|
>
|
|
1050
1084
|
|
|
1051
1085
|
/**
|
|
1052
1086
|
* @public
|
|
1053
1087
|
*/
|
|
1054
|
-
export declare interface HeadingProps extends
|
|
1055
|
-
accent?: boolean
|
|
1056
|
-
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
1057
|
-
muted?: boolean
|
|
1058
|
-
size?: ResponsiveProp<FontHeadingSize>
|
|
1059
|
-
/**
|
|
1060
|
-
* Controls how overflowing text is treated.
|
|
1061
|
-
* Use `textOverflow="ellipsis"` to render text as a single line which is concatenated with a `…` symbol.
|
|
1062
|
-
* @beta
|
|
1063
|
-
*/
|
|
1064
|
-
textOverflow?: 'ellipsis'
|
|
1065
|
-
}
|
|
1088
|
+
export declare interface HeadingProps extends HeadingStyleProps, TextOverflowStyleProps {}
|
|
1066
1089
|
|
|
1067
1090
|
/**
|
|
1068
1091
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
1069
1092
|
* @beta
|
|
1070
1093
|
*/
|
|
1071
1094
|
export declare const HeadingSkeleton: ForwardRefExoticComponent<
|
|
1072
|
-
Omit<
|
|
1095
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof HeadingSkeletonProps> &
|
|
1073
1096
|
HeadingSkeletonProps &
|
|
1074
|
-
Omit<
|
|
1075
|
-
HTMLProps<HTMLDivElement>,
|
|
1076
|
-
'height' | 'width' | 'size' | 'wrap' | 'children' | 'as' | 'rows'
|
|
1077
|
-
>,
|
|
1078
|
-
'ref'
|
|
1079
|
-
> &
|
|
1080
1097
|
RefAttributes<HTMLDivElement>
|
|
1081
1098
|
>
|
|
1082
1099
|
|
|
@@ -1100,20 +1117,18 @@ export declare const hexToRgb: typeof hexToRgb_2
|
|
|
1100
1117
|
* @public
|
|
1101
1118
|
*/
|
|
1102
1119
|
export declare const Hotkeys: ForwardRefExoticComponent<
|
|
1103
|
-
HotkeysProps &
|
|
1104
|
-
|
|
1105
|
-
HTMLProps<HTMLDivElement>,
|
|
1106
|
-
'display' | 'height' | 'width' | 'size' | 'wrap' | 'ref' | 'as' | 'rows'
|
|
1107
|
-
> &
|
|
1120
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof HotkeysProps> &
|
|
1121
|
+
HotkeysProps &
|
|
1108
1122
|
RefAttributes<HTMLDivElement>
|
|
1109
1123
|
>
|
|
1110
1124
|
|
|
1111
1125
|
/**
|
|
1112
1126
|
* @public
|
|
1113
1127
|
*/
|
|
1114
|
-
export declare interface HotkeysProps extends RadiusStyleProps {
|
|
1128
|
+
export declare interface HotkeysProps extends GapStyleProps, RadiusStyleProps {
|
|
1115
1129
|
fontSize?: ResponsiveProp<FontTextSize>
|
|
1116
1130
|
padding?: ResponsiveProp<Space>
|
|
1131
|
+
/** @deprecated Use `gap` instead. */
|
|
1117
1132
|
space?: ResponsiveProp<Space>
|
|
1118
1133
|
keys?: string[]
|
|
1119
1134
|
}
|
|
@@ -1136,15 +1151,16 @@ export declare const hslToRgb: typeof hslToRgb_2
|
|
|
1136
1151
|
* @public
|
|
1137
1152
|
*/
|
|
1138
1153
|
export declare const Inline: ForwardRefExoticComponent<
|
|
1139
|
-
Omit<
|
|
1154
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof InlineProps> &
|
|
1155
|
+
InlineProps &
|
|
1156
|
+
RefAttributes<HTMLDivElement>
|
|
1140
1157
|
>
|
|
1141
1158
|
|
|
1142
1159
|
/**
|
|
1143
1160
|
* @public
|
|
1144
1161
|
*/
|
|
1145
|
-
export declare interface InlineProps
|
|
1146
|
-
|
|
1147
|
-
/** The spacing between children. */
|
|
1162
|
+
export declare interface InlineProps extends Omit<BoxProps, 'align' | 'display' | 'justify'> {
|
|
1163
|
+
/** @deprecated Use `gap` instead. */
|
|
1148
1164
|
space?: ResponsiveProp<Space>
|
|
1149
1165
|
}
|
|
1150
1166
|
|
|
@@ -1199,14 +1215,15 @@ export declare function _isScrollable(el: Node): boolean
|
|
|
1199
1215
|
* @public
|
|
1200
1216
|
*/
|
|
1201
1217
|
export declare const KBD: ForwardRefExoticComponent<
|
|
1202
|
-
|
|
1218
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof KBDProps> &
|
|
1219
|
+
KBDProps &
|
|
1220
|
+
RefAttributes<HTMLDivElement>
|
|
1203
1221
|
>
|
|
1204
1222
|
|
|
1205
1223
|
/**
|
|
1206
1224
|
* @public
|
|
1207
1225
|
*/
|
|
1208
1226
|
export declare interface KBDProps extends BoxProps, RadiusStyleProps {
|
|
1209
|
-
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
1210
1227
|
fontSize?: ResponsiveProp<FontTextSize>
|
|
1211
1228
|
padding?: ResponsiveProp<Space>
|
|
1212
1229
|
}
|
|
@@ -1217,25 +1234,19 @@ export declare interface KBDProps extends BoxProps, RadiusStyleProps {
|
|
|
1217
1234
|
* @public
|
|
1218
1235
|
*/
|
|
1219
1236
|
export declare const Label: ForwardRefExoticComponent<
|
|
1220
|
-
Omit<
|
|
1237
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof LabelProps> &
|
|
1238
|
+
LabelProps &
|
|
1221
1239
|
RefAttributes<HTMLDivElement>
|
|
1222
1240
|
>
|
|
1223
1241
|
|
|
1224
1242
|
/**
|
|
1225
1243
|
* @public
|
|
1226
1244
|
*/
|
|
1227
|
-
export declare interface LabelProps extends FontStyleProps {
|
|
1245
|
+
export declare interface LabelProps extends FontStyleProps, TextOverflowStyleProps {
|
|
1228
1246
|
accent?: boolean
|
|
1229
|
-
|
|
1247
|
+
htmlFor?: string
|
|
1230
1248
|
muted?: boolean
|
|
1231
|
-
size?:
|
|
1232
|
-
/**
|
|
1233
|
-
* Controls how overflowing text is treated.
|
|
1234
|
-
* Use `textOverflow="ellipsis"` to render text as a single line which is concatenated with a `…` symbol.
|
|
1235
|
-
* @beta
|
|
1236
|
-
*/
|
|
1237
|
-
textOverflow?: 'ellipsis'
|
|
1238
|
-
weight?: ThemeFontWeightKey_2
|
|
1249
|
+
size?: ResponsiveProp<LabelSize>
|
|
1239
1250
|
}
|
|
1240
1251
|
|
|
1241
1252
|
/**
|
|
@@ -1243,14 +1254,8 @@ export declare interface LabelProps extends FontStyleProps {
|
|
|
1243
1254
|
* @beta
|
|
1244
1255
|
*/
|
|
1245
1256
|
export declare const LabelSkeleton: ForwardRefExoticComponent<
|
|
1246
|
-
Omit<
|
|
1257
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof LabelSkeletonProps> &
|
|
1247
1258
|
LabelSkeletonProps &
|
|
1248
|
-
Omit<
|
|
1249
|
-
HTMLProps<HTMLDivElement>,
|
|
1250
|
-
'height' | 'width' | 'size' | 'wrap' | 'children' | 'as' | 'rows'
|
|
1251
|
-
>,
|
|
1252
|
-
'ref'
|
|
1253
|
-
> &
|
|
1254
1259
|
RefAttributes<HTMLDivElement>
|
|
1255
1260
|
>
|
|
1256
1261
|
|
|
@@ -1266,7 +1271,8 @@ export declare interface LabelSkeletonProps extends SkeletonProps {
|
|
|
1266
1271
|
* @public
|
|
1267
1272
|
*/
|
|
1268
1273
|
export declare const Layer: ForwardRefExoticComponent<
|
|
1269
|
-
Omit<
|
|
1274
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof LayerProps> &
|
|
1275
|
+
LayerProps &
|
|
1270
1276
|
RefAttributes<HTMLDivElement>
|
|
1271
1277
|
>
|
|
1272
1278
|
|
|
@@ -1292,7 +1298,7 @@ export declare interface LayerProps extends BoxProps {
|
|
|
1292
1298
|
/**
|
|
1293
1299
|
* @public
|
|
1294
1300
|
*/
|
|
1295
|
-
export declare function LayerProvider(props: LayerProviderProps):
|
|
1301
|
+
export declare function LayerProvider(props: LayerProviderProps): ReactElement
|
|
1296
1302
|
|
|
1297
1303
|
export declare namespace LayerProvider {
|
|
1298
1304
|
var displayName: string
|
|
@@ -1302,7 +1308,7 @@ export declare namespace LayerProvider {
|
|
|
1302
1308
|
* @public
|
|
1303
1309
|
*/
|
|
1304
1310
|
export declare interface LayerProviderProps {
|
|
1305
|
-
children?:
|
|
1311
|
+
children?: ReactNode
|
|
1306
1312
|
zOffset?: number | number[]
|
|
1307
1313
|
}
|
|
1308
1314
|
|
|
@@ -1311,7 +1317,6 @@ export declare interface LayerProviderProps {
|
|
|
1311
1317
|
* @beta
|
|
1312
1318
|
*/
|
|
1313
1319
|
export declare interface MediaQueryProps {
|
|
1314
|
-
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
1315
1320
|
media?: number[]
|
|
1316
1321
|
}
|
|
1317
1322
|
|
|
@@ -1329,14 +1334,8 @@ export declare interface _MediaStore {
|
|
|
1329
1334
|
* @public
|
|
1330
1335
|
*/
|
|
1331
1336
|
export declare const Menu: ForwardRefExoticComponent<
|
|
1332
|
-
Omit<
|
|
1337
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof MenuProps> &
|
|
1333
1338
|
MenuProps &
|
|
1334
|
-
Omit<
|
|
1335
|
-
HTMLProps<HTMLDivElement>,
|
|
1336
|
-
'height' | 'width' | 'wrap' | 'role' | 'tabIndex' | 'as' | 'rows'
|
|
1337
|
-
>,
|
|
1338
|
-
'ref'
|
|
1339
|
-
> &
|
|
1340
1339
|
RefAttributes<HTMLDivElement>
|
|
1341
1340
|
>
|
|
1342
1341
|
|
|
@@ -1361,9 +1360,9 @@ export declare interface MenuButtonProps {
|
|
|
1361
1360
|
* @deprecated Use `popover={{boundaryElement: element}}` instead.
|
|
1362
1361
|
*/
|
|
1363
1362
|
boundaryElement?: HTMLElement
|
|
1364
|
-
button:
|
|
1363
|
+
button: ReactElement<Props<ButtonProps, 'button'>>
|
|
1365
1364
|
id: string
|
|
1366
|
-
menu?:
|
|
1365
|
+
menu?: ReactElement
|
|
1367
1366
|
onClose?: () => void
|
|
1368
1367
|
onOpen?: () => void
|
|
1369
1368
|
/**
|
|
@@ -1394,19 +1393,18 @@ export declare interface MenuButtonProps {
|
|
|
1394
1393
|
* @public
|
|
1395
1394
|
*/
|
|
1396
1395
|
export declare const MenuDivider: ForwardRefExoticComponent<
|
|
1397
|
-
Omit<
|
|
1396
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, never> &
|
|
1397
|
+
MenuDividerProps &
|
|
1398
|
+
RefAttributes<HTMLHRElement>
|
|
1398
1399
|
>
|
|
1399
1400
|
|
|
1401
|
+
/** @public */
|
|
1402
|
+
export declare interface MenuDividerProps {}
|
|
1403
|
+
|
|
1400
1404
|
/**
|
|
1401
1405
|
* @public
|
|
1402
1406
|
*/
|
|
1403
|
-
export declare function MenuGroup(
|
|
1404
|
-
props: Omit<
|
|
1405
|
-
React.HTMLProps<HTMLDivElement>,
|
|
1406
|
-
'as' | 'height' | 'popover' | 'ref' | 'rows' | 'tabIndex' | 'width' | 'wrap'
|
|
1407
|
-
> &
|
|
1408
|
-
MenuGroupProps,
|
|
1409
|
-
): React.ReactElement
|
|
1407
|
+
export declare function MenuGroup(props: Props<MenuGroupProps, 'div'>): ReactElement
|
|
1410
1408
|
|
|
1411
1409
|
export declare namespace MenuGroup {
|
|
1412
1410
|
var displayName: string
|
|
@@ -1415,15 +1413,27 @@ export declare namespace MenuGroup {
|
|
|
1415
1413
|
/**
|
|
1416
1414
|
* @public
|
|
1417
1415
|
*/
|
|
1418
|
-
export declare interface MenuGroupProps {
|
|
1419
|
-
|
|
1420
|
-
fontSize?:
|
|
1421
|
-
icon?:
|
|
1422
|
-
|
|
1416
|
+
export declare interface MenuGroupProps extends GapStyleProps {
|
|
1417
|
+
disabled?: boolean
|
|
1418
|
+
fontSize?: ResponsiveProp<FontTextSize>
|
|
1419
|
+
icon?: ElementType | ReactNode
|
|
1420
|
+
menu?: Omit<
|
|
1421
|
+
MenuProps,
|
|
1422
|
+
| 'onClickOutside'
|
|
1423
|
+
| 'onEscape'
|
|
1424
|
+
| 'onItemClick'
|
|
1425
|
+
| 'onKeyDown'
|
|
1426
|
+
| 'onMouseEnter'
|
|
1427
|
+
| 'registerElement'
|
|
1428
|
+
| 'shouldFocus'
|
|
1429
|
+
| 'onBlurCapture'
|
|
1430
|
+
>
|
|
1431
|
+
padding?: ResponsiveProp<Space>
|
|
1423
1432
|
popover?: Omit<PopoverProps, 'content' | 'open'>
|
|
1424
1433
|
radius?: Radius | Radius[]
|
|
1434
|
+
/** @deprecated Use `gap` instead. */
|
|
1425
1435
|
space?: ResponsiveProp<Space>
|
|
1426
|
-
text:
|
|
1436
|
+
text: ReactNode
|
|
1427
1437
|
tone?: SelectableTone
|
|
1428
1438
|
}
|
|
1429
1439
|
|
|
@@ -1431,50 +1441,50 @@ export declare interface MenuGroupProps {
|
|
|
1431
1441
|
* @public
|
|
1432
1442
|
*/
|
|
1433
1443
|
export declare const MenuItem: ForwardRefExoticComponent<
|
|
1434
|
-
MenuItemProps &
|
|
1435
|
-
|
|
1436
|
-
HTMLProps<HTMLDivElement>,
|
|
1437
|
-
'selected' | 'height' | 'width' | 'wrap' | 'tabIndex' | 'ref' | 'as' | 'rows'
|
|
1438
|
-
> &
|
|
1444
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof MenuItemProps> &
|
|
1445
|
+
MenuItemProps &
|
|
1439
1446
|
RefAttributes<HTMLDivElement>
|
|
1440
1447
|
>
|
|
1441
1448
|
|
|
1442
1449
|
/**
|
|
1443
1450
|
* @public
|
|
1444
1451
|
*/
|
|
1445
|
-
export declare interface MenuItemProps extends PaddingStyleProps, RadiusStyleProps {
|
|
1446
|
-
|
|
1452
|
+
export declare interface MenuItemProps extends GapStyleProps, PaddingStyleProps, RadiusStyleProps {
|
|
1453
|
+
disabled?: boolean
|
|
1447
1454
|
fontSize?: number | number[]
|
|
1448
1455
|
hotkeys?: string[]
|
|
1449
|
-
icon?:
|
|
1450
|
-
iconRight?:
|
|
1456
|
+
icon?: ElementType | ReactNode
|
|
1457
|
+
iconRight?: ElementType | ReactNode
|
|
1451
1458
|
pressed?: boolean
|
|
1452
1459
|
selected?: boolean
|
|
1460
|
+
/** @deprecated Use `gap` instead. */
|
|
1453
1461
|
space?: ResponsiveProp<Space>
|
|
1454
|
-
text?:
|
|
1462
|
+
text?: ReactNode
|
|
1455
1463
|
tone?: SelectableTone
|
|
1456
1464
|
}
|
|
1457
1465
|
|
|
1458
1466
|
/**
|
|
1459
1467
|
* @public
|
|
1460
1468
|
*/
|
|
1461
|
-
export declare interface MenuProps extends PaddingStyleProps {
|
|
1469
|
+
export declare interface MenuProps extends PaddingStyleProps, Pick<GapStyleProps, 'gap'> {
|
|
1462
1470
|
/**
|
|
1463
1471
|
* @deprecated Use `shouldFocus="first"` instead.
|
|
1464
1472
|
*/
|
|
1465
|
-
focusFirst?: boolean
|
|
1473
|
+
'focusFirst'?: boolean
|
|
1466
1474
|
/**
|
|
1467
1475
|
* @deprecated Use `shouldFocus="last"` instead.
|
|
1468
1476
|
*/
|
|
1469
|
-
focusLast?: boolean
|
|
1470
|
-
onClickOutside?: (event: MouseEvent) => void
|
|
1471
|
-
onEscape?: () => void
|
|
1472
|
-
onItemClick?: () => void
|
|
1473
|
-
onItemSelect?: (index: number) => void
|
|
1474
|
-
originElement?: HTMLElement | null
|
|
1475
|
-
registerElement?: (el: HTMLElement) => () => void
|
|
1476
|
-
shouldFocus?: 'first' | 'last' | null
|
|
1477
|
-
|
|
1477
|
+
'focusLast'?: boolean
|
|
1478
|
+
'onClickOutside'?: (event: MouseEvent) => void
|
|
1479
|
+
'onEscape'?: () => void
|
|
1480
|
+
'onItemClick'?: () => void
|
|
1481
|
+
'onItemSelect'?: (index: number) => void
|
|
1482
|
+
'originElement'?: HTMLElement | null
|
|
1483
|
+
'registerElement'?: (el: HTMLElement) => () => void
|
|
1484
|
+
'shouldFocus'?: 'first' | 'last' | null
|
|
1485
|
+
/** @deprecated Use `gap` property instead. */
|
|
1486
|
+
'space'?: ResponsiveProp<Space>
|
|
1487
|
+
'aria-labelledby'?: string
|
|
1478
1488
|
}
|
|
1479
1489
|
|
|
1480
1490
|
/**
|
|
@@ -1510,23 +1520,19 @@ export declare type Placement =
|
|
|
1510
1520
|
| 'left-start'
|
|
1511
1521
|
| 'left-end'
|
|
1512
1522
|
|
|
1523
|
+
export declare interface PolymorphicProps {
|
|
1524
|
+
as?: ElementType
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1513
1527
|
/**
|
|
1514
1528
|
* The `Popover` component is used to display some content on top of another.
|
|
1515
1529
|
*
|
|
1516
1530
|
* @public
|
|
1517
1531
|
*/
|
|
1518
|
-
export declare const Popover:
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
Omit<
|
|
1523
|
-
HTMLProps<HTMLDivElement>,
|
|
1524
|
-
'content' | 'height' | 'width' | 'wrap' | 'children' | 'as' | 'rows'
|
|
1525
|
-
>,
|
|
1526
|
-
'ref'
|
|
1527
|
-
> &
|
|
1528
|
-
RefAttributes<HTMLDivElement>
|
|
1529
|
-
>
|
|
1532
|
+
export declare const Popover: NamedExoticComponent<
|
|
1533
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof PopoverProps> &
|
|
1534
|
+
PopoverProps &
|
|
1535
|
+
RefAttributes<HTMLDivElement>
|
|
1530
1536
|
>
|
|
1531
1537
|
|
|
1532
1538
|
/**
|
|
@@ -1535,10 +1541,7 @@ export declare const Popover: MemoExoticComponent<
|
|
|
1535
1541
|
export declare type PopoverMargins = [number, number, number, number]
|
|
1536
1542
|
|
|
1537
1543
|
/** @public */
|
|
1538
|
-
export declare interface PopoverProps
|
|
1539
|
-
extends Omit<LayerProps, 'width'>,
|
|
1540
|
-
RadiusStyleProps,
|
|
1541
|
-
ResponsiveShadowProps {
|
|
1544
|
+
export declare interface PopoverProps extends CardProps, LayerProps {
|
|
1542
1545
|
/** @beta */
|
|
1543
1546
|
__unstable_margins?: PopoverMargins
|
|
1544
1547
|
/**
|
|
@@ -1551,20 +1554,22 @@ export declare interface PopoverProps
|
|
|
1551
1554
|
arrow?: boolean
|
|
1552
1555
|
/** @deprecated Use `floatingBoundary` and/or `referenceBoundary` instead */
|
|
1553
1556
|
boundaryElement?: HTMLElement | null
|
|
1554
|
-
children?:
|
|
1557
|
+
children?: ReactElement<{
|
|
1558
|
+
ref: ForwardedRef<HTMLElement>
|
|
1559
|
+
}>
|
|
1555
1560
|
/**
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1561
|
+
* When `true`, prevent overflow within the current boundary:
|
|
1562
|
+
* - by flipping on its side axis
|
|
1563
|
+
* - by resizing
|
|
1564
|
+
*
|
|
1565
|
+
* Note that:
|
|
1566
|
+
* - setting `preventOverflow` to `true` also prevents overflow on its side axis
|
|
1567
|
+
* - setting `matchReferenceWidth` to `true` also causes the popover to resize
|
|
1568
|
+
*
|
|
1569
|
+
* @defaultValue false
|
|
1570
|
+
*/
|
|
1566
1571
|
constrainSize?: boolean
|
|
1567
|
-
content?:
|
|
1572
|
+
content?: ReactNode
|
|
1568
1573
|
disabled?: boolean
|
|
1569
1574
|
fallbackPlacements?: Placement[]
|
|
1570
1575
|
floatingBoundary?: HTMLElement | null
|
|
@@ -1577,9 +1582,14 @@ export declare interface PopoverProps
|
|
|
1577
1582
|
* @defaultValue false
|
|
1578
1583
|
*/
|
|
1579
1584
|
matchReferenceWidth?: boolean
|
|
1585
|
+
/**
|
|
1586
|
+
* When true, blocks all pointer interaction with elements beneath the popover until closed.
|
|
1587
|
+
*
|
|
1588
|
+
* @beta
|
|
1589
|
+
* @defaultValue false
|
|
1590
|
+
*/
|
|
1591
|
+
modal?: boolean
|
|
1580
1592
|
open?: boolean
|
|
1581
|
-
overflow?: BoxOverflow
|
|
1582
|
-
padding?: number | number[]
|
|
1583
1593
|
placement?: Placement
|
|
1584
1594
|
/** Whether or not to render the popover in a portal element. */
|
|
1585
1595
|
portal?: boolean | string
|
|
@@ -1590,13 +1600,10 @@ export declare interface PopoverProps
|
|
|
1590
1600
|
* The children of the popover won't be rendered.
|
|
1591
1601
|
*/
|
|
1592
1602
|
referenceElement?: HTMLElement | null
|
|
1593
|
-
scheme?: ThemeColorSchemeKey_2
|
|
1594
|
-
tone?: CardTone
|
|
1595
1603
|
/** @beta */
|
|
1596
1604
|
updateRef?:
|
|
1597
1605
|
| MutableRefObject<PopoverUpdateCallback | undefined>
|
|
1598
1606
|
| RefCallback<PopoverUpdateCallback | undefined>
|
|
1599
|
-
width?: PopoverWidth | PopoverWidth[]
|
|
1600
1607
|
}
|
|
1601
1608
|
|
|
1602
1609
|
/** @beta */
|
|
@@ -1608,7 +1615,7 @@ export declare type PopoverWidth = number | 'auto'
|
|
|
1608
1615
|
/**
|
|
1609
1616
|
* @public
|
|
1610
1617
|
*/
|
|
1611
|
-
export declare function Portal(props: PortalProps):
|
|
1618
|
+
export declare function Portal(props: PortalProps): ReactPortal | null
|
|
1612
1619
|
|
|
1613
1620
|
export declare namespace Portal {
|
|
1614
1621
|
var displayName: string
|
|
@@ -1628,7 +1635,7 @@ export declare interface PortalContextValue {
|
|
|
1628
1635
|
* @public
|
|
1629
1636
|
*/
|
|
1630
1637
|
export declare interface PortalProps {
|
|
1631
|
-
children:
|
|
1638
|
+
children: ReactNode
|
|
1632
1639
|
/**
|
|
1633
1640
|
* @beta This API might change. DO NOT USE IN PRODUCTION.
|
|
1634
1641
|
*/
|
|
@@ -1638,7 +1645,7 @@ export declare interface PortalProps {
|
|
|
1638
1645
|
/**
|
|
1639
1646
|
* @public
|
|
1640
1647
|
*/
|
|
1641
|
-
export declare function PortalProvider(props: PortalProviderProps):
|
|
1648
|
+
export declare function PortalProvider(props: PortalProviderProps): ReactElement
|
|
1642
1649
|
|
|
1643
1650
|
export declare namespace PortalProvider {
|
|
1644
1651
|
var displayName: string
|
|
@@ -1652,7 +1659,7 @@ export declare interface PortalProviderProps {
|
|
|
1652
1659
|
* @deprecated Use `<BoundaryElementProvider element={...} />` instead
|
|
1653
1660
|
*/
|
|
1654
1661
|
boundaryElement?: HTMLElement | null
|
|
1655
|
-
children:
|
|
1662
|
+
children: ReactNode
|
|
1656
1663
|
element?: HTMLElement | null
|
|
1657
1664
|
/**
|
|
1658
1665
|
* @beta
|
|
@@ -1660,10 +1667,13 @@ export declare interface PortalProviderProps {
|
|
|
1660
1667
|
__unstable_elements?: Record<string, HTMLElement | null | undefined>
|
|
1661
1668
|
}
|
|
1662
1669
|
|
|
1663
|
-
/**
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1670
|
+
/** @public */
|
|
1671
|
+
export declare type Props<P extends {} = {}, E extends ElementType = ElementType> = Assign<
|
|
1672
|
+
ElementProps<E> & PolymorphicProps,
|
|
1673
|
+
P
|
|
1674
|
+
>
|
|
1675
|
+
|
|
1676
|
+
export {px}
|
|
1667
1677
|
|
|
1668
1678
|
/**
|
|
1669
1679
|
* The `Radio` component allows the user to select one option from a set.
|
|
@@ -1671,7 +1681,8 @@ export declare function px(pixelValue: number): string | 0
|
|
|
1671
1681
|
* @public
|
|
1672
1682
|
*/
|
|
1673
1683
|
export declare const Radio: ForwardRefExoticComponent<
|
|
1674
|
-
Omit<
|
|
1684
|
+
Omit<ElementProps_2<'input'> & PolymorphicProps_2, 'customValidity'> &
|
|
1685
|
+
RadioProps &
|
|
1675
1686
|
RefAttributes<HTMLInputElement>
|
|
1676
1687
|
>
|
|
1677
1688
|
|
|
@@ -1694,10 +1705,7 @@ export declare function _raf(fn: () => void): () => void
|
|
|
1694
1705
|
*/
|
|
1695
1706
|
export declare function _raf2(fn: () => void): () => void
|
|
1696
1707
|
|
|
1697
|
-
|
|
1698
|
-
* @public
|
|
1699
|
-
*/
|
|
1700
|
-
export declare function rem(pixelValue: number): string | 0
|
|
1708
|
+
export {rem}
|
|
1701
1709
|
|
|
1702
1710
|
/**
|
|
1703
1711
|
* @internal
|
|
@@ -1706,6 +1714,7 @@ export declare const _ResizeObserver: typeof ResizeObserver
|
|
|
1706
1714
|
|
|
1707
1715
|
/**
|
|
1708
1716
|
* @internal
|
|
1717
|
+
* @deprecated do not use
|
|
1709
1718
|
*/
|
|
1710
1719
|
export declare function _responsive<T>(
|
|
1711
1720
|
media: number[],
|
|
@@ -1743,14 +1752,6 @@ export declare interface ResponsiveBoxProps {
|
|
|
1743
1752
|
sizing?: BoxSizing | BoxSizing[]
|
|
1744
1753
|
}
|
|
1745
1754
|
|
|
1746
|
-
/**
|
|
1747
|
-
* Get responsive CSS for the `code` font style.
|
|
1748
|
-
* @internal
|
|
1749
|
-
*/
|
|
1750
|
-
export declare function responsiveCodeFontStyle(
|
|
1751
|
-
props: ResponsiveFontStyleProps & ThemeProps,
|
|
1752
|
-
): CSSObject[]
|
|
1753
|
-
|
|
1754
1755
|
/**
|
|
1755
1756
|
* @public
|
|
1756
1757
|
* @deprecated
|
|
@@ -1771,24 +1772,6 @@ export declare interface ResponsiveFlexProps {
|
|
|
1771
1772
|
wrap?: FlexWrap | FlexWrap[]
|
|
1772
1773
|
}
|
|
1773
1774
|
|
|
1774
|
-
/**
|
|
1775
|
-
* @internal
|
|
1776
|
-
*/
|
|
1777
|
-
export declare interface ResponsiveFontSizeStyleProps {
|
|
1778
|
-
$size: number[]
|
|
1779
|
-
}
|
|
1780
|
-
|
|
1781
|
-
/**
|
|
1782
|
-
* @internal
|
|
1783
|
-
*/
|
|
1784
|
-
export declare interface ResponsiveFontStyleProps
|
|
1785
|
-
extends FontWeightStyleProps,
|
|
1786
|
-
ResponsiveFontSizeStyleProps,
|
|
1787
|
-
ResponsiveTextAlignStyleProps {
|
|
1788
|
-
$accent?: boolean
|
|
1789
|
-
$muted?: boolean
|
|
1790
|
-
}
|
|
1791
|
-
|
|
1792
1775
|
/**
|
|
1793
1776
|
* @public
|
|
1794
1777
|
* @deprecated
|
|
@@ -1814,22 +1797,6 @@ export declare interface ResponsiveGridProps {
|
|
|
1814
1797
|
rows?: number | number[]
|
|
1815
1798
|
}
|
|
1816
1799
|
|
|
1817
|
-
/**
|
|
1818
|
-
* Get responsive CSS for the `heading` font style.
|
|
1819
|
-
* @internal
|
|
1820
|
-
*/
|
|
1821
|
-
export declare function responsiveHeadingFont(
|
|
1822
|
-
props: ResponsiveFontStyleProps & ThemeProps,
|
|
1823
|
-
): CSSObject[]
|
|
1824
|
-
|
|
1825
|
-
/**
|
|
1826
|
-
* Get responsive CSS for the `label` font style.
|
|
1827
|
-
* @internal
|
|
1828
|
-
*/
|
|
1829
|
-
export declare function responsiveLabelFont(
|
|
1830
|
-
props: ResponsiveFontStyleProps & ThemeProps,
|
|
1831
|
-
): CSSObject[]
|
|
1832
|
-
|
|
1833
1800
|
/**
|
|
1834
1801
|
* @public
|
|
1835
1802
|
* @deprecated
|
|
@@ -1877,29 +1844,6 @@ export declare interface ResponsiveShadowProps {
|
|
|
1877
1844
|
shadow?: number | number[]
|
|
1878
1845
|
}
|
|
1879
1846
|
|
|
1880
|
-
/**
|
|
1881
|
-
* Get responsive text align styles.
|
|
1882
|
-
* @internal
|
|
1883
|
-
*/
|
|
1884
|
-
export declare function responsiveTextAlignStyle(
|
|
1885
|
-
props: ResponsiveTextAlignStyleProps & ThemeProps,
|
|
1886
|
-
): CSSObject[]
|
|
1887
|
-
|
|
1888
|
-
/**
|
|
1889
|
-
* @internal
|
|
1890
|
-
*/
|
|
1891
|
-
export declare interface ResponsiveTextAlignStyleProps {
|
|
1892
|
-
$align: TextAlign[]
|
|
1893
|
-
}
|
|
1894
|
-
|
|
1895
|
-
/**
|
|
1896
|
-
* Get responsive CSS for the `text` font style.
|
|
1897
|
-
* @internal
|
|
1898
|
-
*/
|
|
1899
|
-
export declare function responsiveTextFont(
|
|
1900
|
-
props: ResponsiveFontStyleProps & ThemeProps,
|
|
1901
|
-
): CSSObject[]
|
|
1902
|
-
|
|
1903
1847
|
/**
|
|
1904
1848
|
* @public
|
|
1905
1849
|
* @deprecated
|
|
@@ -1939,6 +1883,8 @@ export declare const rgbToHex: typeof rgbToHex_2
|
|
|
1939
1883
|
*/
|
|
1940
1884
|
export declare const rgbToHsl: typeof rgbToHsl_2
|
|
1941
1885
|
|
|
1886
|
+
export declare function RootClassNames(props: {element: HTMLElement}): null
|
|
1887
|
+
|
|
1942
1888
|
/**
|
|
1943
1889
|
* @public
|
|
1944
1890
|
* @deprecated Use `RootTheme` from `@sanity/ui/theme` instead.
|
|
@@ -1958,24 +1904,25 @@ export {screen_2 as screen}
|
|
|
1958
1904
|
* @public
|
|
1959
1905
|
*/
|
|
1960
1906
|
export declare const Select: ForwardRefExoticComponent<
|
|
1961
|
-
Omit<
|
|
1907
|
+
Omit<ElementProps_2<'select'> & PolymorphicProps_2, keyof SelectProps> &
|
|
1908
|
+
SelectProps &
|
|
1962
1909
|
RefAttributes<HTMLSelectElement>
|
|
1963
1910
|
>
|
|
1964
1911
|
|
|
1965
1912
|
/**
|
|
1966
1913
|
* @public
|
|
1914
|
+
* @deprecated Use `ThemeColorStateToneKey` instead
|
|
1967
1915
|
*/
|
|
1968
1916
|
export declare type SelectableTone = ThemeColorStateToneKey
|
|
1969
1917
|
|
|
1970
1918
|
/**
|
|
1971
1919
|
* @public
|
|
1972
1920
|
*/
|
|
1973
|
-
export declare interface SelectProps {
|
|
1974
|
-
fontSize?: number | number[]
|
|
1975
|
-
padding?: number | number[]
|
|
1976
|
-
radius?: Radius | Radius[]
|
|
1977
|
-
space?: number | number[]
|
|
1921
|
+
export declare interface SelectProps extends SelectStyleProps {
|
|
1978
1922
|
customValidity?: string
|
|
1923
|
+
readOnly?: boolean
|
|
1924
|
+
/** @deprecated Use `gap` instead. */
|
|
1925
|
+
space?: ResponsiveProp<Space>
|
|
1979
1926
|
}
|
|
1980
1927
|
|
|
1981
1928
|
/**
|
|
@@ -1983,10 +1930,8 @@ export declare interface SelectProps {
|
|
|
1983
1930
|
* @beta
|
|
1984
1931
|
*/
|
|
1985
1932
|
export declare const Skeleton: ForwardRefExoticComponent<
|
|
1986
|
-
Omit<
|
|
1987
|
-
SkeletonProps &
|
|
1988
|
-
'ref'
|
|
1989
|
-
> &
|
|
1933
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof SkeletonProps> &
|
|
1934
|
+
SkeletonProps &
|
|
1990
1935
|
RefAttributes<HTMLDivElement>
|
|
1991
1936
|
>
|
|
1992
1937
|
|
|
@@ -2005,7 +1950,8 @@ export declare interface SkeletonProps extends SkeletonStyleProps, Omit<BoxProps
|
|
|
2005
1950
|
* @public
|
|
2006
1951
|
*/
|
|
2007
1952
|
export declare const Spinner: ForwardRefExoticComponent<
|
|
2008
|
-
Omit<
|
|
1953
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof SpinnerProps> &
|
|
1954
|
+
SpinnerProps &
|
|
2009
1955
|
RefAttributes<HTMLDivElement>
|
|
2010
1956
|
>
|
|
2011
1957
|
|
|
@@ -2021,7 +1967,8 @@ export declare interface SpinnerProps {
|
|
|
2021
1967
|
* @public
|
|
2022
1968
|
*/
|
|
2023
1969
|
export declare const SrOnly: ForwardRefExoticComponent<
|
|
2024
|
-
Omit<
|
|
1970
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, 'children'> &
|
|
1971
|
+
SrOnlyProps &
|
|
2025
1972
|
RefAttributes<HTMLDivElement>
|
|
2026
1973
|
>
|
|
2027
1974
|
|
|
@@ -2029,8 +1976,7 @@ export declare const SrOnly: ForwardRefExoticComponent<
|
|
|
2029
1976
|
* @public
|
|
2030
1977
|
*/
|
|
2031
1978
|
export declare interface SrOnlyProps {
|
|
2032
|
-
|
|
2033
|
-
children?: React.ReactNode
|
|
1979
|
+
children?: ReactNode
|
|
2034
1980
|
}
|
|
2035
1981
|
|
|
2036
1982
|
/**
|
|
@@ -2039,8 +1985,8 @@ export declare interface SrOnlyProps {
|
|
|
2039
1985
|
* @public
|
|
2040
1986
|
*/
|
|
2041
1987
|
export declare const Stack: ForwardRefExoticComponent<
|
|
2042
|
-
StackProps &
|
|
2043
|
-
|
|
1988
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof StackProps> &
|
|
1989
|
+
StackProps &
|
|
2044
1990
|
RefAttributes<HTMLDivElement>
|
|
2045
1991
|
>
|
|
2046
1992
|
|
|
@@ -2048,8 +1994,11 @@ export declare const Stack: ForwardRefExoticComponent<
|
|
|
2048
1994
|
* @public
|
|
2049
1995
|
*/
|
|
2050
1996
|
export declare interface StackProps
|
|
2051
|
-
extends Omit<
|
|
2052
|
-
|
|
1997
|
+
extends Omit<
|
|
1998
|
+
BoxProps,
|
|
1999
|
+
'align' | 'columns' | 'direction' | 'display' | 'gapX' | 'gapY' | 'justify'
|
|
2000
|
+
> {
|
|
2001
|
+
/** @deprecated Use `gap` instead. */
|
|
2053
2002
|
space?: ResponsiveProp<Space>
|
|
2054
2003
|
}
|
|
2055
2004
|
|
|
@@ -2057,7 +2006,7 @@ export declare interface StackProps
|
|
|
2057
2006
|
* @public
|
|
2058
2007
|
* @deprecated Use `buildTheme` from `@sanity/ui/theme` instead.
|
|
2059
2008
|
*/
|
|
2060
|
-
export declare const studioTheme:
|
|
2009
|
+
export declare const studioTheme: RootTheme_2
|
|
2061
2010
|
|
|
2062
2011
|
/**
|
|
2063
2012
|
* @public
|
|
@@ -2065,6 +2014,8 @@ export declare const studioTheme: BaseTheme_2
|
|
|
2065
2014
|
*/
|
|
2066
2015
|
export declare type Styles = ThemeStyles
|
|
2067
2016
|
|
|
2017
|
+
export declare function StyleTags(props: {theme?: Theme_v3}): ReactNode
|
|
2018
|
+
|
|
2068
2019
|
/**
|
|
2069
2020
|
* The `Switch` component allows the user to toggle a setting on and off.
|
|
2070
2021
|
*
|
|
@@ -2073,7 +2024,8 @@ export declare type Styles = ThemeStyles
|
|
|
2073
2024
|
* @public
|
|
2074
2025
|
*/
|
|
2075
2026
|
export declare const Switch: ForwardRefExoticComponent<
|
|
2076
|
-
Omit<
|
|
2027
|
+
Omit<ElementProps_2<'input'> & PolymorphicProps_2, 'indeterminate'> &
|
|
2028
|
+
SwitchProps &
|
|
2077
2029
|
RefAttributes<HTMLInputElement>
|
|
2078
2030
|
>
|
|
2079
2031
|
|
|
@@ -2088,14 +2040,8 @@ export declare interface SwitchProps {
|
|
|
2088
2040
|
* @public
|
|
2089
2041
|
*/
|
|
2090
2042
|
export declare const Tab: ForwardRefExoticComponent<
|
|
2091
|
-
Omit<
|
|
2043
|
+
Omit<ElementProps_2<'button'> & PolymorphicProps_2, keyof TabProps> &
|
|
2092
2044
|
TabProps &
|
|
2093
|
-
Omit<
|
|
2094
|
-
HTMLProps<HTMLButtonElement>,
|
|
2095
|
-
'label' | 'id' | 'type' | 'width' | 'aria-controls' | 'as'
|
|
2096
|
-
>,
|
|
2097
|
-
'ref'
|
|
2098
|
-
> &
|
|
2099
2045
|
RefAttributes<HTMLButtonElement>
|
|
2100
2046
|
>
|
|
2101
2047
|
|
|
@@ -2103,25 +2049,33 @@ export declare const Tab: ForwardRefExoticComponent<
|
|
|
2103
2049
|
* @public
|
|
2104
2050
|
*/
|
|
2105
2051
|
export declare const TabList: ForwardRefExoticComponent<
|
|
2106
|
-
Omit<
|
|
2052
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof TabListProps> &
|
|
2053
|
+
TabListProps &
|
|
2107
2054
|
RefAttributes<HTMLDivElement>
|
|
2108
2055
|
>
|
|
2109
2056
|
|
|
2057
|
+
/**
|
|
2058
|
+
* @public
|
|
2059
|
+
*/
|
|
2060
|
+
export declare type TabListChild =
|
|
2061
|
+
| ReactElement<Props<TabProps, 'button'>>
|
|
2062
|
+
| null
|
|
2063
|
+
| undefined
|
|
2064
|
+
| false
|
|
2065
|
+
|
|
2110
2066
|
/**
|
|
2111
2067
|
* @public
|
|
2112
2068
|
*/
|
|
2113
2069
|
export declare interface TabListProps extends Omit<InlineProps, 'as' | 'height'> {
|
|
2114
|
-
children:
|
|
2070
|
+
children: TabListChild[]
|
|
2115
2071
|
}
|
|
2116
2072
|
|
|
2117
2073
|
/**
|
|
2118
2074
|
* @public
|
|
2119
2075
|
*/
|
|
2120
2076
|
export declare const TabPanel: ForwardRefExoticComponent<
|
|
2121
|
-
Omit<
|
|
2122
|
-
TabPanelProps &
|
|
2123
|
-
'ref'
|
|
2124
|
-
> &
|
|
2077
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof TabPanelProps> &
|
|
2078
|
+
TabPanelProps &
|
|
2125
2079
|
RefAttributes<HTMLDivElement>
|
|
2126
2080
|
>
|
|
2127
2081
|
|
|
@@ -2141,15 +2095,15 @@ export declare interface TabPanelProps extends BoxProps {
|
|
|
2141
2095
|
*/
|
|
2142
2096
|
export declare interface TabProps {
|
|
2143
2097
|
/**
|
|
2144
|
-
* The `id` of the
|
|
2098
|
+
* The `id` of the corresponding `TabPanel` component.
|
|
2145
2099
|
*/
|
|
2146
2100
|
'aria-controls': string
|
|
2147
2101
|
'id': string
|
|
2148
|
-
'icon'?:
|
|
2102
|
+
'icon'?: ElementType | ReactNode
|
|
2149
2103
|
'focused'?: boolean
|
|
2150
2104
|
'fontSize'?: ResponsiveProp<FontTextSize>
|
|
2151
|
-
'label'?:
|
|
2152
|
-
'padding'?:
|
|
2105
|
+
'label'?: ReactNode
|
|
2106
|
+
'padding'?: ResponsiveProp<Space>
|
|
2153
2107
|
'selected'?: boolean
|
|
2154
2108
|
'tone'?: ButtonTone
|
|
2155
2109
|
}
|
|
@@ -2160,7 +2114,8 @@ export declare interface TabProps {
|
|
|
2160
2114
|
* @public
|
|
2161
2115
|
*/
|
|
2162
2116
|
declare const Text_2: ForwardRefExoticComponent<
|
|
2163
|
-
Omit<
|
|
2117
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof TextProps> &
|
|
2118
|
+
TextProps &
|
|
2164
2119
|
RefAttributes<HTMLDivElement>
|
|
2165
2120
|
>
|
|
2166
2121
|
export {Text_2 as Text}
|
|
@@ -2170,26 +2125,25 @@ export {TextAlign}
|
|
|
2170
2125
|
/**
|
|
2171
2126
|
* A multiline text input.
|
|
2172
2127
|
*
|
|
2173
|
-
|
|
2174
2128
|
* @public
|
|
2175
2129
|
*/
|
|
2176
2130
|
export declare const TextArea: ForwardRefExoticComponent<
|
|
2177
|
-
Omit<
|
|
2131
|
+
Omit<ElementProps_2<'textarea'> & PolymorphicProps_2, keyof TextAreaProps> &
|
|
2132
|
+
TextAreaProps &
|
|
2178
2133
|
RefAttributes<HTMLTextAreaElement>
|
|
2179
2134
|
>
|
|
2180
2135
|
|
|
2181
2136
|
/**
|
|
2182
2137
|
* @public
|
|
2183
2138
|
*/
|
|
2184
|
-
export declare interface TextAreaProps extends
|
|
2139
|
+
export declare interface TextAreaProps extends TextAreaStyleProps {
|
|
2185
2140
|
/**
|
|
2186
2141
|
* @beta
|
|
2187
2142
|
*/
|
|
2188
2143
|
__unstable_disableFocusRing?: boolean
|
|
2189
|
-
border?: boolean
|
|
2190
2144
|
customValidity?: string
|
|
2191
|
-
|
|
2192
|
-
|
|
2145
|
+
/** @deprecated Use `gap` instead. */
|
|
2146
|
+
space?: ResponsiveProp<Space>
|
|
2193
2147
|
weight?: ThemeFontWeightKey_2
|
|
2194
2148
|
}
|
|
2195
2149
|
|
|
@@ -2199,41 +2153,42 @@ export declare interface TextAreaProps extends ResponsiveRadiusProps {
|
|
|
2199
2153
|
* @public
|
|
2200
2154
|
*/
|
|
2201
2155
|
export declare const TextInput: ForwardRefExoticComponent<
|
|
2202
|
-
Omit<
|
|
2156
|
+
Omit<ElementProps_2<'input'> & PolymorphicProps_2, keyof TextInputProps> &
|
|
2157
|
+
TextInputProps &
|
|
2203
2158
|
RefAttributes<HTMLInputElement>
|
|
2204
2159
|
>
|
|
2205
2160
|
|
|
2206
2161
|
/**
|
|
2207
2162
|
* @public
|
|
2208
2163
|
*/
|
|
2209
|
-
export declare type TextInputClearButtonProps = Omit<
|
|
2210
|
-
|
|
2164
|
+
export declare type TextInputClearButtonProps = Omit<
|
|
2165
|
+
Props<ButtonProps, 'button'>,
|
|
2166
|
+
'as' | 'onClick' | 'onMouseDown'
|
|
2167
|
+
>
|
|
2211
2168
|
|
|
2212
2169
|
/**
|
|
2213
2170
|
* @public
|
|
2214
2171
|
*/
|
|
2215
|
-
export declare interface TextInputProps extends
|
|
2172
|
+
export declare interface TextInputProps extends InputStyleProps {
|
|
2216
2173
|
/**
|
|
2217
2174
|
* @beta
|
|
2218
2175
|
*/
|
|
2219
2176
|
__unstable_disableFocusRing?: boolean
|
|
2220
|
-
border?: boolean
|
|
2221
2177
|
/**
|
|
2222
2178
|
* @beta
|
|
2223
2179
|
*/
|
|
2224
2180
|
clearButton?: boolean | TextInputClearButtonProps
|
|
2225
2181
|
customValidity?: string
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
iconRight?: React.ElementType | React.ReactNode
|
|
2182
|
+
icon?: ElementType | ReactNode
|
|
2183
|
+
iconRight?: ElementType | ReactNode
|
|
2229
2184
|
/**
|
|
2230
2185
|
* @beta
|
|
2231
2186
|
*/
|
|
2232
2187
|
onClear?: () => void
|
|
2233
|
-
|
|
2234
|
-
|
|
2188
|
+
prefix?: ReactNode
|
|
2189
|
+
/** @deprecated Use `gap` instead. */
|
|
2235
2190
|
space?: ResponsiveProp<Space>
|
|
2236
|
-
suffix?:
|
|
2191
|
+
suffix?: ReactNode
|
|
2237
2192
|
type?: TextInputType
|
|
2238
2193
|
weight?: ThemeFontWeightKey_2
|
|
2239
2194
|
}
|
|
@@ -2242,6 +2197,7 @@ export declare interface TextInputProps extends RadiusStyleProps {
|
|
|
2242
2197
|
* @public
|
|
2243
2198
|
*/
|
|
2244
2199
|
export declare type TextInputType =
|
|
2200
|
+
| 'search'
|
|
2245
2201
|
| 'date'
|
|
2246
2202
|
| 'datetime-local'
|
|
2247
2203
|
| 'email'
|
|
@@ -2258,18 +2214,8 @@ export declare type TextInputType =
|
|
|
2258
2214
|
/**
|
|
2259
2215
|
* @public
|
|
2260
2216
|
*/
|
|
2261
|
-
export declare interface TextProps extends TextStyleProps {
|
|
2262
|
-
|
|
2263
|
-
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
2264
|
-
/** When `true` the text color will be muted. */
|
|
2265
|
-
muted?: boolean
|
|
2266
|
-
/**
|
|
2267
|
-
* Controls how overflowing text is treated.
|
|
2268
|
-
* Use `textOverflow="ellipsis"` to render text as a single line which is concatenated with a `…` symbol.
|
|
2269
|
-
* @beta
|
|
2270
|
-
*/
|
|
2271
|
-
textOverflow?: 'ellipsis' | 'none'
|
|
2272
|
-
weight?: ThemeFontWeightKey_2
|
|
2217
|
+
export declare interface TextProps extends TextStyleProps, TextOverflowStyleProps {
|
|
2218
|
+
htmlFor?: string
|
|
2273
2219
|
}
|
|
2274
2220
|
|
|
2275
2221
|
/**
|
|
@@ -2277,14 +2223,8 @@ export declare interface TextProps extends TextStyleProps {
|
|
|
2277
2223
|
* @beta
|
|
2278
2224
|
*/
|
|
2279
2225
|
export declare const TextSkeleton: ForwardRefExoticComponent<
|
|
2280
|
-
Omit<
|
|
2226
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof TextSkeletonProps> &
|
|
2281
2227
|
TextSkeletonProps &
|
|
2282
|
-
Omit<
|
|
2283
|
-
HTMLProps<HTMLDivElement>,
|
|
2284
|
-
'height' | 'width' | 'size' | 'wrap' | 'children' | 'as' | 'rows'
|
|
2285
|
-
>,
|
|
2286
|
-
'ref'
|
|
2287
|
-
> &
|
|
2288
2228
|
RefAttributes<HTMLDivElement>
|
|
2289
2229
|
>
|
|
2290
2230
|
|
|
@@ -2345,7 +2285,7 @@ export {ThemeColorName}
|
|
|
2345
2285
|
/**
|
|
2346
2286
|
* @public
|
|
2347
2287
|
*/
|
|
2348
|
-
export declare function ThemeColorProvider(props: ThemeColorProviderProps):
|
|
2288
|
+
export declare function ThemeColorProvider(props: ThemeColorProviderProps): ReactElement
|
|
2349
2289
|
|
|
2350
2290
|
export declare namespace ThemeColorProvider {
|
|
2351
2291
|
var displayName: string
|
|
@@ -2355,7 +2295,7 @@ export declare namespace ThemeColorProvider {
|
|
|
2355
2295
|
* @public
|
|
2356
2296
|
*/
|
|
2357
2297
|
export declare interface ThemeColorProviderProps {
|
|
2358
|
-
children?:
|
|
2298
|
+
children?: ReactNode
|
|
2359
2299
|
scheme?: ThemeColorSchemeKey_2
|
|
2360
2300
|
tone?: ThemeColorCardToneKey
|
|
2361
2301
|
}
|
|
@@ -2447,17 +2387,10 @@ export {ThemeInput}
|
|
|
2447
2387
|
*/
|
|
2448
2388
|
export declare type ThemeLayer = ThemeLayer_2
|
|
2449
2389
|
|
|
2450
|
-
/**
|
|
2451
|
-
* @internal
|
|
2452
|
-
*/
|
|
2453
|
-
export declare interface ThemeProps {
|
|
2454
|
-
theme: Theme_2
|
|
2455
|
-
}
|
|
2456
|
-
|
|
2457
2390
|
/**
|
|
2458
2391
|
* @public
|
|
2459
2392
|
*/
|
|
2460
|
-
export declare function ThemeProvider(props: ThemeProviderProps):
|
|
2393
|
+
export declare function ThemeProvider(props: ThemeProviderProps): ReactElement
|
|
2461
2394
|
|
|
2462
2395
|
export declare namespace ThemeProvider {
|
|
2463
2396
|
var displayName: string
|
|
@@ -2467,7 +2400,7 @@ export declare namespace ThemeProvider {
|
|
|
2467
2400
|
* @public
|
|
2468
2401
|
*/
|
|
2469
2402
|
export declare interface ThemeProviderProps {
|
|
2470
|
-
children?:
|
|
2403
|
+
children?: ReactNode
|
|
2471
2404
|
scheme?: ThemeColorSchemeKey_2
|
|
2472
2405
|
theme?: RootTheme_2
|
|
2473
2406
|
tone?: ThemeColorCardToneKey
|
|
@@ -2487,12 +2420,11 @@ export declare type ThemeShadow = ThemeShadow_2
|
|
|
2487
2420
|
* @public
|
|
2488
2421
|
*/
|
|
2489
2422
|
export declare function Toast(
|
|
2490
|
-
props:
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
): React.ReactElement
|
|
2423
|
+
props: Omit<
|
|
2424
|
+
Props<ToastProps, 'div'>,
|
|
2425
|
+
'onDrag' | 'onDragEnd' | 'onDragStart' | 'onAnimationStart'
|
|
2426
|
+
>,
|
|
2427
|
+
): ReactElement
|
|
2496
2428
|
|
|
2497
2429
|
export declare namespace Toast {
|
|
2498
2430
|
var displayName: string
|
|
@@ -2503,19 +2435,32 @@ export declare namespace Toast {
|
|
|
2503
2435
|
*/
|
|
2504
2436
|
export declare interface ToastContextValue {
|
|
2505
2437
|
version: 0.0
|
|
2438
|
+
/**
|
|
2439
|
+
* Creates or updates a toast notification.
|
|
2440
|
+
* If a toast with the same ID already exists, it will be updated.
|
|
2441
|
+
* If an ID is not provided, a random one will be generated.
|
|
2442
|
+
* The returned ID can be used to programatically update a toast.
|
|
2443
|
+
*/
|
|
2506
2444
|
push: (params: ToastParams) => string
|
|
2507
2445
|
}
|
|
2508
2446
|
|
|
2447
|
+
/**
|
|
2448
|
+
* @public
|
|
2449
|
+
*/
|
|
2450
|
+
declare interface ToastLayerProps extends GapStyleProps, PaddingStyleProps {
|
|
2451
|
+
children: ReactNode
|
|
2452
|
+
}
|
|
2453
|
+
|
|
2509
2454
|
/**
|
|
2510
2455
|
* @public
|
|
2511
2456
|
*/
|
|
2512
2457
|
export declare interface ToastParams {
|
|
2513
2458
|
closable?: boolean
|
|
2514
|
-
description?:
|
|
2459
|
+
description?: ReactNode
|
|
2515
2460
|
duration?: number
|
|
2516
2461
|
id?: string
|
|
2517
2462
|
onClose?: () => void
|
|
2518
|
-
title?:
|
|
2463
|
+
title?: ReactNode
|
|
2519
2464
|
status?: 'error' | 'warning' | 'success' | 'info'
|
|
2520
2465
|
}
|
|
2521
2466
|
|
|
@@ -2524,17 +2469,18 @@ export declare interface ToastParams {
|
|
|
2524
2469
|
*/
|
|
2525
2470
|
export declare interface ToastProps extends RadiusStyleProps {
|
|
2526
2471
|
closable?: boolean
|
|
2527
|
-
description?:
|
|
2472
|
+
description?: ReactNode
|
|
2528
2473
|
onClose?: () => void
|
|
2529
|
-
title?:
|
|
2474
|
+
title?: ReactNode
|
|
2530
2475
|
status?: 'error' | 'warning' | 'success' | 'info'
|
|
2531
2476
|
duration?: number
|
|
2477
|
+
updatedAt?: number
|
|
2532
2478
|
}
|
|
2533
2479
|
|
|
2534
2480
|
/**
|
|
2535
2481
|
* @public
|
|
2536
2482
|
*/
|
|
2537
|
-
export declare function ToastProvider(props: ToastProviderProps): React.
|
|
2483
|
+
export declare function ToastProvider(props: ToastProviderProps): React.JSX.Element
|
|
2538
2484
|
|
|
2539
2485
|
export declare namespace ToastProvider {
|
|
2540
2486
|
var displayName: string
|
|
@@ -2543,11 +2489,8 @@ export declare namespace ToastProvider {
|
|
|
2543
2489
|
/**
|
|
2544
2490
|
* @public
|
|
2545
2491
|
*/
|
|
2546
|
-
export declare interface ToastProviderProps {
|
|
2492
|
+
export declare interface ToastProviderProps extends Omit<ToastLayerProps, 'children'> {
|
|
2547
2493
|
children?: React.ReactNode
|
|
2548
|
-
padding?: number | number[]
|
|
2549
|
-
paddingX?: number | number[]
|
|
2550
|
-
paddingY?: number | number[]
|
|
2551
2494
|
zOffset?: number | number[]
|
|
2552
2495
|
}
|
|
2553
2496
|
|
|
@@ -2557,11 +2500,8 @@ export declare interface ToastProviderProps {
|
|
|
2557
2500
|
* @public
|
|
2558
2501
|
*/
|
|
2559
2502
|
export declare const Tooltip: ForwardRefExoticComponent<
|
|
2560
|
-
Omit<
|
|
2503
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof TooltipProps> &
|
|
2561
2504
|
TooltipProps &
|
|
2562
|
-
Omit<HTMLProps<HTMLDivElement>, 'content' | 'width' | 'wrap' | 'children' | 'as'>,
|
|
2563
|
-
'ref'
|
|
2564
|
-
> &
|
|
2565
2505
|
RefAttributes<HTMLDivElement>
|
|
2566
2506
|
>
|
|
2567
2507
|
|
|
@@ -2574,7 +2514,6 @@ export declare const TooltipDelayGroupContext: Context<TooltipDelayGroupContextV
|
|
|
2574
2514
|
* @beta
|
|
2575
2515
|
*/
|
|
2576
2516
|
export declare interface TooltipDelayGroupContextValue {
|
|
2577
|
-
isGroupActive: boolean
|
|
2578
2517
|
setIsGroupActive: (nextState: React.SetStateAction<boolean>, delay?: number | undefined) => void
|
|
2579
2518
|
setOpenTooltipId: (nextId: string | null, delay?: number | undefined) => void
|
|
2580
2519
|
openDelay: number
|
|
@@ -2589,7 +2528,7 @@ export declare interface TooltipDelayGroupContextValue {
|
|
|
2589
2528
|
*/
|
|
2590
2529
|
export declare function TooltipDelayGroupProvider(
|
|
2591
2530
|
props: TooltipDelayGroupProviderProps,
|
|
2592
|
-
):
|
|
2531
|
+
): ReactElement
|
|
2593
2532
|
|
|
2594
2533
|
export declare namespace TooltipDelayGroupProvider {
|
|
2595
2534
|
var displayName: string
|
|
@@ -2599,7 +2538,7 @@ export declare namespace TooltipDelayGroupProvider {
|
|
|
2599
2538
|
* @public
|
|
2600
2539
|
* */
|
|
2601
2540
|
export declare interface TooltipDelayGroupProviderProps {
|
|
2602
|
-
children?:
|
|
2541
|
+
children?: ReactNode
|
|
2603
2542
|
/**
|
|
2604
2543
|
* Handles the delays to open or close a tooltip inside a group
|
|
2605
2544
|
*
|
|
@@ -2615,21 +2554,23 @@ export declare interface TooltipDelayGroupProviderProps {
|
|
|
2615
2554
|
/**
|
|
2616
2555
|
* @public
|
|
2617
2556
|
*/
|
|
2618
|
-
export declare interface TooltipProps
|
|
2557
|
+
export declare interface TooltipProps
|
|
2558
|
+
extends Omit<LayerProps, 'as'>,
|
|
2559
|
+
RadiusStyleProps,
|
|
2560
|
+
ShadowStyleProps {
|
|
2619
2561
|
/** @deprecated Use `fallbackPlacements` instead. */
|
|
2620
2562
|
allowedAutoPlacements?: Placement[]
|
|
2563
|
+
/**
|
|
2564
|
+
* Whether the tooltip should animate in and out.
|
|
2565
|
+
*
|
|
2566
|
+
* @beta
|
|
2567
|
+
* @defaultValue false
|
|
2568
|
+
*/
|
|
2569
|
+
animate?: boolean
|
|
2621
2570
|
arrow?: boolean
|
|
2622
2571
|
boundaryElement?: HTMLElement | null
|
|
2623
|
-
children?:
|
|
2624
|
-
content?:
|
|
2625
|
-
disabled?: boolean
|
|
2626
|
-
fallbackPlacements?: Placement[]
|
|
2627
|
-
padding?: number | number[]
|
|
2628
|
-
placement?: Placement
|
|
2629
|
-
/** Whether or not to render the tooltip in a portal element. */
|
|
2630
|
-
portal?: boolean | string
|
|
2631
|
-
scheme?: ThemeColorSchemeKey_2
|
|
2632
|
-
shadow?: number | number[]
|
|
2572
|
+
children?: ReactElement<Props>
|
|
2573
|
+
content?: ReactNode
|
|
2633
2574
|
/**
|
|
2634
2575
|
* Adds a delay to open or close the tooltip.
|
|
2635
2576
|
*
|
|
@@ -2641,28 +2582,23 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'>, RadiusStyl
|
|
|
2641
2582
|
* @defaultValue 0
|
|
2642
2583
|
*/
|
|
2643
2584
|
delay?: Delay
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2585
|
+
disabled?: boolean
|
|
2586
|
+
fallbackPlacements?: Placement[]
|
|
2587
|
+
placement?: Placement
|
|
2588
|
+
/** Whether or not to render the tooltip in a portal element. */
|
|
2589
|
+
portal?: boolean | string
|
|
2590
|
+
scheme?: ThemeColorSchemeKey_2
|
|
2591
|
+
tone?: ThemeColorCardToneKey
|
|
2651
2592
|
}
|
|
2652
2593
|
|
|
2653
2594
|
/**
|
|
2654
2595
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
2655
2596
|
* @beta
|
|
2656
2597
|
*/
|
|
2657
|
-
export declare const Tree:
|
|
2658
|
-
|
|
2598
|
+
export declare const Tree: NamedExoticComponent<
|
|
2599
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof TreeProps> &
|
|
2659
2600
|
TreeProps &
|
|
2660
|
-
|
|
2661
|
-
HTMLProps<HTMLDivElement>,
|
|
2662
|
-
'height' | 'width' | 'wrap' | 'role' | 'ref' | 'as' | 'rows' | 'align'
|
|
2663
|
-
> &
|
|
2664
|
-
RefAttributes<HTMLDivElement>
|
|
2665
|
-
>
|
|
2601
|
+
RefAttributes<HTMLDivElement>
|
|
2666
2602
|
>
|
|
2667
2603
|
|
|
2668
2604
|
/**
|
|
@@ -2684,25 +2620,22 @@ export declare interface TreeContextValue {
|
|
|
2684
2620
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
2685
2621
|
* @beta
|
|
2686
2622
|
*/
|
|
2687
|
-
export declare const TreeItem: NamedExoticComponent<
|
|
2688
|
-
TreeItemProps &
|
|
2689
|
-
Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'wrap' | 'role' | 'ref' | 'as' | 'rows'>
|
|
2690
|
-
>
|
|
2623
|
+
export declare const TreeItem: NamedExoticComponent<Omit<Props<TreeItemProps, 'div'>, 'as'>>
|
|
2691
2624
|
|
|
2692
2625
|
/**
|
|
2693
2626
|
* @beta
|
|
2694
2627
|
*/
|
|
2695
|
-
export declare interface TreeItemProps {
|
|
2628
|
+
export declare interface TreeItemProps extends CardProps {
|
|
2696
2629
|
expanded?: boolean
|
|
2697
|
-
fontSize?:
|
|
2698
|
-
icon?:
|
|
2630
|
+
fontSize?: ResponsiveProp<FontTextSize>
|
|
2631
|
+
icon?: ElementType
|
|
2699
2632
|
/**
|
|
2700
2633
|
* Allows passing a custom element type to the link component
|
|
2701
2634
|
*/
|
|
2702
|
-
linkAs?:
|
|
2703
|
-
padding?:
|
|
2635
|
+
linkAs?: ElementType
|
|
2636
|
+
padding?: ResponsiveProp<Space>
|
|
2704
2637
|
space?: ResponsiveProp<Space>
|
|
2705
|
-
text?:
|
|
2638
|
+
text?: ReactNode
|
|
2706
2639
|
weight?: ThemeFontWeightKey_2
|
|
2707
2640
|
}
|
|
2708
2641
|
|
|
@@ -2710,7 +2643,8 @@ export declare interface TreeItemProps {
|
|
|
2710
2643
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
2711
2644
|
* @beta
|
|
2712
2645
|
*/
|
|
2713
|
-
export declare interface TreeProps {
|
|
2646
|
+
export declare interface TreeProps extends Pick<GapStyleProps, 'gap'> {
|
|
2647
|
+
/** @deprecated Use `gap` instead. */
|
|
2714
2648
|
space?: ResponsiveProp<Space>
|
|
2715
2649
|
}
|
|
2716
2650
|
|
|
@@ -2726,20 +2660,20 @@ export declare interface TreeState {
|
|
|
2726
2660
|
| undefined
|
|
2727
2661
|
}
|
|
2728
2662
|
|
|
2663
|
+
/** @beta */
|
|
2729
2664
|
/**
|
|
2730
2665
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
2731
2666
|
* @beta
|
|
2732
2667
|
*/
|
|
2733
|
-
export declare function useArrayProp<T
|
|
2734
|
-
val: T | T[] | undefined,
|
|
2735
|
-
defaultVal?: T[],
|
|
2736
|
-
): T[]
|
|
2668
|
+
export declare function useArrayProp<T>(val: T | T[] | undefined, defaultVal?: T[]): T[]
|
|
2737
2669
|
|
|
2738
2670
|
/**
|
|
2739
2671
|
* @public
|
|
2740
2672
|
*/
|
|
2741
2673
|
export declare function useBoundaryElement(): BoundaryElementContextValue
|
|
2742
2674
|
|
|
2675
|
+
export declare function useCard(): CardContextValue_2 | null
|
|
2676
|
+
|
|
2743
2677
|
/**
|
|
2744
2678
|
* @public
|
|
2745
2679
|
* @deprecated replaced by the new `useClickOutsideEvent` hook, instead of:
|
|
@@ -2812,9 +2746,7 @@ export declare function useElementSize(element: HTMLElement | null): ElementSize
|
|
|
2812
2746
|
* +useImperativeHandle(forwardedRef, () => ref.current)
|
|
2813
2747
|
* ```
|
|
2814
2748
|
*/
|
|
2815
|
-
export declare function useForwardedRef<T>(
|
|
2816
|
-
ref: React.ForwardedRef<T>,
|
|
2817
|
-
): React.MutableRefObject<T | null>
|
|
2749
|
+
export declare function useForwardedRef<T>(ref: ForwardedRef<T>): MutableRefObject<T | null>
|
|
2818
2750
|
|
|
2819
2751
|
/**
|
|
2820
2752
|
* @beta
|
|
@@ -2829,7 +2761,7 @@ export declare function useLayer(): LayerContextValue
|
|
|
2829
2761
|
/**
|
|
2830
2762
|
* Efficiently subscribes to `window.matchMedia` queries
|
|
2831
2763
|
*
|
|
2832
|
-
* @param getServerSnapshot - Only called during server-side rendering, and hydration if using hydrateRoot. Required if the hook is called during SSR (https://
|
|
2764
|
+
* @param getServerSnapshot - Only called during server-side rendering, and hydration if using hydrateRoot. Required if the hook is called during SSR (https://dev/reference/react/useSyncExternalStore#adding-support-for-server-rendering)
|
|
2833
2765
|
*
|
|
2834
2766
|
* @public
|
|
2835
2767
|
*/
|
|
@@ -2852,7 +2784,7 @@ export declare function usePortal(): PortalContextValue
|
|
|
2852
2784
|
/**
|
|
2853
2785
|
* Returns true if a dark color scheme is preferred, false if a light color scheme is preferred or the preference is not known.
|
|
2854
2786
|
*
|
|
2855
|
-
* @param getServerSnapshot - Only called during server-side rendering, and hydration if using hydrateRoot. Since the server environment doesn't have access to the DOM, we can't determine the current value of the media query and we assume `(prefers-color-scheme: light)` since it's the most common scheme (https://
|
|
2787
|
+
* @param getServerSnapshot - Only called during server-side rendering, and hydration if using hydrateRoot. Since the server environment doesn't have access to the DOM, we can't determine the current value of the media query and we assume `(prefers-color-scheme: light)` since it's the most common scheme (https://dev/reference/react/useSyncExternalStore#adding-support-for-server-rendering)
|
|
2856
2788
|
*
|
|
2857
2789
|
* If you persist the detected preference in a cookie or a header then you may implement your own server snapshot to read it.
|
|
2858
2790
|
* Chrome supports reading the `prefers-color-scheme` media query from a header if the server response: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-Prefers-Color-Scheme
|
|
@@ -2865,7 +2797,7 @@ export declare function usePrefersDark(getServerSnapshot?: () => boolean): boole
|
|
|
2865
2797
|
/**
|
|
2866
2798
|
* Returns true if motion should be reduced
|
|
2867
2799
|
*
|
|
2868
|
-
* @param getServerSnapshot - Only called during server-side rendering, and hydration if using hydrateRoot. Since the server environment doesn't have access to the DOM, we can't determine the current value of the media query and we assume `(prefers-reduced-motion: no-preference)` since it's the most common scheme (https://
|
|
2800
|
+
* @param getServerSnapshot - Only called during server-side rendering, and hydration if using hydrateRoot. Since the server environment doesn't have access to the DOM, we can't determine the current value of the media query and we assume `(prefers-reduced-motion: no-preference)` since it's the most common scheme (https://dev/reference/react/useSyncExternalStore#adding-support-for-server-rendering)
|
|
2869
2801
|
*
|
|
2870
2802
|
* If you persist the detected preference in a cookie or a header then you may implement your own server snapshot to read it.
|
|
2871
2803
|
* Chrome supports reading the `prefers-reduced-motion` media query from a header if the server response: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-Prefers-Reduced-Motion
|
|
@@ -2909,9 +2841,8 @@ export declare function useTree(): TreeContextValue
|
|
|
2909
2841
|
* @beta
|
|
2910
2842
|
*/
|
|
2911
2843
|
export declare const VirtualList: ForwardRefExoticComponent<
|
|
2912
|
-
VirtualListProps<any
|
|
2913
|
-
|
|
2914
|
-
Omit<HTMLProps<HTMLDivElement>, 'children' | 'onChange' | 'ref' | 'as'> &
|
|
2844
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof VirtualListProps<any>> &
|
|
2845
|
+
VirtualListProps<any> &
|
|
2915
2846
|
RefAttributes<HTMLDivElement>
|
|
2916
2847
|
>
|
|
2917
2848
|
|
|
@@ -2930,13 +2861,12 @@ export declare interface VirtualListChangeOpts {
|
|
|
2930
2861
|
/**
|
|
2931
2862
|
* @beta
|
|
2932
2863
|
*/
|
|
2933
|
-
export declare interface VirtualListProps<Item = any> {
|
|
2934
|
-
|
|
2935
|
-
gap?: number
|
|
2864
|
+
export declare interface VirtualListProps<Item = any> extends Omit<StackProps, 'gap'> {
|
|
2865
|
+
gap?: Space
|
|
2936
2866
|
getItemKey?: (item: Item, itemIndex: number) => string
|
|
2937
2867
|
items?: Item[]
|
|
2938
2868
|
onChange?: (opts: VirtualListChangeOpts) => void
|
|
2939
|
-
renderItem?: (item: Item) =>
|
|
2869
|
+
renderItem?: (item: Item) => ReactNode
|
|
2940
2870
|
}
|
|
2941
2871
|
|
|
2942
2872
|
export {}
|