@protonradio/proton-ui 0.7.4 → 0.7.5-beta10

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
@@ -52,6 +52,27 @@ declare interface ActionMenuProps {
52
52
  "data-testid"?: string;
53
53
  }
54
54
 
55
+ /**
56
+ * Base Overlay component for creating modal-like backgrounds.
57
+ * @interface BackdropProps
58
+ */
59
+ export declare function Backdrop({ fadeIn, onBackgroundEvent, children, }: BackdropProps): JSX_2.Element;
60
+
61
+ declare interface BackdropProps {
62
+ /**
63
+ * Whether to fade in the overlay.
64
+ */
65
+ fadeIn?: boolean;
66
+ /**
67
+ * Callback function to handle the background event (click or ESC key).
68
+ */
69
+ onBackgroundEvent?: () => void;
70
+ /**
71
+ * Children to render inside the overlay.
72
+ */
73
+ children?: React.ReactNode;
74
+ }
75
+
55
76
  export declare const Badge: ({ variant, children, ...props }: BadgeProps) => JSX_2.Element;
56
77
 
57
78
  export declare interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -349,12 +370,40 @@ declare interface IconProps {
349
370
  color?: string;
350
371
  }
351
372
 
373
+ /**
374
+ * ImageOverlay component for displaying an image with a blur effect.
375
+ * @interface ImageBackdropProps
376
+ */
377
+ export declare function ImageBackdrop({ image, imageUrl, onLoad, onBackgroundEvent, }: ImageBackdropProps): JSX_2.Element;
378
+
379
+ declare interface ImageBackdropProps {
380
+ /**
381
+ * The image to display in the overlay. Supports server side rendering.
382
+ */
383
+ image?: React.ReactNode;
384
+ /**
385
+ * The URL of the image to display in the overlay.
386
+ * @important Supported in client components only.
387
+ */
388
+ imageUrl?: string;
389
+ /**
390
+ * Callback function to handle the image load event.
391
+ * @important Supported in client components only.
392
+ */
393
+ onLoad?: (image: HTMLImageElement) => void;
394
+ /**
395
+ * Callback function to handle the background event.
396
+ */
397
+ onBackgroundEvent?: () => void;
398
+ }
399
+
352
400
  /**
353
401
  * A controlled and customizable input component with support for labels, prefixes, suffixes, and error states.
354
402
  */
355
403
  export declare const Input: default_2.ForwardRefExoticComponent<BaseInputProps & default_2.RefAttributes<HTMLInputElement>>;
356
404
 
357
405
  declare type Palette = {
406
+ BASE_COLOR: string;
358
407
  BRAND: {
359
408
  PRIMARY: string;
360
409
  PRIMARY_LIGHT: string;
@@ -456,7 +505,7 @@ export { Row }
456
505
  /**
457
506
  * A search input component with optional clear functionality and URL parameter sync.
458
507
  */
459
- export declare const SearchInput: ({ name, placeholder, autoComplete, isClearable, isDisabled, error, defaultValue, value: controlledValue, "data-testid": testId, onChange, onClear, }: SearchInputProps) => JSX_2.Element;
508
+ export declare const SearchInput: ({ name, placeholder, autoComplete, isClearable, error, defaultValue, value: controlledValue, "data-testid": testId, onChange, onClear, }: SearchInputProps) => JSX_2.Element;
460
509
 
461
510
  declare interface SearchInputProps extends Omit<BaseInputProps, "prefix" | "suffix" | "value" | "onChange" | "description" | "descriptionPosition" | "label"> {
462
511
  /** Should the clear button be shown when there is text? */
@@ -634,30 +683,6 @@ declare interface ThemeVariables {
634
683
  "--proton-control__secondary-super-light": string;
635
684
  }
636
685
 
637
- /**
638
- * A component that displays a loading tombstone. For use as a placeholder while loading content
639
- * @interface TombstoneProps
640
- */
641
- export declare const Tombstone: ({ width, height, borderRadius, }: TombstoneProps) => JSX_2.Element;
642
-
643
- declare interface TombstoneProps {
644
- /**
645
- * The width of the tombstone.
646
- * @default "100%"
647
- */
648
- width?: string;
649
- /**
650
- * The height of the tombstone.
651
- * @default "1.5rem"
652
- */
653
- height?: string;
654
- /**
655
- * The border radius of the tombstone.
656
- * @default "4px"
657
- */
658
- borderRadius?: string;
659
- }
660
-
661
686
  export declare function Tooltip({ children, arrow, ...props }: TooltipProps): JSX_2.Element;
662
687
 
663
688
  export declare interface TooltipProps extends Omit<TooltipProps_2, "children"> {