@foxui/core 0.4.4 → 0.4.5
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.
|
@@ -65,7 +65,6 @@
|
|
|
65
65
|
WithElementRef<HTMLAnchorAttributes> & {
|
|
66
66
|
variant?: ButtonVariant;
|
|
67
67
|
size?: ButtonSize;
|
|
68
|
-
checkCurrent?: boolean;
|
|
69
68
|
};
|
|
70
69
|
</script>
|
|
71
70
|
|
|
@@ -85,7 +84,7 @@
|
|
|
85
84
|
{#if href}
|
|
86
85
|
<a
|
|
87
86
|
bind:this={ref}
|
|
88
|
-
class={cn(
|
|
87
|
+
class={cn(buttonVariants({ variant, size }), className)}
|
|
89
88
|
{href}
|
|
90
89
|
{...restProps}
|
|
91
90
|
>
|
|
@@ -94,7 +93,7 @@
|
|
|
94
93
|
{:else}
|
|
95
94
|
<button
|
|
96
95
|
bind:this={ref}
|
|
97
|
-
class={cn(
|
|
96
|
+
class={cn(buttonVariants({ variant, size }), className)}
|
|
98
97
|
{type}
|
|
99
98
|
{...restProps}
|
|
100
99
|
>
|
|
@@ -103,7 +103,6 @@ export type ButtonSize = VariantProps<typeof buttonVariants>['size'];
|
|
|
103
103
|
export type ButtonProps = WithElementRef<HTMLButtonAttributes> & WithElementRef<HTMLAnchorAttributes> & {
|
|
104
104
|
variant?: ButtonVariant;
|
|
105
105
|
size?: ButtonSize;
|
|
106
|
-
checkCurrent?: boolean;
|
|
107
106
|
};
|
|
108
107
|
declare const Button: import("svelte").Component<ButtonProps, {}, "ref">;
|
|
109
108
|
type Button = ReturnType<typeof Button>;
|