From c1fe67ec328077ae59565bfe8ec528982c4fa445 Mon Sep 17 00:00:00 2001 From: Wlad Meixner Date: Tue, 11 Nov 2025 14:20:37 +0100 Subject: [PATCH] fix: add prose library prefix --- package.json | 2 +- src/components/card.tsx | 17 +++++++++++++++++ src/extra/typography.tsx | 10 ++++++++-- 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 554a8d4..de3b332 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@foomo/ui", - "version": "0.0.8", + "version": "0.0.10", "type": "module", "files": [ "dist", diff --git a/src/components/card.tsx b/src/components/card.tsx index b09f5a1..ea99449 100644 --- a/src/components/card.tsx +++ b/src/components/card.tsx @@ -76,8 +76,25 @@ const CardFooter = React.forwardRef< )); CardFooter.displayName = "CardFooter"; +const CardAction = React.forwardRef< + HTMLDivElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( +
+)); +CardAction.displayName = "CardAction"; + export { Card, + CardAction, CardHeader, CardFooter, CardTitle, diff --git a/src/extra/typography.tsx b/src/extra/typography.tsx index e328c03..55b1dda 100644 --- a/src/extra/typography.tsx +++ b/src/extra/typography.tsx @@ -12,13 +12,19 @@ const Prose = React.forwardRef< ProseProps & React.ComponentPropsWithoutRef<"div"> >(({ asChild = false, as, className, ...props }, ref) => { if (asChild) { - return ; + return ( + + ); } const Component = as || "div"; return ( - + ); });