@protonradio/proton-ui 0.3.3-beta4 → 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, padding, 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
  */
@@ -94,9 +91,9 @@ declare interface BannerProps extends BannerIconProps, React.HTMLAttributes<HTML
94
91
  */
95
92
  rounded?: boolean;
96
93
  /**
97
- * The padding around the content of the banner.
94
+ * Compact padding around the content of the banner.
98
95
  */
99
- padding?: string;
96
+ compact?: boolean;
100
97
  /**
101
98
  * The content to display within the banner.
102
99
  */
@@ -155,7 +152,7 @@ declare interface ButtonProps {
155
152
  /**
156
153
  * The button's visual aesthetic.
157
154
  */
158
- variant?: "primary" | "secondary" | "danger" | "translucent";
155
+ variant?: ButtonVariant;
159
156
  /**
160
157
  * Should the button be non-interactive?
161
158
  */
@@ -178,6 +175,8 @@ declare interface ButtonProps {
178
175
  children?: React.ReactNode;
179
176
  }
180
177
 
178
+ export declare type ButtonVariant = "primary" | "secondary" | "danger" | "translucent";
179
+
181
180
  export declare const Cell: <T>(props: ProtonColumnProps<T>) => JSX.Element;
182
181
 
183
182
  export declare const Column: <T>(props: ProtonColumnProps<T>) => JSX.Element;