@houssemdi2000/design-system 1.1.0 → 1.3.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/Accordion/Accordion.d.ts +16 -0
- package/dist/components/Accordion/Accordion.stories.d.ts +6 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Avatar/Avatar.d.ts +18 -0
- package/dist/components/Avatar/Avatar.stories.d.ts +9 -0
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Button/Button.d.ts +6 -0
- package/dist/components/Button/Button.stories.d.ts +1 -0
- package/dist/components/Carousel/SmartCarousel.d.ts +17 -0
- package/dist/components/Carousel/SmartCarousel.stories.d.ts +6 -0
- package/dist/components/Carousel/index.d.ts +1 -0
- package/dist/components/Colors/Colors.d.ts +182 -0
- package/dist/components/Colors/index.d.ts +1 -0
- package/dist/components/DragDrop/DragDrop.d.ts +16 -0
- package/dist/components/DragDrop/DragDrop.stories.d.ts +7 -0
- package/dist/components/DragDrop/index.d.ts +1 -0
- package/dist/components/Footer/Footer.d.ts +21 -0
- package/dist/components/Footer/Footer.stories.d.ts +6 -0
- package/dist/components/Footer/index.d.ts +1 -0
- package/dist/components/Form/Form.d.ts +35 -0
- package/dist/components/Form/Form.stories.d.ts +6 -0
- package/dist/components/Form/index.d.ts +1 -0
- package/dist/components/Input/Input.d.ts +18 -0
- package/dist/components/Input/Input.stories.d.ts +9 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Layout/Layout.d.ts +14 -0
- package/dist/components/Layout/Layout.stories.d.ts +7 -0
- package/dist/components/Layout/index.d.ts +1 -0
- package/dist/components/Loading/Loading.d.ts +14 -0
- package/dist/components/Loading/Loading.stories.d.ts +10 -0
- package/dist/components/Loading/index.d.ts +1 -0
- package/dist/components/Modal/Modal.d.ts +12 -0
- package/dist/components/Modal/Modal.stories.d.ts +7 -0
- package/dist/components/Modal/index.d.ts +1 -0
- package/dist/components/Navbar/Navbar.d.ts +25 -0
- package/dist/components/Navbar/Navbar.stories.d.ts +6 -0
- package/dist/components/Navbar/index.d.ts +1 -0
- package/dist/components/Pagination/Pagination.d.ts +12 -0
- package/dist/components/Pagination/Pagination.stories.d.ts +8 -0
- package/dist/components/Pagination/index.d.ts +1 -0
- package/dist/components/ProfileMenu/ProfileMenu.d.ts +20 -0
- package/dist/components/ProfileMenu/ProfileMenu.stories.d.ts +6 -0
- package/dist/components/ProfileMenu/index.d.ts +1 -0
- package/dist/components/QuicklyLogin/QuicklyLogin.d.ts +17 -0
- package/dist/components/QuicklyLogin/QuicklyLogin.stories.d.ts +6 -0
- package/dist/components/SecureText/SecureText.d.ts +14 -0
- package/dist/components/SecureText/SecureText.stories.d.ts +8 -0
- package/dist/components/SecureText/index.d.ts +1 -0
- package/dist/components/Select/Select.d.ts +2 -0
- package/dist/components/Sidebar/Sidebar.d.ts +22 -0
- package/dist/components/Sidebar/Sidebar.stories.d.ts +6 -0
- package/dist/components/Sidebar/index.d.ts +1 -0
- package/dist/components/Slider/SmartSlider.d.ts +17 -0
- package/dist/components/Slider/SmartSlider.stories.d.ts +7 -0
- package/dist/components/Table/SmartTable.d.ts +23 -0
- package/dist/components/Table/SmartTable.stories.d.ts +10 -0
- package/dist/components/Table/index.d.ts +1 -0
- package/dist/components/TableFilterBar/TableFilterBar.d.ts +42 -0
- package/dist/components/TableFilterBar/TableFilterBar.stories.d.ts +7 -0
- package/dist/components/TableFilterBar/index.d.ts +1 -0
- package/dist/components/Tag/Tag.d.ts +13 -0
- package/dist/components/Tag/Tag.stories.d.ts +7 -0
- package/dist/components/Tag/index.d.ts +1 -0
- package/dist/components/Text/Text.d.ts +18 -0
- package/dist/components/Text/Text.stories.d.ts +8 -0
- package/dist/components/Text/index.d.ts +1 -0
- package/dist/components/Theme/ThemeContext.d.ts +12 -0
- package/dist/components/Theme/index.d.ts +2 -0
- package/dist/components/Theme/types.d.ts +7 -0
- package/dist/components/TimeLine/SmartTimeLine.d.ts +22 -0
- package/dist/components/TimeLine/SmartTimeLine.stories.d.ts +6 -0
- package/dist/components/TimeLine/index.d.ts +1 -0
- package/dist/components/Toast/ToastContext.d.ts +2 -1
- package/dist/components/Toast/index.d.ts +1 -0
- package/dist/components/index.d.ts +19 -0
- package/dist/index.esm.js +533 -34
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +553 -33
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./Accordion.css";
|
|
3
|
+
export interface AccordionItem {
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
content: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export interface AccordionProps {
|
|
9
|
+
items: AccordionItem[];
|
|
10
|
+
openIds?: string[];
|
|
11
|
+
onToggle?: (id: string) => void;
|
|
12
|
+
allowMultiple?: boolean;
|
|
13
|
+
iconColor?: string;
|
|
14
|
+
borderColor?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const Accordion: React.FC<AccordionProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Accordion";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./Avatar.css";
|
|
3
|
+
export type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
4
|
+
export type AvatarShape = "circle" | "rounded" | "square";
|
|
5
|
+
export type AvatarStatus = "online" | "offline" | "away";
|
|
6
|
+
export interface AvatarProps {
|
|
7
|
+
src?: string;
|
|
8
|
+
alt?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
size?: AvatarSize;
|
|
11
|
+
shape?: AvatarShape;
|
|
12
|
+
status?: AvatarStatus;
|
|
13
|
+
backgroundColor?: string;
|
|
14
|
+
color?: string;
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
isDarkMode?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const Avatar: React.FC<AvatarProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").FC<import("./Avatar").AvatarProps>;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const DemoAvatar: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const WithImage: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const Click: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const Custom: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Avatar';
|
|
@@ -5,11 +5,17 @@ export interface ButtonProps {
|
|
|
5
5
|
onClick?: () => void;
|
|
6
6
|
variant?: "primary" | "secondary" | "danger" | "dark" | "light";
|
|
7
7
|
size?: "small" | "medium" | "large";
|
|
8
|
+
style?: React.CSSProperties;
|
|
8
9
|
disabled?: boolean;
|
|
9
10
|
icon?: React.ReactNode;
|
|
10
11
|
iconPosition?: "left" | "right";
|
|
11
12
|
backgroundColor?: string;
|
|
12
13
|
color?: string;
|
|
13
14
|
isLoading?: boolean;
|
|
15
|
+
type?: "button" | "submit" | "reset";
|
|
16
|
+
mt?: number;
|
|
17
|
+
mb?: number;
|
|
18
|
+
mr?: number;
|
|
19
|
+
ml?: number;
|
|
14
20
|
}
|
|
15
21
|
export declare const Button: React.FC<ButtonProps>;
|
|
@@ -14,3 +14,4 @@ export declare const WithIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
|
14
14
|
export declare const WithIconRight: () => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export declare const CustomColors: () => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export declare const Loading: () => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const Margin: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./SmartCarousel.css";
|
|
3
|
+
export interface CarouselImage {
|
|
4
|
+
src: string;
|
|
5
|
+
alt?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface SmartCarouselProps {
|
|
8
|
+
images: CarouselImage[];
|
|
9
|
+
autoPlay?: boolean;
|
|
10
|
+
interval?: number;
|
|
11
|
+
showArrows?: boolean;
|
|
12
|
+
showDots?: boolean;
|
|
13
|
+
activeDotColor?: string;
|
|
14
|
+
isDarkMode?: boolean;
|
|
15
|
+
height?: number | string;
|
|
16
|
+
}
|
|
17
|
+
export declare const SmartCarousel: React.FC<SmartCarouselProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SmartCarousel';
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
export declare const Colors: {
|
|
2
|
+
primary: {
|
|
3
|
+
50: string;
|
|
4
|
+
100: string;
|
|
5
|
+
200: string;
|
|
6
|
+
300: string;
|
|
7
|
+
400: string;
|
|
8
|
+
500: string;
|
|
9
|
+
600: string;
|
|
10
|
+
700: string;
|
|
11
|
+
800: string;
|
|
12
|
+
900: string;
|
|
13
|
+
};
|
|
14
|
+
secondary: {
|
|
15
|
+
50: string;
|
|
16
|
+
100: string;
|
|
17
|
+
200: string;
|
|
18
|
+
300: string;
|
|
19
|
+
400: string;
|
|
20
|
+
500: string;
|
|
21
|
+
600: string;
|
|
22
|
+
700: string;
|
|
23
|
+
800: string;
|
|
24
|
+
900: string;
|
|
25
|
+
};
|
|
26
|
+
neutral: {
|
|
27
|
+
0: string;
|
|
28
|
+
50: string;
|
|
29
|
+
100: string;
|
|
30
|
+
200: string;
|
|
31
|
+
300: string;
|
|
32
|
+
400: string;
|
|
33
|
+
500: string;
|
|
34
|
+
600: string;
|
|
35
|
+
700: string;
|
|
36
|
+
800: string;
|
|
37
|
+
900: string;
|
|
38
|
+
950: string;
|
|
39
|
+
};
|
|
40
|
+
red: {
|
|
41
|
+
50: string;
|
|
42
|
+
100: string;
|
|
43
|
+
200: string;
|
|
44
|
+
300: string;
|
|
45
|
+
400: string;
|
|
46
|
+
500: string;
|
|
47
|
+
600: string;
|
|
48
|
+
700: string;
|
|
49
|
+
800: string;
|
|
50
|
+
900: string;
|
|
51
|
+
};
|
|
52
|
+
green: {
|
|
53
|
+
50: string;
|
|
54
|
+
100: string;
|
|
55
|
+
200: string;
|
|
56
|
+
300: string;
|
|
57
|
+
400: string;
|
|
58
|
+
500: string;
|
|
59
|
+
600: string;
|
|
60
|
+
700: string;
|
|
61
|
+
800: string;
|
|
62
|
+
900: string;
|
|
63
|
+
};
|
|
64
|
+
blue: {
|
|
65
|
+
50: string;
|
|
66
|
+
100: string;
|
|
67
|
+
200: string;
|
|
68
|
+
300: string;
|
|
69
|
+
400: string;
|
|
70
|
+
500: string;
|
|
71
|
+
600: string;
|
|
72
|
+
700: string;
|
|
73
|
+
800: string;
|
|
74
|
+
900: string;
|
|
75
|
+
};
|
|
76
|
+
yellow: {
|
|
77
|
+
50: string;
|
|
78
|
+
100: string;
|
|
79
|
+
200: string;
|
|
80
|
+
300: string;
|
|
81
|
+
400: string;
|
|
82
|
+
500: string;
|
|
83
|
+
600: string;
|
|
84
|
+
700: string;
|
|
85
|
+
800: string;
|
|
86
|
+
900: string;
|
|
87
|
+
};
|
|
88
|
+
orange: {
|
|
89
|
+
50: string;
|
|
90
|
+
100: string;
|
|
91
|
+
200: string;
|
|
92
|
+
300: string;
|
|
93
|
+
400: string;
|
|
94
|
+
500: string;
|
|
95
|
+
600: string;
|
|
96
|
+
700: string;
|
|
97
|
+
800: string;
|
|
98
|
+
900: string;
|
|
99
|
+
};
|
|
100
|
+
violet: {
|
|
101
|
+
50: string;
|
|
102
|
+
100: string;
|
|
103
|
+
200: string;
|
|
104
|
+
300: string;
|
|
105
|
+
400: string;
|
|
106
|
+
500: string;
|
|
107
|
+
600: string;
|
|
108
|
+
700: string;
|
|
109
|
+
800: string;
|
|
110
|
+
900: string;
|
|
111
|
+
};
|
|
112
|
+
pink: {
|
|
113
|
+
50: string;
|
|
114
|
+
100: string;
|
|
115
|
+
200: string;
|
|
116
|
+
300: string;
|
|
117
|
+
400: string;
|
|
118
|
+
500: string;
|
|
119
|
+
600: string;
|
|
120
|
+
700: string;
|
|
121
|
+
800: string;
|
|
122
|
+
900: string;
|
|
123
|
+
};
|
|
124
|
+
teal: {
|
|
125
|
+
50: string;
|
|
126
|
+
100: string;
|
|
127
|
+
200: string;
|
|
128
|
+
300: string;
|
|
129
|
+
400: string;
|
|
130
|
+
500: string;
|
|
131
|
+
600: string;
|
|
132
|
+
700: string;
|
|
133
|
+
800: string;
|
|
134
|
+
900: string;
|
|
135
|
+
};
|
|
136
|
+
success: string;
|
|
137
|
+
warning: string;
|
|
138
|
+
error: string;
|
|
139
|
+
info: string;
|
|
140
|
+
facebook: string;
|
|
141
|
+
twitter: string;
|
|
142
|
+
instagram: string;
|
|
143
|
+
linkedin: string;
|
|
144
|
+
youtube: string;
|
|
145
|
+
github: string;
|
|
146
|
+
glass: {
|
|
147
|
+
light: string;
|
|
148
|
+
medium: string;
|
|
149
|
+
dark: string;
|
|
150
|
+
};
|
|
151
|
+
overlay: {
|
|
152
|
+
light: string;
|
|
153
|
+
medium: string;
|
|
154
|
+
heavy: string;
|
|
155
|
+
};
|
|
156
|
+
gradients: {
|
|
157
|
+
fire: string;
|
|
158
|
+
ocean: string;
|
|
159
|
+
sunset: string;
|
|
160
|
+
forest: string;
|
|
161
|
+
rainbow: string;
|
|
162
|
+
};
|
|
163
|
+
transparent: string;
|
|
164
|
+
white: string;
|
|
165
|
+
black: string;
|
|
166
|
+
};
|
|
167
|
+
export declare const tco: {
|
|
168
|
+
primary: string;
|
|
169
|
+
primaryDark: string;
|
|
170
|
+
success: string;
|
|
171
|
+
error: string;
|
|
172
|
+
warning: string;
|
|
173
|
+
info: string;
|
|
174
|
+
text: string;
|
|
175
|
+
textDark: string;
|
|
176
|
+
borderDark: string;
|
|
177
|
+
background: string;
|
|
178
|
+
backgroundDark: string;
|
|
179
|
+
backgroundDark2: string;
|
|
180
|
+
backgroundDark3: string;
|
|
181
|
+
border: string;
|
|
182
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Colors";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./DragDrop.css";
|
|
3
|
+
export interface DragDropItem<T> {
|
|
4
|
+
id: string;
|
|
5
|
+
data: T;
|
|
6
|
+
}
|
|
7
|
+
export interface DragDropProps<T> {
|
|
8
|
+
items: DragDropItem<T>[];
|
|
9
|
+
onChange: (items: DragDropItem<T>[]) => void;
|
|
10
|
+
renderItem: (item: T) => React.ReactNode;
|
|
11
|
+
direction?: "vertical" | "horizontal";
|
|
12
|
+
gap?: number;
|
|
13
|
+
draggable?: boolean;
|
|
14
|
+
isDarkMode?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare function DragDrop<T>({ items, onChange, renderItem, direction, gap, draggable, isDarkMode, }: DragDropProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DragDrop';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./Footer.css";
|
|
3
|
+
export interface FooterLink {
|
|
4
|
+
label: string;
|
|
5
|
+
href?: string;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export interface FooterSection {
|
|
9
|
+
title?: string;
|
|
10
|
+
links?: FooterLink[];
|
|
11
|
+
}
|
|
12
|
+
export interface FooterProps {
|
|
13
|
+
left?: React.ReactNode;
|
|
14
|
+
center?: React.ReactNode;
|
|
15
|
+
right?: React.ReactNode;
|
|
16
|
+
sections?: FooterSection[];
|
|
17
|
+
isDarkMode?: boolean;
|
|
18
|
+
height?: number;
|
|
19
|
+
fixed?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const Footer: React.FC<FooterProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Footer';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./Form.css";
|
|
3
|
+
import { ButtonProps } from "../Button";
|
|
4
|
+
export interface FormField {
|
|
5
|
+
name: string;
|
|
6
|
+
type: "text" | "email" | "password" | "select" | "checkbox" | "radio";
|
|
7
|
+
label?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
minLength?: number;
|
|
12
|
+
maxLength?: number;
|
|
13
|
+
pattern?: RegExp;
|
|
14
|
+
options?: {
|
|
15
|
+
label: string;
|
|
16
|
+
value: string;
|
|
17
|
+
}[];
|
|
18
|
+
color?: string;
|
|
19
|
+
style?: React.CSSProperties;
|
|
20
|
+
}
|
|
21
|
+
export interface FormBuilderProps {
|
|
22
|
+
fields: FormField[];
|
|
23
|
+
onSubmit: (values: Record<string, any>) => void;
|
|
24
|
+
header?: React.ReactNode;
|
|
25
|
+
btn?: ButtonProps;
|
|
26
|
+
layout?: "block" | "grid";
|
|
27
|
+
spacing?: number;
|
|
28
|
+
styles?: {
|
|
29
|
+
labelColor?: string;
|
|
30
|
+
errorColor?: string;
|
|
31
|
+
borderColor?: string;
|
|
32
|
+
};
|
|
33
|
+
isDarkMode?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare const FormBuilder: React.FC<FormBuilderProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FormBuilder, FormField, FormBuilderProps } from "./Form";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./Input.css";
|
|
3
|
+
export interface InputProps {
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (value: string) => void;
|
|
6
|
+
label?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
type?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
error?: string;
|
|
11
|
+
fullWidth?: boolean;
|
|
12
|
+
isDarkMode?: boolean;
|
|
13
|
+
borderColor?: string;
|
|
14
|
+
focusBorder?: string;
|
|
15
|
+
focusShadow?: string;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
}
|
|
18
|
+
export declare const Input: React.FC<InputProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: React.FC<import("./Input").InputProps>;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const WithError: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const CustomStyles: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Input";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./Layout.css";
|
|
3
|
+
export interface LayoutProps {
|
|
4
|
+
header?: React.ReactNode;
|
|
5
|
+
sidebar?: React.ReactNode;
|
|
6
|
+
footer?: React.ReactNode;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
withSidebar?: boolean;
|
|
9
|
+
withHeader?: boolean;
|
|
10
|
+
withFooter?: boolean;
|
|
11
|
+
sidebarWidth?: number;
|
|
12
|
+
isDarkMode?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const Layout: React.FC<LayoutProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Layout';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./Loading.css";
|
|
3
|
+
export type LoadingVariant = "spinner" | "dots" | "bar";
|
|
4
|
+
export type LoadingSize = "xs" | "sm" | "md" | "lg";
|
|
5
|
+
export interface LoadingProps {
|
|
6
|
+
variant?: LoadingVariant;
|
|
7
|
+
size?: LoadingSize;
|
|
8
|
+
text?: string;
|
|
9
|
+
fullscreen?: boolean;
|
|
10
|
+
overlay?: boolean;
|
|
11
|
+
color?: string;
|
|
12
|
+
isDarkMode?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const Loading: React.FC<LoadingProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").FC<import("./Loading").LoadingProps>;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const WithText: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const WithDots: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const Fullscreen: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const CustomDarkMode: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Loading';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./Modal.css";
|
|
3
|
+
export interface ModalProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
title?: string;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
width?: string;
|
|
9
|
+
footer?: React.ReactNode;
|
|
10
|
+
isDarkMode?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const Modal: React.FC<ModalProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").FC<import("./Modal").ModalProps>;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const DemoModal: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const DarkModal: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Modal";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./Navbar.css";
|
|
3
|
+
export interface NavbarLink {
|
|
4
|
+
label: string;
|
|
5
|
+
href?: string;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface NavbarAction {
|
|
10
|
+
element?: React.ReactNode;
|
|
11
|
+
label?: string;
|
|
12
|
+
icon?: React.ReactNode;
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
variant?: "primary" | "secondary" | "ghost";
|
|
15
|
+
}
|
|
16
|
+
export interface NavbarProps {
|
|
17
|
+
logo?: React.ReactNode;
|
|
18
|
+
links?: NavbarLink[];
|
|
19
|
+
actions?: NavbarAction[];
|
|
20
|
+
position?: "left" | "center" | "right";
|
|
21
|
+
sticky?: boolean;
|
|
22
|
+
isDarkMode?: boolean;
|
|
23
|
+
height?: number;
|
|
24
|
+
}
|
|
25
|
+
export declare const Navbar: React.FC<NavbarProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Navbar';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./Pagination.css";
|
|
3
|
+
export interface PaginationProps {
|
|
4
|
+
page: number;
|
|
5
|
+
pageSize: number;
|
|
6
|
+
total: number;
|
|
7
|
+
color?: string;
|
|
8
|
+
position?: "left" | "center" | "right";
|
|
9
|
+
onPageChange: (page: number) => void;
|
|
10
|
+
isDarkMode?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const Pagination: React.FC<PaginationProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: React.FC<import("./Pagination").PaginationProps>;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const DarkMode: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Pagination';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./ProfileMenu.css";
|
|
3
|
+
export interface ProfileUser {
|
|
4
|
+
name: string;
|
|
5
|
+
email?: string;
|
|
6
|
+
avatar?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ProfileAction {
|
|
9
|
+
label?: string;
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
icon?: React.ReactNode;
|
|
12
|
+
danger?: boolean;
|
|
13
|
+
divider?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface ProfileMenuProps {
|
|
16
|
+
user: ProfileUser;
|
|
17
|
+
actions: ProfileAction[];
|
|
18
|
+
isDarkMode?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare const ProfileMenu: React.FC<ProfileMenuProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ProfileMenu';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./QuicklyLogin.css";
|
|
3
|
+
import { ButtonProps } from "../..";
|
|
4
|
+
import { FormField } from "../Form";
|
|
5
|
+
export interface QuicklyLoginProps {
|
|
6
|
+
fields: FormField[];
|
|
7
|
+
onSubmit: (values: Record<string, any>) => void;
|
|
8
|
+
image?: string;
|
|
9
|
+
imagePosition?: "left" | "right";
|
|
10
|
+
title?: string;
|
|
11
|
+
subtitle?: string;
|
|
12
|
+
footer?: React.ReactNode;
|
|
13
|
+
btn?: ButtonProps;
|
|
14
|
+
maxWidth?: number | string;
|
|
15
|
+
isDarkMode?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const QuicklyLogin: React.FC<QuicklyLoginProps>;
|