@protonradio/proton-ui 0.8.4 → 0.10.0

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/index.d.ts CHANGED
@@ -74,7 +74,7 @@ export declare const BadgeVariants: Record<BadgeVariant, BadgeVariant>;
74
74
  * @interface BannerProps
75
75
  */
76
76
  export declare const Banner: {
77
- ({ variant, rounded, icon, compact, children, ...props }: BannerProps): JSX_2.Element;
77
+ ({ variant, rounded, icon, compact, children, "data-testid": dataTestId, }: BannerProps): JSX_2.Element;
78
78
  Title: ({ children, ...props }: {
79
79
  children: ReactNode;
80
80
  }) => JSX_2.Element;
@@ -84,12 +84,6 @@ export declare const Banner: {
84
84
  Icon: ({ children, icon, ...props }: BannerIconProps) => JSX_2.Element;
85
85
  Action: ({ children, ...props }: ButtonProps) => JSX_2.Element;
86
86
  Actions: default_2.FC<BannerActionsProps>;
87
- colors: Record<BannerVariant, {
88
- background: string;
89
- title: string;
90
- content: string;
91
- icon: string;
92
- }>;
93
87
  icons: {
94
88
  success: JSX_2.Element;
95
89
  warning: JSX_2.Element;
@@ -120,7 +114,7 @@ declare interface BannerIconProps {
120
114
  children?: ReactNode;
121
115
  }
122
116
 
123
- declare interface BannerProps extends BannerIconProps, default_2.HTMLAttributes<HTMLDivElement> {
117
+ declare interface BannerProps extends BannerIconProps {
124
118
  /**
125
119
  * The banner's visual aesthetic.
126
120
  */
@@ -137,6 +131,10 @@ declare interface BannerProps extends BannerIconProps, default_2.HTMLAttributes<
137
131
  * The content to display within the banner.
138
132
  */
139
133
  children: ReactNode;
134
+ /**
135
+ * The data-testid to display within the banner.
136
+ */
137
+ "data-testid"?: string;
140
138
  }
141
139
 
142
140
  export declare type BannerVariant = "default" | "success" | "warning" | "danger";
@@ -294,9 +292,12 @@ export declare namespace COLORS {
294
292
  export {
295
293
  BRAND,
296
294
  GRAYSCALE,
295
+ SECONDARY,
297
296
  DANGER,
298
297
  WARNING,
299
- SUCCESS
298
+ SUCCESS,
299
+ DARK_GRAYSCALE,
300
+ DARK_SECONDARY
300
301
  }
301
302
  }
302
303
 
@@ -310,6 +311,28 @@ declare const DANGER: {
310
311
  SUPER_LIGHT: string;
311
312
  };
312
313
 
314
+ declare const DARK_GRAYSCALE: {
315
+ GRAY_SUPER_DARK: string;
316
+ GRAY_DARK: string;
317
+ GRAY_MEDIUM: string;
318
+ GRAY_MEDIUM_LIGHT: string;
319
+ GRAY_LIGHT: string;
320
+ GRAY_LIGHTEST: string;
321
+ GRAY_SUPER_LIGHT: string;
322
+ WHITE: string;
323
+ BORDER: string;
324
+ };
325
+
326
+ declare const DARK_SECONDARY: {
327
+ SECONDARY_SUPER_DARK: string;
328
+ SECONDARY_DARK: string;
329
+ SECONDARY_MEDIUM: string;
330
+ SECONDARY_MEDIUM_LIGHT: string;
331
+ SECONDARY_LIGHT: string;
332
+ SECONDARY_LIGHTEST: string;
333
+ SECONDARY_SUPER_LIGHT: string;
334
+ };
335
+
313
336
  /**
314
337
  * Intended use in overlay containers such as modals or popovers.
315
338
  */
@@ -407,6 +430,25 @@ declare type Palette = {
407
430
  SECONDARY_LIGHTEST: string;
408
431
  SECONDARY_SUPER_LIGHT: string;
409
432
  };
433
+ SUCCESS: {
434
+ SUCCESS_DARK: string;
435
+ SUCCESS_MEDIUM: string;
436
+ SUCCESS_LIGHT: string;
437
+ SUCCESS_SUPER_LIGHT: string;
438
+ };
439
+ WARNING: {
440
+ WARNING_DARK: string;
441
+ WARNING_MEDIUM: string;
442
+ WARNING_LIGHT: string;
443
+ WARNING_SUPER_LIGHT: string;
444
+ };
445
+ DANGER: {
446
+ DANGER_SUPER_DARK: string;
447
+ DANGER_DARK: string;
448
+ DANGER_MEDIUM: string;
449
+ DANGER_LIGHT: string;
450
+ DANGER_SUPER_LIGHT: string;
451
+ };
410
452
  };
411
453
 
412
454
  /**
@@ -492,13 +534,17 @@ export declare const Row: <T = object>(props: ProtonRowProps<T>) => JSX.Element;
492
534
  * Base Overlay component for creating modal-like backgrounds.
493
535
  * @interface ScreenOverlayProps
494
536
  */
495
- export declare function ScreenOverlay({ fadeIn, onClose, children, }: ScreenOverlayProps): JSX_2.Element;
537
+ export declare function ScreenOverlay({ fadeIn, fadeOut, onClose, children, }: ScreenOverlayProps): JSX_2.Element;
496
538
 
497
539
  declare interface ScreenOverlayProps {
498
540
  /**
499
541
  * Whether to fade in the overlay.
500
542
  */
501
543
  fadeIn?: boolean;
544
+ /**
545
+ * Whether to fade out the overlay. Fade out triggers on click.
546
+ */
547
+ fadeOut?: boolean;
502
548
  /**
503
549
  * Callback function to handle events (click or ESC key).
504
550
  */
@@ -527,6 +573,17 @@ declare interface SearchInputProps extends Omit<BaseInputProps, "prefix" | "suff
527
573
  value?: string;
528
574
  }
529
575
 
576
+ declare const SECONDARY: {
577
+ SUPER_DARK: string;
578
+ DARK: string;
579
+ MEDIUM: string;
580
+ MEDIUM_LIGHT: string;
581
+ LIGHT: string;
582
+ LIGHTEST: string;
583
+ SUPER_LIGHT: string;
584
+ WHITE: string;
585
+ };
586
+
530
587
  export { Section }
531
588
 
532
589
  export declare const Select: {