@neuctra/ui 0.2.2 → 0.2.3
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/components/basic/Accordation.d.ts +27 -18
- package/dist/components/basic/Alert.d.ts +15 -2
- package/dist/components/basic/Avatar.d.ts +5 -3
- package/dist/components/basic/Badge.d.ts +3 -3
- package/dist/components/basic/Button.d.ts +15 -17
- package/dist/components/basic/Card.d.ts +7 -49
- package/dist/components/basic/CheckRadioInput.d.ts +3 -1
- package/dist/components/basic/Container.d.ts +28 -26
- package/dist/components/basic/Drawer.d.ts +20 -11
- package/dist/components/basic/Flexbox.d.ts +18 -10
- package/dist/components/basic/GridView.d.ts +7 -5
- package/dist/components/basic/Image.d.ts +31 -6
- package/dist/components/basic/Input.d.ts +18 -10
- package/dist/components/basic/List.d.ts +11 -3
- package/dist/components/basic/Modal.d.ts +15 -2
- package/dist/components/basic/Section.d.ts +36 -0
- package/dist/components/basic/Stack.d.ts +27 -0
- package/dist/components/basic/Table.d.ts +18 -54
- package/dist/components/basic/Tabs.d.ts +28 -28
- package/dist/components/basic/Text.d.ts +19 -32
- package/dist/index.cjs.js +68 -178
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +17 -18
- package/dist/index.es.js +3542 -4766
- package/dist/index.es.js.map +1 -0
- package/dist/src/components/avatar/AvatarGroup.js +9 -0
- package/dist/src/components/avatar/AvatarWithStatus.js +18 -0
- package/dist/src/components/basic/Accordation.js +74 -0
- package/dist/src/components/basic/Alert.js +126 -0
- package/dist/src/components/basic/AudioGallery.js +425 -0
- package/dist/src/components/basic/AudioPlayer.js +116 -0
- package/dist/src/components/basic/Avatar.js +181 -0
- package/dist/src/components/basic/Badge.js +66 -0
- package/dist/src/components/basic/Button.js +101 -0
- package/dist/src/components/basic/Card.js +45 -0
- package/dist/src/components/basic/CheckRadioInput.js +83 -0
- package/dist/src/components/basic/Container.js +45 -0
- package/dist/src/components/basic/Drawer.js +94 -0
- package/dist/src/components/basic/DropDown.js +316 -0
- package/dist/src/components/basic/Flexbox.js +67 -0
- package/dist/src/components/basic/GridView.js +51 -0
- package/dist/src/components/basic/Image.js +95 -0
- package/dist/src/components/basic/Input.js +123 -0
- package/dist/src/components/basic/List.js +71 -0
- package/dist/src/components/basic/Modal.js +88 -0
- package/dist/src/components/basic/Section.js +100 -0
- package/dist/src/components/basic/Stack.js +75 -0
- package/dist/src/components/basic/Table.js +32 -0
- package/dist/src/components/basic/Tabs.js +149 -0
- package/dist/src/components/basic/Text.js +117 -0
- package/dist/src/index.js +44 -0
- package/dist/types/src/components/basic/Accordation.d.ts +44 -0
- package/dist/types/{components → src/components}/basic/Alert.d.ts +15 -2
- package/dist/types/{components → src/components}/basic/Avatar.d.ts +5 -3
- package/dist/types/{components → src/components}/basic/Badge.d.ts +3 -3
- package/dist/types/src/components/basic/Button.d.ts +26 -0
- package/dist/types/src/components/basic/Card.d.ts +28 -0
- package/dist/types/{components → src/components}/basic/CheckRadioInput.d.ts +3 -1
- package/dist/types/src/components/basic/Container.d.ts +32 -0
- package/dist/types/src/components/basic/Drawer.d.ts +33 -0
- package/dist/types/src/components/basic/Flexbox.d.ts +25 -0
- package/dist/types/{components → src/components}/basic/GridView.d.ts +7 -5
- package/dist/types/src/components/basic/Image.d.ts +58 -0
- package/dist/types/{components → src/components}/basic/Input.d.ts +18 -10
- package/dist/types/{components → src/components}/basic/List.d.ts +11 -3
- package/dist/types/src/components/basic/Modal.d.ts +24 -0
- package/dist/types/src/components/basic/Section.d.ts +36 -0
- package/dist/types/src/components/basic/Stack.d.ts +27 -0
- package/dist/types/src/components/basic/Table.d.ts +23 -0
- package/dist/types/src/components/basic/Tabs.d.ts +47 -0
- package/dist/types/src/components/basic/Text.d.ts +26 -0
- package/dist/types/{index.d.ts → src/index.d.ts} +17 -18
- package/dist/types/vite.config.d.ts +2 -0
- package/dist/ui.css +1 -1
- package/dist/vite.config.js +34 -0
- package/package.json +2 -1
- package/dist/components/basic/ImageGallery.d.ts +0 -21
- package/dist/components/basic/VideoGallery.d.ts +0 -136
- package/dist/components/basic/VideoPlayer.d.ts +0 -36
- package/dist/types/components/basic/Accordation.d.ts +0 -35
- package/dist/types/components/basic/Button.d.ts +0 -28
- package/dist/types/components/basic/Card.d.ts +0 -70
- package/dist/types/components/basic/Container.d.ts +0 -30
- package/dist/types/components/basic/Drawer.d.ts +0 -24
- package/dist/types/components/basic/Flexbox.d.ts +0 -17
- package/dist/types/components/basic/Image.d.ts +0 -33
- package/dist/types/components/basic/ImageGallery.d.ts +0 -21
- package/dist/types/components/basic/Modal.d.ts +0 -11
- package/dist/types/components/basic/Table.d.ts +0 -59
- package/dist/types/components/basic/Tabs.d.ts +0 -47
- package/dist/types/components/basic/Text.d.ts +0 -39
- package/dist/types/components/basic/VideoGallery.d.ts +0 -136
- package/dist/types/components/basic/VideoPlayer.d.ts +0 -36
- /package/dist/types/{components → src/components}/avatar/AvatarGroup.d.ts +0 -0
- /package/dist/types/{components → src/components}/avatar/AvatarWithStatus.d.ts +0 -0
- /package/dist/types/{components → src/components}/basic/AudioGallery.d.ts +0 -0
- /package/dist/types/{components → src/components}/basic/AudioPlayer.d.ts +0 -0
- /package/dist/types/{components → src/components}/basic/DropDown.d.ts +0 -0
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties } from "react";
|
|
2
|
-
type ScreenSize = "sm" | "md" | "lg";
|
|
3
|
-
type ResponsiveProp<T> = T | Partial<Record<ScreenSize, T>>;
|
|
4
|
-
interface ContainerProps {
|
|
5
|
-
display?: ResponsiveProp<"block" | "flex" | "grid" | "inline-block">;
|
|
6
|
-
flexDirection?: ResponsiveProp<"row" | "column" | "row-reverse" | "column-reverse">;
|
|
7
|
-
justifyContent?: ResponsiveProp<"flex-start" | "center" | "flex-end" | "space-between" | "space-around" | "space-evenly">;
|
|
8
|
-
alignItems?: ResponsiveProp<"flex-start" | "center" | "flex-end" | "stretch" | "baseline">;
|
|
9
|
-
gridTemplateColumns?: ResponsiveProp<string>;
|
|
10
|
-
gridTemplateRows?: ResponsiveProp<string>;
|
|
11
|
-
gap?: ResponsiveProp<string>;
|
|
12
|
-
rowGap?: ResponsiveProp<string>;
|
|
13
|
-
columnGap?: ResponsiveProp<string>;
|
|
14
|
-
width?: ResponsiveProp<string>;
|
|
15
|
-
maxWidth?: ResponsiveProp<string>;
|
|
16
|
-
height?: ResponsiveProp<string>;
|
|
17
|
-
padding?: ResponsiveProp<string>;
|
|
18
|
-
margin?: ResponsiveProp<string>;
|
|
19
|
-
textAlign?: ResponsiveProp<"left" | "center" | "right">;
|
|
20
|
-
backgroundColor?: string;
|
|
21
|
-
border?: ResponsiveProp<string>;
|
|
22
|
-
borderRadius?: ResponsiveProp<string>;
|
|
23
|
-
boxShadow?: ResponsiveProp<string>;
|
|
24
|
-
overflow?: ResponsiveProp<"visible" | "hidden" | "scroll" | "auto">;
|
|
25
|
-
children: React.ReactNode;
|
|
26
|
-
className?: string;
|
|
27
|
-
style?: CSSProperties;
|
|
28
|
-
}
|
|
29
|
-
export declare const Container: React.FC<ContainerProps>;
|
|
30
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface DrawerButtonProps {
|
|
3
|
-
label?: string;
|
|
4
|
-
icon?: React.ReactNode;
|
|
5
|
-
iconPosition?: "left" | "right";
|
|
6
|
-
onClick?: () => void;
|
|
7
|
-
style?: React.CSSProperties;
|
|
8
|
-
}
|
|
9
|
-
interface DrawerProps {
|
|
10
|
-
open: boolean;
|
|
11
|
-
onClose?: () => void;
|
|
12
|
-
position?: "left" | "right" | "top" | "bottom";
|
|
13
|
-
width?: string;
|
|
14
|
-
height?: string;
|
|
15
|
-
backgroundColor?: string;
|
|
16
|
-
transitionDuration?: number;
|
|
17
|
-
style?: React.CSSProperties;
|
|
18
|
-
children?: React.ReactNode;
|
|
19
|
-
showCloseButton?: boolean;
|
|
20
|
-
closeButtonStyle?: React.CSSProperties;
|
|
21
|
-
}
|
|
22
|
-
declare const DrawerButton: React.FC<DrawerButtonProps>;
|
|
23
|
-
declare const Drawer: React.FC<DrawerProps>;
|
|
24
|
-
export { Drawer, DrawerButton };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
type ScreenSize = "sm" | "md" | "lg";
|
|
3
|
-
interface FlexboxProps {
|
|
4
|
-
direction?: "row" | "column" | Partial<Record<ScreenSize, "row" | "column">>;
|
|
5
|
-
align?: "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
6
|
-
justify?: "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly";
|
|
7
|
-
gap?: number | string;
|
|
8
|
-
padding?: number | string;
|
|
9
|
-
backgroundColor?: string;
|
|
10
|
-
width?: string;
|
|
11
|
-
maxWidth?: string;
|
|
12
|
-
height?: string;
|
|
13
|
-
style?: React.CSSProperties;
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
}
|
|
16
|
-
export declare const Flexbox: React.FC<FlexboxProps>;
|
|
17
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface ImageProps {
|
|
3
|
-
src?: string;
|
|
4
|
-
alt?: string;
|
|
5
|
-
width?: string;
|
|
6
|
-
height?: string;
|
|
7
|
-
borderRadius?: string;
|
|
8
|
-
borderColor?: string;
|
|
9
|
-
borderStyle?: "solid" | "dashed" | "dotted" | "double" | "none";
|
|
10
|
-
borderWidth?: string;
|
|
11
|
-
shadow?: boolean;
|
|
12
|
-
boxShadow?: string;
|
|
13
|
-
opacity?: number;
|
|
14
|
-
objectFit?: "cover" | "contain" | "fill" | "none" | "scale-down";
|
|
15
|
-
overlayText?: string;
|
|
16
|
-
overlayColor?: string;
|
|
17
|
-
svgIcon?: React.ReactNode;
|
|
18
|
-
responsive?: boolean;
|
|
19
|
-
padding?: string;
|
|
20
|
-
margin?: string;
|
|
21
|
-
lazyLoad?: boolean;
|
|
22
|
-
hoverOpacity?: number;
|
|
23
|
-
hoverShadow?: boolean;
|
|
24
|
-
hoverScale?: number;
|
|
25
|
-
hoverRotate?: number;
|
|
26
|
-
transitionDuration?: string;
|
|
27
|
-
overflow?: "hidden" | "scroll" | "auto" | "visible" | "x" | "y";
|
|
28
|
-
className?: string;
|
|
29
|
-
style?: React.CSSProperties;
|
|
30
|
-
onClick?: (event: React.MouseEvent<HTMLDivElement | HTMLImageElement>) => void;
|
|
31
|
-
}
|
|
32
|
-
export declare const Image: React.FC<ImageProps>;
|
|
33
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface BreakpointColumns {
|
|
3
|
-
sm?: number;
|
|
4
|
-
md?: number;
|
|
5
|
-
lg?: number;
|
|
6
|
-
xl?: number;
|
|
7
|
-
default?: number;
|
|
8
|
-
}
|
|
9
|
-
interface ImageGalleryProps {
|
|
10
|
-
images: {
|
|
11
|
-
src: string;
|
|
12
|
-
alt?: string;
|
|
13
|
-
}[];
|
|
14
|
-
columns?: number | BreakpointColumns;
|
|
15
|
-
gap?: string;
|
|
16
|
-
layout?: "grid" | "masonry";
|
|
17
|
-
lightbox?: boolean;
|
|
18
|
-
className?: string;
|
|
19
|
-
}
|
|
20
|
-
export declare const ImageGallery: React.FC<ImageGalleryProps>;
|
|
21
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode, CSSProperties } from "react";
|
|
2
|
-
interface ModalProps {
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
overlayStyle?: CSSProperties;
|
|
7
|
-
modalStyle?: CSSProperties;
|
|
8
|
-
closeButtonStyle?: CSSProperties;
|
|
9
|
-
}
|
|
10
|
-
export declare const Modal: React.FC<ModalProps>;
|
|
11
|
-
export {};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
interface Column {
|
|
3
|
-
key: string;
|
|
4
|
-
label: string;
|
|
5
|
-
sortable?: boolean;
|
|
6
|
-
icon?: ReactNode;
|
|
7
|
-
width?: string | number;
|
|
8
|
-
align?: "left" | "center" | "right";
|
|
9
|
-
headerClassName?: string;
|
|
10
|
-
cellClassName?: string;
|
|
11
|
-
render?: (value: any, row: Record<string, any>) => ReactNode;
|
|
12
|
-
}
|
|
13
|
-
interface TableProps {
|
|
14
|
-
columns: Column[];
|
|
15
|
-
data: Record<string, any>[];
|
|
16
|
-
className?: string;
|
|
17
|
-
pagination?: boolean;
|
|
18
|
-
rowsPerPage?: number;
|
|
19
|
-
colors?: {
|
|
20
|
-
headerBg?: string;
|
|
21
|
-
headerText?: string;
|
|
22
|
-
rowBg?: string;
|
|
23
|
-
rowText?: string;
|
|
24
|
-
borderColor?: string;
|
|
25
|
-
hoverBg?: string;
|
|
26
|
-
paginationBg?: string;
|
|
27
|
-
paginationText?: string;
|
|
28
|
-
evenRowBg?: string;
|
|
29
|
-
selectedRowBg?: string;
|
|
30
|
-
};
|
|
31
|
-
borderRadius?: {
|
|
32
|
-
table?: string;
|
|
33
|
-
header?: string;
|
|
34
|
-
pagination?: string;
|
|
35
|
-
};
|
|
36
|
-
sortable?: boolean;
|
|
37
|
-
defaultSort?: {
|
|
38
|
-
column: string;
|
|
39
|
-
direction: "asc" | "desc";
|
|
40
|
-
};
|
|
41
|
-
bodyAlign?: "left" | "center" | "right";
|
|
42
|
-
headerAlign?: "left" | "center" | "right";
|
|
43
|
-
rowSelection?: {
|
|
44
|
-
enabled?: boolean;
|
|
45
|
-
onSelect?: (selectedRows: Record<string, any>[]) => void;
|
|
46
|
-
selectionColumnWidth?: string;
|
|
47
|
-
selectionColumnHeader?: ReactNode;
|
|
48
|
-
};
|
|
49
|
-
emptyState?: ReactNode;
|
|
50
|
-
onRowClick?: (row: Record<string, any>, index: number) => void;
|
|
51
|
-
rowClassName?: (row: Record<string, any>, index: number) => string;
|
|
52
|
-
cellPadding?: string;
|
|
53
|
-
headerCellPadding?: string;
|
|
54
|
-
stickyHeader?: boolean;
|
|
55
|
-
maxHeight?: string;
|
|
56
|
-
scrollShadow?: boolean;
|
|
57
|
-
}
|
|
58
|
-
export declare const Table: React.FC<TableProps>;
|
|
59
|
-
export {};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties } from "react";
|
|
2
|
-
interface TabItem {
|
|
3
|
-
label: React.ReactNode;
|
|
4
|
-
content: React.ReactNode;
|
|
5
|
-
icon?: React.ReactNode;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
ariaLabel?: string;
|
|
8
|
-
}
|
|
9
|
-
interface TabsBaseProps {
|
|
10
|
-
tabs: TabItem[];
|
|
11
|
-
defaultActive?: number;
|
|
12
|
-
activeTabClassName?: string;
|
|
13
|
-
inactiveTabClassName?: string;
|
|
14
|
-
tabContainerClassName?: string;
|
|
15
|
-
contentContainerClassName?: string;
|
|
16
|
-
className?: string;
|
|
17
|
-
activeTabStyle?: CSSProperties;
|
|
18
|
-
inactiveTabStyle?: CSSProperties;
|
|
19
|
-
tabContainerStyle?: CSSProperties;
|
|
20
|
-
contentContainerStyle?: CSSProperties;
|
|
21
|
-
style?: CSSProperties;
|
|
22
|
-
tabsWidth?: string | number;
|
|
23
|
-
tabGap?: number;
|
|
24
|
-
tabPadding?: string;
|
|
25
|
-
tabBorderRadius?: number;
|
|
26
|
-
primaryColor?: string;
|
|
27
|
-
textColor?: string;
|
|
28
|
-
backgroundColor?: string;
|
|
29
|
-
hoverTextColor?: string;
|
|
30
|
-
disabledColor?: string;
|
|
31
|
-
responsiveBreakpoint?: number;
|
|
32
|
-
showDrawerLabel?: string;
|
|
33
|
-
drawerIcon?: React.ReactNode;
|
|
34
|
-
transitionDuration?: number;
|
|
35
|
-
onTabChange?: (index: number) => void;
|
|
36
|
-
role?: string;
|
|
37
|
-
ariaOrientation?: "horizontal" | "vertical";
|
|
38
|
-
}
|
|
39
|
-
export declare const LeftTabs: React.FC<TabsBaseProps>;
|
|
40
|
-
export declare const TopTabs: React.FC<TabsBaseProps>;
|
|
41
|
-
export declare const RightTabs: React.FC<TabsBaseProps>;
|
|
42
|
-
export declare const Tabs: {
|
|
43
|
-
Left: React.FC<TabsBaseProps>;
|
|
44
|
-
Top: React.FC<TabsBaseProps>;
|
|
45
|
-
Right: React.FC<TabsBaseProps>;
|
|
46
|
-
};
|
|
47
|
-
export {};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import React, { JSX } from "react";
|
|
2
|
-
interface TextProps {
|
|
3
|
-
as?: keyof JSX.IntrinsicElements;
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
color?: string;
|
|
7
|
-
bgColor?: string;
|
|
8
|
-
fontSize?: string;
|
|
9
|
-
fontWeight?: "normal" | "bold" | "lighter" | "bolder" | number;
|
|
10
|
-
textAlign?: "left" | "center" | "right" | "justify";
|
|
11
|
-
textTransform?: "uppercase" | "lowercase" | "capitalize" | "none";
|
|
12
|
-
lineHeight?: string;
|
|
13
|
-
letterSpacing?: string;
|
|
14
|
-
maxWidth?: string;
|
|
15
|
-
padding?: string;
|
|
16
|
-
margin?: string;
|
|
17
|
-
borderRadius?: string;
|
|
18
|
-
boxShadow?: string;
|
|
19
|
-
shadowColor?: string;
|
|
20
|
-
wordBreak?: "normal" | "break-word" | "break-all" | "keep-all";
|
|
21
|
-
italic?: boolean;
|
|
22
|
-
bold?: boolean;
|
|
23
|
-
underline?: boolean;
|
|
24
|
-
strikethrough?: boolean;
|
|
25
|
-
selectable?: boolean;
|
|
26
|
-
truncate?: boolean;
|
|
27
|
-
hoverColor?: string;
|
|
28
|
-
hoverBgColor?: string;
|
|
29
|
-
hoverTextDecoration?: "underline" | "line-through" | "none";
|
|
30
|
-
activeColor?: string;
|
|
31
|
-
activeBgColor?: string;
|
|
32
|
-
transitionDuration?: string;
|
|
33
|
-
onClick?: () => void;
|
|
34
|
-
href?: string;
|
|
35
|
-
target?: "_blank" | "_self" | "_parent" | "_top";
|
|
36
|
-
rel?: string;
|
|
37
|
-
}
|
|
38
|
-
export declare const Text: React.FC<TextProps>;
|
|
39
|
-
export {};
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface VideoData {
|
|
3
|
-
id: string;
|
|
4
|
-
src: string;
|
|
5
|
-
poster?: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
duration?: number;
|
|
9
|
-
author?: string;
|
|
10
|
-
publishDate?: string;
|
|
11
|
-
tags?: string[];
|
|
12
|
-
views?: number;
|
|
13
|
-
likes?: number;
|
|
14
|
-
category?: string;
|
|
15
|
-
thumbnail?: string;
|
|
16
|
-
quality?: "auto" | "720p" | "1080p" | "4k";
|
|
17
|
-
subtitles?: {
|
|
18
|
-
src: string;
|
|
19
|
-
label: string;
|
|
20
|
-
language: string;
|
|
21
|
-
}[];
|
|
22
|
-
chapters?: {
|
|
23
|
-
time: number;
|
|
24
|
-
title: string;
|
|
25
|
-
}[];
|
|
26
|
-
resolution?: string;
|
|
27
|
-
frameRate?: number;
|
|
28
|
-
license?: string;
|
|
29
|
-
location?: string;
|
|
30
|
-
}
|
|
31
|
-
interface ResponsiveConfig {
|
|
32
|
-
xs?: number;
|
|
33
|
-
sm?: number;
|
|
34
|
-
md?: number;
|
|
35
|
-
lg?: number;
|
|
36
|
-
xl?: number;
|
|
37
|
-
"2xl"?: number;
|
|
38
|
-
"3xl"?: number;
|
|
39
|
-
}
|
|
40
|
-
interface ThemeConfig {
|
|
41
|
-
primary?: string;
|
|
42
|
-
secondary?: string;
|
|
43
|
-
accent?: string;
|
|
44
|
-
background?: string;
|
|
45
|
-
surface?: string;
|
|
46
|
-
text?: string;
|
|
47
|
-
textSecondary?: string;
|
|
48
|
-
textTertiary?: string;
|
|
49
|
-
border?: string;
|
|
50
|
-
shadow?: string;
|
|
51
|
-
hoverShadow?: string;
|
|
52
|
-
gradient?: string;
|
|
53
|
-
borderRadius?: string;
|
|
54
|
-
borderRadiusSmall?: string;
|
|
55
|
-
borderRadiusLarge?: string;
|
|
56
|
-
transitionSpeed?: string;
|
|
57
|
-
transitionEasing?: string;
|
|
58
|
-
fontFamily?: string;
|
|
59
|
-
fontSizeBase?: string;
|
|
60
|
-
fontWeightNormal?: string;
|
|
61
|
-
fontWeightBold?: string;
|
|
62
|
-
spacingUnit?: string;
|
|
63
|
-
backdropBlur?: string;
|
|
64
|
-
overlayOpacity?: string;
|
|
65
|
-
}
|
|
66
|
-
type LayoutType = "grid" | "masonry" | "carousel" | "list" | "mosaic" | "compact" | "highlight";
|
|
67
|
-
type AspectRatio = "16:9" | "4:3" | "1:1" | "3:2" | "21:9" | "auto" | "9:16" | "custom";
|
|
68
|
-
type AnimationType = "fade" | "slide" | "zoom" | "flip" | "none" | "slide-up" | "slide-down";
|
|
69
|
-
type SortOption = "date" | "title" | "views" | "likes" | "duration" | "random" | "trending";
|
|
70
|
-
interface VideoGalleryProps {
|
|
71
|
-
videos: VideoData[];
|
|
72
|
-
layout?: LayoutType;
|
|
73
|
-
columns?: ResponsiveConfig;
|
|
74
|
-
gap?: string | ResponsiveConfig;
|
|
75
|
-
aspectRatio?: AspectRatio;
|
|
76
|
-
theme?: ThemeConfig;
|
|
77
|
-
showThumbnails?: boolean;
|
|
78
|
-
showMetadata?: boolean;
|
|
79
|
-
metadataPosition?: "below" | "overlay" | "hover";
|
|
80
|
-
showControls?: boolean;
|
|
81
|
-
controlsPosition?: "bottom" | "top" | "sides" | "floating";
|
|
82
|
-
showProgress?: boolean;
|
|
83
|
-
showVolume?: boolean;
|
|
84
|
-
showQualityOptions?: boolean;
|
|
85
|
-
showSpeedOptions?: boolean;
|
|
86
|
-
autoPlay?: boolean;
|
|
87
|
-
autoPlayDelay?: number;
|
|
88
|
-
autoAdvance?: boolean;
|
|
89
|
-
autoAdvanceDelay?: number;
|
|
90
|
-
loop?: boolean;
|
|
91
|
-
muted?: boolean;
|
|
92
|
-
preload?: "none" | "metadata" | "auto";
|
|
93
|
-
lazyLoading?: boolean;
|
|
94
|
-
infiniteScroll?: boolean;
|
|
95
|
-
loadMoreThreshold?: number;
|
|
96
|
-
lightbox?: boolean;
|
|
97
|
-
lightboxAnimation?: AnimationType;
|
|
98
|
-
lightboxTransitionSpeed?: number;
|
|
99
|
-
keyboard?: boolean;
|
|
100
|
-
swipeGestures?: boolean;
|
|
101
|
-
title?: string;
|
|
102
|
-
description?: string;
|
|
103
|
-
ariaLabel?: string;
|
|
104
|
-
structured?: boolean;
|
|
105
|
-
search?: boolean;
|
|
106
|
-
searchPlaceholder?: string;
|
|
107
|
-
filter?: boolean;
|
|
108
|
-
sort?: boolean;
|
|
109
|
-
sortOptions?: SortOption[];
|
|
110
|
-
playlist?: boolean;
|
|
111
|
-
fullscreen?: boolean;
|
|
112
|
-
pictureInPicture?: boolean;
|
|
113
|
-
sharing?: boolean;
|
|
114
|
-
download?: boolean;
|
|
115
|
-
favorites?: boolean;
|
|
116
|
-
customLoader?: React.ReactNode;
|
|
117
|
-
customEmptyState?: React.ReactNode;
|
|
118
|
-
customErrorState?: React.ReactNode;
|
|
119
|
-
onVideoClick?: (video: VideoData, index: number) => void;
|
|
120
|
-
onVideoEnd?: (video: VideoData, index: number) => void;
|
|
121
|
-
onVideoPlay?: (video: VideoData, index: number) => void;
|
|
122
|
-
onVideoPause?: (video: VideoData, index: number) => void;
|
|
123
|
-
onVideoLike?: (video: VideoData, liked: boolean) => void;
|
|
124
|
-
onVideoShare?: (video: VideoData) => void;
|
|
125
|
-
onVideoDownload?: (video: VideoData) => void;
|
|
126
|
-
onLayoutChange?: (layout: LayoutType) => void;
|
|
127
|
-
onSearch?: (query: string) => void;
|
|
128
|
-
onFilter?: (category: string) => void;
|
|
129
|
-
onSort?: (sortBy: SortOption) => void;
|
|
130
|
-
className?: string;
|
|
131
|
-
containerClassName?: string;
|
|
132
|
-
videoItemClassName?: string;
|
|
133
|
-
controlsClassName?: string;
|
|
134
|
-
}
|
|
135
|
-
export declare const VideoGallery: React.FC<VideoGalleryProps>;
|
|
136
|
-
export default VideoGallery;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface VideoPlayerProps {
|
|
3
|
-
src: string;
|
|
4
|
-
poster?: string;
|
|
5
|
-
title?: string;
|
|
6
|
-
autoPlay?: boolean;
|
|
7
|
-
loop?: boolean;
|
|
8
|
-
muted?: boolean;
|
|
9
|
-
width?: string;
|
|
10
|
-
height?: string;
|
|
11
|
-
borderRadius?: string;
|
|
12
|
-
theme?: 'dark' | 'light' | 'glass' | 'neon';
|
|
13
|
-
primaryColor?: string;
|
|
14
|
-
className?: string;
|
|
15
|
-
showProgress?: boolean;
|
|
16
|
-
showVolumeSlider?: boolean;
|
|
17
|
-
showSettings?: boolean;
|
|
18
|
-
showDownload?: boolean;
|
|
19
|
-
showShare?: boolean;
|
|
20
|
-
showPiP?: boolean;
|
|
21
|
-
showSubtitles?: boolean;
|
|
22
|
-
showPlaybackSpeed?: boolean;
|
|
23
|
-
showQuality?: boolean;
|
|
24
|
-
previewThumbnails?: boolean;
|
|
25
|
-
customControls?: boolean;
|
|
26
|
-
hideControlsDelay?: number;
|
|
27
|
-
seekStep?: number;
|
|
28
|
-
volumeStep?: number;
|
|
29
|
-
onPlay?: () => void;
|
|
30
|
-
onPause?: () => void;
|
|
31
|
-
onEnded?: () => void;
|
|
32
|
-
onTimeUpdate?: (time: number) => void;
|
|
33
|
-
onVolumeChange?: (volume: number) => void;
|
|
34
|
-
}
|
|
35
|
-
export declare const VideoPlayer: React.FC<VideoPlayerProps>;
|
|
36
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|