@neuctra/ui 0.1.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.
- package/dist/components/avatar/Avatar.d.ts +9 -0
- package/dist/components/avatar/AvatarGroup.d.ts +9 -0
- package/dist/components/avatar/AvatarWithStatus.d.ts +10 -0
- package/dist/components/basic/Accordation.d.ts +35 -0
- package/dist/components/basic/Alert.d.ts +18 -0
- package/dist/components/basic/AudioPlayer.d.ts +16 -0
- package/dist/components/basic/Badge.d.ts +26 -0
- package/dist/components/basic/Button.d.ts +28 -0
- package/dist/components/basic/CheckRadioInput.d.ts +20 -0
- package/dist/components/basic/Container.d.ts +32 -0
- package/dist/components/basic/Drawer.d.ts +24 -0
- package/dist/components/basic/DropDown.d.ts +37 -0
- package/dist/components/basic/Flexbox.d.ts +21 -0
- package/dist/components/basic/GridView.d.ts +24 -0
- package/dist/components/basic/Image.d.ts +33 -0
- package/dist/components/basic/Input.d.ts +38 -0
- package/dist/components/basic/List.d.ts +26 -0
- package/dist/components/basic/Table.d.ts +25 -0
- package/dist/components/basic/Tabs.d.ts +34 -0
- package/dist/components/basic/Text.d.ts +39 -0
- package/dist/components/basic/VideoPlayer.d.ts +17 -0
- package/dist/components/button/ToggleButton.d.ts +15 -0
- package/dist/components/card/Card.d.ts +26 -0
- package/dist/components/card/ImageCard.d.ts +14 -0
- package/dist/components/card/InteractiveCard.d.ts +7 -0
- package/dist/components/gallery/AudioGallery.d.ts +21 -0
- package/dist/components/gallery/ImageGallery.d.ts +14 -0
- package/dist/components/gallery/VideoGallery.d.ts +18 -0
- package/dist/components/modal/FullScreenModal.d.ts +9 -0
- package/dist/components/modal/Modal.d.ts +11 -0
- package/dist/components/modal/ModalBody.d.ts +6 -0
- package/dist/components/modal/ModalFooter.d.ts +6 -0
- package/dist/components/modal/ModalHeader.d.ts +7 -0
- package/dist/components/table/CustomTable.d.ts +7 -0
- package/dist/components/table/SortableTableHeader.d.ts +7 -0
- package/dist/components/table/TableBody.d.ts +7 -0
- package/dist/components/table/TableColumn.d.ts +7 -0
- package/dist/components/table/TableHead.d.ts +7 -0
- package/dist/components/table/TableHeader.d.ts +7 -0
- package/dist/components/table/TableRow.d.ts +7 -0
- package/dist/components/tabs/CustomTabs.d.ts +8 -0
- package/dist/components/tabs/Tab.d.ts +10 -0
- package/dist/components/tabs/TabList.d.ts +7 -0
- package/dist/components/tabs/TabPanel.d.ts +7 -0
- package/dist/components/tabs/TabPanels.d.ts +8 -0
- package/dist/components/video/CustomVideoPlayer.d.ts +11 -0
- package/dist/components/video/EmbedVideo.d.ts +6 -0
- package/dist/components/video/PiPVideo.d.ts +4 -0
- package/dist/index.cjs.js +159 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.es.js +2824 -0
- package/dist/types/components/avatar/Avatar.d.ts +9 -0
- package/dist/types/components/avatar/AvatarGroup.d.ts +9 -0
- package/dist/types/components/avatar/AvatarWithStatus.d.ts +10 -0
- package/dist/types/components/basic/Accordation.d.ts +35 -0
- package/dist/types/components/basic/Alert.d.ts +18 -0
- package/dist/types/components/basic/AudioPlayer.d.ts +16 -0
- package/dist/types/components/basic/Badge.d.ts +26 -0
- package/dist/types/components/basic/Button.d.ts +28 -0
- package/dist/types/components/basic/CheckRadioInput.d.ts +20 -0
- package/dist/types/components/basic/Container.d.ts +32 -0
- package/dist/types/components/basic/Drawer.d.ts +24 -0
- package/dist/types/components/basic/DropDown.d.ts +37 -0
- package/dist/types/components/basic/Flexbox.d.ts +21 -0
- package/dist/types/components/basic/GridView.d.ts +24 -0
- package/dist/types/components/basic/Image.d.ts +33 -0
- package/dist/types/components/basic/Input.d.ts +38 -0
- package/dist/types/components/basic/List.d.ts +26 -0
- package/dist/types/components/basic/Table.d.ts +25 -0
- package/dist/types/components/basic/Tabs.d.ts +34 -0
- package/dist/types/components/basic/Text.d.ts +39 -0
- package/dist/types/components/basic/VideoPlayer.d.ts +17 -0
- package/dist/types/components/button/ToggleButton.d.ts +15 -0
- package/dist/types/components/card/Card.d.ts +26 -0
- package/dist/types/components/card/ImageCard.d.ts +14 -0
- package/dist/types/components/card/InteractiveCard.d.ts +7 -0
- package/dist/types/components/gallery/AudioGallery.d.ts +21 -0
- package/dist/types/components/gallery/ImageGallery.d.ts +14 -0
- package/dist/types/components/gallery/VideoGallery.d.ts +18 -0
- package/dist/types/components/modal/FullScreenModal.d.ts +9 -0
- package/dist/types/components/modal/Modal.d.ts +11 -0
- package/dist/types/components/modal/ModalBody.d.ts +6 -0
- package/dist/types/components/modal/ModalFooter.d.ts +6 -0
- package/dist/types/components/modal/ModalHeader.d.ts +7 -0
- package/dist/types/components/table/CustomTable.d.ts +7 -0
- package/dist/types/components/table/SortableTableHeader.d.ts +7 -0
- package/dist/types/components/table/TableBody.d.ts +7 -0
- package/dist/types/components/table/TableColumn.d.ts +7 -0
- package/dist/types/components/table/TableHead.d.ts +7 -0
- package/dist/types/components/table/TableHeader.d.ts +7 -0
- package/dist/types/components/table/TableRow.d.ts +7 -0
- package/dist/types/components/tabs/CustomTabs.d.ts +8 -0
- package/dist/types/components/tabs/Tab.d.ts +10 -0
- package/dist/types/components/tabs/TabList.d.ts +7 -0
- package/dist/types/components/tabs/TabPanel.d.ts +7 -0
- package/dist/types/components/tabs/TabPanels.d.ts +8 -0
- package/dist/types/components/video/CustomVideoPlayer.d.ts +11 -0
- package/dist/types/components/video/EmbedVideo.d.ts +6 -0
- package/dist/types/components/video/PiPVideo.d.ts +4 -0
- package/dist/types/index.d.ts +22 -0
- package/dist/ui.css +1 -0
- package/package.json +66 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface AvatarWithStatusProps {
|
|
3
|
+
src: string;
|
|
4
|
+
alt?: string;
|
|
5
|
+
status?: "online" | "offline" | "away" | "busy";
|
|
6
|
+
size?: "small" | "medium" | "large";
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const AvatarWithStatus: React.FC<AvatarWithStatusProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface AccordionItem {
|
|
3
|
+
title: string;
|
|
4
|
+
content: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
interface AccordionProps {
|
|
7
|
+
items: AccordionItem[];
|
|
8
|
+
allowMultiple?: boolean;
|
|
9
|
+
defaultOpenIndex?: number[];
|
|
10
|
+
borderColor?: string;
|
|
11
|
+
backgroundColor?: string;
|
|
12
|
+
textColor?: string;
|
|
13
|
+
hoverBgColor?: string;
|
|
14
|
+
hoverTextColor?: string;
|
|
15
|
+
paddingVertical?: string;
|
|
16
|
+
paddingHorizontal?: string;
|
|
17
|
+
margin?: string;
|
|
18
|
+
iconOpen?: React.ReactNode;
|
|
19
|
+
iconClose?: React.ReactNode;
|
|
20
|
+
transitionDuration?: string;
|
|
21
|
+
borderRadius?: string;
|
|
22
|
+
shadow?: string;
|
|
23
|
+
contentPadding?: string;
|
|
24
|
+
fontSize?: string;
|
|
25
|
+
fontWeight?: string;
|
|
26
|
+
iconSize?: string;
|
|
27
|
+
contentFontSize?: string;
|
|
28
|
+
contentFontWeight?: string;
|
|
29
|
+
contentBackgroundColor?: string;
|
|
30
|
+
contentTextColor?: string;
|
|
31
|
+
className?: string;
|
|
32
|
+
style?: React.CSSProperties;
|
|
33
|
+
}
|
|
34
|
+
export declare const Accordion: React.FC<AccordionProps>;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type AlertType = "success" | "error" | "warning" | "info";
|
|
3
|
+
type AlertPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
4
|
+
interface AlertProps {
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
type?: AlertType;
|
|
8
|
+
dismissible?: boolean;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
duration?: number;
|
|
11
|
+
icon?: React.ReactNode;
|
|
12
|
+
actionButton?: React.ReactNode;
|
|
13
|
+
position?: AlertPosition;
|
|
14
|
+
className?: string;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
}
|
|
17
|
+
export declare const Alert: React.FC<AlertProps>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface AudioPlayerProps {
|
|
3
|
+
src: string;
|
|
4
|
+
thumbnail?: string;
|
|
5
|
+
autoPlay?: boolean;
|
|
6
|
+
loop?: boolean;
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
primaryColor?: string;
|
|
9
|
+
secondaryColor?: string;
|
|
10
|
+
borderRadius?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
padding?: string;
|
|
13
|
+
width?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const AudioPlayer: React.FC<AudioPlayerProps>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React, { CSSProperties, ReactNode } from "react";
|
|
2
|
+
interface BadgeProps {
|
|
3
|
+
text?: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
textColor?: string;
|
|
6
|
+
borderColor?: string;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
iconPosition?: "left" | "right";
|
|
9
|
+
rounded?: boolean;
|
|
10
|
+
borderRadius?: string;
|
|
11
|
+
borderWidth?: string;
|
|
12
|
+
fontSize?: string;
|
|
13
|
+
fontWeight?: number | string;
|
|
14
|
+
horizontalPadding?: string;
|
|
15
|
+
verticalPadding?: string;
|
|
16
|
+
margin?: string;
|
|
17
|
+
shadow?: string;
|
|
18
|
+
notificationDot?: boolean;
|
|
19
|
+
dotColor?: string;
|
|
20
|
+
count?: number | string;
|
|
21
|
+
pulse?: boolean;
|
|
22
|
+
style?: CSSProperties;
|
|
23
|
+
onClick?: () => void;
|
|
24
|
+
}
|
|
25
|
+
export declare const Badge: React.FC<BadgeProps>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React, { CSSProperties } from "react";
|
|
2
|
+
interface ButtonProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
type?: "button" | "submit" | "reset";
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
iconBefore?: React.ReactNode;
|
|
7
|
+
iconAfter?: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: CSSProperties;
|
|
10
|
+
fullWidth?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
loadingText?: string;
|
|
14
|
+
paddingHorizontal?: number;
|
|
15
|
+
paddingVertical?: number;
|
|
16
|
+
fontSize?: string;
|
|
17
|
+
fontWeight?: string | number;
|
|
18
|
+
borderRadius?: number;
|
|
19
|
+
backgroundColor?: string;
|
|
20
|
+
textColor?: string;
|
|
21
|
+
borderColor?: string;
|
|
22
|
+
hoverBgColor?: string;
|
|
23
|
+
hoverTextColor?: string;
|
|
24
|
+
hoverBorderColor?: string;
|
|
25
|
+
boxShadow?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const Button: React.FC<ButtonProps>;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface Option {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
interface CheckRadioProps {
|
|
7
|
+
type: "checkbox" | "radio";
|
|
8
|
+
name?: string;
|
|
9
|
+
options: Option[];
|
|
10
|
+
selectedValues?: string[] | string;
|
|
11
|
+
onChange?: (value: string | string[]) => void;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
error?: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
customIcon?: (checked: boolean) => React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare const CheckRadio: React.FC<CheckRadioProps>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ResponsiveProps<T> {
|
|
3
|
+
sm?: T;
|
|
4
|
+
md?: T;
|
|
5
|
+
lg?: T;
|
|
6
|
+
}
|
|
7
|
+
interface ContainerProps {
|
|
8
|
+
display?: ResponsiveProps<"block" | "flex" | "grid" | "inline-block">;
|
|
9
|
+
flexDirection?: ResponsiveProps<"row" | "column" | "row-reverse" | "column-reverse">;
|
|
10
|
+
justifyContent?: ResponsiveProps<"flex-start" | "center" | "flex-end" | "space-between" | "space-around" | "space-evenly">;
|
|
11
|
+
alignItems?: ResponsiveProps<"flex-start" | "center" | "flex-end" | "stretch" | "baseline">;
|
|
12
|
+
gridTemplateColumns?: ResponsiveProps<string>;
|
|
13
|
+
gridTemplateRows?: ResponsiveProps<string>;
|
|
14
|
+
gap?: ResponsiveProps<string>;
|
|
15
|
+
rowGap?: ResponsiveProps<string>;
|
|
16
|
+
columnGap?: ResponsiveProps<string>;
|
|
17
|
+
width?: ResponsiveProps<string>;
|
|
18
|
+
maxWidth?: ResponsiveProps<string>;
|
|
19
|
+
height?: ResponsiveProps<string>;
|
|
20
|
+
padding?: ResponsiveProps<string>;
|
|
21
|
+
margin?: ResponsiveProps<string>;
|
|
22
|
+
textAlign?: ResponsiveProps<"left" | "center" | "right">;
|
|
23
|
+
backgroundColor?: string;
|
|
24
|
+
border?: ResponsiveProps<string>;
|
|
25
|
+
borderRadius?: ResponsiveProps<string>;
|
|
26
|
+
boxShadow?: ResponsiveProps<string>;
|
|
27
|
+
overflow?: ResponsiveProps<"visible" | "hidden" | "scroll" | "auto">;
|
|
28
|
+
children: React.ReactNode;
|
|
29
|
+
className?: string;
|
|
30
|
+
}
|
|
31
|
+
declare const Container: React.FC<ContainerProps>;
|
|
32
|
+
export default Container;
|
|
@@ -0,0 +1,24 @@
|
|
|
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 };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface Option {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
interface DropdownProps {
|
|
8
|
+
options: Option[];
|
|
9
|
+
value?: string;
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
onChange?: (value: string) => void;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
borderColor?: string;
|
|
15
|
+
backgroundColor?: string;
|
|
16
|
+
textColor?: string;
|
|
17
|
+
hoverColor?: string;
|
|
18
|
+
padding?: string;
|
|
19
|
+
margin?: string;
|
|
20
|
+
dropdownWidth?: string;
|
|
21
|
+
dropdownHeight?: string;
|
|
22
|
+
borderRadius?: string;
|
|
23
|
+
boxShadow?: string;
|
|
24
|
+
optionPadding?: string;
|
|
25
|
+
optionGap?: string;
|
|
26
|
+
transitionDuration?: string;
|
|
27
|
+
className?: string;
|
|
28
|
+
dropdownStyle?: React.CSSProperties;
|
|
29
|
+
dropdownClassName?: string;
|
|
30
|
+
optionStyle?: React.CSSProperties;
|
|
31
|
+
optionClassName?: string;
|
|
32
|
+
iconPrefix?: React.ReactNode;
|
|
33
|
+
iconSuffix?: React.ReactNode;
|
|
34
|
+
openAnimation?: string;
|
|
35
|
+
}
|
|
36
|
+
export declare const Dropdown: React.FC<DropdownProps>;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ResponsiveProps<T> {
|
|
3
|
+
sm?: T;
|
|
4
|
+
md?: T;
|
|
5
|
+
lg?: T;
|
|
6
|
+
}
|
|
7
|
+
interface FlexboxProps {
|
|
8
|
+
direction?: ResponsiveProps<"row" | "column">;
|
|
9
|
+
align?: ResponsiveProps<"flex-start" | "flex-end" | "center" | "stretch" | "baseline">;
|
|
10
|
+
justify?: ResponsiveProps<"flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly">;
|
|
11
|
+
gap?: ResponsiveProps<string>;
|
|
12
|
+
padding?: ResponsiveProps<string>;
|
|
13
|
+
backgroundColor?: string;
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
width?: ResponsiveProps<string>;
|
|
16
|
+
maxWidth?: ResponsiveProps<string>;
|
|
17
|
+
height?: ResponsiveProps<string>;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const Flexbox: React.FC<FlexboxProps>;
|
|
21
|
+
export default Flexbox;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ResponsiveProps<T> {
|
|
3
|
+
sm?: T;
|
|
4
|
+
md?: T;
|
|
5
|
+
lg?: T;
|
|
6
|
+
}
|
|
7
|
+
interface GridViewProps {
|
|
8
|
+
columns?: ResponsiveProps<number>;
|
|
9
|
+
rows?: ResponsiveProps<number>;
|
|
10
|
+
gap?: ResponsiveProps<string>;
|
|
11
|
+
rowGap?: ResponsiveProps<string>;
|
|
12
|
+
columnGap?: ResponsiveProps<string>;
|
|
13
|
+
padding?: ResponsiveProps<string>;
|
|
14
|
+
alignItems?: ResponsiveProps<"start" | "center" | "end" | "stretch">;
|
|
15
|
+
justifyItems?: ResponsiveProps<"start" | "center" | "end" | "stretch">;
|
|
16
|
+
backgroundColor?: string;
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
className?: string;
|
|
19
|
+
width?: ResponsiveProps<string>;
|
|
20
|
+
maxWidth?: ResponsiveProps<string>;
|
|
21
|
+
height?: ResponsiveProps<string>;
|
|
22
|
+
}
|
|
23
|
+
declare const GridView: React.FC<GridViewProps>;
|
|
24
|
+
export default GridView;
|
|
@@ -0,0 +1,33 @@
|
|
|
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?: () => void;
|
|
31
|
+
}
|
|
32
|
+
export declare const Image: React.FC<ImageProps>;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React, { CSSProperties } from "react";
|
|
2
|
+
interface InputProps {
|
|
3
|
+
type?: "text" | "password" | "email" | "number" | "search" | "tel" | "url" | "textarea";
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
value?: string;
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
onChange?: (name: string, value: string) => void;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
readOnly?: boolean;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
error?: string;
|
|
14
|
+
success?: boolean;
|
|
15
|
+
autoFocus?: boolean;
|
|
16
|
+
iconLeft?: React.ReactNode;
|
|
17
|
+
iconRight?: React.ReactNode;
|
|
18
|
+
borderColor?: string;
|
|
19
|
+
focusBorderColor?: string;
|
|
20
|
+
hoverBorderColor?: string;
|
|
21
|
+
backgroundColor?: string;
|
|
22
|
+
textColor?: string;
|
|
23
|
+
errorColor?: string;
|
|
24
|
+
successColor?: string;
|
|
25
|
+
labelColor?: string;
|
|
26
|
+
size?: "sm" | "md" | "lg";
|
|
27
|
+
radius?: string;
|
|
28
|
+
fontSize?: string;
|
|
29
|
+
rows?: number;
|
|
30
|
+
cols?: number;
|
|
31
|
+
maxLength?: number;
|
|
32
|
+
resize?: boolean;
|
|
33
|
+
showCharacterCount?: boolean;
|
|
34
|
+
className?: string;
|
|
35
|
+
style?: CSSProperties;
|
|
36
|
+
}
|
|
37
|
+
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React, { CSSProperties, ReactNode } from "react";
|
|
2
|
+
interface ListItemType {
|
|
3
|
+
text: string;
|
|
4
|
+
icon?: ReactNode;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
subItems?: ListItemType[];
|
|
7
|
+
}
|
|
8
|
+
interface ListProps {
|
|
9
|
+
title?: string;
|
|
10
|
+
titleIcon?: ReactNode;
|
|
11
|
+
items: ListItemType[];
|
|
12
|
+
type?: "unordered" | "ordered" | "inline";
|
|
13
|
+
bulletColor?: string;
|
|
14
|
+
textColor?: string;
|
|
15
|
+
backgroundColor?: string;
|
|
16
|
+
borderColor?: string;
|
|
17
|
+
fontSize?: string;
|
|
18
|
+
fontWeight?: string | number;
|
|
19
|
+
borderRadius?: string;
|
|
20
|
+
padding?: string;
|
|
21
|
+
spacing?: string;
|
|
22
|
+
className?: string;
|
|
23
|
+
style?: CSSProperties;
|
|
24
|
+
}
|
|
25
|
+
export declare const List: React.FC<ListProps>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface Column {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
sortable?: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface TableProps {
|
|
8
|
+
columns: Column[];
|
|
9
|
+
data: Record<string, any>[];
|
|
10
|
+
className?: string;
|
|
11
|
+
pagination?: boolean;
|
|
12
|
+
rowsPerPage?: number;
|
|
13
|
+
colors?: {
|
|
14
|
+
headerBg?: string;
|
|
15
|
+
headerText?: string;
|
|
16
|
+
rowBg?: string;
|
|
17
|
+
rowText?: string;
|
|
18
|
+
borderColor?: string;
|
|
19
|
+
hoverBg?: string;
|
|
20
|
+
paginationBg?: string;
|
|
21
|
+
paginationText?: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export declare const Table: React.FC<TableProps>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React, { CSSProperties } from "react";
|
|
2
|
+
interface TabItem {
|
|
3
|
+
label: React.ReactNode;
|
|
4
|
+
content: React.ReactNode;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
interface TabsBaseProps {
|
|
8
|
+
tabs: TabItem[];
|
|
9
|
+
defaultActive?: number;
|
|
10
|
+
activeTabClassName?: string;
|
|
11
|
+
inactiveTabClassName?: string;
|
|
12
|
+
tabContainerClassName?: string;
|
|
13
|
+
contentContainerClassName?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
activeTabStyle?: CSSProperties;
|
|
16
|
+
inactiveTabStyle?: CSSProperties;
|
|
17
|
+
tabContainerStyle?: CSSProperties;
|
|
18
|
+
contentContainerStyle?: CSSProperties;
|
|
19
|
+
style?: CSSProperties;
|
|
20
|
+
tabsWidth?: string | number;
|
|
21
|
+
tabGap?: number;
|
|
22
|
+
tabPadding?: string;
|
|
23
|
+
tabBorderRadius?: number;
|
|
24
|
+
primaryColor?: string;
|
|
25
|
+
textColor?: string;
|
|
26
|
+
backgroundColor?: string;
|
|
27
|
+
hoverTextColor?: string;
|
|
28
|
+
responsiveBreakpoint?: number;
|
|
29
|
+
showDrawerLabel?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare const LeftTabs: React.FC<TabsBaseProps>;
|
|
32
|
+
export declare const TopTabs: React.FC<TabsBaseProps>;
|
|
33
|
+
export declare const RightTabs: React.FC<TabsBaseProps>;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface VideoPlayerProps {
|
|
3
|
+
src: string;
|
|
4
|
+
poster?: string;
|
|
5
|
+
autoPlay?: boolean;
|
|
6
|
+
loop?: boolean;
|
|
7
|
+
controls?: boolean;
|
|
8
|
+
width?: string;
|
|
9
|
+
height?: string;
|
|
10
|
+
borderRadius?: string;
|
|
11
|
+
backgroundColor?: string;
|
|
12
|
+
primaryColor?: string;
|
|
13
|
+
padding?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const VideoPlayer: React.FC<VideoPlayerProps>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ToggleProps {
|
|
3
|
+
checked?: boolean;
|
|
4
|
+
onChange?: (checked: boolean) => void;
|
|
5
|
+
onLabel?: string;
|
|
6
|
+
offLabel?: string;
|
|
7
|
+
onColor?: string;
|
|
8
|
+
offColor?: string;
|
|
9
|
+
size?: "small" | "medium" | "large";
|
|
10
|
+
className?: string;
|
|
11
|
+
onIcon?: React.ReactNode;
|
|
12
|
+
offIcon?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare const Toggle: React.FC<ToggleProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface CardProps {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
contentClassName?: string;
|
|
6
|
+
background?: string;
|
|
7
|
+
textColor?: string;
|
|
8
|
+
borderRadius?: string;
|
|
9
|
+
padding?: string;
|
|
10
|
+
shadow?: string;
|
|
11
|
+
imageSrc?: string;
|
|
12
|
+
imageAlt?: string;
|
|
13
|
+
imageWidth?: string;
|
|
14
|
+
imageHeight?: string;
|
|
15
|
+
svgIcon?: React.ReactNode;
|
|
16
|
+
useSvgInsteadOfImage?: boolean;
|
|
17
|
+
title?: string;
|
|
18
|
+
subtitle?: string;
|
|
19
|
+
buttonText?: string;
|
|
20
|
+
buttonOnClick?: () => void;
|
|
21
|
+
buttonClassName?: string;
|
|
22
|
+
buttonIcon?: React.ReactNode;
|
|
23
|
+
margin?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const Card: React.FC<CardProps>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ImageCardProps {
|
|
3
|
+
src: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
ImageClassName?: string;
|
|
8
|
+
buttonText?: string;
|
|
9
|
+
buttonOnClick?: () => void;
|
|
10
|
+
buttonClassName?: string;
|
|
11
|
+
buttonIcon?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const ImageCard: React.FC<ImageCardProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface AudioTrack {
|
|
3
|
+
src: string;
|
|
4
|
+
title: string;
|
|
5
|
+
}
|
|
6
|
+
interface AudioGalleryProps {
|
|
7
|
+
tracks: AudioTrack[];
|
|
8
|
+
className?: string;
|
|
9
|
+
theme?: {
|
|
10
|
+
bg?: string;
|
|
11
|
+
text?: string;
|
|
12
|
+
primary?: string;
|
|
13
|
+
secondary?: string;
|
|
14
|
+
};
|
|
15
|
+
showProgress?: boolean;
|
|
16
|
+
showVolume?: boolean;
|
|
17
|
+
autoplay?: boolean;
|
|
18
|
+
loop?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare const AudioGallery: React.FC<AudioGalleryProps>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ImageGalleryProps {
|
|
3
|
+
images: {
|
|
4
|
+
src: string;
|
|
5
|
+
alt?: string;
|
|
6
|
+
}[];
|
|
7
|
+
columns?: number;
|
|
8
|
+
gap?: string;
|
|
9
|
+
layout?: "grid" | "masonry";
|
|
10
|
+
lightbox?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const ImageGallery: React.FC<ImageGalleryProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface VideoGalleryProps {
|
|
3
|
+
videos: {
|
|
4
|
+
src: string;
|
|
5
|
+
poster?: string;
|
|
6
|
+
}[];
|
|
7
|
+
columns?: number;
|
|
8
|
+
gap?: string;
|
|
9
|
+
layout?: "grid" | "masonry";
|
|
10
|
+
lightbox?: boolean;
|
|
11
|
+
autoPlay?: boolean;
|
|
12
|
+
loop?: boolean;
|
|
13
|
+
muted?: boolean;
|
|
14
|
+
controls?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const VideoGallery: React.FC<VideoGalleryProps>;
|
|
18
|
+
export {};
|