@protonradio/proton-ui 0.7.4 → 0.7.5-beta1

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
@@ -354,6 +354,31 @@ declare interface IconProps {
354
354
  */
355
355
  export declare const Input: default_2.ForwardRefExoticComponent<BaseInputProps & default_2.RefAttributes<HTMLInputElement>>;
356
356
 
357
+ /**
358
+ * Overlay component for displaying an image with a blur effect.
359
+ * @interface OverlayProps
360
+ */
361
+ export declare function Overlay({ imageUrl, fadeIn, onLoad, onBackgroundEvent, }: OverlayProps): JSX_2.Element;
362
+
363
+ declare interface OverlayProps {
364
+ /**
365
+ * The URL of the image to display in the overlay. If not provided, the overlay will be solid black.
366
+ */
367
+ imageUrl?: string;
368
+ /**
369
+ * Whether to fade in the overlay.
370
+ */
371
+ fadeIn?: boolean;
372
+ /**
373
+ * Callback function to handle the image load event.
374
+ */
375
+ onLoad?: (image: HTMLImageElement) => void;
376
+ /**
377
+ * Callback function to handle the background event.
378
+ */
379
+ onBackgroundEvent?: () => void;
380
+ }
381
+
357
382
  declare type Palette = {
358
383
  BRAND: {
359
384
  PRIMARY: string;
@@ -456,7 +481,7 @@ export { Row }
456
481
  /**
457
482
  * A search input component with optional clear functionality and URL parameter sync.
458
483
  */
459
- export declare const SearchInput: ({ name, placeholder, autoComplete, isClearable, isDisabled, error, defaultValue, value: controlledValue, "data-testid": testId, onChange, onClear, }: SearchInputProps) => JSX_2.Element;
484
+ export declare const SearchInput: ({ name, placeholder, autoComplete, isClearable, error, defaultValue, value: controlledValue, "data-testid": testId, onChange, onClear, }: SearchInputProps) => JSX_2.Element;
460
485
 
461
486
  declare interface SearchInputProps extends Omit<BaseInputProps, "prefix" | "suffix" | "value" | "onChange" | "description" | "descriptionPosition" | "label"> {
462
487
  /** Should the clear button be shown when there is text? */
@@ -634,30 +659,6 @@ declare interface ThemeVariables {
634
659
  "--proton-control__secondary-super-light": string;
635
660
  }
636
661
 
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
662
  export declare function Tooltip({ children, arrow, ...props }: TooltipProps): JSX_2.Element;
662
663
 
663
664
  export declare interface TooltipProps extends Omit<TooltipProps_2, "children"> {