Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
b-owl committed Sep 4, 2024
1 parent ae29979 commit a646c07
Show file tree
Hide file tree
Showing 13 changed files with 564 additions and 322 deletions.
2 changes: 1 addition & 1 deletion components/ImageGallery.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { ImageGalleryProps } from "../types";
import "../styles/ImageGallery.css";
declare const ImageGallery: (props: ImageGalleryProps) => React.JSX.Element;
declare const ImageGallery: React.FC<ImageGalleryProps>;
export default ImageGallery;
8 changes: 8 additions & 0 deletions components/SkeletonLoader.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from "react";
import "../styles/SkeletonLoader.css";
interface SkeletonLoaderProps {
width: string | number;
height: string | number;
}
declare const SkeletonLoader: React.FC<SkeletonLoaderProps>;
export default SkeletonLoader;
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
import { ImageGalleryProps } from "./types/index";
export { default as ImageGallery } from "./components/ImageGallery";
export type { ImageGalleryProps };
273 changes: 174 additions & 99 deletions index.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.esm.js.map

Large diffs are not rendered by default.

271 changes: 173 additions & 98 deletions index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.js.map

Large diffs are not rendered by default.

308 changes: 192 additions & 116 deletions main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion types/components/ImageGallery.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { ImageGalleryProps } from "../types";
import "../styles/ImageGallery.css";
declare const ImageGallery: (props: ImageGalleryProps) => React.JSX.Element;
declare const ImageGallery: React.FC<ImageGalleryProps>;
export default ImageGallery;
8 changes: 8 additions & 0 deletions types/components/SkeletonLoader.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from "react";
import "../styles/SkeletonLoader.css";
interface SkeletonLoaderProps {
width: string | number;
height: string | number;
}
declare const SkeletonLoader: React.FC<SkeletonLoaderProps>;
export default SkeletonLoader;
3 changes: 1 addition & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export type ImageGalleryProps = BaseImageGalleryProps & (FullScreenProps | NonFu
export type AlbumModalProps = {
images: string[];
onClose: () => void;
onImageClick: (index: number) => void;
selectedImageIndex: number;
};
export type SingleImageModalProps = {
Expand All @@ -25,6 +24,6 @@ export type SingleImageModalProps = {
onClose: () => void;
onPrev: () => void;
onNext: () => void;
onThumbnailClick: (index: number) => void;
onThumbnailClick?: (index: number) => void;
};
export {};
3 changes: 1 addition & 2 deletions types/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export type ImageGalleryProps = BaseImageGalleryProps & (FullScreenProps | NonFu
export type AlbumModalProps = {
images: string[];
onClose: () => void;
onImageClick: (index: number) => void;
selectedImageIndex: number;
};
export type SingleImageModalProps = {
Expand All @@ -25,6 +24,6 @@ export type SingleImageModalProps = {
onClose: () => void;
onPrev: () => void;
onNext: () => void;
onThumbnailClick: (index: number) => void;
onThumbnailClick?: (index: number) => void;
};
export {};

0 comments on commit a646c07

Please sign in to comment.