@r2digisolutions/ui 0.12.0 → 0.12.1
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.
|
@@ -26,7 +26,14 @@
|
|
|
26
26
|
ghost:
|
|
27
27
|
'text-purple-600 hover:bg-purple-50 hover:text-purple-700 focus:ring-purple-500 bg-transparent shadow-none hover:shadow-md',
|
|
28
28
|
gradient:
|
|
29
|
-
'bg-gradient-to-r from-pink-500 via-purple-500 to-indigo-500 text-white hover:from-pink-600 hover:via-purple-600 hover:to-indigo-600 focus:ring-purple-500 shadow-purple-500/30'
|
|
29
|
+
'bg-gradient-to-r from-pink-500 via-purple-500 to-indigo-500 text-white hover:from-pink-600 hover:via-purple-600 hover:to-indigo-600 focus:ring-purple-500 shadow-purple-500/30',
|
|
30
|
+
danger:
|
|
31
|
+
'bg-gradient-to-r from-red-500 via-purple-500 to-indigo-500 text-white hover:from-red-600 hover:via-purple-600 hover:to-indigo-600 focus:ring-purple-500 shadow-purple-500/30',
|
|
32
|
+
success:
|
|
33
|
+
'bg-gradient-to-r from-green-500 via-purple-500 to-indigo-500 text-white hover:from-green-600 hover:via-purple-600 hover:to-indigo-600 focus:ring-purple-500 shadow-purple-500/30',
|
|
34
|
+
warning:
|
|
35
|
+
'bg-gradient-to-r from-yellow-500 via-purple-500 to-indigo-500 text-white hover:from-yellow-600 hover:via-purple-600 hover:to-indigo-600 focus:ring-purple-500 shadow-purple-500/30',
|
|
36
|
+
info: 'bg-gradient-to-r from-blue-500 via-purple-500 to-indigo-500 text-white hover:from-blue-600 hover:via-purple-600 hover:to-indigo-600 focus:ring-purple-500 shadow-purple-500/30'
|
|
30
37
|
};
|
|
31
38
|
|
|
32
39
|
const sizeClasses: Record<typeof size, string> = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IBaseProps } from "../../../types/base.type.js";
|
|
2
2
|
import type { TSize } from "../../../types/sizes.type.js";
|
|
3
3
|
import type { Snippet } from "svelte";
|
|
4
|
-
export type TButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'gradient';
|
|
4
|
+
export type TButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'gradient' | 'danger' | 'success' | 'warning' | 'info';
|
|
5
5
|
export type TButtonType = 'submit' | 'reset' | 'button';
|
|
6
6
|
export interface Props extends IBaseProps {
|
|
7
7
|
variant?: TButtonVariant;
|