@unicom-cloud/ui 0.8.100 → 0.8.101
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/Details.js +13 -2
- package/Divider.js +3 -2
- package/Flex.js +14 -4
- package/Loading.js +16 -3
- package/Space.js +3 -3
- package/Splitter.js +4 -3
- package/SuspenseFallbackTest.js +2 -4
- package/alert/index.js +60 -62
- package/back-top/index.js +32 -33
- package/calendar/index.js +85 -84
- package/components/common/development/index.js +44 -29
- package/components/common/empty/index.js +35 -23
- package/components/common/flex/index.js +64 -0
- package/components/common/flex/interface.js +9 -0
- package/components/common/higher-order/with-speech-synthesis/index.js +79 -55
- package/components/common/space/index.js +71 -91
- package/components/common/suspense-fallback-test/index.js +16 -0
- package/components/common/utils/toArray.js +12 -0
- package/details/index.js +102 -62
- package/divider/index.js +27 -21
- package/empty/index.js +13 -13
- package/flex/index.js +43 -55
- package/flex/interface.js +1 -34
- package/icon/interface.js +1 -0
- package/icon-hover/interface.js +1 -0
- package/index.js +537 -536
- package/loading/index.js +72 -53
- package/loading/interface.js +1 -0
- package/modal/Modal.js +73 -74
- package/package.json +1 -1
- package/portal/interface.js +1 -0
- package/segmented/index.js +47 -47
- package/space/index.js +41 -35
- package/speech-synthesis/interface.js +1 -0
- package/splitter/Splitter.js +85 -89
- package/splitter/hooks/useItems.js +1 -1
- package/splitter/index.js +5 -4
- package/style.css +1 -1
- package/suspense-fallback-test/index.js +2 -11
- package/suspense-fallback-test/interface.js +1 -0
- package/table/Table.js +38 -38
- package/trigger/index.js +67 -70
- package/types/common/development/index.d.ts +7 -1
- package/types/common/development/interface.d.ts +22 -0
- package/types/common/empty/index.d.ts +2 -1
- package/types/common/flex/index.d.ts +14 -0
- package/types/common/flex/interface.d.ts +62 -0
- package/types/common/higher-order/with-speech-synthesis/index.d.ts +6 -1
- package/types/common/higher-order/with-speech-synthesis/interface.d.ts +13 -0
- package/types/common/space/index.d.ts +4 -4
- package/types/common/space/interface.d.ts +10 -18
- package/types/common/suspense-fallback-test/index.d.ts +7 -0
- package/types/common/suspense-fallback-test/interface.d.ts +1 -0
- package/types/common/utils/PqbCSSTransition.d.ts +1 -1
- package/types/common/utils/toArray.d.ts +13 -0
- package/types/pc/alert/index.d.ts +2 -1
- package/types/pc/alert/interface.d.ts +7 -1
- package/types/pc/badge/Count.d.ts +1 -1
- package/types/pc/breadcrumb/Item.d.ts +1 -1
- package/types/pc/calendar/Month.d.ts +1 -1
- package/types/pc/calendar/WeekList.d.ts +1 -1
- package/types/pc/calendar/Year.d.ts +1 -1
- package/types/pc/calendar/header/Panel.d.ts +1 -1
- package/types/pc/calendar/header/index.d.ts +1 -1
- package/types/pc/calendar/index.d.ts +1 -1
- package/types/pc/calendar/interface.d.ts +2 -1
- package/types/pc/cascader/interface.d.ts +1 -1
- package/types/pc/cascader/panel/List.d.ts +1 -1
- package/types/pc/cascader/panel/Option.d.ts +1 -1
- package/types/pc/cascader/panel/Search.d.ts +1 -1
- package/types/pc/checkbox/Group.d.ts +2 -2
- package/types/pc/checkbox/GroupBlock.d.ts +1 -1
- package/types/pc/checkbox/IconCheck.d.ts +1 -1
- package/types/pc/color-picker/InputRgb.d.ts +1 -1
- package/types/pc/color-picker/Palette.d.ts +1 -1
- package/types/pc/config-provider/ConfigProvider.d.ts +1 -1
- package/types/pc/config-provider/interface.d.ts +4 -0
- package/types/pc/copy/index.d.ts +1 -1
- package/types/pc/date-picker/panel/Body.d.ts +1 -1
- package/types/pc/date-picker/panel/Footer.d.ts +1 -1
- package/types/pc/date-picker/panel/Header.d.ts +1 -1
- package/types/pc/date-picker/panel/WeekList.d.ts +1 -1
- package/types/pc/date-picker/panel/date/index.d.ts +1 -1
- package/types/pc/date-picker/panel/month/index.d.ts +1 -1
- package/types/pc/date-picker/panel/quarter/index.d.ts +1 -1
- package/types/pc/date-picker/panel/range/index.d.ts +1 -1
- package/types/pc/date-picker/panel/week/index.d.ts +1 -1
- package/types/pc/date-picker/panel/year/index.d.ts +1 -1
- package/types/pc/descriptions/index.d.ts +1 -1
- package/types/pc/details/index.d.ts +3 -2
- package/types/pc/details/interface.d.ts +16 -0
- package/types/pc/development/index.d.ts +2 -1
- package/types/pc/development/interface.d.ts +15 -0
- package/types/pc/divider/index.d.ts +7 -2
- package/types/pc/draggable/Item.d.ts +1 -1
- package/types/pc/draggable/index.d.ts +1 -1
- package/types/pc/flex/index.d.ts +4 -4
- package/types/pc/flex/interface.d.ts +8 -53
- package/types/pc/form/Control.d.ts +1 -1
- package/types/pc/form/FormList.d.ts +1 -1
- package/types/pc/form/IconSymbol.d.ts +1 -1
- package/types/pc/icon/addFromIconFontCn.d.ts +1 -7
- package/types/pc/icon/index.d.ts +2 -7
- package/types/pc/icon/interface.d.ts +13 -0
- package/types/pc/icon-hover/index.d.ts +2 -8
- package/types/pc/icon-hover/interface.d.ts +8 -0
- package/types/pc/image/ImageFooter.d.ts +1 -1
- package/types/pc/image/ImagePreviewArrow.d.ts +1 -1
- package/types/pc/image/TriggerForToolbar.d.ts +1 -1
- package/types/pc/index.d.ts +60 -51
- package/types/pc/loading/index.d.ts +4 -3
- package/types/pc/loading/interface.d.ts +6 -0
- package/types/pc/menu/Indent.d.ts +1 -1
- package/types/pc/menu/OverflowWrap.d.ts +1 -1
- package/types/pc/menu/sub-menu/Inline.d.ts +1 -1
- package/types/pc/menu/sub-menu/Pop.d.ts +1 -1
- package/types/pc/overflow-ellipsis/OverflowItem.d.ts +1 -1
- package/types/pc/overflow-ellipsis/index.d.ts +1 -1
- package/types/pc/pagination/PageItem.d.ts +3 -3
- package/types/pc/pagination/PageJumper.d.ts +1 -1
- package/types/pc/pagination/PageOption.d.ts +1 -1
- package/types/pc/portal/Portal.d.ts +2 -6
- package/types/pc/portal/index.d.ts +2 -9
- package/types/pc/portal/interface.d.ts +14 -0
- package/types/pc/progress/CircleProgress.d.ts +1 -1
- package/types/pc/progress/LineProgess.d.ts +1 -1
- package/types/pc/progress/StepProgress.d.ts +1 -1
- package/types/pc/radio/Group.d.ts +2 -2
- package/types/pc/radio/GroupBlock.d.ts +1 -1
- package/types/pc/radio/Radio.d.ts +1 -1
- package/types/pc/resize-box/ResizeTrigger.d.ts +1 -1
- package/types/pc/result/403.d.ts +1 -1
- package/types/pc/result/404.d.ts +1 -1
- package/types/pc/result/500.d.ts +1 -1
- package/types/pc/segmented/interface.d.ts +6 -6
- package/types/pc/skeleton/Image.d.ts +1 -1
- package/types/pc/skeleton/Text.d.ts +2 -1
- package/types/pc/slider/Button.d.ts +1 -1
- package/types/pc/slider/Input.d.ts +1 -1
- package/types/pc/slider/Tick.d.ts +1 -1
- package/types/pc/space/index.d.ts +6 -5
- package/types/pc/speech-synthesis/index.d.ts +3 -1
- package/types/pc/speech-synthesis/interface.d.ts +7 -0
- package/types/pc/spin/DotLoading.d.ts +1 -1
- package/types/pc/splitter/index.d.ts +5 -4
- package/types/pc/splitter/interface.d.ts +16 -16
- package/types/pc/suspense-fallback-test/index.d.ts +2 -3
- package/types/pc/suspense-fallback-test/interface.d.ts +2 -0
- package/types/pc/table/ColGroup.d.ts +1 -1
- package/types/pc/table/summary/Cell.d.ts +1 -1
- package/types/pc/table/summary/Row.d.ts +1 -1
- package/types/pc/table/tbody/Td.d.ts +1 -1
- package/types/pc/table/tbody/index.d.ts +1 -1
- package/types/pc/table/tfoot/index.d.ts +1 -1
- package/types/pc/table/th-resizable/index.d.ts +1 -1
- package/types/pc/table/thead/Column.d.ts +1 -1
- package/types/pc/table/thead/index.d.ts +1 -1
- package/types/pc/tabs/TabContent.d.ts +1 -1
- package/types/pc/tabs/tab-header/DropdownIcon.d.ts +1 -1
- package/types/pc/tabs/tab-header/TabInk.d.ts +1 -1
- package/types/pc/tabs/tab-header/TabNavIcon.d.ts +1 -1
- package/types/pc/time-picker/Picker.d.ts +1 -1
- package/types/pc/time-picker/RangePicker.d.ts +1 -1
- package/types/pc/time-picker/TimeColumn.d.ts +1 -1
- package/types/pc/time-picker/TimePicker.d.ts +1 -1
- package/types/pc/time-picker/index.d.ts +1 -1
- package/types/pc/transfer/Item.d.ts +1 -1
- package/types/pc/transfer/List.d.ts +1 -1
- package/types/pc/tree/Animation.d.ts +1 -1
- package/types/pc/typography/Operations.d.ts +1 -1
- package/types/pc/upload/list/index.d.ts +1 -1
- package/types/pc/utils/toArray.d.ts +1 -5
- package/types/pc/verification-code/VerificationCode.d.ts +1 -1
- package/types/pc/virtual-list/VirtualList.d.ts +2 -38
- package/types/pc/virtual-list/index.d.ts +2 -1
- package/types/pc/virtual-list/interface.d.ts +56 -0
- package/types/pc/watermark/Watermark.d.ts +1 -1
- package/utils/index.js +1 -1
- package/utils/toArray.js +3 -10
- package/version/index.js +1 -1
- package/virtual-list/interface.js +1 -0
- package/components/common/space/toArray.js +0 -11
- package/flex/utils.js +0 -13
- package/loading/style/index.module.less.js +0 -4
- package/types/common/space/toArray.d.ts +0 -3
- package/types/pc/flex/utils.d.ts +0 -9
- package/types/pc/suspense-fallback-test/style/index.d.ts +0 -1
- /package/{suspense-fallback-test/style/index.less.js → development/interface.js} +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* SuspenseFallbackTest 组件
|
|
4
|
+
* @description 用于测试Suspense的fallback状态,创建一个永远不会加载完成的懒加载组件
|
|
5
|
+
*/
|
|
6
|
+
declare const SuspenseFallbackTest: React.ForwardRefExoticComponent<object & React.RefAttributes<unknown>>;
|
|
7
|
+
export default SuspenseFallbackTest;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SuspenseFallbackTestProps = object;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CSSTransition } from '@unicom-cloud/react-transition-group';
|
|
2
|
-
declare function PqbCSSTransition(props: CSSTransition): import("react/jsx-
|
|
2
|
+
declare function PqbCSSTransition(props: CSSTransition): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export { PqbCSSTransition };
|
|
4
4
|
export default PqbCSSTransition;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ToArrayOptions {
|
|
3
|
+
keepEmpty?: boolean;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* 将React子节点转换为数组
|
|
7
|
+
* @param children React子节点
|
|
8
|
+
* @param options 配置选项
|
|
9
|
+
* @returns React元素数组
|
|
10
|
+
*/
|
|
11
|
+
declare function toArray(children: React.ReactNode, options?: ToArrayOptions): React.ReactElement[];
|
|
12
|
+
export { toArray };
|
|
13
|
+
export default toArray;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { AlertProps } from './interface';
|
|
2
|
-
declare const Alert:
|
|
3
|
+
declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<unknown>>;
|
|
3
4
|
export default Alert;
|
|
4
5
|
export type { AlertProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
1
|
+
import React, { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* @title Alert
|
|
4
4
|
*/
|
|
@@ -63,4 +63,10 @@ export interface AlertProps {
|
|
|
63
63
|
* @en Whether to show as banner
|
|
64
64
|
*/
|
|
65
65
|
banner?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* 自定义组件内容
|
|
68
|
+
* @en Custom component content
|
|
69
|
+
* @default null
|
|
70
|
+
*/
|
|
71
|
+
children?: React.ReactNode;
|
|
66
72
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { BreadCrumbItemProps } from './interface';
|
|
3
|
-
declare function Item(props: PropsWithChildren<BreadCrumbItemProps>): import("react/jsx-
|
|
3
|
+
declare function Item(props: PropsWithChildren<BreadCrumbItemProps>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare namespace Item {
|
|
5
5
|
var displayName: string;
|
|
6
6
|
}
|
|
@@ -11,5 +11,5 @@ export interface MonthProps extends CalendarProps {
|
|
|
11
11
|
CALENDAR_LOCALE?: Record<string, any>;
|
|
12
12
|
}
|
|
13
13
|
export declare function getAllDaysByTime(props: CalendarProps, time: Dayjs): never[][];
|
|
14
|
-
declare function Month(props: MonthProps): import("react/jsx-
|
|
14
|
+
declare function Month(props: MonthProps): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export default Month;
|
|
@@ -6,5 +6,5 @@ interface WeekListProps {
|
|
|
6
6
|
panel?: boolean;
|
|
7
7
|
innerMode?: 'day' | 'week' | 'month' | 'year';
|
|
8
8
|
}
|
|
9
|
-
declare function WeekList(props: WeekListProps): import("react/jsx-
|
|
9
|
+
declare function WeekList(props: WeekListProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export default WeekList;
|
|
@@ -9,5 +9,5 @@ interface YearProps extends CalendarProps {
|
|
|
9
9
|
CALENDAR_LOCALE?: Record<string, any>;
|
|
10
10
|
innerMode?: 'day' | 'week' | 'month' | 'year';
|
|
11
11
|
}
|
|
12
|
-
declare function Year(props: YearProps): import("react/jsx-
|
|
12
|
+
declare function Year(props: YearProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export default Year;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function PanelHeader(props: any): import("react/jsx-
|
|
1
|
+
declare function PanelHeader(props: any): import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default PanelHeader;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function Header(props: any): import("react/jsx-
|
|
1
|
+
declare function Header(props: any): import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default Header;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Month from './Month';
|
|
2
2
|
import Year from './Year';
|
|
3
3
|
import { CalendarProps } from './interface';
|
|
4
|
-
declare function Calendar(baseProps: CalendarProps): import("react/jsx-
|
|
4
|
+
declare function Calendar(baseProps: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare namespace Calendar {
|
|
6
6
|
var displayName: string;
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode, CSSProperties } from 'react';
|
|
2
1
|
import { Dayjs } from 'dayjs';
|
|
2
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
3
3
|
export type CalendarValue = Dayjs | Date | string | number;
|
|
4
4
|
/**
|
|
5
5
|
* @title Calendar
|
|
@@ -101,6 +101,7 @@ export interface CalendarProps {
|
|
|
101
101
|
onChange: any;
|
|
102
102
|
onChangePageDate: any;
|
|
103
103
|
onChangeMode: any;
|
|
104
|
+
header?: ReactNode;
|
|
104
105
|
}) => ReactNode;
|
|
105
106
|
/**
|
|
106
107
|
* @zh
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { SelectViewCommonProps } from '../select-view';
|
|
3
3
|
import { TriggerProps } from '../trigger';
|
|
4
|
-
import { VirtualListProps } from '../virtual-list/
|
|
4
|
+
import type { VirtualListProps } from '../virtual-list/interface';
|
|
5
5
|
import { NodeProps } from './base/node';
|
|
6
6
|
import Store from './base/store';
|
|
7
7
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CascaderPanelProps, OptionProps } from '../../cascader/interface';
|
|
2
2
|
export declare const getLegalIndex: (currentIndex: any, maxIndex: any) => any;
|
|
3
|
-
declare const ListPanel: <T extends OptionProps>(props: CascaderPanelProps<T>) => import("react/jsx-
|
|
3
|
+
declare const ListPanel: <T extends OptionProps>(props: CascaderPanelProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default ListPanel;
|
|
@@ -19,5 +19,5 @@ export interface CascaderOptionProps<T> {
|
|
|
19
19
|
onMouseEnter?: () => void;
|
|
20
20
|
onMultipleChecked?: (checked: boolean) => void;
|
|
21
21
|
}
|
|
22
|
-
declare const Option: <T extends OptionProps>(props: CascaderOptionProps<T>) => import("react/jsx-
|
|
22
|
+
declare const Option: <T extends OptionProps>(props: CascaderOptionProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
export default Option;
|
|
@@ -24,5 +24,5 @@ export type SearchPanelProps<T> = {
|
|
|
24
24
|
next?: ReactNode;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
-
declare const SearchPanel: <T extends OptionProps>(props: SearchPanelProps<T>) => import("react/jsx-
|
|
27
|
+
declare const SearchPanel: <T extends OptionProps>(props: SearchPanelProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
export default SearchPanel;
|
|
@@ -8,8 +8,8 @@ export declare const CheckboxGroupContext: React.Context<{
|
|
|
8
8
|
registerValue: (value: ReactText) => void;
|
|
9
9
|
unRegisterValue: (value: ReactText) => void;
|
|
10
10
|
}>;
|
|
11
|
-
export declare const ClearCheckboxGroupContext: ({ children, }: PropsWithChildren<{}>) => import("react/jsx-
|
|
12
|
-
declare function Group<T extends React.ReactText>(props: PropsWithChildren<CheckboxGroupProps<T>>): import("react/jsx-
|
|
11
|
+
export declare const ClearCheckboxGroupContext: ({ children, }: PropsWithChildren<{}>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function Group<T extends React.ReactText>(props: PropsWithChildren<CheckboxGroupProps<T>>): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
declare namespace Group {
|
|
14
14
|
var displayName: string;
|
|
15
15
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CheckboxGroupProps } from './interface';
|
|
2
|
-
declare function CheckboxGroupBlock(props: any): import("react/jsx-
|
|
2
|
+
declare function CheckboxGroupBlock(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare namespace CheckboxGroupBlock {
|
|
4
4
|
var displayName: string;
|
|
5
5
|
}
|
|
@@ -6,5 +6,5 @@ interface InputRgbProps {
|
|
|
6
6
|
onAlphaChange: (value: number) => void;
|
|
7
7
|
disabledAlpha?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare const InputRgb: ({ color, alpha, onHsvChange, onAlphaChange, disabledAlpha, }: InputRgbProps) => import("react/jsx-
|
|
9
|
+
export declare const InputRgb: ({ color, alpha, onHsvChange, onAlphaChange, disabledAlpha, }: InputRgbProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -3,5 +3,5 @@ interface PaletteProps {
|
|
|
3
3
|
color: Color;
|
|
4
4
|
onChange: (s: number, v: number) => void;
|
|
5
5
|
}
|
|
6
|
-
export declare const Palette: ({ color, onChange }: PaletteProps) => import("react/jsx-
|
|
6
|
+
export declare const Palette: ({ color, onChange }: PaletteProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ConfigContext, { ConfigProviderDefaultProps } from './context';
|
|
2
2
|
import { ConfigProviderProps } from './interface';
|
|
3
|
-
declare function ConfigProvider(baseProps: ConfigProviderProps): import("react/jsx-
|
|
3
|
+
declare function ConfigProvider(baseProps: ConfigProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare namespace ConfigProvider {
|
|
5
5
|
var ConfigContext: import("react").Context<ConfigProviderProps>;
|
|
6
6
|
var displayName: string;
|
|
@@ -18,6 +18,7 @@ import { ColorPickerProps } from '../color-picker';
|
|
|
18
18
|
import { CommentProps } from '../comment/interface';
|
|
19
19
|
import { PickerProps as DatePickerCommonProps } from '../date-picker/interface';
|
|
20
20
|
import { DescriptionsProps } from '../descriptions/interface';
|
|
21
|
+
import { DetailsProps } from '../details';
|
|
21
22
|
import { DividerProps } from '../divider/interface';
|
|
22
23
|
import { DrawerProps } from '../drawer/interface';
|
|
23
24
|
import { DropdownButtonProps, DropdownProps } from '../dropdown/interface';
|
|
@@ -33,6 +34,7 @@ import { LayoutProps } from '../layout/interface';
|
|
|
33
34
|
import { LinkProps } from '../link/interface';
|
|
34
35
|
import { LiquidFillProps } from '../liquid-fill';
|
|
35
36
|
import { ListItemProps, ListProps } from '../list/interface';
|
|
37
|
+
import type { LoadingProps } from '../loading';
|
|
36
38
|
import { Locale } from '../locale/interface';
|
|
37
39
|
import type { MarqueeProps } from '../marquee';
|
|
38
40
|
import { MentionsProps } from '../mentions/interface';
|
|
@@ -161,6 +163,8 @@ export type ComponentConfig = {
|
|
|
161
163
|
Segmented?: SegmentedProps;
|
|
162
164
|
Splitter?: SplitterProps;
|
|
163
165
|
Flex?: FlexProps;
|
|
166
|
+
Details?: DetailsProps;
|
|
167
|
+
Loading?: LoadingProps;
|
|
164
168
|
};
|
|
165
169
|
/**
|
|
166
170
|
* @title ConfigProvider
|
package/types/pc/copy/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { CopyProps } from './interface';
|
|
3
|
-
declare function Copy(props: PropsWithChildren<CopyProps>): import("react/jsx-
|
|
3
|
+
declare function Copy(props: PropsWithChildren<CopyProps>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare namespace Copy {
|
|
5
5
|
var displayName: string;
|
|
6
6
|
}
|
|
@@ -26,5 +26,5 @@ export interface PanelBodyProps {
|
|
|
26
26
|
hideNotInViewDates?: boolean;
|
|
27
27
|
valueShowHover?: Dayjs[];
|
|
28
28
|
}
|
|
29
|
-
declare function Body(props: PanelBodyProps): import("react/jsx-
|
|
29
|
+
declare function Body(props: PanelBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
export default Body;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function Footer(props: any): import("react/jsx-
|
|
1
|
+
declare function Footer(props: any): import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default Footer;
|
|
@@ -16,5 +16,5 @@ export interface HeaderProps {
|
|
|
16
16
|
rtl?: boolean;
|
|
17
17
|
DATEPICKER_LOCALE?: Locale['DatePicker'];
|
|
18
18
|
}
|
|
19
|
-
declare function Header(props: HeaderProps): import("react/jsx-
|
|
19
|
+
declare function Header(props: HeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export default Header;
|
|
@@ -4,5 +4,5 @@ interface WeekListProps {
|
|
|
4
4
|
isWeek?: boolean;
|
|
5
5
|
CALENDAR_LOCALE?: Record<string, any>;
|
|
6
6
|
}
|
|
7
|
-
declare function WeekList(props: WeekListProps): import("react/jsx-
|
|
7
|
+
declare function WeekList(props: WeekListProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default WeekList;
|
|
@@ -20,5 +20,5 @@ interface InnerDatePickerProps extends DatePickerProps {
|
|
|
20
20
|
panelMode?: ModeType;
|
|
21
21
|
setPanelMode?: (mode: ModeType) => void;
|
|
22
22
|
}
|
|
23
|
-
declare function DatePicker(props: InnerDatePickerProps & PrivateCType): import("react/jsx-
|
|
23
|
+
declare function DatePicker(props: InnerDatePickerProps & PrivateCType): import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
export default DatePicker;
|
|
@@ -13,5 +13,5 @@ interface InnerMonthPickerProps extends MonthPickerProps {
|
|
|
13
13
|
panelMode?: ModeType;
|
|
14
14
|
setPanelMode?: (mode: ModeType) => void;
|
|
15
15
|
}
|
|
16
|
-
declare function MonthPicker(props: InnerMonthPickerProps & PrivateCType): import("react/jsx-
|
|
16
|
+
declare function MonthPicker(props: InnerMonthPickerProps & PrivateCType): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export default MonthPicker;
|
|
@@ -13,5 +13,5 @@ interface InnerQuarterPickerProps extends QuarterPickerProps {
|
|
|
13
13
|
panelMode?: ModeType;
|
|
14
14
|
setPanelMode?: (mode: ModeType) => void;
|
|
15
15
|
}
|
|
16
|
-
declare function QuarterPicker(props: InnerQuarterPickerProps & PrivateCType): import("react/jsx-
|
|
16
|
+
declare function QuarterPicker(props: InnerQuarterPickerProps & PrivateCType): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export default QuarterPicker;
|
|
@@ -24,5 +24,5 @@ interface InnerRangePickerProps extends RangePickerProps {
|
|
|
24
24
|
panelModes?: ModeType[];
|
|
25
25
|
setPanelModes?: (modes: ModeType[]) => void;
|
|
26
26
|
}
|
|
27
|
-
declare function RangePicker(props: InnerRangePickerProps & PrivateCType): import("react/jsx-
|
|
27
|
+
declare function RangePicker(props: InnerRangePickerProps & PrivateCType): import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
export default RangePicker;
|
|
@@ -12,5 +12,5 @@ interface InnerWeekPickerProps extends WeekPickerProps {
|
|
|
12
12
|
panelMode?: ModeType;
|
|
13
13
|
setPanelMode?: (mode: ModeType) => void;
|
|
14
14
|
}
|
|
15
|
-
declare function WeekPicker(props: InnerWeekPickerProps & PrivateCType): import("react/jsx-
|
|
15
|
+
declare function WeekPicker(props: InnerWeekPickerProps & PrivateCType): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export default WeekPicker;
|
|
@@ -12,5 +12,5 @@ interface InnerYearPickerProps extends YearPickerProps {
|
|
|
12
12
|
onSuperPrev?: () => void;
|
|
13
13
|
onSuperNext?: () => void;
|
|
14
14
|
}
|
|
15
|
-
declare function YearPicker(props: InnerYearPickerProps): import("react/jsx-
|
|
15
|
+
declare function YearPicker(props: InnerYearPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export default YearPicker;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DescriptionsProps } from './interface';
|
|
2
|
-
declare function Descriptions(baseProps: DescriptionsProps): import("react/jsx-
|
|
2
|
+
declare function Descriptions(baseProps: DescriptionsProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare namespace Descriptions {
|
|
4
4
|
var displayName: string;
|
|
5
5
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { DetailsProps } from './interface';
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
3
|
+
declare const Details: React.ForwardRefExoticComponent<DetailsProps & React.RefAttributes<HTMLDetailsElement>>;
|
|
4
|
+
export default Details;
|
|
4
5
|
export type { DetailsProps };
|
|
@@ -30,4 +30,20 @@ export interface DetailsProps {
|
|
|
30
30
|
* @en Whether to show as banner
|
|
31
31
|
*/
|
|
32
32
|
banner?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* @zh 受控模式,打开与关闭
|
|
35
|
+
*/
|
|
36
|
+
open?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @zh 非受控模式,默认打开或者默认关闭
|
|
39
|
+
*/
|
|
40
|
+
defaultOpen?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* @zh 展示时的回调
|
|
43
|
+
*/
|
|
44
|
+
onOpen?: () => void;
|
|
45
|
+
/**
|
|
46
|
+
* @zh 关闭时的回调
|
|
47
|
+
*/
|
|
48
|
+
onClose?: () => void;
|
|
33
49
|
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import type { DevelopmentProps } from './interface';
|
|
2
|
+
declare const Development: import("react").ForwardRefExoticComponent<DevelopmentProps & import("react").RefAttributes<unknown>>;
|
|
1
3
|
export default Development;
|
|
2
|
-
declare const Development: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { DevelopmentProps as DevelopmentPropsBase } from '../../common/development';
|
|
2
|
+
/**
|
|
3
|
+
* Development 组件的属性类型定义
|
|
4
|
+
* @property {string} [url] - 图片 URL,如果有则显示图片而不是图标
|
|
5
|
+
* @property {React.ReactNode} [icon] - 自定义图标,会覆盖默认的等待图标
|
|
6
|
+
* @property {string} [label] - 提示文字,默认为"等待开发"
|
|
7
|
+
* @property {string} [tip] - 提示文字别名,优先级低于 label
|
|
8
|
+
* @property {string} [className] - 根节点类名
|
|
9
|
+
* @property {string} [imgClassName] - 图片类名
|
|
10
|
+
* @property {string} [iconClassName] - 图标类名
|
|
11
|
+
* @property {string} [labelClassName] - 文字标签类名
|
|
12
|
+
*/
|
|
13
|
+
export interface DevelopmentProps extends DevelopmentPropsBase {
|
|
14
|
+
url?: string;
|
|
15
|
+
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DividerProps } from './interface';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
interface DividerComponent extends React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLDivElement>> {
|
|
4
|
+
Vertical: typeof DividerVertical;
|
|
5
|
+
}
|
|
6
|
+
declare const Divider: DividerComponent;
|
|
7
|
+
declare const DividerVertical: React.ForwardRefExoticComponent<Omit<DividerProps, "orientation"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export { DividerVertical };
|
|
9
|
+
export default Divider;
|
|
5
10
|
export type { DividerProps };
|
package/types/pc/flex/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import { FlexProps } from './interface';
|
|
3
|
+
declare const FlexVertical: React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
interface FlexInterface extends React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTMLDivElement>> {
|
|
4
5
|
Vertical: typeof FlexVertical;
|
|
5
6
|
}
|
|
6
|
-
declare const Flex:
|
|
7
|
-
declare const FlexVertical: React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTMLElement>>;
|
|
7
|
+
declare const Flex: FlexInterface;
|
|
8
8
|
export { FlexVertical };
|
|
9
9
|
export default Flex;
|
|
@@ -1,61 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import type { FlexProps as CommonFlexProps, GapType, SizeType } from '../../common/flex/interface';
|
|
3
|
+
export type { GapType, SizeType };
|
|
3
4
|
/**
|
|
4
5
|
* @title Flex
|
|
5
|
-
* @description Flex布局组件属性
|
|
6
6
|
*/
|
|
7
|
-
export interface FlexProps extends
|
|
7
|
+
export interface FlexProps extends CommonFlexProps {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* @en Custom prefix class name
|
|
9
|
+
* 自定义类名
|
|
11
10
|
*/
|
|
12
|
-
|
|
11
|
+
className?: string;
|
|
13
12
|
/**
|
|
14
|
-
*
|
|
15
|
-
* @en Root node class name
|
|
13
|
+
* 自定义样式
|
|
16
14
|
*/
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @zh 是否垂直布局
|
|
20
|
-
* @en Whether to use vertical layout
|
|
21
|
-
*/
|
|
22
|
-
vertical?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* @zh 换行方式
|
|
25
|
-
* @en Flex wrap style
|
|
26
|
-
*/
|
|
27
|
-
wrap?: boolean | React.CSSProperties['flexWrap'];
|
|
28
|
-
/**
|
|
29
|
-
* @zh 主轴对齐方式
|
|
30
|
-
* @en Justify content alignment
|
|
31
|
-
*/
|
|
32
|
-
justify?: React.CSSProperties['justifyContent'];
|
|
33
|
-
/**
|
|
34
|
-
* @zh 交叉轴对齐方式
|
|
35
|
-
* @en Align items alignment
|
|
36
|
-
*/
|
|
37
|
-
align?: React.CSSProperties['alignItems'];
|
|
38
|
-
/**
|
|
39
|
-
* @zh flex属性
|
|
40
|
-
* @en Flex property
|
|
41
|
-
*/
|
|
42
|
-
flex?: React.CSSProperties['flex'];
|
|
43
|
-
/**
|
|
44
|
-
* @zh 间距大小
|
|
45
|
-
* @en Gap size
|
|
46
|
-
*/
|
|
47
|
-
gap?: React.CSSProperties['gap'] | SizeType;
|
|
48
|
-
/**
|
|
49
|
-
* @zh 子元素
|
|
50
|
-
* @en Children elements
|
|
51
|
-
*/
|
|
52
|
-
children: React.ReactNode;
|
|
53
|
-
/**
|
|
54
|
-
* @zh 自定义渲染元素
|
|
55
|
-
* @en Custom component type
|
|
56
|
-
*/
|
|
57
|
-
component?: React.ElementType;
|
|
15
|
+
style?: CSSProperties;
|
|
58
16
|
}
|
|
59
|
-
export declare const flexWrapValues: React.CSSProperties['flexWrap'][];
|
|
60
|
-
export declare const justifyContentValues: React.CSSProperties['justifyContent'][];
|
|
61
|
-
export declare const alignItemsValues: React.CSSProperties['alignItems'][];
|
|
@@ -59,6 +59,6 @@ declare class Control<FormData = any, FieldValue = FormData[keyof FormData], Fie
|
|
|
59
59
|
handleTrigger: (_value: any, ...args: any[]) => void;
|
|
60
60
|
renderControl(children: React.ReactNode, id: any): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
61
61
|
getChild: () => React.ReactNode;
|
|
62
|
-
render(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-
|
|
62
|
+
render(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
63
63
|
}
|
|
64
64
|
export default Control;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FormListProps, KeyType } from './interface';
|
|
2
|
-
declare function FormList<SubFieldValue = unknown, SubFieldKey extends KeyType = string, FieldKey extends KeyType = string>(props: FormListProps<SubFieldValue, SubFieldKey, FieldKey>): import("react/jsx-
|
|
2
|
+
declare function FormList<SubFieldValue = unknown, SubFieldKey extends KeyType = string, FieldKey extends KeyType = string>(props: FormListProps<SubFieldValue, SubFieldKey, FieldKey>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare namespace FormList {
|
|
4
4
|
var displayName: string;
|
|
5
5
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
2
|
import { JSX } from 'react/jsx-runtime';
|
|
3
|
-
declare function IconUiCheck(props: JSX.IntrinsicAttributes & SVGProps<SVGSVGElement>):
|
|
3
|
+
declare function IconUiCheck(props: JSX.IntrinsicAttributes & SVGProps<SVGSVGElement>): JSX.Element;
|
|
4
4
|
export default IconUiCheck;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IconProps } from '
|
|
3
|
-
export interface IconfontOptions {
|
|
4
|
-
src?: string;
|
|
5
|
-
extraProps?: {
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
2
|
+
import type { IconfontOptions, IconProps } from './interface';
|
|
9
3
|
declare function addFromIconFontCn(options?: IconfontOptions): React.FC<IconProps & React.RefAttributes<unknown>>;
|
|
10
4
|
export default addFromIconFontCn;
|
package/types/pc/icon/index.d.ts
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import IconContext from '@unicom-cloud/icons/context';
|
|
2
2
|
import useIconProps from '@unicom-cloud/icons/useProps';
|
|
3
|
-
import React, { CSSProperties
|
|
3
|
+
import React, { CSSProperties } from 'react';
|
|
4
4
|
import addFromIconFontCn from './addFromIconFontCn';
|
|
5
|
-
|
|
6
|
-
style?: CSSProperties;
|
|
7
|
-
type?: string;
|
|
8
|
-
spin?: boolean;
|
|
9
|
-
className?: string | string[];
|
|
10
|
-
}
|
|
5
|
+
import type { IconProps } from './interface';
|
|
11
6
|
export interface CustomIconComponentProps {
|
|
12
7
|
style?: CSSProperties;
|
|
13
8
|
className?: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CSSProperties, SVGAttributes } from 'react';
|
|
2
|
+
export interface IconProps extends Omit<SVGAttributes<SVGElement>, 'className'> {
|
|
3
|
+
style?: CSSProperties;
|
|
4
|
+
type?: string;
|
|
5
|
+
spin?: boolean;
|
|
6
|
+
className?: string | string[];
|
|
7
|
+
}
|
|
8
|
+
export interface IconfontOptions {
|
|
9
|
+
src?: string;
|
|
10
|
+
extraProps?: {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
className?: string;
|
|
5
|
-
prefix?: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
onClick?: (e: any) => void;
|
|
8
|
-
}
|
|
9
|
-
declare const IconHover: React.ForwardRefExoticComponent<HoverProps & {
|
|
2
|
+
import type { IconHoverProps } from './interface';
|
|
3
|
+
declare const IconHover: React.ForwardRefExoticComponent<IconHoverProps & {
|
|
10
4
|
children?: React.ReactNode | undefined;
|
|
11
5
|
} & React.RefAttributes<unknown>>;
|
|
12
6
|
export default IconHover;
|
|
@@ -9,5 +9,5 @@ interface ImageFooterProps {
|
|
|
9
9
|
prefixCls: string | undefined;
|
|
10
10
|
simple?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare const ImageFooter: (props: ImageFooterProps) => import("react/jsx-
|
|
12
|
+
export declare const ImageFooter: (props: ImageFooterProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
13
|
export {};
|