@protonradio/proton-ui 0.7.5-beta7 → 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 -1
- package/dist/index.es.js +1220 -1223
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -374,15 +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({ imageUrl, onLoad, 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
389
|
/**
|
|
385
390
|
* Callback function to handle the image load event.
|
|
391
|
+
* @important Supported in client components only.
|
|
386
392
|
*/
|
|
387
393
|
onLoad?: (image: HTMLImageElement) => void;
|
|
388
394
|
/**
|