@sanity/ui 3.0.0-static.0 → 3.0.0-static.10
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 +3138 -0
- package/dist/_chunks-cjs/_visual-editing.js.map +1 -0
- package/dist/_chunks-cjs/buildCommand.js +17 -2821
- 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 +3145 -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 +811 -0
- package/dist/_visual-editing.d.ts +811 -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 +340 -6
- package/dist/cli.js.map +1 -1
- package/dist/css.d.mts +970 -440
- package/dist/css.d.ts +970 -440
- package/dist/css.js +4257 -2514
- package/dist/css.js.map +1 -1
- package/dist/css.mjs +4259 -2515
- package/dist/css.mjs.map +1 -1
- package/dist/index.d.mts +499 -561
- package/dist/index.d.ts +499 -561
- package/dist/index.js +1160 -5463
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1089 -5401
- 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 +23226 -2941
- package/dist/theme.d.mts +399 -112
- package/dist/theme.d.ts +399 -112
- package/dist/theme.js +2174 -2060
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +2207 -2095
- package/dist/theme.mjs.map +1 -1
- package/exports/_visual-editing.ts +31 -0
- package/exports/index.ts +1 -1
- package/package.json +96 -85
- 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 +16 -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 +151 -0
- package/src/css/aspects/font/font.ts +12 -0
- package/src/css/aspects/font/types.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/index.ts +2 -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/index.ts +2 -0
- package/src/css/aspects/overflow/overflow.style.ts +11 -0
- package/src/css/aspects/overflow/overflow.ts +11 -0
- package/src/css/aspects/overflow/types.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 +49 -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 +27 -0
- package/src/css/compile/compileRule.ts +50 -11
- package/src/css/compile/compileRules.test.ts +36 -0
- package/src/css/compile/compileRules.ts +43 -0
- package/src/css/compile/compileStyle.ts +148 -0
- package/src/css/compile/compileSystem.ts +6 -3
- package/src/css/compile/compileTheme.ts +8 -502
- package/src/css/compile/compileTheme_v3.ts +401 -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/breadcrumbs/rules.ts +18 -0
- 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/dialog/rules.ts +4 -1
- package/src/css/components/menu/index.ts +1 -0
- package/src/css/components/menu/menu.style.ts +17 -0
- package/src/css/components/menu/menu.ts +9 -0
- package/src/css/components/menu/rules.ts +15 -0
- package/src/css/components/skeleton/index.ts +2 -0
- package/src/css/components/skeleton/rules.ts +113 -0
- package/src/css/components/skeleton/skeleton.style.ts +96 -0
- package/src/css/components/skeleton/skeleton.ts +31 -0
- package/src/css/components/skeleton/types.ts +26 -0
- package/src/css/components/toast/index.ts +1 -0
- package/src/css/components/toast/rules.ts +18 -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/rules.ts +118 -2
- 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 +1 -0
- package/src/css/index.ts +15 -21
- package/src/css/primitives/_arrow/_arrow.style.ts +73 -0
- package/src/css/primitives/_arrow/_arrow.ts +14 -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 +34 -16
- package/src/css/primitives/box/types.ts +31 -29
- package/src/css/primitives/button/_constants.ts +17 -0
- package/src/css/primitives/button/button.style.ts +201 -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/__styles.ts +115 -113
- 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/rules.ts +6 -7
- package/src/css/primitives/spinner/spinner.style.ts +22 -0
- package/src/css/primitives/spinner/spinner.ts +7 -3
- 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/index.ts +1 -0
- package/src/css/primitives/textInput/rules.ts +94 -96
- package/src/css/primitives/textInput/textInput.style.ts +167 -0
- package/src/css/primitives/textInput/textInput.ts +5 -4
- package/src/css/primitives/textInput/types.ts +11 -0
- package/src/css/primitives/token/rules.ts +37 -37
- package/src/css/primitives/token/token.style.ts +49 -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/scopeClassName.ts +6 -0
- package/src/css/system.style.ts +158 -0
- package/src/css/types.ts +630 -369
- 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 +395 -256
- package/src/css/vars.ts +422 -246
- 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/defaults.ts +202 -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/StyleTags.tsx +24 -0
- package/src/ui/_compat/index.ts +9 -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 +274 -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 +9 -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__/sanityUploadButton.tsx +36 -0
- package/src/ui/primitives/button/__workshop__/stacked.tsx +59 -0
- package/src/ui/primitives/button/__workshop__/styled1.tsx +17 -0
- package/src/ui/primitives/button/__workshop__/styled2.tsx +19 -0
- package/src/ui/primitives/button/button.test.tsx +44 -0
- package/src/ui/primitives/button/button.tsx +207 -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/__workshop__/styled.tsx +14 -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 +422 -0
- package/src/ui/primitives/popover/popoverCard.tsx +161 -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/animatedSpinnerIcon.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 +466 -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/types/text.ts +7 -0
- package/src/ui/utils/arrow/arrow.tsx +59 -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/__workshop__/customMedia.tsx +30 -0
- package/src/ui/utils/elementQuery/elementQuery.tsx +53 -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 +189 -0
- package/dist/_chunks-cjs/getTheme_v2.js +0 -316
- package/dist/_chunks-cjs/getTheme_v2.js.map +0 -1
- package/dist/_chunks-es/getTheme_v2.mjs +0 -317
- package/dist/_chunks-es/getTheme_v2.mjs.map +0 -1
- package/dist/_legacy/getTheme_v2.esm.js +0 -317
- package/dist/_legacy/getTheme_v2.esm.js.map +0 -1
- package/dist/css.esm.js +0 -3135
- package/dist/css.esm.js.map +0 -1
- package/dist/index.esm.js +0 -5843
- package/dist/index.esm.js.map +0 -1
- package/dist/theme.esm.js +0 -3088
- package/dist/theme.esm.js.map +0 -1
- package/src/core/__workshop__/constants.ts +0 -296
- package/src/core/__workshop__/fontsPlugin.tsx +0 -76
- package/src/core/_compat.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 -88
- package/src/core/components/autocomplete/__workshop__/example.tsx +0 -78
- package/src/core/components/autocomplete/__workshop__/fullscreen.tsx +0 -293
- package/src/core/components/autocomplete/autocomplete.styles.tsx +0 -38
- 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.styles.ts +0 -17
- 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 -74
- package/src/core/components/dialog/__workshop__/wrapped.tsx +0 -78
- package/src/core/components/dialog/dialog.tsx +0 -414
- 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 -175
- package/src/core/components/menu/menuButton.tsx +0 -289
- package/src/core/components/menu/menuContext.ts +0 -29
- package/src/core/components/menu/menuDivider.ts +0 -13
- package/src/core/components/menu/menuGroup.tsx +0 -210
- 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 -58
- package/src/core/components/skeleton/styles.ts +0 -50
- package/src/core/components/skeleton/textSkeleton.tsx +0 -122
- package/src/core/components/tab/__workshop__/.eslintrc +0 -5
- package/src/core/components/tab/tab.tsx +0 -99
- package/src/core/components/tab/tabList.tsx +0 -78
- package/src/core/components/tab/tabPanel.tsx +0 -38
- 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/styles.ts +0 -61
- package/src/core/components/toast/toast.test.tsx +0 -102
- package/src/core/components/toast/toast.tsx +0 -109
- package/src/core/components/toast/toastProvider.tsx +0 -202
- 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/style.ts +0 -104
- package/src/core/components/tree/tree.tsx +0 -242
- package/src/core/components/tree/treeGroup.tsx +0 -29
- package/src/core/components/tree/treeItem.tsx +0 -217
- 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 -11
- 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 -217
- 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 -118
- 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 -52
- package/src/core/primitives/button/__workshop__/sanityUploadButton.tsx +0 -36
- package/src/core/primitives/button/__workshop__/stacked.tsx +0 -57
- package/src/core/primitives/button/__workshop__/styled1.tsx +0 -17
- package/src/core/primitives/button/__workshop__/styled2.tsx +0 -19
- 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/__workshop__/styled.tsx +0 -14
- package/src/core/primitives/card/card.tsx +0 -113
- package/src/core/primitives/card/index.ts +0 -2
- package/src/core/primitives/card/styles.ts +0 -146
- 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 -51
- 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 -44
- 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 -48
- 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 -99
- 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 -56
- 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 -96
- 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 -96
- 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 -14
- 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 -85
- 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 -98
- 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 -440
- 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 -165
- package/src/core/styles/border/borderStyle.ts +0 -61
- package/src/core/styles/border/index.ts +0 -2
- package/src/core/styles/border/types.ts +0 -11
- package/src/core/styles/box/boxStyle.ts +0 -74
- package/src/core/styles/box/index.ts +0 -2
- package/src/core/styles/box/types.ts +0 -11
- package/src/core/styles/card/_cardColorStyle.ts +0 -101
- package/src/core/styles/card/index.ts +0 -1
- package/src/core/styles/flex/flexItemStyle.ts +0 -26
- package/src/core/styles/flex/flexStyle.ts +0 -69
- package/src/core/styles/flex/index.ts +0 -3
- package/src/core/styles/flex/types.ts +0 -24
- package/src/core/styles/focusRing/index.ts +0 -25
- package/src/core/styles/font/codeFontStyle.ts +0 -12
- package/src/core/styles/font/headingFontStyle.ts +0 -12
- package/src/core/styles/font/index.ts +0 -6
- package/src/core/styles/font/labelFontStyle.ts +0 -12
- package/src/core/styles/font/responsiveFont.ts +0 -101
- package/src/core/styles/font/textAlignStyle.ts +0 -18
- package/src/core/styles/font/textFontStyle.ts +0 -12
- package/src/core/styles/font/types.ts +0 -34
- package/src/core/styles/grid/gridItemStyle.ts +0 -81
- package/src/core/styles/grid/gridStyle.ts +0 -97
- package/src/core/styles/grid/index.ts +0 -3
- package/src/core/styles/grid/types.ts +0 -37
- package/src/core/styles/helpers.ts +0 -81
- package/src/core/styles/index.ts +0 -5
- package/src/core/styles/input/index.ts +0 -2
- package/src/core/styles/input/responsiveInputPaddingStyle.ts +0 -77
- package/src/core/styles/input/textInputStyle.ts +0 -263
- package/src/core/styles/internal.ts +0 -12
- package/src/core/styles/margin/index.ts +0 -2
- package/src/core/styles/margin/marginStyle.ts +0 -20
- package/src/core/styles/margin/marginsStyle.test.ts +0 -32
- package/src/core/styles/margin/types.ts +0 -9
- package/src/core/styles/padding/index.ts +0 -2
- package/src/core/styles/padding/paddingStyle.test.ts +0 -32
- package/src/core/styles/padding/paddingStyle.ts +0 -20
- package/src/core/styles/padding/types.ts +0 -12
- package/src/core/styles/radius/index.ts +0 -2
- package/src/core/styles/radius/radiusStyle.ts +0 -22
- package/src/core/styles/radius/types.ts +0 -8
- package/src/core/styles/shadow/index.ts +0 -2
- package/src/core/styles/shadow/shadowStyle.ts +0 -29
- package/src/core/styles/shadow/types.ts +0 -6
- package/src/core/styles/types.ts +0 -8
- 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 -459
- 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 -19
- package/src/core/types/button.ts +0 -22
- package/src/core/types/flex.ts +0 -31
- package/src/core/types/grid.ts +0 -14
- 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/types/text.ts +0 -4
- 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/__workshop__/customMedia.tsx +0 -30
- 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/compile/comileRules.ts +0 -59
- package/src/css/components/dialog/classes.ts +0 -29
- 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 -93
- package/src/css/primitives/selectable/__style.ts +0 -115
- 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/rules.ts +0 -121
- 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 -12
- package/src/css/styles/font/rules.ts +0 -125
- package/src/css/styles/font/types.ts +0 -6
- 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/rules.ts +0 -35
- 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 -59
- package/src/css/styles/maxWidth/rules.ts +0 -36
- package/src/css/styles/maxWidth/types.ts +0 -6
- 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 -59
- 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}/gap/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}/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__/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/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/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}/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__/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
|
@@ -1,52 +1,73 @@
|
|
|
1
1
|
import {AvatarSize} from '@sanity/ui/theme'
|
|
2
2
|
import {BaseTheme as BaseTheme_2} from '@sanity/ui/theme'
|
|
3
|
+
import {Display as BoxDisplay} from '@sanity/ui/css'
|
|
4
|
+
import {BoxHeight} from '@sanity/ui/css'
|
|
5
|
+
import {BoxOverflow} from '@sanity/ui/css'
|
|
6
|
+
import {BoxSizing} from '@sanity/ui/css'
|
|
3
7
|
import {BoxStyleProps} from '@sanity/ui/css'
|
|
8
|
+
import {ButtonStyleProps} from '@sanity/ui/css'
|
|
9
|
+
import {CardContextValue as CardContextValue_2} from './types'
|
|
4
10
|
import {CardStyleProps as CardStyleProps_2} from '@sanity/ui/css'
|
|
5
11
|
import {Component} from 'react'
|
|
12
|
+
import type {ComponentProps} from 'react'
|
|
13
|
+
import {ComponentType} from 'react'
|
|
6
14
|
import {ContainerStyleProps} from '@sanity/ui/css'
|
|
7
15
|
import {Context} from 'react'
|
|
8
16
|
import {createColorTheme as createColorTheme_2} from '@sanity/ui/theme'
|
|
9
17
|
import {CSSObject} from '@sanity/ui/theme'
|
|
10
|
-
import {
|
|
18
|
+
import {DisplayStyleProps} from '@sanity/ui/css'
|
|
19
|
+
import {ElementProps as ElementProps_2} from '../..'
|
|
11
20
|
import {ElementType} from 'react'
|
|
12
|
-
import {
|
|
21
|
+
import {ErrorInfo} from 'react'
|
|
13
22
|
import {FlexAlign} from '@sanity/ui/css'
|
|
14
23
|
import {FlexDirection} from '@sanity/ui/css'
|
|
15
24
|
import {FlexJustify} from '@sanity/ui/css'
|
|
25
|
+
import {FlexStyleProps} from '@sanity/ui/css'
|
|
16
26
|
import {FlexValue} from '@sanity/ui/css'
|
|
17
27
|
import {FlexWrap} from '@sanity/ui/css'
|
|
28
|
+
import {FontCodeSize} from '@sanity/ui/theme'
|
|
29
|
+
import {FontHeadingSize} from '@sanity/ui/theme'
|
|
30
|
+
import {FontLabelSize} from '@sanity/ui/theme'
|
|
31
|
+
import {FontStyleProps} from '@sanity/ui/css'
|
|
18
32
|
import {FontTextSize} from '@sanity/ui/theme'
|
|
19
|
-
import {
|
|
33
|
+
import {ForwardedRef} from 'react'
|
|
20
34
|
import {ForwardRefExoticComponent} from 'react'
|
|
21
35
|
import {GapStyleProps} from '@sanity/ui/css'
|
|
36
|
+
import {GridAutoCols} from '@sanity/ui/css'
|
|
37
|
+
import {GridAutoFlow} from '@sanity/ui/css'
|
|
38
|
+
import {GridAutoRows} from '@sanity/ui/css'
|
|
22
39
|
import {GridItemColumn} from '@sanity/ui/css'
|
|
23
40
|
import {GridItemColumnEnd} from '@sanity/ui/css'
|
|
24
41
|
import {GridItemColumnStart} from '@sanity/ui/css'
|
|
25
42
|
import {GridItemRow} from '@sanity/ui/css'
|
|
26
43
|
import {GridItemRowEnd} from '@sanity/ui/css'
|
|
27
44
|
import {GridItemRowStart} from '@sanity/ui/css'
|
|
45
|
+
import {HeadingStyleProps} from '@sanity/ui/css'
|
|
28
46
|
import {hexToRgb as hexToRgb_2} from '@sanity/ui/theme'
|
|
29
47
|
import {HSL as HSL_2} from '@sanity/ui/theme'
|
|
30
48
|
import {hslToRgb as hslToRgb_2} from '@sanity/ui/theme'
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
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'
|
|
35
53
|
import {multiply as multiply_2} from '@sanity/ui/theme'
|
|
36
54
|
import {MutableRefObject} from 'react'
|
|
37
55
|
import {NamedExoticComponent} from 'react'
|
|
38
56
|
import {PaddingStyleProps} from '@sanity/ui/css'
|
|
39
57
|
import {parseColor as parseColor_2} from '@sanity/ui/theme'
|
|
40
58
|
import {PartialThemeColorBuilderOpts} from '@sanity/ui/theme'
|
|
59
|
+
import {PolymorphicProps as PolymorphicProps_2} from '../..'
|
|
41
60
|
import {PositionStyleProps} from '@sanity/ui/css'
|
|
42
61
|
import {PropsWithChildren} from 'react'
|
|
62
|
+
import {px} from '@sanity/ui/css'
|
|
43
63
|
import {Radius} from '@sanity/ui/theme'
|
|
44
64
|
import {RadiusStyleProps} from '@sanity/ui/css'
|
|
45
65
|
import {ReactElement} from 'react'
|
|
46
66
|
import {ReactNode} from 'react'
|
|
47
|
-
import {
|
|
67
|
+
import {ReactPortal} from 'react'
|
|
48
68
|
import {RefAttributes} from 'react'
|
|
49
69
|
import {RefCallback} from 'react'
|
|
70
|
+
import {rem} from '@sanity/ui/css'
|
|
50
71
|
import {ResponsiveProp} from '@sanity/ui/css'
|
|
51
72
|
import {RGB as RGB_2} from '@sanity/ui/theme'
|
|
52
73
|
import {rgba as rgba_2} from '@sanity/ui/theme'
|
|
@@ -54,10 +75,17 @@ import {rgbToHex as rgbToHex_2} from '@sanity/ui/theme'
|
|
|
54
75
|
import {rgbToHsl as rgbToHsl_2} from '@sanity/ui/theme'
|
|
55
76
|
import {RootTheme as RootTheme_2} from '@sanity/ui/theme'
|
|
56
77
|
import {screen as screen_3} from '@sanity/ui/theme'
|
|
78
|
+
import {SelectStyleProps} from '@sanity/ui/css'
|
|
79
|
+
import {ShadowStyleProps} from '@sanity/ui/css'
|
|
80
|
+
import {SkeletonStyleProps} from '@sanity/ui/css'
|
|
57
81
|
import {Space} from '@sanity/ui/theme'
|
|
82
|
+
import {TextAlign} from '@sanity/ui/css'
|
|
83
|
+
import {TextAreaStyleProps} from '@sanity/ui/css'
|
|
84
|
+
import {TextOverflowStyleProps} from '@sanity/ui/css'
|
|
58
85
|
import {TextStyleProps} from '@sanity/ui/css'
|
|
59
86
|
import {Theme as Theme_2} from '@sanity/ui/theme'
|
|
60
87
|
import {Theme_v2} from '@sanity/ui/theme'
|
|
88
|
+
import {Theme_v3} from '@sanity/ui/theme'
|
|
61
89
|
import {ThemeAvatar} from '@sanity/ui/theme'
|
|
62
90
|
import {ThemeBoxShadow} from '@sanity/ui/theme'
|
|
63
91
|
import {ThemeColor} from '@sanity/ui/theme'
|
|
@@ -104,22 +132,18 @@ import {ThemeShadow as ThemeShadow_2} from '@sanity/ui/theme'
|
|
|
104
132
|
import {ThemeStyles} from '@sanity/ui/theme'
|
|
105
133
|
import {Width} from '@sanity/ui/css'
|
|
106
134
|
|
|
107
|
-
/** @beta */
|
|
108
|
-
export declare type ArrayPropPrimitive = string | number | boolean | undefined | null
|
|
109
|
-
|
|
110
135
|
/** @internal */
|
|
111
136
|
export declare const Arrow: ForwardRefExoticComponent<
|
|
112
|
-
Omit<
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
} & Omit<HTMLProps<HTMLDivElement>, 'height' | 'width'>,
|
|
118
|
-
'ref'
|
|
119
|
-
> &
|
|
120
|
-
RefAttributes<HTMLDivElement>
|
|
137
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, 'radius' | 'height' | 'width'> & {
|
|
138
|
+
width: number
|
|
139
|
+
height: number
|
|
140
|
+
radius?: number
|
|
141
|
+
} & RefAttributes<HTMLDivElement>
|
|
121
142
|
>
|
|
122
143
|
|
|
144
|
+
/** @public */
|
|
145
|
+
export declare type Assign<T, U> = Omit<T, keyof U> & U
|
|
146
|
+
|
|
123
147
|
/**
|
|
124
148
|
* @internal
|
|
125
149
|
*/
|
|
@@ -132,30 +156,20 @@ export declare function attemptFocus(element: HTMLElement): boolean
|
|
|
132
156
|
* @public
|
|
133
157
|
*/
|
|
134
158
|
export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
|
|
135
|
-
props:
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
| 'onSelect'
|
|
150
|
-
| 'prefix'
|
|
151
|
-
| 'ref'
|
|
152
|
-
| 'role'
|
|
153
|
-
| 'spellCheck'
|
|
154
|
-
| 'type'
|
|
155
|
-
| 'value'
|
|
156
|
-
> & {
|
|
157
|
-
ref?: Ref<HTMLInputElement>
|
|
158
|
-
},
|
|
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
|
+
>,
|
|
159
173
|
) => ReactElement
|
|
160
174
|
|
|
161
175
|
/**
|
|
@@ -190,8 +204,7 @@ export declare type AutocompleteMsg =
|
|
|
190
204
|
/**
|
|
191
205
|
* @public
|
|
192
206
|
*/
|
|
193
|
-
export declare type AutocompleteOpenButtonProps = Omit<ButtonProps, 'as'>
|
|
194
|
-
Omit<React.HTMLProps<HTMLButtonElement>, 'as' | 'ref'>
|
|
207
|
+
export declare type AutocompleteOpenButtonProps = Omit<Props<ButtonProps, 'button'>, 'as'>
|
|
195
208
|
|
|
196
209
|
/**
|
|
197
210
|
* @public
|
|
@@ -201,6 +214,7 @@ export declare interface AutocompleteProps<
|
|
|
201
214
|
> {
|
|
202
215
|
border?: boolean
|
|
203
216
|
customValidity?: string
|
|
217
|
+
disabled?: boolean
|
|
204
218
|
filterOption?: (query: string, option: Option) => boolean
|
|
205
219
|
fontSize?: ResponsiveProp<FontTextSize>
|
|
206
220
|
icon?: ElementType | ReactNode
|
|
@@ -218,24 +232,25 @@ export declare interface AutocompleteProps<
|
|
|
218
232
|
/** The options to render. */
|
|
219
233
|
options?: Option[]
|
|
220
234
|
padding?: ResponsiveProp<Space>
|
|
221
|
-
popover?: Omit<PopoverProps, 'content' | 'onMouseEnter' | 'onMouseLeave' | 'open'>
|
|
222
|
-
Omit<HTMLProps<HTMLDivElement>, 'as' | 'children' | 'content' | 'ref' | 'width'>
|
|
235
|
+
popover?: Omit<Props<PopoverProps, 'div'>, 'content' | 'onMouseEnter' | 'onMouseLeave' | 'open'>
|
|
223
236
|
prefix?: ReactNode
|
|
224
237
|
radius?: Radius | Radius[]
|
|
238
|
+
readOnly?: boolean
|
|
239
|
+
ref?: ForwardedRef<HTMLInputElement>
|
|
225
240
|
/** @beta */
|
|
226
241
|
relatedElements?: HTMLElement[]
|
|
227
242
|
/** The callback function for rendering each option. */
|
|
228
|
-
renderOption?: (option: Option) =>
|
|
243
|
+
renderOption?: (option: Option) => React.JSX.Element
|
|
229
244
|
/** @beta */
|
|
230
245
|
renderPopover?: (
|
|
231
246
|
props: {
|
|
232
|
-
content:
|
|
247
|
+
content: React.JSX.Element | null
|
|
233
248
|
hidden: boolean
|
|
234
249
|
inputElement: HTMLInputElement | null
|
|
235
250
|
onMouseEnter: () => void
|
|
236
251
|
onMouseLeave: () => void
|
|
237
252
|
},
|
|
238
|
-
ref:
|
|
253
|
+
ref: ForwardedRef<HTMLDivElement>,
|
|
239
254
|
) => ReactNode
|
|
240
255
|
renderValue?: (value: string, option?: Option) => string
|
|
241
256
|
suffix?: ReactNode
|
|
@@ -314,22 +329,27 @@ export declare interface AutocompleteValueChangeMsg {
|
|
|
314
329
|
* @public
|
|
315
330
|
*/
|
|
316
331
|
export declare const Avatar: ForwardRefExoticComponent<
|
|
317
|
-
|
|
332
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof AvatarProps> &
|
|
333
|
+
AvatarProps &
|
|
334
|
+
RefAttributes<HTMLDivElement>
|
|
318
335
|
>
|
|
319
336
|
|
|
320
337
|
/**
|
|
321
338
|
* @public
|
|
322
339
|
*/
|
|
323
340
|
export declare const AvatarCounter: ForwardRefExoticComponent<
|
|
324
|
-
|
|
341
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof AvatarCounterProps> &
|
|
342
|
+
AvatarCounterProps &
|
|
343
|
+
RefAttributes<HTMLDivElement>
|
|
325
344
|
>
|
|
326
345
|
|
|
327
346
|
/**
|
|
328
347
|
* @public
|
|
329
348
|
*/
|
|
330
|
-
export declare interface AvatarCounterProps
|
|
349
|
+
export declare interface AvatarCounterProps
|
|
350
|
+
extends Omit<BoxProps, 'align' | 'className' | 'display' | 'justify' | 'paddingX' | 'sizing'> {
|
|
331
351
|
count: number
|
|
332
|
-
size?: AvatarSize
|
|
352
|
+
size?: ResponsiveProp<AvatarSize>
|
|
333
353
|
/** @deprecated No longer supported. */
|
|
334
354
|
tone?: 'navbar'
|
|
335
355
|
}
|
|
@@ -347,11 +367,10 @@ export declare interface AvatarProps {
|
|
|
347
367
|
__unstable_hideInnerStroke?: boolean
|
|
348
368
|
animateArrowFrom?: AvatarPosition
|
|
349
369
|
arrowPosition?: AvatarPosition
|
|
350
|
-
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
351
370
|
color?: ThemeColorAvatarColorKey
|
|
352
371
|
initials?: string
|
|
353
372
|
onImageLoadError?: (event: Error) => void
|
|
354
|
-
size?: AvatarSize
|
|
373
|
+
size?: ResponsiveProp<AvatarSize>
|
|
355
374
|
src?: string
|
|
356
375
|
/**
|
|
357
376
|
* The status of the entity this Avatar represents.
|
|
@@ -374,16 +393,28 @@ export {AvatarSize}
|
|
|
374
393
|
* @public
|
|
375
394
|
*/
|
|
376
395
|
export declare const AvatarStack: ForwardRefExoticComponent<
|
|
377
|
-
|
|
396
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof AvatarStackProps> &
|
|
397
|
+
AvatarStackProps &
|
|
398
|
+
RefAttributes<HTMLDivElement>
|
|
378
399
|
>
|
|
379
400
|
|
|
380
401
|
/**
|
|
381
402
|
* @public
|
|
382
403
|
*/
|
|
383
|
-
export declare
|
|
384
|
-
|
|
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[]
|
|
385
416
|
maxLength?: number
|
|
386
|
-
size?: AvatarSize
|
|
417
|
+
size?: ResponsiveProp<AvatarSize>
|
|
387
418
|
/** @deprecated No longer supported. */
|
|
388
419
|
tone?: 'navbar'
|
|
389
420
|
}
|
|
@@ -402,7 +433,9 @@ export declare type AvatarStatus = 'online' | 'editing' | 'inactive'
|
|
|
402
433
|
* @public
|
|
403
434
|
*/
|
|
404
435
|
export declare const Badge: ForwardRefExoticComponent<
|
|
405
|
-
Omit<
|
|
436
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof BadgeProps> &
|
|
437
|
+
BadgeProps &
|
|
438
|
+
RefAttributes<HTMLDivElement>
|
|
406
439
|
>
|
|
407
440
|
|
|
408
441
|
/**
|
|
@@ -415,10 +448,10 @@ export declare type BadgeMode = 'default' | 'outline'
|
|
|
415
448
|
* @public
|
|
416
449
|
*/
|
|
417
450
|
export declare interface BadgeProps extends BoxProps, RadiusStyleProps {
|
|
418
|
-
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
419
451
|
fontSize?: number | number[]
|
|
420
452
|
/** @deprecated No longer used. */
|
|
421
453
|
mode?: BadgeMode
|
|
454
|
+
textAlign?: TextProps['align']
|
|
422
455
|
tone?: BadgeTone
|
|
423
456
|
}
|
|
424
457
|
|
|
@@ -451,9 +484,7 @@ export declare interface BoundaryElementContextValue {
|
|
|
451
484
|
/**
|
|
452
485
|
* @public
|
|
453
486
|
*/
|
|
454
|
-
export declare function BoundaryElementProvider(
|
|
455
|
-
props: BoundaryElementProviderProps,
|
|
456
|
-
): React.ReactElement
|
|
487
|
+
export declare function BoundaryElementProvider(props: BoundaryElementProviderProps): ReactElement
|
|
457
488
|
|
|
458
489
|
export declare namespace BoundaryElementProvider {
|
|
459
490
|
var displayName: string
|
|
@@ -463,7 +494,7 @@ export declare namespace BoundaryElementProvider {
|
|
|
463
494
|
* @public
|
|
464
495
|
*/
|
|
465
496
|
export declare interface BoundaryElementProviderProps {
|
|
466
|
-
children:
|
|
497
|
+
children: ReactNode
|
|
467
498
|
element: HTMLElement | null
|
|
468
499
|
}
|
|
469
500
|
|
|
@@ -474,32 +505,25 @@ export declare interface BoundaryElementProviderProps {
|
|
|
474
505
|
* @public
|
|
475
506
|
*/
|
|
476
507
|
export declare const Box: ForwardRefExoticComponent<
|
|
477
|
-
Omit<
|
|
508
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof BoxProps> &
|
|
509
|
+
BoxProps &
|
|
478
510
|
RefAttributes<HTMLDivElement>
|
|
479
511
|
>
|
|
480
512
|
|
|
481
|
-
|
|
482
|
-
* @public
|
|
483
|
-
*/
|
|
484
|
-
export declare type BoxDisplay = 'none' | 'block' | 'grid' | 'flex' | 'inline-block'
|
|
513
|
+
export {BoxDisplay}
|
|
485
514
|
|
|
486
|
-
|
|
487
|
-
* @public
|
|
488
|
-
*/
|
|
489
|
-
export declare type BoxHeight = 'stretch' | 'fill'
|
|
515
|
+
export {BoxHeight}
|
|
490
516
|
|
|
491
|
-
|
|
492
|
-
* @public
|
|
493
|
-
*/
|
|
494
|
-
export declare type BoxOverflow = 'visible' | 'hidden' | 'auto'
|
|
517
|
+
export {BoxOverflow}
|
|
495
518
|
|
|
496
519
|
/**
|
|
497
520
|
* @public
|
|
498
521
|
*/
|
|
499
|
-
export declare interface BoxProps
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
522
|
+
export declare interface BoxProps
|
|
523
|
+
extends BoxStyleProps,
|
|
524
|
+
GapStyleProps,
|
|
525
|
+
InsetStyleProps,
|
|
526
|
+
PositionStyleProps {}
|
|
503
527
|
|
|
504
528
|
/**
|
|
505
529
|
* @public
|
|
@@ -507,18 +531,15 @@ export declare interface BoxProps extends BoxStyleProps, GapStyleProps, Position
|
|
|
507
531
|
*/
|
|
508
532
|
export declare type BoxShadow = ThemeBoxShadow
|
|
509
533
|
|
|
510
|
-
|
|
511
|
-
* @public
|
|
512
|
-
*/
|
|
513
|
-
export declare type BoxSizing = 'content' | 'border'
|
|
534
|
+
export {BoxSizing}
|
|
514
535
|
|
|
515
536
|
/**
|
|
516
537
|
* @beta
|
|
517
538
|
*/
|
|
518
539
|
export declare const Breadcrumbs: ForwardRefExoticComponent<
|
|
519
|
-
BreadcrumbsProps &
|
|
520
|
-
|
|
521
|
-
RefAttributes<
|
|
540
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof BreadcrumbsProps> &
|
|
541
|
+
BreadcrumbsProps &
|
|
542
|
+
RefAttributes<HTMLDivElement>
|
|
522
543
|
>
|
|
523
544
|
|
|
524
545
|
/**
|
|
@@ -527,7 +548,7 @@ export declare const Breadcrumbs: ForwardRefExoticComponent<
|
|
|
527
548
|
export declare interface BreadcrumbsProps extends GapStyleProps {
|
|
528
549
|
expandButton?: Omit<ButtonProps, 'onClick' | 'selected'>
|
|
529
550
|
maxLength?: number
|
|
530
|
-
separator?:
|
|
551
|
+
separator?: ReactNode
|
|
531
552
|
/** @deprecated - Use `gap`, `gapX`, `gapY` instead */
|
|
532
553
|
space?: number | number[]
|
|
533
554
|
}
|
|
@@ -536,42 +557,46 @@ export declare interface BreadcrumbsProps extends GapStyleProps {
|
|
|
536
557
|
* @public
|
|
537
558
|
*/
|
|
538
559
|
export declare const Button: ForwardRefExoticComponent<
|
|
539
|
-
Omit<
|
|
540
|
-
ButtonProps &
|
|
541
|
-
'ref'
|
|
542
|
-
> &
|
|
560
|
+
Omit<ElementProps_2<'button'> & PolymorphicProps_2, keyof ButtonProps> &
|
|
561
|
+
ButtonProps &
|
|
543
562
|
RefAttributes<HTMLButtonElement>
|
|
544
563
|
>
|
|
545
564
|
|
|
546
565
|
/**
|
|
547
566
|
* @public
|
|
567
|
+
* @deprecated Use `ThemeColorButtonModeKey` instead
|
|
548
568
|
*/
|
|
549
569
|
export declare type ButtonMode = ThemeColorButtonModeKey_2
|
|
550
570
|
|
|
551
571
|
/**
|
|
552
572
|
* @public
|
|
553
573
|
*/
|
|
554
|
-
export declare interface ButtonProps
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
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>
|
|
575
600
|
}
|
|
576
601
|
|
|
577
602
|
/**
|
|
@@ -581,6 +606,7 @@ export declare type ButtonTextAlign = 'left' | 'right' | 'center'
|
|
|
581
606
|
|
|
582
607
|
/**
|
|
583
608
|
* @public
|
|
609
|
+
* @deprecated Use `ThemeColorStateToneKey` instead
|
|
584
610
|
*/
|
|
585
611
|
export declare type ButtonTone = ThemeColorStateToneKey
|
|
586
612
|
|
|
@@ -597,10 +623,25 @@ export declare type ButtonWidth = 'fill'
|
|
|
597
623
|
* @public
|
|
598
624
|
*/
|
|
599
625
|
export declare const Card: ForwardRefExoticComponent<
|
|
600
|
-
Omit<
|
|
626
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof CardProps> &
|
|
627
|
+
CardProps &
|
|
601
628
|
RefAttributes<HTMLDivElement>
|
|
602
629
|
>
|
|
603
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
|
+
|
|
604
645
|
/**
|
|
605
646
|
* @public
|
|
606
647
|
*/
|
|
@@ -615,20 +656,30 @@ export declare interface CardProps extends BoxProps, CardStyleProps_2 {
|
|
|
615
656
|
* @beta
|
|
616
657
|
*/
|
|
617
658
|
__unstable_focusRing?: boolean
|
|
618
|
-
|
|
659
|
+
disabled?: boolean
|
|
660
|
+
href?: string
|
|
619
661
|
pressed?: boolean
|
|
620
|
-
|
|
621
|
-
|
|
662
|
+
selected?: boolean
|
|
663
|
+
target?: string
|
|
622
664
|
}
|
|
623
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
|
+
|
|
624
674
|
/**
|
|
625
675
|
* @internal
|
|
676
|
+
* @deprecated Use `CardStyleProps` from `@sanity/ui/css` instead.
|
|
626
677
|
*/
|
|
627
678
|
export declare interface CardStyleProps {
|
|
628
679
|
$checkered: boolean
|
|
629
680
|
$focusRing: boolean
|
|
630
681
|
$muted: boolean
|
|
631
|
-
$tone:
|
|
682
|
+
$tone: ThemeColorCardToneKey
|
|
632
683
|
}
|
|
633
684
|
|
|
634
685
|
/**
|
|
@@ -642,7 +693,8 @@ export declare type CardTone = ThemeColorCardToneKey | 'inherit'
|
|
|
642
693
|
* @public
|
|
643
694
|
*/
|
|
644
695
|
export declare const Checkbox: ForwardRefExoticComponent<
|
|
645
|
-
Omit<
|
|
696
|
+
Omit<ElementProps_2<'input'> & PolymorphicProps_2, keyof CheckboxProps> &
|
|
697
|
+
CheckboxProps &
|
|
646
698
|
RefAttributes<HTMLInputElement>
|
|
647
699
|
>
|
|
648
700
|
|
|
@@ -678,19 +730,18 @@ export declare type ClickOutsideListener = (event: MouseEvent) => void
|
|
|
678
730
|
* @public
|
|
679
731
|
*/
|
|
680
732
|
export declare const Code: ForwardRefExoticComponent<
|
|
681
|
-
Omit<
|
|
733
|
+
Omit<ElementProps_2<'pre'> & PolymorphicProps_2, keyof CodeProps> &
|
|
734
|
+
CodeProps &
|
|
682
735
|
RefAttributes<HTMLPreElement>
|
|
683
736
|
>
|
|
684
737
|
|
|
685
738
|
/**
|
|
686
739
|
* @public
|
|
687
740
|
*/
|
|
688
|
-
export declare interface CodeProps {
|
|
689
|
-
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
741
|
+
export declare interface CodeProps extends Omit<FontStyleProps, 'align'> {
|
|
690
742
|
/** Define the language to use for syntax highlighting. */
|
|
691
743
|
language?: string
|
|
692
744
|
size?: number | number[]
|
|
693
|
-
weight?: FontWeight
|
|
694
745
|
}
|
|
695
746
|
|
|
696
747
|
/**
|
|
@@ -698,10 +749,8 @@ export declare interface CodeProps {
|
|
|
698
749
|
* @beta
|
|
699
750
|
*/
|
|
700
751
|
export declare const CodeSkeleton: ForwardRefExoticComponent<
|
|
701
|
-
Omit<
|
|
702
|
-
CodeSkeletonProps &
|
|
703
|
-
'ref'
|
|
704
|
-
> &
|
|
752
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof CodeSkeletonProps> &
|
|
753
|
+
CodeSkeletonProps &
|
|
705
754
|
RefAttributes<HTMLDivElement>
|
|
706
755
|
>
|
|
707
756
|
|
|
@@ -710,7 +759,7 @@ export declare const CodeSkeleton: ForwardRefExoticComponent<
|
|
|
710
759
|
* @beta
|
|
711
760
|
*/
|
|
712
761
|
export declare interface CodeSkeletonProps extends SkeletonProps {
|
|
713
|
-
size?:
|
|
762
|
+
size?: ResponsiveProp<FontCodeSize>
|
|
714
763
|
}
|
|
715
764
|
|
|
716
765
|
/**
|
|
@@ -722,10 +771,10 @@ export declare function ConditionalWrapper({
|
|
|
722
771
|
condition,
|
|
723
772
|
wrapper,
|
|
724
773
|
}: {
|
|
725
|
-
children:
|
|
774
|
+
children: ReactNode
|
|
726
775
|
condition: boolean
|
|
727
|
-
wrapper: (children:
|
|
728
|
-
}):
|
|
776
|
+
wrapper: (children: ReactNode) => ReactNode
|
|
777
|
+
}): ReactNode
|
|
729
778
|
|
|
730
779
|
export declare namespace ConditionalWrapper {
|
|
731
780
|
var displayName: string
|
|
@@ -737,7 +786,8 @@ export declare namespace ConditionalWrapper {
|
|
|
737
786
|
* @public
|
|
738
787
|
*/
|
|
739
788
|
export declare const Container: ForwardRefExoticComponent<
|
|
740
|
-
Omit<
|
|
789
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof ContainerProps> &
|
|
790
|
+
ContainerProps &
|
|
741
791
|
RefAttributes<HTMLDivElement>
|
|
742
792
|
>
|
|
743
793
|
|
|
@@ -773,10 +823,8 @@ export declare type Delay =
|
|
|
773
823
|
* @public
|
|
774
824
|
*/
|
|
775
825
|
export declare const Dialog: ForwardRefExoticComponent<
|
|
776
|
-
Omit<
|
|
777
|
-
DialogProps &
|
|
778
|
-
'ref'
|
|
779
|
-
> &
|
|
826
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof DialogProps> &
|
|
827
|
+
DialogProps &
|
|
780
828
|
RefAttributes<HTMLDivElement>
|
|
781
829
|
>
|
|
782
830
|
|
|
@@ -803,7 +851,10 @@ export declare type DialogPosition = 'absolute' | 'fixed'
|
|
|
803
851
|
/**
|
|
804
852
|
* @public
|
|
805
853
|
*/
|
|
806
|
-
export declare interface DialogProps
|
|
854
|
+
export declare interface DialogProps
|
|
855
|
+
extends ContainerStyleProps,
|
|
856
|
+
PaddingStyleProps,
|
|
857
|
+
ShadowStyleProps {
|
|
807
858
|
/**
|
|
808
859
|
* @beta
|
|
809
860
|
*/
|
|
@@ -819,19 +870,20 @@ export declare interface DialogProps extends PaddingStyleProps, ContainerStylePr
|
|
|
819
870
|
* @defaultValue false
|
|
820
871
|
*/
|
|
821
872
|
animate?: boolean
|
|
822
|
-
cardRadius?: Radius
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
header?: React.ReactNode
|
|
873
|
+
cardRadius?: ResponsiveProp<Radius>
|
|
874
|
+
contentRef?: ForwardedRef<HTMLDivElement>
|
|
875
|
+
footer?: ReactNode
|
|
876
|
+
header?: ReactNode
|
|
827
877
|
id: string
|
|
828
878
|
/** A callback that fires when the dialog becomes the top layer when it was not the top layer before. */
|
|
829
879
|
onActivate?: LayerProps['onActivate']
|
|
830
880
|
onClickOutside?: () => void
|
|
831
881
|
onClose?: () => void
|
|
882
|
+
open?: boolean
|
|
832
883
|
portal?: string
|
|
833
884
|
position?: DialogPosition | DialogPosition[]
|
|
834
885
|
scheme?: ThemeColorSchemeKey_2
|
|
886
|
+
tone?: CardTone
|
|
835
887
|
zOffset?: number | number[]
|
|
836
888
|
}
|
|
837
889
|
|
|
@@ -839,7 +891,7 @@ export declare interface DialogProps extends PaddingStyleProps, ContainerStylePr
|
|
|
839
891
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
840
892
|
* @beta
|
|
841
893
|
*/
|
|
842
|
-
export declare function DialogProvider(props: DialogProviderProps):
|
|
894
|
+
export declare function DialogProvider(props: DialogProviderProps): ReactElement
|
|
843
895
|
|
|
844
896
|
export declare namespace DialogProvider {
|
|
845
897
|
var displayName: string
|
|
@@ -850,17 +902,21 @@ export declare namespace DialogProvider {
|
|
|
850
902
|
* @beta
|
|
851
903
|
*/
|
|
852
904
|
export declare interface DialogProviderProps {
|
|
853
|
-
children?:
|
|
905
|
+
children?: ReactNode
|
|
854
906
|
position?: DialogPosition | DialogPosition[]
|
|
855
907
|
zOffset?: number | number[]
|
|
856
908
|
}
|
|
857
909
|
|
|
910
|
+
/** @public */
|
|
911
|
+
export declare type ElementProps<E extends ElementType> = Omit<ComponentProps<E>, 'as' | 'ref'>
|
|
912
|
+
|
|
858
913
|
/**
|
|
859
914
|
* DO NOT USE IN PRODUCTION.
|
|
860
915
|
* @beta
|
|
861
916
|
*/
|
|
862
917
|
export declare const ElementQuery: ForwardRefExoticComponent<
|
|
863
|
-
Omit<
|
|
918
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, 'media'> &
|
|
919
|
+
MediaQueryProps &
|
|
864
920
|
RefAttributes<HTMLDivElement>
|
|
865
921
|
>
|
|
866
922
|
|
|
@@ -913,8 +969,8 @@ export declare type _ElementSizeSubscriber = (elementRect: ElementSize) => void
|
|
|
913
969
|
export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
914
970
|
state: ErrorBoundaryState
|
|
915
971
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState
|
|
916
|
-
componentDidCatch(error: Error, info:
|
|
917
|
-
render():
|
|
972
|
+
componentDidCatch(error: Error, info: ErrorInfo): void
|
|
973
|
+
render(): ReactNode
|
|
918
974
|
}
|
|
919
975
|
|
|
920
976
|
/**
|
|
@@ -922,7 +978,7 @@ export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBo
|
|
|
922
978
|
* @beta
|
|
923
979
|
*/
|
|
924
980
|
export declare type ErrorBoundaryProps = PropsWithChildren<{
|
|
925
|
-
onCatch: (params: {error: Error; info:
|
|
981
|
+
onCatch: (params: {error: Error; info: ErrorInfo}) => void
|
|
926
982
|
}>
|
|
927
983
|
|
|
928
984
|
/**
|
|
@@ -933,21 +989,14 @@ export declare interface ErrorBoundaryState {
|
|
|
933
989
|
error: Error | null
|
|
934
990
|
}
|
|
935
991
|
|
|
936
|
-
/**
|
|
937
|
-
* @internal
|
|
938
|
-
*/
|
|
939
|
-
export declare function _fillCSSObject(
|
|
940
|
-
keys: string[],
|
|
941
|
-
value: string | number | CSSObject,
|
|
942
|
-
): CSSObject
|
|
943
|
-
|
|
944
992
|
/**
|
|
945
993
|
* The `Flex` component is a wrapper component for flexible elements (`Box`, `Card` and `Flex`).
|
|
946
994
|
*
|
|
947
995
|
* @public
|
|
948
996
|
*/
|
|
949
997
|
export declare const Flex: ForwardRefExoticComponent<
|
|
950
|
-
Omit<
|
|
998
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof FlexProps> &
|
|
999
|
+
FlexProps &
|
|
951
1000
|
RefAttributes<HTMLDivElement>
|
|
952
1001
|
>
|
|
953
1002
|
|
|
@@ -960,7 +1009,9 @@ export {FlexJustify}
|
|
|
960
1009
|
/**
|
|
961
1010
|
* @public
|
|
962
1011
|
*/
|
|
963
|
-
export declare interface FlexProps extends Omit<BoxProps, 'display'> {
|
|
1012
|
+
export declare interface FlexProps extends Omit<BoxProps, 'display'> {
|
|
1013
|
+
htmlFor?: string
|
|
1014
|
+
}
|
|
964
1015
|
|
|
965
1016
|
export {FlexValue}
|
|
966
1017
|
|
|
@@ -979,23 +1030,7 @@ export declare function focusLastDescendant(element: HTMLElement): boolean
|
|
|
979
1030
|
/**
|
|
980
1031
|
* @internal
|
|
981
1032
|
*/
|
|
982
|
-
export declare
|
|
983
|
-
$weight?: ThemeFontWeightKey_2
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
/**
|
|
987
|
-
* @internal
|
|
988
|
-
*/
|
|
989
|
-
export declare function _getArrayProp<T = number>(val: T | T[] | undefined, defaultVal?: T[]): T[]
|
|
990
|
-
|
|
991
|
-
/**
|
|
992
|
-
* @internal
|
|
993
|
-
*/
|
|
994
|
-
export declare function _getResponsiveSpace(
|
|
995
|
-
theme: Theme_2,
|
|
996
|
-
props: string[],
|
|
997
|
-
spaceIndexes?: number[],
|
|
998
|
-
): CSSObject[] | null
|
|
1033
|
+
export declare function _getArrayProp<T>(val: T | T[] | undefined, defaultVal?: T[]): T[]
|
|
999
1034
|
|
|
1000
1035
|
/**
|
|
1001
1036
|
* The `Grid` component is for building 2-dimensional layers (based on CSS grid).
|
|
@@ -1003,24 +1038,16 @@ export declare function _getResponsiveSpace(
|
|
|
1003
1038
|
* @public
|
|
1004
1039
|
*/
|
|
1005
1040
|
export declare const Grid: ForwardRefExoticComponent<
|
|
1006
|
-
Omit<
|
|
1041
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof GridProps> &
|
|
1042
|
+
GridProps &
|
|
1007
1043
|
RefAttributes<HTMLDivElement>
|
|
1008
1044
|
>
|
|
1009
1045
|
|
|
1010
|
-
|
|
1011
|
-
* @public
|
|
1012
|
-
*/
|
|
1013
|
-
export declare type GridAutoCols = 'auto' | 'min' | 'max' | 'fr'
|
|
1046
|
+
export {GridAutoCols}
|
|
1014
1047
|
|
|
1015
|
-
|
|
1016
|
-
* @public
|
|
1017
|
-
*/
|
|
1018
|
-
export declare type GridAutoFlow = 'row' | 'column' | 'row dense' | 'column dense'
|
|
1048
|
+
export {GridAutoFlow}
|
|
1019
1049
|
|
|
1020
|
-
|
|
1021
|
-
* @public
|
|
1022
|
-
*/
|
|
1023
|
-
export declare type GridAutoRows = 'auto' | 'min' | 'max' | 'fr'
|
|
1050
|
+
export {GridAutoRows}
|
|
1024
1051
|
|
|
1025
1052
|
export {GridItemColumn}
|
|
1026
1053
|
|
|
@@ -1037,7 +1064,7 @@ export {GridItemRowStart}
|
|
|
1037
1064
|
/**
|
|
1038
1065
|
* @public
|
|
1039
1066
|
*/
|
|
1040
|
-
export declare interface GridProps extends Omit<BoxProps, 'display'
|
|
1067
|
+
export declare interface GridProps extends Omit<BoxProps, 'display'> {}
|
|
1041
1068
|
|
|
1042
1069
|
/**
|
|
1043
1070
|
* @internal
|
|
@@ -1050,37 +1077,23 @@ export declare function _hasFocus(element: HTMLElement): boolean
|
|
|
1050
1077
|
* @public
|
|
1051
1078
|
*/
|
|
1052
1079
|
export declare const Heading: ForwardRefExoticComponent<
|
|
1053
|
-
Omit<
|
|
1080
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof HeadingProps> &
|
|
1081
|
+
HeadingProps &
|
|
1054
1082
|
RefAttributes<HTMLElement>
|
|
1055
1083
|
>
|
|
1056
1084
|
|
|
1057
1085
|
/**
|
|
1058
1086
|
* @public
|
|
1059
1087
|
*/
|
|
1060
|
-
export declare interface HeadingProps {
|
|
1061
|
-
accent?: boolean
|
|
1062
|
-
align?: TextAlign | TextAlign[]
|
|
1063
|
-
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
1064
|
-
muted?: boolean
|
|
1065
|
-
size?: number | number[]
|
|
1066
|
-
/**
|
|
1067
|
-
* Controls how overflowing text is treated.
|
|
1068
|
-
* Use `textOverflow="ellipsis"` to render text as a single line which is concatenated with a `…` symbol.
|
|
1069
|
-
* @beta
|
|
1070
|
-
*/
|
|
1071
|
-
textOverflow?: 'ellipsis'
|
|
1072
|
-
weight?: ThemeFontWeightKey_2
|
|
1073
|
-
}
|
|
1088
|
+
export declare interface HeadingProps extends HeadingStyleProps, TextOverflowStyleProps {}
|
|
1074
1089
|
|
|
1075
1090
|
/**
|
|
1076
1091
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
1077
1092
|
* @beta
|
|
1078
1093
|
*/
|
|
1079
1094
|
export declare const HeadingSkeleton: ForwardRefExoticComponent<
|
|
1080
|
-
Omit<
|
|
1081
|
-
HeadingSkeletonProps &
|
|
1082
|
-
'ref'
|
|
1083
|
-
> &
|
|
1095
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof HeadingSkeletonProps> &
|
|
1096
|
+
HeadingSkeletonProps &
|
|
1084
1097
|
RefAttributes<HTMLDivElement>
|
|
1085
1098
|
>
|
|
1086
1099
|
|
|
@@ -1089,7 +1102,7 @@ export declare const HeadingSkeleton: ForwardRefExoticComponent<
|
|
|
1089
1102
|
* @beta
|
|
1090
1103
|
*/
|
|
1091
1104
|
export declare interface HeadingSkeletonProps extends SkeletonProps {
|
|
1092
|
-
size?:
|
|
1105
|
+
size?: ResponsiveProp<FontHeadingSize>
|
|
1093
1106
|
}
|
|
1094
1107
|
|
|
1095
1108
|
/**
|
|
@@ -1104,20 +1117,18 @@ export declare const hexToRgb: typeof hexToRgb_2
|
|
|
1104
1117
|
* @public
|
|
1105
1118
|
*/
|
|
1106
1119
|
export declare const Hotkeys: ForwardRefExoticComponent<
|
|
1107
|
-
HotkeysProps &
|
|
1108
|
-
|
|
1109
|
-
HTMLProps<HTMLDivElement>,
|
|
1110
|
-
'display' | 'height' | 'width' | 'size' | 'wrap' | 'ref' | 'as'
|
|
1111
|
-
> &
|
|
1120
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof HotkeysProps> &
|
|
1121
|
+
HotkeysProps &
|
|
1112
1122
|
RefAttributes<HTMLDivElement>
|
|
1113
1123
|
>
|
|
1114
1124
|
|
|
1115
1125
|
/**
|
|
1116
1126
|
* @public
|
|
1117
1127
|
*/
|
|
1118
|
-
export declare interface HotkeysProps extends RadiusStyleProps {
|
|
1128
|
+
export declare interface HotkeysProps extends GapStyleProps, RadiusStyleProps {
|
|
1119
1129
|
fontSize?: ResponsiveProp<FontTextSize>
|
|
1120
1130
|
padding?: ResponsiveProp<Space>
|
|
1131
|
+
/** @deprecated Use `gap` instead. */
|
|
1121
1132
|
space?: ResponsiveProp<Space>
|
|
1122
1133
|
keys?: string[]
|
|
1123
1134
|
}
|
|
@@ -1140,15 +1151,16 @@ export declare const hslToRgb: typeof hslToRgb_2
|
|
|
1140
1151
|
* @public
|
|
1141
1152
|
*/
|
|
1142
1153
|
export declare const Inline: ForwardRefExoticComponent<
|
|
1143
|
-
Omit<
|
|
1154
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof InlineProps> &
|
|
1155
|
+
InlineProps &
|
|
1156
|
+
RefAttributes<HTMLDivElement>
|
|
1144
1157
|
>
|
|
1145
1158
|
|
|
1146
1159
|
/**
|
|
1147
1160
|
* @public
|
|
1148
1161
|
*/
|
|
1149
|
-
export declare interface InlineProps
|
|
1150
|
-
|
|
1151
|
-
/** The spacing between children. */
|
|
1162
|
+
export declare interface InlineProps extends Omit<BoxProps, 'align' | 'display' | 'justify'> {
|
|
1163
|
+
/** @deprecated Use `gap` instead. */
|
|
1152
1164
|
space?: ResponsiveProp<Space>
|
|
1153
1165
|
}
|
|
1154
1166
|
|
|
@@ -1203,14 +1215,15 @@ export declare function _isScrollable(el: Node): boolean
|
|
|
1203
1215
|
* @public
|
|
1204
1216
|
*/
|
|
1205
1217
|
export declare const KBD: ForwardRefExoticComponent<
|
|
1206
|
-
|
|
1218
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof KBDProps> &
|
|
1219
|
+
KBDProps &
|
|
1220
|
+
RefAttributes<HTMLDivElement>
|
|
1207
1221
|
>
|
|
1208
1222
|
|
|
1209
1223
|
/**
|
|
1210
1224
|
* @public
|
|
1211
1225
|
*/
|
|
1212
1226
|
export declare interface KBDProps extends BoxProps, RadiusStyleProps {
|
|
1213
|
-
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
1214
1227
|
fontSize?: ResponsiveProp<FontTextSize>
|
|
1215
1228
|
padding?: ResponsiveProp<Space>
|
|
1216
1229
|
}
|
|
@@ -1221,26 +1234,19 @@ export declare interface KBDProps extends BoxProps, RadiusStyleProps {
|
|
|
1221
1234
|
* @public
|
|
1222
1235
|
*/
|
|
1223
1236
|
export declare const Label: ForwardRefExoticComponent<
|
|
1224
|
-
Omit<
|
|
1237
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof LabelProps> &
|
|
1238
|
+
LabelProps &
|
|
1225
1239
|
RefAttributes<HTMLDivElement>
|
|
1226
1240
|
>
|
|
1227
1241
|
|
|
1228
1242
|
/**
|
|
1229
1243
|
* @public
|
|
1230
1244
|
*/
|
|
1231
|
-
export declare interface LabelProps {
|
|
1245
|
+
export declare interface LabelProps extends FontStyleProps, TextOverflowStyleProps {
|
|
1232
1246
|
accent?: boolean
|
|
1233
|
-
|
|
1234
|
-
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
1247
|
+
htmlFor?: string
|
|
1235
1248
|
muted?: boolean
|
|
1236
|
-
size?:
|
|
1237
|
-
/**
|
|
1238
|
-
* Controls how overflowing text is treated.
|
|
1239
|
-
* Use `textOverflow="ellipsis"` to render text as a single line which is concatenated with a `…` symbol.
|
|
1240
|
-
* @beta
|
|
1241
|
-
*/
|
|
1242
|
-
textOverflow?: 'ellipsis'
|
|
1243
|
-
weight?: ThemeFontWeightKey_2
|
|
1249
|
+
size?: ResponsiveProp<LabelSize>
|
|
1244
1250
|
}
|
|
1245
1251
|
|
|
1246
1252
|
/**
|
|
@@ -1248,10 +1254,8 @@ export declare interface LabelProps {
|
|
|
1248
1254
|
* @beta
|
|
1249
1255
|
*/
|
|
1250
1256
|
export declare const LabelSkeleton: ForwardRefExoticComponent<
|
|
1251
|
-
Omit<
|
|
1252
|
-
LabelSkeletonProps &
|
|
1253
|
-
'ref'
|
|
1254
|
-
> &
|
|
1257
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof LabelSkeletonProps> &
|
|
1258
|
+
LabelSkeletonProps &
|
|
1255
1259
|
RefAttributes<HTMLDivElement>
|
|
1256
1260
|
>
|
|
1257
1261
|
|
|
@@ -1260,14 +1264,15 @@ export declare const LabelSkeleton: ForwardRefExoticComponent<
|
|
|
1260
1264
|
* @beta
|
|
1261
1265
|
*/
|
|
1262
1266
|
export declare interface LabelSkeletonProps extends SkeletonProps {
|
|
1263
|
-
size?:
|
|
1267
|
+
size?: ResponsiveProp<FontLabelSize>
|
|
1264
1268
|
}
|
|
1265
1269
|
|
|
1266
1270
|
/**
|
|
1267
1271
|
* @public
|
|
1268
1272
|
*/
|
|
1269
1273
|
export declare const Layer: ForwardRefExoticComponent<
|
|
1270
|
-
Omit<
|
|
1274
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof LayerProps> &
|
|
1275
|
+
LayerProps &
|
|
1271
1276
|
RefAttributes<HTMLDivElement>
|
|
1272
1277
|
>
|
|
1273
1278
|
|
|
@@ -1293,7 +1298,7 @@ export declare interface LayerProps extends BoxProps {
|
|
|
1293
1298
|
/**
|
|
1294
1299
|
* @public
|
|
1295
1300
|
*/
|
|
1296
|
-
export declare function LayerProvider(props: LayerProviderProps):
|
|
1301
|
+
export declare function LayerProvider(props: LayerProviderProps): ReactElement
|
|
1297
1302
|
|
|
1298
1303
|
export declare namespace LayerProvider {
|
|
1299
1304
|
var displayName: string
|
|
@@ -1303,7 +1308,7 @@ export declare namespace LayerProvider {
|
|
|
1303
1308
|
* @public
|
|
1304
1309
|
*/
|
|
1305
1310
|
export declare interface LayerProviderProps {
|
|
1306
|
-
children?:
|
|
1311
|
+
children?: ReactNode
|
|
1307
1312
|
zOffset?: number | number[]
|
|
1308
1313
|
}
|
|
1309
1314
|
|
|
@@ -1312,7 +1317,6 @@ export declare interface LayerProviderProps {
|
|
|
1312
1317
|
* @beta
|
|
1313
1318
|
*/
|
|
1314
1319
|
export declare interface MediaQueryProps {
|
|
1315
|
-
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
1316
1320
|
media?: number[]
|
|
1317
1321
|
}
|
|
1318
1322
|
|
|
@@ -1330,11 +1334,8 @@ export declare interface _MediaStore {
|
|
|
1330
1334
|
* @public
|
|
1331
1335
|
*/
|
|
1332
1336
|
export declare const Menu: ForwardRefExoticComponent<
|
|
1333
|
-
Omit<
|
|
1337
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof MenuProps> &
|
|
1334
1338
|
MenuProps &
|
|
1335
|
-
Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'wrap' | 'role' | 'tabIndex' | 'as'>,
|
|
1336
|
-
'ref'
|
|
1337
|
-
> &
|
|
1338
1339
|
RefAttributes<HTMLDivElement>
|
|
1339
1340
|
>
|
|
1340
1341
|
|
|
@@ -1359,9 +1360,9 @@ export declare interface MenuButtonProps {
|
|
|
1359
1360
|
* @deprecated Use `popover={{boundaryElement: element}}` instead.
|
|
1360
1361
|
*/
|
|
1361
1362
|
boundaryElement?: HTMLElement
|
|
1362
|
-
button:
|
|
1363
|
+
button: ReactElement<Props<ButtonProps, 'button'>>
|
|
1363
1364
|
id: string
|
|
1364
|
-
menu?:
|
|
1365
|
+
menu?: ReactElement
|
|
1365
1366
|
onClose?: () => void
|
|
1366
1367
|
onOpen?: () => void
|
|
1367
1368
|
/**
|
|
@@ -1391,22 +1392,19 @@ export declare interface MenuButtonProps {
|
|
|
1391
1392
|
/**
|
|
1392
1393
|
* @public
|
|
1393
1394
|
*/
|
|
1394
|
-
export declare const MenuDivider:
|
|
1395
|
-
'
|
|
1396
|
-
|
|
1397
|
-
>
|
|
1398
|
-
|
|
1395
|
+
export declare const MenuDivider: ForwardRefExoticComponent<
|
|
1396
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, never> &
|
|
1397
|
+
MenuDividerProps &
|
|
1398
|
+
RefAttributes<HTMLHRElement>
|
|
1399
|
+
>
|
|
1400
|
+
|
|
1401
|
+
/** @public */
|
|
1402
|
+
export declare interface MenuDividerProps {}
|
|
1399
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' | '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'
|
|
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'
|
|
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
|
|
@@ -1804,6 +1787,7 @@ export declare interface ResponsiveGridItemProps {
|
|
|
1804
1787
|
|
|
1805
1788
|
/**
|
|
1806
1789
|
* @public
|
|
1790
|
+
* @deprecated
|
|
1807
1791
|
*/
|
|
1808
1792
|
export declare interface ResponsiveGridProps {
|
|
1809
1793
|
autoRows?: GridAutoRows | GridAutoRows[]
|
|
@@ -1813,22 +1797,6 @@ export declare interface ResponsiveGridProps {
|
|
|
1813
1797
|
rows?: number | number[]
|
|
1814
1798
|
}
|
|
1815
1799
|
|
|
1816
|
-
/**
|
|
1817
|
-
* Get responsive CSS for the `heading` font style.
|
|
1818
|
-
* @internal
|
|
1819
|
-
*/
|
|
1820
|
-
export declare function responsiveHeadingFont(
|
|
1821
|
-
props: ResponsiveFontStyleProps & ThemeProps,
|
|
1822
|
-
): CSSObject[]
|
|
1823
|
-
|
|
1824
|
-
/**
|
|
1825
|
-
* Get responsive CSS for the `label` font style.
|
|
1826
|
-
* @internal
|
|
1827
|
-
*/
|
|
1828
|
-
export declare function responsiveLabelFont(
|
|
1829
|
-
props: ResponsiveFontStyleProps & ThemeProps,
|
|
1830
|
-
): CSSObject[]
|
|
1831
|
-
|
|
1832
1800
|
/**
|
|
1833
1801
|
* @public
|
|
1834
1802
|
* @deprecated
|
|
@@ -1876,29 +1844,6 @@ export declare interface ResponsiveShadowProps {
|
|
|
1876
1844
|
shadow?: number | number[]
|
|
1877
1845
|
}
|
|
1878
1846
|
|
|
1879
|
-
/**
|
|
1880
|
-
* Get responsive text align styles.
|
|
1881
|
-
* @internal
|
|
1882
|
-
*/
|
|
1883
|
-
export declare function responsiveTextAlignStyle(
|
|
1884
|
-
props: ResponsiveTextAlignStyleProps & ThemeProps,
|
|
1885
|
-
): CSSObject[]
|
|
1886
|
-
|
|
1887
|
-
/**
|
|
1888
|
-
* @internal
|
|
1889
|
-
*/
|
|
1890
|
-
export declare interface ResponsiveTextAlignStyleProps {
|
|
1891
|
-
$align: TextAlign[]
|
|
1892
|
-
}
|
|
1893
|
-
|
|
1894
|
-
/**
|
|
1895
|
-
* Get responsive CSS for the `text` font style.
|
|
1896
|
-
* @internal
|
|
1897
|
-
*/
|
|
1898
|
-
export declare function responsiveTextFont(
|
|
1899
|
-
props: ResponsiveFontStyleProps & ThemeProps,
|
|
1900
|
-
): CSSObject[]
|
|
1901
|
-
|
|
1902
1847
|
/**
|
|
1903
1848
|
* @public
|
|
1904
1849
|
* @deprecated
|
|
@@ -1957,24 +1902,25 @@ export {screen_2 as screen}
|
|
|
1957
1902
|
* @public
|
|
1958
1903
|
*/
|
|
1959
1904
|
export declare const Select: ForwardRefExoticComponent<
|
|
1960
|
-
Omit<
|
|
1905
|
+
Omit<ElementProps_2<'select'> & PolymorphicProps_2, keyof SelectProps> &
|
|
1906
|
+
SelectProps &
|
|
1961
1907
|
RefAttributes<HTMLSelectElement>
|
|
1962
1908
|
>
|
|
1963
1909
|
|
|
1964
1910
|
/**
|
|
1965
1911
|
* @public
|
|
1912
|
+
* @deprecated Use `ThemeColorStateToneKey` instead
|
|
1966
1913
|
*/
|
|
1967
1914
|
export declare type SelectableTone = ThemeColorStateToneKey
|
|
1968
1915
|
|
|
1969
1916
|
/**
|
|
1970
1917
|
* @public
|
|
1971
1918
|
*/
|
|
1972
|
-
export declare interface SelectProps {
|
|
1973
|
-
fontSize?: number | number[]
|
|
1974
|
-
padding?: number | number[]
|
|
1975
|
-
radius?: Radius | Radius[]
|
|
1976
|
-
space?: number | number[]
|
|
1919
|
+
export declare interface SelectProps extends SelectStyleProps {
|
|
1977
1920
|
customValidity?: string
|
|
1921
|
+
readOnly?: boolean
|
|
1922
|
+
/** @deprecated Use `gap` instead. */
|
|
1923
|
+
space?: ResponsiveProp<Space>
|
|
1978
1924
|
}
|
|
1979
1925
|
|
|
1980
1926
|
/**
|
|
@@ -1982,14 +1928,16 @@ export declare interface SelectProps {
|
|
|
1982
1928
|
* @beta
|
|
1983
1929
|
*/
|
|
1984
1930
|
export declare const Skeleton: ForwardRefExoticComponent<
|
|
1985
|
-
Omit<
|
|
1931
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof SkeletonProps> &
|
|
1932
|
+
SkeletonProps &
|
|
1933
|
+
RefAttributes<HTMLDivElement>
|
|
1986
1934
|
>
|
|
1987
1935
|
|
|
1988
1936
|
/**
|
|
1989
1937
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
1990
1938
|
* @beta
|
|
1991
1939
|
*/
|
|
1992
|
-
export declare interface SkeletonProps extends
|
|
1940
|
+
export declare interface SkeletonProps extends SkeletonStyleProps, Omit<BoxProps, 'children'> {
|
|
1993
1941
|
animated?: boolean
|
|
1994
1942
|
delay?: number
|
|
1995
1943
|
}
|
|
@@ -2000,7 +1948,8 @@ export declare interface SkeletonProps extends ResponsiveRadiusProps, Omit<BoxPr
|
|
|
2000
1948
|
* @public
|
|
2001
1949
|
*/
|
|
2002
1950
|
export declare const Spinner: ForwardRefExoticComponent<
|
|
2003
|
-
Omit<
|
|
1951
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof SpinnerProps> &
|
|
1952
|
+
SpinnerProps &
|
|
2004
1953
|
RefAttributes<HTMLDivElement>
|
|
2005
1954
|
>
|
|
2006
1955
|
|
|
@@ -2016,7 +1965,8 @@ export declare interface SpinnerProps {
|
|
|
2016
1965
|
* @public
|
|
2017
1966
|
*/
|
|
2018
1967
|
export declare const SrOnly: ForwardRefExoticComponent<
|
|
2019
|
-
Omit<
|
|
1968
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, 'children'> &
|
|
1969
|
+
SrOnlyProps &
|
|
2020
1970
|
RefAttributes<HTMLDivElement>
|
|
2021
1971
|
>
|
|
2022
1972
|
|
|
@@ -2024,8 +1974,7 @@ export declare const SrOnly: ForwardRefExoticComponent<
|
|
|
2024
1974
|
* @public
|
|
2025
1975
|
*/
|
|
2026
1976
|
export declare interface SrOnlyProps {
|
|
2027
|
-
|
|
2028
|
-
children?: React.ReactNode
|
|
1977
|
+
children?: ReactNode
|
|
2029
1978
|
}
|
|
2030
1979
|
|
|
2031
1980
|
/**
|
|
@@ -2034,8 +1983,8 @@ export declare interface SrOnlyProps {
|
|
|
2034
1983
|
* @public
|
|
2035
1984
|
*/
|
|
2036
1985
|
export declare const Stack: ForwardRefExoticComponent<
|
|
2037
|
-
StackProps &
|
|
2038
|
-
|
|
1986
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof StackProps> &
|
|
1987
|
+
StackProps &
|
|
2039
1988
|
RefAttributes<HTMLDivElement>
|
|
2040
1989
|
>
|
|
2041
1990
|
|
|
@@ -2043,8 +1992,11 @@ export declare const Stack: ForwardRefExoticComponent<
|
|
|
2043
1992
|
* @public
|
|
2044
1993
|
*/
|
|
2045
1994
|
export declare interface StackProps
|
|
2046
|
-
extends Omit<
|
|
2047
|
-
|
|
1995
|
+
extends Omit<
|
|
1996
|
+
BoxProps,
|
|
1997
|
+
'align' | 'columns' | 'direction' | 'display' | 'gapX' | 'gapY' | 'justify'
|
|
1998
|
+
> {
|
|
1999
|
+
/** @deprecated Use `gap` instead. */
|
|
2048
2000
|
space?: ResponsiveProp<Space>
|
|
2049
2001
|
}
|
|
2050
2002
|
|
|
@@ -2052,7 +2004,9 @@ export declare interface StackProps
|
|
|
2052
2004
|
* @public
|
|
2053
2005
|
* @deprecated Use `buildTheme` from `@sanity/ui/theme` instead.
|
|
2054
2006
|
*/
|
|
2055
|
-
export declare const studioTheme:
|
|
2007
|
+
export declare const studioTheme: {
|
|
2008
|
+
readonly value: RootTheme_2
|
|
2009
|
+
}
|
|
2056
2010
|
|
|
2057
2011
|
/**
|
|
2058
2012
|
* @public
|
|
@@ -2060,6 +2014,8 @@ export declare const studioTheme: BaseTheme_2
|
|
|
2060
2014
|
*/
|
|
2061
2015
|
export declare type Styles = ThemeStyles
|
|
2062
2016
|
|
|
2017
|
+
export declare function StyleTags(props: {theme?: Theme_v3}): ReactNode
|
|
2018
|
+
|
|
2063
2019
|
/**
|
|
2064
2020
|
* The `Switch` component allows the user to toggle a setting on and off.
|
|
2065
2021
|
*
|
|
@@ -2068,7 +2024,8 @@ export declare type Styles = ThemeStyles
|
|
|
2068
2024
|
* @public
|
|
2069
2025
|
*/
|
|
2070
2026
|
export declare const Switch: ForwardRefExoticComponent<
|
|
2071
|
-
Omit<
|
|
2027
|
+
Omit<ElementProps_2<'input'> & PolymorphicProps_2, 'indeterminate'> &
|
|
2028
|
+
SwitchProps &
|
|
2072
2029
|
RefAttributes<HTMLInputElement>
|
|
2073
2030
|
>
|
|
2074
2031
|
|
|
@@ -2083,14 +2040,8 @@ export declare interface SwitchProps {
|
|
|
2083
2040
|
* @public
|
|
2084
2041
|
*/
|
|
2085
2042
|
export declare const Tab: ForwardRefExoticComponent<
|
|
2086
|
-
Omit<
|
|
2043
|
+
Omit<ElementProps_2<'button'> & PolymorphicProps_2, keyof TabProps> &
|
|
2087
2044
|
TabProps &
|
|
2088
|
-
Omit<
|
|
2089
|
-
HTMLProps<HTMLButtonElement>,
|
|
2090
|
-
'label' | 'id' | 'type' | 'width' | 'aria-controls' | 'as'
|
|
2091
|
-
>,
|
|
2092
|
-
'ref'
|
|
2093
|
-
> &
|
|
2094
2045
|
RefAttributes<HTMLButtonElement>
|
|
2095
2046
|
>
|
|
2096
2047
|
|
|
@@ -2098,25 +2049,33 @@ export declare const Tab: ForwardRefExoticComponent<
|
|
|
2098
2049
|
* @public
|
|
2099
2050
|
*/
|
|
2100
2051
|
export declare const TabList: ForwardRefExoticComponent<
|
|
2101
|
-
Omit<
|
|
2102
|
-
|
|
2052
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof TabListProps> &
|
|
2053
|
+
TabListProps &
|
|
2054
|
+
RefAttributes<HTMLDivElement>
|
|
2103
2055
|
>
|
|
2104
2056
|
|
|
2057
|
+
/**
|
|
2058
|
+
* @public
|
|
2059
|
+
*/
|
|
2060
|
+
export declare type TabListChild =
|
|
2061
|
+
| ReactElement<Props<TabProps, 'button'>>
|
|
2062
|
+
| null
|
|
2063
|
+
| undefined
|
|
2064
|
+
| false
|
|
2065
|
+
|
|
2105
2066
|
/**
|
|
2106
2067
|
* @public
|
|
2107
2068
|
*/
|
|
2108
2069
|
export declare interface TabListProps extends Omit<InlineProps, 'as' | 'height'> {
|
|
2109
|
-
children:
|
|
2070
|
+
children: TabListChild[]
|
|
2110
2071
|
}
|
|
2111
2072
|
|
|
2112
2073
|
/**
|
|
2113
2074
|
* @public
|
|
2114
2075
|
*/
|
|
2115
2076
|
export declare const TabPanel: ForwardRefExoticComponent<
|
|
2116
|
-
Omit<
|
|
2117
|
-
TabPanelProps &
|
|
2118
|
-
'ref'
|
|
2119
|
-
> &
|
|
2077
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof TabPanelProps> &
|
|
2078
|
+
TabPanelProps &
|
|
2120
2079
|
RefAttributes<HTMLDivElement>
|
|
2121
2080
|
>
|
|
2122
2081
|
|
|
@@ -2136,15 +2095,15 @@ export declare interface TabPanelProps extends BoxProps {
|
|
|
2136
2095
|
*/
|
|
2137
2096
|
export declare interface TabProps {
|
|
2138
2097
|
/**
|
|
2139
|
-
* The `id` of the
|
|
2098
|
+
* The `id` of the corresponding `TabPanel` component.
|
|
2140
2099
|
*/
|
|
2141
2100
|
'aria-controls': string
|
|
2142
2101
|
'id': string
|
|
2143
|
-
'icon'?:
|
|
2102
|
+
'icon'?: ElementType | ReactNode
|
|
2144
2103
|
'focused'?: boolean
|
|
2145
2104
|
'fontSize'?: ResponsiveProp<FontTextSize>
|
|
2146
|
-
'label'?:
|
|
2147
|
-
'padding'?:
|
|
2105
|
+
'label'?: ReactNode
|
|
2106
|
+
'padding'?: ResponsiveProp<Space>
|
|
2148
2107
|
'selected'?: boolean
|
|
2149
2108
|
'tone'?: ButtonTone
|
|
2150
2109
|
}
|
|
@@ -2155,39 +2114,36 @@ export declare interface TabProps {
|
|
|
2155
2114
|
* @public
|
|
2156
2115
|
*/
|
|
2157
2116
|
declare const Text_2: ForwardRefExoticComponent<
|
|
2158
|
-
Omit<
|
|
2117
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof TextProps> &
|
|
2118
|
+
TextProps &
|
|
2159
2119
|
RefAttributes<HTMLDivElement>
|
|
2160
2120
|
>
|
|
2161
2121
|
export {Text_2 as Text}
|
|
2162
2122
|
|
|
2163
|
-
|
|
2164
|
-
* @public
|
|
2165
|
-
*/
|
|
2166
|
-
export declare type TextAlign = 'left' | 'right' | 'center' | 'justify' | 'initial'
|
|
2123
|
+
export {TextAlign}
|
|
2167
2124
|
|
|
2168
2125
|
/**
|
|
2169
2126
|
* A multiline text input.
|
|
2170
2127
|
*
|
|
2171
|
-
|
|
2172
2128
|
* @public
|
|
2173
2129
|
*/
|
|
2174
2130
|
export declare const TextArea: ForwardRefExoticComponent<
|
|
2175
|
-
Omit<
|
|
2131
|
+
Omit<ElementProps_2<'textarea'> & PolymorphicProps_2, keyof TextAreaProps> &
|
|
2132
|
+
TextAreaProps &
|
|
2176
2133
|
RefAttributes<HTMLTextAreaElement>
|
|
2177
2134
|
>
|
|
2178
2135
|
|
|
2179
2136
|
/**
|
|
2180
2137
|
* @public
|
|
2181
2138
|
*/
|
|
2182
|
-
export declare interface TextAreaProps extends
|
|
2139
|
+
export declare interface TextAreaProps extends TextAreaStyleProps {
|
|
2183
2140
|
/**
|
|
2184
2141
|
* @beta
|
|
2185
2142
|
*/
|
|
2186
2143
|
__unstable_disableFocusRing?: boolean
|
|
2187
|
-
border?: boolean
|
|
2188
2144
|
customValidity?: string
|
|
2189
|
-
|
|
2190
|
-
|
|
2145
|
+
/** @deprecated Use `gap` instead. */
|
|
2146
|
+
space?: ResponsiveProp<Space>
|
|
2191
2147
|
weight?: ThemeFontWeightKey_2
|
|
2192
2148
|
}
|
|
2193
2149
|
|
|
@@ -2197,41 +2153,42 @@ export declare interface TextAreaProps extends ResponsiveRadiusProps {
|
|
|
2197
2153
|
* @public
|
|
2198
2154
|
*/
|
|
2199
2155
|
export declare const TextInput: ForwardRefExoticComponent<
|
|
2200
|
-
Omit<
|
|
2156
|
+
Omit<ElementProps_2<'input'> & PolymorphicProps_2, keyof TextInputProps> &
|
|
2157
|
+
TextInputProps &
|
|
2201
2158
|
RefAttributes<HTMLInputElement>
|
|
2202
2159
|
>
|
|
2203
2160
|
|
|
2204
2161
|
/**
|
|
2205
2162
|
* @public
|
|
2206
2163
|
*/
|
|
2207
|
-
export declare type TextInputClearButtonProps = Omit<
|
|
2208
|
-
|
|
2164
|
+
export declare type TextInputClearButtonProps = Omit<
|
|
2165
|
+
Props<ButtonProps, 'button'>,
|
|
2166
|
+
'as' | 'onClick' | 'onMouseDown'
|
|
2167
|
+
>
|
|
2209
2168
|
|
|
2210
2169
|
/**
|
|
2211
2170
|
* @public
|
|
2212
2171
|
*/
|
|
2213
|
-
export declare interface TextInputProps extends
|
|
2172
|
+
export declare interface TextInputProps extends InputStyleProps {
|
|
2214
2173
|
/**
|
|
2215
2174
|
* @beta
|
|
2216
2175
|
*/
|
|
2217
2176
|
__unstable_disableFocusRing?: boolean
|
|
2218
|
-
border?: boolean
|
|
2219
2177
|
/**
|
|
2220
2178
|
* @beta
|
|
2221
2179
|
*/
|
|
2222
2180
|
clearButton?: boolean | TextInputClearButtonProps
|
|
2223
2181
|
customValidity?: string
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
iconRight?: React.ElementType | React.ReactNode
|
|
2182
|
+
icon?: ElementType | ReactNode
|
|
2183
|
+
iconRight?: ElementType | ReactNode
|
|
2227
2184
|
/**
|
|
2228
2185
|
* @beta
|
|
2229
2186
|
*/
|
|
2230
2187
|
onClear?: () => void
|
|
2231
|
-
|
|
2232
|
-
|
|
2188
|
+
prefix?: ReactNode
|
|
2189
|
+
/** @deprecated Use `gap` instead. */
|
|
2233
2190
|
space?: ResponsiveProp<Space>
|
|
2234
|
-
suffix?:
|
|
2191
|
+
suffix?: ReactNode
|
|
2235
2192
|
type?: TextInputType
|
|
2236
2193
|
weight?: ThemeFontWeightKey_2
|
|
2237
2194
|
}
|
|
@@ -2240,6 +2197,7 @@ export declare interface TextInputProps extends RadiusStyleProps {
|
|
|
2240
2197
|
* @public
|
|
2241
2198
|
*/
|
|
2242
2199
|
export declare type TextInputType =
|
|
2200
|
+
| 'search'
|
|
2243
2201
|
| 'date'
|
|
2244
2202
|
| 'datetime-local'
|
|
2245
2203
|
| 'email'
|
|
@@ -2256,19 +2214,8 @@ export declare type TextInputType =
|
|
|
2256
2214
|
/**
|
|
2257
2215
|
* @public
|
|
2258
2216
|
*/
|
|
2259
|
-
export declare interface TextProps extends TextStyleProps {
|
|
2260
|
-
|
|
2261
|
-
align?: TextAlign | TextAlign[]
|
|
2262
|
-
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
2263
|
-
/** When `true` the text color will be muted. */
|
|
2264
|
-
muted?: boolean
|
|
2265
|
-
/**
|
|
2266
|
-
* Controls how overflowing text is treated.
|
|
2267
|
-
* Use `textOverflow="ellipsis"` to render text as a single line which is concatenated with a `…` symbol.
|
|
2268
|
-
* @beta
|
|
2269
|
-
*/
|
|
2270
|
-
textOverflow?: 'ellipsis' | 'none'
|
|
2271
|
-
weight?: ThemeFontWeightKey_2
|
|
2217
|
+
export declare interface TextProps extends TextStyleProps, TextOverflowStyleProps {
|
|
2218
|
+
htmlFor?: string
|
|
2272
2219
|
}
|
|
2273
2220
|
|
|
2274
2221
|
/**
|
|
@@ -2276,10 +2223,8 @@ export declare interface TextProps extends TextStyleProps {
|
|
|
2276
2223
|
* @beta
|
|
2277
2224
|
*/
|
|
2278
2225
|
export declare const TextSkeleton: ForwardRefExoticComponent<
|
|
2279
|
-
Omit<
|
|
2280
|
-
TextSkeletonProps &
|
|
2281
|
-
'ref'
|
|
2282
|
-
> &
|
|
2226
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof TextSkeletonProps> &
|
|
2227
|
+
TextSkeletonProps &
|
|
2283
2228
|
RefAttributes<HTMLDivElement>
|
|
2284
2229
|
>
|
|
2285
2230
|
|
|
@@ -2288,7 +2233,7 @@ export declare const TextSkeleton: ForwardRefExoticComponent<
|
|
|
2288
2233
|
* @beta
|
|
2289
2234
|
*/
|
|
2290
2235
|
export declare interface TextSkeletonProps extends SkeletonProps {
|
|
2291
|
-
size?:
|
|
2236
|
+
size?: ResponsiveProp<FontTextSize>
|
|
2292
2237
|
}
|
|
2293
2238
|
|
|
2294
2239
|
/**
|
|
@@ -2340,7 +2285,7 @@ export {ThemeColorName}
|
|
|
2340
2285
|
/**
|
|
2341
2286
|
* @public
|
|
2342
2287
|
*/
|
|
2343
|
-
export declare function ThemeColorProvider(props: ThemeColorProviderProps):
|
|
2288
|
+
export declare function ThemeColorProvider(props: ThemeColorProviderProps): ReactElement
|
|
2344
2289
|
|
|
2345
2290
|
export declare namespace ThemeColorProvider {
|
|
2346
2291
|
var displayName: string
|
|
@@ -2350,7 +2295,7 @@ export declare namespace ThemeColorProvider {
|
|
|
2350
2295
|
* @public
|
|
2351
2296
|
*/
|
|
2352
2297
|
export declare interface ThemeColorProviderProps {
|
|
2353
|
-
children?:
|
|
2298
|
+
children?: ReactNode
|
|
2354
2299
|
scheme?: ThemeColorSchemeKey_2
|
|
2355
2300
|
tone?: ThemeColorCardToneKey
|
|
2356
2301
|
}
|
|
@@ -2442,17 +2387,10 @@ export {ThemeInput}
|
|
|
2442
2387
|
*/
|
|
2443
2388
|
export declare type ThemeLayer = ThemeLayer_2
|
|
2444
2389
|
|
|
2445
|
-
/**
|
|
2446
|
-
* @internal
|
|
2447
|
-
*/
|
|
2448
|
-
export declare interface ThemeProps {
|
|
2449
|
-
theme: Theme_2
|
|
2450
|
-
}
|
|
2451
|
-
|
|
2452
2390
|
/**
|
|
2453
2391
|
* @public
|
|
2454
2392
|
*/
|
|
2455
|
-
export declare function ThemeProvider(props: ThemeProviderProps):
|
|
2393
|
+
export declare function ThemeProvider(props: ThemeProviderProps): ReactElement
|
|
2456
2394
|
|
|
2457
2395
|
export declare namespace ThemeProvider {
|
|
2458
2396
|
var displayName: string
|
|
@@ -2462,7 +2400,7 @@ export declare namespace ThemeProvider {
|
|
|
2462
2400
|
* @public
|
|
2463
2401
|
*/
|
|
2464
2402
|
export declare interface ThemeProviderProps {
|
|
2465
|
-
children?:
|
|
2403
|
+
children?: ReactNode
|
|
2466
2404
|
scheme?: ThemeColorSchemeKey_2
|
|
2467
2405
|
theme?: RootTheme_2
|
|
2468
2406
|
tone?: ThemeColorCardToneKey
|
|
@@ -2482,9 +2420,11 @@ export declare type ThemeShadow = ThemeShadow_2
|
|
|
2482
2420
|
* @public
|
|
2483
2421
|
*/
|
|
2484
2422
|
export declare function Toast(
|
|
2485
|
-
props:
|
|
2486
|
-
|
|
2487
|
-
|
|
2423
|
+
props: Omit<
|
|
2424
|
+
Props<ToastProps, 'div'>,
|
|
2425
|
+
'onDrag' | 'onDragEnd' | 'onDragStart' | 'onAnimationStart'
|
|
2426
|
+
>,
|
|
2427
|
+
): ReactElement
|
|
2488
2428
|
|
|
2489
2429
|
export declare namespace Toast {
|
|
2490
2430
|
var displayName: string
|
|
@@ -2495,19 +2435,32 @@ export declare namespace Toast {
|
|
|
2495
2435
|
*/
|
|
2496
2436
|
export declare interface ToastContextValue {
|
|
2497
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
|
+
*/
|
|
2498
2444
|
push: (params: ToastParams) => string
|
|
2499
2445
|
}
|
|
2500
2446
|
|
|
2447
|
+
/**
|
|
2448
|
+
* @public
|
|
2449
|
+
*/
|
|
2450
|
+
declare interface ToastLayerProps extends GapStyleProps, PaddingStyleProps {
|
|
2451
|
+
children: ReactNode
|
|
2452
|
+
}
|
|
2453
|
+
|
|
2501
2454
|
/**
|
|
2502
2455
|
* @public
|
|
2503
2456
|
*/
|
|
2504
2457
|
export declare interface ToastParams {
|
|
2505
2458
|
closable?: boolean
|
|
2506
|
-
description?:
|
|
2459
|
+
description?: ReactNode
|
|
2507
2460
|
duration?: number
|
|
2508
2461
|
id?: string
|
|
2509
2462
|
onClose?: () => void
|
|
2510
|
-
title?:
|
|
2463
|
+
title?: ReactNode
|
|
2511
2464
|
status?: 'error' | 'warning' | 'success' | 'info'
|
|
2512
2465
|
}
|
|
2513
2466
|
|
|
@@ -2516,17 +2469,18 @@ export declare interface ToastParams {
|
|
|
2516
2469
|
*/
|
|
2517
2470
|
export declare interface ToastProps extends RadiusStyleProps {
|
|
2518
2471
|
closable?: boolean
|
|
2519
|
-
description?:
|
|
2472
|
+
description?: ReactNode
|
|
2520
2473
|
onClose?: () => void
|
|
2521
|
-
title?:
|
|
2474
|
+
title?: ReactNode
|
|
2522
2475
|
status?: 'error' | 'warning' | 'success' | 'info'
|
|
2523
2476
|
duration?: number
|
|
2477
|
+
updatedAt?: number
|
|
2524
2478
|
}
|
|
2525
2479
|
|
|
2526
2480
|
/**
|
|
2527
2481
|
* @public
|
|
2528
2482
|
*/
|
|
2529
|
-
export declare function ToastProvider(props: ToastProviderProps): React.
|
|
2483
|
+
export declare function ToastProvider(props: ToastProviderProps): React.JSX.Element
|
|
2530
2484
|
|
|
2531
2485
|
export declare namespace ToastProvider {
|
|
2532
2486
|
var displayName: string
|
|
@@ -2535,11 +2489,8 @@ export declare namespace ToastProvider {
|
|
|
2535
2489
|
/**
|
|
2536
2490
|
* @public
|
|
2537
2491
|
*/
|
|
2538
|
-
export declare interface ToastProviderProps {
|
|
2492
|
+
export declare interface ToastProviderProps extends Omit<ToastLayerProps, 'children'> {
|
|
2539
2493
|
children?: React.ReactNode
|
|
2540
|
-
padding?: number | number[]
|
|
2541
|
-
paddingX?: number | number[]
|
|
2542
|
-
paddingY?: number | number[]
|
|
2543
2494
|
zOffset?: number | number[]
|
|
2544
2495
|
}
|
|
2545
2496
|
|
|
@@ -2549,11 +2500,8 @@ export declare interface ToastProviderProps {
|
|
|
2549
2500
|
* @public
|
|
2550
2501
|
*/
|
|
2551
2502
|
export declare const Tooltip: ForwardRefExoticComponent<
|
|
2552
|
-
Omit<
|
|
2503
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof TooltipProps> &
|
|
2553
2504
|
TooltipProps &
|
|
2554
|
-
Omit<HTMLProps<HTMLDivElement>, 'content' | 'width' | 'wrap' | 'children' | 'as'>,
|
|
2555
|
-
'ref'
|
|
2556
|
-
> &
|
|
2557
2505
|
RefAttributes<HTMLDivElement>
|
|
2558
2506
|
>
|
|
2559
2507
|
|
|
@@ -2566,7 +2514,6 @@ export declare const TooltipDelayGroupContext: Context<TooltipDelayGroupContextV
|
|
|
2566
2514
|
* @beta
|
|
2567
2515
|
*/
|
|
2568
2516
|
export declare interface TooltipDelayGroupContextValue {
|
|
2569
|
-
isGroupActive: boolean
|
|
2570
2517
|
setIsGroupActive: (nextState: React.SetStateAction<boolean>, delay?: number | undefined) => void
|
|
2571
2518
|
setOpenTooltipId: (nextId: string | null, delay?: number | undefined) => void
|
|
2572
2519
|
openDelay: number
|
|
@@ -2581,7 +2528,7 @@ export declare interface TooltipDelayGroupContextValue {
|
|
|
2581
2528
|
*/
|
|
2582
2529
|
export declare function TooltipDelayGroupProvider(
|
|
2583
2530
|
props: TooltipDelayGroupProviderProps,
|
|
2584
|
-
):
|
|
2531
|
+
): ReactElement
|
|
2585
2532
|
|
|
2586
2533
|
export declare namespace TooltipDelayGroupProvider {
|
|
2587
2534
|
var displayName: string
|
|
@@ -2591,7 +2538,7 @@ export declare namespace TooltipDelayGroupProvider {
|
|
|
2591
2538
|
* @public
|
|
2592
2539
|
* */
|
|
2593
2540
|
export declare interface TooltipDelayGroupProviderProps {
|
|
2594
|
-
children?:
|
|
2541
|
+
children?: ReactNode
|
|
2595
2542
|
/**
|
|
2596
2543
|
* Handles the delays to open or close a tooltip inside a group
|
|
2597
2544
|
*
|
|
@@ -2607,21 +2554,23 @@ export declare interface TooltipDelayGroupProviderProps {
|
|
|
2607
2554
|
/**
|
|
2608
2555
|
* @public
|
|
2609
2556
|
*/
|
|
2610
|
-
export declare interface TooltipProps
|
|
2557
|
+
export declare interface TooltipProps
|
|
2558
|
+
extends Omit<LayerProps, 'as'>,
|
|
2559
|
+
RadiusStyleProps,
|
|
2560
|
+
ShadowStyleProps {
|
|
2611
2561
|
/** @deprecated Use `fallbackPlacements` instead. */
|
|
2612
2562
|
allowedAutoPlacements?: Placement[]
|
|
2563
|
+
/**
|
|
2564
|
+
* Whether the tooltip should animate in and out.
|
|
2565
|
+
*
|
|
2566
|
+
* @beta
|
|
2567
|
+
* @defaultValue false
|
|
2568
|
+
*/
|
|
2569
|
+
animate?: boolean
|
|
2613
2570
|
arrow?: boolean
|
|
2614
2571
|
boundaryElement?: HTMLElement | null
|
|
2615
|
-
children?:
|
|
2616
|
-
content?:
|
|
2617
|
-
disabled?: boolean
|
|
2618
|
-
fallbackPlacements?: Placement[]
|
|
2619
|
-
padding?: number | number[]
|
|
2620
|
-
placement?: Placement
|
|
2621
|
-
/** Whether or not to render the tooltip in a portal element. */
|
|
2622
|
-
portal?: boolean | string
|
|
2623
|
-
scheme?: ThemeColorSchemeKey_2
|
|
2624
|
-
shadow?: number | number[]
|
|
2572
|
+
children?: ReactElement<Props>
|
|
2573
|
+
content?: ReactNode
|
|
2625
2574
|
/**
|
|
2626
2575
|
* Adds a delay to open or close the tooltip.
|
|
2627
2576
|
*
|
|
@@ -2633,28 +2582,23 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'>, RadiusStyl
|
|
|
2633
2582
|
* @defaultValue 0
|
|
2634
2583
|
*/
|
|
2635
2584
|
delay?: Delay
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
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
|
|
2643
2592
|
}
|
|
2644
2593
|
|
|
2645
2594
|
/**
|
|
2646
2595
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
2647
2596
|
* @beta
|
|
2648
2597
|
*/
|
|
2649
|
-
export declare const Tree:
|
|
2650
|
-
|
|
2598
|
+
export declare const Tree: NamedExoticComponent<
|
|
2599
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof TreeProps> &
|
|
2651
2600
|
TreeProps &
|
|
2652
|
-
|
|
2653
|
-
HTMLProps<HTMLDivElement>,
|
|
2654
|
-
'height' | 'width' | 'wrap' | 'role' | 'ref' | 'as' | 'align'
|
|
2655
|
-
> &
|
|
2656
|
-
RefAttributes<HTMLDivElement>
|
|
2657
|
-
>
|
|
2601
|
+
RefAttributes<HTMLDivElement>
|
|
2658
2602
|
>
|
|
2659
2603
|
|
|
2660
2604
|
/**
|
|
@@ -2676,25 +2620,22 @@ export declare interface TreeContextValue {
|
|
|
2676
2620
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
2677
2621
|
* @beta
|
|
2678
2622
|
*/
|
|
2679
|
-
export declare const TreeItem: NamedExoticComponent<
|
|
2680
|
-
TreeItemProps &
|
|
2681
|
-
Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'wrap' | 'role' | 'ref' | 'as'>
|
|
2682
|
-
>
|
|
2623
|
+
export declare const TreeItem: NamedExoticComponent<Omit<Props<TreeItemProps, 'div'>, 'as'>>
|
|
2683
2624
|
|
|
2684
2625
|
/**
|
|
2685
2626
|
* @beta
|
|
2686
2627
|
*/
|
|
2687
|
-
export declare interface TreeItemProps {
|
|
2628
|
+
export declare interface TreeItemProps extends CardProps {
|
|
2688
2629
|
expanded?: boolean
|
|
2689
|
-
fontSize?:
|
|
2690
|
-
icon?:
|
|
2630
|
+
fontSize?: ResponsiveProp<FontTextSize>
|
|
2631
|
+
icon?: ElementType
|
|
2691
2632
|
/**
|
|
2692
2633
|
* Allows passing a custom element type to the link component
|
|
2693
2634
|
*/
|
|
2694
|
-
linkAs?:
|
|
2695
|
-
padding?:
|
|
2635
|
+
linkAs?: ElementType
|
|
2636
|
+
padding?: ResponsiveProp<Space>
|
|
2696
2637
|
space?: ResponsiveProp<Space>
|
|
2697
|
-
text?:
|
|
2638
|
+
text?: ReactNode
|
|
2698
2639
|
weight?: ThemeFontWeightKey_2
|
|
2699
2640
|
}
|
|
2700
2641
|
|
|
@@ -2702,7 +2643,8 @@ export declare interface TreeItemProps {
|
|
|
2702
2643
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
2703
2644
|
* @beta
|
|
2704
2645
|
*/
|
|
2705
|
-
export declare interface TreeProps {
|
|
2646
|
+
export declare interface TreeProps extends Pick<GapStyleProps, 'gap'> {
|
|
2647
|
+
/** @deprecated Use `gap` instead. */
|
|
2706
2648
|
space?: ResponsiveProp<Space>
|
|
2707
2649
|
}
|
|
2708
2650
|
|
|
@@ -2718,20 +2660,20 @@ export declare interface TreeState {
|
|
|
2718
2660
|
| undefined
|
|
2719
2661
|
}
|
|
2720
2662
|
|
|
2663
|
+
/** @beta */
|
|
2721
2664
|
/**
|
|
2722
2665
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
2723
2666
|
* @beta
|
|
2724
2667
|
*/
|
|
2725
|
-
export declare function useArrayProp<T
|
|
2726
|
-
val: T | T[] | undefined,
|
|
2727
|
-
defaultVal?: T[],
|
|
2728
|
-
): T[]
|
|
2668
|
+
export declare function useArrayProp<T>(val: T | T[] | undefined, defaultVal?: T[]): T[]
|
|
2729
2669
|
|
|
2730
2670
|
/**
|
|
2731
2671
|
* @public
|
|
2732
2672
|
*/
|
|
2733
2673
|
export declare function useBoundaryElement(): BoundaryElementContextValue
|
|
2734
2674
|
|
|
2675
|
+
export declare function useCard(): CardContextValue_2 | null
|
|
2676
|
+
|
|
2735
2677
|
/**
|
|
2736
2678
|
* @public
|
|
2737
2679
|
* @deprecated replaced by the new `useClickOutsideEvent` hook, instead of:
|
|
@@ -2804,9 +2746,7 @@ export declare function useElementSize(element: HTMLElement | null): ElementSize
|
|
|
2804
2746
|
* +useImperativeHandle(forwardedRef, () => ref.current)
|
|
2805
2747
|
* ```
|
|
2806
2748
|
*/
|
|
2807
|
-
export declare function useForwardedRef<T>(
|
|
2808
|
-
ref: React.ForwardedRef<T>,
|
|
2809
|
-
): React.MutableRefObject<T | null>
|
|
2749
|
+
export declare function useForwardedRef<T>(ref: ForwardedRef<T>): MutableRefObject<T | null>
|
|
2810
2750
|
|
|
2811
2751
|
/**
|
|
2812
2752
|
* @beta
|
|
@@ -2821,7 +2761,7 @@ export declare function useLayer(): LayerContextValue
|
|
|
2821
2761
|
/**
|
|
2822
2762
|
* Efficiently subscribes to `window.matchMedia` queries
|
|
2823
2763
|
*
|
|
2824
|
-
* @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)
|
|
2825
2765
|
*
|
|
2826
2766
|
* @public
|
|
2827
2767
|
*/
|
|
@@ -2844,7 +2784,7 @@ export declare function usePortal(): PortalContextValue
|
|
|
2844
2784
|
/**
|
|
2845
2785
|
* Returns true if a dark color scheme is preferred, false if a light color scheme is preferred or the preference is not known.
|
|
2846
2786
|
*
|
|
2847
|
-
* @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)
|
|
2848
2788
|
*
|
|
2849
2789
|
* If you persist the detected preference in a cookie or a header then you may implement your own server snapshot to read it.
|
|
2850
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
|
|
@@ -2857,7 +2797,7 @@ export declare function usePrefersDark(getServerSnapshot?: () => boolean): boole
|
|
|
2857
2797
|
/**
|
|
2858
2798
|
* Returns true if motion should be reduced
|
|
2859
2799
|
*
|
|
2860
|
-
* @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)
|
|
2861
2801
|
*
|
|
2862
2802
|
* If you persist the detected preference in a cookie or a header then you may implement your own server snapshot to read it.
|
|
2863
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
|
|
@@ -2901,9 +2841,8 @@ export declare function useTree(): TreeContextValue
|
|
|
2901
2841
|
* @beta
|
|
2902
2842
|
*/
|
|
2903
2843
|
export declare const VirtualList: ForwardRefExoticComponent<
|
|
2904
|
-
VirtualListProps<any
|
|
2905
|
-
|
|
2906
|
-
Omit<HTMLProps<HTMLDivElement>, 'children' | 'onChange' | 'ref' | 'as'> &
|
|
2844
|
+
Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof VirtualListProps<any>> &
|
|
2845
|
+
VirtualListProps<any> &
|
|
2907
2846
|
RefAttributes<HTMLDivElement>
|
|
2908
2847
|
>
|
|
2909
2848
|
|
|
@@ -2922,13 +2861,12 @@ export declare interface VirtualListChangeOpts {
|
|
|
2922
2861
|
/**
|
|
2923
2862
|
* @beta
|
|
2924
2863
|
*/
|
|
2925
|
-
export declare interface VirtualListProps<Item = any> {
|
|
2926
|
-
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
2864
|
+
export declare interface VirtualListProps<Item = any> extends Omit<StackProps, 'gap'> {
|
|
2927
2865
|
gap?: number
|
|
2928
2866
|
getItemKey?: (item: Item, itemIndex: number) => string
|
|
2929
2867
|
items?: Item[]
|
|
2930
2868
|
onChange?: (opts: VirtualListChangeOpts) => void
|
|
2931
|
-
renderItem?: (item: Item) =>
|
|
2869
|
+
renderItem?: (item: Item) => ReactNode
|
|
2932
2870
|
}
|
|
2933
2871
|
|
|
2934
2872
|
export {}
|