@zixili/design-system 1.0.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/LICENSE +21 -0
- package/README.md +181 -0
- package/dist/bedi.cjs +52 -0
- package/dist/bedi.css +1 -0
- package/dist/bedi.js +3444 -0
- package/dist/components/CodeBlock/index.d.ts +8 -0
- package/dist/components/CodeEditor.d.ts +9 -0
- package/dist/components/ComponentDemo.d.ts +20 -0
- package/dist/components/Header.d.ts +2 -0
- package/dist/components/PropsTable/index.d.ts +13 -0
- package/dist/components/SearchModal/index.d.ts +13 -0
- package/dist/components/basic/Button.d.ts +13 -0
- package/dist/components/basic/ButtonDoc.d.ts +2 -0
- package/dist/components/basic/Icon.d.ts +12 -0
- package/dist/components/basic/Link.d.ts +15 -0
- package/dist/components/basic/index.d.ts +7 -0
- package/dist/components/display/Avatar.d.ts +14 -0
- package/dist/components/display/Badge.d.ts +15 -0
- package/dist/components/display/Card.d.ts +13 -0
- package/dist/components/display/Empty.d.ts +8 -0
- package/dist/components/display/Progress.d.ts +9 -0
- package/dist/components/display/Rate.d.ts +13 -0
- package/dist/components/display/Skeleton.d.ts +23 -0
- package/dist/components/display/Table.d.ts +29 -0
- package/dist/components/display/Tag.d.ts +10 -0
- package/dist/components/display/Tooltip.d.ts +14 -0
- package/dist/components/display/index.d.ts +20 -0
- package/dist/components/feedback/Alert.d.ts +12 -0
- package/dist/components/feedback/Modal.d.ts +17 -0
- package/dist/components/feedback/index.d.ts +4 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/input/Checkbox.d.ts +7 -0
- package/dist/components/input/DatePicker.d.ts +12 -0
- package/dist/components/input/Input.d.ts +11 -0
- package/dist/components/input/Radio.d.ts +6 -0
- package/dist/components/input/Select.d.ts +12 -0
- package/dist/components/input/Slider.d.ts +17 -0
- package/dist/components/input/Switch.d.ts +7 -0
- package/dist/components/input/Upload.d.ts +33 -0
- package/dist/components/input/index.d.ts +16 -0
- package/dist/components/layout/Divider.d.ts +13 -0
- package/dist/components/layout/Grid.d.ts +35 -0
- package/dist/components/layout/Layout.d.ts +38 -0
- package/dist/components/layout/Space.d.ts +13 -0
- package/dist/components/layout/index.d.ts +8 -0
- package/dist/components/navigation/Affix.d.ts +13 -0
- package/dist/components/navigation/Anchor.d.ts +25 -0
- package/dist/components/navigation/BackTop.d.ts +12 -0
- package/dist/components/navigation/Breadcrumb.d.ts +14 -0
- package/dist/components/navigation/Dropdown.d.ts +21 -0
- package/dist/components/navigation/Menu.d.ts +40 -0
- package/dist/components/navigation/Pagination.d.ts +13 -0
- package/dist/components/navigation/Steps.d.ts +17 -0
- package/dist/components/navigation/StickyTool.d.ts +21 -0
- package/dist/components/navigation/Tabs.d.ts +16 -0
- package/dist/components/navigation/index.d.ts +20 -0
- package/dist/context/LanguageContext.d.ts +14 -0
- package/dist/context/ThemeContext.d.ts +12 -0
- package/dist/data/componentList.d.ts +6 -0
- package/dist/i18n/translations.d.ts +856 -0
- package/dist/index.d.ts +3 -0
- package/package.json +63 -0
- package/src/index.css +1 -0
- package/src/tokens/base.css +58 -0
- package/src/tokens/dark.css +27 -0
- package/src/tokens/index.css +4 -0
- package/src/tokens/utilities.css +57 -0
- package/src/tokens/variables.css +145 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
interface CodeEditorProps {
|
|
3
|
+
code: string;
|
|
4
|
+
onChange?: (code: string) => void;
|
|
5
|
+
readOnly?: boolean;
|
|
6
|
+
language?: string;
|
|
7
|
+
}
|
|
8
|
+
export default function CodeEditor({ code, onChange, readOnly, language }: CodeEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
interface ComponentDemoProps {
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
code: string;
|
|
8
|
+
config?: {
|
|
9
|
+
name: string;
|
|
10
|
+
type: 'select' | 'switch' | 'text' | 'number';
|
|
11
|
+
options?: {
|
|
12
|
+
label: string;
|
|
13
|
+
value: any;
|
|
14
|
+
}[];
|
|
15
|
+
default: any;
|
|
16
|
+
}[];
|
|
17
|
+
onConfigChange?: (config: Record<string, any>) => void;
|
|
18
|
+
}
|
|
19
|
+
export default function ComponentDemo({ title, description, children, code, config, onConfigChange }: ComponentDemoProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
export interface PropRow {
|
|
3
|
+
prop: string;
|
|
4
|
+
type: string;
|
|
5
|
+
default?: string;
|
|
6
|
+
description: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface PropsTableProps {
|
|
10
|
+
rows: PropRow[];
|
|
11
|
+
}
|
|
12
|
+
export default function PropsTable({ rows }: PropsTableProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
interface SearchItem {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
group: string;
|
|
6
|
+
}
|
|
7
|
+
interface SearchModalProps {
|
|
8
|
+
open: boolean;
|
|
9
|
+
items: SearchItem[];
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
}
|
|
12
|
+
export default function SearchModal({ open, items, onClose }: SearchModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode, ButtonHTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
variant?: 'primary' | 'secondary' | 'text' | 'outline' | 'danger' | 'ghost' | 'success' | 'warning' | 'info';
|
|
5
|
+
size?: 'small' | 'medium' | 'large' | 'extra-large';
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
block?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
shape?: 'square' | 'round' | 'circle';
|
|
11
|
+
iconOnly?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export default function Button({ variant, size, icon, loading, block, disabled, shape, iconOnly, children, className, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface IconProps {
|
|
4
|
+
name?: string;
|
|
5
|
+
size?: number | string;
|
|
6
|
+
color?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const Icon: React.FC<IconProps>;
|
|
12
|
+
export default Icon;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface LinkProps {
|
|
4
|
+
href?: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
7
|
+
rel?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
underline?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const Link: React.FC<LinkProps>;
|
|
15
|
+
export default Link;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as Button } from './Button';
|
|
2
|
+
export { default as ButtonDoc } from './ButtonDoc';
|
|
3
|
+
export { default as Icon } from './Icon';
|
|
4
|
+
export { default as Link } from './Link';
|
|
5
|
+
export type { ButtonProps } from './Button';
|
|
6
|
+
export type { IconProps } from './Icon';
|
|
7
|
+
export type { LinkProps } from './Link';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface AvatarProps {
|
|
4
|
+
src?: string;
|
|
5
|
+
alt?: string;
|
|
6
|
+
size?: number | 'small' | 'medium' | 'large' | 'default';
|
|
7
|
+
shape?: 'circle' | 'square';
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
}
|
|
13
|
+
declare const Avatar: React.FC<AvatarProps>;
|
|
14
|
+
export default Avatar;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface BadgeProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
count?: number | string;
|
|
6
|
+
dot?: boolean;
|
|
7
|
+
color?: string;
|
|
8
|
+
showZero?: boolean;
|
|
9
|
+
max?: number;
|
|
10
|
+
status?: 'success' | 'error' | 'warning' | 'info';
|
|
11
|
+
text?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const Badge: React.FC<BadgeProps>;
|
|
15
|
+
export default Badge;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface CardProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
extra?: ReactNode;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
hoverable?: boolean;
|
|
8
|
+
bordered?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
actions?: ReactNode[];
|
|
12
|
+
}
|
|
13
|
+
export default function Card({ title, extra, children, hoverable, bordered, className, style, actions }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
export interface EmptyProps {
|
|
3
|
+
image?: React.ReactNode;
|
|
4
|
+
imageStyle?: React.CSSProperties;
|
|
5
|
+
description?: React.ReactNode;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export default function Empty({ image, imageStyle, description, children }: EmptyProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
export interface ProgressProps {
|
|
3
|
+
percent: number;
|
|
4
|
+
showInfo?: boolean;
|
|
5
|
+
status?: 'normal' | 'success' | 'error';
|
|
6
|
+
strokeWidth?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export default function Progress({ percent, showInfo, status, strokeWidth, className }: ProgressProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
export interface RateProps {
|
|
3
|
+
value?: number;
|
|
4
|
+
defaultValue?: number;
|
|
5
|
+
count?: number;
|
|
6
|
+
allowHalf?: boolean;
|
|
7
|
+
allowClear?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
size?: 'small' | 'medium' | 'large';
|
|
10
|
+
character?: React.ReactNode;
|
|
11
|
+
onChange?: (value: number) => void;
|
|
12
|
+
}
|
|
13
|
+
export default function Rate({ value, defaultValue, count, allowHalf, allowClear, disabled, size, character, onChange }: RateProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
|
|
2
|
+
export interface SkeletonProps {
|
|
3
|
+
loading?: boolean;
|
|
4
|
+
active?: boolean;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
avatar?: boolean | SkeletonAvatarProps;
|
|
7
|
+
paragraph?: boolean | SkeletonParagraphProps;
|
|
8
|
+
title?: boolean | SkeletonTitleProps;
|
|
9
|
+
round?: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface SkeletonAvatarProps {
|
|
12
|
+
size?: 'small' | 'default' | 'large' | number;
|
|
13
|
+
shape?: 'circle' | 'square';
|
|
14
|
+
}
|
|
15
|
+
interface SkeletonParagraphProps {
|
|
16
|
+
rows?: number;
|
|
17
|
+
width?: string | string[];
|
|
18
|
+
}
|
|
19
|
+
interface SkeletonTitleProps {
|
|
20
|
+
width?: string | number;
|
|
21
|
+
}
|
|
22
|
+
export default function Skeleton({ loading, active, children, avatar, paragraph, title, round }: SkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
|
|
2
|
+
interface Column {
|
|
3
|
+
key: string;
|
|
4
|
+
title: string;
|
|
5
|
+
dataIndex: string;
|
|
6
|
+
width?: number;
|
|
7
|
+
fixed?: 'left' | 'right';
|
|
8
|
+
sorter?: boolean;
|
|
9
|
+
render?: (value: any, record: any, index: number) => React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export interface TableProps {
|
|
12
|
+
columns: Column[];
|
|
13
|
+
dataSource: any[];
|
|
14
|
+
rowKey?: string | ((record: any) => string);
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
size?: 'small' | 'medium' | 'large';
|
|
17
|
+
bordered?: boolean;
|
|
18
|
+
striped?: boolean;
|
|
19
|
+
hoverable?: boolean;
|
|
20
|
+
pagination?: {
|
|
21
|
+
current: number;
|
|
22
|
+
total: number;
|
|
23
|
+
pageSize: number;
|
|
24
|
+
onChange: (page: number, pageSize: number) => void;
|
|
25
|
+
} | false;
|
|
26
|
+
onChange?: (pagination: any, filters: any, sorter: any) => void;
|
|
27
|
+
}
|
|
28
|
+
export default function Table({ columns, dataSource, rowKey, loading, size, bordered, striped, hoverable, pagination, onChange }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface TagProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
color?: 'primary' | 'success' | 'warning' | 'error' | 'default';
|
|
6
|
+
closable?: boolean;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export default function Tag({ children, color, closable, onClose, className }: TagProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface TooltipProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
title: React.ReactNode;
|
|
6
|
+
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
7
|
+
trigger?: 'hover' | 'click';
|
|
8
|
+
visible?: boolean;
|
|
9
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
}
|
|
13
|
+
declare const Tooltip: React.FC<TooltipProps>;
|
|
14
|
+
export default Tooltip;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { default as Avatar } from './Avatar';
|
|
2
|
+
export { default as Badge } from './Badge';
|
|
3
|
+
export { default as Card } from './Card';
|
|
4
|
+
export { default as Empty } from './Empty';
|
|
5
|
+
export { default as Progress } from './Progress';
|
|
6
|
+
export { default as Rate } from './Rate';
|
|
7
|
+
export { default as Skeleton } from './Skeleton';
|
|
8
|
+
export { default as Table } from './Table';
|
|
9
|
+
export { default as Tag } from './Tag';
|
|
10
|
+
export { default as Tooltip } from './Tooltip';
|
|
11
|
+
export type { AvatarProps } from './Avatar';
|
|
12
|
+
export type { BadgeProps } from './Badge';
|
|
13
|
+
export type { CardProps } from './Card';
|
|
14
|
+
export type { EmptyProps } from './Empty';
|
|
15
|
+
export type { ProgressProps } from './Progress';
|
|
16
|
+
export type { RateProps } from './Rate';
|
|
17
|
+
export type { SkeletonProps } from './Skeleton';
|
|
18
|
+
export type { TableProps } from './Table';
|
|
19
|
+
export type { TagProps } from './Tag';
|
|
20
|
+
export type { TooltipProps } from './Tooltip';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface AlertProps {
|
|
4
|
+
type?: 'info' | 'success' | 'warning' | 'error';
|
|
5
|
+
title?: string;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
closable?: boolean;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
showIcon?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export default function Alert({ type, title, children, closable, onClose, showIcon, className }: AlertProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ModalProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
title?: React.ReactNode;
|
|
7
|
+
footer?: React.ReactNode;
|
|
8
|
+
width?: number | string;
|
|
9
|
+
centered?: boolean;
|
|
10
|
+
maskClosable?: boolean;
|
|
11
|
+
closable?: boolean;
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
}
|
|
16
|
+
declare const Modal: React.FC<ModalProps>;
|
|
17
|
+
export default Modal;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
4
|
+
label?: string;
|
|
5
|
+
indeterminate?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export default function Checkbox({ label, className, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
export interface DatePickerProps {
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (date: string) => void;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
size?: 'small' | 'medium' | 'large';
|
|
8
|
+
format?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
error?: string;
|
|
11
|
+
}
|
|
12
|
+
export default function DatePicker({ value, onChange, placeholder, disabled, size, format, label, error }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
4
|
+
label?: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
prefix?: ReactNode;
|
|
7
|
+
suffix?: ReactNode;
|
|
8
|
+
addonBefore?: string;
|
|
9
|
+
addonAfter?: string;
|
|
10
|
+
}
|
|
11
|
+
export default function Input({ label, error, prefix, suffix, addonBefore, addonAfter, className, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
4
|
+
label?: string;
|
|
5
|
+
}
|
|
6
|
+
export default function Radio({ label, className, ...props }: RadioProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SelectHTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
|
4
|
+
label?: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
options: {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string | number;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}[];
|
|
11
|
+
}
|
|
12
|
+
export default function Select({ label, error, options, className, ...props }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
export interface SliderProps {
|
|
3
|
+
value?: number;
|
|
4
|
+
defaultValue?: number;
|
|
5
|
+
min?: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
step?: number;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
marks?: Record<number, React.ReactNode>;
|
|
10
|
+
included?: boolean;
|
|
11
|
+
vertical?: boolean;
|
|
12
|
+
reverse?: boolean;
|
|
13
|
+
tooltip?: boolean | ((value: number) => React.ReactNode);
|
|
14
|
+
onChange?: (value: number) => void;
|
|
15
|
+
onChangeComplete?: (value: number) => void;
|
|
16
|
+
}
|
|
17
|
+
export default function Slider({ value, defaultValue, min, max, step, disabled, marks, included, vertical, reverse, tooltip, onChange, onChangeComplete }: SliderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
4
|
+
label?: string;
|
|
5
|
+
size?: 'small' | 'medium' | 'large';
|
|
6
|
+
}
|
|
7
|
+
export default function Switch({ label, size, className, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
interface UploadFile {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
size: number;
|
|
6
|
+
status: 'uploading' | 'done' | 'error';
|
|
7
|
+
progress?: number;
|
|
8
|
+
url?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface UploadProps {
|
|
12
|
+
accept?: string;
|
|
13
|
+
multiple?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
drag?: boolean;
|
|
16
|
+
listType?: 'text' | 'picture' | 'picture-card';
|
|
17
|
+
maxCount?: number;
|
|
18
|
+
maxSize?: number;
|
|
19
|
+
showUploadList?: boolean;
|
|
20
|
+
customRequest?: (options: UploadRequestOptions) => void;
|
|
21
|
+
beforeUpload?: (file: File) => boolean | Promise<boolean>;
|
|
22
|
+
onChange?: (fileList: UploadFile[]) => void;
|
|
23
|
+
onPreview?: (file: UploadFile) => void;
|
|
24
|
+
onRemove?: (file: UploadFile) => void;
|
|
25
|
+
}
|
|
26
|
+
interface UploadRequestOptions {
|
|
27
|
+
file: File;
|
|
28
|
+
onProgress: (percent: number) => void;
|
|
29
|
+
onSuccess: (url?: string) => void;
|
|
30
|
+
onError: (error: string) => void;
|
|
31
|
+
}
|
|
32
|
+
export default function Upload({ accept, multiple, disabled, drag, listType, maxCount, maxSize, showUploadList, customRequest, beforeUpload, onChange, onPreview, onRemove }: UploadProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { default as Checkbox } from './Checkbox';
|
|
2
|
+
export { default as DatePicker } from './DatePicker';
|
|
3
|
+
export { default as Input } from './Input';
|
|
4
|
+
export { default as Radio } from './Radio';
|
|
5
|
+
export { default as Select } from './Select';
|
|
6
|
+
export { default as Slider } from './Slider';
|
|
7
|
+
export { default as Switch } from './Switch';
|
|
8
|
+
export { default as Upload } from './Upload';
|
|
9
|
+
export type { CheckboxProps } from './Checkbox';
|
|
10
|
+
export type { DatePickerProps } from './DatePicker';
|
|
11
|
+
export type { InputProps } from './Input';
|
|
12
|
+
export type { RadioProps } from './Radio';
|
|
13
|
+
export type { SelectProps } from './Select';
|
|
14
|
+
export type { SliderProps } from './Slider';
|
|
15
|
+
export type { SwitchProps } from './Switch';
|
|
16
|
+
export type { UploadProps } from './Upload';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface DividerProps {
|
|
4
|
+
type?: 'horizontal' | 'vertical';
|
|
5
|
+
orientation?: 'left' | 'center' | 'right';
|
|
6
|
+
dashed?: boolean;
|
|
7
|
+
plain?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const Divider: React.FC<DividerProps>;
|
|
13
|
+
export default Divider;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface GridProps {
|
|
4
|
+
gutter?: number | [number, number];
|
|
5
|
+
align?: 'top' | 'middle' | 'bottom';
|
|
6
|
+
justify?: 'start' | 'end' | 'center' | 'space-around' | 'space-between';
|
|
7
|
+
wrap?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export interface ColProps {
|
|
13
|
+
span?: number;
|
|
14
|
+
offset?: number;
|
|
15
|
+
order?: number;
|
|
16
|
+
push?: number;
|
|
17
|
+
pull?: number;
|
|
18
|
+
xs?: number | ColProps;
|
|
19
|
+
sm?: number | ColProps;
|
|
20
|
+
md?: number | ColProps;
|
|
21
|
+
lg?: number | ColProps;
|
|
22
|
+
xl?: number | ColProps;
|
|
23
|
+
xxl?: number | ColProps;
|
|
24
|
+
className?: string;
|
|
25
|
+
style?: React.CSSProperties;
|
|
26
|
+
children: React.ReactNode;
|
|
27
|
+
gutter?: number | [number, number];
|
|
28
|
+
}
|
|
29
|
+
export declare const Row: React.FC<GridProps>;
|
|
30
|
+
export declare const Col: React.FC<ColProps>;
|
|
31
|
+
declare const _default: {
|
|
32
|
+
Row: React.FC<GridProps>;
|
|
33
|
+
Col: React.FC<ColProps>;
|
|
34
|
+
};
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface LayoutProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export interface HeaderProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export interface ContentProps {
|
|
14
|
+
className?: string;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export interface FooterProps {
|
|
19
|
+
className?: string;
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export interface SiderProps {
|
|
24
|
+
className?: string;
|
|
25
|
+
style?: React.CSSProperties;
|
|
26
|
+
width?: number | string;
|
|
27
|
+
collapsedWidth?: number | string;
|
|
28
|
+
collapsible?: boolean;
|
|
29
|
+
collapsed?: boolean;
|
|
30
|
+
onCollapse?: (collapsed: boolean) => void;
|
|
31
|
+
children: React.ReactNode;
|
|
32
|
+
}
|
|
33
|
+
export declare const Layout: React.FC<LayoutProps>;
|
|
34
|
+
export declare const Header: React.FC<HeaderProps>;
|
|
35
|
+
export declare const Content: React.FC<ContentProps>;
|
|
36
|
+
export declare const Footer: React.FC<FooterProps>;
|
|
37
|
+
export declare const Sider: React.FC<SiderProps>;
|
|
38
|
+
export default Layout;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface SpaceProps {
|
|
4
|
+
size?: 'small' | 'medium' | 'large' | number;
|
|
5
|
+
direction?: 'horizontal' | 'vertical';
|
|
6
|
+
align?: 'start' | 'end' | 'center' | 'baseline' | 'stretch';
|
|
7
|
+
wrap?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const Space: React.FC<SpaceProps>;
|
|
13
|
+
export default Space;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as Divider } from './Divider';
|
|
2
|
+
export { default as Grid } from './Grid';
|
|
3
|
+
export { default as Layout, Header, Content, Footer, Sider } from './Layout';
|
|
4
|
+
export { default as Space } from './Space';
|
|
5
|
+
export type { DividerProps } from './Divider';
|
|
6
|
+
export type { GridProps, ColProps } from './Grid';
|
|
7
|
+
export type { LayoutProps, HeaderProps, ContentProps, FooterProps, SiderProps } from './Layout';
|
|
8
|
+
export type { SpaceProps } from './Space';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface AffixProps {
|
|
4
|
+
offsetTop?: number;
|
|
5
|
+
offsetBottom?: number;
|
|
6
|
+
target?: () => Window | HTMLElement;
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
onChange?: (affixed: boolean) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const Affix: React.FC<AffixProps>;
|
|
13
|
+
export default Affix;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface AnchorLinkProps {
|
|
4
|
+
href: string;
|
|
5
|
+
title: React.ReactNode;
|
|
6
|
+
target?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
}
|
|
10
|
+
export interface AnchorProps {
|
|
11
|
+
affix?: boolean;
|
|
12
|
+
offsetTop?: number;
|
|
13
|
+
bounds?: number;
|
|
14
|
+
className?: string;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
getCurrentAnchor?: (activeLink: string) => void;
|
|
18
|
+
onClick?: (e: React.MouseEvent<HTMLAnchorElement>, link: {
|
|
19
|
+
href: string;
|
|
20
|
+
title: React.ReactNode;
|
|
21
|
+
}) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare const AnchorLink: React.FC<AnchorLinkProps>;
|
|
24
|
+
export declare const Anchor: React.FC<AnchorProps>;
|
|
25
|
+
export default Anchor;
|