@protonradio/proton-ui 0.7.5-beta8 → 0.7.5-beta9
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.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.es.js +179 -170
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -374,16 +374,21 @@ declare interface IconProps {
|
|
|
374
374
|
* ImageOverlay component for displaying an image with a blur effect.
|
|
375
375
|
* @interface ImageBackdropProps
|
|
376
376
|
*/
|
|
377
|
-
export declare function ImageBackdrop({ image, onBackgroundEvent, }: ImageBackdropProps): JSX_2.Element;
|
|
377
|
+
export declare function ImageBackdrop({ image, imageUrl, onLoad, onBackgroundEvent, }: ImageBackdropProps): JSX_2.Element;
|
|
378
378
|
|
|
379
379
|
declare interface ImageBackdropProps {
|
|
380
|
+
/**
|
|
381
|
+
* The image to display in the overlay. Supports server side rendering.
|
|
382
|
+
*/
|
|
383
|
+
image?: React.ReactNode;
|
|
380
384
|
/**
|
|
381
385
|
* The URL of the image to display in the overlay.
|
|
386
|
+
* @important Supported in client components only.
|
|
382
387
|
*/
|
|
383
388
|
imageUrl?: string;
|
|
384
|
-
image?: React.ReactNode;
|
|
385
389
|
/**
|
|
386
390
|
* Callback function to handle the image load event.
|
|
391
|
+
* @important Supported in client components only.
|
|
387
392
|
*/
|
|
388
393
|
onLoad?: (image: HTMLImageElement) => void;
|
|
389
394
|
/**
|