@protonradio/proton-ui 0.3.2 → 0.3.3-beta2
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 +38 -7
- package/dist/proton-ui.es.js +1375 -1343
- package/dist/proton-ui.es.js.map +1 -1
- package/dist/proton-ui.umd.js +9 -9
- 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,26 +46,53 @@ export declare const BadgeVariants: {
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
export declare const Banner: {
|
|
49
|
-
({ variant, icon, 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;
|
|
65
92
|
/**
|
|
66
|
-
*
|
|
93
|
+
* Round the corners of the banner.
|
|
67
94
|
*/
|
|
68
|
-
|
|
95
|
+
rounded?: boolean;
|
|
69
96
|
/**
|
|
70
97
|
* The content to display within the banner.
|
|
71
98
|
*/
|
|
@@ -124,7 +151,7 @@ declare interface ButtonProps {
|
|
|
124
151
|
/**
|
|
125
152
|
* The button's visual aesthetic.
|
|
126
153
|
*/
|
|
127
|
-
variant?: "primary" | "secondary" | "danger";
|
|
154
|
+
variant?: "primary" | "secondary" | "danger" | "translucent";
|
|
128
155
|
/**
|
|
129
156
|
* Should the button be non-interactive?
|
|
130
157
|
*/
|
|
@@ -133,6 +160,10 @@ declare interface ButtonProps {
|
|
|
133
160
|
* The URL that the button should link to. Turns the element into an `a` tag.
|
|
134
161
|
*/
|
|
135
162
|
href?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Should the button show an external link icon?
|
|
165
|
+
*/
|
|
166
|
+
external?: boolean;
|
|
136
167
|
/**
|
|
137
168
|
* Called when the button is pressed (on release, not keydown).
|
|
138
169
|
*/
|