@caqophony/ui 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -49,6 +49,8 @@ var buttonVariants = cva(
|
|
|
49
49
|
outline: "border border-border dark:border-border bg-background dark:bg-background text-foreground dark:text-foreground shadow-sm hover:bg-muted dark:hover:bg-muted hover:text-foreground dark:hover:text-foreground",
|
|
50
50
|
secondary: "bg-muted dark:bg-muted text-muted-foreground dark:text-muted-foreground shadow-sm hover:bg-muted/80 dark:hover:bg-muted/80",
|
|
51
51
|
ghost: "hover:bg-muted dark:hover:bg-muted hover:text-foreground dark:hover:text-foreground",
|
|
52
|
+
// #6362: a quiet destructive action (a page's delete): error-toned text, no fill until hover. The solid `destructive` is kept for the confirm's own button.
|
|
53
|
+
"destructive-ghost": "text-intent-error-foreground hover:bg-intent-error hover:text-intent-error-foreground",
|
|
52
54
|
link: "text-primary-text dark:text-primary-text underline-offset-4 hover:underline"
|
|
53
55
|
},
|
|
54
56
|
size: {
|
package/dist/index.d.mts
CHANGED
|
@@ -12,7 +12,7 @@ import { LucideIcon } from 'lucide-react';
|
|
|
12
12
|
import { ClassValue } from 'clsx';
|
|
13
13
|
|
|
14
14
|
declare const buttonVariants: (props?: ({
|
|
15
|
-
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
15
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "destructive-ghost" | null | undefined;
|
|
16
16
|
size?: "icon" | "default" | "sm" | "lg" | null | undefined;
|
|
17
17
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
18
18
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
package/dist/index.js
CHANGED
package/dist/marketing.js
CHANGED