Skip to content

Commit

Permalink
add tooltip and sd-jwt override
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra committed Jan 15, 2024
1 parent a3e4116 commit 68c7a10
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 32 deletions.
3 changes: 2 additions & 1 deletion agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@aries-framework/askar": "file:./dependencies/aries-framework-askar-v0.4.2.tgz",
"@aries-framework/sd-jwt-vc": "file:./dependencies/aries-framework-sd-jwt-vc-v0.4.2.tgz",
"@aries-framework/indy-vdr": "file:./dependencies/aries-framework-indy-vdr-v0.4.2.tgz",
"@aries-framework/cheqd": "file:./dependencies/aries-framework-cheqd-v0.4.2.tgz"
"@aries-framework/cheqd": "file:./dependencies/aries-framework-cheqd-v0.4.2.tgz",
"@sd-jwt/core": "0.1.2-alpha.0"
}
}
30 changes: 30 additions & 0 deletions app/components/ui/tooltip.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"use client"

import * as React from "react"
import * as TooltipPrimitive from "@radix-ui/react-tooltip"

import { cn } from "@/lib/utils"

const TooltipProvider = TooltipPrimitive.Provider

const Tooltip = TooltipPrimitive.Root

const TooltipTrigger = TooltipPrimitive.Trigger

const TooltipContent = React.forwardRef<
React.ElementRef<typeof TooltipPrimitive.Content>,
React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>
>(({ className, sideOffset = 4, ...props }, ref) => (
<TooltipPrimitive.Content
ref={ref}
sideOffset={sideOffset}
className={cn(
"z-50 overflow-hidden rounded-md border border-gray-200 bg-white px-3 py-1.5 text-sm text-gray-950 shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-gray-800 dark:bg-gray-950 dark:text-gray-50",
className
)}
{...props}
/>
))
TooltipContent.displayName = TooltipPrimitive.Content.displayName

export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }
1 change: 1 addition & 0 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-tooltip": "^1.0.7",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"lucide-react": "^0.309.0",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"@aries-framework/askar": "file:./agent/dependencies/aries-framework-askar-v0.4.2.tgz",
"@aries-framework/sd-jwt-vc": "file:./agent/dependencies/aries-framework-sd-jwt-vc-v0.4.2.tgz",
"@aries-framework/indy-vdr": "file:./agent/dependencies/aries-framework-indy-vdr-v0.4.2.tgz",
"@aries-framework/cheqd": "file:./agent/dependencies/aries-framework-cheqd-v0.4.2.tgz"
"@aries-framework/cheqd": "file:./agent/dependencies/aries-framework-cheqd-v0.4.2.tgz",
"@sd-jwt/core": "0.1.2-alpha.0"
}
}
98 changes: 68 additions & 30 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 68c7a10

Please sign in to comment.