@houssemdi2000/design-system 1.4.9 → 1.5.1
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 +1 -0
- package/dist/components/ActionsBar/ActionBar.d.ts +10 -0
- package/dist/components/ActionsBar/ActionBar.stories.d.ts +7 -0
- package/dist/components/Alert/Alert.d.ts +15 -0
- package/dist/components/Alert/Alert.stories.d.ts +9 -0
- package/dist/components/Alert/index.d.ts +1 -0
- package/dist/components/Column/Column.d.ts +1 -1
- package/dist/components/CustomText/CustomText.d.ts +21 -0
- package/dist/components/CustomText/CustomText.stories.d.ts +9 -0
- package/dist/components/CustomText/index.d.ts +1 -0
- package/dist/components/EditableField/EditableField.d.ts +1 -2
- package/dist/components/Grid/Grid.d.ts +1 -1
- package/dist/components/Grid/Grid.stories.d.ts +2 -0
- package/dist/components/Header/Header.d.ts +11 -0
- package/dist/components/Header/Header.stories.d.ts +6 -0
- package/dist/components/Header/index.d.ts +1 -0
- package/dist/components/IconButton/IconButton.d.ts +17 -0
- package/dist/components/IconButton/IconButton.stories.d.ts +6 -0
- package/dist/components/IconButton/index.d.ts +1 -0
- package/dist/components/Input/Input.d.ts +4 -0
- package/dist/components/Modal/Modal.d.ts +1 -0
- package/dist/components/Navbar/Navbar.d.ts +4 -17
- package/dist/components/SimpleTable/SimpleTable.d.ts +9 -0
- package/dist/components/SimpleTable/SimpleTable.stories.d.ts +6 -0
- package/dist/components/SimpleTable/index.d.ts +1 -0
- package/dist/components/Stepper/Stepper.d.ts +17 -0
- package/dist/components/Stepper/Stepper.stories.d.ts +6 -0
- package/dist/components/Stepper/index.d.ts +1 -0
- package/dist/components/Tabs/Tab.d.ts +10 -0
- package/dist/components/Tabs/TabPanel.d.ts +6 -0
- package/dist/components/Tabs/Tabs.d.ts +17 -0
- package/dist/components/Tabs/Tabs.stories.d.ts +6 -0
- package/dist/components/Tabs/index.d.ts +3 -0
- package/dist/components/TimeLine/SmartTimeLine.d.ts +8 -0
- package/dist/components/TimeLine/SmartTimeLine.stories.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.d.ts +11 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts +6 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/index.d.ts +7 -2
- package/dist/index.esm.js +267 -111
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +278 -112
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./ActionBar.css";
|
|
3
|
+
export interface ActionBarProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
isDarkMode?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const ActionBar: React.FC<ActionBarProps>;
|
|
10
|
+
export default ActionBar;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./Alert.css";
|
|
3
|
+
export type AlertType = "success" | "error" | "warning" | "info";
|
|
4
|
+
export interface AlertProps {
|
|
5
|
+
type?: AlertType;
|
|
6
|
+
title?: string;
|
|
7
|
+
message: string | React.ReactNode;
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
closable?: boolean;
|
|
10
|
+
onClose?: () => void;
|
|
11
|
+
actions?: React.ReactNode;
|
|
12
|
+
isDarkMode?: boolean;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
}
|
|
15
|
+
export declare const Alert: React.FC<AlertProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").FC<import("./Alert").AlertProps>;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Success: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const Error: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const WithAction: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const DarkMode: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Alert';
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import "./Column.css";
|
|
3
3
|
export interface ColumnProps {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
|
-
className?: "small" | "medium" | "large";
|
|
5
|
+
className?: "small" | "medium" | "large" | "1/2";
|
|
6
6
|
style?: React.CSSProperties;
|
|
7
7
|
}
|
|
8
8
|
export declare const Column: React.FC<ColumnProps>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./CustomText.css";
|
|
3
|
+
export interface CustomTextProps {
|
|
4
|
+
value: string;
|
|
5
|
+
masked?: boolean;
|
|
6
|
+
copyable?: boolean;
|
|
7
|
+
maskChar?: string;
|
|
8
|
+
revealLabel?: string;
|
|
9
|
+
copyLabel?: string;
|
|
10
|
+
onCopy?: () => void;
|
|
11
|
+
isDarkMode?: boolean;
|
|
12
|
+
width?: number | string;
|
|
13
|
+
border?: boolean;
|
|
14
|
+
copyIcon?: React.ReactNode;
|
|
15
|
+
successCopyIcon?: React.ReactNode;
|
|
16
|
+
successCopyAction?: () => void;
|
|
17
|
+
canSee?: boolean;
|
|
18
|
+
seeIcon?: React.ReactNode;
|
|
19
|
+
maskIcon?: React.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
export declare const CustomText: React.FC<CustomTextProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").FC<import("./CustomText").CustomTextProps>;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const DarkMode: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const NoMask: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const CanSee: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CustomText';
|
|
@@ -4,3 +4,5 @@ declare const _default: {
|
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const HalfWidth: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const Example: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./Header.css";
|
|
3
|
+
export interface HeaderProps {
|
|
4
|
+
left?: React.ReactNode;
|
|
5
|
+
center?: React.ReactNode;
|
|
6
|
+
right?: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
sticky?: boolean;
|
|
9
|
+
isDarkMode?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const Header: React.FC<HeaderProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Header';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./IconButton.css";
|
|
3
|
+
export type IconButtonShape = "circle" | "square";
|
|
4
|
+
export type IconButtonVariant = "default" | "ghost" | "danger" | "light";
|
|
5
|
+
export type IconButtonSize = "small" | "medium" | "large";
|
|
6
|
+
export interface IconButtonProps {
|
|
7
|
+
icon: React.ReactNode;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
shape?: IconButtonShape;
|
|
10
|
+
variant?: IconButtonVariant;
|
|
11
|
+
size?: IconButtonSize;
|
|
12
|
+
border?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
title?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const IconButton: React.FC<IconButtonProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './IconButton';
|
|
@@ -10,6 +10,10 @@ export interface InputProps {
|
|
|
10
10
|
error?: string;
|
|
11
11
|
fullWidth?: boolean;
|
|
12
12
|
isDarkMode?: boolean;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
description?: string;
|
|
15
|
+
showValidationIcon?: boolean;
|
|
16
|
+
isValid?: boolean;
|
|
13
17
|
borderColor?: string;
|
|
14
18
|
focusBorder?: string;
|
|
15
19
|
focusShadow?: string;
|
|
@@ -1,25 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
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
3
|
export interface NavbarProps {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
position?: "left" | "center" | "right";
|
|
4
|
+
left?: React.ReactNode;
|
|
5
|
+
center?: React.ReactNode;
|
|
6
|
+
right?: React.ReactNode;
|
|
21
7
|
sticky?: boolean;
|
|
22
8
|
isDarkMode?: boolean;
|
|
23
9
|
height?: number;
|
|
10
|
+
className?: string;
|
|
24
11
|
}
|
|
25
12
|
export declare const Navbar: React.FC<NavbarProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./SimpleTable.css";
|
|
3
|
+
export interface SimpleTableProps {
|
|
4
|
+
items: React.ReactNode[];
|
|
5
|
+
size?: "small" | "medium" | "large";
|
|
6
|
+
isDarkMode?: boolean;
|
|
7
|
+
borderColor?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const SimpleTable: ({ items, size, isDarkMode, borderColor, }: SimpleTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: ({ items, size, isDarkMode, borderColor, }: import("./SimpleTable").SimpleTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SimpleTable';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./Stepper.css";
|
|
3
|
+
export type StepStatus = "completed" | "active" | "disabled" | "error";
|
|
4
|
+
export interface Step {
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
status?: StepStatus;
|
|
10
|
+
}
|
|
11
|
+
export interface StepperProps {
|
|
12
|
+
steps: Step[];
|
|
13
|
+
activeStep: number;
|
|
14
|
+
onStepClick?: (index: number) => void;
|
|
15
|
+
isDarkMode?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const Stepper: React.FC<StepperProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Stepper';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./Tabs.css";
|
|
3
|
+
interface TabsContextType {
|
|
4
|
+
activeTab: string;
|
|
5
|
+
setActiveTab: (id: string) => void;
|
|
6
|
+
isDarkMode?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const TabsContext: React.Context<TabsContextType | null>;
|
|
9
|
+
export interface TabsProps {
|
|
10
|
+
value?: string;
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
onChange?: (id: string) => void;
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
isDarkMode?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const Tabs: React.FC<TabsProps>;
|
|
17
|
+
export {};
|
|
@@ -10,6 +10,7 @@ export interface TimelineItem {
|
|
|
10
10
|
status?: TimelineStatus;
|
|
11
11
|
icon?: React.ReactNode;
|
|
12
12
|
content?: React.ReactNode;
|
|
13
|
+
hoverText?: string;
|
|
13
14
|
}
|
|
14
15
|
export interface SmartTimelineProps {
|
|
15
16
|
items: TimelineItem[];
|
|
@@ -20,3 +21,10 @@ export interface SmartTimelineProps {
|
|
|
20
21
|
onItemClick?: (item: TimelineItem) => void;
|
|
21
22
|
}
|
|
22
23
|
export declare const SmartTimeline: React.FC<SmartTimelineProps>;
|
|
24
|
+
interface TimeLineContainerProps {
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
hover?: string;
|
|
27
|
+
isDarkMode?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare const TimeLineContainer: React.FC<TimeLineContainerProps>;
|
|
30
|
+
export {};
|
|
@@ -4,3 +4,5 @@ declare const _default: {
|
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const Example: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const Horizontal: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./Tooltip.css";
|
|
3
|
+
export interface TooltipProps {
|
|
4
|
+
content: React.ReactNode;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
position?: "top" | "right" | "bottom" | "left";
|
|
7
|
+
isDarkMode?: boolean;
|
|
8
|
+
maxWidth?: number;
|
|
9
|
+
delay?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const Tooltip: React.FC<TooltipProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tooltip';
|
|
@@ -27,13 +27,18 @@ export * from './Sidebar';
|
|
|
27
27
|
export * from './Footer';
|
|
28
28
|
export * from './Layout';
|
|
29
29
|
export * from './DragDrop';
|
|
30
|
-
export * from './
|
|
30
|
+
export * from './CustomText';
|
|
31
31
|
export * from './Loading';
|
|
32
32
|
export * from './Avatar';
|
|
33
33
|
export * from './ProfileMenu';
|
|
34
34
|
export * from './Colors';
|
|
35
35
|
export * from './QuicklyLogin';
|
|
36
36
|
export * from './Form';
|
|
37
|
-
export * from './CardSheet';
|
|
38
37
|
export * from './Accordion';
|
|
39
38
|
export * from './EditableField';
|
|
39
|
+
export * from './Alert';
|
|
40
|
+
export * from './Tooltip';
|
|
41
|
+
export * from './Header';
|
|
42
|
+
export * from './SimpleTable';
|
|
43
|
+
export * from './Stepper';
|
|
44
|
+
export * from './Tabs';
|