react-motion-gallery 1.0.0

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.
@@ -0,0 +1,54 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React, { ReactNode } from 'react';
3
+
4
+ type MediaItem = {
5
+ kind: 'image';
6
+ src: string;
7
+ alt?: string;
8
+ } | {
9
+ kind: 'video';
10
+ src: string;
11
+ alt?: string;
12
+ thumb?: string;
13
+ };
14
+ type ThumbnailPosition = 'top' | 'right' | 'bottom' | 'left' | null;
15
+ type FSImageRender = (args: {
16
+ item: {
17
+ kind: 'image';
18
+ src: string;
19
+ alt?: string;
20
+ };
21
+ index: number;
22
+ isZoomed: boolean;
23
+ className: string;
24
+ baseStyle: React.CSSProperties;
25
+ }) => React.ReactNode;
26
+ type PlyrSourceBuilder = (item: MediaItem, index: number) => Plyr.SourceInfo;
27
+ type PlyrOptionsResolver = Plyr.Options | ((item: MediaItem, index: number) => Plyr.Options);
28
+ type Props = {
29
+ children: ReactNode;
30
+ thumbnailChildren?: ReactNode;
31
+ items?: MediaItem[];
32
+ urls?: string[];
33
+ thumbnails?: ThumbnailPosition;
34
+ thumbnailWidth?: number | string;
35
+ thumbnailHeight?: number | string;
36
+ loop?: boolean;
37
+ freeScroll?: boolean;
38
+ autoPlay?: boolean;
39
+ autoScroll?: boolean;
40
+ groupCells?: boolean;
41
+ centerAlign?: boolean;
42
+ gap?: number;
43
+ backgroundColor?: string;
44
+ fsRenderImage?: FSImageRender;
45
+ plyrSourceBuilder?: PlyrSourceBuilder;
46
+ plyrOptions?: PlyrOptionsResolver;
47
+ responsive?: boolean;
48
+ containerStyle?: React.CSSProperties;
49
+ sliderColumnStyle?: React.CSSProperties;
50
+ sliderHeight?: string;
51
+ };
52
+ declare function Gallery({ children, thumbnailChildren, items, urls, thumbnails, thumbnailWidth, thumbnailHeight, loop, freeScroll, autoPlay, autoScroll, groupCells, centerAlign, gap, backgroundColor, fsRenderImage, plyrSourceBuilder, plyrOptions, responsive, containerStyle, sliderColumnStyle, sliderHeight }: Props): react_jsx_runtime.JSX.Element;
53
+
54
+ export { type MediaItem, Gallery as default };
@@ -0,0 +1,54 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React, { ReactNode } from 'react';
3
+
4
+ type MediaItem = {
5
+ kind: 'image';
6
+ src: string;
7
+ alt?: string;
8
+ } | {
9
+ kind: 'video';
10
+ src: string;
11
+ alt?: string;
12
+ thumb?: string;
13
+ };
14
+ type ThumbnailPosition = 'top' | 'right' | 'bottom' | 'left' | null;
15
+ type FSImageRender = (args: {
16
+ item: {
17
+ kind: 'image';
18
+ src: string;
19
+ alt?: string;
20
+ };
21
+ index: number;
22
+ isZoomed: boolean;
23
+ className: string;
24
+ baseStyle: React.CSSProperties;
25
+ }) => React.ReactNode;
26
+ type PlyrSourceBuilder = (item: MediaItem, index: number) => Plyr.SourceInfo;
27
+ type PlyrOptionsResolver = Plyr.Options | ((item: MediaItem, index: number) => Plyr.Options);
28
+ type Props = {
29
+ children: ReactNode;
30
+ thumbnailChildren?: ReactNode;
31
+ items?: MediaItem[];
32
+ urls?: string[];
33
+ thumbnails?: ThumbnailPosition;
34
+ thumbnailWidth?: number | string;
35
+ thumbnailHeight?: number | string;
36
+ loop?: boolean;
37
+ freeScroll?: boolean;
38
+ autoPlay?: boolean;
39
+ autoScroll?: boolean;
40
+ groupCells?: boolean;
41
+ centerAlign?: boolean;
42
+ gap?: number;
43
+ backgroundColor?: string;
44
+ fsRenderImage?: FSImageRender;
45
+ plyrSourceBuilder?: PlyrSourceBuilder;
46
+ plyrOptions?: PlyrOptionsResolver;
47
+ responsive?: boolean;
48
+ containerStyle?: React.CSSProperties;
49
+ sliderColumnStyle?: React.CSSProperties;
50
+ sliderHeight?: string;
51
+ };
52
+ declare function Gallery({ children, thumbnailChildren, items, urls, thumbnails, thumbnailWidth, thumbnailHeight, loop, freeScroll, autoPlay, autoScroll, groupCells, centerAlign, gap, backgroundColor, fsRenderImage, plyrSourceBuilder, plyrOptions, responsive, containerStyle, sliderColumnStyle, sliderHeight }: Props): react_jsx_runtime.JSX.Element;
53
+
54
+ export { type MediaItem, Gallery as default };