@protonradio/proton-ui 0.3.3-beta3 → 0.3.3-beta5

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.
@@ -46,14 +46,15 @@ export declare const BadgeVariants: {
46
46
  };
47
47
 
48
48
  export declare const Banner: {
49
- ({ variant, rounded, icon, iconCentered, children, ...props }: BannerProps): JSX_2.Element;
49
+ ({ variant, rounded, icon, compact, children, ...props }: BannerProps): JSX_2.Element;
50
50
  Title: ({ children, ...props }: {
51
51
  children: ReactNode;
52
52
  }) => JSX_2.Element;
53
53
  Content: ({ children, ...props }: {
54
54
  children: ReactNode;
55
55
  }) => JSX_2.Element;
56
- Icon: ({ children, icon, iconCentered, ...props }: BannerIconProps) => JSX_2.Element;
56
+ Icon: ({ children, icon, ...props }: BannerIconProps) => JSX_2.Element;
57
+ Action: ({ children, ...props }: ButtonProps) => JSX_2.Element;
57
58
  Colors: Record<BannerVariant, {
58
59
  background: string;
59
60
  title: string;
@@ -74,17 +75,13 @@ declare interface BannerIconProps {
74
75
  * or a ReactNode to provide a custom icon.
75
76
  */
76
77
  icon?: boolean | ReactNode;
77
- /**
78
- * Center the icon in the banner.
79
- */
80
- iconCentered?: boolean;
81
78
  /**
82
79
  * Optional custom icon or children for the icon area.
83
80
  */
84
81
  children?: ReactNode;
85
82
  }
86
83
 
87
- declare interface BannerProps extends BannerIconProps, React.HTMLAttributes<HTMLDivElement> {
84
+ declare interface BannerProps extends BannerIconProps, default_2.HTMLAttributes<HTMLDivElement> {
88
85
  /**
89
86
  * The banners visual aesthetic.
90
87
  */
@@ -93,6 +90,10 @@ declare interface BannerProps extends BannerIconProps, React.HTMLAttributes<HTML
93
90
  * Round the corners of the banner.
94
91
  */
95
92
  rounded?: boolean;
93
+ /**
94
+ * Compact padding around the content of the banner.
95
+ */
96
+ compact?: boolean;
96
97
  /**
97
98
  * The content to display within the banner.
98
99
  */
@@ -151,7 +152,7 @@ declare interface ButtonProps {
151
152
  /**
152
153
  * The button's visual aesthetic.
153
154
  */
154
- variant?: "primary" | "secondary" | "danger" | "translucent";
155
+ variant?: ButtonVariant;
155
156
  /**
156
157
  * Should the button be non-interactive?
157
158
  */
@@ -174,6 +175,8 @@ declare interface ButtonProps {
174
175
  children?: React.ReactNode;
175
176
  }
176
177
 
178
+ export declare type ButtonVariant = "primary" | "secondary" | "danger" | "translucent";
179
+
177
180
  export declare const Cell: <T>(props: ProtonColumnProps<T>) => JSX.Element;
178
181
 
179
182
  export declare const Column: <T>(props: ProtonColumnProps<T>) => JSX.Element;