@protonradio/proton-ui 0.3.3-beta5 → 0.3.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.
- package/dist/proton-ui.es.d.ts +21 -11
- package/dist/proton-ui.es.js +1204 -1212
- package/dist/proton-ui.es.js.map +1 -1
- package/dist/proton-ui.umd.js +8 -8
- package/dist/proton-ui.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +6 -3
package/dist/proton-ui.es.d.ts
CHANGED
|
@@ -33,16 +33,15 @@ export declare interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
33
33
|
children: ReactNode;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export declare type BadgeVariant = "
|
|
36
|
+
export declare type BadgeVariant = "primary" | "secondary" | "transparent" | "success" | "warning" | "danger";
|
|
37
37
|
|
|
38
38
|
export declare const BadgeVariants: {
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly TRANSPARENT: "transparent";
|
|
39
|
+
readonly primary: "primary";
|
|
40
|
+
readonly secondary: "secondary";
|
|
41
|
+
readonly transparent: "transparent";
|
|
42
|
+
readonly success: "success";
|
|
43
|
+
readonly warning: "warning";
|
|
44
|
+
readonly danger: "danger";
|
|
46
45
|
};
|
|
47
46
|
|
|
48
47
|
export declare const Banner: {
|
|
@@ -55,19 +54,30 @@ export declare const Banner: {
|
|
|
55
54
|
}) => JSX_2.Element;
|
|
56
55
|
Icon: ({ children, icon, ...props }: BannerIconProps) => JSX_2.Element;
|
|
57
56
|
Action: ({ children, ...props }: ButtonProps) => JSX_2.Element;
|
|
58
|
-
|
|
57
|
+
Actions: default_2.FC<BannerActionsProps>;
|
|
58
|
+
colors: Record<BannerVariant, {
|
|
59
59
|
background: string;
|
|
60
60
|
title: string;
|
|
61
61
|
content: string;
|
|
62
62
|
icon: string;
|
|
63
63
|
}>;
|
|
64
|
-
|
|
64
|
+
icons: {
|
|
65
65
|
success: JSX_2.Element;
|
|
66
66
|
warning: JSX_2.Element;
|
|
67
67
|
danger: JSX_2.Element;
|
|
68
68
|
};
|
|
69
|
+
variants: {
|
|
70
|
+
readonly default: "default";
|
|
71
|
+
readonly success: "success";
|
|
72
|
+
readonly warning: "warning";
|
|
73
|
+
readonly danger: "danger";
|
|
74
|
+
};
|
|
69
75
|
};
|
|
70
76
|
|
|
77
|
+
declare interface BannerActionsProps {
|
|
78
|
+
children: ReactNode;
|
|
79
|
+
}
|
|
80
|
+
|
|
71
81
|
declare interface BannerIconProps {
|
|
72
82
|
/**
|
|
73
83
|
* The icon to display in the banner.
|
|
@@ -83,7 +93,7 @@ declare interface BannerIconProps {
|
|
|
83
93
|
|
|
84
94
|
declare interface BannerProps extends BannerIconProps, default_2.HTMLAttributes<HTMLDivElement> {
|
|
85
95
|
/**
|
|
86
|
-
* The
|
|
96
|
+
* The banner's visual aesthetic.
|
|
87
97
|
*/
|
|
88
98
|
variant?: BannerVariant;
|
|
89
99
|
/**
|