@sanity/ui 2.0.0-alpha.25 → 2.0.0-alpha.27
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 +37 -38
- package/dist/index.d.ts +323 -1003
- package/dist/index.esm.js +599 -3573
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +928 -3723
- package/dist/index.js.map +1 -1
- package/dist/theme.cjs.mjs +48 -0
- package/dist/theme.d.ts +1205 -0
- package/dist/theme.esm.js +4113 -0
- package/dist/theme.esm.js.map +1 -0
- package/dist/theme.js +4162 -0
- package/dist/theme.js.map +1 -0
- package/exports/index.ts +1 -0
- package/exports/theme.ts +1 -0
- package/package.json +37 -14
- package/src/{__workshop__ → core/__workshop__}/constants.ts +1 -3
- 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}/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 +21 -10
- package/src/{components → core/components}/dialog/styles.ts +40 -1
- package/src/{components → core/components}/menu/__workshop__/asComponent.tsx +4 -4
- package/src/{components → core/components}/menu/__workshop__/customMenuItem.tsx +9 -3
- 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/menuButton.tsx +1 -1
- package/src/{components → core/components}/skeleton/textSkeleton.tsx +1 -1
- package/src/{components → core/components}/toast/toast.test.tsx +1 -1
- package/src/{components → core/components}/toast/toast.tsx +1 -1
- package/src/{components → core/components}/tree/__workshop__/tabFromElement.tsx +1 -1
- package/src/{components → core/components}/tree/style.ts +6 -6
- 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 +2 -1
- package/src/{index.ts → core/index.ts} +2 -0
- package/src/{lib → core/lib}/isRecord.ts +1 -1
- package/src/{primitives → core/primitives}/avatar/avatar.tsx +16 -11
- package/src/{primitives → core/primitives}/avatar/styles.ts +8 -7
- package/src/{primitives → core/primitives}/avatar/types.ts +2 -1
- package/src/{primitives → core/primitives}/badge/badge.test.tsx +1 -1
- package/src/{primitives → core/primitives}/badge/badge.tsx +3 -2
- package/src/core/primitives/badge/styles.ts +20 -0
- package/src/{primitives → core/primitives}/badge/types.ts +1 -2
- 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 +1 -1
- package/src/{primitives → core/primitives}/button/styles.ts +19 -9
- 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 +2 -12
- package/src/{primitives → core/primitives}/card/card.tsx +2 -1
- package/src/{primitives → core/primitives}/card/types.ts +1 -1
- 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/styles.ts +4 -3
- package/src/{primitives → core/primitives}/container/styles.ts +1 -1
- package/src/{primitives → core/primitives}/heading/heading.tsx +1 -1
- package/src/{primitives → core/primitives}/inline/styles.ts +1 -1
- package/src/{primitives → core/primitives}/label/label.tsx +1 -1
- 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 +1 -1
- package/src/{primitives → core/primitives}/popover/popover.tsx +6 -7
- package/src/{primitives → core/primitives}/popover/popoverCard.tsx +22 -16
- package/src/{primitives → core/primitives}/radio/styles.ts +1 -1
- package/src/{primitives → core/primitives}/select/styles.ts +2 -2
- package/src/{primitives → core/primitives}/stack/styles.ts +1 -1
- package/src/{primitives → core/primitives}/switch/__workshop__/example.tsx +1 -1
- package/src/{primitives → core/primitives}/switch/styles.ts +2 -2
- package/src/{primitives → core/primitives}/text/__workshop__/colored.tsx +2 -1
- package/src/{primitives → core/primitives}/text/text.tsx +1 -1
- package/src/{primitives → core/primitives}/textArea/__workshop__/plain.tsx +1 -1
- package/src/{primitives → core/primitives}/textArea/textArea.tsx +2 -1
- 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 +2 -1
- package/src/core/primitives/tooltip/conditionalWrapper.tsx +15 -0
- package/src/{primitives → core/primitives}/tooltip/constants.ts +5 -0
- package/src/{primitives → core/primitives}/tooltip/tooltip.test.tsx +3 -3
- package/src/{primitives → core/primitives}/tooltip/tooltip.tsx +77 -39
- package/src/{primitives → core/primitives}/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +3 -1
- package/src/{styles → core/styles}/border/borderStyle.ts +16 -13
- package/src/{styles → core/styles}/box/boxStyle.ts +1 -1
- package/src/{styles → core/styles}/colorVars/colorVarsStyle.ts +3 -3
- package/src/{styles → core/styles}/flex/flexItemStyle.ts +1 -1
- package/src/{styles → core/styles}/flex/flexStyle.ts +1 -1
- package/src/{styles → core/styles}/focusRing/index.ts +2 -2
- 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 +2 -2
- package/src/{styles → core/styles}/font/textAlignStyle.ts +1 -1
- 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 +1 -1
- package/src/{styles → core/styles}/grid/gridStyle.ts +1 -1
- package/src/{styles → core/styles}/helpers.ts +2 -2
- package/src/{styles → core/styles}/input/responsiveInputPaddingStyle.ts +1 -1
- package/src/{styles → core/styles}/input/textInputStyle.ts +2 -2
- package/src/{styles → core/styles}/margin/marginStyle.ts +1 -1
- package/src/{styles → core/styles}/margin/marginsStyle.test.ts +1 -1
- package/src/{styles → core/styles}/padding/paddingStyle.test.ts +1 -1
- package/src/{styles → core/styles}/padding/paddingStyle.ts +1 -1
- package/src/{styles → core/styles}/radius/radiusStyle.ts +1 -1
- package/src/{styles → core/styles}/shadow/shadowStyle.ts +9 -7
- package/src/{styles → core/styles}/types.ts +1 -1
- package/src/core/theme/__workshop__/build/Root.tsx +346 -0
- package/src/core/theme/__workshop__/build/helpers.ts +46 -0
- package/src/core/theme/__workshop__/build/story.tsx +457 -0
- package/src/{theme → core/theme}/__workshop__/canvas.tsx +87 -113
- package/src/{theme → core/theme}/__workshop__/color.tsx +3 -6
- package/src/{theme → core/theme}/__workshop__/index.ts +5 -0
- package/src/{theme → core/theme}/defaults.ts +1 -1
- package/src/core/theme/index.ts +5 -0
- package/src/{theme → core/theme}/theme.test.tsx +2 -2
- package/src/{theme → core/theme}/themeColorProvider.tsx +2 -2
- package/src/{theme → core/theme}/themeProvider.tsx +3 -3
- package/src/core/theme/types.ts +11 -0
- package/src/{theme → core/theme}/useRootTheme.ts +1 -2
- package/src/{theme → core/theme}/useTheme.ts +1 -2
- 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}/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/theme/{lib/theme/color/selectable → build/_deprecated/color/_selectable}/createSelectableTones.ts +7 -4
- package/src/theme/{lib/theme/color/solid → build/_deprecated/color/_solid}/createSolidTones.ts +1 -3
- package/src/theme/{lib/theme → build/_deprecated}/color/button/createButtonModes.ts +6 -4
- package/src/theme/{lib/theme → build/_deprecated}/color/button/createButtonTones.ts +7 -4
- package/src/theme/{lib/theme → build/_deprecated}/color/card/createCardStates.ts +7 -5
- package/src/theme/{lib/theme → build/_deprecated}/color/color.test.ts +1 -1
- package/src/theme/{lib/theme → build/_deprecated}/color/defaults.ts +7 -7
- package/src/theme/{lib/theme → build/_deprecated}/color/factory.ts +25 -21
- package/src/theme/build/_deprecated/color/index.ts +1 -0
- package/src/theme/{lib/theme → build/_deprecated}/color/input/createInputModes.ts +1 -4
- package/src/theme/{lib/theme → build/_deprecated}/color/muted/createMuted.ts +2 -4
- package/src/theme/{lib/theme → build/_deprecated}/color/spot/createSpot.ts +1 -2
- package/src/theme/{_internal/build/colorTheme → build}/buildColorTheme.test.ts +52 -53
- package/src/theme/build/buildColorTheme.ts +537 -0
- package/src/theme/{_internal/build → build}/buildTheme.test.ts +19 -12
- package/src/theme/build/buildTheme.ts +28 -0
- package/src/theme/build/colorToken.ts +37 -0
- package/src/theme/build/defaults/colorPalette.ts +5 -0
- package/src/theme/build/defaults/colorTokens.ts +499 -0
- package/src/theme/build/defaults/config.ts +81 -0
- package/src/theme/build/defaults/fonts.ts +219 -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 +30 -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/utils.ts +19 -0
- package/src/theme/build/merge.ts +23 -0
- package/src/theme/build/mixThemeColor.test.ts +21 -0
- package/src/theme/build/mixThemeColor.ts +53 -0
- package/src/theme/build/renderColorTheme.ts +544 -0
- package/src/theme/build/renderColorValue.ts +70 -0
- package/src/theme/build/resolveColorTokens.ts +352 -0
- package/src/theme/{_internal/config → config}/helpers.ts +2 -2
- package/src/theme/{_internal/config → config}/index.ts +2 -1
- package/src/theme/config/system.ts +83 -0
- package/src/theme/config/tokens/color/types.ts +112 -0
- package/src/theme/{_internal/config/token → config/tokens}/index.ts +2 -0
- package/src/theme/{_internal/config/token → config/tokens}/parseTokenKey.test.ts +0 -8
- package/src/theme/{_internal/config/token → config/tokens}/parseTokenKey.ts +2 -24
- package/src/theme/{_internal/config/token → config/tokens}/parseTokenValue.ts +5 -26
- package/src/theme/config/tokens/types.ts +44 -0
- package/src/theme/config/types.ts +51 -0
- package/src/theme/index.ts +4 -9
- package/src/theme/system/_system.ts +95 -0
- package/src/theme/system/avatar.ts +14 -0
- package/src/theme/system/color/_constants.ts +38 -0
- package/src/theme/{lib/theme/color/muted/types.ts → system/color/_deprecated/muted.ts} +3 -1
- package/src/theme/{lib/theme/color/solid/types.ts → system/color/_deprecated/solid.ts} +3 -1
- package/src/theme/system/color/_deprecated/spot.ts +13 -0
- package/src/theme/{lib/theme/color/_generic/types.ts → system/color/_generic.ts} +5 -1
- package/src/theme/system/color/_helpers.ts +23 -0
- package/src/theme/system/color/_system.ts +100 -0
- package/src/theme/system/color/avatar.ts +13 -0
- package/src/theme/system/color/badge.ts +9 -0
- package/src/theme/{lib/theme/color/button/types.ts → system/color/button.ts} +6 -11
- package/src/theme/system/color/card.ts +18 -0
- package/src/theme/system/color/index.ts +20 -0
- package/src/theme/{lib/theme/color/input/types.ts → system/color/input.ts} +3 -0
- package/src/theme/system/color/kbd.ts +8 -0
- package/src/theme/{lib/theme/color/selectable/types.ts → system/color/selectable.ts} +1 -1
- package/src/theme/{lib/theme → system}/index.ts +2 -1
- package/src/theme/{lib/theme → system}/input.ts +6 -6
- package/src/theme/system/shadow.ts +24 -0
- package/src/theme/{studioTheme/theme.ts → themes/studio/config.ts} +12 -25
- package/src/theme/{studioTheme → themes/studio}/fonts.ts +50 -50
- package/src/theme/themes/studio/index.ts +1 -0
- package/src/theme/themes/studio/studioTheme.test.ts +27 -0
- package/src/theme/themes/studio/studioTheme.ts +8 -0
- package/src/primitives/badge/styles.ts +0 -22
- package/src/primitives/popover/popoverArrow.tsx +0 -76
- package/src/primitives/tooltip/tooltipArrow.tsx +0 -89
- package/src/theme/_internal/__workshop__/build/story.tsx +0 -288
- package/src/theme/_internal/__workshop__/build/theme.ts +0 -3
- package/src/theme/_internal/__workshop__/index.ts +0 -14
- package/src/theme/_internal/build/buildTheme.ts +0 -16
- package/src/theme/_internal/build/colorTheme/buildColorTheme.ts +0 -164
- package/src/theme/_internal/build/colorTheme/renderColorTheme.ts +0 -242
- package/src/theme/_internal/build/colorTheme/resolveColorTokens.ts +0 -121
- package/src/theme/_internal/build/defaults/colorPalette.ts +0 -8
- package/src/theme/_internal/build/defaults/colorTokens.ts +0 -147
- package/src/theme/_internal/build/helpers.ts +0 -65
- package/src/theme/_internal/build/index.ts +0 -1
- package/src/theme/_internal/config/types.ts +0 -137
- package/src/theme/_internal/constants.ts +0 -48
- package/src/theme/_internal/helpers.ts +0 -19
- package/src/theme/_internal/index.ts +0 -5
- package/src/theme/_internal/types.ts +0 -91
- package/src/theme/lib/color-fns/helpers/index.ts +0 -1
- package/src/theme/lib/theme/avatar.ts +0 -14
- 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/base/index.ts +0 -1
- package/src/theme/lib/theme/color/button/index.ts +0 -1
- package/src/theme/lib/theme/color/card/index.ts +0 -1
- package/src/theme/lib/theme/color/card/types.ts +0 -18
- package/src/theme/lib/theme/color/index.ts +0 -14
- package/src/theme/lib/theme/color/input/index.ts +0 -1
- package/src/theme/lib/theme/color/muted/index.ts +0 -1
- package/src/theme/lib/theme/color/selectable/index.ts +0 -1
- package/src/theme/lib/theme/color/solid/index.ts +0 -1
- package/src/theme/lib/theme/color/spot/index.ts +0 -1
- package/src/theme/lib/theme/color/spot/types.ts +0 -28
- package/src/theme/lib/theme/color/syntax/index.ts +0 -1
- package/src/theme/lib/theme/color/types.ts +0 -72
- 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 -666
- package/src/theme/studioTheme/helpers.ts +0 -31
- package/src/theme/studioTheme/index.ts +0 -1
- package/src/theme/studioTheme/tints.ts +0 -312
- package/src/theme/types.ts +0 -47
- package/src/types/badge.ts +0 -9
- package/src/types/button.ts +0 -19
- 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/autocomplete.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/constants.ts +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/hotkeys.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__/closableMenuButton.tsx +0 -0
- /package/src/{components → core/components}/menu/__workshop__/constrainedInBoundary.tsx +0 -0
- /package/src/{components → core/components}/menu/__workshop__/disableFocusOnClose.tsx +0 -0
- /package/src/{components → core/components}/menu/__workshop__/groups.tsx +0 -0
- /package/src/{components → core/components}/menu/__workshop__/index.ts +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/menu.tsx +0 -0
- /package/src/{components → core/components}/menu/menuContext.ts +0 -0
- /package/src/{components → core/components}/menu/menuDivider.ts +0 -0
- /package/src/{components → core/components}/menu/menuGroup.tsx +0 -0
- /package/src/{components → core/components}/menu/menuItem.tsx +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}/skeleton/styles.ts +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/tab.tsx +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}/useMediaIndex/useMediaIndex.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}/_selectable/style.ts +0 -0
- /package/src/{primitives → core/primitives}/avatar/__workshop__/.eslintrc +0 -0
- /package/src/{primitives → core/primitives}/avatar/__workshop__/asButton.tsx +0 -0
- /package/src/{primitives → core/primitives}/avatar/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/avatar/__workshop__/stack.tsx +0 -0
- /package/src/{primitives → core/primitives}/avatar/avatarCounter.tsx +0 -0
- /package/src/{primitives → core/primitives}/avatar/avatarStack.tsx +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/__workshop__/props.tsx +0 -0
- /package/src/{primitives → core/primitives}/badge/__workshop__/tones.tsx +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/__workshop__/responsive.tsx +0 -0
- /package/src/{primitives → core/primitives}/box/box.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__/sanityUploadButton.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}/card/styles.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/checkbox.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/code.tsx +0 -0
- /package/src/{primitives → core/primitives}/code/index.ts +0 -0
- /package/src/{primitives → core/primitives}/code/styles.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/container.tsx +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/flex.tsx +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/grid.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/styles.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/inline.tsx +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}/kbd/kbd.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}/label/styles.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}/popover/types.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}/radio/radio.tsx +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}/select/select.tsx +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}/spinner/spinner.tsx +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}/stack/stack.tsx +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/__workshop__/props.tsx +0 -0
- /package/src/{primitives → core/primitives}/switch/index.ts +0 -0
- /package/src/{primitives → core/primitives}/switch/switch.tsx +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}/text/styles.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/__workshop__/customPortal.tsx +0 -0
- /package/src/{primitives → core/primitives}/tooltip/__workshop__/index.ts +0 -0
- /package/src/{primitives → core/primitives}/tooltip/__workshop__/overflowingBoundary.tsx +0 -0
- /package/src/{primitives → core/primitives}/tooltip/__workshop__/props.tsx +0 -0
- /package/src/{primitives → core/primitives}/tooltip/__workshop__/resizableBoundary.tsx +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/{primitives → core/primitives}/types.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}/colorVars/index.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/{theme → core/theme}/themeContext.ts +0 -0
- /package/src/{types → core/types}/avatar.ts +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__/customMedia.tsx +0 -0
- /package/src/{utils → core/utils}/elementQuery/__workshop__/index.ts +0 -0
- /package/src/{utils → core/utils}/elementQuery/elementQuery.tsx +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/{utils → core/utils}/virtualList/virtualList.tsx +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/color/_generic → config/tokens/color}/index.ts +0 -0
- /package/src/theme/{_internal/config/token → config/tokens}/parseTokenValue.test.ts +0 -0
- /package/src/theme/{lib/theme/color/base/types.ts → system/color/base.ts} +0 -0
- /package/src/theme/{lib/theme/color/syntax/types.ts → system/color/syntax.ts} +0 -0
- /package/src/theme/{lib/theme → system}/fonts.ts +0 -0
- /package/src/theme/{lib/theme → system}/layer.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_BASE_KEYS} from '@sanity/ui/theme'
|
|
10
|
+
import {COLOR_CONFIG_BASE_TONES} from '@sanity/ui/theme'
|
|
11
|
+
import {COLOR_CONFIG_BLEND_KEYS} 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 {ColorConfigBaseKey} from '@sanity/ui/theme'
|
|
16
|
+
import {ColorConfigBaseTone} from '@sanity/ui/theme'
|
|
17
|
+
import {ColorConfigBlendKey} 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,81 @@ 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 {studioTheme} from '@sanity/ui/theme'
|
|
78
|
+
import {Theme} from '@sanity/ui/theme'
|
|
79
|
+
import {THEME_COLOR_BASE_TONES} from '@sanity/ui/theme'
|
|
80
|
+
import {THEME_COLOR_BLEND_MODES} from '@sanity/ui/theme'
|
|
81
|
+
import {THEME_COLOR_BUTTON_MODES} 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 {ThemeAvatar} from '@sanity/ui/theme'
|
|
85
|
+
import {ThemeColor} from '@sanity/ui/theme'
|
|
86
|
+
import {ThemeColorAvatarColorKey} from '@sanity/ui/theme'
|
|
87
|
+
import {ThemeColorBase} from '@sanity/ui/theme'
|
|
88
|
+
import {ThemeColorBaseTokens} from '@sanity/ui/theme'
|
|
89
|
+
import {ThemeColorBaseToneKey} 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 {ThemeColorGenericState} from '@sanity/ui/theme'
|
|
101
|
+
import {ThemeColorInput} from '@sanity/ui/theme'
|
|
102
|
+
import {ThemeColorInputState} from '@sanity/ui/theme'
|
|
103
|
+
import {ThemeColorInputStates} from '@sanity/ui/theme'
|
|
104
|
+
import {ThemeColorMuted} from '@sanity/ui/theme'
|
|
105
|
+
import {ThemeColorMutedTone} from '@sanity/ui/theme'
|
|
106
|
+
import {ThemeColorName} from '@sanity/ui/theme'
|
|
107
|
+
import {ThemeColorScheme} from '@sanity/ui/theme'
|
|
108
|
+
import {ThemeColorSchemeKey} from '@sanity/ui/theme'
|
|
109
|
+
import {ThemeColorSchemes} from '@sanity/ui/theme'
|
|
110
|
+
import {ThemeColorSelectable} from '@sanity/ui/theme'
|
|
111
|
+
import {ThemeColorSelectableState} from '@sanity/ui/theme'
|
|
112
|
+
import {ThemeColorSelectableStates} from '@sanity/ui/theme'
|
|
113
|
+
import {ThemeColorSolid} from '@sanity/ui/theme'
|
|
114
|
+
import {ThemeColorSolidTone} from '@sanity/ui/theme'
|
|
115
|
+
import {ThemeColorSpot} from '@sanity/ui/theme'
|
|
116
|
+
import {ThemeColorSpotKey} from '@sanity/ui/theme'
|
|
117
|
+
import {ThemeColorStateKey} from '@sanity/ui/theme'
|
|
118
|
+
import {ThemeColorStatesTokens} from '@sanity/ui/theme'
|
|
119
|
+
import {ThemeColorStateTokens} from '@sanity/ui/theme'
|
|
120
|
+
import {ThemeColorStateToneKey} from '@sanity/ui/theme'
|
|
121
|
+
import {ThemeColorSyntax} from '@sanity/ui/theme'
|
|
122
|
+
import {ThemeColorTokens} from '@sanity/ui/theme'
|
|
123
|
+
import {ThemeColorTokenValue} from '@sanity/ui/theme'
|
|
124
|
+
import {ThemeColorToneKey} from '@sanity/ui/theme'
|
|
125
|
+
import {ThemeConfig} from '@sanity/ui/theme'
|
|
126
|
+
import {ThemeFocusRing} from '@sanity/ui/theme'
|
|
127
|
+
import {ThemeFont} from '@sanity/ui/theme'
|
|
128
|
+
import {ThemeFontKey} from '@sanity/ui/theme'
|
|
129
|
+
import {ThemeFonts} from '@sanity/ui/theme'
|
|
130
|
+
import {ThemeFontSize} from '@sanity/ui/theme'
|
|
131
|
+
import {ThemeFontWeight} from '@sanity/ui/theme'
|
|
132
|
+
import {ThemeFontWeightKey} from '@sanity/ui/theme'
|
|
133
|
+
import {ThemeInput} from '@sanity/ui/theme'
|
|
134
|
+
import {ThemeLayer} from '@sanity/ui/theme'
|
|
135
|
+
import {ThemeShadow} from '@sanity/ui/theme'
|
|
136
|
+
import {ThemeStyles} from '@sanity/ui/theme'
|
|
137
|
+
import {TokenBaseKeyNode} from '@sanity/ui/theme'
|
|
138
|
+
import {TokenBlendModeValueNode} from '@sanity/ui/theme'
|
|
139
|
+
import {TokenButtonKeyNode} from '@sanity/ui/theme'
|
|
140
|
+
import {TokenColorValueNode} from '@sanity/ui/theme'
|
|
141
|
+
import {TokenHueValueNode} from '@sanity/ui/theme'
|
|
142
|
+
import {TokenKeyNode} from '@sanity/ui/theme'
|
|
143
|
+
import {TokenValueNode} from '@sanity/ui/theme'
|
|
33
144
|
import {TouchEventHandler} from 'react'
|
|
34
145
|
import {TransitionEventHandler} from 'react'
|
|
35
146
|
import {UIEventHandler} from 'react'
|
|
@@ -38,6 +149,19 @@ import {WheelEventHandler} from 'react'
|
|
|
38
149
|
/** @beta */
|
|
39
150
|
export declare type ArrayPropPrimitive = string | number | boolean | undefined | null
|
|
40
151
|
|
|
152
|
+
/** @internal */
|
|
153
|
+
export declare const Arrow: ForwardRefExoticComponent<
|
|
154
|
+
Omit<
|
|
155
|
+
{
|
|
156
|
+
width: number
|
|
157
|
+
height: number
|
|
158
|
+
radius?: number | undefined
|
|
159
|
+
} & Omit<HTMLProps<HTMLDivElement>, 'width' | 'height'>,
|
|
160
|
+
'ref'
|
|
161
|
+
> &
|
|
162
|
+
RefAttributes<HTMLDivElement>
|
|
163
|
+
>
|
|
164
|
+
|
|
41
165
|
/**
|
|
42
166
|
* @internal
|
|
43
167
|
*/
|
|
@@ -53,7 +177,6 @@ export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
|
|
|
53
177
|
props: AutocompleteProps<Option> &
|
|
54
178
|
Omit<
|
|
55
179
|
HTMLProps<HTMLInputElement>,
|
|
56
|
-
| 'type'
|
|
57
180
|
| 'value'
|
|
58
181
|
| 'ref'
|
|
59
182
|
| 'id'
|
|
@@ -71,6 +194,7 @@ export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
|
|
|
71
194
|
| 'onSelect'
|
|
72
195
|
| 'as'
|
|
73
196
|
| 'autoComplete'
|
|
197
|
+
| 'type'
|
|
74
198
|
> & {
|
|
75
199
|
ref?: Ref<HTMLInputElement> | undefined
|
|
76
200
|
},
|
|
@@ -264,7 +388,7 @@ export declare interface AvatarProps {
|
|
|
264
388
|
animateArrowFrom?: AvatarPosition
|
|
265
389
|
arrowPosition?: AvatarPosition
|
|
266
390
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
267
|
-
color?:
|
|
391
|
+
color?: ThemeColorAvatarColorKey
|
|
268
392
|
initials?: string
|
|
269
393
|
onImageLoadError?: (event: Error) => void
|
|
270
394
|
size?: AvatarSize | AvatarSize[]
|
|
@@ -281,7 +405,7 @@ export declare interface AvatarProps {
|
|
|
281
405
|
* @internal
|
|
282
406
|
*/
|
|
283
407
|
export declare interface AvatarRootStyleProps {
|
|
284
|
-
$color:
|
|
408
|
+
$color: ThemeColorSpotKey
|
|
285
409
|
}
|
|
286
410
|
|
|
287
411
|
/**
|
|
@@ -323,6 +447,7 @@ export declare const Badge: ForwardRefExoticComponent<
|
|
|
323
447
|
|
|
324
448
|
/**
|
|
325
449
|
* @public
|
|
450
|
+
* @deprecated No longer used
|
|
326
451
|
*/
|
|
327
452
|
export declare type BadgeMode = 'default' | 'outline'
|
|
328
453
|
|
|
@@ -332,6 +457,7 @@ export declare type BadgeMode = 'default' | 'outline'
|
|
|
332
457
|
export declare interface BadgeProps extends BoxProps, ResponsiveRadiusProps {
|
|
333
458
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
334
459
|
fontSize?: number | number[]
|
|
460
|
+
/** @deprecated No longer used. */
|
|
335
461
|
mode?: BadgeMode
|
|
336
462
|
tone?: BadgeTone
|
|
337
463
|
}
|
|
@@ -339,7 +465,7 @@ export declare interface BadgeProps extends BoxProps, ResponsiveRadiusProps {
|
|
|
339
465
|
/**
|
|
340
466
|
* @public
|
|
341
467
|
*/
|
|
342
|
-
export declare type BadgeTone =
|
|
468
|
+
export declare type BadgeTone = ThemeColorStateToneKey
|
|
343
469
|
|
|
344
470
|
/**
|
|
345
471
|
* @public
|
|
@@ -348,57 +474,7 @@ export declare interface BaseAutocompleteOption {
|
|
|
348
474
|
value: string
|
|
349
475
|
}
|
|
350
476
|
|
|
351
|
-
export
|
|
352
|
-
_blend?: ColorBlendModeTokenValue
|
|
353
|
-
_hue?: ColorHueValue
|
|
354
|
-
bg?: ColorTokenValue
|
|
355
|
-
fg?: ColorTokenValue
|
|
356
|
-
border?: ColorTokenValue
|
|
357
|
-
focusRing?: ColorTokenValue
|
|
358
|
-
shadow?: {
|
|
359
|
-
outline?: ColorTokenValue
|
|
360
|
-
umbra?: ColorTokenValue
|
|
361
|
-
penumbra?: ColorTokenValue
|
|
362
|
-
ambient?: ColorTokenValue
|
|
363
|
-
}
|
|
364
|
-
skeleton?: {
|
|
365
|
-
from?: ColorTokenValue
|
|
366
|
-
to?: ColorTokenValue
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* @public
|
|
372
|
-
*/
|
|
373
|
-
export declare interface BaseTheme<Styles extends {} = {}> {
|
|
374
|
-
avatar: ThemeAvatar
|
|
375
|
-
button: {
|
|
376
|
-
textWeight: ThemeFontWeightKey
|
|
377
|
-
focusRing: FocusRing
|
|
378
|
-
}
|
|
379
|
-
card: {
|
|
380
|
-
focusRing: FocusRing
|
|
381
|
-
}
|
|
382
|
-
color: ThemeColorSchemes
|
|
383
|
-
container: number[]
|
|
384
|
-
/** @deprecated Use component-specific `focusRing` values instead */
|
|
385
|
-
focusRing: {
|
|
386
|
-
offset: number
|
|
387
|
-
width: number
|
|
388
|
-
}
|
|
389
|
-
fonts: ThemeFonts
|
|
390
|
-
input: ThemeInput
|
|
391
|
-
/**
|
|
392
|
-
* THIS API MAY BE UNSTABLE. DO NOT USE IN PRODUCTION.
|
|
393
|
-
* @beta
|
|
394
|
-
*/
|
|
395
|
-
layer?: ThemeLayer
|
|
396
|
-
media: number[]
|
|
397
|
-
radius: number[]
|
|
398
|
-
shadows: Array<ThemeShadow | null>
|
|
399
|
-
space: number[]
|
|
400
|
-
styles?: Styles
|
|
401
|
-
}
|
|
477
|
+
export {BaseTheme}
|
|
402
478
|
|
|
403
479
|
/**
|
|
404
480
|
* @public
|
|
@@ -430,7 +506,7 @@ export declare interface BoundaryElementProviderProps {
|
|
|
430
506
|
* @public
|
|
431
507
|
*/
|
|
432
508
|
export declare const Box: ForwardRefExoticComponent<
|
|
433
|
-
Omit<BoxProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
509
|
+
Omit<BoxProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height'>, 'ref'> &
|
|
434
510
|
RefAttributes<HTMLDivElement>
|
|
435
511
|
>
|
|
436
512
|
|
|
@@ -462,11 +538,7 @@ export declare interface BoxProps
|
|
|
462
538
|
forwardedAs?: React.ElementType | keyof JSX.IntrinsicElements
|
|
463
539
|
}
|
|
464
540
|
|
|
465
|
-
|
|
466
|
-
* TODO: Rename to `ThemeBoxShadow`
|
|
467
|
-
* @public
|
|
468
|
-
*/
|
|
469
|
-
export declare type BoxShadow = [number, number, number, number]
|
|
541
|
+
export {BoxShadow}
|
|
470
542
|
|
|
471
543
|
/**
|
|
472
544
|
* @public
|
|
@@ -478,7 +550,7 @@ export declare type BoxSizing = 'content' | 'border'
|
|
|
478
550
|
*/
|
|
479
551
|
export declare const Breadcrumbs: ForwardRefExoticComponent<
|
|
480
552
|
BreadcrumbsProps &
|
|
481
|
-
Omit<HTMLProps<HTMLOListElement>, '
|
|
553
|
+
Omit<HTMLProps<HTMLOListElement>, 'ref' | 'as' | 'type'> &
|
|
482
554
|
RefAttributes<HTMLOListElement>
|
|
483
555
|
>
|
|
484
556
|
|
|
@@ -491,8 +563,7 @@ export declare interface BreadcrumbsProps {
|
|
|
491
563
|
space?: number | number[]
|
|
492
564
|
}
|
|
493
565
|
|
|
494
|
-
|
|
495
|
-
export declare function buildTheme(config?: ThemeConfig): TMP_Theme
|
|
566
|
+
export {buildTheme}
|
|
496
567
|
|
|
497
568
|
/**
|
|
498
569
|
* @public
|
|
@@ -502,17 +573,10 @@ export declare const Button: ForwardRefExoticComponent<
|
|
|
502
573
|
RefAttributes<HTMLButtonElement>
|
|
503
574
|
>
|
|
504
575
|
|
|
505
|
-
export declare interface ButtonColorTokens
|
|
506
|
-
extends Partial<Record<ColorButtonMode, ButtonModeColorTokens>> {
|
|
507
|
-
_hue?: ColorHueValue
|
|
508
|
-
}
|
|
509
|
-
|
|
510
576
|
/**
|
|
511
577
|
* @public
|
|
512
578
|
*/
|
|
513
|
-
export declare type ButtonMode =
|
|
514
|
-
|
|
515
|
-
export declare type ButtonModeColorTokens = Partial<Record<'*' | ColorState, StateColorTokens>>
|
|
579
|
+
export declare type ButtonMode = ThemeColorButtonModeKey
|
|
516
580
|
|
|
517
581
|
/**
|
|
518
582
|
* @public
|
|
@@ -546,7 +610,7 @@ export declare type ButtonTextAlign = 'left' | 'right' | 'center'
|
|
|
546
610
|
/**
|
|
547
611
|
* @public
|
|
548
612
|
*/
|
|
549
|
-
export declare type ButtonTone =
|
|
613
|
+
export declare type ButtonTone = ThemeColorStateToneKey
|
|
550
614
|
|
|
551
615
|
/**
|
|
552
616
|
* @public
|
|
@@ -560,7 +624,7 @@ export declare type ButtonWidth = 'fill'
|
|
|
560
624
|
* @public
|
|
561
625
|
*/
|
|
562
626
|
export declare const Card: ForwardRefExoticComponent<
|
|
563
|
-
Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
627
|
+
Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height'>, 'ref'> &
|
|
564
628
|
RefAttributes<HTMLDivElement>
|
|
565
629
|
>
|
|
566
630
|
|
|
@@ -599,7 +663,7 @@ export declare interface CardStyleProps {
|
|
|
599
663
|
/**
|
|
600
664
|
* @public
|
|
601
665
|
*/
|
|
602
|
-
export declare type CardTone =
|
|
666
|
+
export declare type CardTone = ThemeColorBaseToneKey | 'inherit'
|
|
603
667
|
|
|
604
668
|
/**
|
|
605
669
|
* Checkboxes allow the user to select one or more items from a set.
|
|
@@ -607,7 +671,7 @@ export declare type CardTone = ThemeColorToneKey | 'inherit'
|
|
|
607
671
|
* @public
|
|
608
672
|
*/
|
|
609
673
|
export declare const Checkbox: ForwardRefExoticComponent<
|
|
610
|
-
Omit<Omit<HTMLProps<HTMLInputElement>, '
|
|
674
|
+
Omit<Omit<HTMLProps<HTMLInputElement>, 'as' | 'type'> & CheckboxProps, 'ref'> &
|
|
611
675
|
RefAttributes<HTMLInputElement>
|
|
612
676
|
>
|
|
613
677
|
|
|
@@ -648,7 +712,7 @@ export declare interface CodeProps {
|
|
|
648
712
|
*/
|
|
649
713
|
export declare const CodeSkeleton: ForwardRefExoticComponent<
|
|
650
714
|
Omit<
|
|
651
|
-
CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
715
|
+
CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'children' | 'as' | 'height'>,
|
|
652
716
|
'ref'
|
|
653
717
|
> &
|
|
654
718
|
RefAttributes<HTMLDivElement>
|
|
@@ -662,164 +726,31 @@ export declare interface CodeSkeletonProps extends SkeletonProps {
|
|
|
662
726
|
size?: number | number[]
|
|
663
727
|
}
|
|
664
728
|
|
|
665
|
-
export
|
|
666
|
-
'transparent',
|
|
667
|
-
'default',
|
|
668
|
-
'primary',
|
|
669
|
-
'positive',
|
|
670
|
-
'caution',
|
|
671
|
-
'critical',
|
|
672
|
-
]
|
|
673
|
-
|
|
674
|
-
export declare const COLOR_BLEND_MODES: readonly ['multiply', 'screen']
|
|
675
|
-
|
|
676
|
-
export declare const COLOR_BUTTON_MODES: readonly ['default', 'ghost', 'bleed']
|
|
677
|
-
|
|
678
|
-
export declare const COLOR_CONFIG_BASE_KEYS: readonly [
|
|
679
|
-
'_hue',
|
|
680
|
-
'bg',
|
|
681
|
-
'fg',
|
|
682
|
-
'border',
|
|
683
|
-
'focusRing',
|
|
684
|
-
'muted/fg',
|
|
685
|
-
'link/fg',
|
|
686
|
-
'code/bg',
|
|
687
|
-
'code/fg',
|
|
688
|
-
'shadow/outline',
|
|
689
|
-
'shadow/umbra',
|
|
690
|
-
'shadow/penumbra',
|
|
691
|
-
'shadow/ambient',
|
|
692
|
-
'skeleton/from',
|
|
693
|
-
'skeleton/to',
|
|
694
|
-
]
|
|
695
|
-
|
|
696
|
-
export declare const COLOR_CONFIG_BASE_TONES: readonly [
|
|
697
|
-
'*',
|
|
698
|
-
'transparent',
|
|
699
|
-
'default',
|
|
700
|
-
'primary',
|
|
701
|
-
'positive',
|
|
702
|
-
'caution',
|
|
703
|
-
'critical',
|
|
704
|
-
]
|
|
705
|
-
|
|
706
|
-
export declare const COLOR_CONFIG_BLEND_KEYS: readonly ['_blend']
|
|
707
|
-
|
|
708
|
-
export declare const COLOR_CONFIG_STATE_KEYS: readonly [
|
|
709
|
-
'_hue',
|
|
710
|
-
'bg',
|
|
711
|
-
'fg',
|
|
712
|
-
'border',
|
|
713
|
-
'focusRing',
|
|
714
|
-
'muted/fg',
|
|
715
|
-
'link/fg',
|
|
716
|
-
'code/bg',
|
|
717
|
-
'code/fg',
|
|
718
|
-
'skeleton/from',
|
|
719
|
-
'skeleton/to',
|
|
720
|
-
]
|
|
721
|
-
|
|
722
|
-
export declare const COLOR_CONFIG_STATE_TONES: readonly [
|
|
723
|
-
'*',
|
|
724
|
-
'default',
|
|
725
|
-
'primary',
|
|
726
|
-
'positive',
|
|
727
|
-
'caution',
|
|
728
|
-
'critical',
|
|
729
|
-
]
|
|
730
|
-
|
|
731
|
-
export declare const COLOR_HUES: readonly [
|
|
732
|
-
'gray',
|
|
733
|
-
'cyan',
|
|
734
|
-
'blue',
|
|
735
|
-
'purple',
|
|
736
|
-
'magenta',
|
|
737
|
-
'red',
|
|
738
|
-
'orange',
|
|
739
|
-
'yellow',
|
|
740
|
-
'green',
|
|
741
|
-
]
|
|
742
|
-
|
|
743
|
-
export declare const COLOR_STATE_TONES: readonly [
|
|
744
|
-
'default',
|
|
745
|
-
'primary',
|
|
746
|
-
'positive',
|
|
747
|
-
'caution',
|
|
748
|
-
'critical',
|
|
749
|
-
]
|
|
750
|
-
|
|
751
|
-
export declare const COLOR_STATES: readonly [
|
|
752
|
-
'enabled',
|
|
753
|
-
'hovered',
|
|
754
|
-
'pressed',
|
|
755
|
-
'selected',
|
|
756
|
-
'disabled',
|
|
757
|
-
]
|
|
758
|
-
|
|
759
|
-
export declare const COLOR_TINTS: readonly [
|
|
760
|
-
'50',
|
|
761
|
-
'100',
|
|
762
|
-
'200',
|
|
763
|
-
'300',
|
|
764
|
-
'400',
|
|
765
|
-
'500',
|
|
766
|
-
'600',
|
|
767
|
-
'700',
|
|
768
|
-
'800',
|
|
769
|
-
'900',
|
|
770
|
-
'950',
|
|
771
|
-
]
|
|
772
|
-
|
|
773
|
-
export declare type ColorBaseTone = (typeof COLOR_BASE_TONES)[number]
|
|
774
|
-
|
|
775
|
-
export declare type ColorBlendModeTokenValue = [ColorBlendModeValue, ColorBlendModeValue]
|
|
776
|
-
|
|
777
|
-
export declare type ColorBlendModeValue = (typeof COLOR_BLEND_MODES)[number]
|
|
778
|
-
|
|
779
|
-
export declare type ColorButtonMode = (typeof COLOR_BUTTON_MODES)[number]
|
|
780
|
-
|
|
781
|
-
export declare type ColorConfigBaseKey = (typeof COLOR_CONFIG_BASE_KEYS)[number]
|
|
782
|
-
|
|
783
|
-
export declare type ColorConfigBaseTone = (typeof COLOR_CONFIG_BASE_TONES)[number]
|
|
784
|
-
|
|
785
|
-
export declare type ColorConfigBlendKey = (typeof COLOR_CONFIG_BLEND_KEYS)[number]
|
|
786
|
-
|
|
787
|
-
export declare type ColorConfigOpacityValue = `0` | `0.${number}` | `1`
|
|
788
|
-
|
|
789
|
-
export declare type ColorConfigStateKey = (typeof COLOR_CONFIG_STATE_KEYS)[number]
|
|
790
|
-
|
|
791
|
-
export declare type ColorConfigStateTone = (typeof COLOR_CONFIG_STATE_TONES)[number]
|
|
792
|
-
|
|
793
|
-
export declare type ColorConfigValue =
|
|
794
|
-
| `black`
|
|
795
|
-
| `white`
|
|
796
|
-
| `black/${ColorConfigOpacityValue}`
|
|
797
|
-
| `white/${ColorConfigOpacityValue}`
|
|
798
|
-
| `${ColorHueValue}`
|
|
799
|
-
| `${ColorHueValue}/${ColorTintValue}`
|
|
800
|
-
| `${ColorHueValue}/${ColorTintValue}/${ColorConfigOpacityValue}`
|
|
801
|
-
| `${ColorTintValue}`
|
|
802
|
-
| `${ColorTintValue}/${ColorConfigOpacityValue}`
|
|
803
|
-
| ColorBlendModeValue
|
|
804
|
-
|
|
805
|
-
export declare type ColorHueValue = (typeof COLOR_HUES)[number]
|
|
806
|
-
|
|
807
|
-
export declare type ColorState = (typeof COLOR_STATES)[number]
|
|
808
|
-
|
|
809
|
-
export declare type ColorStateTone = (typeof COLOR_STATE_TONES)[number]
|
|
810
|
-
|
|
811
|
-
export declare interface ColorThemeConfig {
|
|
812
|
-
palette?: TMP_ColorPalette
|
|
813
|
-
tokens?: ColorTokens
|
|
814
|
-
}
|
|
729
|
+
export {COLOR_CONFIG_BASE_KEYS}
|
|
815
730
|
|
|
816
|
-
export
|
|
731
|
+
export {COLOR_CONFIG_BASE_TONES}
|
|
817
732
|
|
|
818
|
-
export
|
|
819
|
-
|
|
820
|
-
}
|
|
733
|
+
export {COLOR_CONFIG_BLEND_KEYS}
|
|
734
|
+
|
|
735
|
+
export {COLOR_CONFIG_STATE_KEYS}
|
|
821
736
|
|
|
822
|
-
export
|
|
737
|
+
export {COLOR_CONFIG_STATE_TONES}
|
|
738
|
+
|
|
739
|
+
export {ColorBlendModeTokenValue}
|
|
740
|
+
|
|
741
|
+
export {ColorConfigBaseKey}
|
|
742
|
+
|
|
743
|
+
export {ColorConfigBaseTone}
|
|
744
|
+
|
|
745
|
+
export {ColorConfigBlendKey}
|
|
746
|
+
|
|
747
|
+
export {ColorConfigOpacityValue}
|
|
748
|
+
|
|
749
|
+
export {ColorConfigStateKey}
|
|
750
|
+
|
|
751
|
+
export {ColorConfigStateTone}
|
|
752
|
+
|
|
753
|
+
export {ColorConfigValue}
|
|
823
754
|
|
|
824
755
|
/**
|
|
825
756
|
* The `Container` component wraps content layout in a defined set of widths.
|
|
@@ -827,7 +758,7 @@ export declare type ColorTokenValue = [ColorConfigValue, ColorConfigValue]
|
|
|
827
758
|
* @public
|
|
828
759
|
*/
|
|
829
760
|
export declare const Container: ForwardRefExoticComponent<
|
|
830
|
-
Omit<ContainerProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
761
|
+
Omit<ContainerProps & Omit<HTMLProps<HTMLDivElement>, 'width' | 'as' | 'height'>, 'ref'> &
|
|
831
762
|
RefAttributes<HTMLDivElement>
|
|
832
763
|
>
|
|
833
764
|
|
|
@@ -841,15 +772,9 @@ export declare interface ContainerProps extends BoxProps, ResponsiveWidthProps {
|
|
|
841
772
|
*/
|
|
842
773
|
export declare function containsOrEqualsElement(element: HTMLElement, node: Node): boolean
|
|
843
774
|
|
|
844
|
-
|
|
845
|
-
* @public
|
|
846
|
-
*/
|
|
847
|
-
export declare function createColorTheme(
|
|
848
|
-
partialOpts?: PartialThemeColorBuilderOpts,
|
|
849
|
-
): ThemeColorSchemes
|
|
775
|
+
export {createColorTheme}
|
|
850
776
|
|
|
851
|
-
|
|
852
|
-
export declare type CSSObject = StyledObject<any>
|
|
777
|
+
export {CSSObject}
|
|
853
778
|
|
|
854
779
|
/**
|
|
855
780
|
* @public
|
|
@@ -917,6 +842,13 @@ export declare interface DialogProps extends ResponsivePaddingProps, ResponsiveW
|
|
|
917
842
|
position?: DialogPosition | DialogPosition[]
|
|
918
843
|
scheme?: ThemeColorSchemeKey
|
|
919
844
|
zOffset?: number | number[]
|
|
845
|
+
/**
|
|
846
|
+
* Whether the dialog should animate in on mount.
|
|
847
|
+
*
|
|
848
|
+
* @beta
|
|
849
|
+
* @defaultValue false
|
|
850
|
+
*/
|
|
851
|
+
animate?: boolean
|
|
920
852
|
}
|
|
921
853
|
|
|
922
854
|
/**
|
|
@@ -1082,14 +1014,6 @@ export declare function focusFirstDescendant(element: HTMLElement): boolean
|
|
|
1082
1014
|
*/
|
|
1083
1015
|
export declare function focusLastDescendant(element: HTMLElement): boolean
|
|
1084
1016
|
|
|
1085
|
-
/**
|
|
1086
|
-
* @public
|
|
1087
|
-
*/
|
|
1088
|
-
export declare interface FocusRing {
|
|
1089
|
-
offset: number
|
|
1090
|
-
width: number
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
1017
|
/**
|
|
1094
1018
|
* @internal
|
|
1095
1019
|
*/
|
|
@@ -1117,7 +1041,7 @@ export declare function _getResponsiveSpace(
|
|
|
1117
1041
|
* @public
|
|
1118
1042
|
*/
|
|
1119
1043
|
export declare const Grid: ForwardRefExoticComponent<
|
|
1120
|
-
Omit<GridProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
1044
|
+
Omit<GridProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height' | 'rows'>, 'ref'> &
|
|
1121
1045
|
RefAttributes<HTMLDivElement>
|
|
1122
1046
|
>
|
|
1123
1047
|
|
|
@@ -1210,7 +1134,7 @@ export declare interface HeadingProps {
|
|
|
1210
1134
|
*/
|
|
1211
1135
|
export declare const HeadingSkeleton: ForwardRefExoticComponent<
|
|
1212
1136
|
Omit<
|
|
1213
|
-
HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
1137
|
+
HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'children' | 'as' | 'height'>,
|
|
1214
1138
|
'ref'
|
|
1215
1139
|
> &
|
|
1216
1140
|
RefAttributes<HTMLDivElement>
|
|
@@ -1224,10 +1148,7 @@ export declare interface HeadingSkeletonProps extends SkeletonProps {
|
|
|
1224
1148
|
size?: number | number[]
|
|
1225
1149
|
}
|
|
1226
1150
|
|
|
1227
|
-
|
|
1228
|
-
* @internal
|
|
1229
|
-
*/
|
|
1230
|
-
export declare function hexToRgb(hex: string): RGB
|
|
1151
|
+
export {hexToRgb}
|
|
1231
1152
|
|
|
1232
1153
|
/**
|
|
1233
1154
|
* Represent hotkeys (a keyboard combination) with semantic `<kbd>` elements.
|
|
@@ -1235,7 +1156,7 @@ export declare function hexToRgb(hex: string): RGB
|
|
|
1235
1156
|
* @public
|
|
1236
1157
|
*/
|
|
1237
1158
|
export declare const Hotkeys: ForwardRefExoticComponent<
|
|
1238
|
-
HotkeysProps & Omit<HTMLProps<HTMLElement>, '
|
|
1159
|
+
HotkeysProps & Omit<HTMLProps<HTMLElement>, 'size' | 'ref' | 'as'> & RefAttributes<HTMLElement>
|
|
1239
1160
|
>
|
|
1240
1161
|
|
|
1241
1162
|
/**
|
|
@@ -1249,19 +1170,9 @@ export declare interface HotkeysProps {
|
|
|
1249
1170
|
keys?: string[]
|
|
1250
1171
|
}
|
|
1251
1172
|
|
|
1252
|
-
|
|
1253
|
-
* @internal
|
|
1254
|
-
*/
|
|
1255
|
-
export declare interface HSL {
|
|
1256
|
-
h: number
|
|
1257
|
-
s: number
|
|
1258
|
-
l: number
|
|
1259
|
-
}
|
|
1173
|
+
export {HSL}
|
|
1260
1174
|
|
|
1261
|
-
|
|
1262
|
-
* @internal
|
|
1263
|
-
*/
|
|
1264
|
-
export declare function hslToRgb(hsl: HSL): RGB
|
|
1175
|
+
export {hslToRgb}
|
|
1265
1176
|
|
|
1266
1177
|
/**
|
|
1267
1178
|
* The `Inline` component is a layout utility for aligning and spacing items horizontally.
|
|
@@ -1280,29 +1191,29 @@ export declare interface InlineProps extends Omit<BoxProps, 'display'> {
|
|
|
1280
1191
|
space?: number | number[]
|
|
1281
1192
|
}
|
|
1282
1193
|
|
|
1283
|
-
export
|
|
1194
|
+
export {isColorBlendModeValue}
|
|
1284
1195
|
|
|
1285
|
-
export
|
|
1196
|
+
export {isColorButtonMode}
|
|
1286
1197
|
|
|
1287
|
-
export
|
|
1198
|
+
export {isColorConfigBaseKey}
|
|
1288
1199
|
|
|
1289
|
-
export
|
|
1200
|
+
export {isColorConfigBaseTone}
|
|
1290
1201
|
|
|
1291
|
-
export
|
|
1202
|
+
export {isColorConfigBlendKey}
|
|
1292
1203
|
|
|
1293
|
-
export
|
|
1204
|
+
export {isColorConfigStateKey}
|
|
1294
1205
|
|
|
1295
|
-
export
|
|
1206
|
+
export {isColorConfigStateTone}
|
|
1296
1207
|
|
|
1297
|
-
export
|
|
1208
|
+
export {isColorHueKey}
|
|
1298
1209
|
|
|
1299
|
-
export
|
|
1210
|
+
export {isColorOpacityValue}
|
|
1300
1211
|
|
|
1301
|
-
export
|
|
1212
|
+
export {isColorTintKey}
|
|
1302
1213
|
|
|
1303
|
-
export
|
|
1214
|
+
export {isColorTokenValue}
|
|
1304
1215
|
|
|
1305
|
-
export
|
|
1216
|
+
export {isColorValue}
|
|
1306
1217
|
|
|
1307
1218
|
/**
|
|
1308
1219
|
* @internal
|
|
@@ -1355,7 +1266,7 @@ export declare function _isScrollable(el: Node): boolean
|
|
|
1355
1266
|
* @public
|
|
1356
1267
|
*/
|
|
1357
1268
|
export declare const KBD: ForwardRefExoticComponent<
|
|
1358
|
-
KBDProps & Omit<HTMLProps<HTMLElement>, '
|
|
1269
|
+
KBDProps & Omit<HTMLProps<HTMLElement>, 'size' | 'ref' | 'as'> & RefAttributes<HTMLDivElement>
|
|
1359
1270
|
>
|
|
1360
1271
|
|
|
1361
1272
|
/**
|
|
@@ -1402,7 +1313,7 @@ export declare interface LabelProps {
|
|
|
1402
1313
|
*/
|
|
1403
1314
|
export declare const LabelSkeleton: ForwardRefExoticComponent<
|
|
1404
1315
|
Omit<
|
|
1405
|
-
LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
1316
|
+
LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'children' | 'as' | 'height'>,
|
|
1406
1317
|
'ref'
|
|
1407
1318
|
> &
|
|
1408
1319
|
RefAttributes<HTMLDivElement>
|
|
@@ -1479,7 +1390,7 @@ export declare interface _MediaStore {
|
|
|
1479
1390
|
* @public
|
|
1480
1391
|
*/
|
|
1481
1392
|
export declare const Menu: ForwardRefExoticComponent<
|
|
1482
|
-
Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
1393
|
+
Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'tabIndex' | 'role' | 'as' | 'height'>, 'ref'> &
|
|
1483
1394
|
RefAttributes<HTMLDivElement>
|
|
1484
1395
|
>
|
|
1485
1396
|
|
|
@@ -1589,9 +1500,9 @@ export declare const MenuDivider: IStyledComponent<
|
|
|
1589
1500
|
security?: string | undefined
|
|
1590
1501
|
unselectable?: 'on' | 'off' | undefined
|
|
1591
1502
|
inputMode?:
|
|
1503
|
+
| 'none'
|
|
1592
1504
|
| 'text'
|
|
1593
1505
|
| 'search'
|
|
1594
|
-
| 'none'
|
|
1595
1506
|
| 'tel'
|
|
1596
1507
|
| 'url'
|
|
1597
1508
|
| 'email'
|
|
@@ -1601,7 +1512,7 @@ export declare const MenuDivider: IStyledComponent<
|
|
|
1601
1512
|
is?: string | undefined
|
|
1602
1513
|
'aria-activedescendant'?: string | undefined
|
|
1603
1514
|
'aria-atomic'?: (boolean | 'false' | 'true') | undefined
|
|
1604
|
-
'aria-autocomplete'?: '
|
|
1515
|
+
'aria-autocomplete'?: 'none' | 'both' | 'inline' | 'list' | undefined
|
|
1605
1516
|
'aria-braillelabel'?: string | undefined
|
|
1606
1517
|
'aria-brailleroledescription'?: string | undefined
|
|
1607
1518
|
'aria-busy'?: (boolean | 'false' | 'true') | undefined
|
|
@@ -1625,17 +1536,17 @@ export declare const MenuDivider: IStyledComponent<
|
|
|
1625
1536
|
'aria-description'?: string | undefined
|
|
1626
1537
|
'aria-details'?: string | undefined
|
|
1627
1538
|
'aria-disabled'?: (boolean | 'false' | 'true') | undefined
|
|
1628
|
-
'aria-dropeffect'?: '
|
|
1539
|
+
'aria-dropeffect'?: 'none' | 'link' | 'copy' | 'move' | 'execute' | 'popup' | undefined
|
|
1629
1540
|
'aria-errormessage'?: string | undefined
|
|
1630
1541
|
'aria-expanded'?: (boolean | 'false' | 'true') | undefined
|
|
1631
1542
|
'aria-flowto'?: string | undefined
|
|
1632
1543
|
'aria-grabbed'?: (boolean | 'false' | 'true') | undefined
|
|
1633
1544
|
'aria-haspopup'?:
|
|
1634
1545
|
| boolean
|
|
1546
|
+
| 'grid'
|
|
1635
1547
|
| 'dialog'
|
|
1636
1548
|
| 'menu'
|
|
1637
1549
|
| 'listbox'
|
|
1638
|
-
| 'grid'
|
|
1639
1550
|
| 'false'
|
|
1640
1551
|
| 'true'
|
|
1641
1552
|
| 'tree'
|
|
@@ -1880,7 +1791,7 @@ export declare interface MenuGroupProps {
|
|
|
1880
1791
|
*/
|
|
1881
1792
|
export declare const MenuItem: ForwardRefExoticComponent<
|
|
1882
1793
|
MenuItemProps &
|
|
1883
|
-
Omit<HTMLProps<HTMLDivElement>, '
|
|
1794
|
+
Omit<HTMLProps<HTMLDivElement>, 'ref' | 'tabIndex' | 'as' | 'height' | 'selected'> &
|
|
1884
1795
|
RefAttributes<HTMLDivElement>
|
|
1885
1796
|
>
|
|
1886
1797
|
|
|
@@ -1922,26 +1833,15 @@ export declare interface MenuProps extends ResponsivePaddingProps {
|
|
|
1922
1833
|
space?: number | number[]
|
|
1923
1834
|
}
|
|
1924
1835
|
|
|
1925
|
-
|
|
1926
|
-
* Apply the \`multiply\` blend mode
|
|
1927
|
-
* Source: https://www.w3.org/TR/compositing-1/#blendingmultiply
|
|
1928
|
-
* @internal
|
|
1929
|
-
*/
|
|
1930
|
-
export declare function multiply(b: RGB | RGBA, s: RGB | RGBA): RGB
|
|
1836
|
+
export {multiply}
|
|
1931
1837
|
|
|
1932
|
-
|
|
1933
|
-
* @internal
|
|
1934
|
-
*/
|
|
1935
|
-
export declare function parseColor(color: unknown): RGB | RGBA
|
|
1838
|
+
export {parseColor}
|
|
1936
1839
|
|
|
1937
|
-
export
|
|
1840
|
+
export {parseTokenKey}
|
|
1938
1841
|
|
|
1939
|
-
export
|
|
1842
|
+
export {parseTokenValue}
|
|
1940
1843
|
|
|
1941
|
-
|
|
1942
|
-
* @public
|
|
1943
|
-
*/
|
|
1944
|
-
export declare type PartialThemeColorBuilderOpts = Partial<ThemeColorBuilderOpts>
|
|
1844
|
+
export {PartialThemeColorBuilderOpts}
|
|
1945
1845
|
|
|
1946
1846
|
/**
|
|
1947
1847
|
* Placement of floating UI elements.
|
|
@@ -1970,7 +1870,7 @@ export declare type Placement =
|
|
|
1970
1870
|
export declare const Popover: MemoExoticComponent<
|
|
1971
1871
|
ForwardRefExoticComponent<
|
|
1972
1872
|
Omit<
|
|
1973
|
-
PopoverProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
1873
|
+
PopoverProps & Omit<HTMLProps<HTMLDivElement>, 'content' | 'children' | 'width' | 'as'>,
|
|
1974
1874
|
'ref'
|
|
1975
1875
|
> &
|
|
1976
1876
|
RefAttributes<HTMLDivElement>
|
|
@@ -2076,7 +1976,7 @@ export declare interface PortalProviderProps {
|
|
|
2076
1976
|
* @public
|
|
2077
1977
|
*/
|
|
2078
1978
|
export declare const Radio: ForwardRefExoticComponent<
|
|
2079
|
-
Omit<Omit<HTMLProps<HTMLInputElement>, '
|
|
1979
|
+
Omit<Omit<HTMLProps<HTMLInputElement>, 'as' | 'type'> & RadioProps, 'ref'> &
|
|
2080
1980
|
RefAttributes<HTMLInputElement>
|
|
2081
1981
|
>
|
|
2082
1982
|
|
|
@@ -2315,58 +2215,20 @@ export declare interface ResponsiveWidthStyleProps {
|
|
|
2315
2215
|
$width: (number | 'auto')[]
|
|
2316
2216
|
}
|
|
2317
2217
|
|
|
2318
|
-
|
|
2319
|
-
* @internal
|
|
2320
|
-
*/
|
|
2321
|
-
export declare interface RGB {
|
|
2322
|
-
r: number
|
|
2323
|
-
g: number
|
|
2324
|
-
b: number
|
|
2325
|
-
a?: undefined
|
|
2326
|
-
}
|
|
2218
|
+
export {RGB}
|
|
2327
2219
|
|
|
2328
|
-
|
|
2329
|
-
* @internal
|
|
2330
|
-
*/
|
|
2331
|
-
export declare interface RGBA {
|
|
2332
|
-
r: number
|
|
2333
|
-
g: number
|
|
2334
|
-
b: number
|
|
2335
|
-
a: number
|
|
2336
|
-
}
|
|
2220
|
+
export {RGBA}
|
|
2337
2221
|
|
|
2338
|
-
|
|
2339
|
-
* @internal
|
|
2340
|
-
*/
|
|
2341
|
-
export declare function rgba(color: unknown, a: number): string
|
|
2222
|
+
export {rgba}
|
|
2342
2223
|
|
|
2343
|
-
|
|
2344
|
-
* @internal
|
|
2345
|
-
*/
|
|
2346
|
-
export declare function rgbaToRGBA(rgba: string): RGBA
|
|
2224
|
+
export {rgbaToRGBA}
|
|
2347
2225
|
|
|
2348
|
-
|
|
2349
|
-
* @internal
|
|
2350
|
-
*/
|
|
2351
|
-
export declare function rgbToHex({r, g, b}: RGB): string
|
|
2226
|
+
export {rgbToHex}
|
|
2352
2227
|
|
|
2353
|
-
|
|
2354
|
-
* @internal
|
|
2355
|
-
* @see https://css-tricks.com/converting-color-spaces-in-javascript/
|
|
2356
|
-
*/
|
|
2357
|
-
export declare function rgbToHsl({r, g, b}: RGB): HSL
|
|
2228
|
+
export {rgbToHsl}
|
|
2358
2229
|
|
|
2359
|
-
|
|
2360
|
-
* @public
|
|
2361
|
-
*/
|
|
2362
|
-
export declare type RootTheme = BaseTheme<Styles>
|
|
2230
|
+
export {RootTheme}
|
|
2363
2231
|
|
|
2364
|
-
/**
|
|
2365
|
-
* Apply the \`screen\` blend mode
|
|
2366
|
-
* Source: https://www.w3.org/TR/compositing-1/#blendingscreen
|
|
2367
|
-
* @internal
|
|
2368
|
-
*/
|
|
2369
|
-
declare function screen_2(b: RGB | RGBA, s: RGB | RGBA): RGB
|
|
2370
2232
|
export {screen_2 as screen}
|
|
2371
2233
|
|
|
2372
2234
|
/**
|
|
@@ -2382,7 +2244,7 @@ export declare const Select: ForwardRefExoticComponent<
|
|
|
2382
2244
|
/**
|
|
2383
2245
|
* @public
|
|
2384
2246
|
*/
|
|
2385
|
-
export declare type SelectableTone =
|
|
2247
|
+
export declare type SelectableTone = ThemeColorStateToneKey
|
|
2386
2248
|
|
|
2387
2249
|
/**
|
|
2388
2250
|
* @public
|
|
@@ -2463,49 +2325,7 @@ export declare interface StackProps extends BoxProps {
|
|
|
2463
2325
|
space?: number | number[]
|
|
2464
2326
|
}
|
|
2465
2327
|
|
|
2466
|
-
export
|
|
2467
|
-
_blend?: ColorBlendModeTokenValue
|
|
2468
|
-
_hue?: ColorHueValue
|
|
2469
|
-
bg?: ColorTokenValue
|
|
2470
|
-
bg2?: ColorTokenValue
|
|
2471
|
-
fg?: ColorTokenValue
|
|
2472
|
-
border?: ColorTokenValue
|
|
2473
|
-
muted?: {
|
|
2474
|
-
fg?: ColorTokenValue
|
|
2475
|
-
}
|
|
2476
|
-
accent?: {
|
|
2477
|
-
fg?: ColorTokenValue
|
|
2478
|
-
}
|
|
2479
|
-
link?: {
|
|
2480
|
-
fg?: ColorTokenValue
|
|
2481
|
-
}
|
|
2482
|
-
code?: {
|
|
2483
|
-
bg?: ColorTokenValue
|
|
2484
|
-
fg?: ColorTokenValue
|
|
2485
|
-
}
|
|
2486
|
-
skeleton?: {
|
|
2487
|
-
from?: ColorTokenValue
|
|
2488
|
-
to?: ColorTokenValue
|
|
2489
|
-
}
|
|
2490
|
-
}
|
|
2491
|
-
|
|
2492
|
-
/**
|
|
2493
|
-
* @public
|
|
2494
|
-
*/
|
|
2495
|
-
export declare const studioTheme: RootTheme
|
|
2496
|
-
|
|
2497
|
-
/**
|
|
2498
|
-
* TODO: Rename to `ThemeStyles`
|
|
2499
|
-
* @public
|
|
2500
|
-
*/
|
|
2501
|
-
export declare interface Styles {
|
|
2502
|
-
button?: {
|
|
2503
|
-
root?: CSSObject
|
|
2504
|
-
}
|
|
2505
|
-
card?: {
|
|
2506
|
-
root?: CSSObject
|
|
2507
|
-
}
|
|
2508
|
-
}
|
|
2328
|
+
export {studioTheme}
|
|
2509
2329
|
|
|
2510
2330
|
/**
|
|
2511
2331
|
* The `Switch` component allows the user to toggle a setting on and off.
|
|
@@ -2515,7 +2335,7 @@ export declare interface Styles {
|
|
|
2515
2335
|
* @public
|
|
2516
2336
|
*/
|
|
2517
2337
|
export declare const Switch: ForwardRefExoticComponent<
|
|
2518
|
-
Omit<Omit<HTMLProps<HTMLInputElement>, '
|
|
2338
|
+
Omit<Omit<HTMLProps<HTMLInputElement>, 'as' | 'type'> & SwitchProps, 'ref'> &
|
|
2519
2339
|
RefAttributes<HTMLInputElement>
|
|
2520
2340
|
>
|
|
2521
2341
|
|
|
@@ -2534,7 +2354,7 @@ export declare const Tab: ForwardRefExoticComponent<
|
|
|
2534
2354
|
TabProps &
|
|
2535
2355
|
Omit<
|
|
2536
2356
|
HTMLProps<HTMLButtonElement>,
|
|
2537
|
-
'
|
|
2357
|
+
'label' | 'width' | 'id' | 'aria-controls' | 'as' | 'type'
|
|
2538
2358
|
>,
|
|
2539
2359
|
'ref'
|
|
2540
2360
|
> &
|
|
@@ -2545,7 +2365,7 @@ export declare const Tab: ForwardRefExoticComponent<
|
|
|
2545
2365
|
* @public
|
|
2546
2366
|
*/
|
|
2547
2367
|
export declare const TabList: ForwardRefExoticComponent<
|
|
2548
|
-
Omit<TabListProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
2368
|
+
Omit<TabListProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height'>, 'ref'> &
|
|
2549
2369
|
RefAttributes<unknown>
|
|
2550
2370
|
>
|
|
2551
2371
|
|
|
@@ -2640,7 +2460,7 @@ export declare interface TextAreaProps extends ResponsiveRadiusProps {
|
|
|
2640
2460
|
* @public
|
|
2641
2461
|
*/
|
|
2642
2462
|
export declare const TextInput: ForwardRefExoticComponent<
|
|
2643
|
-
Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, '
|
|
2463
|
+
Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, 'prefix' | 'as' | 'type'>, 'ref'> &
|
|
2644
2464
|
RefAttributes<HTMLInputElement>
|
|
2645
2465
|
>
|
|
2646
2466
|
|
|
@@ -2722,7 +2542,7 @@ export declare interface TextProps {
|
|
|
2722
2542
|
*/
|
|
2723
2543
|
export declare const TextSkeleton: ForwardRefExoticComponent<
|
|
2724
2544
|
Omit<
|
|
2725
|
-
TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
2545
|
+
TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'children' | 'as' | 'height'>,
|
|
2726
2546
|
'ref'
|
|
2727
2547
|
> &
|
|
2728
2548
|
RefAttributes<HTMLDivElement>
|
|
@@ -2736,271 +2556,61 @@ export declare interface TextSkeletonProps extends SkeletonProps {
|
|
|
2736
2556
|
size?: number | number[]
|
|
2737
2557
|
}
|
|
2738
2558
|
|
|
2739
|
-
|
|
2740
|
-
* @public
|
|
2741
|
-
*/
|
|
2742
|
-
export declare interface Theme {
|
|
2743
|
-
sanity: Omit<RootTheme, 'color'> & {
|
|
2744
|
-
color: ThemeColor
|
|
2745
|
-
}
|
|
2746
|
-
}
|
|
2559
|
+
export {Theme}
|
|
2747
2560
|
|
|
2748
|
-
|
|
2749
|
-
* @public
|
|
2750
|
-
*/
|
|
2751
|
-
export declare interface ThemeAvatar {
|
|
2752
|
-
sizes: {
|
|
2753
|
-
/** Distance between avatars in an <AvatarStack> component (px) */
|
|
2754
|
-
distance: number
|
|
2755
|
-
/** Diameter (px) */
|
|
2756
|
-
size: number
|
|
2757
|
-
}[]
|
|
2758
|
-
focusRing: FocusRing
|
|
2759
|
-
}
|
|
2561
|
+
export {THEME_COLOR_BASE_TONES}
|
|
2760
2562
|
|
|
2761
|
-
|
|
2762
|
-
* @public
|
|
2763
|
-
*/
|
|
2764
|
-
export declare interface ThemeColor {
|
|
2765
|
-
dark: boolean
|
|
2766
|
-
base: ThemeColorBase
|
|
2767
|
-
button: ThemeColorButton
|
|
2768
|
-
card: ThemeColorCard
|
|
2769
|
-
input: ThemeColorInput
|
|
2770
|
-
selectable?: ThemeColorSelectable
|
|
2771
|
-
spot: ThemeColorSpot
|
|
2772
|
-
syntax: ThemeColorSyntax
|
|
2773
|
-
solid: ThemeColorSolid
|
|
2774
|
-
muted: ThemeColorMuted
|
|
2775
|
-
}
|
|
2563
|
+
export {THEME_COLOR_BLEND_MODES}
|
|
2776
2564
|
|
|
2777
|
-
|
|
2778
|
-
* @public
|
|
2779
|
-
*/
|
|
2780
|
-
export declare interface ThemeColorBase {
|
|
2781
|
-
bg: string
|
|
2782
|
-
fg: string
|
|
2783
|
-
border: string
|
|
2784
|
-
focusRing: string
|
|
2785
|
-
shadow: {
|
|
2786
|
-
outline: string
|
|
2787
|
-
umbra: string
|
|
2788
|
-
penumbra: string
|
|
2789
|
-
ambient: string
|
|
2790
|
-
}
|
|
2791
|
-
skeleton?: {
|
|
2792
|
-
from: string
|
|
2793
|
-
to: string
|
|
2794
|
-
}
|
|
2795
|
-
}
|
|
2565
|
+
export {THEME_COLOR_BUTTON_MODES}
|
|
2796
2566
|
|
|
2797
|
-
|
|
2798
|
-
* @public
|
|
2799
|
-
*/
|
|
2800
|
-
export declare interface ThemeColorBuilderOpts {
|
|
2801
|
-
base: (opts: {dark: boolean; name: ThemeColorName}) => ThemeColorBase
|
|
2802
|
-
solid: (opts: {
|
|
2803
|
-
base: ThemeColorBase
|
|
2804
|
-
dark: boolean
|
|
2805
|
-
tone: ThemeColorToneKey
|
|
2806
|
-
name: ThemeColorName
|
|
2807
|
-
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
|
|
2808
|
-
}) => ThemeColorGenericState
|
|
2809
|
-
muted: (opts: {
|
|
2810
|
-
base: ThemeColorBase
|
|
2811
|
-
dark: boolean
|
|
2812
|
-
tone: ThemeColorToneKey
|
|
2813
|
-
name: ThemeColorName
|
|
2814
|
-
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
|
|
2815
|
-
}) => ThemeColorGenericState
|
|
2816
|
-
card: (opts: {
|
|
2817
|
-
base: ThemeColorBase
|
|
2818
|
-
dark: boolean
|
|
2819
|
-
muted: ThemeColorMuted
|
|
2820
|
-
name: ThemeColorName
|
|
2821
|
-
solid: ThemeColorSolid
|
|
2822
|
-
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
|
|
2823
|
-
}) => ThemeColorCardState
|
|
2824
|
-
button: (opts: {
|
|
2825
|
-
dark: boolean
|
|
2826
|
-
mode: ThemeColorButtonModeKey
|
|
2827
|
-
base: ThemeColorBase
|
|
2828
|
-
solid: ThemeColorSolidTone
|
|
2829
|
-
muted: ThemeColorMutedTone
|
|
2830
|
-
}) => ThemeColorButtonStates
|
|
2831
|
-
input: (opts: {
|
|
2832
|
-
base: ThemeColorBase
|
|
2833
|
-
solid: ThemeColorSolidTone
|
|
2834
|
-
muted: ThemeColorMutedTone
|
|
2835
|
-
dark: boolean
|
|
2836
|
-
mode: 'default' | 'invalid'
|
|
2837
|
-
state: 'enabled' | 'disabled' | 'hovered' | 'readOnly'
|
|
2838
|
-
}) => ThemeColorInputState
|
|
2839
|
-
selectable: (opts: {
|
|
2840
|
-
dark: boolean
|
|
2841
|
-
base: ThemeColorBase
|
|
2842
|
-
solid: ThemeColorSolid
|
|
2843
|
-
muted: ThemeColorMuted
|
|
2844
|
-
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
|
|
2845
|
-
tone: 'default' | 'primary' | 'positive' | 'caution' | 'critical'
|
|
2846
|
-
}) => ThemeColorSelectableState
|
|
2847
|
-
syntax: (opts: {base: ThemeColorBase; dark: boolean}) => ThemeColorSyntax
|
|
2848
|
-
spot: (opts: {base: ThemeColorBase; dark: boolean; key: ThemeColorSpotKey}) => string
|
|
2849
|
-
}
|
|
2567
|
+
export {THEME_COLOR_STATE_TONES}
|
|
2850
2568
|
|
|
2851
|
-
|
|
2852
|
-
* @public
|
|
2853
|
-
*/
|
|
2854
|
-
export declare interface ThemeColorButton {
|
|
2855
|
-
default: ThemeColorButtonTones
|
|
2856
|
-
ghost: ThemeColorButtonTones
|
|
2857
|
-
bleed: ThemeColorButtonTones
|
|
2858
|
-
}
|
|
2569
|
+
export {THEME_COLOR_STATES}
|
|
2859
2570
|
|
|
2860
|
-
|
|
2861
|
-
* @public
|
|
2862
|
-
*/
|
|
2863
|
-
export declare type ThemeColorButtonModeKey = 'default' | 'ghost' | 'bleed'
|
|
2571
|
+
export {ThemeAvatar}
|
|
2864
2572
|
|
|
2865
|
-
|
|
2866
|
-
* @deprecated Use `ThemeColorGenericState` instead.
|
|
2867
|
-
* @public
|
|
2868
|
-
*/
|
|
2869
|
-
export declare type ThemeColorButtonState = ThemeColorGenericState
|
|
2573
|
+
export {ThemeColor}
|
|
2870
2574
|
|
|
2871
|
-
|
|
2872
|
-
* @public
|
|
2873
|
-
*/
|
|
2874
|
-
export declare interface ThemeColorButtonStates {
|
|
2875
|
-
enabled: ThemeColorButtonState
|
|
2876
|
-
hovered: ThemeColorButtonState
|
|
2877
|
-
pressed: ThemeColorButtonState
|
|
2878
|
-
selected: ThemeColorButtonState
|
|
2879
|
-
disabled: ThemeColorButtonState
|
|
2880
|
-
}
|
|
2575
|
+
export {ThemeColorBase}
|
|
2881
2576
|
|
|
2882
|
-
|
|
2883
|
-
* TODO: Rename to `ThemeColorButtonMode`.
|
|
2884
|
-
* @public
|
|
2885
|
-
*/
|
|
2886
|
-
export declare interface ThemeColorButtonTones {
|
|
2887
|
-
default: ThemeColorButtonStates
|
|
2888
|
-
primary: ThemeColorButtonStates
|
|
2889
|
-
positive: ThemeColorButtonStates
|
|
2890
|
-
caution: ThemeColorButtonStates
|
|
2891
|
-
critical: ThemeColorButtonStates
|
|
2892
|
-
}
|
|
2577
|
+
export {ThemeColorBaseTokens}
|
|
2893
2578
|
|
|
2894
|
-
|
|
2895
|
-
* @public
|
|
2896
|
-
*/
|
|
2897
|
-
export declare interface ThemeColorCard {
|
|
2898
|
-
enabled: ThemeColorCardState
|
|
2899
|
-
hovered: ThemeColorCardState
|
|
2900
|
-
pressed: ThemeColorCardState
|
|
2901
|
-
selected: ThemeColorCardState
|
|
2902
|
-
disabled: ThemeColorCardState
|
|
2903
|
-
}
|
|
2579
|
+
export {ThemeColorBaseToneKey}
|
|
2904
2580
|
|
|
2905
|
-
|
|
2906
|
-
* @deprecated Use `ThemeColorGenericState` instead.
|
|
2907
|
-
* @public
|
|
2908
|
-
*/
|
|
2909
|
-
export declare type ThemeColorCardState = ThemeColorGenericState
|
|
2581
|
+
export {ThemeColorBlendModeKey}
|
|
2910
2582
|
|
|
2911
|
-
|
|
2912
|
-
* @public
|
|
2913
|
-
*/
|
|
2914
|
-
export declare interface ThemeColorGenericState {
|
|
2915
|
-
bg: string
|
|
2916
|
-
/**
|
|
2917
|
-
* @beta
|
|
2918
|
-
*/
|
|
2919
|
-
bg2?: string
|
|
2920
|
-
border: string
|
|
2921
|
-
fg: string
|
|
2922
|
-
iconColor: string
|
|
2923
|
-
muted: {
|
|
2924
|
-
fg: string
|
|
2925
|
-
}
|
|
2926
|
-
accent: {
|
|
2927
|
-
fg: string
|
|
2928
|
-
}
|
|
2929
|
-
link: {
|
|
2930
|
-
fg: string
|
|
2931
|
-
}
|
|
2932
|
-
code: {
|
|
2933
|
-
bg: string
|
|
2934
|
-
fg: string
|
|
2935
|
-
}
|
|
2936
|
-
skeleton?: {
|
|
2937
|
-
from: string
|
|
2938
|
-
to: string
|
|
2939
|
-
}
|
|
2940
|
-
}
|
|
2583
|
+
export {ThemeColorBuilderOpts}
|
|
2941
2584
|
|
|
2942
|
-
|
|
2943
|
-
* @public
|
|
2944
|
-
*/
|
|
2945
|
-
export declare interface ThemeColorInput {
|
|
2946
|
-
default: ThemeColorInputStates
|
|
2947
|
-
invalid: ThemeColorInputStates
|
|
2948
|
-
}
|
|
2585
|
+
export {ThemeColorButton}
|
|
2949
2586
|
|
|
2950
|
-
|
|
2951
|
-
* @public
|
|
2952
|
-
*/
|
|
2953
|
-
export declare interface ThemeColorInputState {
|
|
2954
|
-
bg: string
|
|
2955
|
-
bg2: string
|
|
2956
|
-
fg: string
|
|
2957
|
-
border: string
|
|
2958
|
-
placeholder: string
|
|
2959
|
-
}
|
|
2587
|
+
export {ThemeColorButtonModeKey}
|
|
2960
2588
|
|
|
2961
|
-
|
|
2962
|
-
* @public
|
|
2963
|
-
*/
|
|
2964
|
-
export declare interface ThemeColorInputStates {
|
|
2965
|
-
enabled: ThemeColorInputState
|
|
2966
|
-
disabled: ThemeColorInputState
|
|
2967
|
-
hovered: ThemeColorInputState
|
|
2968
|
-
readOnly: ThemeColorInputState
|
|
2969
|
-
}
|
|
2589
|
+
export {ThemeColorButtonState}
|
|
2970
2590
|
|
|
2971
|
-
|
|
2972
|
-
* @public
|
|
2973
|
-
*/
|
|
2974
|
-
export declare interface ThemeColorMuted {
|
|
2975
|
-
default: ThemeColorMutedTone
|
|
2976
|
-
transparent: ThemeColorMutedTone
|
|
2977
|
-
primary: ThemeColorMutedTone
|
|
2978
|
-
positive: ThemeColorMutedTone
|
|
2979
|
-
caution: ThemeColorMutedTone
|
|
2980
|
-
critical: ThemeColorMutedTone
|
|
2981
|
-
}
|
|
2591
|
+
export {ThemeColorButtonStates}
|
|
2982
2592
|
|
|
2983
|
-
|
|
2984
|
-
* @public
|
|
2985
|
-
*/
|
|
2986
|
-
export declare interface ThemeColorMutedTone {
|
|
2987
|
-
enabled: ThemeColorGenericState
|
|
2988
|
-
disabled: ThemeColorGenericState
|
|
2989
|
-
hovered: ThemeColorGenericState
|
|
2990
|
-
pressed: ThemeColorGenericState
|
|
2991
|
-
selected: ThemeColorGenericState
|
|
2992
|
-
}
|
|
2593
|
+
export {ThemeColorButtonTokens}
|
|
2993
2594
|
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
2595
|
+
export {ThemeColorButtonTones}
|
|
2596
|
+
|
|
2597
|
+
export {ThemeColorCard}
|
|
2598
|
+
|
|
2599
|
+
export {ThemeColorCardState}
|
|
2600
|
+
|
|
2601
|
+
export {ThemeColorGenericState}
|
|
2602
|
+
|
|
2603
|
+
export {ThemeColorInput}
|
|
2604
|
+
|
|
2605
|
+
export {ThemeColorInputState}
|
|
2606
|
+
|
|
2607
|
+
export {ThemeColorInputStates}
|
|
2608
|
+
|
|
2609
|
+
export {ThemeColorMuted}
|
|
2610
|
+
|
|
2611
|
+
export {ThemeColorMutedTone}
|
|
2612
|
+
|
|
2613
|
+
export {ThemeColorName}
|
|
3004
2614
|
|
|
3005
2615
|
/**
|
|
3006
2616
|
* @public
|
|
@@ -3013,170 +2623,46 @@ export declare function ThemeColorProvider(props: ThemeColorProviderProps): Reac
|
|
|
3013
2623
|
export declare interface ThemeColorProviderProps {
|
|
3014
2624
|
children?: React.ReactNode
|
|
3015
2625
|
scheme?: ThemeColorSchemeKey
|
|
3016
|
-
tone?:
|
|
2626
|
+
tone?: ThemeColorBaseToneKey
|
|
3017
2627
|
}
|
|
3018
2628
|
|
|
3019
|
-
|
|
3020
|
-
* @public
|
|
3021
|
-
*/
|
|
3022
|
-
export declare interface ThemeColorScheme {
|
|
3023
|
-
default: ThemeColor
|
|
3024
|
-
transparent: ThemeColor
|
|
3025
|
-
primary: ThemeColor
|
|
3026
|
-
positive: ThemeColor
|
|
3027
|
-
caution: ThemeColor
|
|
3028
|
-
critical: ThemeColor
|
|
3029
|
-
}
|
|
2629
|
+
export {ThemeColorScheme}
|
|
3030
2630
|
|
|
3031
|
-
|
|
3032
|
-
* @public
|
|
3033
|
-
*/
|
|
3034
|
-
export declare type ThemeColorSchemeKey = 'dark' | 'light'
|
|
2631
|
+
export {ThemeColorSchemeKey}
|
|
3035
2632
|
|
|
3036
|
-
|
|
3037
|
-
* @public
|
|
3038
|
-
*/
|
|
3039
|
-
export declare interface ThemeColorSchemes {
|
|
3040
|
-
dark: ThemeColorScheme
|
|
3041
|
-
light: ThemeColorScheme
|
|
3042
|
-
}
|
|
2633
|
+
export {ThemeColorSchemes}
|
|
3043
2634
|
|
|
3044
|
-
|
|
3045
|
-
* @public
|
|
3046
|
-
*/
|
|
3047
|
-
export declare interface ThemeColorSelectable {
|
|
3048
|
-
default: ThemeColorSelectableStates
|
|
3049
|
-
primary: ThemeColorSelectableStates
|
|
3050
|
-
positive: ThemeColorSelectableStates
|
|
3051
|
-
caution: ThemeColorSelectableStates
|
|
3052
|
-
critical: ThemeColorSelectableStates
|
|
3053
|
-
}
|
|
2635
|
+
export {ThemeColorSelectable}
|
|
3054
2636
|
|
|
3055
|
-
|
|
3056
|
-
* @deprecated Use `ThemeColorGenericState` instead.
|
|
3057
|
-
* @public
|
|
3058
|
-
*/
|
|
3059
|
-
export declare type ThemeColorSelectableState = ThemeColorGenericState
|
|
2637
|
+
export {ThemeColorSelectableState}
|
|
3060
2638
|
|
|
3061
|
-
|
|
3062
|
-
* @public
|
|
3063
|
-
*/
|
|
3064
|
-
export declare interface ThemeColorSelectableStates {
|
|
3065
|
-
enabled: ThemeColorSelectableState
|
|
3066
|
-
hovered: ThemeColorSelectableState
|
|
3067
|
-
pressed: ThemeColorSelectableState
|
|
3068
|
-
selected: ThemeColorSelectableState
|
|
3069
|
-
disabled: ThemeColorSelectableState
|
|
3070
|
-
}
|
|
2639
|
+
export {ThemeColorSelectableStates}
|
|
3071
2640
|
|
|
3072
|
-
|
|
3073
|
-
* @public
|
|
3074
|
-
*/
|
|
3075
|
-
export declare interface ThemeColorSolid {
|
|
3076
|
-
default: ThemeColorSolidTone
|
|
3077
|
-
transparent: ThemeColorSolidTone
|
|
3078
|
-
primary: ThemeColorSolidTone
|
|
3079
|
-
positive: ThemeColorSolidTone
|
|
3080
|
-
caution: ThemeColorSolidTone
|
|
3081
|
-
critical: ThemeColorSolidTone
|
|
3082
|
-
}
|
|
2641
|
+
export {ThemeColorSolid}
|
|
3083
2642
|
|
|
3084
|
-
|
|
3085
|
-
* @public
|
|
3086
|
-
*/
|
|
3087
|
-
export declare interface ThemeColorSolidTone {
|
|
3088
|
-
enabled: ThemeColorGenericState
|
|
3089
|
-
disabled: ThemeColorGenericState
|
|
3090
|
-
hovered: ThemeColorGenericState
|
|
3091
|
-
pressed: ThemeColorGenericState
|
|
3092
|
-
selected: ThemeColorGenericState
|
|
3093
|
-
}
|
|
2643
|
+
export {ThemeColorSolidTone}
|
|
3094
2644
|
|
|
3095
|
-
|
|
3096
|
-
* @public
|
|
3097
|
-
*/
|
|
3098
|
-
export declare interface ThemeColorSpot {
|
|
3099
|
-
gray: string
|
|
3100
|
-
blue: string
|
|
3101
|
-
purple: string
|
|
3102
|
-
magenta: string
|
|
3103
|
-
red: string
|
|
3104
|
-
orange: string
|
|
3105
|
-
yellow: string
|
|
3106
|
-
green: string
|
|
3107
|
-
cyan: string
|
|
3108
|
-
}
|
|
2645
|
+
export {ThemeColorSpot}
|
|
3109
2646
|
|
|
3110
|
-
|
|
3111
|
-
* @public
|
|
3112
|
-
*/
|
|
3113
|
-
export declare type ThemeColorSpotKey =
|
|
3114
|
-
| 'gray'
|
|
3115
|
-
| 'blue'
|
|
3116
|
-
| 'purple'
|
|
3117
|
-
| 'magenta'
|
|
3118
|
-
| 'red'
|
|
3119
|
-
| 'orange'
|
|
3120
|
-
| 'yellow'
|
|
3121
|
-
| 'green'
|
|
3122
|
-
| 'cyan'
|
|
2647
|
+
export {ThemeColorSpotKey}
|
|
3123
2648
|
|
|
3124
|
-
|
|
3125
|
-
* @public
|
|
3126
|
-
*/
|
|
3127
|
-
export declare interface ThemeColorSyntax {
|
|
3128
|
-
atrule: string
|
|
3129
|
-
attrName: string
|
|
3130
|
-
attrValue: string
|
|
3131
|
-
attribute: string
|
|
3132
|
-
boolean: string
|
|
3133
|
-
builtin: string
|
|
3134
|
-
cdata: string
|
|
3135
|
-
char: string
|
|
3136
|
-
class: string
|
|
3137
|
-
className: string
|
|
3138
|
-
comment: string
|
|
3139
|
-
constant: string
|
|
3140
|
-
deleted: string
|
|
3141
|
-
doctype: string
|
|
3142
|
-
entity: string
|
|
3143
|
-
function: string
|
|
3144
|
-
hexcode: string
|
|
3145
|
-
id: string
|
|
3146
|
-
important: string
|
|
3147
|
-
inserted: string
|
|
3148
|
-
keyword: string
|
|
3149
|
-
number: string
|
|
3150
|
-
operator: string
|
|
3151
|
-
prolog: string
|
|
3152
|
-
property: string
|
|
3153
|
-
pseudoClass: string
|
|
3154
|
-
pseudoElement: string
|
|
3155
|
-
punctuation: string
|
|
3156
|
-
regex: string
|
|
3157
|
-
selector: string
|
|
3158
|
-
string: string
|
|
3159
|
-
symbol: string
|
|
3160
|
-
tag: string
|
|
3161
|
-
unit: string
|
|
3162
|
-
url: string
|
|
3163
|
-
variable: string
|
|
3164
|
-
}
|
|
2649
|
+
export {ThemeColorStateKey}
|
|
3165
2650
|
|
|
3166
|
-
|
|
3167
|
-
* @public
|
|
3168
|
-
*/
|
|
3169
|
-
export declare type ThemeColorToneKey =
|
|
3170
|
-
| 'default'
|
|
3171
|
-
| 'transparent'
|
|
3172
|
-
| 'primary'
|
|
3173
|
-
| 'positive'
|
|
3174
|
-
| 'caution'
|
|
3175
|
-
| 'critical'
|
|
2651
|
+
export {ThemeColorStatesTokens}
|
|
3176
2652
|
|
|
3177
|
-
export
|
|
3178
|
-
|
|
3179
|
-
}
|
|
2653
|
+
export {ThemeColorStateTokens}
|
|
2654
|
+
|
|
2655
|
+
export {ThemeColorStateToneKey}
|
|
2656
|
+
|
|
2657
|
+
export {ThemeColorSyntax}
|
|
2658
|
+
|
|
2659
|
+
export {ThemeColorTokens}
|
|
2660
|
+
|
|
2661
|
+
export {ThemeColorTokenValue}
|
|
2662
|
+
|
|
2663
|
+
export {ThemeColorToneKey}
|
|
2664
|
+
|
|
2665
|
+
export {ThemeConfig}
|
|
3180
2666
|
|
|
3181
2667
|
/**
|
|
3182
2668
|
* @public
|
|
@@ -3185,109 +2671,26 @@ export declare interface ThemeContextValue {
|
|
|
3185
2671
|
version: 0.0
|
|
3186
2672
|
scheme: ThemeColorSchemeKey
|
|
3187
2673
|
theme: RootTheme
|
|
3188
|
-
tone:
|
|
2674
|
+
tone: ThemeColorBaseToneKey
|
|
3189
2675
|
}
|
|
3190
2676
|
|
|
3191
|
-
|
|
3192
|
-
* @public
|
|
3193
|
-
*/
|
|
3194
|
-
export declare interface ThemeFont {
|
|
3195
|
-
family: string
|
|
3196
|
-
weights: ThemeFontWeight
|
|
3197
|
-
sizes: ThemeFontSize[]
|
|
3198
|
-
/** @deprecated No longer supported. */
|
|
3199
|
-
horizontalOffset?: number
|
|
3200
|
-
}
|
|
2677
|
+
export {ThemeFocusRing}
|
|
3201
2678
|
|
|
3202
|
-
|
|
3203
|
-
* @public
|
|
3204
|
-
*/
|
|
3205
|
-
export declare type ThemeFontKey = 'code' | 'heading' | 'label' | 'text'
|
|
2679
|
+
export {ThemeFont}
|
|
3206
2680
|
|
|
3207
|
-
|
|
3208
|
-
* @public
|
|
3209
|
-
*/
|
|
3210
|
-
export declare interface ThemeFonts {
|
|
3211
|
-
code: ThemeFont
|
|
3212
|
-
heading: ThemeFont
|
|
3213
|
-
label: ThemeFont
|
|
3214
|
-
text: ThemeFont
|
|
3215
|
-
}
|
|
2681
|
+
export {ThemeFontKey}
|
|
3216
2682
|
|
|
3217
|
-
|
|
3218
|
-
* @public
|
|
3219
|
-
*/
|
|
3220
|
-
export declare interface ThemeFontSize {
|
|
3221
|
-
ascenderHeight: number
|
|
3222
|
-
descenderHeight: number
|
|
3223
|
-
fontSize: number
|
|
3224
|
-
iconSize: number
|
|
3225
|
-
letterSpacing: number
|
|
3226
|
-
lineHeight: number
|
|
3227
|
-
}
|
|
2683
|
+
export {ThemeFonts}
|
|
3228
2684
|
|
|
3229
|
-
|
|
3230
|
-
* @public
|
|
3231
|
-
*/
|
|
3232
|
-
export declare interface ThemeFontWeight {
|
|
3233
|
-
regular: number
|
|
3234
|
-
medium: number
|
|
3235
|
-
semibold: number
|
|
3236
|
-
bold: number
|
|
3237
|
-
}
|
|
2685
|
+
export {ThemeFontSize}
|
|
3238
2686
|
|
|
3239
|
-
|
|
3240
|
-
* @public
|
|
3241
|
-
*/
|
|
3242
|
-
export declare type ThemeFontWeightKey = 'regular' | 'medium' | 'semibold' | 'bold'
|
|
2687
|
+
export {ThemeFontWeight}
|
|
3243
2688
|
|
|
3244
|
-
|
|
3245
|
-
* @public
|
|
3246
|
-
*/
|
|
3247
|
-
export declare interface ThemeInput {
|
|
3248
|
-
checkbox: {
|
|
3249
|
-
size: number
|
|
3250
|
-
focusRing: FocusRing
|
|
3251
|
-
}
|
|
3252
|
-
radio: {
|
|
3253
|
-
size: number
|
|
3254
|
-
markSize: number
|
|
3255
|
-
focusRing: FocusRing
|
|
3256
|
-
}
|
|
3257
|
-
switch: {
|
|
3258
|
-
width: number
|
|
3259
|
-
height: number
|
|
3260
|
-
padding: number
|
|
3261
|
-
transitionDurationMs: number
|
|
3262
|
-
transitionTimingFunction: string
|
|
3263
|
-
focusRing: FocusRing
|
|
3264
|
-
}
|
|
3265
|
-
border: {
|
|
3266
|
-
width: number
|
|
3267
|
-
}
|
|
3268
|
-
select: {
|
|
3269
|
-
focusRing: FocusRing
|
|
3270
|
-
}
|
|
3271
|
-
text: {
|
|
3272
|
-
focusRing: FocusRing
|
|
3273
|
-
}
|
|
3274
|
-
}
|
|
2689
|
+
export {ThemeFontWeightKey}
|
|
3275
2690
|
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
*/
|
|
3280
|
-
export declare interface ThemeLayer {
|
|
3281
|
-
dialog: {
|
|
3282
|
-
zOffset: number
|
|
3283
|
-
}
|
|
3284
|
-
popover: {
|
|
3285
|
-
zOffset: number
|
|
3286
|
-
}
|
|
3287
|
-
tooltip: {
|
|
3288
|
-
zOffset: number
|
|
3289
|
-
}
|
|
3290
|
-
}
|
|
2691
|
+
export {ThemeInput}
|
|
2692
|
+
|
|
2693
|
+
export {ThemeLayer}
|
|
3291
2694
|
|
|
3292
2695
|
/**
|
|
3293
2696
|
* @internal
|
|
@@ -3308,84 +2711,12 @@ export declare interface ThemeProviderProps {
|
|
|
3308
2711
|
children?: React.ReactNode
|
|
3309
2712
|
scheme?: ThemeColorSchemeKey
|
|
3310
2713
|
theme?: RootTheme
|
|
3311
|
-
tone?:
|
|
2714
|
+
tone?: ThemeColorBaseToneKey
|
|
3312
2715
|
}
|
|
3313
2716
|
|
|
3314
|
-
|
|
3315
|
-
* @public
|
|
3316
|
-
*/
|
|
3317
|
-
export declare interface ThemeShadow {
|
|
3318
|
-
umbra: BoxShadow
|
|
3319
|
-
penumbra: BoxShadow
|
|
3320
|
-
ambient: BoxShadow
|
|
3321
|
-
}
|
|
3322
|
-
|
|
3323
|
-
export declare interface TMP_BaseColorTheme {
|
|
3324
|
-
_blend: ColorBlendModeValue
|
|
3325
|
-
dark: boolean
|
|
3326
|
-
base: {
|
|
3327
|
-
bg: string
|
|
3328
|
-
fg: string
|
|
3329
|
-
border: string
|
|
3330
|
-
focusRing: string
|
|
3331
|
-
shadow: {
|
|
3332
|
-
outline: string
|
|
3333
|
-
umbra: string
|
|
3334
|
-
penumbra: string
|
|
3335
|
-
ambient: string
|
|
3336
|
-
}
|
|
3337
|
-
skeleton: {
|
|
3338
|
-
from: string
|
|
3339
|
-
to: string
|
|
3340
|
-
}
|
|
3341
|
-
}
|
|
3342
|
-
button: TMP_ButtonColorTheme
|
|
3343
|
-
}
|
|
3344
|
-
|
|
3345
|
-
export declare type TMP_ButtonColorTheme = Record<ColorStateTone, TMP_ButtonModesColorTheme>
|
|
3346
|
-
|
|
3347
|
-
export declare type TMP_ButtonModesColorTheme = Record<ColorButtonMode, TMP_ButtonStatesColorTheme>
|
|
3348
|
-
|
|
3349
|
-
export declare type TMP_ButtonStatesColorTheme = Record<ColorState, TMP_StateColorTheme>
|
|
3350
|
-
|
|
3351
|
-
export declare type TMP_ColorPalette = {
|
|
3352
|
-
black: string | ColorTint
|
|
3353
|
-
white: string | ColorTint
|
|
3354
|
-
} & Record<ColorHueValue, Record<ColorTintValue, string | ColorTint>>
|
|
3355
|
-
|
|
3356
|
-
export declare type TMP_ColorTheme = Record<ColorBaseTone, TMP_BaseColorTheme>
|
|
2717
|
+
export {ThemeShadow}
|
|
3357
2718
|
|
|
3358
|
-
export
|
|
3359
|
-
_blend: ColorBlendModeValue
|
|
3360
|
-
bg: string
|
|
3361
|
-
bg2?: string
|
|
3362
|
-
fg: string
|
|
3363
|
-
border: string
|
|
3364
|
-
muted: {
|
|
3365
|
-
fg: string
|
|
3366
|
-
}
|
|
3367
|
-
accent: {
|
|
3368
|
-
fg: string
|
|
3369
|
-
}
|
|
3370
|
-
link: {
|
|
3371
|
-
fg: string
|
|
3372
|
-
}
|
|
3373
|
-
code: {
|
|
3374
|
-
bg: string
|
|
3375
|
-
fg: string
|
|
3376
|
-
}
|
|
3377
|
-
skeleton?: {
|
|
3378
|
-
from: string
|
|
3379
|
-
to: string
|
|
3380
|
-
}
|
|
3381
|
-
}
|
|
3382
|
-
|
|
3383
|
-
export declare interface TMP_Theme {
|
|
3384
|
-
color: {
|
|
3385
|
-
light: TMP_ColorTheme
|
|
3386
|
-
dark: TMP_ColorTheme
|
|
3387
|
-
}
|
|
3388
|
-
}
|
|
2719
|
+
export {ThemeStyles}
|
|
3389
2720
|
|
|
3390
2721
|
/**
|
|
3391
2722
|
* The `Toast` component gives feedback to users when an action has taken place.
|
|
@@ -3447,43 +2778,19 @@ export declare interface ToastProviderProps {
|
|
|
3447
2778
|
zOffset?: number | number[]
|
|
3448
2779
|
}
|
|
3449
2780
|
|
|
3450
|
-
export
|
|
3451
|
-
type: 'base'
|
|
3452
|
-
tone: ColorConfigBaseTone
|
|
3453
|
-
key: ColorConfigBaseKey | ColorConfigBlendKey
|
|
3454
|
-
}
|
|
2781
|
+
export {TokenBaseKeyNode}
|
|
3455
2782
|
|
|
3456
|
-
export
|
|
3457
|
-
type: 'blendMode'
|
|
3458
|
-
value?: ColorBlendModeValue
|
|
3459
|
-
}
|
|
2783
|
+
export {TokenBlendModeValueNode}
|
|
3460
2784
|
|
|
3461
|
-
export
|
|
3462
|
-
type: 'button'
|
|
3463
|
-
tone: ColorConfigStateTone
|
|
3464
|
-
mode: ColorButtonMode
|
|
3465
|
-
key: ColorConfigStateKey | ColorConfigBlendKey
|
|
3466
|
-
}
|
|
2785
|
+
export {TokenButtonKeyNode}
|
|
3467
2786
|
|
|
3468
|
-
export
|
|
3469
|
-
type: 'color'
|
|
3470
|
-
key?: 'black' | 'white' | `${ColorHueValue}/${ColorTintValue}` | ColorTintValue
|
|
3471
|
-
hue?: ColorHueValue
|
|
3472
|
-
tint?: ColorTintValue
|
|
3473
|
-
opacity?: number
|
|
3474
|
-
}
|
|
2787
|
+
export {TokenColorValueNode}
|
|
3475
2788
|
|
|
3476
|
-
export
|
|
3477
|
-
type: 'hue'
|
|
3478
|
-
value?: ColorHueValue
|
|
3479
|
-
}
|
|
2789
|
+
export {TokenHueValueNode}
|
|
3480
2790
|
|
|
3481
|
-
export
|
|
2791
|
+
export {TokenKeyNode}
|
|
3482
2792
|
|
|
3483
|
-
export
|
|
3484
|
-
| TokenColorValueNode
|
|
3485
|
-
| TokenHueValueNode
|
|
3486
|
-
| TokenBlendModeValueNode
|
|
2793
|
+
export {TokenValueNode}
|
|
3487
2794
|
|
|
3488
2795
|
/**
|
|
3489
2796
|
* Tooltips display information when hovering, focusing or tapping.
|
|
@@ -3491,7 +2798,7 @@ export declare type TokenValueNode =
|
|
|
3491
2798
|
* @public
|
|
3492
2799
|
*/
|
|
3493
2800
|
export declare const Tooltip: ForwardRefExoticComponent<
|
|
3494
|
-
Omit<TooltipProps & Omit<HTMLProps<HTMLDivElement>, '
|
|
2801
|
+
Omit<TooltipProps & Omit<HTMLProps<HTMLDivElement>, 'content' | 'children' | 'as'>, 'ref'> &
|
|
3495
2802
|
RefAttributes<HTMLDivElement>
|
|
3496
2803
|
>
|
|
3497
2804
|
|
|
@@ -3527,11 +2834,13 @@ export declare function TooltipDelayGroupProvider(
|
|
|
3527
2834
|
export declare interface TooltipDelayGroupProviderProps {
|
|
3528
2835
|
children?: React.ReactNode
|
|
3529
2836
|
/**
|
|
3530
|
-
*
|
|
2837
|
+
* Handles the delays to open or close a tooltip inside a group
|
|
3531
2838
|
*
|
|
3532
2839
|
* If only a `number` is passed, it will be used for both opening and closing.
|
|
3533
2840
|
*
|
|
3534
2841
|
* If an object `{open: number; close:number}` is passed, it can be used to set different delays for each action.
|
|
2842
|
+
*
|
|
2843
|
+
* @public
|
|
3535
2844
|
*/
|
|
3536
2845
|
delay: Delay
|
|
3537
2846
|
}
|
|
@@ -3552,16 +2861,27 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
|
|
|
3552
2861
|
placement?: Placement
|
|
3553
2862
|
/** Whether or not to render the tooltip in a portal element. */
|
|
3554
2863
|
portal?: boolean | string
|
|
2864
|
+
radius?: number | number[]
|
|
3555
2865
|
scheme?: ThemeColorSchemeKey
|
|
3556
2866
|
shadow?: number | number[]
|
|
3557
2867
|
/**
|
|
3558
|
-
*
|
|
2868
|
+
* Adds a delay to open or close the tooltip.
|
|
3559
2869
|
*
|
|
3560
2870
|
* If only a `number` is passed, it will be used for both opening and closing.
|
|
3561
2871
|
*
|
|
3562
2872
|
* If an object `{open: number; close:number}` is passed, it can be used to set different delays for each action.
|
|
2873
|
+
*
|
|
2874
|
+
* @public
|
|
2875
|
+
* @defaultValue 0
|
|
3563
2876
|
*/
|
|
3564
2877
|
delay?: Delay
|
|
2878
|
+
/**
|
|
2879
|
+
* Whether the tooltip should animate in and out.
|
|
2880
|
+
*
|
|
2881
|
+
* @beta
|
|
2882
|
+
* @defaultValue false
|
|
2883
|
+
*/
|
|
2884
|
+
animate?: boolean
|
|
3565
2885
|
}
|
|
3566
2886
|
|
|
3567
2887
|
/**
|
|
@@ -3571,7 +2891,7 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
|
|
|
3571
2891
|
export declare const Tree: MemoExoticComponent<
|
|
3572
2892
|
ForwardRefExoticComponent<
|
|
3573
2893
|
TreeProps &
|
|
3574
|
-
Omit<HTMLProps<HTMLDivElement>, '
|
|
2894
|
+
Omit<HTMLProps<HTMLDivElement>, 'wrap' | 'ref' | 'role' | 'as' | 'height' | 'align'> &
|
|
3575
2895
|
RefAttributes<HTMLDivElement>
|
|
3576
2896
|
>
|
|
3577
2897
|
>
|