@protonradio/proton-ui 0.3.0 → 0.3.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.
@@ -20,24 +20,59 @@ import { TableStateProps } from 'react-stately';
20
20
  import { TooltipProps as TooltipProps_2 } from 'react-aria-components';
21
21
  import { TooltipTriggerComponentProps } from 'react-aria-components';
22
22
 
23
+ export declare const Badge: ({ variant, children, ...props }: BadgeProps) => JSX_2.Element;
24
+
23
25
  export declare interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
24
26
  /**
25
27
  * The badge's visual aesthetic.
26
28
  */
27
29
  variant?: BadgeVariant;
28
- /**
29
- * Should the button be non-interactive?
30
- */
31
- isDisabled?: boolean;
32
30
  /**
33
31
  * The content to display within the badge.
34
32
  */
35
33
  children: ReactNode;
36
34
  }
37
35
 
38
- export declare type BadgeVariant = "success" | "warning" | "danger" | "primary" | "secondary" | "light" | "transparent";
36
+ export declare type BadgeVariant = "success" | "warning" | "danger" | "primary" | "secondary" | "dark" | "transparent";
37
+
38
+ export declare const BadgeVariants: {
39
+ readonly SUCCESS: "success";
40
+ readonly WARNING: "warning";
41
+ readonly DANGER: "danger";
42
+ readonly PRIMARY: "primary";
43
+ readonly SECONDARY: "secondary";
44
+ readonly DARK: "dark";
45
+ readonly TRANSPARENT: "transparent";
46
+ };
47
+
48
+ export declare const Banner: {
49
+ ({ variant, icon, children, ...props }: BannerProps): JSX_2.Element;
50
+ Title: ({ children, ...props }: BannerProps) => JSX_2.Element;
51
+ Content: ({ children, ...props }: BannerProps) => JSX_2.Element;
52
+ Colors: Record<BannerVariant, {
53
+ BACKGROUND: string;
54
+ TITLE: string;
55
+ CONTENT: string;
56
+ ICON: string;
57
+ }>;
58
+ };
59
+
60
+ declare interface BannerProps extends React.HTMLAttributes<HTMLDivElement> {
61
+ /**
62
+ * The banners visual aesthetic.
63
+ */
64
+ variant?: BannerVariant;
65
+ /**
66
+ * The icon to display in the banner.
67
+ */
68
+ icon?: ReactNode;
69
+ /**
70
+ * The content to display within the banner.
71
+ */
72
+ children: ReactNode;
73
+ }
39
74
 
40
- export declare type BannerVariant = "default" | "success" | "warning" | "danger";
75
+ declare type BannerVariant = "default" | "success" | "warning" | "danger";
41
76
 
42
77
  export declare const BRAND: {
43
78
  PRIMARY: string;