@protonradio/proton-ui 0.3.1 → 0.3.3-beta1
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 +10 -10
- package/dist/proton-ui.es.js +170 -186
- package/dist/proton-ui.es.js.map +1 -1
- package/dist/proton-ui.umd.js +7 -7
- 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,14 +46,14 @@ export declare const BadgeVariants: {
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
export declare const Banner: {
|
|
49
|
-
({ variant,
|
|
49
|
+
({ variant, children, ...props }: BannerProps): JSX_2.Element;
|
|
50
50
|
Title: ({ children, ...props }: BannerProps) => JSX_2.Element;
|
|
51
51
|
Content: ({ children, ...props }: BannerProps) => JSX_2.Element;
|
|
52
52
|
Colors: Record<BannerVariant, {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
background: string;
|
|
54
|
+
title: string;
|
|
55
|
+
content: string;
|
|
56
|
+
icon: string;
|
|
57
57
|
}>;
|
|
58
58
|
};
|
|
59
59
|
|
|
@@ -62,10 +62,6 @@ declare interface BannerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
62
62
|
* The banners visual aesthetic.
|
|
63
63
|
*/
|
|
64
64
|
variant?: BannerVariant;
|
|
65
|
-
/**
|
|
66
|
-
* The icon to display in the banner.
|
|
67
|
-
*/
|
|
68
|
-
icon?: ReactNode;
|
|
69
65
|
/**
|
|
70
66
|
* The content to display within the banner.
|
|
71
67
|
*/
|
|
@@ -124,7 +120,7 @@ declare interface ButtonProps {
|
|
|
124
120
|
/**
|
|
125
121
|
* The button's visual aesthetic.
|
|
126
122
|
*/
|
|
127
|
-
variant?: "primary" | "secondary" | "danger";
|
|
123
|
+
variant?: "primary" | "secondary" | "danger" | "translucent";
|
|
128
124
|
/**
|
|
129
125
|
* Should the button be non-interactive?
|
|
130
126
|
*/
|
|
@@ -133,6 +129,10 @@ declare interface ButtonProps {
|
|
|
133
129
|
* The URL that the button should link to. Turns the element into an `a` tag.
|
|
134
130
|
*/
|
|
135
131
|
href?: string;
|
|
132
|
+
/**
|
|
133
|
+
* Should the button show an external link icon?
|
|
134
|
+
*/
|
|
135
|
+
external?: boolean;
|
|
136
136
|
/**
|
|
137
137
|
* Called when the button is pressed (on release, not keydown).
|
|
138
138
|
*/
|