sud-ui 1.5.2 → 1.5.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/Div/Div.d.ts +35 -0
- package/dist/components/commonType.d.ts +74 -0
- package/dist/components/dataDisplay/Accordion.d.ts +43 -0
- package/dist/components/dataDisplay/Avatar.d.ts +58 -0
- package/dist/components/dataDisplay/Badge.d.ts +42 -0
- package/dist/components/dataDisplay/Calendar.d.ts +44 -0
- package/dist/components/dataDisplay/Card.d.ts +65 -0
- package/dist/components/dataDisplay/Carousel.d.ts +25 -0
- package/dist/components/dataDisplay/Collapse.d.ts +40 -0
- package/dist/components/dataDisplay/Drawer.d.ts +37 -0
- package/dist/components/dataDisplay/Image.d.ts +30 -0
- package/dist/components/dataDisplay/List.d.ts +20 -0
- package/dist/components/dataDisplay/Modal.d.ts +36 -0
- package/dist/components/dataDisplay/Popover.d.ts +8 -0
- package/dist/components/dataDisplay/Segmented.d.ts +38 -0
- package/dist/components/dataDisplay/Table.d.ts +56 -0
- package/dist/components/dataDisplay/Tabs.d.ts +60 -0
- package/dist/components/dataDisplay/Tag.d.ts +34 -0
- package/dist/components/dataDisplay/Timeline.d.ts +22 -0
- package/dist/components/dataDisplay/Tooltip.d.ts +11 -0
- package/dist/components/dataEntry/Checkbox.d.ts +56 -0
- package/dist/components/dataEntry/ColorPicker.d.ts +42 -0
- package/dist/components/dataEntry/DatePicker.d.ts +56 -0
- package/dist/components/dataEntry/Input.d.ts +128 -0
- package/dist/components/dataEntry/Radio.d.ts +54 -0
- package/dist/components/dataEntry/Rate.d.ts +25 -0
- package/dist/components/dataEntry/Select.d.ts +57 -0
- package/dist/components/dataEntry/Slider.d.ts +42 -0
- package/dist/components/dataEntry/Switch.d.ts +26 -0
- package/dist/components/dataEntry/TimePicker.d.ts +58 -0
- package/dist/components/dataEntry/TimeSelector.d.ts +28 -0
- package/dist/components/dataEntry/Upload.d.ts +34 -0
- package/dist/components/feedback/DotSpinner.d.ts +12 -0
- package/dist/components/feedback/Empty.d.ts +32 -0
- package/dist/components/feedback/NotificationRoot.d.ts +47 -0
- package/dist/components/feedback/PopConfirm.d.ts +15 -0
- package/dist/components/feedback/Progress.d.ts +33 -0
- package/dist/components/feedback/Spinner.d.ts +15 -0
- package/dist/components/feedback/ToastRoot.d.ts +28 -0
- package/dist/components/general/Button.d.ts +48 -0
- package/dist/components/general/FloatButton.d.ts +53 -0
- package/dist/components/general/Typography.d.ts +46 -0
- package/dist/components/layout/Content/index.d.ts +28 -0
- package/dist/components/layout/Footer/index.d.ts +39 -0
- package/dist/components/layout/Header/index.d.ts +37 -0
- package/dist/components/layout/Layout/index.d.ts +11 -0
- package/dist/components/layout/Sider/index.d.ts +40 -0
- package/dist/components/navigation/Breadcrumb.d.ts +22 -0
- package/dist/components/navigation/Divider.d.ts +23 -0
- package/dist/components/navigation/Dropdown.d.ts +40 -0
- package/dist/components/navigation/Menu.d.ts +58 -0
- package/dist/components/navigation/Pagination.d.ts +24 -0
- package/dist/components/navigation/base/PopupBase.d.ts +75 -0
- package/dist/index.d.ts +50 -0
- package/dist/index.js +3121 -3110
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { FC, HTMLAttributes } from "react";
|
|
2
|
+
import type { defaultColorType } from "../commonType";
|
|
3
|
+
|
|
4
|
+
export interface TimeSelectorTime {
|
|
5
|
+
hour: number | null;
|
|
6
|
+
minute: number | null;
|
|
7
|
+
second: number | null;
|
|
8
|
+
ampm: "AM" | "PM";
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface TimeSelectorValue {
|
|
12
|
+
startTime?: Date;
|
|
13
|
+
endTime?: Date;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface TimeSelectorProps extends HTMLAttributes<HTMLDivElement> {
|
|
17
|
+
value?: Date | TimeSelectorValue;
|
|
18
|
+
onChange?: (value: Date | TimeSelectorValue) => void;
|
|
19
|
+
range?: boolean;
|
|
20
|
+
use12Hours?: boolean;
|
|
21
|
+
showSecond?: boolean;
|
|
22
|
+
step?: number;
|
|
23
|
+
colorType?: defaultColorType;
|
|
24
|
+
hoverColorType?: defaultColorType;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare const TimeSelector: FC<TimeSelectorProps>;
|
|
28
|
+
export default TimeSelector;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { tagColorType } from "../commonType";
|
|
3
|
+
|
|
4
|
+
export interface UploadFile extends File {
|
|
5
|
+
status?: "uploading" | "done" | "error";
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface UploadProps {
|
|
9
|
+
listType?: "text" | "thumbnail" | "card" | "none";
|
|
10
|
+
ext?: string[];
|
|
11
|
+
multiple?: boolean;
|
|
12
|
+
maxCount?: number;
|
|
13
|
+
maxFileSize?: number;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
fileList?: UploadFile[];
|
|
16
|
+
showUploadList?: boolean;
|
|
17
|
+
onChange?: (files: UploadFile | UploadFile[]) => void;
|
|
18
|
+
onRemove?: (files: UploadFile[]) => void;
|
|
19
|
+
onDrag?: (isDragging: boolean) => void;
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
className?: string;
|
|
22
|
+
ariaLabel?: string;
|
|
23
|
+
role?: string;
|
|
24
|
+
listColorType?: tagColorType;
|
|
25
|
+
listErrorColorType?: tagColorType;
|
|
26
|
+
listHoverColorType?: tagColorType;
|
|
27
|
+
listDeleteColorType?: tagColorType;
|
|
28
|
+
listDirection?: "row" | "column";
|
|
29
|
+
thumbnailSize?: number;
|
|
30
|
+
cardSize?: number;
|
|
31
|
+
drag?: boolean;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export declare const Upload: React.FC<UploadProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode, CSSProperties, FC, HTMLAttributes } from "react";
|
|
2
|
+
import type { tagColorType } from "../commonType";
|
|
3
|
+
|
|
4
|
+
export interface DotSpinnerProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
size?: number;
|
|
6
|
+
colorType?: tagColorType;
|
|
7
|
+
text?: boolean | string | ReactNode;
|
|
8
|
+
style?: CSSProperties;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare const DotSpinner: FC<DotSpinnerProps>;
|
|
12
|
+
export default DotSpinner;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ReactNode,
|
|
3
|
+
CSSProperties,
|
|
4
|
+
FC,
|
|
5
|
+
HTMLAttributes,
|
|
6
|
+
ReactElement
|
|
7
|
+
} from "react";
|
|
8
|
+
import type { fontSizeType, fontWeightType } from "../commonType";
|
|
9
|
+
import type {
|
|
10
|
+
PretendardWeight,
|
|
11
|
+
GmarketWeight,
|
|
12
|
+
SuiteWeight
|
|
13
|
+
} from "../general/Typography";
|
|
14
|
+
|
|
15
|
+
export interface EmptyProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
icon?: ReactElement;
|
|
17
|
+
iconSize?: string | number;
|
|
18
|
+
iconColor?: string;
|
|
19
|
+
description?: ReactNode;
|
|
20
|
+
pretendard?: PretendardWeight;
|
|
21
|
+
gmarket?: GmarketWeight;
|
|
22
|
+
suite?: SuiteWeight;
|
|
23
|
+
fontFamily?: string;
|
|
24
|
+
size?: fontSizeType;
|
|
25
|
+
weight?: fontWeightType;
|
|
26
|
+
as?: string;
|
|
27
|
+
color?: string;
|
|
28
|
+
style?: CSSProperties;
|
|
29
|
+
className?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export declare const Empty: FC<EmptyProps>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type {
|
|
3
|
+
defaultColorType,
|
|
4
|
+
shapeType,
|
|
5
|
+
borderType,
|
|
6
|
+
shadowType
|
|
7
|
+
} from "../commonType";
|
|
8
|
+
|
|
9
|
+
export type NotificationPosition =
|
|
10
|
+
| "top-left"
|
|
11
|
+
| "top-center"
|
|
12
|
+
| "top-right"
|
|
13
|
+
| "bottom-left"
|
|
14
|
+
| "bottom-center"
|
|
15
|
+
| "bottom-right";
|
|
16
|
+
|
|
17
|
+
export interface NotificationOptions {
|
|
18
|
+
title?: ReactNode;
|
|
19
|
+
message?: ReactNode;
|
|
20
|
+
footer?: ReactNode;
|
|
21
|
+
duration?: number | false;
|
|
22
|
+
position?: NotificationPosition;
|
|
23
|
+
onClose?: () => void;
|
|
24
|
+
colorType?: defaultColorType;
|
|
25
|
+
color?: string;
|
|
26
|
+
background?: string;
|
|
27
|
+
borderType?: borderType;
|
|
28
|
+
borderColor?: string;
|
|
29
|
+
borderWeight?: number;
|
|
30
|
+
border?: boolean;
|
|
31
|
+
shape?: shapeType;
|
|
32
|
+
shadow?: shadowType;
|
|
33
|
+
width?: number | string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface NotificationItemProps extends NotificationOptions {
|
|
37
|
+
id: number;
|
|
38
|
+
onClose: () => void;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface NotificationRootProps {}
|
|
42
|
+
|
|
43
|
+
export declare const NotificationRoot: React.FC<NotificationRootProps>;
|
|
44
|
+
|
|
45
|
+
export declare const notification: {
|
|
46
|
+
open: (options: NotificationOptions) => void;
|
|
47
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FC } from "react";
|
|
2
|
+
import type { PopupBaseProps } from "../navigation/base/PopupBase";
|
|
3
|
+
|
|
4
|
+
type PopConfirmBaseProps = Omit<
|
|
5
|
+
PopupBaseProps,
|
|
6
|
+
"variant" | "arrow" | "followTrigger" | "contentRef" | "parentRef"
|
|
7
|
+
>;
|
|
8
|
+
|
|
9
|
+
export interface PopConfirmProps extends PopConfirmBaseProps {
|
|
10
|
+
type?: "primary" | "success" | "danger" | "warning";
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export declare const PopConfirm: FC<PopConfirmProps>;
|
|
14
|
+
|
|
15
|
+
export default PopConfirm;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ReactNode, CSSProperties, FC, HTMLAttributes } from "react";
|
|
2
|
+
import type { tagColorType } from "../commonType";
|
|
3
|
+
|
|
4
|
+
export type ProgressType = "bar" | "circle" | "dashboard";
|
|
5
|
+
export type ProgressSize = "sm" | "md" | "lg";
|
|
6
|
+
|
|
7
|
+
export type ProgressValuePosition =
|
|
8
|
+
| "inside-start"
|
|
9
|
+
| "inside-center"
|
|
10
|
+
| "inside-end"
|
|
11
|
+
| "outside-left"
|
|
12
|
+
| "outside-right";
|
|
13
|
+
|
|
14
|
+
export interface ProgressProps extends HTMLAttributes<HTMLDivElement> {
|
|
15
|
+
type?: ProgressType;
|
|
16
|
+
value?: number;
|
|
17
|
+
max?: number;
|
|
18
|
+
unit?: string;
|
|
19
|
+
showText?: boolean;
|
|
20
|
+
iconWhenFull?: ReactNode;
|
|
21
|
+
iconWhenNotFull?: ReactNode;
|
|
22
|
+
colorType?: tagColorType;
|
|
23
|
+
backgroundColor?: string;
|
|
24
|
+
color?: string;
|
|
25
|
+
valuePosition?: ProgressValuePosition;
|
|
26
|
+
size?: ProgressSize;
|
|
27
|
+
fontSize?: number;
|
|
28
|
+
className?: string;
|
|
29
|
+
style?: CSSProperties;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare const Progress: FC<ProgressProps>;
|
|
33
|
+
export default Progress;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode, CSSProperties, FC, HTMLAttributes } from "react";
|
|
2
|
+
import type { tagColorType } from "../commonType";
|
|
3
|
+
|
|
4
|
+
export type SpinnerType = "default" | "elastic";
|
|
5
|
+
|
|
6
|
+
export interface SpinnerProps extends HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
size?: number;
|
|
8
|
+
colorType?: tagColorType;
|
|
9
|
+
spinnerType?: SpinnerType;
|
|
10
|
+
text?: boolean | string | ReactNode;
|
|
11
|
+
style?: CSSProperties;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare const Spinner: FC<SpinnerProps>;
|
|
15
|
+
export default Spinner;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ReactNode, FC } from "react";
|
|
2
|
+
|
|
3
|
+
export type ToastType = "success" | "danger" | "info" | "warning";
|
|
4
|
+
|
|
5
|
+
export interface ToastOptions {
|
|
6
|
+
duration?: number;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface ToastItemProps {
|
|
11
|
+
id: number;
|
|
12
|
+
type: ToastType;
|
|
13
|
+
message: ReactNode;
|
|
14
|
+
duration: number;
|
|
15
|
+
onClose: (id: number) => void;
|
|
16
|
+
icon?: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface ToastRootProps {}
|
|
20
|
+
|
|
21
|
+
export declare const ToastRoot: FC<ToastRootProps>;
|
|
22
|
+
|
|
23
|
+
export declare const toast: {
|
|
24
|
+
success: (message: ReactNode, options?: ToastOptions) => void;
|
|
25
|
+
danger: (message: ReactNode, options?: ToastOptions) => void;
|
|
26
|
+
info: (message: ReactNode, options?: ToastOptions) => void;
|
|
27
|
+
warning: (message: ReactNode, options?: ToastOptions) => void;
|
|
28
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ReactNode,
|
|
3
|
+
MouseEvent,
|
|
4
|
+
CSSProperties,
|
|
5
|
+
FC,
|
|
6
|
+
HTMLAttributes
|
|
7
|
+
} from "react";
|
|
8
|
+
import type {
|
|
9
|
+
defaultColorType,
|
|
10
|
+
shapeType,
|
|
11
|
+
borderType,
|
|
12
|
+
shadowType
|
|
13
|
+
} from "../commonType";
|
|
14
|
+
|
|
15
|
+
export type LoadingType = "default" | "elastic" | "brush";
|
|
16
|
+
export type IconPosition = "left" | "right" | "";
|
|
17
|
+
export type ButtonSize = "sm" | "md" | "lg";
|
|
18
|
+
|
|
19
|
+
export interface ButtonProps
|
|
20
|
+
extends Omit<HTMLAttributes<HTMLButtonElement>, "onClick"> {
|
|
21
|
+
children?: ReactNode;
|
|
22
|
+
colorType?: defaultColorType;
|
|
23
|
+
background?: string;
|
|
24
|
+
color?: string;
|
|
25
|
+
border?: boolean;
|
|
26
|
+
borderColor?: string;
|
|
27
|
+
borderType?: borderType;
|
|
28
|
+
borderWeight?: number;
|
|
29
|
+
onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
30
|
+
className?: string;
|
|
31
|
+
icon?: ReactNode;
|
|
32
|
+
iconPosition?: IconPosition;
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
loading?: boolean;
|
|
35
|
+
loadingText?: string;
|
|
36
|
+
loadingType?: LoadingType;
|
|
37
|
+
loadingPosition?: "left" | "right";
|
|
38
|
+
shape?: shapeType;
|
|
39
|
+
shadow?: shadowType;
|
|
40
|
+
size?: ButtonSize;
|
|
41
|
+
style?: CSSProperties;
|
|
42
|
+
ariaLabel?: string;
|
|
43
|
+
ariaPressed?: boolean;
|
|
44
|
+
ariaExpanded?: boolean;
|
|
45
|
+
ariaControls?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export declare const Button: FC<ButtonProps>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { ReactNode, MouseEvent, CSSProperties, FC } from "react";
|
|
2
|
+
import type { ButtonProps } from "./Button";
|
|
3
|
+
import type {
|
|
4
|
+
defaultColorType,
|
|
5
|
+
defaultSizeType,
|
|
6
|
+
shapeType,
|
|
7
|
+
borderType,
|
|
8
|
+
shadowType
|
|
9
|
+
} from "../commonType";
|
|
10
|
+
|
|
11
|
+
export type FloatButtonPlacement =
|
|
12
|
+
| "bottom-right"
|
|
13
|
+
| "bottom-left"
|
|
14
|
+
| "bottom-center"
|
|
15
|
+
| "top-right"
|
|
16
|
+
| "top-left"
|
|
17
|
+
| "top-center"
|
|
18
|
+
| "left-center"
|
|
19
|
+
| "right-center";
|
|
20
|
+
|
|
21
|
+
export type FloatButtonDirection = "up" | "down" | "left" | "right";
|
|
22
|
+
|
|
23
|
+
export interface FloatButtonAction extends Omit<ButtonProps, "children"> {}
|
|
24
|
+
|
|
25
|
+
export interface FloatButtonProps {
|
|
26
|
+
icon?: ReactNode;
|
|
27
|
+
onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
28
|
+
actions?: FloatButtonAction[];
|
|
29
|
+
placement?: FloatButtonPlacement;
|
|
30
|
+
shape?: shapeType;
|
|
31
|
+
colorType?: defaultColorType;
|
|
32
|
+
background?: string;
|
|
33
|
+
color?: string;
|
|
34
|
+
border?: boolean;
|
|
35
|
+
borderColor?: string;
|
|
36
|
+
borderType?: borderType;
|
|
37
|
+
borderWeight?: number;
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
shadow?: shadowType;
|
|
40
|
+
style?: CSSProperties;
|
|
41
|
+
className?: string;
|
|
42
|
+
ariaLabel?: string;
|
|
43
|
+
ariaPressed?: boolean;
|
|
44
|
+
ariaExpanded?: boolean;
|
|
45
|
+
ariaControls?: string;
|
|
46
|
+
role?: string;
|
|
47
|
+
subColorType?: defaultColorType;
|
|
48
|
+
size?: defaultSizeType;
|
|
49
|
+
isExample?: boolean;
|
|
50
|
+
direction?: FloatButtonDirection;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export declare const FloatButton: FC<FloatButtonProps>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ReactNode,
|
|
3
|
+
CSSProperties,
|
|
4
|
+
FC,
|
|
5
|
+
HTMLAttributes,
|
|
6
|
+
ElementType
|
|
7
|
+
} from "react";
|
|
8
|
+
|
|
9
|
+
export type PretendardWeight =
|
|
10
|
+
| "T"
|
|
11
|
+
| "EL"
|
|
12
|
+
| "L"
|
|
13
|
+
| "R"
|
|
14
|
+
| "M"
|
|
15
|
+
| "SB"
|
|
16
|
+
| "B"
|
|
17
|
+
| "Black";
|
|
18
|
+
export type GmarketWeight = "Light" | "Medium" | "Bold";
|
|
19
|
+
export type SuiteWeight = "L" | "R" | "M" | "SM" | "B" | "EB" | "H";
|
|
20
|
+
export type FontSize =
|
|
21
|
+
| "xs"
|
|
22
|
+
| "sm"
|
|
23
|
+
| "base"
|
|
24
|
+
| "lg"
|
|
25
|
+
| "xl"
|
|
26
|
+
| "2xl"
|
|
27
|
+
| "3xl"
|
|
28
|
+
| "4xl";
|
|
29
|
+
export type FontWeight = "light" | "normal" | "medium" | "semibold" | "bold";
|
|
30
|
+
|
|
31
|
+
export interface TypographyProps extends HTMLAttributes<HTMLElement> {
|
|
32
|
+
children?: ReactNode;
|
|
33
|
+
pretendard?: PretendardWeight;
|
|
34
|
+
gmarket?: GmarketWeight;
|
|
35
|
+
suite?: SuiteWeight;
|
|
36
|
+
code?: boolean;
|
|
37
|
+
fontFamily?: string;
|
|
38
|
+
size?: FontSize;
|
|
39
|
+
weight?: FontWeight;
|
|
40
|
+
as?: ElementType;
|
|
41
|
+
color?: string;
|
|
42
|
+
className?: string;
|
|
43
|
+
style?: CSSProperties;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export declare const Typography: FC<TypographyProps>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ReactNode,
|
|
3
|
+
CSSProperties,
|
|
4
|
+
ForwardRefExoticComponent,
|
|
5
|
+
RefAttributes,
|
|
6
|
+
HTMLAttributes
|
|
7
|
+
} from "react";
|
|
8
|
+
|
|
9
|
+
export interface LayoutOffset {
|
|
10
|
+
header?: number;
|
|
11
|
+
footer?: number;
|
|
12
|
+
sider?: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface ContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
className?: string;
|
|
18
|
+
background?: string;
|
|
19
|
+
color?: string;
|
|
20
|
+
layoutOffset?: LayoutOffset;
|
|
21
|
+
style?: CSSProperties;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare const Content: ForwardRefExoticComponent<
|
|
25
|
+
ContentProps & RefAttributes<HTMLDivElement>
|
|
26
|
+
>;
|
|
27
|
+
|
|
28
|
+
export default Content;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ReactNode,
|
|
3
|
+
CSSProperties,
|
|
4
|
+
ForwardRefExoticComponent,
|
|
5
|
+
RefAttributes,
|
|
6
|
+
HTMLAttributes
|
|
7
|
+
} from "react";
|
|
8
|
+
import type {
|
|
9
|
+
defaultColorType,
|
|
10
|
+
shapeType,
|
|
11
|
+
borderType,
|
|
12
|
+
shadowType
|
|
13
|
+
} from "../../commonType";
|
|
14
|
+
|
|
15
|
+
export interface FooterProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
background?: string;
|
|
18
|
+
color?: string;
|
|
19
|
+
colorType?: defaultColorType;
|
|
20
|
+
borderColor?: string;
|
|
21
|
+
borderType?: borderType;
|
|
22
|
+
borderWeight?: string | number;
|
|
23
|
+
className?: string;
|
|
24
|
+
shape?: shapeType;
|
|
25
|
+
height?: string | number;
|
|
26
|
+
FullWidth?: boolean;
|
|
27
|
+
shadow?: shadowType;
|
|
28
|
+
onHeightChange?: (height: number) => void;
|
|
29
|
+
siderPosition?: "above-header" | "below-header";
|
|
30
|
+
siderWidth?: number;
|
|
31
|
+
border?: boolean;
|
|
32
|
+
style?: CSSProperties;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare const Footer: ForwardRefExoticComponent<
|
|
36
|
+
FooterProps & RefAttributes<HTMLDivElement>
|
|
37
|
+
>;
|
|
38
|
+
|
|
39
|
+
export default Footer;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ReactNode,
|
|
3
|
+
CSSProperties,
|
|
4
|
+
ForwardRefExoticComponent,
|
|
5
|
+
RefAttributes
|
|
6
|
+
} from "react";
|
|
7
|
+
import type {
|
|
8
|
+
defaultColorType,
|
|
9
|
+
shapeType,
|
|
10
|
+
borderType,
|
|
11
|
+
shadowType
|
|
12
|
+
} from "../../commonType";
|
|
13
|
+
|
|
14
|
+
export interface HeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
background?: string;
|
|
17
|
+
color?: string;
|
|
18
|
+
colorType?: defaultColorType;
|
|
19
|
+
borderColor?: string;
|
|
20
|
+
borderType?: borderType;
|
|
21
|
+
borderWeight?: string | number;
|
|
22
|
+
className?: string;
|
|
23
|
+
shape?: shapeType;
|
|
24
|
+
height?: string | number;
|
|
25
|
+
FullWidth?: boolean;
|
|
26
|
+
shadow?: shadowType;
|
|
27
|
+
siderPosition?: "above-header" | "below-header";
|
|
28
|
+
siderWidth?: number;
|
|
29
|
+
border?: boolean;
|
|
30
|
+
style?: CSSProperties;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare const Header: ForwardRefExoticComponent<
|
|
34
|
+
HeaderProps & RefAttributes<HTMLDivElement>
|
|
35
|
+
>;
|
|
36
|
+
|
|
37
|
+
export default Header;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode, FC, HTMLAttributes } from "react";
|
|
2
|
+
|
|
3
|
+
export type LayoutSiderPosition = "above-header" | "below-header";
|
|
4
|
+
|
|
5
|
+
export interface LayoutProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
siderPosition?: LayoutSiderPosition;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare const Layout: FC<LayoutProps>;
|
|
11
|
+
export default Layout;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ReactNode,
|
|
3
|
+
CSSProperties,
|
|
4
|
+
ForwardRefExoticComponent,
|
|
5
|
+
RefAttributes,
|
|
6
|
+
HTMLAttributes
|
|
7
|
+
} from "react";
|
|
8
|
+
import type {
|
|
9
|
+
defaultColorType,
|
|
10
|
+
shapeType,
|
|
11
|
+
borderType,
|
|
12
|
+
shadowType
|
|
13
|
+
} from "../../commonType";
|
|
14
|
+
|
|
15
|
+
export interface SiderProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
background?: string;
|
|
18
|
+
colorType?: defaultColorType;
|
|
19
|
+
color?: string;
|
|
20
|
+
borderColor?: string;
|
|
21
|
+
borderType?: borderType;
|
|
22
|
+
borderWeight?: string | number;
|
|
23
|
+
className?: string;
|
|
24
|
+
shape?: shapeType;
|
|
25
|
+
width?: string | number;
|
|
26
|
+
FullHeight?: boolean;
|
|
27
|
+
shadow?: shadowType;
|
|
28
|
+
onWidthChange?: (width: number) => void;
|
|
29
|
+
siderPosition?: "above-header" | "below-header";
|
|
30
|
+
headerHeight?: number;
|
|
31
|
+
footerHeight?: number;
|
|
32
|
+
border?: boolean;
|
|
33
|
+
style?: CSSProperties;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
declare const Sider: ForwardRefExoticComponent<
|
|
37
|
+
SiderProps & RefAttributes<HTMLDivElement>
|
|
38
|
+
>;
|
|
39
|
+
|
|
40
|
+
export default Sider;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ReactNode, CSSProperties, FC } from "react";
|
|
2
|
+
import type { fontSizeType } from "../commonType";
|
|
3
|
+
|
|
4
|
+
export interface BreadcrumbItem {
|
|
5
|
+
label: ReactNode;
|
|
6
|
+
href?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface BreadcrumbProps {
|
|
10
|
+
className?: string;
|
|
11
|
+
items?: BreadcrumbItem[];
|
|
12
|
+
separator?: ReactNode;
|
|
13
|
+
style?: CSSProperties;
|
|
14
|
+
separatorStyle?: CSSProperties;
|
|
15
|
+
linkStyle?: CSSProperties;
|
|
16
|
+
itemStyle?: CSSProperties;
|
|
17
|
+
listStyle?: CSSProperties;
|
|
18
|
+
size?: fontSizeType;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare const Breadcrumb: FC<BreadcrumbProps>;
|
|
22
|
+
export default Breadcrumb;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ReactNode, CSSProperties, FC, HTMLAttributes } from "react";
|
|
2
|
+
import type { defaultColorType, borderType } from "../commonType";
|
|
3
|
+
|
|
4
|
+
export type DividerAlign = "left" | "center" | "right" | "top" | "bottom";
|
|
5
|
+
|
|
6
|
+
export interface DividerProps extends HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
content?: ReactNode;
|
|
8
|
+
align?: DividerAlign;
|
|
9
|
+
borderWeight?: number;
|
|
10
|
+
borderType?: borderType;
|
|
11
|
+
border?: boolean;
|
|
12
|
+
color?: string;
|
|
13
|
+
borderColor?: string;
|
|
14
|
+
colorType?: defaultColorType;
|
|
15
|
+
width?: string | number;
|
|
16
|
+
height?: string | number;
|
|
17
|
+
vertical?: boolean;
|
|
18
|
+
style?: CSSProperties;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare const Divider: FC<DividerProps>;
|
|
23
|
+
export default Divider;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ReactNode, CSSProperties, FC, HTMLAttributes } from "react";
|
|
2
|
+
import type { MenuItem } from "./Menu";
|
|
3
|
+
import type { PopupPlacement, PopupTrigger } from "./base/PopupBase";
|
|
4
|
+
import type {
|
|
5
|
+
defaultColorType,
|
|
6
|
+
shapeType,
|
|
7
|
+
borderType,
|
|
8
|
+
shadowType
|
|
9
|
+
} from "../commonType";
|
|
10
|
+
|
|
11
|
+
export interface DropdownProps
|
|
12
|
+
extends Omit<HTMLAttributes<HTMLDivElement>, "style"> {
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
title?: ReactNode;
|
|
15
|
+
trigger?: PopupTrigger;
|
|
16
|
+
open?: boolean;
|
|
17
|
+
defaultOpen?: boolean;
|
|
18
|
+
onOpenChange?: (open: boolean) => void;
|
|
19
|
+
closeOnClick?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
className?: string;
|
|
22
|
+
items?: MenuItem[];
|
|
23
|
+
background?: string;
|
|
24
|
+
color?: string;
|
|
25
|
+
border?: boolean;
|
|
26
|
+
borderColor?: string;
|
|
27
|
+
borderType?: borderType;
|
|
28
|
+
borderWeight?: number;
|
|
29
|
+
shape?: shapeType;
|
|
30
|
+
shadow?: shadowType;
|
|
31
|
+
expandType?: "accordion" | "popover";
|
|
32
|
+
popupPlacement?: PopupPlacement;
|
|
33
|
+
placement?: [PopupPlacement, PopupPlacement];
|
|
34
|
+
colorType?: defaultColorType;
|
|
35
|
+
style?: CSSProperties;
|
|
36
|
+
wrapperStyle?: CSSProperties;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare const Dropdown: FC<DropdownProps>;
|
|
40
|
+
export default Dropdown;
|