@996-design/996-ui 0.1.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/NOTICE.md +35 -0
- package/README.md +31 -0
- package/dist/cjs/index.cjs +4228 -0
- package/dist/cjs/index.cjs.map +41 -0
- package/dist/cjs/legacy-index.cjs +17297 -0
- package/dist/cjs/legacy-index.cjs.map +96 -0
- package/dist/cjs/pro/index.cjs +8544 -0
- package/dist/cjs/pro/index.cjs.map +35 -0
- package/dist/esm/index.js +4063 -0
- package/dist/esm/index.js.map +41 -0
- package/dist/esm/legacy-index.js +17294 -0
- package/dist/esm/legacy-index.js.map +96 -0
- package/dist/esm/pro/index.js +8554 -0
- package/dist/esm/pro/index.js.map +35 -0
- package/dist/styles.css +5816 -0
- package/dist/theme.css +601 -0
- package/dist/types/ConfigProvider.d.ts +195 -0
- package/dist/types/antd-theme.d.ts +12 -0
- package/dist/types/components/Alert.d.ts +51 -0
- package/dist/types/components/Avatar.d.ts +44 -0
- package/dist/types/components/Badge.d.ts +31 -0
- package/dist/types/components/Breadcrumb.d.ts +45 -0
- package/dist/types/components/Button.d.ts +42 -0
- package/dist/types/components/ButtonGroup.d.ts +13 -0
- package/dist/types/components/Card.d.ts +55 -0
- package/dist/types/components/Carousel.d.ts +70 -0
- package/dist/types/components/Checkbox.d.ts +43 -0
- package/dist/types/components/Collapse.d.ts +23 -0
- package/dist/types/components/ColorPicker.d.ts +143 -0
- package/dist/types/components/DataDisplayPrimitives.d.ts +205 -0
- package/dist/types/components/DataEntryPrimitives.d.ts +454 -0
- package/dist/types/components/Divider.d.ts +24 -0
- package/dist/types/components/Drawer.d.ts +68 -0
- package/dist/types/components/Dropdown.d.ts +41 -0
- package/dist/types/components/Empty.d.ts +14 -0
- package/dist/types/components/EmptyState.d.ts +6 -0
- package/dist/types/components/FeedbackPrimitives.d.ts +102 -0
- package/dist/types/components/Form.d.ts +67 -0
- package/dist/types/components/GameCover.d.ts +8 -0
- package/dist/types/components/Grid.d.ts +50 -0
- package/dist/types/components/Icon.d.ts +13 -0
- package/dist/types/components/IconButton.d.ts +14 -0
- package/dist/types/components/Input.d.ts +110 -0
- package/dist/types/components/InputNumber.d.ts +29 -0
- package/dist/types/components/LayoutPrimitives.d.ts +130 -0
- package/dist/types/components/List.d.ts +64 -0
- package/dist/types/components/Masonry.d.ts +43 -0
- package/dist/types/components/MenuList.d.ts +24 -0
- package/dist/types/components/Message.d.ts +58 -0
- package/dist/types/components/MessageToast.d.ts +27 -0
- package/dist/types/components/Modal.d.ts +123 -0
- package/dist/types/components/NavigationPrimitives.d.ts +73 -0
- package/dist/types/components/OtherPrimitives.d.ts +36 -0
- package/dist/types/components/Pagination.d.ts +18 -0
- package/dist/types/components/Panel.d.ts +8 -0
- package/dist/types/components/Popconfirm.d.ts +18 -0
- package/dist/types/components/Popover.d.ts +10 -0
- package/dist/types/components/PriceText.d.ts +9 -0
- package/dist/types/components/Progress.d.ts +57 -0
- package/dist/types/components/ProgressBar.d.ts +8 -0
- package/dist/types/components/ProgressButton.d.ts +9 -0
- package/dist/types/components/Radio.d.ts +67 -0
- package/dist/types/components/Rate.d.ts +17 -0
- package/dist/types/components/Result.d.ts +11 -0
- package/dist/types/components/SectionHeader.d.ts +11 -0
- package/dist/types/components/Segmented.d.ts +41 -0
- package/dist/types/components/SegmentedTabs.d.ts +42 -0
- package/dist/types/components/SelectInput.d.ts +33 -0
- package/dist/types/components/Skeleton.d.ts +54 -0
- package/dist/types/components/Slider.d.ts +48 -0
- package/dist/types/components/Spin.d.ts +21 -0
- package/dist/types/components/Splitter.d.ts +7 -0
- package/dist/types/components/StatCard.d.ts +10 -0
- package/dist/types/components/Statistic.d.ts +48 -0
- package/dist/types/components/StatusItem.d.ts +12 -0
- package/dist/types/components/Steps.d.ts +40 -0
- package/dist/types/components/Switch.d.ts +41 -0
- package/dist/types/components/Table.d.ts +61 -0
- package/dist/types/components/Tabs.d.ts +50 -0
- package/dist/types/components/Tag.d.ts +52 -0
- package/dist/types/components/TagPill.d.ts +7 -0
- package/dist/types/components/Tooltip.d.ts +64 -0
- package/dist/types/components/Typography.d.ts +374 -0
- package/dist/types/components/affix/utils.d.ts +10 -0
- package/dist/types/components/feedback/FloatButton.d.ts +51 -0
- package/dist/types/components/feedback/Watermark.d.ts +33 -0
- package/dist/types/components/feedback/globalHolder.d.ts +17 -0
- package/dist/types/components/form/statusContext.d.ts +18 -0
- package/dist/types/components/form/statusContext.type-smoke.d.ts +24 -0
- package/dist/types/components/splitter/Panel.d.ts +6 -0
- package/dist/types/components/splitter/SplitBar.d.ts +32 -0
- package/dist/types/components/splitter/interface.d.ts +89 -0
- package/dist/types/components/splitter/sizeUtil.d.ts +5 -0
- package/dist/types/components/splitter/useItems.d.ts +3 -0
- package/dist/types/components/splitter/useResizable.d.ts +9 -0
- package/dist/types/components/splitter/useResize.d.ts +9 -0
- package/dist/types/components/splitter/useSizes.d.ts +11 -0
- package/dist/types/components/table/columnState.d.ts +36 -0
- package/dist/types/components/table/pagination.d.ts +34 -0
- package/dist/types/components/table/selection.d.ts +23 -0
- package/dist/types/components/table/types.d.ts +163 -0
- package/dist/types/hooks/useReducedMotion.d.ts +1 -0
- package/dist/types/index.d.ts +44 -0
- package/dist/types/legacy-index.d.ts +136 -0
- package/dist/types/pro/index.d.ts +17 -0
- package/dist/types/tokens.d.ts +266 -0
- package/dist/types/utils/cn.d.ts +3 -0
- package/dist/types/utils/slots.d.ts +5 -0
- package/package.json +126 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { CSSProperties, HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export type SplitterOrientation = "horizontal" | "vertical";
|
|
3
|
+
export type ShowCollapsibleIconMode = boolean | "auto";
|
|
4
|
+
export interface SplitterPanelProps {
|
|
5
|
+
readonly children?: ReactNode;
|
|
6
|
+
readonly className?: string;
|
|
7
|
+
readonly collapsible?: boolean | {
|
|
8
|
+
readonly start?: boolean;
|
|
9
|
+
readonly end?: boolean;
|
|
10
|
+
readonly showCollapsibleIcon?: ShowCollapsibleIconMode;
|
|
11
|
+
};
|
|
12
|
+
readonly defaultSize?: number | string;
|
|
13
|
+
readonly destroyOnHidden?: boolean;
|
|
14
|
+
readonly max?: number | string;
|
|
15
|
+
readonly min?: number | string;
|
|
16
|
+
readonly resizable?: boolean;
|
|
17
|
+
readonly size?: number | string;
|
|
18
|
+
readonly style?: CSSProperties;
|
|
19
|
+
}
|
|
20
|
+
export type SplitterDraggerClassName = string | {
|
|
21
|
+
readonly active?: string;
|
|
22
|
+
readonly default?: string;
|
|
23
|
+
};
|
|
24
|
+
export type SplitterDraggerStyle = CSSProperties | {
|
|
25
|
+
readonly active?: CSSProperties;
|
|
26
|
+
readonly default?: CSSProperties;
|
|
27
|
+
};
|
|
28
|
+
export interface SplitterClassNames {
|
|
29
|
+
readonly dragger?: SplitterDraggerClassName;
|
|
30
|
+
readonly panel?: string;
|
|
31
|
+
readonly root?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface SplitterStyles {
|
|
34
|
+
readonly dragger?: SplitterDraggerStyle;
|
|
35
|
+
readonly panel?: CSSProperties;
|
|
36
|
+
readonly root?: CSSProperties;
|
|
37
|
+
}
|
|
38
|
+
export interface SplitterProps extends Omit<HTMLAttributes<HTMLDivElement>, "children" | "onResize" | "onResizeEnd" | "onResizeStart"> {
|
|
39
|
+
readonly children?: ReactNode;
|
|
40
|
+
readonly classNames?: SplitterClassNames;
|
|
41
|
+
readonly collapsible?: {
|
|
42
|
+
readonly icon?: {
|
|
43
|
+
readonly end?: ReactNode;
|
|
44
|
+
readonly start?: ReactNode;
|
|
45
|
+
};
|
|
46
|
+
readonly motion?: boolean;
|
|
47
|
+
};
|
|
48
|
+
/** @deprecated Use `collapsible.icon`. */
|
|
49
|
+
readonly collapsibleIcon?: {
|
|
50
|
+
readonly end?: ReactNode;
|
|
51
|
+
readonly start?: ReactNode;
|
|
52
|
+
};
|
|
53
|
+
/** Legacy two-panel percentage entry. Prefer `Splitter.Panel.defaultSize`. */
|
|
54
|
+
readonly defaultSize?: number;
|
|
55
|
+
readonly destroyOnHidden?: boolean;
|
|
56
|
+
readonly draggerIcon?: ReactNode;
|
|
57
|
+
/** @deprecated Use `orientation`. */
|
|
58
|
+
readonly layout?: SplitterOrientation;
|
|
59
|
+
readonly lazy?: boolean;
|
|
60
|
+
/** Legacy first-panel maximum percentage. Prefer `Splitter.Panel.max`. */
|
|
61
|
+
readonly max?: number;
|
|
62
|
+
/** Legacy first-panel minimum percentage. Prefer `Splitter.Panel.min`. */
|
|
63
|
+
readonly min?: number;
|
|
64
|
+
readonly orientation?: SplitterOrientation;
|
|
65
|
+
/** Legacy two-panel entry retained as an additive compatibility API. */
|
|
66
|
+
readonly panels?: readonly [ReactNode, ReactNode];
|
|
67
|
+
readonly prefixCls?: string;
|
|
68
|
+
readonly rootClassName?: string;
|
|
69
|
+
readonly styles?: SplitterStyles;
|
|
70
|
+
readonly vertical?: boolean;
|
|
71
|
+
readonly onCollapse?: (collapsed: boolean[], sizes: number[]) => void;
|
|
72
|
+
readonly onDraggerDoubleClick?: (index: number) => void;
|
|
73
|
+
readonly onResize?: (sizes: number[]) => void;
|
|
74
|
+
readonly onResizeEnd?: (sizes: number[]) => void;
|
|
75
|
+
readonly onResizeStart?: (sizes: number[]) => void;
|
|
76
|
+
}
|
|
77
|
+
export interface InternalPanelProps extends SplitterPanelProps {
|
|
78
|
+
readonly id?: string;
|
|
79
|
+
readonly prefixCls: string;
|
|
80
|
+
readonly size?: number | string;
|
|
81
|
+
readonly supportMotion?: boolean;
|
|
82
|
+
}
|
|
83
|
+
export interface SplitterItem extends Omit<SplitterPanelProps, "collapsible"> {
|
|
84
|
+
readonly collapsible: {
|
|
85
|
+
readonly end?: boolean;
|
|
86
|
+
readonly showCollapsibleIcon: ShowCollapsibleIconMode;
|
|
87
|
+
readonly start?: boolean;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
type SizeUnit = number | undefined;
|
|
2
|
+
export declare function autoPercentSizes(percentSizes: SizeUnit[], minPercentSizes: SizeUnit[], maxPercentSizes: SizeUnit[]): number[];
|
|
3
|
+
export declare function getPercent(value: string): number;
|
|
4
|
+
export declare function isPercent(value: number | string | undefined): value is string;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ShowCollapsibleIconMode, SplitterItem } from "./interface";
|
|
2
|
+
export interface ResizableInfo {
|
|
3
|
+
readonly endCollapsible: boolean;
|
|
4
|
+
readonly resizable: boolean;
|
|
5
|
+
readonly showEndCollapsibleIcon: ShowCollapsibleIconMode;
|
|
6
|
+
readonly showStartCollapsibleIcon: ShowCollapsibleIconMode;
|
|
7
|
+
readonly startCollapsible: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function useResizable(items: SplitterItem[], pixelSizes: number[], reverse: boolean): ResizableInfo[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SplitterItem } from "./interface";
|
|
2
|
+
import type { ResizableInfo } from "./useResizable";
|
|
3
|
+
export declare function useResize(items: SplitterItem[], resizableInfos: ResizableInfo[], percentSizes: number[], containerSize: number | undefined, updateSizes: (sizes: number[]) => void, reverse: boolean): {
|
|
4
|
+
movingIndex: number | undefined;
|
|
5
|
+
onCollapse: (index: number, type: "start" | "end") => number[];
|
|
6
|
+
onOffsetEnd: () => number[];
|
|
7
|
+
onOffsetStart: (index: number) => number[];
|
|
8
|
+
onOffsetUpdate: (index: number, offset: number) => number[];
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Dispatch, SetStateAction } from "react";
|
|
2
|
+
import type { SplitterItem } from "./interface";
|
|
3
|
+
export type SetPanelSizes = Dispatch<SetStateAction<(number | string | undefined)[]>>;
|
|
4
|
+
export declare function useSizes(items: SplitterItem[], containerSize?: number): {
|
|
5
|
+
panelSizes: (string | number | undefined)[];
|
|
6
|
+
percentMaxSizes: number[];
|
|
7
|
+
percentMinSizes: number[];
|
|
8
|
+
percentSizes: number[];
|
|
9
|
+
pixelSizes: number[];
|
|
10
|
+
setInnerSizes: Dispatch<SetStateAction<(string | number | undefined)[]>>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type ColumnsType as RcColumnsType } from "@rc-component/table";
|
|
2
|
+
import type { Key } from "react";
|
|
3
|
+
import type { ColumnsType, FilterValue, SortOrder, TableColumn, TableLocale, TableSorterResult, TableSorterTooltipProps } from "./types";
|
|
4
|
+
interface SortState<T> {
|
|
5
|
+
readonly column: TableColumn<T>;
|
|
6
|
+
readonly key: Key;
|
|
7
|
+
readonly multiplePriority: number | false;
|
|
8
|
+
readonly order: SortOrder;
|
|
9
|
+
}
|
|
10
|
+
interface FilterState<T> {
|
|
11
|
+
readonly column: TableColumn<T>;
|
|
12
|
+
readonly filteredKeys?: FilterValue | null;
|
|
13
|
+
readonly key: Key;
|
|
14
|
+
}
|
|
15
|
+
interface ColumnStateOptions<T> {
|
|
16
|
+
readonly baseColumns?: ColumnsType<T>;
|
|
17
|
+
readonly childrenColumnName: string;
|
|
18
|
+
readonly columns: ColumnsType<T>;
|
|
19
|
+
readonly data: readonly T[];
|
|
20
|
+
readonly getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
|
21
|
+
readonly locale: TableLocale;
|
|
22
|
+
readonly onFilterChange: (filters: Record<string, FilterValue | null>, currentDataSource: readonly T[]) => void;
|
|
23
|
+
readonly onSorterChange: (sorter: TableSorterResult<T> | TableSorterResult<T>[], currentDataSource: T[]) => void;
|
|
24
|
+
readonly sortDirections?: readonly Exclude<SortOrder, null>[];
|
|
25
|
+
readonly showSorterTooltip?: boolean | TableSorterTooltipProps;
|
|
26
|
+
}
|
|
27
|
+
interface ColumnStateResult<T> {
|
|
28
|
+
readonly filteredData: T[];
|
|
29
|
+
readonly filters: Record<string, FilterValue | null>;
|
|
30
|
+
readonly sorter: TableSorterResult<T> | TableSorterResult<T>[];
|
|
31
|
+
readonly transformColumns: (columns: RcColumnsType<T>) => RcColumnsType<T>;
|
|
32
|
+
}
|
|
33
|
+
export declare function getSortData<T>(data: readonly T[], sortStates: readonly SortState<T>[], childrenColumnName: string): T[];
|
|
34
|
+
export declare function getFilterData<T>(data: readonly T[], filterStates: readonly FilterState<T>[], childrenColumnName: string): T[];
|
|
35
|
+
export declare function useColumnState<T>({ baseColumns: passedBaseColumns, childrenColumnName, columns, data, getPopupContainer, locale, onFilterChange, onSorterChange, showSorterTooltip, sortDirections, }: ColumnStateOptions<T>): ColumnStateResult<T>;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
import type { TablePaginationConfig } from "./types";
|
|
3
|
+
interface PaginationOptions {
|
|
4
|
+
readonly hidePaginationWhenSinglePage?: boolean;
|
|
5
|
+
readonly onChange: (current: number, pageSize: number) => void;
|
|
6
|
+
readonly pageSizeOptions?: readonly number[];
|
|
7
|
+
readonly pagination?: false | TablePaginationConfig;
|
|
8
|
+
readonly total: number;
|
|
9
|
+
}
|
|
10
|
+
export interface MergedPagination {
|
|
11
|
+
readonly current: number;
|
|
12
|
+
readonly enabled: boolean;
|
|
13
|
+
readonly onChange: (current: number, pageSize: number) => void;
|
|
14
|
+
readonly pageSize: number;
|
|
15
|
+
readonly props: TablePaginationConfig;
|
|
16
|
+
readonly reset: (current?: number, pageSize?: number) => void;
|
|
17
|
+
readonly total: number;
|
|
18
|
+
}
|
|
19
|
+
export declare function useTablePagination({ hidePaginationWhenSinglePage, onChange, pageSizeOptions, pagination, total: dataTotal, }: PaginationOptions): MergedPagination;
|
|
20
|
+
export declare function getPageData<T>(data: readonly T[], pagination: MergedPagination): T[];
|
|
21
|
+
interface TablePaginationNodeProps {
|
|
22
|
+
readonly alignment?: TablePaginationAlignment;
|
|
23
|
+
readonly className?: string;
|
|
24
|
+
readonly pagination: MergedPagination;
|
|
25
|
+
readonly style?: CSSProperties;
|
|
26
|
+
}
|
|
27
|
+
export type TablePaginationAlignment = "start" | "center" | "end";
|
|
28
|
+
export interface TablePaginationPlacements {
|
|
29
|
+
readonly bottom?: TablePaginationAlignment;
|
|
30
|
+
readonly top?: TablePaginationAlignment;
|
|
31
|
+
}
|
|
32
|
+
export declare function getTablePaginationPlacements(pagination: TablePaginationConfig): TablePaginationPlacements;
|
|
33
|
+
export declare function TablePaginationNode({ alignment, className, pagination, style, }: TablePaginationNodeProps): import("react").JSX.Element | null;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ColumnsType as RcColumnsType } from "@rc-component/table";
|
|
2
|
+
import type { Key } from "react";
|
|
3
|
+
import { type TableLocale, type TableRowSelection } from "./types";
|
|
4
|
+
export declare const SELECTION_COLUMN: {};
|
|
5
|
+
export declare const SELECTION_ALL: "SELECT_ALL";
|
|
6
|
+
export declare const SELECTION_INVERT: "SELECT_INVERT";
|
|
7
|
+
export declare const SELECTION_NONE: "SELECT_NONE";
|
|
8
|
+
interface SelectionOptions<T> {
|
|
9
|
+
readonly childrenColumnName: string;
|
|
10
|
+
readonly data: readonly T[];
|
|
11
|
+
readonly getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
|
12
|
+
readonly getRowKey: (record: T, index: number) => Key;
|
|
13
|
+
readonly locale: TableLocale;
|
|
14
|
+
readonly pageData: readonly T[];
|
|
15
|
+
readonly rowSelection?: TableRowSelection<T>;
|
|
16
|
+
readonly sourceData: readonly T[];
|
|
17
|
+
}
|
|
18
|
+
interface SelectionResult<T> {
|
|
19
|
+
readonly selectedKeySet: ReadonlySet<Key>;
|
|
20
|
+
readonly transformColumns: (columns: RcColumnsType<T>) => RcColumnsType<T>;
|
|
21
|
+
}
|
|
22
|
+
export declare function useTableSelection<T>({ childrenColumnName, data, getPopupContainer, getRowKey, locale, pageData, rowSelection, sourceData, }: SelectionOptions<T>): SelectionResult<T>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import type { CheckboxProps as RcCheckboxProps } from "@rc-component/checkbox";
|
|
2
|
+
import type { PaginationProps as RcPaginationProps } from "@rc-component/pagination";
|
|
3
|
+
import type { FixedType, GetComponentProps, ColumnsType as RcColumnsType, RenderedCell } from "@rc-component/table";
|
|
4
|
+
import type { Key, ReactNode } from "react";
|
|
5
|
+
import type { Breakpoint } from "../Grid";
|
|
6
|
+
import type { TooltipProps } from "../Tooltip";
|
|
7
|
+
export type SortOrder = "ascend" | "descend" | null;
|
|
8
|
+
export type TableAction = "paginate" | "sort" | "filter";
|
|
9
|
+
export type FilterValue = (Key | boolean)[];
|
|
10
|
+
export type CompareFn<T> = (a: T, b: T, sortOrder?: SortOrder) => number;
|
|
11
|
+
export interface ColumnSorter<T> {
|
|
12
|
+
readonly compare?: CompareFn<T>;
|
|
13
|
+
readonly multiple?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface ColumnFilterItem {
|
|
16
|
+
readonly text: ReactNode;
|
|
17
|
+
readonly value: Key | boolean;
|
|
18
|
+
readonly children?: readonly ColumnFilterItem[];
|
|
19
|
+
}
|
|
20
|
+
export interface TableColumnTitleProps<T> {
|
|
21
|
+
readonly filters?: Record<string, FilterValue | null>;
|
|
22
|
+
readonly sortColumn?: TableColumn<T>;
|
|
23
|
+
readonly sortOrder?: SortOrder | null;
|
|
24
|
+
readonly sortColumns?: readonly {
|
|
25
|
+
readonly column: TableColumn<T>;
|
|
26
|
+
readonly order: SortOrder;
|
|
27
|
+
}[];
|
|
28
|
+
}
|
|
29
|
+
export type TableFilterMode = "menu" | "tree";
|
|
30
|
+
export type TableFilterSearch = boolean | ((input: string, record: ColumnFilterItem) => boolean);
|
|
31
|
+
export type TableSorterTooltipTarget = "full-header" | "sorter-icon";
|
|
32
|
+
export type TableSorterTooltipProps = Omit<TooltipProps, "children"> & {
|
|
33
|
+
readonly target?: TableSorterTooltipTarget;
|
|
34
|
+
};
|
|
35
|
+
export interface FilterConfirmProps {
|
|
36
|
+
readonly closeDropdown?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface FilterResetProps {
|
|
39
|
+
readonly closeDropdown?: boolean;
|
|
40
|
+
readonly confirm?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface TableFilterDropdownProps {
|
|
43
|
+
readonly close: () => void;
|
|
44
|
+
readonly confirm: (props?: FilterConfirmProps) => void;
|
|
45
|
+
readonly clearFilters?: (props?: FilterResetProps) => void;
|
|
46
|
+
readonly filters?: readonly ColumnFilterItem[];
|
|
47
|
+
readonly prefixCls: string;
|
|
48
|
+
readonly selectedKeys: Key[];
|
|
49
|
+
readonly setSelectedKeys: (selectedKeys: Key[]) => void;
|
|
50
|
+
readonly visible: boolean;
|
|
51
|
+
}
|
|
52
|
+
export interface TableFilterDropdownControlProps {
|
|
53
|
+
readonly open?: boolean;
|
|
54
|
+
readonly overlayClassName?: string;
|
|
55
|
+
readonly placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
56
|
+
readonly onOpenChange?: (open: boolean) => void;
|
|
57
|
+
}
|
|
58
|
+
export type TableSorter<T> = boolean | CompareFn<T> | ColumnSorter<T>;
|
|
59
|
+
type RcColumn<T> = RcColumnsType<T>[number];
|
|
60
|
+
export type TableColumn<T, Column = RcColumn<T>> = Column extends unknown ? Omit<Column, "children" | "title"> & {
|
|
61
|
+
readonly children?: ColumnsType<T>;
|
|
62
|
+
readonly defaultFilteredValue?: readonly (Key | boolean)[] | null;
|
|
63
|
+
readonly defaultSortOrder?: SortOrder | null;
|
|
64
|
+
readonly filtered?: boolean;
|
|
65
|
+
readonly filteredValue?: readonly (Key | boolean)[] | null;
|
|
66
|
+
readonly filterDropdown?: ReactNode | ((props: TableFilterDropdownProps) => ReactNode);
|
|
67
|
+
readonly filterDropdownProps?: TableFilterDropdownControlProps;
|
|
68
|
+
readonly filterIcon?: ReactNode | ((filtered: boolean) => ReactNode);
|
|
69
|
+
readonly filterMode?: TableFilterMode;
|
|
70
|
+
readonly filterMultiple?: boolean;
|
|
71
|
+
readonly filterOnClose?: boolean;
|
|
72
|
+
readonly filterResetToDefaultFilteredValue?: boolean;
|
|
73
|
+
readonly filterSearch?: TableFilterSearch;
|
|
74
|
+
readonly filters?: readonly ColumnFilterItem[];
|
|
75
|
+
readonly onFilter?: (value: Key | boolean, record: T) => boolean;
|
|
76
|
+
readonly responsive?: readonly Breakpoint[];
|
|
77
|
+
readonly showSorterTooltip?: boolean | TableSorterTooltipProps;
|
|
78
|
+
readonly sorter?: TableSorter<T>;
|
|
79
|
+
readonly sortDirections?: readonly Exclude<SortOrder, null>[];
|
|
80
|
+
readonly sortIcon?: (props: {
|
|
81
|
+
readonly sortOrder: SortOrder | null;
|
|
82
|
+
}) => ReactNode;
|
|
83
|
+
readonly sortOrder?: SortOrder | null;
|
|
84
|
+
readonly title?: ReactNode | ((props: TableColumnTitleProps<T>) => ReactNode);
|
|
85
|
+
} : never;
|
|
86
|
+
export type ColumnsType<T> = readonly TableColumn<T>[];
|
|
87
|
+
export interface TableSorterResult<T> {
|
|
88
|
+
readonly column?: TableColumn<T>;
|
|
89
|
+
readonly columnKey?: Key;
|
|
90
|
+
readonly field?: Key | readonly Key[];
|
|
91
|
+
readonly order?: SortOrder;
|
|
92
|
+
}
|
|
93
|
+
export type RowSelectMethod = "all" | "none" | "invert" | "single" | "multiple";
|
|
94
|
+
export declare const TABLE_SELECTION_ALL: "SELECT_ALL";
|
|
95
|
+
export declare const TABLE_SELECTION_INVERT: "SELECT_INVERT";
|
|
96
|
+
export declare const TABLE_SELECTION_NONE: "SELECT_NONE";
|
|
97
|
+
export type TableSelectionPreset = typeof TABLE_SELECTION_ALL | typeof TABLE_SELECTION_INVERT | typeof TABLE_SELECTION_NONE;
|
|
98
|
+
export interface TableSelectionItem {
|
|
99
|
+
readonly key?: Key;
|
|
100
|
+
readonly text: ReactNode;
|
|
101
|
+
readonly onSelect?: (changeableRowKeys: Key[]) => void;
|
|
102
|
+
}
|
|
103
|
+
export interface TableSelectionCheckboxProps extends Omit<RcCheckboxProps, "checked" | "defaultChecked"> {
|
|
104
|
+
readonly indeterminate?: boolean;
|
|
105
|
+
}
|
|
106
|
+
export interface TableRowSelection<T> {
|
|
107
|
+
readonly align?: "left" | "center" | "right";
|
|
108
|
+
readonly checkStrictly?: boolean;
|
|
109
|
+
readonly columnTitle?: ReactNode | ((checkboxNode: ReactNode) => ReactNode);
|
|
110
|
+
readonly columnWidth?: string | number;
|
|
111
|
+
readonly defaultSelectedRowKeys?: readonly Key[];
|
|
112
|
+
readonly fixed?: FixedType;
|
|
113
|
+
readonly getCheckboxProps?: (record: T) => TableSelectionCheckboxProps;
|
|
114
|
+
readonly getTitleCheckboxProps?: () => TableSelectionCheckboxProps;
|
|
115
|
+
readonly hideSelectAll?: boolean;
|
|
116
|
+
readonly onCell?: GetComponentProps<T>;
|
|
117
|
+
readonly onChange?: (selectedRowKeys: Key[], selectedRows: T[], info: {
|
|
118
|
+
readonly type: RowSelectMethod;
|
|
119
|
+
}) => void;
|
|
120
|
+
readonly onSelect?: (record: T, selected: boolean, selectedRows: T[], nativeEvent: Event) => void;
|
|
121
|
+
readonly onSelectAll?: (selected: boolean, selectedRows: T[], changeRows: T[]) => void;
|
|
122
|
+
readonly onSelectInvert?: (selectedRowKeys: Key[]) => void;
|
|
123
|
+
readonly onSelectMultiple?: (selected: boolean, selectedRows: T[], changeRows: T[]) => void;
|
|
124
|
+
readonly onSelectNone?: () => void;
|
|
125
|
+
readonly preserveSelectedRowKeys?: boolean;
|
|
126
|
+
readonly renderCell?: (checked: boolean, record: T, index: number, originNode: ReactNode) => ReactNode | RenderedCell<T>;
|
|
127
|
+
readonly selections?: boolean | readonly (TableSelectionPreset | TableSelectionItem)[];
|
|
128
|
+
readonly selectedRowKeys?: readonly Key[];
|
|
129
|
+
readonly type?: "checkbox" | "radio";
|
|
130
|
+
}
|
|
131
|
+
export type TablePaginationProps = Omit<RcPaginationProps, "classNames" | "onChange" | "pageSizeOptions" | "prefixCls" | "styles"> & {
|
|
132
|
+
readonly onChange?: (page: number, pageSize: number) => void;
|
|
133
|
+
readonly pageSizeOptions?: readonly number[];
|
|
134
|
+
};
|
|
135
|
+
export type TablePaginationPlacement = "topStart" | "topCenter" | "topEnd" | "bottomStart" | "bottomCenter" | "bottomEnd" | "none";
|
|
136
|
+
export type TablePaginationPosition = "topLeft" | "topCenter" | "topRight" | "bottomLeft" | "bottomCenter" | "bottomRight" | "none";
|
|
137
|
+
export type TablePaginationConfig = TablePaginationProps & {
|
|
138
|
+
readonly placement?: readonly TablePaginationPlacement[];
|
|
139
|
+
/** @deprecated Use placement instead. */
|
|
140
|
+
readonly position?: readonly TablePaginationPosition[];
|
|
141
|
+
};
|
|
142
|
+
export interface TableLocale {
|
|
143
|
+
readonly cancelSort?: string;
|
|
144
|
+
readonly filterConfirm?: ReactNode;
|
|
145
|
+
readonly filterCheckAll?: ReactNode;
|
|
146
|
+
readonly filterEmptyText?: ReactNode;
|
|
147
|
+
readonly filterReset?: ReactNode;
|
|
148
|
+
readonly filterSearchPlaceholder?: string;
|
|
149
|
+
readonly emptyText?: ReactNode | (() => ReactNode);
|
|
150
|
+
readonly selectAll?: ReactNode;
|
|
151
|
+
readonly selectInvert?: ReactNode;
|
|
152
|
+
readonly selectNone?: ReactNode;
|
|
153
|
+
readonly selectRow?: (index: number) => string;
|
|
154
|
+
readonly selectionAll?: ReactNode;
|
|
155
|
+
readonly sortTitle?: string;
|
|
156
|
+
readonly triggerAsc?: string;
|
|
157
|
+
readonly triggerDesc?: string;
|
|
158
|
+
}
|
|
159
|
+
export interface TableChangeExtra<T> {
|
|
160
|
+
readonly action: TableAction;
|
|
161
|
+
readonly currentDataSource: T[];
|
|
162
|
+
}
|
|
163
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useReducedMotion(): boolean;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ant Design 6.5.1-compatible public surface.
|
|
3
|
+
*
|
|
4
|
+
* Core behavior is exported unchanged from the source mirror. 996UX additions
|
|
5
|
+
* below use distinct names and never replace an AntD core export.
|
|
6
|
+
*/
|
|
7
|
+
export * from "@996-design/996-antd";
|
|
8
|
+
export { antd996DarkTheme, antd996LightTheme, antd996Theme, getAntd996Theme, } from "./antd-theme";
|
|
9
|
+
export type { Antd996ColorScheme } from "./antd-theme";
|
|
10
|
+
export { ButtonGroup } from "./components/ButtonGroup";
|
|
11
|
+
export type { ButtonGroupProps } from "./components/ButtonGroup";
|
|
12
|
+
export { EmptyState } from "./components/EmptyState";
|
|
13
|
+
export { GameCover } from "./components/GameCover";
|
|
14
|
+
export { Icon } from "./components/Icon";
|
|
15
|
+
export type { IconName, IconProps } from "./components/Icon";
|
|
16
|
+
export { IconButton } from "./components/IconButton";
|
|
17
|
+
export type { IconButtonProps } from "./components/IconButton";
|
|
18
|
+
export { MenuList } from "./components/MenuList";
|
|
19
|
+
export type { MenuListItem, MenuListProps } from "./components/MenuList";
|
|
20
|
+
export { MessageToast } from "./components/MessageToast";
|
|
21
|
+
export type { MessageToastProps } from "./components/MessageToast";
|
|
22
|
+
export { Panel } from "./components/Panel";
|
|
23
|
+
export { PriceText } from "./components/PriceText";
|
|
24
|
+
export { ProgressBar } from "./components/ProgressBar";
|
|
25
|
+
export { ProgressButton } from "./components/ProgressButton";
|
|
26
|
+
export { SectionHeader } from "./components/SectionHeader";
|
|
27
|
+
export { SegmentedTabs } from "./components/SegmentedTabs";
|
|
28
|
+
export type { SegmentedTabItem, SegmentedTabsProps } from "./components/SegmentedTabs";
|
|
29
|
+
export { SelectInput } from "./components/SelectInput";
|
|
30
|
+
export type { SelectInputOption, SelectInputProps } from "./components/SelectInput";
|
|
31
|
+
export { StatCard } from "./components/StatCard";
|
|
32
|
+
export { StatusItem } from "./components/StatusItem";
|
|
33
|
+
export { TagPill } from "./components/TagPill";
|
|
34
|
+
export { Util } from "./components/OtherPrimitives";
|
|
35
|
+
export { Text, Title } from "./components/Typography";
|
|
36
|
+
export { cssVar, themeToken } from "./tokens";
|
|
37
|
+
export type { CssVarName, ThemeToken as ThemeTokenName } from "./tokens";
|
|
38
|
+
export { useReducedMotion } from "./hooks/useReducedMotion";
|
|
39
|
+
export declare const uiPackage: {
|
|
40
|
+
readonly package: "@996-design/996-ui";
|
|
41
|
+
readonly upstream: "antd@6.5.1";
|
|
42
|
+
readonly upstreamCommit: "46bfeb5c667bf701eb6941b740c96f0fdac9325b";
|
|
43
|
+
readonly componentPolicy: "exact-upstream-behavior-with-996ux-style-layer";
|
|
44
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
export declare const uiPackage: {
|
|
2
|
+
readonly package: "@996-design/996-ui";
|
|
3
|
+
readonly styling: "tailwind-v4";
|
|
4
|
+
readonly componentPolicy: "antd-compatible-wrapper";
|
|
5
|
+
};
|
|
6
|
+
export { ConfigConsumer, ConfigContext, ConfigProvider, Variants, defaultIconPrefixCls, defaultPrefixCls, globalConfig, useConfig, } from "./ConfigProvider";
|
|
7
|
+
export type { AntdSize, ComponentDefaults, ConfigConsumerProps, ConfigProviderProps, ConfigProviderType, DirectionType, GetPopupContainer, GetPrefixCls, GetTargetContainer, GlobalConfig, GlobalConfigProps, HolderRender, Locale, PopupContainer, RenderEmptyHandler, TargetContainer, ThemeConfig, ThemeCssVarConfig, ThemeComponentTokens, UiConfig, UiMotionConfig, UiSize, UiSurface, UiVisualSize, Variant, } from "./ConfigProvider";
|
|
8
|
+
export { cssVar, themeToken } from "./tokens";
|
|
9
|
+
export type { CssVarName, ThemeToken } from "./tokens";
|
|
10
|
+
export { useReducedMotion } from "./hooks/useReducedMotion";
|
|
11
|
+
export { Alert } from "./components/Alert";
|
|
12
|
+
export type { AlertClosableConfig, AlertErrorBoundaryProps, AlertProps, AlertType, AlertVariant, } from "./components/Alert";
|
|
13
|
+
export { Avatar } from "./components/Avatar";
|
|
14
|
+
export type { AvatarGroupMaxConfig, AvatarGroupProps, AvatarNamedSize, AvatarProps, AvatarResponsiveSize, AvatarShape, AvatarSize, } from "./components/Avatar";
|
|
15
|
+
export { Badge } from "./components/Badge";
|
|
16
|
+
export type { BadgeProps, BadgeRibbonProps, BadgeSize, BadgeStatus } from "./components/Badge";
|
|
17
|
+
export { AutoComplete, Cascader, DatePicker, Mentions, Select, TimePicker, Transfer, TreeSelect, Upload, } from "./components/DataEntryPrimitives";
|
|
18
|
+
export type { AutoCompleteOption, AutoCompleteProps, CascaderOption, CascaderPanelProps, CascaderProps, DatePickerProps, DraggerProps, GeneratedDatePickerProps, GeneratedRangePickerProps, MentionsConfig, MentionsEntity, MentionsOption, MentionsProps, PickerRangeValue, PickerValue, RangePickerProps, SelectOption, SelectProps, TimePickerProps, TimeRangePickerProps, TransferClassNames, TransferCustomListBodyProps, TransferDirection, TransferItem, TransferKey, TransferListProps, TransferLocale, TransferOperationProps, TransferPagination, TransferPaginationConfig, TransferProps, TransferRenderResult, TransferRenderResultObject, TransferSearchOption, TransferSearchProps, TransferSelectAllLabel, TransferStyles, TreeSelectNode, TreeSelectProps, ShowUploadListInterface, UploadActions, UploadChangeParam, UploadFile, UploadFileStatus, UploadItemRender, UploadListProgressProps, UploadListType, UploadLocale, UploadProps, UploadRef, UploadSemanticProps, UploadType, } from "./components/DataEntryPrimitives";
|
|
19
|
+
export { Calendar, Descriptions, Image, ImagePreviewGroup, QRCode, Timeline, Tour, Tree, } from "./components/DataDisplayPrimitives";
|
|
20
|
+
export type { CalendarCellRenderInfo, CalendarHeaderRender, CalendarMode, CalendarProps, CalendarSelectInfo, CalendarValue, DescriptionItem, DescriptionsProps, DirectoryTreeExpandAction, DirectoryTreeProps, ImagePreviewConfig, ImagePreviewGroupProps, ImageProps, QRCodeLocale, QRCodeProps, QRCodeStatus, QRCodeStatusRenderInfo, TimelineItem, TimelineItemPlacement, TimelineItemPlacement as TimelinePlacement, TimelineMode, TimelineProps, TourActionsRender, TourButtonProps, TourIndicatorsRender, TourProps, TourStep, TourType, TreeNode, TreeProps, TreeRef, } from "./components/DataDisplayPrimitives";
|
|
21
|
+
export type DescriptionsClassNames = NonNullable<import("./components/DataDisplayPrimitives").DescriptionsProps["classNames"]>;
|
|
22
|
+
export type DescriptionsSemanticSlot = keyof DescriptionsClassNames;
|
|
23
|
+
export type DescriptionsStyles = NonNullable<import("./components/DataDisplayPrimitives").DescriptionsProps["styles"]>;
|
|
24
|
+
export { Affix, BorderBeam, Util } from "./components/OtherPrimitives";
|
|
25
|
+
export type { AffixProps, AffixRef, BorderBeamProps } from "./components/OtherPrimitives";
|
|
26
|
+
export { App, FloatButton, NotificationPlacements, Watermark, notification, useNotification, } from "./components/FeedbackPrimitives";
|
|
27
|
+
export type { AppApi, AppConfig, AppProps, FloatButtonBackTopProps, FloatButtonBadgeProps, FloatButtonElement, FloatButtonGroupProps, FloatButtonGroupTrigger, FloatButtonProps, FloatButtonShape, FloatButtonTooltipProps, FloatButtonType, GlobalConfigProps as NotificationGlobalConfigProps, NotificationArgs, NotificationClassNames, NotificationClosable, NotificationConfig, NotificationInstance, NotificationMethods, NotificationPlacement, NotificationStyles, NotificationType, WatermarkContent, WatermarkFont, WatermarkProps, WatermarkText, } from "./components/FeedbackPrimitives";
|
|
28
|
+
export { Anchor, Menu } from "./components/NavigationPrimitives";
|
|
29
|
+
export type { AnchorItem, AnchorLinkProps, AnchorProps, MenuItem, MenuMode, MenuProps, } from "./components/NavigationPrimitives";
|
|
30
|
+
export type { MenuRef } from "@rc-component/menu";
|
|
31
|
+
export type { ItemType, MenuInfo, SelectInfo } from "@rc-component/menu/es/interface";
|
|
32
|
+
export { Flex, Layout, Space } from "./components/LayoutPrimitives";
|
|
33
|
+
export type { CollapseType, FlexProps, GapSize, LayoutContentProps, LayoutFooterProps, LayoutHeaderProps, LayoutProps, LegacyGapSize, NativeGapSize, Orientation, SiderClassNames, SiderContextValue, SiderProps, SiderSemanticSlot, SiderStyles, SiderTheme, SpaceClassNames, SpaceAddonProps, SpaceAddonStatus, SpaceCompactProps, SpaceCompactCellProps, SpaceCompactSize, SpaceProps, SpaceSemanticSlot, SpaceStyles, } from "./components/LayoutPrimitives";
|
|
34
|
+
export { Splitter } from "./components/Splitter";
|
|
35
|
+
export type { ShowCollapsibleIconMode, SplitterClassNames, SplitterOrientation, SplitterPanelProps, SplitterProps, SplitterStyles, } from "./components/Splitter";
|
|
36
|
+
export { Masonry } from "./components/Masonry";
|
|
37
|
+
export type { MasonryBreakpoint, MasonryGap, MasonryGutter, MasonryItem, MasonryProps, MasonryRef, MasonryResponsiveValue, } from "./components/Masonry";
|
|
38
|
+
export { Breadcrumb } from "./components/Breadcrumb";
|
|
39
|
+
export type { BreadcrumbItem, BreadcrumbItemProps, BreadcrumbProps, BreadcrumbSeparatorProps, } from "./components/Breadcrumb";
|
|
40
|
+
export { Button } from "./components/Button";
|
|
41
|
+
export type { AntdButtonSize, AntdButtonVariant, ButtonColor, ButtonProps, ButtonShape, ButtonSize, ButtonStatus, ButtonTone, ButtonType, ButtonVariant, ButtonWidth, } from "./components/Button";
|
|
42
|
+
export { ButtonGroup } from "./components/ButtonGroup";
|
|
43
|
+
export type { ButtonGroupProps } from "./components/ButtonGroup";
|
|
44
|
+
export { Card } from "./components/Card";
|
|
45
|
+
export type { CardGridProps, CardMetaProps, CardProps, CardSize, CardTabListType, CardVariant, } from "./components/Card";
|
|
46
|
+
export { Carousel } from "./components/Carousel";
|
|
47
|
+
export type { CarouselEffect, CarouselIndicator, CarouselItem, CarouselProps, CarouselRef, DotPlacement, Settings, } from "./components/Carousel";
|
|
48
|
+
export { Checkbox } from "./components/Checkbox";
|
|
49
|
+
export type { CheckboxChangeEvent, CheckboxGroupProps, CheckboxOptionType, CheckboxProps, CheckboxRef, CheckboxStatus, CheckboxValueType, } from "./components/Checkbox";
|
|
50
|
+
export { Collapse } from "./components/Collapse";
|
|
51
|
+
export type { CollapseExpandIconPosition, CollapseItem, CollapsePanelProps, CollapseProps, CollapseSize, } from "./components/Collapse";
|
|
52
|
+
export { Color, ColorPicker } from "./components/ColorPicker";
|
|
53
|
+
export type { ColorGenInput, ColorFormatType, ColorPickerClassNames, ColorPickerPanelProps, ColorPickerProps, ColorPickerRef, ColorPickerSemanticClassNames, ColorPickerSemanticStyles, ColorPickerSize, ColorPickerStyles, ColorPickerTrigger, ColorValueType, Colors, GradientColor, LineGradientType, ModeType as ColorPickerMode, PresetsItem as ColorPickerPreset, SingleValueType as ColorPickerSingleValue, } from "./components/ColorPicker";
|
|
54
|
+
export { Divider } from "./components/Divider";
|
|
55
|
+
export type { DividerOrientation, DividerProps, DividerSize, DividerTitlePlacement, DividerVariant, } from "./components/Divider";
|
|
56
|
+
export { Drawer } from "./components/Drawer";
|
|
57
|
+
export type { DrawerPlacement, DrawerProps, DrawerPush, DrawerResizable, DrawerSize, DrawerClosable, DrawerMask, } from "./components/Drawer";
|
|
58
|
+
export { Dropdown } from "./components/Dropdown";
|
|
59
|
+
export type { DropdownArrowOptions, DropdownMenu, DropdownMenuItem, DropdownPlacement, DropdownProps, DropdownTrigger, } from "./components/Dropdown";
|
|
60
|
+
export { Empty } from "./components/Empty";
|
|
61
|
+
export type { EmptyProps } from "./components/Empty";
|
|
62
|
+
export { EmptyState } from "./components/EmptyState";
|
|
63
|
+
export { Form } from "./components/Form";
|
|
64
|
+
export type { ErrorListProps, FormControlStatus, FormItemProps, FormItemStatus, FormItemUseStatusResult, FormListFieldData, FormListOperation, FormListProps, FormProps, } from "./components/Form";
|
|
65
|
+
export type { FormInstance, FormRef, NamePath, Rule, RuleObject } from "@rc-component/form";
|
|
66
|
+
export { GameCover } from "./components/GameCover";
|
|
67
|
+
export { Col, Grid, Row, useBreakpoint, useBreakpointValue } from "./components/Grid";
|
|
68
|
+
export type { Breakpoint, BreakpointValues, ColProps, ColSize, ColSpanType, FlexType, GridProps, Gutter, GutterUnit, RowAlign, RowJustify, RowProps, ScreenMap, } from "./components/Grid";
|
|
69
|
+
export { Icon } from "./components/Icon";
|
|
70
|
+
export type { IconName, IconProps } from "./components/Icon";
|
|
71
|
+
export { IconButton } from "./components/IconButton";
|
|
72
|
+
export type { IconButtonProps, IconButtonSize, IconButtonTone } from "./components/IconButton";
|
|
73
|
+
export { Input } from "./components/Input";
|
|
74
|
+
export type { AntdInputSize, AntdInputVariant, GroupProps as InputGroupProps, InputComponent, InputFocusOptions, InputProps, InputRef, InputSize, InputStatus, InputVariant, InputVisualSize, OTPProps, OTPRef, PasswordProps, PasswordVisibilityToggle, SearchProps as InputSearchProps, TextAreaProps, TextAreaRef, } from "./components/Input";
|
|
75
|
+
export { InputNumber } from "./components/InputNumber";
|
|
76
|
+
export type { InputNumberClassNames, InputNumberControls, InputNumberProps, InputNumberRef, InputNumberStyles, InputNumberValue, } from "./components/InputNumber";
|
|
77
|
+
export { List } from "./components/List";
|
|
78
|
+
export type { ListGridType, ListItemLayout, ListItemMetaProps, ListItemProps, ListPaginationConfig, ListProps, ListSize, } from "./components/List";
|
|
79
|
+
export { MenuList } from "./components/MenuList";
|
|
80
|
+
export type { MenuListItem, MenuListProps } from "./components/MenuList";
|
|
81
|
+
export { message, useMessage } from "./components/Message";
|
|
82
|
+
export type { ArgsProps as MessageArgsProps, ConfigOptions as MessageConfigOptions, JointContent as MessageContent, MessageArgs, MessageClassNames, MessageInstance, MessageMethods, MessageOpen, MessageStyles, NoticeType as MessageNoticeType, TypeOpen as MessageTypeOpen, } from "./components/Message";
|
|
83
|
+
export { MessageToast } from "./components/MessageToast";
|
|
84
|
+
export type { MessageType, MessageToastProps } from "./components/MessageToast";
|
|
85
|
+
export { Modal, useModal } from "./components/Modal";
|
|
86
|
+
export type { HookModalApi, HookModalFunc, HookModalFuncReturn, ModalComponent, ModalConfigUpdate, ModalFooterRender, ModalFunc, ModalFuncProps, ModalFuncReturn, ModalGlobalConfig, ModalProps, ModalStaticAction, ModalStaticFunctions, MousePosition, } from "./components/Modal";
|
|
87
|
+
export { Panel } from "./components/Panel";
|
|
88
|
+
export { Pagination } from "./components/Pagination";
|
|
89
|
+
export type { PaginationProps } from "./components/Pagination";
|
|
90
|
+
export { Popconfirm } from "./components/Popconfirm";
|
|
91
|
+
export type { PopconfirmProps } from "./components/Popconfirm";
|
|
92
|
+
export { Popover } from "./components/Popover";
|
|
93
|
+
export type { PopoverProps } from "./components/Popover";
|
|
94
|
+
export { PriceText } from "./components/PriceText";
|
|
95
|
+
export { Progress } from "./components/Progress";
|
|
96
|
+
export type { ProgressGapPlacement, ProgressGapPosition, ProgressGradient, ProgressPercentPosition, ProgressProps, ProgressSemanticSlot, ProgressSize, ProgressStatus, ProgressStrokeLinecap, ProgressSuccessProps, ProgressType, } from "./components/Progress";
|
|
97
|
+
export { ProgressBar } from "./components/ProgressBar";
|
|
98
|
+
export { ProgressButton } from "./components/ProgressButton";
|
|
99
|
+
export { Radio } from "./components/Radio";
|
|
100
|
+
export type { RadioChangeEvent, RadioChangeEventTarget, RadioGroupButtonStyle, RadioGroupOptionType, RadioGroupProps, RadioOptionType, RadioProps, RadioRef, RadioSize, RadioValue, } from "./components/Radio";
|
|
101
|
+
export { Rate } from "./components/Rate";
|
|
102
|
+
export type { RateProps } from "./components/Rate";
|
|
103
|
+
export { Result } from "./components/Result";
|
|
104
|
+
export type { ResultProps, ResultStatus } from "./components/Result";
|
|
105
|
+
export { SectionHeader } from "./components/SectionHeader";
|
|
106
|
+
export { SelectInput } from "./components/SelectInput";
|
|
107
|
+
export type { SelectInputOption, SelectInputProps } from "./components/SelectInput";
|
|
108
|
+
export { Segmented } from "./components/Segmented";
|
|
109
|
+
export type { SegmentedClassNames, SegmentedLabeledOption, SegmentedLegacyItem, SegmentedOption, SegmentedProps, SegmentedSemanticSlot, SegmentedSize, SegmentedStyles, SegmentedValue, } from "./components/Segmented";
|
|
110
|
+
export { SegmentedTabs } from "./components/SegmentedTabs";
|
|
111
|
+
export type { SegmentedTabAppearance, SegmentedTabIndicator, SegmentedTabItem, SegmentedTabsProps, SegmentedTabSize, SegmentedTabsType, } from "./components/SegmentedTabs";
|
|
112
|
+
export { Skeleton } from "./components/Skeleton";
|
|
113
|
+
export type { SkeletonButtonProps, SkeletonElementProps, SkeletonProps, SkeletonShape, SkeletonSize, } from "./components/Skeleton";
|
|
114
|
+
export { Slider } from "./components/Slider";
|
|
115
|
+
export type { SliderClassNames, SliderFormatter, SliderMarks, SliderProps, SliderRange, SliderRangeProps, SliderRef, SliderSingleProps, SliderSemanticSlot, SliderStyles, SliderTooltipProps, SliderValue, } from "./components/Slider";
|
|
116
|
+
export { Spin } from "./components/Spin";
|
|
117
|
+
export type { SpinProps, SpinSize } from "./components/Spin";
|
|
118
|
+
export { StatCard } from "./components/StatCard";
|
|
119
|
+
export { Statistic } from "./components/Statistic";
|
|
120
|
+
export type { CountdownProps, StatisticFormatConfig, StatisticFormatter, StatisticProps, StatisticRef, StatisticSemanticSlot, StatisticTimerProps, StatisticTimerType, StatisticValue, } from "./components/Statistic";
|
|
121
|
+
export { StatusItem } from "./components/StatusItem";
|
|
122
|
+
export { Steps } from "./components/Steps";
|
|
123
|
+
export type { ProgressDotRender, StepItem, StepsIconRender, StepsOrientation, StepsProps, StepsSize, StepsTitlePlacement, StepsType, StepsVariant, StepStatus, } from "./components/Steps";
|
|
124
|
+
export { Switch } from "./components/Switch";
|
|
125
|
+
export type { SwitchChangeEventHandler, SwitchClassNames, SwitchClickEventHandler, SwitchProps, SwitchSemanticSlot, SwitchSize, SwitchStatus, SwitchStyles, } from "./components/Switch";
|
|
126
|
+
export { Table } from "./components/Table";
|
|
127
|
+
export type { ColumnFilterItem, ColumnsType, FilterValue, RowSelectMethod, SortOrder, TableAction, TableChangeExtra, TableColumn, TableColumnGroupProps, TableColumnProps, TableFilterDropdownProps, TableLocale, TablePaginationConfig, TablePaginationProps, TableProps, TableRef, TableRowSelection, TableSelectionItem, TableSelectionPreset, TableSorterResult, TableSorterTooltipProps, TableSorterTooltipTarget, } from "./components/Table";
|
|
128
|
+
export { Tabs } from "./components/Tabs";
|
|
129
|
+
export type { AntdTabsType, CompatibilityProps as TabsCompatibilityProps, RcTabsRef, TabPaneProps, TabsExtensionType, TabsItem, TabsPosition, TabsProps, TabsType, } from "./components/Tabs";
|
|
130
|
+
export { Tag } from "./components/Tag";
|
|
131
|
+
export type { CheckableTagGroupProps, CheckableTagOption, CheckableTagProps, TagClosableConfig, TagColor, TagPresetColor, TagProps, TagVariant, } from "./components/Tag";
|
|
132
|
+
export { TagPill } from "./components/TagPill";
|
|
133
|
+
export { Tooltip } from "./components/Tooltip";
|
|
134
|
+
export type { TooltipAdjustOverflow, TooltipArrowOptions, TooltipPlacement, TooltipProps, TooltipRef, TooltipTrigger, } from "./components/Tooltip";
|
|
135
|
+
export { Link, Paragraph, Text, Title, Typography } from "./components/Typography";
|
|
136
|
+
export type { BaseTypographyProps, LinkProps, ParagraphProps, TextProps, TextVariant, TitleProps, TitleVariant, TypographyCopyConfig, TypographyEllipsisConfig, TypographyProps, TypographyType, } from "./components/Typography";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type DescriptionsProps } from "../components/DataDisplayPrimitives";
|
|
3
|
+
import { type FormProps } from "../components/Form";
|
|
4
|
+
import { type LayoutProps } from "../components/LayoutPrimitives";
|
|
5
|
+
import { type ListProps } from "../components/List";
|
|
6
|
+
import { type TableProps } from "../components/Table";
|
|
7
|
+
export interface ProLayoutProps extends Omit<LayoutProps, "content"> {
|
|
8
|
+
readonly content?: ReactNode;
|
|
9
|
+
readonly header?: ReactNode;
|
|
10
|
+
readonly sider?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function ProLayout({ children, content, header, sider, ...props }: ProLayoutProps): import("react").JSX.Element;
|
|
13
|
+
export declare function ProForm(props: FormProps): import("react").JSX.Element;
|
|
14
|
+
export declare function ProTable<T>(props: TableProps<T>): import("react").JSX.Element;
|
|
15
|
+
export declare function ProDescriptions(props: DescriptionsProps): import("react").JSX.Element;
|
|
16
|
+
export declare function ProList<T>(props: ListProps<T>): import("react").JSX.Element;
|
|
17
|
+
export declare function EditableProTable<T>(props: TableProps<T>): import("react").JSX.Element;
|