diff --git a/package-lock.json b/package-lock.json index b8b8720..e1c953e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "roamjs-components", - "version": "0.88.0", + "version": "0.88.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "roamjs-components", - "version": "0.88.0", + "version": "0.88.1", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 501bc94..454cc04 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "roamjs-components", "description": "Expansive toolset, utilities, & components for developing RoamJS extensions.", - "version": "0.88.0", + "version": "0.88.1", "main": "index.js", "types": "index.d.ts", "scripts": { diff --git a/src/components/Description.tsx b/src/components/Description.tsx index dbc8079..c4c8021 100644 --- a/src/components/Description.tsx +++ b/src/components/Description.tsx @@ -1,11 +1,19 @@ -import { Tooltip, Icon } from "@blueprintjs/core"; +import { Tooltip, Icon, PopoverInteractionKind } from "@blueprintjs/core"; import React from "react"; +type TooltipInteractionKind = React.ComponentProps< + typeof Tooltip +>["interactionKind"]; + +type DescriptionProps = { + description: React.ReactNode; + interactionKind?: TooltipInteractionKind; +}; + const Description = ({ description, -}: { - description: React.ReactNode; -}): React.ReactElement => { + interactionKind = PopoverInteractionKind.HOVER_TARGET_ONLY, +}: DescriptionProps): React.ReactElement => { return ( {description}