fix: add prose library prefix

This commit is contained in:
Wlad Meixner
2025-11-11 14:20:37 +01:00
parent 7736edaca6
commit c1fe67ec32
3 changed files with 26 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@foomo/ui",
"version": "0.0.8",
"version": "0.0.10",
"type": "module",
"files": [
"dist",
+17
View File
@@ -76,8 +76,25 @@ const CardFooter = React.forwardRef<
));
CardFooter.displayName = "CardFooter";
const CardAction = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div
ref={ref}
data-slot="card-action"
className={cn(
"lib:col-start-2 lib:row-span-2 lib:row-start-1 lib:self-start lib:justify-self-end",
className,
)}
{...props}
/>
));
CardAction.displayName = "CardAction";
export {
Card,
CardAction,
CardHeader,
CardFooter,
CardTitle,
+8 -2
View File
@@ -12,13 +12,19 @@ const Prose = React.forwardRef<
ProseProps & React.ComponentPropsWithoutRef<"div">
>(({ asChild = false, as, className, ...props }, ref) => {
if (asChild) {
return <Slot ref={ref} className={`prose ${className || ""}`} {...props} />;
return (
<Slot ref={ref} className={`lib:prose ${className || ""}`} {...props} />
);
}
const Component = as || "div";
return (
<Component ref={ref} className={`prose ${className || ""}`} {...props} />
<Component
ref={ref}
className={`lib:prose ${className || ""}`}
{...props}
/>
);
});