From 8fd198e19c0736855c0b5ea6615e548a1433c4be Mon Sep 17 00:00:00 2001 From: Cohan Carpentier Date: Tue, 7 Jan 2025 13:05:52 -0500 Subject: [PATCH] 0.0.267 - feat: tooltip portal --- README.md | 2 +- package.json | 2 +- tooltip.tsx | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 84ca5cd..047bdac 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,4 @@ https://www.npmjs.com/package/@risc0/ui | Statements | Branches | Functions | Lines | | --------------------------- | ----------------------- | ------------------------- | ----------------- | -| ![Statements](https://img.shields.io/badge/statements-41.79%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-79.71%25-red.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-73.8%25-red.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-41.79%25-red.svg?style=flat) | +| ![Statements](https://img.shields.io/badge/statements-41.76%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-79.71%25-red.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-73.8%25-red.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-41.76%25-red.svg?style=flat) | diff --git a/package.json b/package.json index 52ae20d..782e7ee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@risc0/ui", - "version": "0.0.266", + "version": "0.0.267", "private": false, "sideEffects": false, "type": "module", diff --git a/tooltip.tsx b/tooltip.tsx index 795bdb4..a95397a 100644 --- a/tooltip.tsx +++ b/tooltip.tsx @@ -36,6 +36,7 @@ TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName; const TooltipProvider = TooltipPrimitive.Provider; const Tooltip = TooltipPrimitive.Root; +const TooltipPortal = TooltipPrimitive.Portal; const TooltipTrigger = TooltipPrimitive.Trigger; -export { Tooltip, TooltipArrow, TooltipTrigger, TooltipContent, TooltipProvider }; +export { Tooltip, TooltipArrow, TooltipTrigger, TooltipContent, TooltipProvider, TooltipPortal };