@protonradio/proton-ui 0.3.3-beta1 → 0.3.3-beta3
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 +36 -5
- package/dist/proton-ui.es.js +1378 -1333
- package/dist/proton-ui.es.js.map +1 -1
- package/dist/proton-ui.umd.js +10 -10
- package/dist/proton-ui.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/proton-ui.es.d.ts
CHANGED
|
@@ -46,29 +46,60 @@ export declare const BadgeVariants: {
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
export declare const Banner: {
|
|
49
|
-
({ variant, children, ...props }: BannerProps): JSX_2.Element;
|
|
50
|
-
Title: ({ children, ...props }:
|
|
51
|
-
|
|
49
|
+
({ variant, rounded, icon, iconCentered, children, ...props }: BannerProps): JSX_2.Element;
|
|
50
|
+
Title: ({ children, ...props }: {
|
|
51
|
+
children: ReactNode;
|
|
52
|
+
}) => JSX_2.Element;
|
|
53
|
+
Content: ({ children, ...props }: {
|
|
54
|
+
children: ReactNode;
|
|
55
|
+
}) => JSX_2.Element;
|
|
56
|
+
Icon: ({ children, icon, iconCentered, ...props }: BannerIconProps) => JSX_2.Element;
|
|
52
57
|
Colors: Record<BannerVariant, {
|
|
53
58
|
background: string;
|
|
54
59
|
title: string;
|
|
55
60
|
content: string;
|
|
56
61
|
icon: string;
|
|
57
62
|
}>;
|
|
63
|
+
Icons: {
|
|
64
|
+
success: JSX_2.Element;
|
|
65
|
+
warning: JSX_2.Element;
|
|
66
|
+
danger: JSX_2.Element;
|
|
67
|
+
};
|
|
58
68
|
};
|
|
59
69
|
|
|
60
|
-
declare interface
|
|
70
|
+
declare interface BannerIconProps {
|
|
71
|
+
/**
|
|
72
|
+
* The icon to display in the banner.
|
|
73
|
+
* Can be a boolean to conditionally show or hide,
|
|
74
|
+
* or a ReactNode to provide a custom icon.
|
|
75
|
+
*/
|
|
76
|
+
icon?: boolean | ReactNode;
|
|
77
|
+
/**
|
|
78
|
+
* Center the icon in the banner.
|
|
79
|
+
*/
|
|
80
|
+
iconCentered?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Optional custom icon or children for the icon area.
|
|
83
|
+
*/
|
|
84
|
+
children?: ReactNode;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
declare interface BannerProps extends BannerIconProps, React.HTMLAttributes<HTMLDivElement> {
|
|
61
88
|
/**
|
|
62
89
|
* The banners visual aesthetic.
|
|
63
90
|
*/
|
|
64
91
|
variant?: BannerVariant;
|
|
92
|
+
/**
|
|
93
|
+
* Round the corners of the banner.
|
|
94
|
+
*/
|
|
95
|
+
rounded?: boolean;
|
|
65
96
|
/**
|
|
66
97
|
* The content to display within the banner.
|
|
67
98
|
*/
|
|
68
99
|
children: ReactNode;
|
|
69
100
|
}
|
|
70
101
|
|
|
71
|
-
declare type BannerVariant = "default" | "success" | "warning" | "danger";
|
|
102
|
+
export declare type BannerVariant = "default" | "success" | "warning" | "danger";
|
|
72
103
|
|
|
73
104
|
export declare const BRAND: {
|
|
74
105
|
PRIMARY: string;
|