@lumx/react 3.7.6-alpha.0 → 3.7.6-alpha.2

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/index.d.ts CHANGED
@@ -1411,9 +1411,9 @@ type ManagedProps = Pick<ImageLightboxProps, 'isOpen' | 'images' | 'parentElemen
1411
1411
  * - Associate a trigger with an image to display on open
1412
1412
  * - Automatically provide a view transition between an image trigger and the displayed image on open & close
1413
1413
  *
1414
- * @param images Images to display in the image lightbox
1414
+ * @param initialProps Images to display in the image lightbox
1415
1415
  */
1416
- declare function useImageLightbox(images?: ImageLightboxProps['images']): {
1416
+ declare function useImageLightbox<P extends Partial<ImageLightboxProps>>(initialProps: P): {
1417
1417
  /**
1418
1418
  * Generates trigger props
1419
1419
  * @param index Provide an index to choose which image to display when the image lightbox opens.
@@ -1423,7 +1423,7 @@ declare function useImageLightbox(images?: ImageLightboxProps['images']): {
1423
1423
  ref: React.Ref<any>;
1424
1424
  };
1425
1425
  /** Props to forward to the ImageLightbox */
1426
- imageLightboxProps: ManagedProps;
1426
+ imageLightboxProps: P & ManagedProps;
1427
1427
  };
1428
1428
 
1429
1429
  /**