@sanity/ui 2.0.0-alpha.9 → 2.0.0-beta.2
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/dist/index.cjs.mjs +38 -13
- package/dist/index.d.ts +500 -600
- package/dist/index.esm.js +1243 -6208
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1525 -6286
- package/dist/index.js.map +1 -1
- package/dist/theme.cjs.mjs +54 -0
- package/dist/theme.d.ts +1528 -0
- package/dist/theme.esm.js +4345 -0
- package/dist/theme.esm.js.map +1 -0
- package/dist/theme.js +4400 -0
- package/dist/theme.js.map +1 -0
- package/exports/index.ts +1 -0
- package/exports/theme.ts +1 -0
- package/package.json +89 -68
- package/src/{__workshop__ → core/__workshop__}/constants.ts +4 -5
- package/src/core/__workshop__/fontsPlugin.tsx +36 -0
- package/src/core/_compat.ts +115 -0
- package/src/{components → core/components}/autocomplete/__workshop__/async.tsx +4 -5
- package/src/{components → core/components}/autocomplete/__workshop__/constrainedHeight.tsx +27 -22
- package/src/{components → core/components}/autocomplete/__workshop__/custom.tsx +36 -31
- package/src/{components → core/components}/autocomplete/__workshop__/example.tsx +2 -2
- package/src/{components → core/components}/autocomplete/__workshop__/focusAndBlur.tsx +5 -3
- package/src/{components → core/components}/autocomplete/autocomplete.tsx +7 -1
- package/src/{components → core/components}/dialog/__workshop__/activate.tsx +0 -1
- package/src/{components → core/components}/dialog/__workshop__/layering.tsx +5 -1
- package/src/{components → core/components}/dialog/__workshop__/panes.tsx +2 -7
- package/src/{components → core/components}/dialog/dialog.tsx +34 -96
- package/src/core/components/dialog/styles.ts +76 -0
- package/src/{components → core/components}/hotkeys/hotkeys.tsx +6 -2
- package/src/{components → core/components}/menu/__workshop__/asComponent.tsx +4 -4
- package/src/core/components/menu/__workshop__/avatarMenu.tsx +50 -0
- package/src/{components → core/components}/menu/__workshop__/closableMenuButton.tsx +2 -2
- package/src/{components → core/components}/menu/__workshop__/customMenuItem.tsx +9 -3
- package/src/{components → core/components}/menu/__workshop__/disableFocusOnClose.tsx +2 -2
- package/src/{components → core/components}/menu/__workshop__/index.ts +5 -0
- package/src/{components → core/components}/menu/__workshop__/menuButton.tsx +1 -1
- package/src/{components → core/components}/menu/menu.test.tsx +1 -1
- package/src/{components → core/components}/menu/menu.tsx +2 -0
- package/src/{components → core/components}/menu/menuButton.tsx +3 -1
- package/src/{components → core/components}/menu/menuDivider.ts +1 -2
- package/src/{components → core/components}/menu/menuGroup.tsx +2 -2
- package/src/{components → core/components}/menu/menuItem.tsx +11 -5
- package/src/{components → core/components}/skeleton/styles.ts +7 -8
- package/src/{components → core/components}/skeleton/textSkeleton.tsx +12 -14
- package/src/{components → core/components}/tab/tab.tsx +4 -2
- package/src/{components → core/components}/toast/toast.test.tsx +1 -1
- package/src/{components → core/components}/toast/toast.tsx +13 -4
- package/src/{components → core/components}/tree/__workshop__/tabFromElement.tsx +1 -1
- package/src/{components → core/components}/tree/style.ts +23 -25
- package/src/{components → core/components}/tree/treeItem.tsx +3 -3
- package/src/{constants.ts → core/constants.ts} +1 -0
- package/src/{hooks → core/hooks}/useElementRect/__workshop__/example.tsx +3 -1
- package/src/{hooks → core/hooks}/useMediaIndex/__workshop__/test.tsx +1 -1
- package/src/{hooks → core/hooks}/useMediaIndex/useMediaIndex.test.tsx +4 -3
- package/src/{hooks → core/hooks}/useMediaIndex/useMediaIndex.ts +2 -3
- package/src/{index.ts → core/index.ts} +2 -0
- package/src/{lib → core/lib}/isRecord.ts +1 -1
- package/src/{primitives → core/primitives}/_selectable/style.ts +24 -26
- package/src/{primitives → core/primitives}/avatar/__workshop__/asButton.tsx +1 -1
- package/src/{primitives → core/primitives}/avatar/__workshop__/stack.tsx +1 -1
- package/src/{primitives → core/primitives}/avatar/avatar.tsx +49 -30
- package/src/{primitives → core/primitives}/avatar/avatarCounter.tsx +25 -15
- package/src/{primitives → core/primitives}/avatar/avatarStack.tsx +4 -4
- package/src/{primitives → core/primitives}/avatar/styles.ts +21 -12
- package/src/{primitives → core/primitives}/avatar/types.ts +2 -15
- package/src/{primitives → core/primitives}/badge/__workshop__/props.tsx +1 -1
- package/src/{primitives → core/primitives}/badge/__workshop__/tones.tsx +1 -1
- package/src/{primitives → core/primitives}/badge/badge.test.tsx +1 -1
- package/src/{primitives → core/primitives}/badge/badge.tsx +6 -3
- package/src/core/primitives/badge/styles.ts +19 -0
- package/src/{primitives → core/primitives}/badge/types.ts +1 -2
- package/src/{primitives → core/primitives}/box/__workshop__/responsive.tsx +2 -2
- package/src/{primitives → core/primitives}/box/box.tsx +3 -0
- package/src/{primitives → core/primitives}/button/__workshop__/sanityUploadButton.tsx +2 -1
- package/src/{primitives → core/primitives}/button/__workshop__/stacked.tsx +1 -1
- package/src/{primitives → core/primitives}/button/button.test.tsx +1 -1
- package/src/{primitives → core/primitives}/button/button.tsx +12 -9
- package/src/core/primitives/button/styles.ts +116 -0
- package/src/{primitives → core/primitives}/card/__workshop__/asButton.tsx +6 -6
- package/src/{primitives → core/primitives}/card/__workshop__/asComponent.tsx +1 -1
- package/src/{primitives → core/primitives}/card/__workshop__/selected.tsx +18 -27
- package/src/{primitives → core/primitives}/card/card.tsx +12 -43
- package/src/{primitives → core/primitives}/card/styles.ts +31 -45
- package/src/{primitives → core/primitives}/card/types.ts +1 -3
- package/src/{primitives → core/primitives}/checkbox/__workshop__/example.tsx +1 -1
- package/src/{primitives → core/primitives}/checkbox/__workshop__/props.tsx +1 -1
- package/src/{primitives → core/primitives}/checkbox/__workshop__/readOnly.tsx +1 -1
- package/src/{primitives → core/primitives}/checkbox/checkbox.tsx +2 -0
- package/src/{primitives → core/primitives}/checkbox/styles.ts +23 -23
- package/src/{primitives → core/primitives}/code/code.tsx +4 -15
- package/src/core/primitives/code/styles.ts +77 -0
- package/src/{primitives → core/primitives}/container/container.tsx +2 -0
- package/src/{primitives → core/primitives}/container/styles.ts +2 -3
- package/src/{primitives → core/primitives}/flex/flex.tsx +2 -1
- package/src/{primitives → core/primitives}/grid/grid.tsx +2 -0
- package/src/{primitives → core/primitives}/heading/heading.tsx +3 -1
- package/src/{primitives → core/primitives}/heading/styles.ts +9 -8
- package/src/{primitives → core/primitives}/inline/inline.tsx +3 -0
- package/src/{primitives → core/primitives}/inline/styles.ts +6 -6
- package/src/{primitives → core/primitives}/kbd/kbd.tsx +10 -4
- package/src/{primitives → core/primitives}/label/label.tsx +3 -1
- package/src/{primitives → core/primitives}/label/styles.ts +6 -6
- package/src/{primitives → core/primitives}/popover/__workshop__/RecursiveStory.tsx +2 -9
- package/src/{primitives → core/primitives}/popover/__workshop__/TestStory.tsx +6 -3
- package/src/{primitives → core/primitives}/popover/constants.ts +3 -2
- package/src/{primitives → core/primitives}/popover/helpers.ts +3 -4
- package/src/{primitives → core/primitives}/popover/popover.tsx +19 -11
- package/src/{primitives → core/primitives}/popover/popoverCard.tsx +24 -22
- package/src/{primitives → core/primitives}/popover/types.ts +1 -1
- package/src/{primitives → core/primitives}/radio/radio.tsx +2 -0
- package/src/{primitives → core/primitives}/radio/styles.ts +17 -19
- package/src/{primitives → core/primitives}/select/select.tsx +4 -2
- package/src/{primitives → core/primitives}/select/styles.ts +32 -33
- package/src/{primitives → core/primitives}/spinner/spinner.tsx +2 -0
- package/src/{primitives → core/primitives}/stack/stack.tsx +2 -0
- package/src/{primitives → core/primitives}/stack/styles.ts +2 -3
- package/src/{primitives → core/primitives}/switch/__workshop__/example.tsx +1 -1
- package/src/core/primitives/switch/__workshop__/props.tsx +21 -0
- package/src/{primitives → core/primitives}/switch/styles.ts +18 -21
- package/src/{primitives → core/primitives}/switch/switch.tsx +4 -0
- package/src/core/primitives/text/__workshop__/colored.tsx +29 -0
- package/src/{primitives → core/primitives}/text/styles.ts +18 -14
- package/src/{primitives → core/primitives}/text/text.tsx +4 -1
- package/src/{primitives → core/primitives}/textArea/__workshop__/plain.tsx +1 -1
- package/src/{primitives → core/primitives}/textArea/textArea.tsx +15 -7
- package/src/{primitives → core/primitives}/textInput/__workshop__/plain.tsx +1 -1
- package/src/{primitives → core/primitives}/textInput/__workshop__/states.tsx +3 -3
- package/src/{primitives → core/primitives}/textInput/textInput.tsx +22 -12
- package/src/core/primitives/tooltip/__workshop__/customPortal.tsx +99 -0
- package/src/core/primitives/tooltip/__workshop__/index.ts +29 -0
- package/src/core/primitives/tooltip/__workshop__/overflowingBoundary.tsx +73 -0
- package/src/{primitives → core/primitives}/tooltip/__workshop__/props.tsx +3 -20
- package/src/core/primitives/tooltip/__workshop__/resizableBoundary.tsx +85 -0
- package/src/core/primitives/tooltip/conditionalWrapper.tsx +15 -0
- package/src/core/primitives/tooltip/constants.ts +23 -0
- package/src/{primitives → core/primitives}/tooltip/tooltip.test.tsx +192 -20
- package/src/{primitives → core/primitives}/tooltip/tooltip.tsx +202 -79
- package/src/{primitives → core/primitives}/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +4 -10
- package/src/{primitives → core/primitives}/types.ts +4 -0
- package/src/core/styles/border/borderStyle.ts +55 -0
- package/src/{styles → core/styles}/box/boxStyle.ts +5 -9
- package/src/core/styles/card/_cardColorStyle.ts +99 -0
- package/src/core/styles/card/index.ts +1 -0
- package/src/{styles → core/styles}/flex/flexItemStyle.ts +2 -3
- package/src/{styles → core/styles}/flex/flexStyle.ts +6 -11
- package/src/{styles → core/styles}/focusRing/index.ts +5 -7
- package/src/{styles → core/styles}/font/codeFontStyle.ts +1 -1
- package/src/{styles → core/styles}/font/headingFontStyle.ts +1 -1
- package/src/{styles → core/styles}/font/labelFontStyle.ts +1 -1
- package/src/{styles → core/styles}/font/responsiveFont.ts +5 -5
- package/src/{styles → core/styles}/font/textAlignStyle.ts +3 -3
- package/src/{styles → core/styles}/font/textFontStyle.ts +1 -1
- package/src/{styles → core/styles}/font/types.ts +1 -1
- package/src/{styles → core/styles}/grid/gridItemStyle.ts +7 -13
- package/src/{styles → core/styles}/grid/gridStyle.ts +9 -17
- package/src/{styles → core/styles}/helpers.ts +6 -4
- package/src/{styles → core/styles}/input/responsiveInputPaddingStyle.ts +6 -6
- package/src/core/styles/input/textInputStyle.ts +232 -0
- package/src/{styles → core/styles}/margin/marginStyle.ts +1 -1
- package/src/{styles → core/styles}/margin/marginsStyle.test.ts +2 -2
- package/src/{styles → core/styles}/padding/paddingStyle.test.ts +2 -2
- package/src/{styles → core/styles}/padding/paddingStyle.ts +1 -1
- package/src/{styles → core/styles}/radius/radiusStyle.ts +2 -3
- package/src/core/styles/shadow/shadowStyle.ts +29 -0
- package/src/{styles → core/styles}/types.ts +1 -1
- package/src/core/theme/__workshop__/build/Root.tsx +350 -0
- package/src/core/theme/__workshop__/build/helpers.ts +46 -0
- package/src/core/theme/__workshop__/build/story.tsx +453 -0
- package/src/core/theme/__workshop__/canvas.tsx +350 -0
- package/src/{theme → core/theme}/__workshop__/color.tsx +5 -8
- package/src/{theme → core/theme}/__workshop__/index.ts +10 -0
- package/src/core/theme/index.ts +5 -0
- package/src/{theme → core/theme}/theme.test.tsx +3 -36
- package/src/{theme → core/theme}/themeColorProvider.tsx +2 -4
- package/src/{theme → core/theme}/themeContext.ts +2 -2
- package/src/core/theme/themeProvider.tsx +61 -0
- package/src/core/theme/types.ts +12 -0
- package/src/core/theme/useRootTheme.ts +16 -0
- package/src/core/theme/useTheme.ts +16 -0
- package/src/{types → core/types}/avatar.ts +1 -1
- package/src/core/types/badge.ts +12 -0
- package/src/core/types/button.ts +22 -0
- package/src/core/types/card.ts +6 -0
- package/src/{types → core/types}/index.ts +0 -1
- package/src/core/types/selectable.ts +6 -0
- package/src/core/utils/arrow/arrow.tsx +121 -0
- package/src/core/utils/arrow/cmds.ts +91 -0
- package/src/core/utils/arrow/index.ts +1 -0
- package/src/{utils → core/utils}/boundaryElement/__workshop__/plain.tsx +2 -6
- package/src/{utils → core/utils}/boundaryElement/boundaryElement.test.tsx +1 -1
- package/src/{utils → core/utils}/elementQuery/__workshop__/customMedia.tsx +3 -4
- package/src/{utils → core/utils}/elementQuery/elementQuery.tsx +3 -3
- package/src/{utils → core/utils}/index.ts +1 -0
- package/src/{utils → core/utils}/layer/__workshop__/_debug.tsx +1 -1
- package/src/{utils → core/utils}/layer/layer.test.tsx +1 -1
- package/src/{utils → core/utils}/portal/__workshop__/named.tsx +3 -3
- package/src/{utils → core/utils}/portal/portal.test.tsx +1 -1
- package/src/{utils → core/utils}/virtualList/virtualList.tsx +2 -2
- package/src/theme/build/_deprecated/color/_selectable/createSelectableTones.ts +76 -0
- package/src/theme/build/_deprecated/color/_solid/createSolidTones.ts +54 -0
- package/src/theme/build/_deprecated/color/button/createButtonModes.ts +22 -0
- package/src/theme/build/_deprecated/color/button/createButtonTones.ts +55 -0
- package/src/theme/build/_deprecated/color/card/createCardStates.ts +60 -0
- package/src/theme/build/_deprecated/color/color.test.ts +63 -0
- package/src/theme/build/_deprecated/color/defaults.ts +390 -0
- package/src/theme/build/_deprecated/color/factory.ts +142 -0
- package/src/theme/build/_deprecated/color/index.ts +1 -0
- package/src/theme/build/_deprecated/color/input/createInputModes.ts +81 -0
- package/src/theme/build/_deprecated/color/muted/createMuted.ts +54 -0
- package/src/theme/build/_deprecated/color/spot/createSpot.ts +20 -0
- package/src/theme/build/buildColorTheme.test.ts +183 -0
- package/src/theme/build/buildColorTheme.ts +484 -0
- package/src/theme/build/buildTheme.test.ts +87 -0
- package/src/theme/build/buildTheme.ts +36 -0
- package/src/theme/build/colorToken.ts +39 -0
- package/src/theme/build/index.ts +3 -0
- package/src/theme/{lib → build/lib}/color-fns/blend/index.ts +1 -0
- package/src/theme/build/lib/color-fns/blend/mix.ts +21 -0
- package/src/theme/{lib → build/lib}/color-fns/blend/multiply.ts +3 -7
- package/src/theme/{lib → build/lib}/color-fns/blend/screen.ts +3 -7
- package/src/theme/{lib → build/lib}/color-fns/color-fns.test.ts +10 -7
- package/src/theme/build/lib/color-fns/contrastRatio.ts +31 -0
- package/src/theme/{lib → build/lib}/color-fns/convert.ts +10 -1
- package/src/theme/{lib → build/lib}/color-fns/index.ts +2 -1
- package/src/theme/{lib/color-fns/helpers → build/lib/color-fns}/rgba.ts +1 -1
- package/src/theme/build/lib/isRecord.ts +3 -0
- package/src/theme/build/lib/utils.ts +19 -0
- package/src/theme/build/merge.ts +28 -0
- package/src/theme/build/mixThemeColor.test.ts +21 -0
- package/src/theme/build/mixThemeColor.ts +53 -0
- package/src/theme/build/renderColorTheme.ts +536 -0
- package/src/theme/build/renderColorValue.ts +77 -0
- package/src/theme/build/resolveColorTokens.ts +331 -0
- package/src/theme/build/theme.test.ts +27 -0
- package/src/theme/config/helpers.ts +55 -0
- package/src/theme/config/index.ts +4 -0
- package/src/theme/config/system.ts +112 -0
- package/src/theme/config/tokens/color/index.ts +1 -0
- package/src/theme/config/tokens/color/types.ts +135 -0
- package/src/theme/config/tokens/index.ts +4 -0
- package/src/theme/config/tokens/parseTokenKey.test.ts +64 -0
- package/src/theme/config/tokens/parseTokenKey.ts +66 -0
- package/src/theme/config/tokens/parseTokenValue.test.ts +45 -0
- package/src/theme/config/tokens/parseTokenValue.ts +102 -0
- package/src/theme/config/tokens/types.ts +51 -0
- package/src/theme/config/types.ts +45 -0
- package/src/theme/defaults/colorPalette.ts +5 -0
- package/src/theme/defaults/colorTokens.ts +552 -0
- package/src/theme/{studioTheme/theme.ts → defaults/config.ts} +38 -42
- package/src/theme/{studioTheme → defaults}/fonts.ts +67 -59
- package/src/theme/getScopedTheme.ts +81 -0
- package/src/theme/index.ts +12 -8
- package/src/theme/system/avatar.ts +14 -0
- package/src/theme/system/color/_constants.ts +38 -0
- package/src/theme/system/color/_helpers.ts +23 -0
- package/src/theme/system/color/_system.ts +39 -0
- package/src/theme/system/color/avatar.ts +25 -0
- package/src/theme/system/color/badge.ts +20 -0
- package/src/theme/system/color/button.ts +33 -0
- package/src/theme/system/color/color.ts +34 -0
- package/src/theme/system/color/index.ts +13 -0
- package/src/theme/system/color/input.ts +33 -0
- package/src/theme/system/color/kbd.ts +8 -0
- package/src/theme/system/color/selectable.ts +23 -0
- package/src/theme/system/color/shadow.ts +7 -0
- package/src/theme/system/color/state.ts +37 -0
- package/src/theme/system/color/syntax.ts +41 -0
- package/src/theme/system/css.ts +9 -0
- package/src/theme/system/focusRing.ts +7 -0
- package/src/theme/{lib/theme → system}/index.ts +6 -1
- package/src/theme/system/input.ts +33 -0
- package/src/theme/{lib/theme → system}/layer.ts +1 -2
- package/src/theme/system/shadow.ts +25 -0
- package/src/theme/system/styles.ts +19 -0
- package/src/theme/system/theme.ts +128 -0
- package/src/theme/{lib/theme → system/v0}/avatar.ts +1 -3
- package/src/theme/system/v0/color/_generic.ts +35 -0
- package/src/theme/system/v0/color/_system.ts +13 -0
- package/src/theme/system/v0/color/base.ts +21 -0
- package/src/theme/system/v0/color/button.ts +42 -0
- package/src/theme/system/v0/color/card.ts +19 -0
- package/src/theme/system/v0/color/color.ts +40 -0
- package/src/theme/system/v0/color/index.ts +11 -0
- package/src/theme/system/v0/color/input.ts +34 -0
- package/src/theme/system/v0/color/muted.ts +26 -0
- package/src/theme/system/v0/color/selectable.ts +31 -0
- package/src/theme/system/v0/color/solid.ts +26 -0
- package/src/theme/system/v0/color/spot.ts +13 -0
- package/src/theme/system/v0/index.ts +3 -0
- package/src/theme/{lib/theme → system/v0}/input.ts +1 -11
- package/src/theme/versioning/getTheme_v2.ts +56 -0
- package/src/theme/versioning/index.ts +5 -0
- package/src/theme/versioning/is_v0.ts +6 -0
- package/src/theme/versioning/is_v2.ts +6 -0
- package/src/theme/versioning/themeColor_v0_v2.ts +217 -0
- package/src/theme/versioning/v0_v2.ts +90 -0
- package/src/theme/versioning/v2_v0.ts +126 -0
- package/src/components/dialog/constants.ts +0 -4
- package/src/components/dialog/styles.ts +0 -37
- package/src/primitives/avatar/spotColors.ts +0 -53
- package/src/primitives/badge/styles.ts +0 -19
- package/src/primitives/button/styles.ts +0 -166
- package/src/primitives/code/styles.ts +0 -83
- package/src/primitives/popover/popoverArrow.tsx +0 -77
- package/src/primitives/switch/__workshop__/props.tsx +0 -41
- package/src/primitives/text/__workshop__/colored.tsx +0 -27
- package/src/primitives/tooltip/__workshop__/index.ts +0 -14
- package/src/primitives/tooltip/constants.ts +0 -16
- package/src/primitives/tooltip/tooltipArrow.tsx +0 -90
- package/src/styles/border/borderStyle.ts +0 -58
- package/src/styles/colorVars/colorVarsStyle.ts +0 -84
- package/src/styles/colorVars/index.ts +0 -1
- package/src/styles/input/textInputStyle.ts +0 -214
- package/src/styles/shadow/shadowStyle.ts +0 -28
- package/src/theme/defaults.ts +0 -7
- package/src/theme/lib/color-fns/helpers/index.ts +0 -1
- package/src/theme/lib/theme/color/_legacy/createColorTheme.ts +0 -7
- package/src/theme/lib/theme/color/_legacy/index.ts +0 -1
- package/src/theme/lib/theme/color/_legacy/legacyColor.ts +0 -3997
- package/src/theme/lib/theme/color/cssVariables/cardVariables.ts +0 -88
- package/src/theme/lib/theme/color/cssVariables/createCssVars.ts +0 -31
- package/src/theme/lib/theme/color/cssVariables/cssVars.test.ts +0 -262
- package/src/theme/lib/theme/color/cssVariables/index.ts +0 -1
- package/src/theme/lib/theme/color/cssVariables/tints.ts +0 -312
- package/src/theme/lib/theme/color/cssVariables/tones.ts +0 -67
- package/src/theme/lib/theme/color/cssVariables/utils.test.ts +0 -15
- package/src/theme/lib/theme/color/cssVariables/utils.ts +0 -9
- package/src/theme/lib/theme/color/index.ts +0 -5
- package/src/theme/lib/theme/color/types.ts +0 -41
- package/src/theme/lib/theme/shadow.ts +0 -20
- package/src/theme/lib/theme/theme.ts +0 -43
- package/src/theme/studioTheme/color.ts +0 -11
- package/src/theme/studioTheme/helpers.ts +0 -31
- package/src/theme/studioTheme/index.ts +0 -1
- package/src/theme/themeProvider.tsx +0 -81
- package/src/theme/toneContext/toneContext.ts +0 -12
- package/src/theme/toneContext/toneProvider.tsx +0 -31
- package/src/theme/toneContext/types.ts +0 -10
- package/src/theme/toneContext/useToneContext.tsx +0 -26
- package/src/theme/types.ts +0 -45
- package/src/theme/useRootTheme.ts +0 -25
- package/src/theme/useTheme.ts +0 -10
- package/src/types/badge.ts +0 -9
- package/src/types/button.ts +0 -14
- package/src/types/card.ts +0 -6
- package/src/types/selectable.ts +0 -4
- package/src/types/styled.ts +0 -9
- /package/src/{components → core/components}/autocomplete/__fixtures__/countries.ts +0 -0
- /package/src/{components → core/components}/autocomplete/__mocks__/apiStore.ts +0 -0
- /package/src/{components → core/components}/autocomplete/__workshop__/.eslintrc +0 -0
- /package/src/{components → core/components}/autocomplete/__workshop__/fullscreen.tsx +0 -0
- /package/src/{components → core/components}/autocomplete/__workshop__/index.ts +0 -0
- /package/src/{components → core/components}/autocomplete/__workshop__/types.ts +0 -0
- /package/src/{components → core/components}/autocomplete/autocomplete.styles.tsx +0 -0
- /package/src/{components → core/components}/autocomplete/autocompleteOption.tsx +0 -0
- /package/src/{components → core/components}/autocomplete/autocompleteReducer.ts +0 -0
- /package/src/{components → core/components}/autocomplete/constants.ts +0 -0
- /package/src/{components → core/components}/autocomplete/index.ts +0 -0
- /package/src/{components → core/components}/autocomplete/types.ts +0 -0
- /package/src/{components → core/components}/breadcrumbs/__workshop__/.eslintrc +0 -0
- /package/src/{components → core/components}/breadcrumbs/__workshop__/example.tsx +0 -0
- /package/src/{components → core/components}/breadcrumbs/__workshop__/index.ts +0 -0
- /package/src/{components → core/components}/breadcrumbs/breadcrumbs.styles.ts +0 -0
- /package/src/{components → core/components}/breadcrumbs/breadcrumbs.tsx +0 -0
- /package/src/{components → core/components}/breadcrumbs/index.ts +0 -0
- /package/src/{components → core/components}/dialog/__workshop__/.eslintrc +0 -0
- /package/src/{components → core/components}/dialog/__workshop__/autoFocus.tsx +0 -0
- /package/src/{components → core/components}/dialog/__workshop__/index.ts +0 -0
- /package/src/{components → core/components}/dialog/__workshop__/nested.tsx +0 -0
- /package/src/{components → core/components}/dialog/__workshop__/onScroll.tsx +0 -0
- /package/src/{components → core/components}/dialog/__workshop__/position.tsx +0 -0
- /package/src/{components → core/components}/dialog/__workshop__/props.tsx +0 -0
- /package/src/{components → core/components}/dialog/__workshop__/provider.tsx +0 -0
- /package/src/{components → core/components}/dialog/__workshop__/wrapped.tsx +0 -0
- /package/src/{components → core/components}/dialog/dialogContext.ts +0 -0
- /package/src/{components → core/components}/dialog/dialogProvider.tsx +0 -0
- /package/src/{components → core/components}/dialog/index.ts +0 -0
- /package/src/{components → core/components}/dialog/useDialog.ts +0 -0
- /package/src/{components → core/components}/hotkeys/__workshop__/.eslintrc +0 -0
- /package/src/{components → core/components}/hotkeys/__workshop__/index.ts +0 -0
- /package/src/{components → core/components}/hotkeys/__workshop__/plain.tsx +0 -0
- /package/src/{components → core/components}/hotkeys/index.ts +0 -0
- /package/src/{components → core/components}/index.ts +0 -0
- /package/src/{components → core/components}/menu/__workshop__/.eslintrc +0 -0
- /package/src/{components → core/components}/menu/__workshop__/constrainedInBoundary.tsx +0 -0
- /package/src/{components → core/components}/menu/__workshop__/groups.tsx +0 -0
- /package/src/{components → core/components}/menu/__workshop__/menuGroupRight.tsx +0 -0
- /package/src/{components → core/components}/menu/__workshop__/nestedMenu.tsx +0 -0
- /package/src/{components → core/components}/menu/__workshop__/onCloseMenuButton.tsx +0 -0
- /package/src/{components → core/components}/menu/__workshop__/selectedItem.tsx +0 -0
- /package/src/{components → core/components}/menu/__workshop__/shouldFocus.tsx +0 -0
- /package/src/{components → core/components}/menu/__workshop__/tones.tsx +0 -0
- /package/src/{components → core/components}/menu/__workshop__/withoutArrow.tsx +0 -0
- /package/src/{components → core/components}/menu/helpers.ts +0 -0
- /package/src/{components → core/components}/menu/index.ts +0 -0
- /package/src/{components → core/components}/menu/menuContext.ts +0 -0
- /package/src/{components → core/components}/menu/useMenu.ts +0 -0
- /package/src/{components → core/components}/menu/useMenuController.ts +0 -0
- /package/src/{components → core/components}/skeleton/__workshop__/.eslintrc +0 -0
- /package/src/{components → core/components}/skeleton/__workshop__/delay.tsx +0 -0
- /package/src/{components → core/components}/skeleton/__workshop__/index.ts +0 -0
- /package/src/{components → core/components}/skeleton/__workshop__/skeleton.tsx +0 -0
- /package/src/{components → core/components}/skeleton/index.ts +0 -0
- /package/src/{components → core/components}/skeleton/skeleton.tsx +0 -0
- /package/src/{components → core/components}/tab/__workshop__/.eslintrc +0 -0
- /package/src/{components → core/components}/tab/__workshop__/example.tsx +0 -0
- /package/src/{components → core/components}/tab/__workshop__/index.ts +0 -0
- /package/src/{components → core/components}/tab/index.ts +0 -0
- /package/src/{components → core/components}/tab/tabList.tsx +0 -0
- /package/src/{components → core/components}/tab/tabPanel.tsx +0 -0
- /package/src/{components → core/components}/toast/__workshop__/.eslintrc +0 -0
- /package/src/{components → core/components}/toast/__workshop__/hook.tsx +0 -0
- /package/src/{components → core/components}/toast/__workshop__/index.ts +0 -0
- /package/src/{components → core/components}/toast/__workshop__/toast.tsx +0 -0
- /package/src/{components → core/components}/toast/index.ts +0 -0
- /package/src/{components → core/components}/toast/toastContext.ts +0 -0
- /package/src/{components → core/components}/toast/toastProvider.tsx +0 -0
- /package/src/{components → core/components}/toast/types.ts +0 -0
- /package/src/{components → core/components}/toast/useToast.ts +0 -0
- /package/src/{components → core/components}/tree/__workshop__/.eslintrc +0 -0
- /package/src/{components → core/components}/tree/__workshop__/basic.perf.ts +0 -0
- /package/src/{components → core/components}/tree/__workshop__/basic.tsx +0 -0
- /package/src/{components → core/components}/tree/__workshop__/index.ts +0 -0
- /package/src/{components → core/components}/tree/helpers.ts +0 -0
- /package/src/{components → core/components}/tree/index.ts +0 -0
- /package/src/{components → core/components}/tree/tree.tsx +0 -0
- /package/src/{components → core/components}/tree/treeContext.ts +0 -0
- /package/src/{components → core/components}/tree/treeGroup.tsx +0 -0
- /package/src/{components → core/components}/tree/types.ts +0 -0
- /package/src/{components → core/components}/tree/useTree.ts +0 -0
- /package/src/{global.ts → core/global.ts} +0 -0
- /package/src/{helpers → core/helpers}/animation.ts +0 -0
- /package/src/{helpers → core/helpers}/element.ts +0 -0
- /package/src/{helpers → core/helpers}/focus.ts +0 -0
- /package/src/{helpers → core/helpers}/index.ts +0 -0
- /package/src/{helpers → core/helpers}/scroll.ts +0 -0
- /package/src/{hooks → core/hooks}/_internal/index.ts +0 -0
- /package/src/{hooks → core/hooks}/_internal/useUnique.ts +0 -0
- /package/src/{hooks → core/hooks}/index.ts +0 -0
- /package/src/{hooks → core/hooks}/useArrayProp.ts +0 -0
- /package/src/{hooks → core/hooks}/useClickOutside.ts +0 -0
- /package/src/{hooks → core/hooks}/useCustomValidity.ts +0 -0
- /package/src/{hooks → core/hooks}/useDelayed.test.ts +0 -0
- /package/src/{hooks → core/hooks}/useDelayedState.ts +0 -0
- /package/src/{hooks → core/hooks}/useElementRect/__workshop__/.eslintrc +0 -0
- /package/src/{hooks → core/hooks}/useElementRect/__workshop__/index.ts +0 -0
- /package/src/{hooks → core/hooks}/useElementRect/index.ts +0 -0
- /package/src/{hooks → core/hooks}/useElementRect/useElementRect.ts +0 -0
- /package/src/{hooks → core/hooks}/useElementSize.ts +0 -0
- /package/src/{hooks → core/hooks}/useForwardedRef.ts +0 -0
- /package/src/{hooks → core/hooks}/useGlobalKeyDown.ts +0 -0
- /package/src/{hooks → core/hooks}/useIsomorphicEffect.ts +0 -0
- /package/src/{hooks → core/hooks}/useMediaIndex/__workshop__/.eslintrc +0 -0
- /package/src/{hooks → core/hooks}/useMediaIndex/__workshop__/index.ts +0 -0
- /package/src/{hooks → core/hooks}/useMediaIndex/index.ts +0 -0
- /package/src/{hooks → core/hooks}/useMounted.ts +0 -0
- /package/src/{hooks → core/hooks}/usePrefersDark.hydration.test.tsx +0 -0
- /package/src/{hooks → core/hooks}/usePrefersDark.test.tsx +0 -0
- /package/src/{hooks → core/hooks}/usePrefersDark.ts +0 -0
- /package/src/{hooks → core/hooks}/usePrefersReducedMotion.hydration.test.tsx +0 -0
- /package/src/{hooks → core/hooks}/usePrefersReducedMotion.test.tsx +0 -0
- /package/src/{hooks → core/hooks}/usePrefersReducedMotion.ts +0 -0
- /package/src/{lib → core/lib}/globalScope.ts +0 -0
- /package/src/{observers → core/observers}/elementSizeObserver.ts +0 -0
- /package/src/{observers → core/observers}/index.ts +0 -0
- /package/src/{observers → core/observers}/resizeObserver.ts +0 -0
- /package/src/{primitives → core/primitives}/_selectable/index.ts +0 -0
- /package/src/{primitives → core/primitives}/_selectable/selectable.tsx +0 -0
- /package/src/{primitives → core/primitives}/avatar/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/avatar/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/avatar/index.ts +0 -0
- /package/src/{primitives → core/primitives}/badge/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/badge/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/badge/index.ts +0 -0
- /package/src/{primitives → core/primitives}/box/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/box/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/box/__workshop__/props.tsx +0 -0
- /package/src/{primitives → core/primitives}/box/index.ts +0 -0
- /package/src/{primitives → core/primitives}/button/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/button/__workshop__/custom.tsx +0 -0
- /package/src/{primitives → core/primitives}/button/__workshop__/customIcons.tsx +0 -0
- /package/src/{primitives → core/primitives}/button/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/button/__workshop__/mixedChildren.tsx +0 -0
- /package/src/{primitives → core/primitives}/button/__workshop__/props.tsx +0 -0
- /package/src/{primitives → core/primitives}/button/__workshop__/styled1.tsx +0 -0
- /package/src/{primitives → core/primitives}/button/__workshop__/styled2.tsx +0 -0
- /package/src/{primitives → core/primitives}/button/__workshop__/uploadButton.tsx +0 -0
- /package/src/{primitives → core/primitives}/button/index.ts +0 -0
- /package/src/{primitives → core/primitives}/card/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/card/__workshop__/allTones.tsx +0 -0
- /package/src/{primitives → core/primitives}/card/__workshop__/checkered.tsx +0 -0
- /package/src/{primitives → core/primitives}/card/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/card/__workshop__/interactive.tsx +0 -0
- /package/src/{primitives → core/primitives}/card/__workshop__/listNavigation.tsx +0 -0
- /package/src/{primitives → core/primitives}/card/__workshop__/props.tsx +0 -0
- /package/src/{primitives → core/primitives}/card/__workshop__/styled.tsx +0 -0
- /package/src/{primitives → core/primitives}/card/index.ts +0 -0
- /package/src/{primitives → core/primitives}/checkbox/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/checkbox/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/checkbox/__workshop__/tones.tsx +0 -0
- /package/src/{primitives → core/primitives}/checkbox/index.ts +0 -0
- /package/src/{primitives → core/primitives}/code/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/code/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/code/__workshop__/opticalAlignment.tsx +0 -0
- /package/src/{primitives → core/primitives}/code/__workshop__/props.tsx +0 -0
- /package/src/{primitives → core/primitives}/code/index.ts +0 -0
- /package/src/{primitives → core/primitives}/container/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/container/__workshop__/example.tsx +0 -0
- /package/src/{primitives → core/primitives}/container/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/container/index.ts +0 -0
- /package/src/{primitives → core/primitives}/container/types.ts +0 -0
- /package/src/{primitives → core/primitives}/flex/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/flex/__workshop__/example.tsx +0 -0
- /package/src/{primitives → core/primitives}/flex/__workshop__/gap.tsx +0 -0
- /package/src/{primitives → core/primitives}/flex/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/flex/index.ts +0 -0
- /package/src/{primitives → core/primitives}/grid/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/grid/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/grid/__workshop__/responsive.tsx +0 -0
- /package/src/{primitives → core/primitives}/grid/index.ts +0 -0
- /package/src/{primitives → core/primitives}/heading/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/heading/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/heading/__workshop__/opticalAlignment.tsx +0 -0
- /package/src/{primitives → core/primitives}/heading/__workshop__/plain.tsx +0 -0
- /package/src/{primitives → core/primitives}/heading/index.ts +0 -0
- /package/src/{primitives → core/primitives}/heading/types.ts +0 -0
- /package/src/{primitives → core/primitives}/helpers.ts +0 -0
- /package/src/{primitives → core/primitives}/index.ts +0 -0
- /package/src/{primitives → core/primitives}/inline/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/inline/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/inline/__workshop__/plain.tsx +0 -0
- /package/src/{primitives → core/primitives}/inline/index.ts +0 -0
- /package/src/{primitives → core/primitives}/inline/types.ts +0 -0
- /package/src/{primitives → core/primitives}/kbd/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/kbd/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/kbd/__workshop__/plain.tsx +0 -0
- /package/src/{primitives → core/primitives}/kbd/index.tsx +0 -0
- /package/src/{primitives → core/primitives}/label/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/label/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/label/__workshop__/opticalAlignment.tsx +0 -0
- /package/src/{primitives → core/primitives}/label/__workshop__/plain.tsx +0 -0
- /package/src/{primitives → core/primitives}/label/index.ts +0 -0
- /package/src/{primitives → core/primitives}/popover/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/popover/__workshop__/AlignedStory.tsx +0 -0
- /package/src/{primitives → core/primitives}/popover/__workshop__/MarginsStory.tsx +0 -0
- /package/src/{primitives → core/primitives}/popover/__workshop__/MatchReferenceWidthStory.tsx +0 -0
- /package/src/{primitives → core/primitives}/popover/__workshop__/OpenOnMountStory.tsx +0 -0
- /package/src/{primitives → core/primitives}/popover/__workshop__/PlainStory.tsx +0 -0
- /package/src/{primitives → core/primitives}/popover/__workshop__/SidePanelStory.tsx +0 -0
- /package/src/{primitives → core/primitives}/popover/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/popover/floating-ui/size.ts +0 -0
- /package/src/{primitives → core/primitives}/popover/index.ts +0 -0
- /package/src/{primitives → core/primitives}/radio/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/radio/__workshop__/example.tsx +0 -0
- /package/src/{primitives → core/primitives}/radio/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/radio/__workshop__/plain.tsx +0 -0
- /package/src/{primitives → core/primitives}/radio/index.ts +0 -0
- /package/src/{primitives → core/primitives}/select/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/select/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/select/__workshop__/plain.tsx +0 -0
- /package/src/{primitives → core/primitives}/select/__workshop__/readOnly.tsx +0 -0
- /package/src/{primitives → core/primitives}/select/index.ts +0 -0
- /package/src/{primitives → core/primitives}/spinner/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/spinner/__workshop__/Props.tsx +0 -0
- /package/src/{primitives → core/primitives}/spinner/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/spinner/index.ts +0 -0
- /package/src/{primitives → core/primitives}/stack/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/stack/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/stack/__workshop__/plain.tsx +0 -0
- /package/src/{primitives → core/primitives}/stack/index.ts +0 -0
- /package/src/{primitives → core/primitives}/switch/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/switch/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/switch/index.ts +0 -0
- /package/src/{primitives → core/primitives}/text/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/text/__workshop__/example.tsx +0 -0
- /package/src/{primitives → core/primitives}/text/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/text/__workshop__/opticalAlignment.tsx +0 -0
- /package/src/{primitives → core/primitives}/text/index.ts +0 -0
- /package/src/{primitives → core/primitives}/textArea/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/textArea/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/textArea/index.ts +0 -0
- /package/src/{primitives → core/primitives}/textInput/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/textInput/__workshop__/clearButton.tsx +0 -0
- /package/src/{primitives → core/primitives}/textInput/__workshop__/customValidity.tsx +0 -0
- /package/src/{primitives → core/primitives}/textInput/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/textInput/__workshop__/multipleTones.tsx +0 -0
- /package/src/{primitives → core/primitives}/textInput/__workshop__/readOnly.tsx +0 -0
- /package/src/{primitives → core/primitives}/textInput/__workshop__/tones.tsx +0 -0
- /package/src/{primitives → core/primitives}/textInput/__workshop__/typed.tsx +0 -0
- /package/src/{primitives → core/primitives}/textInput/index.ts +0 -0
- /package/src/{primitives → core/primitives}/tooltip/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/tooltip/index.ts +0 -0
- /package/src/{primitives → core/primitives}/tooltip/tooltipDelayGroup/index.ts +0 -0
- /package/src/{primitives → core/primitives}/tooltip/tooltipDelayGroup/tooltipDelayGroupContext.tsx +0 -0
- /package/src/{primitives → core/primitives}/tooltip/tooltipDelayGroup/types.ts +0 -0
- /package/src/{primitives → core/primitives}/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +0 -0
- /package/src/{styles → core/styles}/border/index.ts +0 -0
- /package/src/{styles → core/styles}/border/types.ts +0 -0
- /package/src/{styles → core/styles}/box/index.ts +0 -0
- /package/src/{styles → core/styles}/box/types.ts +0 -0
- /package/src/{styles → core/styles}/flex/index.ts +0 -0
- /package/src/{styles → core/styles}/flex/types.ts +0 -0
- /package/src/{styles → core/styles}/font/index.ts +0 -0
- /package/src/{styles → core/styles}/grid/index.ts +0 -0
- /package/src/{styles → core/styles}/grid/types.ts +0 -0
- /package/src/{styles → core/styles}/index.ts +0 -0
- /package/src/{styles → core/styles}/input/index.ts +0 -0
- /package/src/{styles → core/styles}/internal.ts +0 -0
- /package/src/{styles → core/styles}/margin/index.ts +0 -0
- /package/src/{styles → core/styles}/margin/types.ts +0 -0
- /package/src/{styles → core/styles}/padding/index.ts +0 -0
- /package/src/{styles → core/styles}/padding/types.ts +0 -0
- /package/src/{styles → core/styles}/radius/index.ts +0 -0
- /package/src/{styles → core/styles}/radius/types.ts +0 -0
- /package/src/{styles → core/styles}/shadow/index.ts +0 -0
- /package/src/{styles → core/styles}/shadow/types.ts +0 -0
- /package/src/{theme → core/theme}/__workshop__/.eslintrc +0 -0
- /package/src/{theme → core/theme}/__workshop__/layer.tsx +0 -0
- /package/src/{theme → core/theme}/__workshop__/nestedProvider.tsx +0 -0
- /package/src/{types → core/types}/box.ts +0 -0
- /package/src/{types → core/types}/dialog.ts +0 -0
- /package/src/{types → core/types}/flex.ts +0 -0
- /package/src/{types → core/types}/grid.ts +0 -0
- /package/src/{types → core/types}/gridItem.ts +0 -0
- /package/src/{types → core/types}/placement.ts +0 -0
- /package/src/{types → core/types}/popover.ts +0 -0
- /package/src/{types → core/types}/radius.ts +0 -0
- /package/src/{types → core/types}/text.ts +0 -0
- /package/src/{utils → core/utils}/boundaryElement/__workshop__/.eslintrc +0 -0
- /package/src/{utils → core/utils}/boundaryElement/__workshop__/index.ts +0 -0
- /package/src/{utils → core/utils}/boundaryElement/boundaryElementContext.ts +0 -0
- /package/src/{utils → core/utils}/boundaryElement/boundaryElementProvider.tsx +0 -0
- /package/src/{utils → core/utils}/boundaryElement/index.ts +0 -0
- /package/src/{utils → core/utils}/boundaryElement/types.ts +0 -0
- /package/src/{utils → core/utils}/boundaryElement/useBoundaryElement.ts +0 -0
- /package/src/{utils → core/utils}/elementQuery/__workshop__/.eslintrc +0 -0
- /package/src/{utils → core/utils}/elementQuery/__workshop__/index.ts +0 -0
- /package/src/{utils → core/utils}/elementQuery/helpers.ts +0 -0
- /package/src/{utils → core/utils}/elementQuery/index.ts +0 -0
- /package/src/{utils → core/utils}/errorBoundary.tsx +0 -0
- /package/src/{utils → core/utils}/layer/__workshop__/.eslintrc +0 -0
- /package/src/{utils → core/utils}/layer/__workshop__/index.ts +0 -0
- /package/src/{utils → core/utils}/layer/__workshop__/multipleRoots.tsx +0 -0
- /package/src/{utils → core/utils}/layer/__workshop__/nested.tsx +0 -0
- /package/src/{utils → core/utils}/layer/__workshop__/responsiveZOffset.tsx +0 -0
- /package/src/{utils → core/utils}/layer/getLayerContext.test.ts +0 -0
- /package/src/{utils → core/utils}/layer/getLayerContext.ts +0 -0
- /package/src/{utils → core/utils}/layer/index.ts +0 -0
- /package/src/{utils → core/utils}/layer/layer.tsx +0 -0
- /package/src/{utils → core/utils}/layer/layerContext.ts +0 -0
- /package/src/{utils → core/utils}/layer/layerProvider.tsx +0 -0
- /package/src/{utils → core/utils}/layer/types.ts +0 -0
- /package/src/{utils → core/utils}/layer/useLayer.ts +0 -0
- /package/src/{utils → core/utils}/portal/__workshop__/.eslintrc +0 -0
- /package/src/{utils → core/utils}/portal/__workshop__/index.ts +0 -0
- /package/src/{utils → core/utils}/portal/index.ts +0 -0
- /package/src/{utils → core/utils}/portal/portal.ts +0 -0
- /package/src/{utils → core/utils}/portal/portalContext.ts +0 -0
- /package/src/{utils → core/utils}/portal/portalProvider.tsx +0 -0
- /package/src/{utils → core/utils}/portal/types.ts +0 -0
- /package/src/{utils → core/utils}/portal/usePortal.ts +0 -0
- /package/src/{utils → core/utils}/srOnly/index.ts +0 -0
- /package/src/{utils → core/utils}/srOnly/srOnly.tsx +0 -0
- /package/src/{utils → core/utils}/virtualList/__workshop__/.eslintrc +0 -0
- /package/src/{utils → core/utils}/virtualList/__workshop__/changingProps.tsx +0 -0
- /package/src/{utils → core/utils}/virtualList/__workshop__/elementScroll.tsx +0 -0
- /package/src/{utils → core/utils}/virtualList/__workshop__/index.ts +0 -0
- /package/src/{utils → core/utils}/virtualList/__workshop__/infiniteList.tsx +0 -0
- /package/src/{utils → core/utils}/virtualList/__workshop__/windowScrolll.tsx +0 -0
- /package/src/{utils → core/utils}/virtualList/index.ts +0 -0
- /package/src/theme/{lib → build/lib}/color-fns/parse.ts +0 -0
- /package/src/theme/{lib → build/lib}/color-fns/types.ts +0 -0
- /package/src/theme/{lib/theme/fonts.ts → system/font.ts} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -2,25 +2,62 @@
|
|
|
2
2
|
|
|
3
3
|
import {AnimationEventHandler} from 'react'
|
|
4
4
|
import {AriaRole} from 'react'
|
|
5
|
+
import {BaseTheme} from '@sanity/ui/theme'
|
|
6
|
+
import {BoxShadow} from '@sanity/ui/theme'
|
|
7
|
+
import {buildTheme} from '@sanity/ui/theme'
|
|
5
8
|
import {ClipboardEventHandler} from 'react'
|
|
6
|
-
import {
|
|
9
|
+
import {COLOR_CONFIG_BLEND_KEYS} from '@sanity/ui/theme'
|
|
10
|
+
import {COLOR_CONFIG_CARD_KEYS} from '@sanity/ui/theme'
|
|
11
|
+
import {COLOR_CONFIG_CARD_TONES} from '@sanity/ui/theme'
|
|
12
|
+
import {COLOR_CONFIG_STATE_KEYS} from '@sanity/ui/theme'
|
|
13
|
+
import {COLOR_CONFIG_STATE_TONES} from '@sanity/ui/theme'
|
|
14
|
+
import {ColorBlendModeTokenValue} from '@sanity/ui/theme'
|
|
15
|
+
import {ColorConfigBlendKey} from '@sanity/ui/theme'
|
|
16
|
+
import {ColorConfigCardKey} from '@sanity/ui/theme'
|
|
17
|
+
import {ColorConfigCardTone} from '@sanity/ui/theme'
|
|
18
|
+
import {ColorConfigOpacityValue} from '@sanity/ui/theme'
|
|
19
|
+
import {ColorConfigStateKey} from '@sanity/ui/theme'
|
|
20
|
+
import {ColorConfigStateTone} from '@sanity/ui/theme'
|
|
21
|
+
import {ColorConfigValue} from '@sanity/ui/theme'
|
|
7
22
|
import {Component} from 'react'
|
|
8
23
|
import {CompositionEventHandler} from 'react'
|
|
24
|
+
import {createColorTheme} from '@sanity/ui/theme'
|
|
25
|
+
import {CSSObject} from '@sanity/ui/theme'
|
|
9
26
|
import {CSSProperties} from 'react'
|
|
10
27
|
import {DragEventHandler} from 'react'
|
|
11
28
|
import {ElementType} from 'react'
|
|
12
29
|
import {FocusEventHandler} from 'react'
|
|
13
30
|
import {FormEventHandler} from 'react'
|
|
14
31
|
import {ForwardRefExoticComponent} from 'react'
|
|
32
|
+
import {hexToRgb} from '@sanity/ui/theme'
|
|
33
|
+
import {HSL} from '@sanity/ui/theme'
|
|
34
|
+
import {hslToRgb} from '@sanity/ui/theme'
|
|
15
35
|
import {HTMLProps} from 'react'
|
|
36
|
+
import {isColorBlendModeValue} from '@sanity/ui/theme'
|
|
37
|
+
import {isColorButtonMode} from '@sanity/ui/theme'
|
|
38
|
+
import {isColorConfigBaseKey} from '@sanity/ui/theme'
|
|
39
|
+
import {isColorConfigBaseTone} from '@sanity/ui/theme'
|
|
40
|
+
import {isColorConfigBlendKey} from '@sanity/ui/theme'
|
|
41
|
+
import {isColorConfigStateKey} from '@sanity/ui/theme'
|
|
42
|
+
import {isColorConfigStateTone} from '@sanity/ui/theme'
|
|
43
|
+
import {isColorHueKey} from '@sanity/ui/theme'
|
|
44
|
+
import {isColorOpacityValue} from '@sanity/ui/theme'
|
|
45
|
+
import {isColorTintKey} from '@sanity/ui/theme'
|
|
46
|
+
import {isColorTokenValue} from '@sanity/ui/theme'
|
|
47
|
+
import {isColorValue} from '@sanity/ui/theme'
|
|
16
48
|
import {IStyledComponent} from 'styled-components'
|
|
17
49
|
import {Key} from 'react'
|
|
18
50
|
import {KeyboardEventHandler} from 'react'
|
|
19
51
|
import {LegacyRef} from 'react'
|
|
20
52
|
import {MemoExoticComponent} from 'react'
|
|
21
53
|
import {MouseEventHandler} from 'react'
|
|
54
|
+
import {multiply} from '@sanity/ui/theme'
|
|
22
55
|
import {MutableRefObject} from 'react'
|
|
23
56
|
import {NamedExoticComponent} from 'react'
|
|
57
|
+
import {parseColor} from '@sanity/ui/theme'
|
|
58
|
+
import {parseTokenKey} from '@sanity/ui/theme'
|
|
59
|
+
import {parseTokenValue} from '@sanity/ui/theme'
|
|
60
|
+
import {PartialThemeColorBuilderOpts} from '@sanity/ui/theme'
|
|
24
61
|
import {PointerEventHandler} from 'react'
|
|
25
62
|
import {PropsWithChildren} from 'react'
|
|
26
63
|
import {ReactElement} from 'react'
|
|
@@ -29,7 +66,82 @@ import {ReactNode} from 'react'
|
|
|
29
66
|
import {Ref} from 'react'
|
|
30
67
|
import {RefAttributes} from 'react'
|
|
31
68
|
import {RefCallback} from 'react'
|
|
32
|
-
import
|
|
69
|
+
import {RGB} from '@sanity/ui/theme'
|
|
70
|
+
import {RGBA} from '@sanity/ui/theme'
|
|
71
|
+
import {rgba} from '@sanity/ui/theme'
|
|
72
|
+
import {rgbaToRGBA} from '@sanity/ui/theme'
|
|
73
|
+
import {rgbToHex} from '@sanity/ui/theme'
|
|
74
|
+
import {rgbToHsl} from '@sanity/ui/theme'
|
|
75
|
+
import {RootTheme} from '@sanity/ui/theme'
|
|
76
|
+
import {screen as screen_2} from '@sanity/ui/theme'
|
|
77
|
+
import {defaultTheme as studioTheme} from '@sanity/ui/theme'
|
|
78
|
+
import {Theme} from '@sanity/ui/theme'
|
|
79
|
+
import {THEME_COLOR_BLEND_MODES} from '@sanity/ui/theme'
|
|
80
|
+
import {THEME_COLOR_BUTTON_MODES} from '@sanity/ui/theme'
|
|
81
|
+
import {THEME_COLOR_CARD_TONES} from '@sanity/ui/theme'
|
|
82
|
+
import {THEME_COLOR_STATE_TONES} from '@sanity/ui/theme'
|
|
83
|
+
import {THEME_COLOR_STATES} from '@sanity/ui/theme'
|
|
84
|
+
import {Theme_v2} from '@sanity/ui/theme'
|
|
85
|
+
import {ThemeAvatar} from '@sanity/ui/theme'
|
|
86
|
+
import {ThemeColor} from '@sanity/ui/theme'
|
|
87
|
+
import {ThemeColorAvatarColorKey} from '@sanity/ui/theme'
|
|
88
|
+
import {ThemeColorBase} from '@sanity/ui/theme'
|
|
89
|
+
import {ThemeColorBaseTokens} from '@sanity/ui/theme'
|
|
90
|
+
import {ThemeColorBlendModeKey} from '@sanity/ui/theme'
|
|
91
|
+
import {ThemeColorBuilderOpts} from '@sanity/ui/theme'
|
|
92
|
+
import {ThemeColorButton} from '@sanity/ui/theme'
|
|
93
|
+
import {ThemeColorButtonModeKey} from '@sanity/ui/theme'
|
|
94
|
+
import {ThemeColorButtonState} from '@sanity/ui/theme'
|
|
95
|
+
import {ThemeColorButtonStates} from '@sanity/ui/theme'
|
|
96
|
+
import {ThemeColorButtonTokens} from '@sanity/ui/theme'
|
|
97
|
+
import {ThemeColorButtonTones} from '@sanity/ui/theme'
|
|
98
|
+
import {ThemeColorCard} from '@sanity/ui/theme'
|
|
99
|
+
import {ThemeColorCardState} from '@sanity/ui/theme'
|
|
100
|
+
import {ThemeColorCardToneKey} from '@sanity/ui/theme'
|
|
101
|
+
import {ThemeColorGenericState} from '@sanity/ui/theme'
|
|
102
|
+
import {ThemeColorInput} from '@sanity/ui/theme'
|
|
103
|
+
import {ThemeColorInputState} from '@sanity/ui/theme'
|
|
104
|
+
import {ThemeColorInputStates} from '@sanity/ui/theme'
|
|
105
|
+
import {ThemeColorMuted} from '@sanity/ui/theme'
|
|
106
|
+
import {ThemeColorMutedTone} from '@sanity/ui/theme'
|
|
107
|
+
import {ThemeColorName} from '@sanity/ui/theme'
|
|
108
|
+
import {ThemeColorScheme} from '@sanity/ui/theme'
|
|
109
|
+
import {ThemeColorSchemeKey} from '@sanity/ui/theme'
|
|
110
|
+
import {ThemeColorSchemes} from '@sanity/ui/theme'
|
|
111
|
+
import {ThemeColorSelectable} from '@sanity/ui/theme'
|
|
112
|
+
import {ThemeColorSelectableState} from '@sanity/ui/theme'
|
|
113
|
+
import {ThemeColorSelectableStates} from '@sanity/ui/theme'
|
|
114
|
+
import {ThemeColorSolid} from '@sanity/ui/theme'
|
|
115
|
+
import {ThemeColorSolidTone} from '@sanity/ui/theme'
|
|
116
|
+
import {ThemeColorSpot} from '@sanity/ui/theme'
|
|
117
|
+
import {ThemeColorSpotKey} from '@sanity/ui/theme'
|
|
118
|
+
import {ThemeColorStateKey} from '@sanity/ui/theme'
|
|
119
|
+
import {ThemeColorStatesTokens} from '@sanity/ui/theme'
|
|
120
|
+
import {ThemeColorStateTokens} from '@sanity/ui/theme'
|
|
121
|
+
import {ThemeColorStateToneKey} from '@sanity/ui/theme'
|
|
122
|
+
import {ThemeColorSyntax} from '@sanity/ui/theme'
|
|
123
|
+
import {ThemeColorTokens} from '@sanity/ui/theme'
|
|
124
|
+
import {ThemeColorTokenValue} from '@sanity/ui/theme'
|
|
125
|
+
import {ThemeColorToneKey} from '@sanity/ui/theme'
|
|
126
|
+
import {ThemeConfig} from '@sanity/ui/theme'
|
|
127
|
+
import {ThemeFocusRing} from '@sanity/ui/theme'
|
|
128
|
+
import {ThemeFont} from '@sanity/ui/theme'
|
|
129
|
+
import {ThemeFontKey} from '@sanity/ui/theme'
|
|
130
|
+
import {ThemeFonts} from '@sanity/ui/theme'
|
|
131
|
+
import {ThemeFontSize} from '@sanity/ui/theme'
|
|
132
|
+
import {ThemeFontWeight} from '@sanity/ui/theme'
|
|
133
|
+
import {ThemeFontWeightKey} from '@sanity/ui/theme'
|
|
134
|
+
import {ThemeInput} from '@sanity/ui/theme'
|
|
135
|
+
import {ThemeLayer} from '@sanity/ui/theme'
|
|
136
|
+
import {ThemeShadow} from '@sanity/ui/theme'
|
|
137
|
+
import {ThemeStyles} from '@sanity/ui/theme'
|
|
138
|
+
import {TokenBaseKeyNode} from '@sanity/ui/theme'
|
|
139
|
+
import {TokenBlendModeValueNode} from '@sanity/ui/theme'
|
|
140
|
+
import {TokenButtonKeyNode} from '@sanity/ui/theme'
|
|
141
|
+
import {TokenColorValueNode} from '@sanity/ui/theme'
|
|
142
|
+
import {TokenHueValueNode} from '@sanity/ui/theme'
|
|
143
|
+
import {TokenKeyNode} from '@sanity/ui/theme'
|
|
144
|
+
import {TokenValueNode} from '@sanity/ui/theme'
|
|
33
145
|
import {TouchEventHandler} from 'react'
|
|
34
146
|
import {TransitionEventHandler} from 'react'
|
|
35
147
|
import {UIEventHandler} from 'react'
|
|
@@ -38,22 +150,36 @@ import {WheelEventHandler} from 'react'
|
|
|
38
150
|
/** @beta */
|
|
39
151
|
export declare type ArrayPropPrimitive = string | number | boolean | undefined | null
|
|
40
152
|
|
|
153
|
+
/** @internal */
|
|
154
|
+
export declare const Arrow: ForwardRefExoticComponent<
|
|
155
|
+
Omit<
|
|
156
|
+
{
|
|
157
|
+
width: number
|
|
158
|
+
height: number
|
|
159
|
+
radius?: number | undefined
|
|
160
|
+
} & Omit<HTMLProps<HTMLDivElement>, 'height' | 'width'>,
|
|
161
|
+
'ref'
|
|
162
|
+
> &
|
|
163
|
+
RefAttributes<HTMLDivElement>
|
|
164
|
+
>
|
|
165
|
+
|
|
41
166
|
/**
|
|
42
167
|
* @internal
|
|
43
168
|
*/
|
|
44
169
|
export declare function attemptFocus(element: HTMLElement): boolean
|
|
45
170
|
|
|
46
171
|
/**
|
|
172
|
+
* The Autocomplete component is typically used for search components.
|
|
173
|
+
* It consists of a text input for writing a query, and properties for rendering suggestions.
|
|
174
|
+
*
|
|
47
175
|
* @public
|
|
48
176
|
*/
|
|
49
177
|
export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
|
|
50
178
|
props: AutocompleteProps<Option> &
|
|
51
179
|
Omit<
|
|
52
180
|
HTMLProps<HTMLInputElement>,
|
|
53
|
-
| 'type'
|
|
54
181
|
| 'value'
|
|
55
182
|
| 'ref'
|
|
56
|
-
| 'as'
|
|
57
183
|
| 'id'
|
|
58
184
|
| 'spellCheck'
|
|
59
185
|
| 'role'
|
|
@@ -67,7 +193,9 @@ export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
|
|
|
67
193
|
| 'aria-owns'
|
|
68
194
|
| 'onChange'
|
|
69
195
|
| 'onSelect'
|
|
196
|
+
| 'as'
|
|
70
197
|
| 'autoComplete'
|
|
198
|
+
| 'type'
|
|
71
199
|
> & {
|
|
72
200
|
ref?: Ref<HTMLInputElement> | undefined
|
|
73
201
|
},
|
|
@@ -128,6 +256,7 @@ export declare interface AutocompleteProps<
|
|
|
128
256
|
onSelect?: (value: string) => void
|
|
129
257
|
/** @beta */
|
|
130
258
|
openButton?: boolean | AutocompleteOpenButtonProps
|
|
259
|
+
/** The options to render. */
|
|
131
260
|
options?: Option[]
|
|
132
261
|
padding?: number | number[]
|
|
133
262
|
popover?: Omit<PopoverProps, 'content' | 'onMouseEnter' | 'onMouseLeave' | 'open'> &
|
|
@@ -136,6 +265,7 @@ export declare interface AutocompleteProps<
|
|
|
136
265
|
radius?: Radius | Radius[]
|
|
137
266
|
/** @beta */
|
|
138
267
|
relatedElements?: HTMLElement[]
|
|
268
|
+
/** The callback function for rendering each option. */
|
|
139
269
|
renderOption?: (option: Option) => ReactElement
|
|
140
270
|
/** @beta */
|
|
141
271
|
renderPopover?: (
|
|
@@ -150,6 +280,7 @@ export declare interface AutocompleteProps<
|
|
|
150
280
|
) => ReactNode
|
|
151
281
|
renderValue?: (value: string, option?: Option) => string
|
|
152
282
|
suffix?: ReactNode
|
|
283
|
+
/** The current value. */
|
|
153
284
|
value?: string
|
|
154
285
|
}
|
|
155
286
|
|
|
@@ -219,6 +350,8 @@ export declare interface AutocompleteValueChangeMsg {
|
|
|
219
350
|
}
|
|
220
351
|
|
|
221
352
|
/**
|
|
353
|
+
* Avatars are used to represent people and other agents (e.g. bots).
|
|
354
|
+
*
|
|
222
355
|
* @public
|
|
223
356
|
*/
|
|
224
357
|
export declare const Avatar: ForwardRefExoticComponent<
|
|
@@ -251,10 +384,12 @@ export declare type AvatarPosition = 'top' | 'bottom' | 'inside'
|
|
|
251
384
|
* @public
|
|
252
385
|
*/
|
|
253
386
|
export declare interface AvatarProps {
|
|
387
|
+
/** @beta */
|
|
388
|
+
__unstable_hideInnerStroke?: boolean
|
|
254
389
|
animateArrowFrom?: AvatarPosition
|
|
255
390
|
arrowPosition?: AvatarPosition
|
|
256
391
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
257
|
-
color?:
|
|
392
|
+
color?: ThemeColorAvatarColorKey
|
|
258
393
|
initials?: string
|
|
259
394
|
onImageLoadError?: (event: Error) => void
|
|
260
395
|
size?: AvatarSize | AvatarSize[]
|
|
@@ -271,13 +406,13 @@ export declare interface AvatarProps {
|
|
|
271
406
|
* @internal
|
|
272
407
|
*/
|
|
273
408
|
export declare interface AvatarRootStyleProps {
|
|
274
|
-
$color:
|
|
409
|
+
$color: ThemeColorAvatarColorKey
|
|
275
410
|
}
|
|
276
411
|
|
|
277
412
|
/**
|
|
278
413
|
* @public
|
|
279
414
|
*/
|
|
280
|
-
export declare type AvatarSize = 0 | 1 | 2
|
|
415
|
+
export declare type AvatarSize = 0 | 1 | 2 | 3
|
|
281
416
|
|
|
282
417
|
/**
|
|
283
418
|
* @public
|
|
@@ -303,6 +438,8 @@ export declare interface AvatarStackProps {
|
|
|
303
438
|
export declare type AvatarStatus = 'online' | 'editing' | 'inactive'
|
|
304
439
|
|
|
305
440
|
/**
|
|
441
|
+
* Badges are used to tag resources.
|
|
442
|
+
*
|
|
306
443
|
* @public
|
|
307
444
|
*/
|
|
308
445
|
export declare const Badge: ForwardRefExoticComponent<
|
|
@@ -311,6 +448,7 @@ export declare const Badge: ForwardRefExoticComponent<
|
|
|
311
448
|
|
|
312
449
|
/**
|
|
313
450
|
* @public
|
|
451
|
+
* @deprecated No longer used
|
|
314
452
|
*/
|
|
315
453
|
export declare type BadgeMode = 'default' | 'outline'
|
|
316
454
|
|
|
@@ -320,6 +458,7 @@ export declare type BadgeMode = 'default' | 'outline'
|
|
|
320
458
|
export declare interface BadgeProps extends BoxProps, ResponsiveRadiusProps {
|
|
321
459
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
322
460
|
fontSize?: number | number[]
|
|
461
|
+
/** @deprecated No longer used. */
|
|
323
462
|
mode?: BadgeMode
|
|
324
463
|
tone?: BadgeTone
|
|
325
464
|
}
|
|
@@ -327,7 +466,7 @@ export declare interface BadgeProps extends BoxProps, ResponsiveRadiusProps {
|
|
|
327
466
|
/**
|
|
328
467
|
* @public
|
|
329
468
|
*/
|
|
330
|
-
export declare type BadgeTone =
|
|
469
|
+
export declare type BadgeTone = ThemeColorStateToneKey
|
|
331
470
|
|
|
332
471
|
/**
|
|
333
472
|
* @public
|
|
@@ -336,38 +475,7 @@ export declare interface BaseAutocompleteOption {
|
|
|
336
475
|
value: string
|
|
337
476
|
}
|
|
338
477
|
|
|
339
|
-
|
|
340
|
-
* @public
|
|
341
|
-
*/
|
|
342
|
-
export declare interface BaseTheme<Styles extends {} = {}> {
|
|
343
|
-
avatar: ThemeAvatar
|
|
344
|
-
button: {
|
|
345
|
-
textWeight: ThemeFontWeightKey
|
|
346
|
-
focusRing: FocusRing
|
|
347
|
-
}
|
|
348
|
-
card: {
|
|
349
|
-
focusRing: FocusRing
|
|
350
|
-
}
|
|
351
|
-
color: ThemeColorSchemes
|
|
352
|
-
container: number[]
|
|
353
|
-
/** @deprecated Use component-specific `focusRing` values instead */
|
|
354
|
-
focusRing: {
|
|
355
|
-
offset: number
|
|
356
|
-
width: number
|
|
357
|
-
}
|
|
358
|
-
fonts: ThemeFonts
|
|
359
|
-
input: ThemeInput
|
|
360
|
-
/**
|
|
361
|
-
* THIS API MAY BE UNSTABLE. DO NOT USE IN PRODUCTION.
|
|
362
|
-
* @beta
|
|
363
|
-
*/
|
|
364
|
-
layer?: ThemeLayer
|
|
365
|
-
media: number[]
|
|
366
|
-
radius: number[]
|
|
367
|
-
shadows: Array<ThemeShadow | null>
|
|
368
|
-
space: number[]
|
|
369
|
-
styles?: Styles
|
|
370
|
-
}
|
|
478
|
+
export {BaseTheme}
|
|
371
479
|
|
|
372
480
|
/**
|
|
373
481
|
* @public
|
|
@@ -393,10 +501,13 @@ export declare interface BoundaryElementProviderProps {
|
|
|
393
501
|
}
|
|
394
502
|
|
|
395
503
|
/**
|
|
504
|
+
* The `Box` component is a basic layout wrapper component which provides utility properties
|
|
505
|
+
* for flex, margins and padding.
|
|
506
|
+
*
|
|
396
507
|
* @public
|
|
397
508
|
*/
|
|
398
509
|
export declare const Box: ForwardRefExoticComponent<
|
|
399
|
-
Omit<BoxProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
510
|
+
Omit<BoxProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
|
|
400
511
|
RefAttributes<HTMLDivElement>
|
|
401
512
|
>
|
|
402
513
|
|
|
@@ -428,11 +539,7 @@ export declare interface BoxProps
|
|
|
428
539
|
forwardedAs?: React.ElementType | keyof JSX.IntrinsicElements
|
|
429
540
|
}
|
|
430
541
|
|
|
431
|
-
|
|
432
|
-
* TODO: Rename to `ThemeBoxShadow`
|
|
433
|
-
* @public
|
|
434
|
-
*/
|
|
435
|
-
export declare type BoxShadow = [number, number, number, number]
|
|
542
|
+
export {BoxShadow}
|
|
436
543
|
|
|
437
544
|
/**
|
|
438
545
|
* @public
|
|
@@ -444,7 +551,7 @@ export declare type BoxSizing = 'content' | 'border'
|
|
|
444
551
|
*/
|
|
445
552
|
export declare const Breadcrumbs: ForwardRefExoticComponent<
|
|
446
553
|
BreadcrumbsProps &
|
|
447
|
-
Omit<HTMLProps<HTMLOListElement>, '
|
|
554
|
+
Omit<HTMLProps<HTMLOListElement>, 'ref' | 'as' | 'type'> &
|
|
448
555
|
RefAttributes<HTMLOListElement>
|
|
449
556
|
>
|
|
450
557
|
|
|
@@ -457,18 +564,20 @@ export declare interface BreadcrumbsProps {
|
|
|
457
564
|
space?: number | number[]
|
|
458
565
|
}
|
|
459
566
|
|
|
567
|
+
export {buildTheme}
|
|
568
|
+
|
|
460
569
|
/**
|
|
461
570
|
* @public
|
|
462
571
|
*/
|
|
463
572
|
export declare const Button: ForwardRefExoticComponent<
|
|
464
|
-
Omit<ButtonProps & Omit<HTMLProps<HTMLButtonElement>, 'as'>, 'ref'> &
|
|
573
|
+
Omit<ButtonProps & Omit<HTMLProps<HTMLButtonElement>, 'width' | 'as'>, 'ref'> &
|
|
465
574
|
RefAttributes<HTMLButtonElement>
|
|
466
575
|
>
|
|
467
576
|
|
|
468
577
|
/**
|
|
469
578
|
* @public
|
|
470
579
|
*/
|
|
471
|
-
export declare type ButtonMode =
|
|
580
|
+
export declare type ButtonMode = ThemeColorButtonModeKey
|
|
472
581
|
|
|
473
582
|
/**
|
|
474
583
|
* @public
|
|
@@ -491,6 +600,7 @@ export declare interface ButtonProps extends ResponsivePaddingProps, ResponsiveR
|
|
|
491
600
|
text?: React.ReactNode
|
|
492
601
|
tone?: ButtonTone
|
|
493
602
|
type?: 'button' | 'reset' | 'submit'
|
|
603
|
+
width?: ButtonWidth
|
|
494
604
|
}
|
|
495
605
|
|
|
496
606
|
/**
|
|
@@ -501,13 +611,21 @@ export declare type ButtonTextAlign = 'left' | 'right' | 'center'
|
|
|
501
611
|
/**
|
|
502
612
|
* @public
|
|
503
613
|
*/
|
|
504
|
-
export declare type ButtonTone =
|
|
614
|
+
export declare type ButtonTone = ThemeColorStateToneKey
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* @public
|
|
618
|
+
*/
|
|
619
|
+
export declare type ButtonWidth = 'fill'
|
|
505
620
|
|
|
506
621
|
/**
|
|
622
|
+
* The `Card` component acts much like a `Box`, but with a background and foreground color.
|
|
623
|
+
* Components within a `Card` inherit its colors.
|
|
624
|
+
*
|
|
507
625
|
* @public
|
|
508
626
|
*/
|
|
509
627
|
export declare const Card: ForwardRefExoticComponent<
|
|
510
|
-
Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
628
|
+
Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
|
|
511
629
|
RefAttributes<HTMLDivElement>
|
|
512
630
|
>
|
|
513
631
|
|
|
@@ -532,12 +650,6 @@ export declare interface CardProps
|
|
|
532
650
|
pressed?: boolean
|
|
533
651
|
scheme?: ThemeColorSchemeKey
|
|
534
652
|
tone?: CardTone
|
|
535
|
-
/**
|
|
536
|
-
* @internal
|
|
537
|
-
* Used by the popover, as it creates a new html element that it's ouside of the previous scope of the card.
|
|
538
|
-
* So if it's inheriting styles from the parent, it needs to create a new cars context
|
|
539
|
-
*/
|
|
540
|
-
updateCssVars?: boolean
|
|
541
653
|
}
|
|
542
654
|
|
|
543
655
|
/**
|
|
@@ -547,20 +659,20 @@ export declare interface CardStyleProps {
|
|
|
547
659
|
$checkered: boolean
|
|
548
660
|
$focusRing: boolean
|
|
549
661
|
$tone: ThemeColorToneKey
|
|
550
|
-
$scheme: ThemeColorSchemeKey
|
|
551
|
-
$updateCssVars: boolean
|
|
552
662
|
}
|
|
553
663
|
|
|
554
664
|
/**
|
|
555
665
|
* @public
|
|
556
666
|
*/
|
|
557
|
-
export declare type CardTone =
|
|
667
|
+
export declare type CardTone = ThemeColorCardToneKey | 'inherit'
|
|
558
668
|
|
|
559
669
|
/**
|
|
670
|
+
* Checkboxes allow the user to select one or more items from a set.
|
|
671
|
+
*
|
|
560
672
|
* @public
|
|
561
673
|
*/
|
|
562
674
|
export declare const Checkbox: ForwardRefExoticComponent<
|
|
563
|
-
Omit<Omit<HTMLProps<HTMLInputElement>, '
|
|
675
|
+
Omit<Omit<HTMLProps<HTMLInputElement>, 'as' | 'type'> & CheckboxProps, 'ref'> &
|
|
564
676
|
RefAttributes<HTMLInputElement>
|
|
565
677
|
>
|
|
566
678
|
|
|
@@ -581,7 +693,7 @@ export declare type ClickOutsideListener = (event: MouseEvent) => void
|
|
|
581
693
|
* @public
|
|
582
694
|
*/
|
|
583
695
|
export declare const Code: ForwardRefExoticComponent<
|
|
584
|
-
Omit<CodeProps & Omit<HTMLProps<HTMLElement>, '
|
|
696
|
+
Omit<CodeProps & Omit<HTMLProps<HTMLElement>, 'size' | 'as'>, 'ref'> & RefAttributes<HTMLElement>
|
|
585
697
|
>
|
|
586
698
|
|
|
587
699
|
/**
|
|
@@ -589,6 +701,7 @@ export declare const Code: ForwardRefExoticComponent<
|
|
|
589
701
|
*/
|
|
590
702
|
export declare interface CodeProps {
|
|
591
703
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
704
|
+
/** Define the language to use for syntax highlighting. */
|
|
592
705
|
language?: string
|
|
593
706
|
size?: number | number[]
|
|
594
707
|
weight?: string
|
|
@@ -600,7 +713,7 @@ export declare interface CodeProps {
|
|
|
600
713
|
*/
|
|
601
714
|
export declare const CodeSkeleton: ForwardRefExoticComponent<
|
|
602
715
|
Omit<
|
|
603
|
-
CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
716
|
+
CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'children' | 'height' | 'as'>,
|
|
604
717
|
'ref'
|
|
605
718
|
> &
|
|
606
719
|
RefAttributes<HTMLDivElement>
|
|
@@ -614,11 +727,39 @@ export declare interface CodeSkeletonProps extends SkeletonProps {
|
|
|
614
727
|
size?: number | number[]
|
|
615
728
|
}
|
|
616
729
|
|
|
730
|
+
export {COLOR_CONFIG_BLEND_KEYS}
|
|
731
|
+
|
|
732
|
+
export {COLOR_CONFIG_CARD_KEYS}
|
|
733
|
+
|
|
734
|
+
export {COLOR_CONFIG_CARD_TONES}
|
|
735
|
+
|
|
736
|
+
export {COLOR_CONFIG_STATE_KEYS}
|
|
737
|
+
|
|
738
|
+
export {COLOR_CONFIG_STATE_TONES}
|
|
739
|
+
|
|
740
|
+
export {ColorBlendModeTokenValue}
|
|
741
|
+
|
|
742
|
+
export {ColorConfigBlendKey}
|
|
743
|
+
|
|
744
|
+
export {ColorConfigCardKey}
|
|
745
|
+
|
|
746
|
+
export {ColorConfigCardTone}
|
|
747
|
+
|
|
748
|
+
export {ColorConfigOpacityValue}
|
|
749
|
+
|
|
750
|
+
export {ColorConfigStateKey}
|
|
751
|
+
|
|
752
|
+
export {ColorConfigStateTone}
|
|
753
|
+
|
|
754
|
+
export {ColorConfigValue}
|
|
755
|
+
|
|
617
756
|
/**
|
|
757
|
+
* The `Container` component wraps content layout in a defined set of widths.
|
|
758
|
+
*
|
|
618
759
|
* @public
|
|
619
760
|
*/
|
|
620
761
|
export declare const Container: ForwardRefExoticComponent<
|
|
621
|
-
Omit<ContainerProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
762
|
+
Omit<ContainerProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'as'>, 'ref'> &
|
|
622
763
|
RefAttributes<HTMLDivElement>
|
|
623
764
|
>
|
|
624
765
|
|
|
@@ -632,240 +773,9 @@ export declare interface ContainerProps extends BoxProps, ResponsiveWidthProps {
|
|
|
632
773
|
*/
|
|
633
774
|
export declare function containsOrEqualsElement(element: HTMLElement, node: Node): boolean
|
|
634
775
|
|
|
635
|
-
|
|
636
|
-
* @internal
|
|
637
|
-
* @deprecated Use studioTheme instead.
|
|
638
|
-
*/
|
|
639
|
-
export declare function createColorTheme(): null
|
|
640
|
-
|
|
641
|
-
/**
|
|
642
|
-
* @beta
|
|
643
|
-
*/
|
|
644
|
-
export declare const createCssVars: (
|
|
645
|
-
scheme: ThemeColorSchemeKey,
|
|
646
|
-
tones: Record<ThemeColorName, ColorTints>,
|
|
647
|
-
defaultTone?: ThemeColorName,
|
|
648
|
-
) => Record<string, string>
|
|
776
|
+
export {createColorTheme}
|
|
649
777
|
|
|
650
|
-
|
|
651
|
-
export declare type CSSObject = StyledObject<any>
|
|
652
|
-
|
|
653
|
-
/**
|
|
654
|
-
* @beta
|
|
655
|
-
*/
|
|
656
|
-
export declare type CSSVariableKey = ThemeColorName & ('spot' | 'syntax' | 'mutable')
|
|
657
|
-
|
|
658
|
-
/**
|
|
659
|
-
* @beta
|
|
660
|
-
*/
|
|
661
|
-
export declare const cssVars: {
|
|
662
|
-
/**
|
|
663
|
-
* This variables are mutable, they can be updated by other components.
|
|
664
|
-
* The main component that updates them is the card, these are the only ones that should be exposed for use from the cards.
|
|
665
|
-
*/
|
|
666
|
-
mutable: Record<
|
|
667
|
-
'bg-color' | 'muted-fg-color' | 'icon-color' | 'fg-color' | 'bg-image' | 'accent-color',
|
|
668
|
-
string
|
|
669
|
-
>
|
|
670
|
-
default: Record<
|
|
671
|
-
| 'text-primary'
|
|
672
|
-
| 'text-secondary'
|
|
673
|
-
| 'text-inactive'
|
|
674
|
-
| 'text-code'
|
|
675
|
-
| 'text-muted'
|
|
676
|
-
| 'text-link'
|
|
677
|
-
| 'text-accent'
|
|
678
|
-
| 'bg-base'
|
|
679
|
-
| 'bg-base-hover'
|
|
680
|
-
| 'bg-base-active'
|
|
681
|
-
| 'bg-accent'
|
|
682
|
-
| 'bg-accent-hover'
|
|
683
|
-
| 'bg-accent-active'
|
|
684
|
-
| 'bg-tint'
|
|
685
|
-
| 'bg-tint-code'
|
|
686
|
-
| 'icon-default'
|
|
687
|
-
| 'icon-inverted'
|
|
688
|
-
| 'border-base'
|
|
689
|
-
| 'border-base-hover'
|
|
690
|
-
| 'border-accent'
|
|
691
|
-
| 'border-accent-inverted'
|
|
692
|
-
| 'base-bg-card'
|
|
693
|
-
| 'base-bg-raw'
|
|
694
|
-
| 'base-shadow-outline-color'
|
|
695
|
-
| 'base-shadow-umbra-color'
|
|
696
|
-
| 'base-shadow-penumbra-color'
|
|
697
|
-
| 'base-shadow-ambient-color'
|
|
698
|
-
| 'base-text-color'
|
|
699
|
-
| 'skeleton-from'
|
|
700
|
-
| 'skeleton-to',
|
|
701
|
-
string
|
|
702
|
-
>
|
|
703
|
-
transparent: Record<
|
|
704
|
-
| 'text-primary'
|
|
705
|
-
| 'text-secondary'
|
|
706
|
-
| 'text-inactive'
|
|
707
|
-
| 'text-code'
|
|
708
|
-
| 'text-muted'
|
|
709
|
-
| 'text-link'
|
|
710
|
-
| 'text-accent'
|
|
711
|
-
| 'bg-base'
|
|
712
|
-
| 'bg-base-hover'
|
|
713
|
-
| 'bg-base-active'
|
|
714
|
-
| 'bg-accent'
|
|
715
|
-
| 'bg-accent-hover'
|
|
716
|
-
| 'bg-accent-active'
|
|
717
|
-
| 'bg-tint'
|
|
718
|
-
| 'bg-tint-code'
|
|
719
|
-
| 'icon-default'
|
|
720
|
-
| 'icon-inverted'
|
|
721
|
-
| 'border-base'
|
|
722
|
-
| 'border-base-hover'
|
|
723
|
-
| 'border-accent'
|
|
724
|
-
| 'border-accent-inverted'
|
|
725
|
-
| 'base-bg-card'
|
|
726
|
-
| 'base-bg-raw'
|
|
727
|
-
| 'base-shadow-outline-color'
|
|
728
|
-
| 'base-shadow-umbra-color'
|
|
729
|
-
| 'base-shadow-penumbra-color'
|
|
730
|
-
| 'base-shadow-ambient-color'
|
|
731
|
-
| 'base-text-color'
|
|
732
|
-
| 'skeleton-from'
|
|
733
|
-
| 'skeleton-to',
|
|
734
|
-
string
|
|
735
|
-
>
|
|
736
|
-
primary: Record<
|
|
737
|
-
| 'text-primary'
|
|
738
|
-
| 'text-secondary'
|
|
739
|
-
| 'text-inactive'
|
|
740
|
-
| 'text-code'
|
|
741
|
-
| 'text-muted'
|
|
742
|
-
| 'text-link'
|
|
743
|
-
| 'text-accent'
|
|
744
|
-
| 'bg-base'
|
|
745
|
-
| 'bg-base-hover'
|
|
746
|
-
| 'bg-base-active'
|
|
747
|
-
| 'bg-accent'
|
|
748
|
-
| 'bg-accent-hover'
|
|
749
|
-
| 'bg-accent-active'
|
|
750
|
-
| 'bg-tint'
|
|
751
|
-
| 'bg-tint-code'
|
|
752
|
-
| 'icon-default'
|
|
753
|
-
| 'icon-inverted'
|
|
754
|
-
| 'border-base'
|
|
755
|
-
| 'border-base-hover'
|
|
756
|
-
| 'border-accent'
|
|
757
|
-
| 'border-accent-inverted'
|
|
758
|
-
| 'base-bg-card'
|
|
759
|
-
| 'base-bg-raw'
|
|
760
|
-
| 'base-shadow-outline-color'
|
|
761
|
-
| 'base-shadow-umbra-color'
|
|
762
|
-
| 'base-shadow-penumbra-color'
|
|
763
|
-
| 'base-shadow-ambient-color'
|
|
764
|
-
| 'base-text-color'
|
|
765
|
-
| 'skeleton-from'
|
|
766
|
-
| 'skeleton-to',
|
|
767
|
-
string
|
|
768
|
-
>
|
|
769
|
-
positive: Record<
|
|
770
|
-
| 'text-primary'
|
|
771
|
-
| 'text-secondary'
|
|
772
|
-
| 'text-inactive'
|
|
773
|
-
| 'text-code'
|
|
774
|
-
| 'text-muted'
|
|
775
|
-
| 'text-link'
|
|
776
|
-
| 'text-accent'
|
|
777
|
-
| 'bg-base'
|
|
778
|
-
| 'bg-base-hover'
|
|
779
|
-
| 'bg-base-active'
|
|
780
|
-
| 'bg-accent'
|
|
781
|
-
| 'bg-accent-hover'
|
|
782
|
-
| 'bg-accent-active'
|
|
783
|
-
| 'bg-tint'
|
|
784
|
-
| 'bg-tint-code'
|
|
785
|
-
| 'icon-default'
|
|
786
|
-
| 'icon-inverted'
|
|
787
|
-
| 'border-base'
|
|
788
|
-
| 'border-base-hover'
|
|
789
|
-
| 'border-accent'
|
|
790
|
-
| 'border-accent-inverted'
|
|
791
|
-
| 'base-bg-card'
|
|
792
|
-
| 'base-bg-raw'
|
|
793
|
-
| 'base-shadow-outline-color'
|
|
794
|
-
| 'base-shadow-umbra-color'
|
|
795
|
-
| 'base-shadow-penumbra-color'
|
|
796
|
-
| 'base-shadow-ambient-color'
|
|
797
|
-
| 'base-text-color'
|
|
798
|
-
| 'skeleton-from'
|
|
799
|
-
| 'skeleton-to',
|
|
800
|
-
string
|
|
801
|
-
>
|
|
802
|
-
caution: Record<
|
|
803
|
-
| 'text-primary'
|
|
804
|
-
| 'text-secondary'
|
|
805
|
-
| 'text-inactive'
|
|
806
|
-
| 'text-code'
|
|
807
|
-
| 'text-muted'
|
|
808
|
-
| 'text-link'
|
|
809
|
-
| 'text-accent'
|
|
810
|
-
| 'bg-base'
|
|
811
|
-
| 'bg-base-hover'
|
|
812
|
-
| 'bg-base-active'
|
|
813
|
-
| 'bg-accent'
|
|
814
|
-
| 'bg-accent-hover'
|
|
815
|
-
| 'bg-accent-active'
|
|
816
|
-
| 'bg-tint'
|
|
817
|
-
| 'bg-tint-code'
|
|
818
|
-
| 'icon-default'
|
|
819
|
-
| 'icon-inverted'
|
|
820
|
-
| 'border-base'
|
|
821
|
-
| 'border-base-hover'
|
|
822
|
-
| 'border-accent'
|
|
823
|
-
| 'border-accent-inverted'
|
|
824
|
-
| 'base-bg-card'
|
|
825
|
-
| 'base-bg-raw'
|
|
826
|
-
| 'base-shadow-outline-color'
|
|
827
|
-
| 'base-shadow-umbra-color'
|
|
828
|
-
| 'base-shadow-penumbra-color'
|
|
829
|
-
| 'base-shadow-ambient-color'
|
|
830
|
-
| 'base-text-color'
|
|
831
|
-
| 'skeleton-from'
|
|
832
|
-
| 'skeleton-to',
|
|
833
|
-
string
|
|
834
|
-
>
|
|
835
|
-
critical: Record<
|
|
836
|
-
| 'text-primary'
|
|
837
|
-
| 'text-secondary'
|
|
838
|
-
| 'text-inactive'
|
|
839
|
-
| 'text-code'
|
|
840
|
-
| 'text-muted'
|
|
841
|
-
| 'text-link'
|
|
842
|
-
| 'text-accent'
|
|
843
|
-
| 'bg-base'
|
|
844
|
-
| 'bg-base-hover'
|
|
845
|
-
| 'bg-base-active'
|
|
846
|
-
| 'bg-accent'
|
|
847
|
-
| 'bg-accent-hover'
|
|
848
|
-
| 'bg-accent-active'
|
|
849
|
-
| 'bg-tint'
|
|
850
|
-
| 'bg-tint-code'
|
|
851
|
-
| 'icon-default'
|
|
852
|
-
| 'icon-inverted'
|
|
853
|
-
| 'border-base'
|
|
854
|
-
| 'border-base-hover'
|
|
855
|
-
| 'border-accent'
|
|
856
|
-
| 'border-accent-inverted'
|
|
857
|
-
| 'base-bg-card'
|
|
858
|
-
| 'base-bg-raw'
|
|
859
|
-
| 'base-shadow-outline-color'
|
|
860
|
-
| 'base-shadow-umbra-color'
|
|
861
|
-
| 'base-shadow-penumbra-color'
|
|
862
|
-
| 'base-shadow-ambient-color'
|
|
863
|
-
| 'base-text-color'
|
|
864
|
-
| 'skeleton-from'
|
|
865
|
-
| 'skeleton-to',
|
|
866
|
-
string
|
|
867
|
-
>
|
|
868
|
-
}
|
|
778
|
+
export {CSSObject}
|
|
869
779
|
|
|
870
780
|
/**
|
|
871
781
|
* @public
|
|
@@ -878,10 +788,12 @@ export declare type Delay =
|
|
|
878
788
|
}>
|
|
879
789
|
|
|
880
790
|
/**
|
|
791
|
+
* The Dialog component.
|
|
792
|
+
*
|
|
881
793
|
* @public
|
|
882
794
|
*/
|
|
883
795
|
export declare const Dialog: ForwardRefExoticComponent<
|
|
884
|
-
Omit<DialogProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
796
|
+
Omit<DialogProps & Omit<HTMLProps<HTMLDivElement>, 'width' | 'id' | 'as'>, 'ref'> &
|
|
885
797
|
RefAttributes<HTMLDivElement>
|
|
886
798
|
>
|
|
887
799
|
|
|
@@ -931,6 +843,13 @@ export declare interface DialogProps extends ResponsivePaddingProps, ResponsiveW
|
|
|
931
843
|
position?: DialogPosition | DialogPosition[]
|
|
932
844
|
scheme?: ThemeColorSchemeKey
|
|
933
845
|
zOffset?: number | number[]
|
|
846
|
+
/**
|
|
847
|
+
* Whether the dialog should animate in on mount.
|
|
848
|
+
*
|
|
849
|
+
* @beta
|
|
850
|
+
* @defaultValue false
|
|
851
|
+
*/
|
|
852
|
+
animate?: boolean
|
|
934
853
|
}
|
|
935
854
|
|
|
936
855
|
/**
|
|
@@ -1036,10 +955,12 @@ export declare function _fillCSSObject(
|
|
|
1036
955
|
): CSSObject
|
|
1037
956
|
|
|
1038
957
|
/**
|
|
958
|
+
* The `Flex` component is a wrapper component for flexible elements (`Box`, `Card` and `Flex`).
|
|
959
|
+
*
|
|
1039
960
|
* @public
|
|
1040
961
|
*/
|
|
1041
962
|
export declare const Flex: ForwardRefExoticComponent<
|
|
1042
|
-
Omit<FlexProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
963
|
+
Omit<FlexProps & Omit<HTMLProps<HTMLDivElement>, 'wrap' | 'as'>, 'ref'> &
|
|
1043
964
|
RefAttributes<HTMLDivElement>
|
|
1044
965
|
>
|
|
1045
966
|
|
|
@@ -1094,14 +1015,6 @@ export declare function focusFirstDescendant(element: HTMLElement): boolean
|
|
|
1094
1015
|
*/
|
|
1095
1016
|
export declare function focusLastDescendant(element: HTMLElement): boolean
|
|
1096
1017
|
|
|
1097
|
-
/**
|
|
1098
|
-
* @public
|
|
1099
|
-
*/
|
|
1100
|
-
export declare interface FocusRing {
|
|
1101
|
-
offset: number
|
|
1102
|
-
width: number
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
1018
|
/**
|
|
1106
1019
|
* @internal
|
|
1107
1020
|
*/
|
|
@@ -1124,10 +1037,12 @@ export declare function _getResponsiveSpace(
|
|
|
1124
1037
|
): CSSObject[] | null
|
|
1125
1038
|
|
|
1126
1039
|
/**
|
|
1040
|
+
* The `Grid` component is for building 2-dimensional layers (based on CSS grid).
|
|
1041
|
+
*
|
|
1127
1042
|
* @public
|
|
1128
1043
|
*/
|
|
1129
1044
|
export declare const Grid: ForwardRefExoticComponent<
|
|
1130
|
-
Omit<GridProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
1045
|
+
Omit<GridProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as' | 'rows'>, 'ref'> &
|
|
1131
1046
|
RefAttributes<HTMLDivElement>
|
|
1132
1047
|
>
|
|
1133
1048
|
|
|
@@ -1187,10 +1102,12 @@ export declare interface GridProps extends Omit<BoxProps, 'display'>, Responsive
|
|
|
1187
1102
|
export declare function _hasFocus(element: HTMLElement): boolean
|
|
1188
1103
|
|
|
1189
1104
|
/**
|
|
1105
|
+
* Typographic headings.
|
|
1106
|
+
*
|
|
1190
1107
|
* @public
|
|
1191
1108
|
*/
|
|
1192
1109
|
export declare const Heading: ForwardRefExoticComponent<
|
|
1193
|
-
Omit<HeadingProps & Omit<HTMLProps<HTMLElement>, '
|
|
1110
|
+
Omit<HeadingProps & Omit<HTMLProps<HTMLElement>, 'size' | 'as'>, 'ref'> &
|
|
1194
1111
|
RefAttributes<HTMLElement>
|
|
1195
1112
|
>
|
|
1196
1113
|
|
|
@@ -1218,7 +1135,7 @@ export declare interface HeadingProps {
|
|
|
1218
1135
|
*/
|
|
1219
1136
|
export declare const HeadingSkeleton: ForwardRefExoticComponent<
|
|
1220
1137
|
Omit<
|
|
1221
|
-
HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
1138
|
+
HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'children' | 'height' | 'as'>,
|
|
1222
1139
|
'ref'
|
|
1223
1140
|
> &
|
|
1224
1141
|
RefAttributes<HTMLDivElement>
|
|
@@ -1232,16 +1149,15 @@ export declare interface HeadingSkeletonProps extends SkeletonProps {
|
|
|
1232
1149
|
size?: number | number[]
|
|
1233
1150
|
}
|
|
1234
1151
|
|
|
1235
|
-
|
|
1236
|
-
* @internal
|
|
1237
|
-
*/
|
|
1238
|
-
export declare function hexToRgb(hex: string): RGB
|
|
1152
|
+
export {hexToRgb}
|
|
1239
1153
|
|
|
1240
1154
|
/**
|
|
1155
|
+
* Represent hotkeys (a keyboard combination) with semantic `<kbd>` elements.
|
|
1156
|
+
*
|
|
1241
1157
|
* @public
|
|
1242
1158
|
*/
|
|
1243
1159
|
export declare const Hotkeys: ForwardRefExoticComponent<
|
|
1244
|
-
HotkeysProps & Omit<HTMLProps<HTMLElement>, '
|
|
1160
|
+
HotkeysProps & Omit<HTMLProps<HTMLElement>, 'size' | 'ref' | 'as'> & RefAttributes<HTMLElement>
|
|
1245
1161
|
>
|
|
1246
1162
|
|
|
1247
1163
|
/**
|
|
@@ -1255,21 +1171,13 @@ export declare interface HotkeysProps {
|
|
|
1255
1171
|
keys?: string[]
|
|
1256
1172
|
}
|
|
1257
1173
|
|
|
1258
|
-
|
|
1259
|
-
* @internal
|
|
1260
|
-
*/
|
|
1261
|
-
export declare interface HSL {
|
|
1262
|
-
h: number
|
|
1263
|
-
s: number
|
|
1264
|
-
l: number
|
|
1265
|
-
}
|
|
1174
|
+
export {HSL}
|
|
1266
1175
|
|
|
1267
|
-
|
|
1268
|
-
* @internal
|
|
1269
|
-
*/
|
|
1270
|
-
export declare function hslToRgb(hsl: HSL): RGB
|
|
1176
|
+
export {hslToRgb}
|
|
1271
1177
|
|
|
1272
1178
|
/**
|
|
1179
|
+
* The `Inline` component is a layout utility for aligning and spacing items horizontally.
|
|
1180
|
+
*
|
|
1273
1181
|
* @public
|
|
1274
1182
|
*/
|
|
1275
1183
|
export declare const Inline: ForwardRefExoticComponent<
|
|
@@ -1280,9 +1188,34 @@ export declare const Inline: ForwardRefExoticComponent<
|
|
|
1280
1188
|
* @public
|
|
1281
1189
|
*/
|
|
1282
1190
|
export declare interface InlineProps extends Omit<BoxProps, 'display'> {
|
|
1191
|
+
/** The spacing between children. */
|
|
1283
1192
|
space?: number | number[]
|
|
1284
1193
|
}
|
|
1285
1194
|
|
|
1195
|
+
export {isColorBlendModeValue}
|
|
1196
|
+
|
|
1197
|
+
export {isColorButtonMode}
|
|
1198
|
+
|
|
1199
|
+
export {isColorConfigBaseKey}
|
|
1200
|
+
|
|
1201
|
+
export {isColorConfigBaseTone}
|
|
1202
|
+
|
|
1203
|
+
export {isColorConfigBlendKey}
|
|
1204
|
+
|
|
1205
|
+
export {isColorConfigStateKey}
|
|
1206
|
+
|
|
1207
|
+
export {isColorConfigStateTone}
|
|
1208
|
+
|
|
1209
|
+
export {isColorHueKey}
|
|
1210
|
+
|
|
1211
|
+
export {isColorOpacityValue}
|
|
1212
|
+
|
|
1213
|
+
export {isColorTintKey}
|
|
1214
|
+
|
|
1215
|
+
export {isColorTokenValue}
|
|
1216
|
+
|
|
1217
|
+
export {isColorValue}
|
|
1218
|
+
|
|
1286
1219
|
/**
|
|
1287
1220
|
* @internal
|
|
1288
1221
|
*/
|
|
@@ -1329,10 +1262,12 @@ export declare function isHTMLTextAreaElement(element: unknown): element is HTML
|
|
|
1329
1262
|
export declare function _isScrollable(el: Node): boolean
|
|
1330
1263
|
|
|
1331
1264
|
/**
|
|
1265
|
+
* Used to define some text as keyboard input.
|
|
1266
|
+
*
|
|
1332
1267
|
* @public
|
|
1333
1268
|
*/
|
|
1334
1269
|
export declare const KBD: ForwardRefExoticComponent<
|
|
1335
|
-
KBDProps & Omit<HTMLProps<HTMLElement>, '
|
|
1270
|
+
KBDProps & Omit<HTMLProps<HTMLElement>, 'size' | 'ref' | 'as'> & RefAttributes<HTMLDivElement>
|
|
1336
1271
|
>
|
|
1337
1272
|
|
|
1338
1273
|
/**
|
|
@@ -1346,10 +1281,12 @@ export declare interface KBDProps {
|
|
|
1346
1281
|
}
|
|
1347
1282
|
|
|
1348
1283
|
/**
|
|
1284
|
+
* Typographic labels.
|
|
1285
|
+
*
|
|
1349
1286
|
* @public
|
|
1350
1287
|
*/
|
|
1351
1288
|
export declare const Label: ForwardRefExoticComponent<
|
|
1352
|
-
Omit<LabelProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
1289
|
+
Omit<LabelProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'as'>, 'ref'> &
|
|
1353
1290
|
RefAttributes<HTMLDivElement>
|
|
1354
1291
|
>
|
|
1355
1292
|
|
|
@@ -1377,7 +1314,7 @@ export declare interface LabelProps {
|
|
|
1377
1314
|
*/
|
|
1378
1315
|
export declare const LabelSkeleton: ForwardRefExoticComponent<
|
|
1379
1316
|
Omit<
|
|
1380
|
-
LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
1317
|
+
LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'children' | 'height' | 'as'>,
|
|
1381
1318
|
'ref'
|
|
1382
1319
|
> &
|
|
1383
1320
|
RefAttributes<HTMLDivElement>
|
|
@@ -1449,14 +1386,18 @@ export declare interface _MediaStore {
|
|
|
1449
1386
|
}
|
|
1450
1387
|
|
|
1451
1388
|
/**
|
|
1389
|
+
* The `Menu` component is a building block for application menus.
|
|
1390
|
+
*
|
|
1452
1391
|
* @public
|
|
1453
1392
|
*/
|
|
1454
1393
|
export declare const Menu: ForwardRefExoticComponent<
|
|
1455
|
-
Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
1394
|
+
Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'tabIndex' | 'role' | 'as'>, 'ref'> &
|
|
1456
1395
|
RefAttributes<HTMLDivElement>
|
|
1457
1396
|
>
|
|
1458
1397
|
|
|
1459
1398
|
/**
|
|
1399
|
+
* The `MenuButton` component follows the WAI-ARIA specification for menu buttons.
|
|
1400
|
+
*
|
|
1460
1401
|
* @public
|
|
1461
1402
|
*/
|
|
1462
1403
|
export declare const MenuButton: ForwardRefExoticComponent<
|
|
@@ -1519,7 +1460,7 @@ export declare const MenuDivider: IStyledComponent<
|
|
|
1519
1460
|
accessKey?: string | undefined
|
|
1520
1461
|
autoFocus?: boolean | undefined
|
|
1521
1462
|
className?: string | undefined
|
|
1522
|
-
contentEditable?: 'inherit' | (boolean | 'false' | 'true') | undefined
|
|
1463
|
+
contentEditable?: 'inherit' | (boolean | 'false' | 'true') | 'plaintext-only' | undefined
|
|
1523
1464
|
contextMenu?: string | undefined
|
|
1524
1465
|
dir?: string | undefined
|
|
1525
1466
|
draggable?: (boolean | 'false' | 'true') | undefined
|
|
@@ -1560,9 +1501,9 @@ export declare const MenuDivider: IStyledComponent<
|
|
|
1560
1501
|
security?: string | undefined
|
|
1561
1502
|
unselectable?: 'on' | 'off' | undefined
|
|
1562
1503
|
inputMode?:
|
|
1563
|
-
| 'search'
|
|
1564
|
-
| 'text'
|
|
1565
1504
|
| 'none'
|
|
1505
|
+
| 'text'
|
|
1506
|
+
| 'search'
|
|
1566
1507
|
| 'tel'
|
|
1567
1508
|
| 'url'
|
|
1568
1509
|
| 'email'
|
|
@@ -1572,7 +1513,7 @@ export declare const MenuDivider: IStyledComponent<
|
|
|
1572
1513
|
is?: string | undefined
|
|
1573
1514
|
'aria-activedescendant'?: string | undefined
|
|
1574
1515
|
'aria-atomic'?: (boolean | 'false' | 'true') | undefined
|
|
1575
|
-
'aria-autocomplete'?: '
|
|
1516
|
+
'aria-autocomplete'?: 'none' | 'both' | 'inline' | 'list' | undefined
|
|
1576
1517
|
'aria-braillelabel'?: string | undefined
|
|
1577
1518
|
'aria-brailleroledescription'?: string | undefined
|
|
1578
1519
|
'aria-busy'?: (boolean | 'false' | 'true') | undefined
|
|
@@ -1584,10 +1525,10 @@ export declare const MenuDivider: IStyledComponent<
|
|
|
1584
1525
|
'aria-controls'?: string | undefined
|
|
1585
1526
|
'aria-current'?:
|
|
1586
1527
|
| boolean
|
|
1587
|
-
| 'time'
|
|
1588
1528
|
| 'page'
|
|
1589
1529
|
| 'false'
|
|
1590
1530
|
| 'true'
|
|
1531
|
+
| 'time'
|
|
1591
1532
|
| 'step'
|
|
1592
1533
|
| 'location'
|
|
1593
1534
|
| 'date'
|
|
@@ -1596,19 +1537,19 @@ export declare const MenuDivider: IStyledComponent<
|
|
|
1596
1537
|
'aria-description'?: string | undefined
|
|
1597
1538
|
'aria-details'?: string | undefined
|
|
1598
1539
|
'aria-disabled'?: (boolean | 'false' | 'true') | undefined
|
|
1599
|
-
'aria-dropeffect'?: '
|
|
1540
|
+
'aria-dropeffect'?: 'none' | 'link' | 'copy' | 'move' | 'execute' | 'popup' | undefined
|
|
1600
1541
|
'aria-errormessage'?: string | undefined
|
|
1601
1542
|
'aria-expanded'?: (boolean | 'false' | 'true') | undefined
|
|
1602
1543
|
'aria-flowto'?: string | undefined
|
|
1603
1544
|
'aria-grabbed'?: (boolean | 'false' | 'true') | undefined
|
|
1604
1545
|
'aria-haspopup'?:
|
|
1605
1546
|
| boolean
|
|
1606
|
-
| 'dialog'
|
|
1607
|
-
| 'menu'
|
|
1608
|
-
| 'listbox'
|
|
1609
1547
|
| 'grid'
|
|
1548
|
+
| 'listbox'
|
|
1549
|
+
| 'menu'
|
|
1610
1550
|
| 'false'
|
|
1611
1551
|
| 'true'
|
|
1552
|
+
| 'dialog'
|
|
1612
1553
|
| 'tree'
|
|
1613
1554
|
| undefined
|
|
1614
1555
|
'aria-hidden'?: (boolean | 'false' | 'true') | undefined
|
|
@@ -1851,7 +1792,7 @@ export declare interface MenuGroupProps {
|
|
|
1851
1792
|
*/
|
|
1852
1793
|
export declare const MenuItem: ForwardRefExoticComponent<
|
|
1853
1794
|
MenuItemProps &
|
|
1854
|
-
Omit<HTMLProps<HTMLDivElement>, 'ref' | '
|
|
1795
|
+
Omit<HTMLProps<HTMLDivElement>, 'ref' | 'height' | 'tabIndex' | 'as' | 'selected'> &
|
|
1855
1796
|
RefAttributes<HTMLDivElement>
|
|
1856
1797
|
>
|
|
1857
1798
|
|
|
@@ -1868,7 +1809,7 @@ export declare interface MenuItemProps extends ResponsivePaddingProps, Responsiv
|
|
|
1868
1809
|
selected?: boolean
|
|
1869
1810
|
space?: number | number[]
|
|
1870
1811
|
text?: React.ReactNode
|
|
1871
|
-
tone?:
|
|
1812
|
+
tone?: SelectableTone
|
|
1872
1813
|
}
|
|
1873
1814
|
|
|
1874
1815
|
/**
|
|
@@ -1893,17 +1834,15 @@ export declare interface MenuProps extends ResponsivePaddingProps {
|
|
|
1893
1834
|
space?: number | number[]
|
|
1894
1835
|
}
|
|
1895
1836
|
|
|
1896
|
-
|
|
1897
|
-
* Apply the \`multiply\` blend mode
|
|
1898
|
-
* Source: https://www.w3.org/TR/compositing-1/#blendingmultiply
|
|
1899
|
-
* @internal
|
|
1900
|
-
*/
|
|
1901
|
-
export declare function multiply(b: RGB | RGBA, s: RGB | RGBA): RGB
|
|
1837
|
+
export {multiply}
|
|
1902
1838
|
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1839
|
+
export {parseColor}
|
|
1840
|
+
|
|
1841
|
+
export {parseTokenKey}
|
|
1842
|
+
|
|
1843
|
+
export {parseTokenValue}
|
|
1844
|
+
|
|
1845
|
+
export {PartialThemeColorBuilderOpts}
|
|
1907
1846
|
|
|
1908
1847
|
/**
|
|
1909
1848
|
* Placement of floating UI elements.
|
|
@@ -1924,11 +1863,15 @@ export declare type Placement =
|
|
|
1924
1863
|
| 'left-start'
|
|
1925
1864
|
| 'left-end'
|
|
1926
1865
|
|
|
1927
|
-
/**
|
|
1866
|
+
/**
|
|
1867
|
+
* The `Popover` component is used to display some content on top of another.
|
|
1868
|
+
*
|
|
1869
|
+
* @public
|
|
1870
|
+
*/
|
|
1928
1871
|
export declare const Popover: MemoExoticComponent<
|
|
1929
1872
|
ForwardRefExoticComponent<
|
|
1930
1873
|
Omit<
|
|
1931
|
-
PopoverProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
1874
|
+
PopoverProps & Omit<HTMLProps<HTMLDivElement>, 'content' | 'children' | 'width' | 'as'>,
|
|
1932
1875
|
'ref'
|
|
1933
1876
|
> &
|
|
1934
1877
|
RefAttributes<HTMLDivElement>
|
|
@@ -1961,6 +1904,7 @@ export declare interface PopoverProps
|
|
|
1961
1904
|
overflow?: BoxOverflow
|
|
1962
1905
|
padding?: number | number[]
|
|
1963
1906
|
placement?: Placement
|
|
1907
|
+
/** Whether or not to render the popover in a portal element. */
|
|
1964
1908
|
portal?: boolean | string
|
|
1965
1909
|
preventOverflow?: boolean
|
|
1966
1910
|
referenceBoundary?: HTMLElement | null
|
|
@@ -2028,10 +1972,12 @@ export declare interface PortalProviderProps {
|
|
|
2028
1972
|
}
|
|
2029
1973
|
|
|
2030
1974
|
/**
|
|
1975
|
+
* The `Radio` component allows the user to select one option from a set.
|
|
1976
|
+
*
|
|
2031
1977
|
* @public
|
|
2032
1978
|
*/
|
|
2033
1979
|
export declare const Radio: ForwardRefExoticComponent<
|
|
2034
|
-
Omit<Omit<HTMLProps<HTMLInputElement>, '
|
|
1980
|
+
Omit<Omit<HTMLProps<HTMLInputElement>, 'as' | 'type'> & RadioProps, 'ref'> &
|
|
2035
1981
|
RefAttributes<HTMLInputElement>
|
|
2036
1982
|
>
|
|
2037
1983
|
|
|
@@ -2116,6 +2062,7 @@ export declare function responsiveCodeFontStyle(
|
|
|
2116
2062
|
* @public
|
|
2117
2063
|
*/
|
|
2118
2064
|
export declare interface ResponsiveFlexItemProps {
|
|
2065
|
+
/** Sets the flex CSS attribute. The property is responsive. */
|
|
2119
2066
|
flex?: FlexValue | FlexValue[]
|
|
2120
2067
|
}
|
|
2121
2068
|
|
|
@@ -2193,8 +2140,11 @@ export declare function responsiveLabelFont(
|
|
|
2193
2140
|
* @public
|
|
2194
2141
|
*/
|
|
2195
2142
|
export declare interface ResponsiveMarginProps {
|
|
2143
|
+
/** Applies margins to all sides. The property is responsive. */
|
|
2196
2144
|
margin?: number | number[]
|
|
2145
|
+
/** Applies margins to the left and right sides. The property is responsive. */
|
|
2197
2146
|
marginX?: number | number[]
|
|
2147
|
+
/** Applies margins to the top and bottom sides. The property is responsive. */
|
|
2198
2148
|
marginY?: number | number[]
|
|
2199
2149
|
marginTop?: number | number[]
|
|
2200
2150
|
marginRight?: number | number[]
|
|
@@ -2266,61 +2216,25 @@ export declare interface ResponsiveWidthStyleProps {
|
|
|
2266
2216
|
$width: (number | 'auto')[]
|
|
2267
2217
|
}
|
|
2268
2218
|
|
|
2269
|
-
|
|
2270
|
-
* @internal
|
|
2271
|
-
*/
|
|
2272
|
-
export declare interface RGB {
|
|
2273
|
-
r: number
|
|
2274
|
-
g: number
|
|
2275
|
-
b: number
|
|
2276
|
-
a?: undefined
|
|
2277
|
-
}
|
|
2219
|
+
export {RGB}
|
|
2278
2220
|
|
|
2279
|
-
|
|
2280
|
-
* @internal
|
|
2281
|
-
*/
|
|
2282
|
-
export declare interface RGBA {
|
|
2283
|
-
r: number
|
|
2284
|
-
g: number
|
|
2285
|
-
b: number
|
|
2286
|
-
a: number
|
|
2287
|
-
}
|
|
2221
|
+
export {RGBA}
|
|
2288
2222
|
|
|
2289
|
-
|
|
2290
|
-
* @internal
|
|
2291
|
-
*/
|
|
2292
|
-
export declare function rgba(color: unknown, a: number): string
|
|
2223
|
+
export {rgba}
|
|
2293
2224
|
|
|
2294
|
-
|
|
2295
|
-
* @internal
|
|
2296
|
-
*/
|
|
2297
|
-
export declare function rgbaToRGBA(rgba: string): RGBA
|
|
2225
|
+
export {rgbaToRGBA}
|
|
2298
2226
|
|
|
2299
|
-
|
|
2300
|
-
* @internal
|
|
2301
|
-
*/
|
|
2302
|
-
export declare function rgbToHex({r, g, b}: RGB): string
|
|
2227
|
+
export {rgbToHex}
|
|
2303
2228
|
|
|
2304
|
-
|
|
2305
|
-
* @internal
|
|
2306
|
-
* @see https://css-tricks.com/converting-color-spaces-in-javascript/
|
|
2307
|
-
*/
|
|
2308
|
-
export declare function rgbToHsl({r, g, b}: RGB): HSL
|
|
2229
|
+
export {rgbToHsl}
|
|
2309
2230
|
|
|
2310
|
-
|
|
2311
|
-
* @public
|
|
2312
|
-
*/
|
|
2313
|
-
export declare type RootTheme = BaseTheme<Styles>
|
|
2231
|
+
export {RootTheme}
|
|
2314
2232
|
|
|
2315
|
-
/**
|
|
2316
|
-
* Apply the \`screen\` blend mode
|
|
2317
|
-
* Source: https://www.w3.org/TR/compositing-1/#blendingscreen
|
|
2318
|
-
* @internal
|
|
2319
|
-
*/
|
|
2320
|
-
declare function screen_2(b: RGB | RGBA, s: RGB | RGBA): RGB
|
|
2321
2233
|
export {screen_2 as screen}
|
|
2322
2234
|
|
|
2323
2235
|
/**
|
|
2236
|
+
* The `Select` component provides control of options.
|
|
2237
|
+
*
|
|
2324
2238
|
* @public
|
|
2325
2239
|
*/
|
|
2326
2240
|
export declare const Select: ForwardRefExoticComponent<
|
|
@@ -2331,7 +2245,7 @@ export declare const Select: ForwardRefExoticComponent<
|
|
|
2331
2245
|
/**
|
|
2332
2246
|
* @public
|
|
2333
2247
|
*/
|
|
2334
|
-
export declare type SelectableTone =
|
|
2248
|
+
export declare type SelectableTone = ThemeColorStateToneKey
|
|
2335
2249
|
|
|
2336
2250
|
/**
|
|
2337
2251
|
* @public
|
|
@@ -2362,10 +2276,12 @@ export declare interface SkeletonProps extends ResponsiveRadiusProps, Omit<BoxPr
|
|
|
2362
2276
|
}
|
|
2363
2277
|
|
|
2364
2278
|
/**
|
|
2279
|
+
* Indicate that something is loading for an indeterminate amount of time.
|
|
2280
|
+
*
|
|
2365
2281
|
* @public
|
|
2366
2282
|
*/
|
|
2367
2283
|
export declare const Spinner: ForwardRefExoticComponent<
|
|
2368
|
-
Omit<SpinnerProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
2284
|
+
Omit<SpinnerProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'as'>, 'ref'> &
|
|
2369
2285
|
RefAttributes<HTMLDivElement>
|
|
2370
2286
|
>
|
|
2371
2287
|
|
|
@@ -2381,7 +2297,7 @@ export declare interface SpinnerProps {
|
|
|
2381
2297
|
* @public
|
|
2382
2298
|
*/
|
|
2383
2299
|
export declare const SrOnly: ForwardRefExoticComponent<
|
|
2384
|
-
Omit<SrOnlyProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
2300
|
+
Omit<SrOnlyProps & Omit<HTMLProps<HTMLDivElement>, 'aria-hidden' | 'as'>, 'ref'> &
|
|
2385
2301
|
RefAttributes<HTMLDivElement>
|
|
2386
2302
|
>
|
|
2387
2303
|
|
|
@@ -2394,6 +2310,8 @@ export declare interface SrOnlyProps {
|
|
|
2394
2310
|
}
|
|
2395
2311
|
|
|
2396
2312
|
/**
|
|
2313
|
+
* The `Stack` component is used to place elements on top of each other.
|
|
2314
|
+
*
|
|
2397
2315
|
* @public
|
|
2398
2316
|
*/
|
|
2399
2317
|
export declare const Stack: ForwardRefExoticComponent<
|
|
@@ -2408,29 +2326,17 @@ export declare interface StackProps extends BoxProps {
|
|
|
2408
2326
|
space?: number | number[]
|
|
2409
2327
|
}
|
|
2410
2328
|
|
|
2411
|
-
|
|
2412
|
-
* @public
|
|
2413
|
-
*/
|
|
2414
|
-
export declare const studioTheme: RootTheme
|
|
2415
|
-
|
|
2416
|
-
/**
|
|
2417
|
-
* TODO: Rename to `ThemeStyles`
|
|
2418
|
-
* @public
|
|
2419
|
-
*/
|
|
2420
|
-
export declare interface Styles {
|
|
2421
|
-
button?: {
|
|
2422
|
-
root?: CSSObject
|
|
2423
|
-
}
|
|
2424
|
-
card?: {
|
|
2425
|
-
root?: CSSObject
|
|
2426
|
-
}
|
|
2427
|
-
}
|
|
2329
|
+
export {studioTheme}
|
|
2428
2330
|
|
|
2429
2331
|
/**
|
|
2332
|
+
* The `Switch` component allows the user to toggle a setting on and off.
|
|
2333
|
+
*
|
|
2334
|
+
* Extends all properties of an `<input type="checkbox" />` element, except type.
|
|
2335
|
+
*
|
|
2430
2336
|
* @public
|
|
2431
2337
|
*/
|
|
2432
2338
|
export declare const Switch: ForwardRefExoticComponent<
|
|
2433
|
-
Omit<Omit<HTMLProps<HTMLInputElement>, '
|
|
2339
|
+
Omit<Omit<HTMLProps<HTMLInputElement>, 'as' | 'type'> & SwitchProps, 'ref'> &
|
|
2434
2340
|
RefAttributes<HTMLInputElement>
|
|
2435
2341
|
>
|
|
2436
2342
|
|
|
@@ -2446,7 +2352,11 @@ export declare interface SwitchProps {
|
|
|
2446
2352
|
*/
|
|
2447
2353
|
export declare const Tab: ForwardRefExoticComponent<
|
|
2448
2354
|
Omit<
|
|
2449
|
-
TabProps &
|
|
2355
|
+
TabProps &
|
|
2356
|
+
Omit<
|
|
2357
|
+
HTMLProps<HTMLButtonElement>,
|
|
2358
|
+
'label' | 'width' | 'id' | 'aria-controls' | 'as' | 'type'
|
|
2359
|
+
>,
|
|
2450
2360
|
'ref'
|
|
2451
2361
|
> &
|
|
2452
2362
|
RefAttributes<HTMLButtonElement>
|
|
@@ -2456,7 +2366,7 @@ export declare const Tab: ForwardRefExoticComponent<
|
|
|
2456
2366
|
* @public
|
|
2457
2367
|
*/
|
|
2458
2368
|
export declare const TabList: ForwardRefExoticComponent<
|
|
2459
|
-
Omit<TabListProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
2369
|
+
Omit<TabListProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
|
|
2460
2370
|
RefAttributes<unknown>
|
|
2461
2371
|
>
|
|
2462
2372
|
|
|
@@ -2472,7 +2382,7 @@ export declare interface TabListProps extends Omit<InlineProps, 'as' | 'height'>
|
|
|
2472
2382
|
*/
|
|
2473
2383
|
export declare const TabPanel: ForwardRefExoticComponent<
|
|
2474
2384
|
Omit<
|
|
2475
|
-
TabPanelProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
2385
|
+
TabPanelProps & Omit<HTMLProps<HTMLDivElement>, 'id' | 'role' | 'aria-labelledby' | 'as'>,
|
|
2476
2386
|
'ref'
|
|
2477
2387
|
> &
|
|
2478
2388
|
RefAttributes<HTMLDivElement>
|
|
@@ -2508,10 +2418,12 @@ export declare interface TabProps {
|
|
|
2508
2418
|
}
|
|
2509
2419
|
|
|
2510
2420
|
/**
|
|
2421
|
+
* The `Text` component is an agile, themed typographic element.
|
|
2422
|
+
*
|
|
2511
2423
|
* @public
|
|
2512
2424
|
*/
|
|
2513
2425
|
declare const Text_2: ForwardRefExoticComponent<
|
|
2514
|
-
Omit<TextProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
2426
|
+
Omit<TextProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'as'>, 'ref'> &
|
|
2515
2427
|
RefAttributes<HTMLDivElement>
|
|
2516
2428
|
>
|
|
2517
2429
|
export {Text_2 as Text}
|
|
@@ -2522,6 +2434,9 @@ export {Text_2 as Text}
|
|
|
2522
2434
|
export declare type TextAlign = 'left' | 'right' | 'center' | 'justify' | 'initial'
|
|
2523
2435
|
|
|
2524
2436
|
/**
|
|
2437
|
+
* A multiline text input.
|
|
2438
|
+
*
|
|
2439
|
+
|
|
2525
2440
|
* @public
|
|
2526
2441
|
*/
|
|
2527
2442
|
export declare const TextArea: ForwardRefExoticComponent<
|
|
@@ -2538,14 +2453,15 @@ export declare interface TextAreaProps extends ResponsiveRadiusProps {
|
|
|
2538
2453
|
fontSize?: number | number[]
|
|
2539
2454
|
padding?: number | number[]
|
|
2540
2455
|
weight?: ThemeFontWeightKey
|
|
2541
|
-
tone?: ThemeColorToneKey
|
|
2542
2456
|
}
|
|
2543
2457
|
|
|
2544
2458
|
/**
|
|
2459
|
+
* Single line text input.
|
|
2460
|
+
*
|
|
2545
2461
|
* @public
|
|
2546
2462
|
*/
|
|
2547
2463
|
export declare const TextInput: ForwardRefExoticComponent<
|
|
2548
|
-
Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, '
|
|
2464
|
+
Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, 'prefix' | 'as' | 'type'>, 'ref'> &
|
|
2549
2465
|
RefAttributes<HTMLInputElement>
|
|
2550
2466
|
>
|
|
2551
2467
|
|
|
@@ -2559,6 +2475,10 @@ export declare type TextInputClearButtonProps = Omit<ButtonProps, 'as'> &
|
|
|
2559
2475
|
* @public
|
|
2560
2476
|
*/
|
|
2561
2477
|
export declare interface TextInputProps {
|
|
2478
|
+
/**
|
|
2479
|
+
* @beta
|
|
2480
|
+
*/
|
|
2481
|
+
__unstable_disableFocusRing?: boolean
|
|
2562
2482
|
border?: boolean
|
|
2563
2483
|
/**
|
|
2564
2484
|
* @beta
|
|
@@ -2579,7 +2499,6 @@ export declare interface TextInputProps {
|
|
|
2579
2499
|
suffix?: React.ReactNode
|
|
2580
2500
|
type?: TextInputType
|
|
2581
2501
|
weight?: ThemeFontWeightKey
|
|
2582
|
-
tone?: ThemeColorToneKey
|
|
2583
2502
|
}
|
|
2584
2503
|
|
|
2585
2504
|
/**
|
|
@@ -2606,6 +2525,7 @@ export declare interface TextProps {
|
|
|
2606
2525
|
accent?: boolean
|
|
2607
2526
|
align?: TextAlign | TextAlign[]
|
|
2608
2527
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
2528
|
+
/** When `true` the text color will be muted. */
|
|
2609
2529
|
muted?: boolean
|
|
2610
2530
|
size?: number | number[]
|
|
2611
2531
|
/**
|
|
@@ -2623,7 +2543,7 @@ export declare interface TextProps {
|
|
|
2623
2543
|
*/
|
|
2624
2544
|
export declare const TextSkeleton: ForwardRefExoticComponent<
|
|
2625
2545
|
Omit<
|
|
2626
|
-
TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
2546
|
+
TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'children' | 'height' | 'as'>,
|
|
2627
2547
|
'ref'
|
|
2628
2548
|
> &
|
|
2629
2549
|
RefAttributes<HTMLDivElement>
|
|
@@ -2637,198 +2557,142 @@ export declare interface TextSkeletonProps extends SkeletonProps {
|
|
|
2637
2557
|
size?: number | number[]
|
|
2638
2558
|
}
|
|
2639
2559
|
|
|
2640
|
-
|
|
2641
|
-
* @public
|
|
2642
|
-
*/
|
|
2643
|
-
export declare interface Theme {
|
|
2644
|
-
sanity: RootTheme
|
|
2645
|
-
}
|
|
2560
|
+
export {Theme}
|
|
2646
2561
|
|
|
2647
|
-
|
|
2648
|
-
* @public
|
|
2649
|
-
*/
|
|
2650
|
-
export declare interface ThemeAvatar {
|
|
2651
|
-
sizes: {
|
|
2652
|
-
distance: number
|
|
2653
|
-
size: number
|
|
2654
|
-
}[]
|
|
2655
|
-
focusRing: FocusRing
|
|
2656
|
-
}
|
|
2562
|
+
export {THEME_COLOR_BLEND_MODES}
|
|
2657
2563
|
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2564
|
+
export {THEME_COLOR_BUTTON_MODES}
|
|
2565
|
+
|
|
2566
|
+
export {THEME_COLOR_CARD_TONES}
|
|
2567
|
+
|
|
2568
|
+
export {THEME_COLOR_STATE_TONES}
|
|
2569
|
+
|
|
2570
|
+
export {THEME_COLOR_STATES}
|
|
2571
|
+
|
|
2572
|
+
export {ThemeAvatar}
|
|
2573
|
+
|
|
2574
|
+
export {ThemeColor}
|
|
2575
|
+
|
|
2576
|
+
export {ThemeColorBase}
|
|
2577
|
+
|
|
2578
|
+
export {ThemeColorBaseTokens}
|
|
2579
|
+
|
|
2580
|
+
export {ThemeColorBlendModeKey}
|
|
2581
|
+
|
|
2582
|
+
export {ThemeColorBuilderOpts}
|
|
2583
|
+
|
|
2584
|
+
export {ThemeColorButton}
|
|
2585
|
+
|
|
2586
|
+
export {ThemeColorButtonModeKey}
|
|
2587
|
+
|
|
2588
|
+
export {ThemeColorButtonState}
|
|
2589
|
+
|
|
2590
|
+
export {ThemeColorButtonStates}
|
|
2591
|
+
|
|
2592
|
+
export {ThemeColorButtonTokens}
|
|
2593
|
+
|
|
2594
|
+
export {ThemeColorButtonTones}
|
|
2595
|
+
|
|
2596
|
+
export {ThemeColorCard}
|
|
2597
|
+
|
|
2598
|
+
export {ThemeColorCardState}
|
|
2599
|
+
|
|
2600
|
+
export {ThemeColorCardToneKey}
|
|
2601
|
+
|
|
2602
|
+
export {ThemeColorGenericState}
|
|
2603
|
+
|
|
2604
|
+
export {ThemeColorInput}
|
|
2605
|
+
|
|
2606
|
+
export {ThemeColorInputState}
|
|
2607
|
+
|
|
2608
|
+
export {ThemeColorInputStates}
|
|
2609
|
+
|
|
2610
|
+
export {ThemeColorMuted}
|
|
2611
|
+
|
|
2612
|
+
export {ThemeColorMutedTone}
|
|
2613
|
+
|
|
2614
|
+
export {ThemeColorName}
|
|
2668
2615
|
|
|
2669
2616
|
/**
|
|
2670
2617
|
* @public
|
|
2671
|
-
* @deprecated Use `toneContext` instead.
|
|
2672
2618
|
*/
|
|
2673
2619
|
export declare function ThemeColorProvider(props: ThemeColorProviderProps): React.ReactElement
|
|
2674
2620
|
|
|
2675
2621
|
/**
|
|
2676
2622
|
* @public
|
|
2677
|
-
* @deprecated
|
|
2678
2623
|
*/
|
|
2679
2624
|
export declare interface ThemeColorProviderProps {
|
|
2680
2625
|
children?: React.ReactNode
|
|
2681
2626
|
scheme?: ThemeColorSchemeKey
|
|
2682
|
-
tone?:
|
|
2627
|
+
tone?: ThemeColorCardToneKey
|
|
2683
2628
|
}
|
|
2684
2629
|
|
|
2685
|
-
|
|
2686
|
-
* @public
|
|
2687
|
-
*/
|
|
2688
|
-
export declare type ThemeColorSchemeKey = 'dark' | 'light'
|
|
2630
|
+
export {ThemeColorScheme}
|
|
2689
2631
|
|
|
2690
|
-
|
|
2691
|
-
* @public
|
|
2692
|
-
*/
|
|
2693
|
-
export declare interface ThemeColorSchemes {
|
|
2694
|
-
tones: Record<ThemeColorName, ColorTints>
|
|
2695
|
-
}
|
|
2632
|
+
export {ThemeColorSchemeKey}
|
|
2696
2633
|
|
|
2697
|
-
|
|
2698
|
-
* @public
|
|
2699
|
-
*/
|
|
2700
|
-
export declare type ThemeColorSpotKey =
|
|
2701
|
-
| 'gray'
|
|
2702
|
-
| 'blue'
|
|
2703
|
-
| 'purple'
|
|
2704
|
-
| 'magenta'
|
|
2705
|
-
| 'red'
|
|
2706
|
-
| 'orange'
|
|
2707
|
-
| 'yellow'
|
|
2708
|
-
| 'green'
|
|
2709
|
-
| 'cyan'
|
|
2634
|
+
export {ThemeColorSchemes}
|
|
2710
2635
|
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2636
|
+
export {ThemeColorSelectable}
|
|
2637
|
+
|
|
2638
|
+
export {ThemeColorSelectableState}
|
|
2639
|
+
|
|
2640
|
+
export {ThemeColorSelectableStates}
|
|
2641
|
+
|
|
2642
|
+
export {ThemeColorSolid}
|
|
2643
|
+
|
|
2644
|
+
export {ThemeColorSolidTone}
|
|
2645
|
+
|
|
2646
|
+
export {ThemeColorSpot}
|
|
2647
|
+
|
|
2648
|
+
export {ThemeColorSpotKey}
|
|
2649
|
+
|
|
2650
|
+
export {ThemeColorStateKey}
|
|
2651
|
+
|
|
2652
|
+
export {ThemeColorStatesTokens}
|
|
2653
|
+
|
|
2654
|
+
export {ThemeColorStateTokens}
|
|
2655
|
+
|
|
2656
|
+
export {ThemeColorStateToneKey}
|
|
2657
|
+
|
|
2658
|
+
export {ThemeColorSyntax}
|
|
2659
|
+
|
|
2660
|
+
export {ThemeColorTokens}
|
|
2661
|
+
|
|
2662
|
+
export {ThemeColorTokenValue}
|
|
2663
|
+
|
|
2664
|
+
export {ThemeColorToneKey}
|
|
2665
|
+
|
|
2666
|
+
export {ThemeConfig}
|
|
2721
2667
|
|
|
2722
2668
|
/**
|
|
2723
2669
|
* @public
|
|
2724
2670
|
*/
|
|
2725
2671
|
export declare interface ThemeContextValue {
|
|
2672
|
+
/** @deprecated No longer used */
|
|
2726
2673
|
version: 0.0
|
|
2727
2674
|
scheme: ThemeColorSchemeKey
|
|
2728
2675
|
theme: RootTheme
|
|
2729
|
-
tone:
|
|
2676
|
+
tone: ThemeColorCardToneKey
|
|
2730
2677
|
}
|
|
2731
2678
|
|
|
2732
|
-
|
|
2733
|
-
* @public
|
|
2734
|
-
*/
|
|
2735
|
-
export declare interface ThemeFont {
|
|
2736
|
-
family: string
|
|
2737
|
-
weights: ThemeFontWeight
|
|
2738
|
-
sizes: ThemeFontSize[]
|
|
2739
|
-
/** @deprecated No longer supported. */
|
|
2740
|
-
horizontalOffset?: number
|
|
2741
|
-
}
|
|
2679
|
+
export {ThemeFocusRing}
|
|
2742
2680
|
|
|
2743
|
-
|
|
2744
|
-
* @public
|
|
2745
|
-
*/
|
|
2746
|
-
export declare type ThemeFontKey = 'code' | 'heading' | 'label' | 'text'
|
|
2681
|
+
export {ThemeFont}
|
|
2747
2682
|
|
|
2748
|
-
|
|
2749
|
-
* @public
|
|
2750
|
-
*/
|
|
2751
|
-
export declare interface ThemeFonts {
|
|
2752
|
-
code: ThemeFont
|
|
2753
|
-
heading: ThemeFont
|
|
2754
|
-
label: ThemeFont
|
|
2755
|
-
text: ThemeFont
|
|
2756
|
-
}
|
|
2683
|
+
export {ThemeFontKey}
|
|
2757
2684
|
|
|
2758
|
-
|
|
2759
|
-
* @public
|
|
2760
|
-
*/
|
|
2761
|
-
export declare interface ThemeFontSize {
|
|
2762
|
-
ascenderHeight: number
|
|
2763
|
-
descenderHeight: number
|
|
2764
|
-
fontSize: number
|
|
2765
|
-
iconSize: number
|
|
2766
|
-
letterSpacing: number
|
|
2767
|
-
lineHeight: number
|
|
2768
|
-
}
|
|
2685
|
+
export {ThemeFonts}
|
|
2769
2686
|
|
|
2770
|
-
|
|
2771
|
-
* @public
|
|
2772
|
-
*/
|
|
2773
|
-
export declare interface ThemeFontWeight {
|
|
2774
|
-
regular: number
|
|
2775
|
-
medium: number
|
|
2776
|
-
semibold: number
|
|
2777
|
-
bold: number
|
|
2778
|
-
}
|
|
2687
|
+
export {ThemeFontSize}
|
|
2779
2688
|
|
|
2780
|
-
|
|
2781
|
-
* @public
|
|
2782
|
-
*/
|
|
2783
|
-
export declare type ThemeFontWeightKey = 'regular' | 'medium' | 'semibold' | 'bold'
|
|
2689
|
+
export {ThemeFontWeight}
|
|
2784
2690
|
|
|
2785
|
-
|
|
2786
|
-
* @public
|
|
2787
|
-
*/
|
|
2788
|
-
export declare interface ThemeInput {
|
|
2789
|
-
checkbox: {
|
|
2790
|
-
size: number
|
|
2791
|
-
focusRing: FocusRing
|
|
2792
|
-
}
|
|
2793
|
-
radio: {
|
|
2794
|
-
size: number
|
|
2795
|
-
markSize: number
|
|
2796
|
-
focusRing: FocusRing
|
|
2797
|
-
}
|
|
2798
|
-
switch: {
|
|
2799
|
-
width: number
|
|
2800
|
-
height: number
|
|
2801
|
-
padding: number
|
|
2802
|
-
transitionDurationMs: number
|
|
2803
|
-
transitionTimingFunction: string
|
|
2804
|
-
focusRing: FocusRing
|
|
2805
|
-
}
|
|
2806
|
-
border: {
|
|
2807
|
-
width: number
|
|
2808
|
-
}
|
|
2809
|
-
select: {
|
|
2810
|
-
focusRing: FocusRing
|
|
2811
|
-
}
|
|
2812
|
-
text: {
|
|
2813
|
-
focusRing: FocusRing
|
|
2814
|
-
}
|
|
2815
|
-
}
|
|
2691
|
+
export {ThemeFontWeightKey}
|
|
2816
2692
|
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
*/
|
|
2821
|
-
export declare interface ThemeLayer {
|
|
2822
|
-
dialog: {
|
|
2823
|
-
zOffset: number
|
|
2824
|
-
}
|
|
2825
|
-
popover: {
|
|
2826
|
-
zOffset: number
|
|
2827
|
-
}
|
|
2828
|
-
tooltip: {
|
|
2829
|
-
zOffset: number
|
|
2830
|
-
}
|
|
2831
|
-
}
|
|
2693
|
+
export {ThemeInput}
|
|
2694
|
+
|
|
2695
|
+
export {ThemeLayer}
|
|
2832
2696
|
|
|
2833
2697
|
/**
|
|
2834
2698
|
* @internal
|
|
@@ -2849,19 +2713,18 @@ export declare interface ThemeProviderProps {
|
|
|
2849
2713
|
children?: React.ReactNode
|
|
2850
2714
|
scheme?: ThemeColorSchemeKey
|
|
2851
2715
|
theme?: RootTheme
|
|
2852
|
-
tone?:
|
|
2716
|
+
tone?: ThemeColorCardToneKey
|
|
2853
2717
|
}
|
|
2854
2718
|
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
export declare interface ThemeShadow {
|
|
2859
|
-
umbra: BoxShadow
|
|
2860
|
-
penumbra: BoxShadow
|
|
2861
|
-
ambient: BoxShadow
|
|
2862
|
-
}
|
|
2719
|
+
export {ThemeShadow}
|
|
2720
|
+
|
|
2721
|
+
export {ThemeStyles}
|
|
2863
2722
|
|
|
2864
2723
|
/**
|
|
2724
|
+
* The `Toast` component gives feedback to users when an action has taken place.
|
|
2725
|
+
*
|
|
2726
|
+
* Toasts can be closed with a close button, or auto-dismiss after a certain timeout.
|
|
2727
|
+
*
|
|
2865
2728
|
* @public
|
|
2866
2729
|
*/
|
|
2867
2730
|
export declare function Toast(
|
|
@@ -2896,6 +2759,7 @@ export declare interface ToastProps {
|
|
|
2896
2759
|
closable?: boolean
|
|
2897
2760
|
description?: React.ReactNode
|
|
2898
2761
|
onClose?: () => void
|
|
2762
|
+
radius?: number | number[]
|
|
2899
2763
|
title?: React.ReactNode
|
|
2900
2764
|
status?: 'error' | 'warning' | 'success' | 'info'
|
|
2901
2765
|
}
|
|
@@ -2916,11 +2780,27 @@ export declare interface ToastProviderProps {
|
|
|
2916
2780
|
zOffset?: number | number[]
|
|
2917
2781
|
}
|
|
2918
2782
|
|
|
2783
|
+
export {TokenBaseKeyNode}
|
|
2784
|
+
|
|
2785
|
+
export {TokenBlendModeValueNode}
|
|
2786
|
+
|
|
2787
|
+
export {TokenButtonKeyNode}
|
|
2788
|
+
|
|
2789
|
+
export {TokenColorValueNode}
|
|
2790
|
+
|
|
2791
|
+
export {TokenHueValueNode}
|
|
2792
|
+
|
|
2793
|
+
export {TokenKeyNode}
|
|
2794
|
+
|
|
2795
|
+
export {TokenValueNode}
|
|
2796
|
+
|
|
2919
2797
|
/**
|
|
2798
|
+
* Tooltips display information when hovering, focusing or tapping.
|
|
2799
|
+
*
|
|
2920
2800
|
* @public
|
|
2921
2801
|
*/
|
|
2922
2802
|
export declare const Tooltip: ForwardRefExoticComponent<
|
|
2923
|
-
Omit<TooltipProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
2803
|
+
Omit<TooltipProps & Omit<HTMLProps<HTMLDivElement>, 'content' | 'children' | 'as'>, 'ref'> &
|
|
2924
2804
|
RefAttributes<HTMLDivElement>
|
|
2925
2805
|
>
|
|
2926
2806
|
|
|
@@ -2956,11 +2836,13 @@ export declare function TooltipDelayGroupProvider(
|
|
|
2956
2836
|
export declare interface TooltipDelayGroupProviderProps {
|
|
2957
2837
|
children?: React.ReactNode
|
|
2958
2838
|
/**
|
|
2959
|
-
*
|
|
2839
|
+
* Handles the delays to open or close a tooltip inside a group
|
|
2960
2840
|
*
|
|
2961
2841
|
* If only a `number` is passed, it will be used for both opening and closing.
|
|
2962
2842
|
*
|
|
2963
2843
|
* If an object `{open: number; close:number}` is passed, it can be used to set different delays for each action.
|
|
2844
|
+
*
|
|
2845
|
+
* @public
|
|
2964
2846
|
*/
|
|
2965
2847
|
delay: Delay
|
|
2966
2848
|
}
|
|
@@ -2971,6 +2853,7 @@ export declare interface TooltipDelayGroupProviderProps {
|
|
|
2971
2853
|
export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
|
|
2972
2854
|
/** @deprecated Use `fallbackPlacements` instead. */
|
|
2973
2855
|
allowedAutoPlacements?: Placement[]
|
|
2856
|
+
arrow?: boolean
|
|
2974
2857
|
boundaryElement?: HTMLElement | null
|
|
2975
2858
|
children?: React.ReactElement
|
|
2976
2859
|
content?: React.ReactNode
|
|
@@ -2978,17 +2861,29 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
|
|
|
2978
2861
|
fallbackPlacements?: Placement[]
|
|
2979
2862
|
padding?: number | number[]
|
|
2980
2863
|
placement?: Placement
|
|
2864
|
+
/** Whether or not to render the tooltip in a portal element. */
|
|
2981
2865
|
portal?: boolean | string
|
|
2866
|
+
radius?: number | number[]
|
|
2982
2867
|
scheme?: ThemeColorSchemeKey
|
|
2983
2868
|
shadow?: number | number[]
|
|
2984
2869
|
/**
|
|
2985
|
-
*
|
|
2870
|
+
* Adds a delay to open or close the tooltip.
|
|
2986
2871
|
*
|
|
2987
2872
|
* If only a `number` is passed, it will be used for both opening and closing.
|
|
2988
2873
|
*
|
|
2989
2874
|
* If an object `{open: number; close:number}` is passed, it can be used to set different delays for each action.
|
|
2875
|
+
*
|
|
2876
|
+
* @public
|
|
2877
|
+
* @defaultValue 0
|
|
2990
2878
|
*/
|
|
2991
2879
|
delay?: Delay
|
|
2880
|
+
/**
|
|
2881
|
+
* Whether the tooltip should animate in and out.
|
|
2882
|
+
*
|
|
2883
|
+
* @beta
|
|
2884
|
+
* @defaultValue false
|
|
2885
|
+
*/
|
|
2886
|
+
animate?: boolean
|
|
2992
2887
|
}
|
|
2993
2888
|
|
|
2994
2889
|
/**
|
|
@@ -2998,7 +2893,7 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
|
|
|
2998
2893
|
export declare const Tree: MemoExoticComponent<
|
|
2999
2894
|
ForwardRefExoticComponent<
|
|
3000
2895
|
TreeProps &
|
|
3001
|
-
Omit<HTMLProps<HTMLDivElement>, '
|
|
2896
|
+
Omit<HTMLProps<HTMLDivElement>, 'wrap' | 'ref' | 'height' | 'role' | 'as' | 'align'> &
|
|
3002
2897
|
RefAttributes<HTMLDivElement>
|
|
3003
2898
|
>
|
|
3004
2899
|
>
|
|
@@ -3023,7 +2918,7 @@ export declare interface TreeContextValue {
|
|
|
3023
2918
|
* @beta
|
|
3024
2919
|
*/
|
|
3025
2920
|
export declare const TreeItem: NamedExoticComponent<
|
|
3026
|
-
TreeItemProps & Omit<HTMLProps<HTMLLIElement>, 'ref' | '
|
|
2921
|
+
TreeItemProps & Omit<HTMLProps<HTMLLIElement>, 'ref' | 'role' | 'as'>
|
|
3027
2922
|
>
|
|
3028
2923
|
|
|
3029
2924
|
/**
|
|
@@ -3167,6 +3062,11 @@ export declare function useRootTheme(): ThemeContextValue
|
|
|
3167
3062
|
*/
|
|
3168
3063
|
export declare function useTheme(): Theme
|
|
3169
3064
|
|
|
3065
|
+
/**
|
|
3066
|
+
* @public
|
|
3067
|
+
*/
|
|
3068
|
+
export declare function useTheme_v2(): Theme_v2
|
|
3069
|
+
|
|
3170
3070
|
/**
|
|
3171
3071
|
* @public
|
|
3172
3072
|
*/
|
|
@@ -3188,7 +3088,7 @@ export declare function useTree(): TreeContextValue
|
|
|
3188
3088
|
export declare const VirtualList: ForwardRefExoticComponent<
|
|
3189
3089
|
VirtualListProps<any> &
|
|
3190
3090
|
StackProps &
|
|
3191
|
-
Omit<HTMLProps<HTMLDivElement>, 'children' | 'ref' | '
|
|
3091
|
+
Omit<HTMLProps<HTMLDivElement>, 'children' | 'ref' | 'onChange' | 'as'> &
|
|
3192
3092
|
RefAttributes<HTMLDivElement>
|
|
3193
3093
|
>
|
|
3194
3094
|
|