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,35 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ReactNode,
|
|
3
|
+
CSSProperties,
|
|
4
|
+
MouseEvent,
|
|
5
|
+
FC,
|
|
6
|
+
HTMLAttributes
|
|
7
|
+
} from "react";
|
|
8
|
+
import type {
|
|
9
|
+
defaultColorType,
|
|
10
|
+
shapeType,
|
|
11
|
+
borderType,
|
|
12
|
+
shadowType
|
|
13
|
+
} from "../commonType";
|
|
14
|
+
|
|
15
|
+
export interface DivProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
colorType?: defaultColorType;
|
|
18
|
+
background?: string;
|
|
19
|
+
color?: string;
|
|
20
|
+
onClick?: (e: MouseEvent<HTMLDivElement>) => void;
|
|
21
|
+
style?: CSSProperties;
|
|
22
|
+
className?: string;
|
|
23
|
+
/** 테두리 표시 여부 */
|
|
24
|
+
border?: boolean;
|
|
25
|
+
/** 테두리 색상 */
|
|
26
|
+
borderColor?: string;
|
|
27
|
+
/** 테두리 스타일 */
|
|
28
|
+
borderType?: borderType;
|
|
29
|
+
/** 테두리 두께 */
|
|
30
|
+
borderWeight?: number;
|
|
31
|
+
/** 그림자 효과 */
|
|
32
|
+
shadow?: shadowType;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export declare const Div: FC<DivProps>;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export type defaultColorType = badgeColorType | tagColorType | "ghost" | "text";
|
|
2
|
+
|
|
3
|
+
export type badgeColorType =
|
|
4
|
+
| "default"
|
|
5
|
+
| "primary"
|
|
6
|
+
| "success"
|
|
7
|
+
| "warning"
|
|
8
|
+
| "danger"
|
|
9
|
+
| "info";
|
|
10
|
+
|
|
11
|
+
export type tagColorType =
|
|
12
|
+
| "default"
|
|
13
|
+
| "red"
|
|
14
|
+
| "rose"
|
|
15
|
+
| "coral"
|
|
16
|
+
| "orange"
|
|
17
|
+
| "volcano"
|
|
18
|
+
| "apricot"
|
|
19
|
+
| "yellow"
|
|
20
|
+
| "gold"
|
|
21
|
+
| "amber"
|
|
22
|
+
| "green"
|
|
23
|
+
| "lime"
|
|
24
|
+
| "mint"
|
|
25
|
+
| "blue"
|
|
26
|
+
| "sky"
|
|
27
|
+
| "cerulean"
|
|
28
|
+
| "indigo"
|
|
29
|
+
| "cobalt"
|
|
30
|
+
| "navy"
|
|
31
|
+
| "purple"
|
|
32
|
+
| "plum"
|
|
33
|
+
| "orchid"
|
|
34
|
+
| "forest"
|
|
35
|
+
| "sage"
|
|
36
|
+
| "warm-gray"
|
|
37
|
+
| "cool-gray"
|
|
38
|
+
| "neutral";
|
|
39
|
+
|
|
40
|
+
export type shapeType = "square" | "circle" | "rounded" | "capsule";
|
|
41
|
+
|
|
42
|
+
export type defaultSizeType = "xs" | "sm" | "md" | "lg" | "xl";
|
|
43
|
+
|
|
44
|
+
export type borderType =
|
|
45
|
+
| "solid"
|
|
46
|
+
| "dashed"
|
|
47
|
+
| "dotted"
|
|
48
|
+
| "double"
|
|
49
|
+
| "groove"
|
|
50
|
+
| "ridge"
|
|
51
|
+
| "inset"
|
|
52
|
+
| "outset"
|
|
53
|
+
| "none";
|
|
54
|
+
|
|
55
|
+
export type shadowType = "none" | "sm" | "md" | "lg" | "xl";
|
|
56
|
+
|
|
57
|
+
export type fontSizeType =
|
|
58
|
+
| "xs"
|
|
59
|
+
| "sm"
|
|
60
|
+
| "base"
|
|
61
|
+
| "lg"
|
|
62
|
+
| "xl"
|
|
63
|
+
| "2xl"
|
|
64
|
+
| "3xl"
|
|
65
|
+
| "4xl";
|
|
66
|
+
|
|
67
|
+
export type fontWeightType =
|
|
68
|
+
| "light"
|
|
69
|
+
| "normal"
|
|
70
|
+
| "medium"
|
|
71
|
+
| "semibold"
|
|
72
|
+
| "bold";
|
|
73
|
+
|
|
74
|
+
export type spacingType = "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ReactNode, CSSProperties, FC } from "react";
|
|
2
|
+
import {
|
|
3
|
+
defaultColorType,
|
|
4
|
+
shapeType,
|
|
5
|
+
borderType,
|
|
6
|
+
shadowType
|
|
7
|
+
} from "../commonType";
|
|
8
|
+
|
|
9
|
+
export interface AccordionItem {
|
|
10
|
+
key?: string;
|
|
11
|
+
label: ReactNode;
|
|
12
|
+
icon?: ReactNode;
|
|
13
|
+
children?: AccordionItem[];
|
|
14
|
+
mode?: "group";
|
|
15
|
+
title?: ReactNode;
|
|
16
|
+
onClick?: () => void;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface AccordionProps {
|
|
20
|
+
items?: AccordionItem[];
|
|
21
|
+
selectedKey?: string;
|
|
22
|
+
defaultSelectedKey?: string;
|
|
23
|
+
onSelect?: (key: string) => void;
|
|
24
|
+
selectedColor?: string;
|
|
25
|
+
selectedTextColor?: string;
|
|
26
|
+
hoverColor?: string;
|
|
27
|
+
hoverTextColor?: string;
|
|
28
|
+
className?: string;
|
|
29
|
+
divider?: boolean;
|
|
30
|
+
colorType?: defaultColorType;
|
|
31
|
+
dividerColor?: string;
|
|
32
|
+
background?: string;
|
|
33
|
+
color?: string;
|
|
34
|
+
border?: boolean;
|
|
35
|
+
borderColor?: string;
|
|
36
|
+
borderType?: borderType;
|
|
37
|
+
borderWeight?: number;
|
|
38
|
+
shape?: shapeType;
|
|
39
|
+
shadow?: shadowType;
|
|
40
|
+
style?: CSSProperties;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export declare const Accordion: FC<AccordionProps>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { ReactNode, KeyboardEvent, CSSProperties, FC } from "react";
|
|
2
|
+
import type {
|
|
3
|
+
tagColorType,
|
|
4
|
+
defaultSizeType,
|
|
5
|
+
shapeType,
|
|
6
|
+
borderType,
|
|
7
|
+
shadowType
|
|
8
|
+
} from "../commonType";
|
|
9
|
+
|
|
10
|
+
export interface AvatarProps {
|
|
11
|
+
src?: string | ReactNode;
|
|
12
|
+
sample?: 1 | 2 | 3 | 4 | 5;
|
|
13
|
+
alt?: string;
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
size?: defaultSizeType | number;
|
|
16
|
+
shape?: shapeType;
|
|
17
|
+
colorType?: tagColorType;
|
|
18
|
+
background?: string;
|
|
19
|
+
color?: string;
|
|
20
|
+
border?: boolean;
|
|
21
|
+
borderColor?: string;
|
|
22
|
+
borderType?: borderType;
|
|
23
|
+
borderWeight?: number;
|
|
24
|
+
shadow?: shadowType;
|
|
25
|
+
style?: CSSProperties;
|
|
26
|
+
className?: string;
|
|
27
|
+
onClick?: () => void;
|
|
28
|
+
onKeyDown?: (e: KeyboardEvent<HTMLDivElement>) => void;
|
|
29
|
+
tabIndex?: number;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface AvatarGroupProps {
|
|
33
|
+
avatars?: Array<Partial<AvatarProps>>;
|
|
34
|
+
max?: number;
|
|
35
|
+
size?: defaultSizeType;
|
|
36
|
+
shape?: shapeType;
|
|
37
|
+
colorType?: tagColorType;
|
|
38
|
+
background?: string;
|
|
39
|
+
color?: string;
|
|
40
|
+
border?: boolean;
|
|
41
|
+
borderColor?: string;
|
|
42
|
+
borderType?: borderType;
|
|
43
|
+
borderWeight?: number;
|
|
44
|
+
shadow?: shadowType;
|
|
45
|
+
style?: CSSProperties;
|
|
46
|
+
className?: string;
|
|
47
|
+
zIndexStart?: number;
|
|
48
|
+
gap?: number;
|
|
49
|
+
"aria-label"?: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface AvatarComponent extends FC<AvatarProps> {
|
|
53
|
+
Group: FC<AvatarGroupProps>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
declare const Avatar: AvatarComponent;
|
|
57
|
+
|
|
58
|
+
export default Avatar;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { ReactNode, CSSProperties, FC } from "react";
|
|
2
|
+
import type {
|
|
3
|
+
tagColorType, // badgeColorType -> tagColorType으로 변경
|
|
4
|
+
defaultSizeType,
|
|
5
|
+
shapeType,
|
|
6
|
+
borderType,
|
|
7
|
+
shadowType
|
|
8
|
+
} from "../commonType";
|
|
9
|
+
|
|
10
|
+
export type BadgePosition =
|
|
11
|
+
| "top-right"
|
|
12
|
+
| "top-left"
|
|
13
|
+
| "bottom-right"
|
|
14
|
+
| "bottom-left";
|
|
15
|
+
|
|
16
|
+
export type BadgeSize = defaultSizeType | number;
|
|
17
|
+
|
|
18
|
+
export interface BadgeProps {
|
|
19
|
+
count?: ReactNode; // number -> ReactNode 로 변경
|
|
20
|
+
max?: number;
|
|
21
|
+
dot?: boolean;
|
|
22
|
+
showZero?: boolean;
|
|
23
|
+
position?: BadgePosition;
|
|
24
|
+
size?: BadgeSize;
|
|
25
|
+
offsetRatio?: number;
|
|
26
|
+
label?: boolean;
|
|
27
|
+
colorType?: tagColorType; // badgeColorType -> tagColorType으로 변경
|
|
28
|
+
background?: string;
|
|
29
|
+
color?: string;
|
|
30
|
+
border?: boolean;
|
|
31
|
+
borderColor?: string;
|
|
32
|
+
borderType?: borderType;
|
|
33
|
+
borderWeight?: number;
|
|
34
|
+
shape?: "circle" | "square" | "rounded"; // 'rounded' 추가
|
|
35
|
+
shadow?: shadowType;
|
|
36
|
+
className?: string;
|
|
37
|
+
style?: CSSProperties;
|
|
38
|
+
children?: ReactNode;
|
|
39
|
+
"aria-label"?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export declare const Badge: FC<BadgeProps>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { ReactNode, CSSProperties, FC, HTMLAttributes, Key } from "react";
|
|
2
|
+
import type { borderType, tagColorType } from "../commonType";
|
|
3
|
+
|
|
4
|
+
export type CalendarSize = "sm" | "md" | "lg" | "miniView";
|
|
5
|
+
export type CalendarView = "daily" | "month" | "year";
|
|
6
|
+
|
|
7
|
+
export interface CalendarItem {
|
|
8
|
+
key?: Key;
|
|
9
|
+
date: string; // YYYY-MM-DD 형식
|
|
10
|
+
content: ReactNode;
|
|
11
|
+
colorType?: tagColorType;
|
|
12
|
+
itemProps?: HTMLAttributes<HTMLSpanElement>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface CalendarProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
value?: Date;
|
|
17
|
+
onChange?: (date: Date | { startDate: Date; endDate: Date | null }) => void;
|
|
18
|
+
items?: CalendarItem[];
|
|
19
|
+
view?: CalendarView;
|
|
20
|
+
viewControl?: boolean;
|
|
21
|
+
dateControl?: boolean;
|
|
22
|
+
headerRender?: ReactNode;
|
|
23
|
+
viewControlRender?: ReactNode;
|
|
24
|
+
dateControlRender?: ReactNode;
|
|
25
|
+
locale?: "en" | "ko" | object;
|
|
26
|
+
colorType?: tagColorType;
|
|
27
|
+
background?: string;
|
|
28
|
+
hoverBackground?: string;
|
|
29
|
+
color?: string;
|
|
30
|
+
border?: boolean;
|
|
31
|
+
borderColor?: string;
|
|
32
|
+
borderType?: borderType;
|
|
33
|
+
borderWeight?: number;
|
|
34
|
+
width?: number | string;
|
|
35
|
+
height?: number | string;
|
|
36
|
+
range?: boolean;
|
|
37
|
+
startDate?: Date;
|
|
38
|
+
endDate?: Date;
|
|
39
|
+
size?: CalendarSize;
|
|
40
|
+
holidays?: string[];
|
|
41
|
+
holidaysStyle?: CSSProperties;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export declare const Calendar: FC<CalendarProps>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { ReactNode, CSSProperties, FC, HTMLAttributes } from "react";
|
|
2
|
+
import type {
|
|
3
|
+
defaultColorType,
|
|
4
|
+
shapeType,
|
|
5
|
+
borderType,
|
|
6
|
+
shadowType
|
|
7
|
+
} from "../commonType";
|
|
8
|
+
|
|
9
|
+
export type CardVariant =
|
|
10
|
+
| "card"
|
|
11
|
+
| "drawer"
|
|
12
|
+
| "modal"
|
|
13
|
+
| "notification"
|
|
14
|
+
| "toast";
|
|
15
|
+
|
|
16
|
+
export interface CardProps extends HTMLAttributes<HTMLDivElement> {
|
|
17
|
+
/** 카드 제목 */
|
|
18
|
+
title?: ReactNode;
|
|
19
|
+
/** 카드 내용 */
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
/** 카드 푸터 */
|
|
22
|
+
footer?: ReactNode;
|
|
23
|
+
/** 카드 썸네일 (이미지 URL 또는 ReactNode) */
|
|
24
|
+
thumb?: ReactNode;
|
|
25
|
+
/** 색상 타입 */
|
|
26
|
+
colorType?: defaultColorType;
|
|
27
|
+
/** 배경색 */
|
|
28
|
+
background?: string;
|
|
29
|
+
/** 텍스트 색상 */
|
|
30
|
+
color?: string;
|
|
31
|
+
/** 테두리 표시 여부 */
|
|
32
|
+
border?: boolean;
|
|
33
|
+
/** 테두리 색상 */
|
|
34
|
+
borderColor?: string;
|
|
35
|
+
/** 구분선 색상 */
|
|
36
|
+
dividerColor?: string;
|
|
37
|
+
/** 테두리 스타일 */
|
|
38
|
+
borderType?: borderType;
|
|
39
|
+
/** 테두리 두께 */
|
|
40
|
+
borderWeight?: number;
|
|
41
|
+
/** 카드 모양 */
|
|
42
|
+
shape?: shapeType;
|
|
43
|
+
/** 그림자 효과 */
|
|
44
|
+
shadow?: shadowType;
|
|
45
|
+
/** 카드 너비 */
|
|
46
|
+
width?: number | string;
|
|
47
|
+
/** 카드 높이 */
|
|
48
|
+
height?: number | string;
|
|
49
|
+
/** 썸네일 높이 */
|
|
50
|
+
thumbHeight?: number | string;
|
|
51
|
+
/** 추가 클래스명 */
|
|
52
|
+
className?: string;
|
|
53
|
+
/** 추가 스타일 */
|
|
54
|
+
style?: CSSProperties;
|
|
55
|
+
/** 카드 변형 (카드, 드로어, 모달 등) */
|
|
56
|
+
variant?: CardVariant;
|
|
57
|
+
/** 닫기 버튼 클릭 이벤트 핸들러 */
|
|
58
|
+
onClose?: () => void;
|
|
59
|
+
/** 구분선 표시 여부 */
|
|
60
|
+
divider?: boolean;
|
|
61
|
+
/** Drawer와 유사한 스타일을 적용할지 여부 */
|
|
62
|
+
isDrawer?: boolean;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export declare const Card: FC<CardProps>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactNode, CSSProperties, FC, HTMLAttributes } from "react";
|
|
2
|
+
|
|
3
|
+
export interface CarouselProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
items?: ReactNode[];
|
|
5
|
+
itemWidthRatio?: number;
|
|
6
|
+
itemCount?: number;
|
|
7
|
+
itemGap?: number;
|
|
8
|
+
autoPlay?: boolean;
|
|
9
|
+
autoPlayInterval?: number;
|
|
10
|
+
scaleRatio?: number;
|
|
11
|
+
opacityRatio?: number;
|
|
12
|
+
width?: string | number;
|
|
13
|
+
height?: string | number;
|
|
14
|
+
className?: string;
|
|
15
|
+
style?: CSSProperties;
|
|
16
|
+
navBtn?: boolean;
|
|
17
|
+
leftBtnIcon?: ReactNode;
|
|
18
|
+
rightBtnIcon?: ReactNode;
|
|
19
|
+
effectType?: "overlap" | "fade" | "slide" | "scale" | "stack";
|
|
20
|
+
drag?: boolean;
|
|
21
|
+
onChange?: (index: number) => void;
|
|
22
|
+
currentIndex?: number;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export declare const Carousel: FC<CarouselProps>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ReactNode, CSSProperties, FC, HTMLAttributes } from "react";
|
|
2
|
+
import type {
|
|
3
|
+
defaultColorType,
|
|
4
|
+
shapeType,
|
|
5
|
+
borderType,
|
|
6
|
+
shadowType
|
|
7
|
+
} from "../commonType";
|
|
8
|
+
|
|
9
|
+
export type CollapseSize = "sm" | "md" | "lg";
|
|
10
|
+
|
|
11
|
+
export interface CollapseItem {
|
|
12
|
+
key: string;
|
|
13
|
+
label: ReactNode;
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface CollapseProps extends HTMLAttributes<HTMLDivElement> {
|
|
18
|
+
items?: CollapseItem[];
|
|
19
|
+
openKeys?: string[];
|
|
20
|
+
defaultOpenKeys?: string[];
|
|
21
|
+
onChange?: (openKeys: string[]) => void;
|
|
22
|
+
border?: boolean;
|
|
23
|
+
borderColor?: string;
|
|
24
|
+
borderType?: borderType;
|
|
25
|
+
borderWeight?: number;
|
|
26
|
+
headerColorType?: defaultColorType;
|
|
27
|
+
headerBackground?: string;
|
|
28
|
+
headerColor?: string;
|
|
29
|
+
contentColorType?: defaultColorType;
|
|
30
|
+
contentBackground?: string;
|
|
31
|
+
contentColor?: string;
|
|
32
|
+
shadow?: shadowType;
|
|
33
|
+
disabledKeys?: string[];
|
|
34
|
+
className?: string;
|
|
35
|
+
size?: CollapseSize;
|
|
36
|
+
shape?: shapeType;
|
|
37
|
+
style?: CSSProperties;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export declare const Collapse: FC<CollapseProps>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { ReactNode, CSSProperties, FC, HTMLAttributes } from "react";
|
|
2
|
+
import type {
|
|
3
|
+
defaultColorType,
|
|
4
|
+
shapeType,
|
|
5
|
+
borderType,
|
|
6
|
+
shadowType
|
|
7
|
+
} from "../commonType";
|
|
8
|
+
|
|
9
|
+
export type DrawerPlacement = "left" | "right" | "top" | "bottom";
|
|
10
|
+
|
|
11
|
+
export interface DrawerProps extends HTMLAttributes<HTMLDivElement> {
|
|
12
|
+
open?: boolean;
|
|
13
|
+
onClose?: () => void;
|
|
14
|
+
title?: ReactNode;
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
footer?: ReactNode;
|
|
17
|
+
colorType?: defaultColorType;
|
|
18
|
+
divider?: boolean;
|
|
19
|
+
dividerColor?: string;
|
|
20
|
+
background?: string;
|
|
21
|
+
color?: string;
|
|
22
|
+
border?: boolean;
|
|
23
|
+
borderColor?: string;
|
|
24
|
+
borderType?: borderType;
|
|
25
|
+
borderWeight?: number;
|
|
26
|
+
shape?: shapeType;
|
|
27
|
+
shadow?: shadowType;
|
|
28
|
+
width?: number | string;
|
|
29
|
+
height?: number | string;
|
|
30
|
+
className?: string;
|
|
31
|
+
placement?: DrawerPlacement;
|
|
32
|
+
style?: CSSProperties;
|
|
33
|
+
ariaLabel?: string;
|
|
34
|
+
ariaDescribedby?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export declare const Drawer: FC<DrawerProps>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ReactNode,
|
|
3
|
+
CSSProperties,
|
|
4
|
+
FC,
|
|
5
|
+
HTMLAttributes,
|
|
6
|
+
MouseEvent
|
|
7
|
+
} from "react";
|
|
8
|
+
import type { shapeType, borderType, shadowType } from "../commonType";
|
|
9
|
+
|
|
10
|
+
export interface ImageProps extends HTMLAttributes<HTMLDivElement> {
|
|
11
|
+
src: string;
|
|
12
|
+
alt?: string;
|
|
13
|
+
width?: number | string;
|
|
14
|
+
height?: number | string;
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: CSSProperties;
|
|
17
|
+
loading?: "lazy" | "eager";
|
|
18
|
+
mask?: ReactNode;
|
|
19
|
+
preview?: boolean;
|
|
20
|
+
onClick?: (e: MouseEvent<HTMLDivElement>) => void;
|
|
21
|
+
ratio?: string;
|
|
22
|
+
shape?: shapeType;
|
|
23
|
+
shadow?: shadowType;
|
|
24
|
+
borderColor?: string;
|
|
25
|
+
borderType?: borderType;
|
|
26
|
+
borderWeight?: number | string;
|
|
27
|
+
objectFit?: "cover" | "contain" | "fill" | "none" | "scale-down";
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export declare const Image: FC<ImageProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ReactNode, CSSProperties, HTMLAttributes } from "react";
|
|
2
|
+
import type { PaginationProps } from "../navigation/Pagination";
|
|
3
|
+
|
|
4
|
+
export interface ListProps<T = any> extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
dataSource?: T[];
|
|
6
|
+
pagination?: boolean | PaginationProps;
|
|
7
|
+
gap?: number;
|
|
8
|
+
split?: boolean;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
emptyText?: ReactNode;
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: CSSProperties;
|
|
13
|
+
itemStyle?: CSSProperties;
|
|
14
|
+
listStyle?: CSSProperties;
|
|
15
|
+
virtualScroll?: boolean;
|
|
16
|
+
itemHeight?: number;
|
|
17
|
+
overscanCount?: number;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export declare const List: <T = any>(props: ListProps<T>) => React.ReactElement;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ReactNode, CSSProperties, FC, HTMLAttributes } from "react";
|
|
2
|
+
import type {
|
|
3
|
+
defaultColorType,
|
|
4
|
+
shapeType,
|
|
5
|
+
borderType,
|
|
6
|
+
shadowType
|
|
7
|
+
} from "../commonType";
|
|
8
|
+
|
|
9
|
+
export interface ModalProps extends HTMLAttributes<HTMLDivElement> {
|
|
10
|
+
open?: boolean;
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
onEsc?: boolean;
|
|
13
|
+
title?: ReactNode;
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
footer?: ReactNode;
|
|
16
|
+
colorType?: defaultColorType;
|
|
17
|
+
background?: string;
|
|
18
|
+
color?: string;
|
|
19
|
+
border?: boolean;
|
|
20
|
+
borderColor?: string;
|
|
21
|
+
borderType?: borderType;
|
|
22
|
+
borderWeight?: number;
|
|
23
|
+
shape?: shapeType;
|
|
24
|
+
shadow?: shadowType;
|
|
25
|
+
width?: number | string;
|
|
26
|
+
height?: number | string;
|
|
27
|
+
className?: string;
|
|
28
|
+
divider?: boolean;
|
|
29
|
+
dividerColor?: string;
|
|
30
|
+
style?: CSSProperties;
|
|
31
|
+
ariaLabel?: string;
|
|
32
|
+
ariaDescribedby?: string;
|
|
33
|
+
thumb?: ReactNode;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export declare const Modal: FC<ModalProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FC } from "react";
|
|
2
|
+
import type { PopupBaseProps } from "../navigation/base/PopupBase";
|
|
3
|
+
|
|
4
|
+
type PopoverBaseProps = Omit<PopupBaseProps, "variant">;
|
|
5
|
+
|
|
6
|
+
export interface PopoverProps extends PopoverBaseProps {}
|
|
7
|
+
|
|
8
|
+
export declare const Popover: FC<PopoverProps>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ReactNode, CSSProperties, FC, HTMLAttributes } from "react";
|
|
2
|
+
import type {
|
|
3
|
+
defaultColorType,
|
|
4
|
+
shapeType,
|
|
5
|
+
borderType,
|
|
6
|
+
shadowType
|
|
7
|
+
} from "../commonType";
|
|
8
|
+
|
|
9
|
+
export type SegmentedSize = "sm" | "md" | "lg";
|
|
10
|
+
|
|
11
|
+
export interface SegmentedOption {
|
|
12
|
+
value: string | number;
|
|
13
|
+
label: ReactNode;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface SegmentedProps extends HTMLAttributes<HTMLDivElement> {
|
|
18
|
+
options?: (SegmentedOption | string | number)[];
|
|
19
|
+
value?: string | number;
|
|
20
|
+
onChange?: (value: string | number) => void;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
size?: SegmentedSize;
|
|
23
|
+
block?: boolean;
|
|
24
|
+
colorType?: defaultColorType;
|
|
25
|
+
background?: string;
|
|
26
|
+
color?: string;
|
|
27
|
+
border?: boolean;
|
|
28
|
+
borderColor?: string;
|
|
29
|
+
borderType?: borderType;
|
|
30
|
+
borderWeight?: number;
|
|
31
|
+
shadow?: shadowType;
|
|
32
|
+
shape?: shapeType;
|
|
33
|
+
style?: CSSProperties;
|
|
34
|
+
className?: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export declare const Segmented: FC<SegmentedProps>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { ReactNode, CSSProperties, FC, HTMLAttributes } from "react";
|
|
2
|
+
import type {
|
|
3
|
+
defaultColorType,
|
|
4
|
+
shapeType,
|
|
5
|
+
borderType,
|
|
6
|
+
shadowType
|
|
7
|
+
} from "../commonType";
|
|
8
|
+
import type { PaginationProps } from "../navigation/Pagination";
|
|
9
|
+
|
|
10
|
+
export type TableSize = "sm" | "md" | "lg";
|
|
11
|
+
|
|
12
|
+
export type TableSortOrder = "ascend" | "descend" | null;
|
|
13
|
+
|
|
14
|
+
export interface TableColumn<T = any> {
|
|
15
|
+
key: string;
|
|
16
|
+
dataIndex?: string;
|
|
17
|
+
title: ReactNode;
|
|
18
|
+
width?: string | number;
|
|
19
|
+
col?: number;
|
|
20
|
+
sorter?: boolean | ((a: T, b: T) => number);
|
|
21
|
+
render?: (value: any, record: T, index: number) => ReactNode;
|
|
22
|
+
align?: "left" | "center" | "right";
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type TableSorter<T> = {
|
|
27
|
+
columnKey: keyof T;
|
|
28
|
+
order: TableSortOrder;
|
|
29
|
+
} | null;
|
|
30
|
+
|
|
31
|
+
export interface TableProps<T = any> extends HTMLAttributes<HTMLDivElement> {
|
|
32
|
+
columns: TableColumn<T>[];
|
|
33
|
+
dataSource: T[];
|
|
34
|
+
rowKey?: string | ((record: T) => string);
|
|
35
|
+
size?: TableSize;
|
|
36
|
+
colorType?: defaultColorType;
|
|
37
|
+
shape?: shapeType;
|
|
38
|
+
shadow?: shadowType;
|
|
39
|
+
border?: boolean;
|
|
40
|
+
borderColor?: string;
|
|
41
|
+
borderType?: borderType;
|
|
42
|
+
borderWeight?: number;
|
|
43
|
+
className?: string;
|
|
44
|
+
headerClassName?: string;
|
|
45
|
+
bodyClassName?: string;
|
|
46
|
+
width?: string | number;
|
|
47
|
+
height?: string | number;
|
|
48
|
+
style?: CSSProperties;
|
|
49
|
+
pagination?: boolean | PaginationProps;
|
|
50
|
+
onChange?: (pagination: {}, filters: {}, sorter: TableSorter<T>) => void;
|
|
51
|
+
emptyText?: ReactNode;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export declare const Table: <T = any>(
|
|
55
|
+
props: TableProps<T>
|
|
56
|
+
) => React.ReactElement;
|