From 88492ad0295fb712a3a6fb5ce702ec4dbd7eda5e Mon Sep 17 00:00:00 2001 From: Robin Pyon Date: Mon, 16 Oct 2023 15:32:59 +0100 Subject: [PATCH] fixup! feat(ui): initial reference studio UI tooltip component --- .eslintrc.cjs | 2 +- packages/sanity/src/ui/tooltip/Tooltip.tsx | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 5e3e997c0a4..1ea0a612c88 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -239,7 +239,7 @@ module.exports = { paths: [ { name: '@sanity/ui', - importNames: ['Tooltip'], + importNames: ['Tooltip', 'TooltipProps'], message: 'Please use the (more opinionated) exported components in sanity/src/ui instead.', }, diff --git a/packages/sanity/src/ui/tooltip/Tooltip.tsx b/packages/sanity/src/ui/tooltip/Tooltip.tsx index f03ae8b5c5f..77748f99edf 100644 --- a/packages/sanity/src/ui/tooltip/Tooltip.tsx +++ b/packages/sanity/src/ui/tooltip/Tooltip.tsx @@ -1,8 +1,15 @@ -import {Text, Tooltip as UITooltip, TooltipProps as UITooltipProps} from '@sanity/ui' +import { + Text, + Tooltip as UITooltip, + TooltipProps as UITooltipProps, + HotkeysProps as UIHotkeysProps, +} from '@sanity/ui' import React from 'react' +/** @internal */ export interface TooltipProps - extends Pick { + extends Pick, + Pick { text: string }