mirror of
https://github.com/foomo/ui.git
synced 2026-10-06 21:56:56 +00:00
fix: add prose library prefix
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@foomo/ui",
|
||||
"version": "0.0.8",
|
||||
"version": "0.0.10",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"dist",
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user