@unicom-cloud/ui 0.8.63 → 0.8.64
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/Affix.js +1 -1
- package/Alert.js +1 -1
- package/Anchor.js +1 -1
- package/AutoComplete.js +3 -3
- package/Avatar.js +1 -1
- package/BackTop.js +1 -1
- package/Badge.js +1 -1
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +3 -3
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +4 -4
- package/Comment.js +1 -1
- package/ConfigProvider.js +2 -2
- package/Copy.js +1 -1
- package/DatePicker.js +3 -3
- package/Descriptions.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Drawer.js +1 -1
- package/Dropdown.js +26 -25
- package/Empty.js +1 -1
- package/Form.js +1 -1
- package/Grid.js +2 -2
- package/Icon.js +2 -1
- package/IconHover.js +1 -1
- package/Image.js +4 -1
- package/Input.js +11 -2
- package/InputNumber.js +2 -2
- package/InputTag.js +1 -1
- package/Layout.js +24 -20
- package/Link.js +1 -1
- package/List.js +4 -3
- package/Mentions.js +3 -3
- package/Menu.js +7 -2
- package/Message.js +3 -2
- package/Modal.js +1 -1
- package/Notice.js +1 -1
- package/Notification.js +3 -2
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/Radio.js +4 -2
- package/Rate.js +1 -1
- package/ResizeBox.js +66 -64
- package/Result.js +1 -1
- package/Select.js +4 -1
- package/SelectView.js +3 -3
- package/Skeleton.js +1 -1
- package/Slider.js +2 -2
- package/Space.js +54 -50
- package/Spin.js +1 -1
- package/Statistic.js +28 -27
- package/Steps.js +40 -38
- package/Switch.js +1 -1
- package/Table.js +7 -4
- package/Tabs.js +6 -2
- package/Tag.js +1 -1
- package/TimePicker.js +37 -36
- package/Timeline.js +4 -2
- package/Tooltip.js +1 -1
- package/Transfer.js +3 -3
- package/Tree.js +1 -1
- package/TreeSelect.js +3 -1
- package/Trigger.js +1 -1
- package/Typography.js +6 -2
- package/Upload.js +5 -4
- package/VerificationCode.js +1 -1
- package/Watermark.js +1 -1
- package/chunk/{DDDuw0Zi.js → -IELMT_x.js} +1 -1
- package/chunk/{C5S_amaH.js → B5GDq8NJ.js} +7 -5
- package/chunk/{DbLgopUR.js → B68hRpYG.js} +1 -1
- package/chunk/{BLLKKgZJ.js → BCxoi4Kf.js} +22 -20
- package/chunk/{B5gIo-hD.js → BHnRi7Xh.js} +3 -3
- package/chunk/{CfZWOhnc.js → BJSjbYSN.js} +1 -1
- package/chunk/{CfTcP6nF.js → BSBJlVZH.js} +2 -2
- package/chunk/{rlfmXePI.js → BfHNSLva.js} +2 -2
- package/chunk/{JpKOcIfl.js → BtIG250j.js} +6 -3
- package/chunk/{DXZ8-ha7.js → BwSpYGK-.js} +1 -1
- package/chunk/{Dpzgtdt-.js → CA69nxbj.js} +1 -1
- package/chunk/{BoDdbbF_.js → CAhODOfT.js} +3 -2
- package/chunk/{DbPYtS7-.js → CAiaqaWc.js} +1 -1
- package/chunk/{CvlD3aiv.js → CBgwLBAC.js} +40 -38
- package/chunk/{aqSmxUbY.js → CTF5o0OX.js} +1 -1
- package/chunk/{BEB_A9eY.js → CYQ1EE4h.js} +1 -1
- package/chunk/{C6Zb_-OE.js → CZfGDXaB.js} +1 -1
- package/chunk/{BcwdVUDs.js → CtUTlwlQ.js} +1 -1
- package/chunk/{QFkhCtUr.js → CxpFYX4B.js} +2 -2
- package/chunk/{BnLshM9R.js → D-oHJail.js} +58 -54
- package/chunk/{Bn2-vqTg.js → D01b7bWX.js} +50 -45
- package/chunk/{CD7dGcUa.js → DPJEIBKZ.js} +2 -2
- package/chunk/{Dk6hL04k.js → DQ561AmR.js} +2 -2
- package/chunk/{B9w_puFP.js → QlYCEvCX.js} +1 -1
- package/chunk/{D3dcFbex.js → Yvz-hPQB.js} +2 -2
- package/chunk/{Co3idurS.js → _m8hLSsx.js} +4 -2
- package/chunk/{CZ1wrD_H.js → oR9TkA35.js} +1 -1
- package/chunk/{CAxIyiy6.js → pq-36BDW.js} +5 -3
- package/chunk/{CgDayZDE.js → tW_FgNSv.js} +1 -1
- package/index.js +536 -486
- package/package.json +1 -1
- package/types/calendar/hook/useCellClassName.d.ts +2 -1
- package/types/checkbox/IconCheck.d.ts +2 -1
- package/types/date-picker/hook/useCellClassName.d.ts +2 -1
- package/types/date-picker/panel/Footer.d.ts +2 -1
- package/types/dropdown/index.d.ts +1 -0
- package/types/form/IconSymbol.d.ts +2 -1
- package/types/form/useForm.d.ts +2 -1
- package/types/icon/addFromIconFontCn.d.ts +2 -1
- package/types/icon/index.d.ts +2 -0
- package/types/image/Image.d.ts +1 -0
- package/types/image/index.d.ts +2 -1
- package/types/image/util/getFixTranslate.d.ts +2 -1
- package/types/image/util/hook/useImageStatus.d.ts +2 -2
- package/types/image/util/hook/useShowFooter.d.ts +2 -2
- package/types/index.d.ts +23 -23
- package/types/input/Input.d.ts +1 -0
- package/types/input/index.d.ts +1 -0
- package/types/input/useComposition.d.ts +2 -1
- package/types/input-number/useSelectionRange.d.ts +2 -1
- package/types/layout/index.d.ts +1 -0
- package/types/list/index.d.ts +1 -0
- package/types/menu/Indent.d.ts +2 -1
- package/types/menu/Menu.d.ts +1 -0
- package/types/menu/index.d.ts +1 -0
- package/types/message/index.d.ts +2 -0
- package/types/notification/index.d.ts +2 -0
- package/types/overflow-ellipsis/OverflowItem.d.ts +2 -2
- package/types/overflow-ellipsis/index.d.ts +2 -2
- package/types/radio/Radio.d.ts +2 -0
- package/types/radio/index.d.ts +2 -1
- package/types/resize-box/ResizeTrigger.d.ts +2 -1
- package/types/resize-box/index.d.ts +1 -0
- package/types/result/403.d.ts +2 -1
- package/types/result/404.d.ts +2 -1
- package/types/result/500.d.ts +2 -1
- package/types/select/Select.d.ts +1 -1
- package/types/select/index.d.ts +1 -0
- package/types/skeleton/Image.d.ts +2 -1
- package/types/skeleton/Text.d.ts +2 -1
- package/types/slider/hook/useLegalValue.d.ts +2 -1
- package/types/space/index.d.ts +2 -0
- package/types/space/toArray.d.ts +2 -1
- package/types/speech-synthesis/index.d.ts +2 -1
- package/types/spin/DotLoading.d.ts +2 -1
- package/types/statistic/index.d.ts +1 -0
- package/types/steps/index.d.ts +1 -0
- package/types/table/hook/useComponent.d.ts +2 -1
- package/types/table/hook/useExpand.d.ts +2 -1
- package/types/table/hook/useRowSelection.d.ts +2 -1
- package/types/table/hook/useSorter.d.ts +2 -1
- package/types/table/index.d.ts +2 -1
- package/types/table/summary/index.d.ts +3 -0
- package/types/tabs/Tab.d.ts +1 -0
- package/types/tabs/TabContent.d.ts +2 -2
- package/types/tabs/hook/useDomSize.d.ts +2 -1
- package/types/tabs/hook/useHeaderScroll.d.ts +2 -1
- package/types/tabs/index.d.ts +1 -0
- package/types/tabs/tab-header/DropdownIcon.d.ts +2 -1
- package/types/time-picker/TimeColumn.d.ts +2 -2
- package/types/time-picker/index.d.ts +5 -0
- package/types/timeline/Timeline.d.ts +1 -0
- package/types/timeline/index.d.ts +1 -0
- package/types/tree-select/Select.d.ts +5 -0
- package/types/tree-select/hook/useTreeData.d.ts +2 -1
- package/types/tree-select/index.d.ts +2 -1
- package/types/typography/Operations.d.ts +2 -1
- package/types/typography/index.d.ts +1 -0
- package/types/upload/Upload.d.ts +2 -1
- package/types/upload/index.d.ts +2 -3
- package/types/utils/fillNBSP.d.ts +2 -1
- package/types/utils/getHighlightText.d.ts +2 -1
- package/types/utils/getHotkeyHandler.d.ts +2 -1
- package/types/utils/getStringLength.d.ts +2 -1
- package/types/utils/include.d.ts +2 -1
- package/types/utils/mergeProps.d.ts +2 -1
- package/types/utils/mergedToString.d.ts +2 -1
- package/types/utils/omit.d.ts +2 -1
- package/types/utils/pick.d.ts +2 -1
- package/types/utils/throttleByRaf.d.ts +2 -1
- package/types/utils/throttleByRafV2.d.ts +2 -1
- package/types/utils/warning.d.ts +2 -1
- package/utils/contextHolder.js +1 -1
- package/utils/index.js +2 -2
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@unicom-cloud/ui","version":"0.8.
|
|
1
|
+
{"name":"@unicom-cloud/ui","version":"0.8.64","dependencies":{"@unicom-cloud/icons":"latest"},"peerDependencies":{"dayjs":"^1.11.10","lodash":"^4.17.21","react":"^18.3.1","react-dom":"^18.3.1"},"peerDependenciesMeta":{},"type":"module","types":"types/index.d.ts","main":"./index.js","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare function useClassName(props: any): (cellDateObj: any, disabled: any) => string;
|
|
2
|
+
export default useClassName;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare function useClassName(props: any): (cellDateObj: any, disabled: any, utcOffset: any, timezone: any) => string;
|
|
2
|
+
export default useClassName;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare function Footer(props: any): import("react/jsx-dev-runtime").JSX.Element;
|
|
2
|
+
export default Footer;
|
|
@@ -5,5 +5,6 @@ declare const ForwardRefDropdown: React.ForwardRefExoticComponent<DropdownProps
|
|
|
5
5
|
declare const DropdownComponent: typeof ForwardRefDropdown & {
|
|
6
6
|
Button: typeof Button;
|
|
7
7
|
};
|
|
8
|
+
export { Button as DropdownButton };
|
|
8
9
|
export default DropdownComponent;
|
|
9
10
|
export type { DropdownProps };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
2
|
import { JSX } from 'react/jsx-runtime';
|
|
3
|
-
|
|
3
|
+
declare function IconUiCheck(props: JSX.IntrinsicAttributes & SVGProps<SVGSVGElement>): import("react/jsx-dev-runtime").JSX.Element;
|
|
4
|
+
export default IconUiCheck;
|
package/types/form/useForm.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { FormInstance, KeyType } from './interface';
|
|
2
2
|
export declare function getFormInstance<FormData = any, FieldValue = FormData[keyof FormData], FieldKey extends KeyType = keyof FormData>(): FormInstance<FormData, FieldValue, FieldKey>;
|
|
3
|
-
|
|
3
|
+
declare function useForm<FormData = any, FieldValue = FormData[keyof FormData], FieldKey extends KeyType = keyof FormData>(form?: FormInstance<FormData, FieldValue, FieldKey>): [FormInstance<FormData, FieldValue, FieldKey>];
|
|
4
|
+
export default useForm;
|
|
@@ -6,4 +6,5 @@ export interface IconfontOptions {
|
|
|
6
6
|
[key: string]: any;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
declare function addFromIconFontCn(options?: IconfontOptions): React.FC<IconProps & React.RefAttributes<unknown>>;
|
|
10
|
+
export default addFromIconFontCn;
|
package/types/icon/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { CSSProperties, SVGAttributes } from 'react';
|
|
2
|
+
import addFromIconFontCn from './addFromIconFontCn';
|
|
2
3
|
export interface IconProps extends Omit<SVGAttributes<SVGElement>, 'className'> {
|
|
3
4
|
style?: CSSProperties;
|
|
4
5
|
type?: string;
|
|
@@ -14,4 +15,5 @@ export interface CustomIconComponentProps {
|
|
|
14
15
|
viewBox?: string;
|
|
15
16
|
}
|
|
16
17
|
declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<unknown>>;
|
|
18
|
+
export { addFromIconFontCn };
|
|
17
19
|
export default Icon;
|
package/types/image/Image.d.ts
CHANGED
package/types/image/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare function getFixTranslate(wrapperRect: DOMRect, imgRect: DOMRect, translateX: number, translateY: number, scale: number): [number, number];
|
|
2
|
+
export default getFixTranslate;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
type ImageStatusType = 'beforeLoad' | 'loading' | 'error' | 'loaded' | 'lazyload';
|
|
2
|
-
|
|
2
|
+
declare function useImageStatus(defaultValue: ImageStatusType): {
|
|
3
3
|
status: ImageStatusType;
|
|
4
4
|
isBeforeLoad: boolean;
|
|
5
5
|
isLoading: boolean;
|
|
@@ -8,4 +8,4 @@ export default function useImageStatus(defaultValue: ImageStatusType): {
|
|
|
8
8
|
isLazyLoad: boolean;
|
|
9
9
|
setStatus: import("react").Dispatch<import("react").SetStateAction<ImageStatusType>>;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export default useImageStatus;
|
|
@@ -4,5 +4,5 @@ interface ShowFooterProps {
|
|
|
4
4
|
description: ImageProps['description'];
|
|
5
5
|
actions: ImageProps['actions'];
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
export
|
|
7
|
+
declare function useShowFooter(props: ShowFooterProps): (string | number | undefined)[];
|
|
8
|
+
export default useShowFooter;
|
package/types/index.d.ts
CHANGED
|
@@ -18,22 +18,12 @@ export { default as Copy } from "./copy";
|
|
|
18
18
|
export { default as Descriptions } from "./descriptions";
|
|
19
19
|
export { default as Divider } from "./divider";
|
|
20
20
|
export { default as Drawer } from "./drawer";
|
|
21
|
-
export { default as Dropdown } from "./dropdown";
|
|
22
21
|
export { default as Empty } from "./empty";
|
|
23
|
-
export { default as Form } from "./form";
|
|
24
|
-
export { default as Icon } from "./icon";
|
|
25
|
-
export { default as Image } from "./image";
|
|
26
|
-
export { default as Input } from "./input";
|
|
27
22
|
export { default as InputNumber } from "./input-number";
|
|
28
23
|
export { default as InputTag } from "./input-tag";
|
|
29
|
-
export { default as Layout } from "./layout";
|
|
30
24
|
export { default as Link } from "./link";
|
|
31
|
-
export { default as List } from "./list";
|
|
32
25
|
export { default as Mentions } from "./mentions";
|
|
33
|
-
export { default as Menu } from "./menu";
|
|
34
|
-
export { default as Message } from "./message";
|
|
35
26
|
export { default as Modal } from "./modal";
|
|
36
|
-
export { default as Notification } from "./notification";
|
|
37
27
|
export { default as PageHeader } from "./page-header";
|
|
38
28
|
export { default as Pagination } from "./pagination";
|
|
39
29
|
export { default as Popconfirm } from "./popconfirm";
|
|
@@ -43,31 +33,19 @@ export { default as Progress } from "./progress";
|
|
|
43
33
|
export { default as ColorPicker } from "./color-picker";
|
|
44
34
|
export { default as IconHover } from "./icon-hover";
|
|
45
35
|
export { default as Loading } from "./loading";
|
|
46
|
-
export { default as Radio } from "./radio";
|
|
47
36
|
export { default as Rate } from "./rate";
|
|
48
|
-
export { default as ResizeBox } from "./resize-box";
|
|
49
37
|
export { default as Result } from "./result";
|
|
50
|
-
export { default as Select } from "./select";
|
|
51
38
|
export { default as Skeleton } from "./skeleton";
|
|
52
39
|
export { default as Slider } from "./slider";
|
|
53
|
-
export { default as Space } from "./space";
|
|
54
40
|
export { default as SpeechSynthesis } from "./speech-synthesis";
|
|
55
41
|
export { default as Spin } from "./spin";
|
|
56
|
-
export { default as Statistic } from "./statistic";
|
|
57
|
-
export { default as Steps } from "./steps";
|
|
58
42
|
export { default as SuspenseFallbackTest } from "./suspense-fallback-test";
|
|
59
43
|
export { default as Switch } from "./switch";
|
|
60
|
-
export { default as Table } from "./table";
|
|
61
|
-
export { default as Tabs } from "./tabs";
|
|
62
44
|
export { default as Tag } from "./tag";
|
|
63
|
-
export { default as TimePicker } from "./time-picker";
|
|
64
|
-
export { default as Timeline } from "./timeline";
|
|
65
45
|
export { default as Tooltip } from "./tooltip";
|
|
66
46
|
export { default as Transfer } from "./transfer";
|
|
67
47
|
export { default as Tree } from "./tree";
|
|
68
|
-
export { default as TreeSelect } from "./tree-select";
|
|
69
48
|
export { default as Trigger } from "./trigger";
|
|
70
|
-
export { default as Typography } from "./typography";
|
|
71
49
|
export { default as VerificationCode } from "./verification-code";
|
|
72
50
|
export { default as version } from "./version";
|
|
73
51
|
export { default as Watermark } from "./watermark";
|
|
@@ -82,5 +60,27 @@ export { default as Badge, COLORS as BadgeCOLORS, STATUS as BadgeSTATUS } from "
|
|
|
82
60
|
export { default as Button, ButtonGroup } from "./button";
|
|
83
61
|
export { ConfigConsumer, ConfigContext, default as ConfigProvider } from "./config-provider";
|
|
84
62
|
export { default as DatePicker, MonthPicker, QuarterPicker, RangePicker, WeekPicker, YearPicker } from "./date-picker";
|
|
63
|
+
export { default as Dropdown, DropdownButton } from "./dropdown";
|
|
64
|
+
export { default as Form, FormControl, FormItem, FormList, FormProvider, useForm, useFormContext, useFormState, useWatch } from "./form";
|
|
85
65
|
export { Col, default as Grid, GridItem, Row } from "./grid";
|
|
86
|
-
export {
|
|
66
|
+
export { addFromIconFontCn, default as Icon } from "./icon";
|
|
67
|
+
export { default as Image, ImagePreview, ImagePreviewGroup } from "./image";
|
|
68
|
+
export { default as Input, InputGroup, InputPassword, InputSearch, InputTextArea } from "./input";
|
|
69
|
+
export { default as Layout, LayoutContent, LayoutFooter, LayoutHeader, LayoutSider } from "./layout";
|
|
70
|
+
export { default as List, ListItem } from "./list";
|
|
71
|
+
export { default as Menu, MenuItem, MenuItemGroup, MenuSubMenu, SubMenu } from "./menu";
|
|
72
|
+
export { default as Message, useMessage } from "./message";
|
|
73
|
+
export { default as Notification, useNotification } from "./notification";
|
|
74
|
+
export { default as Radio, RadioGroup, RadioGroupContext } from "./radio";
|
|
75
|
+
export { default as ResizeBox, ResizeBoxSplit, ResizeBoxSplitGroup } from "./resize-box";
|
|
76
|
+
export { default as Select, SelectOption, SelectOptionGroup } from "./select";
|
|
77
|
+
export { default as Space, SpaceVertical } from "./space";
|
|
78
|
+
export { default as Statistic, StatisticCountdown } from "./statistic";
|
|
79
|
+
export { default as Steps, StepsItem, StepsStep } from "./steps";
|
|
80
|
+
export { default as Table, TableSummary, TableSummaryCell, TableSummaryRow } from "./table";
|
|
81
|
+
export { default as Tabs, TabsItemPane, TabsTabPane } from "./tabs";
|
|
82
|
+
export { default as TimePicker, TimeRangePicker } from "./time-picker";
|
|
83
|
+
export { default as Timeline, TimelineItem } from "./timeline";
|
|
84
|
+
export { default as TreeSelect, TreeSelectTreeNode } from "./tree-select";
|
|
85
|
+
export { default as Typography, TypographyEllipsis, TypographyParagraph, TypographyText, TypographyTitle } from "./typography";
|
|
86
|
+
export { default as Upload, UploadList, UploadSTATUS } from "./upload";
|
package/types/input/Input.d.ts
CHANGED
|
@@ -20,4 +20,5 @@ type InputRefType = ForwardRefExoticComponent<InputProps & React.RefAttributes<R
|
|
|
20
20
|
};
|
|
21
21
|
declare const InputElement: InputRefType;
|
|
22
22
|
export type InputRef = InputRefType;
|
|
23
|
+
export { Group as InputGroup, InputNumber, Password as InputPassword, Search as InputSearch, InputTag, TextArea as InputTextArea, };
|
|
23
24
|
export default InputElement;
|
package/types/input/index.d.ts
CHANGED
|
@@ -4,4 +4,5 @@ import { InputPasswordProps } from './Password';
|
|
|
4
4
|
import { InputSearchProps } from './Search';
|
|
5
5
|
import { RefTextAreaType } from './Textarea';
|
|
6
6
|
export type { InputPasswordProps, InputProps, InputSearchProps, RefInputType, RefTextAreaType, TextAreaProps, };
|
|
7
|
+
export * from './Input';
|
|
7
8
|
export default Input;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeEventHandler, CompositionEventHandler, KeyboardEventHandler } from 'react';
|
|
2
2
|
import type { InputProps, TextAreaProps } from './interface';
|
|
3
|
-
|
|
3
|
+
declare function useComposition({ value, maxLength, onChange, onKeyDown, onPressEnter, beforeTriggerValueChangeCallback, normalizeHandler, }: {
|
|
4
4
|
value: string;
|
|
5
5
|
maxLength: number;
|
|
6
6
|
onChange: InputProps['onChange'];
|
|
@@ -15,3 +15,4 @@ export default function useComposition({ value, maxLength, onChange, onKeyDown,
|
|
|
15
15
|
valueChangeHandler: ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
16
16
|
keyDownHandler: KeyboardEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
17
17
|
};
|
|
18
|
+
export default useComposition;
|
package/types/layout/index.d.ts
CHANGED
package/types/list/index.d.ts
CHANGED
package/types/menu/Indent.d.ts
CHANGED
package/types/menu/Menu.d.ts
CHANGED
|
@@ -9,5 +9,6 @@ declare const MenuComponent: typeof ForwardRefMenu & {
|
|
|
9
9
|
SubMenu: typeof SubMenu;
|
|
10
10
|
__PQB_MENU__: boolean;
|
|
11
11
|
};
|
|
12
|
+
export { Item as MenuItem, ItemGroup as MenuItemGroup, SubMenu as MenuSubMenu, SubMenu, };
|
|
12
13
|
export default MenuComponent;
|
|
13
14
|
export type { MenuItemGroupProps, MenuItemProps, MenuProps, MenuSubMenuProps, } from './interface';
|
package/types/menu/index.d.ts
CHANGED
package/types/message/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { JSX } from 'react/jsx-runtime';
|
|
|
2
2
|
import NotificationBase from '../notification-base';
|
|
3
3
|
import type { MessageProps } from './interface';
|
|
4
4
|
import { MessageHookReturnType } from './interface';
|
|
5
|
+
import useMessage from './useMessage';
|
|
5
6
|
export type ConfigProps = {
|
|
6
7
|
maxCount?: number;
|
|
7
8
|
prefixCls?: string;
|
|
@@ -28,5 +29,6 @@ declare class Message extends NotificationBase {
|
|
|
28
29
|
remove: (id: string) => void;
|
|
29
30
|
render(): import("react/jsx-dev-runtime").JSX.Element;
|
|
30
31
|
}
|
|
32
|
+
export { useMessage };
|
|
31
33
|
export default Message;
|
|
32
34
|
export { MessageProps };
|
|
@@ -3,6 +3,7 @@ import { JSX } from 'react/jsx-runtime';
|
|
|
3
3
|
import NotificationBase from '../notification-base';
|
|
4
4
|
import type { NotificationProps } from './interface';
|
|
5
5
|
import { NotificationHookReturnType } from './interface';
|
|
6
|
+
import useNotification from './useNotification';
|
|
6
7
|
export type ConfigProps = {
|
|
7
8
|
maxCount?: number;
|
|
8
9
|
prefixCls?: string;
|
|
@@ -24,5 +25,6 @@ declare class Notification extends NotificationBase {
|
|
|
24
25
|
remove: (id: string) => void;
|
|
25
26
|
render(): import("react/jsx-dev-runtime").JSX.Element;
|
|
26
27
|
}
|
|
28
|
+
export { useNotification };
|
|
27
29
|
export default Notification;
|
|
28
30
|
export { NotificationProps };
|
|
@@ -6,5 +6,5 @@ interface OverflowItemProps {
|
|
|
6
6
|
hidden?: boolean;
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
export
|
|
9
|
+
declare function OverflowItem(props: OverflowItemProps): import("react/jsx-dev-runtime").JSX.Element;
|
|
10
|
+
export default OverflowItem;
|
|
@@ -7,5 +7,5 @@ interface OverflowEllipsisProps {
|
|
|
7
7
|
ellipsisCount: number;
|
|
8
8
|
}) => ReactNode;
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
export
|
|
10
|
+
declare function OverflowEllipsis(props: OverflowEllipsisProps): import("react/jsx-dev-runtime").JSX.Element;
|
|
11
|
+
export default OverflowEllipsis;
|
package/types/radio/Radio.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import Group, { RadioGroupContext } from './Group';
|
|
2
3
|
import type { RadioProps } from './interface';
|
|
3
4
|
declare function Radio(baseProps: RadioProps): import("react/jsx-dev-runtime").JSX.Element;
|
|
4
5
|
declare namespace Radio {
|
|
@@ -7,5 +8,6 @@ declare namespace Radio {
|
|
|
7
8
|
var Group: typeof import("./Group").default;
|
|
8
9
|
var GroupContext: React.Context<import("./interface").RadioGroupContextProps>;
|
|
9
10
|
}
|
|
11
|
+
export { Group as RadioGroup, RadioGroupContext };
|
|
10
12
|
export default Radio;
|
|
11
13
|
export type { RadioProps };
|
package/types/radio/index.d.ts
CHANGED
|
@@ -21,4 +21,5 @@ export interface ResizeTriggerProps {
|
|
|
21
21
|
};
|
|
22
22
|
renderChildren?: (prev: ReactNode, trigger: ReactNode, next: ReactNode) => ReactNode;
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
declare function ResizeTrigger(props: PropsWithChildren<ResizeTriggerProps>): import("react/jsx-dev-runtime").JSX.Element;
|
|
25
|
+
export default ResizeTrigger;
|
|
@@ -9,5 +9,6 @@ declare const ResizeBoxComponent: typeof ForwardRefResizeBox & {
|
|
|
9
9
|
Split: typeof Split;
|
|
10
10
|
SplitGroup: typeof SplitGroup;
|
|
11
11
|
};
|
|
12
|
+
export { Split as ResizeBoxSplit, SplitGroup as ResizeBoxSplitGroup };
|
|
12
13
|
export default ResizeBoxComponent;
|
|
13
14
|
export type { ResizeBoxProps };
|
package/types/result/403.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare function Image403(): import("react/jsx-dev-runtime").JSX.Element;
|
|
2
|
+
export default Image403;
|
package/types/result/404.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare function Image404(): import("react/jsx-dev-runtime").JSX.Element;
|
|
2
|
+
export default Image404;
|
package/types/result/500.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare function Image500(): import("react/jsx-dev-runtime").JSX.Element;
|
|
2
|
+
export default Image500;
|
package/types/select/Select.d.ts
CHANGED
package/types/select/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import type { SkeletonImageProps } from './interface';
|
|
2
|
-
|
|
2
|
+
declare function image(props: SkeletonImageProps): import("react/jsx-dev-runtime").JSX.Element;
|
|
3
|
+
export default image;
|
package/types/skeleton/Text.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import type { SkeletonTextProps } from './interface';
|
|
2
|
-
|
|
2
|
+
declare function text(props: SkeletonTextProps): import("react/jsx-dev-runtime").JSX.Element;
|
|
3
|
+
export default text;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IntervalConfig } from './useInterval';
|
|
2
|
-
|
|
2
|
+
declare function useLegalValue(props: {
|
|
3
3
|
isRange: boolean;
|
|
4
4
|
min: number;
|
|
5
5
|
max: number;
|
|
@@ -13,3 +13,4 @@ export default function useLegalValue(props: {
|
|
|
13
13
|
isLegalValue: (val: any) => boolean;
|
|
14
14
|
getNextMarkValue: (value: number, type: "addition" | "subtraction") => any;
|
|
15
15
|
};
|
|
16
|
+
export default useLegalValue;
|
package/types/space/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { SpaceProps, SpaceSize } from './interface';
|
|
3
3
|
declare const SpaceComponent: React.ForwardRefExoticComponent<SpaceProps & React.RefAttributes<unknown>>;
|
|
4
|
+
declare function SpaceVertical(props: SpaceProps, ref: any): import("react/jsx-dev-runtime").JSX.Element;
|
|
5
|
+
export { SpaceVertical };
|
|
4
6
|
export default SpaceComponent;
|
|
5
7
|
export type { SpaceProps, SpaceSize };
|
package/types/space/toArray.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare function toArray(children: any): never[];
|
|
2
|
+
export default toArray;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export default
|
|
1
|
+
export default SpeechSynthesis;
|
|
2
|
+
declare function SpeechSynthesis(props: any): import("react/jsx-dev-runtime").JSX.Element | undefined;
|
|
@@ -2,4 +2,5 @@ import { CSSProperties } from 'react';
|
|
|
2
2
|
export interface DotProps {
|
|
3
3
|
size?: CSSProperties['fontSize'];
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
declare function DotLoading(props: DotProps): import("react/jsx-dev-runtime").JSX.Element;
|
|
6
|
+
export default DotLoading;
|
|
@@ -4,5 +4,6 @@ declare const ForwardRefStatistic: import("react").ForwardRefExoticComponent<Sta
|
|
|
4
4
|
declare const StatisticComponent: typeof ForwardRefStatistic & {
|
|
5
5
|
Countdown: typeof Countdown;
|
|
6
6
|
};
|
|
7
|
+
export { Countdown as StatisticCountdown };
|
|
7
8
|
export default StatisticComponent;
|
|
8
9
|
export { StatisticProps };
|
package/types/steps/index.d.ts
CHANGED
|
@@ -5,5 +5,6 @@ declare const ForwardRefSteps: React.ForwardRefExoticComponent<StepsProps & Reac
|
|
|
5
5
|
declare const StepsComponent: typeof ForwardRefSteps & {
|
|
6
6
|
Step: typeof Step;
|
|
7
7
|
};
|
|
8
|
+
export { Step as StepsItem, Step as StepsStep };
|
|
8
9
|
export default StepsComponent;
|
|
9
10
|
export type { StepsProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from '../../table/interface';
|
|
2
|
-
|
|
2
|
+
declare function useComponent(component: ComponentProps): {
|
|
3
3
|
getHeaderComponentOperations: ((nodes: {
|
|
4
4
|
selectionNode?: import("react").ReactNode;
|
|
5
5
|
expandNode?: import("react").ReactNode;
|
|
@@ -28,3 +28,4 @@ export default function useComponent(component: ComponentProps): {
|
|
|
28
28
|
ComponentTd: any;
|
|
29
29
|
ComponentBodyCell: any;
|
|
30
30
|
};
|
|
31
|
+
export default useComponent;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { Key } from 'react';
|
|
2
2
|
import { GetRowKeyType, TableProps } from '../../table/interface';
|
|
3
|
-
|
|
3
|
+
declare function useExpand<T>(props: TableProps<T>, flattenData: any, getRowKey: GetRowKeyType<T>): [Key[], (key: Key) => void];
|
|
4
|
+
export default useExpand;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Key } from 'react';
|
|
2
2
|
import { GetRowKeyType, TableProps } from '../../table/interface';
|
|
3
|
-
|
|
3
|
+
declare function useRowSelection<T>(props: TableProps<T>, pageData: any, data: any, getRowKey: GetRowKeyType<T>): {
|
|
4
4
|
selectedRowKeys: Key[];
|
|
5
5
|
indeterminateKeys: Key[];
|
|
6
6
|
onCheckAll: (checked: any) => void;
|
|
@@ -10,3 +10,4 @@ export default function useRowSelection<T>(props: TableProps<T>, pageData: any,
|
|
|
10
10
|
allSelectedRowKeys: Key[];
|
|
11
11
|
flattenData: T[];
|
|
12
12
|
};
|
|
13
|
+
export default useRowSelection;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { SorterInfo } from '../interface';
|
|
2
|
-
|
|
2
|
+
declare function useSorter(flattenColumns: any, defaultSorters: any): {
|
|
3
3
|
currentSorter: SorterInfo;
|
|
4
4
|
activeSorters: SorterInfo[];
|
|
5
5
|
getNextActiveSorters: (sorter: SorterInfo) => SorterInfo[];
|
|
6
6
|
updateStateSorters: (sorter: SorterInfo, nextActiveSorters: SorterInfo[]) => void;
|
|
7
7
|
};
|
|
8
|
+
export default useSorter;
|
package/types/table/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import Table from './Table';
|
|
2
|
-
import Summary from './summary';
|
|
2
|
+
import Summary, { SummaryCell, SummaryRow } from './summary';
|
|
3
3
|
declare const TableComponent: typeof Table & {
|
|
4
4
|
Summary: typeof Summary;
|
|
5
5
|
};
|
|
6
|
+
export { Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, };
|
|
6
7
|
export default TableComponent;
|
|
7
8
|
export type { ColumnProps, ExpandProps, RowSelectionProps, TableProps, } from './interface';
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { SummaryProps } from '../../table/interface';
|
|
3
|
+
import Cell from './Cell';
|
|
4
|
+
import Row from './Row';
|
|
3
5
|
declare function Summary(props: SummaryProps): ReactElement;
|
|
4
6
|
declare namespace Summary {
|
|
5
7
|
var Row: typeof import("./Row").default;
|
|
6
8
|
var Cell: typeof import("./Cell").default;
|
|
7
9
|
}
|
|
10
|
+
export { Cell as SummaryCell, Row as SummaryRow };
|
|
8
11
|
export default Summary;
|
package/types/tabs/Tab.d.ts
CHANGED
|
@@ -15,5 +15,6 @@ declare const ForwardRefTabs: React.ForwardRefExoticComponent<TabsProps & {
|
|
|
15
15
|
declare const TabsComponent: typeof ForwardRefTabs & {
|
|
16
16
|
TabPane: typeof TabPane;
|
|
17
17
|
};
|
|
18
|
+
export { TabPane as TabsItemPane, TabPane as TabsTabPane };
|
|
18
19
|
export default TabsComponent;
|
|
19
20
|
export type { TabsProps };
|
|
@@ -5,5 +5,5 @@ interface TabContentProps extends Pick<TabsProps, 'animation' | 'activeTab' | 'd
|
|
|
5
5
|
prefixCls: string | undefined;
|
|
6
6
|
paneChildren: ReactElement<TabPaneProps, TabPaneType>[];
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
export
|
|
8
|
+
declare function TabContent(props: TabContentProps): import("react/jsx-dev-runtime").JSX.Element | null;
|
|
9
|
+
export default TabContent;
|
|
@@ -4,8 +4,9 @@ export type ReturnType = {
|
|
|
4
4
|
width: number;
|
|
5
5
|
domRect?: DOMRect;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
declare function DomSize<T extends HTMLElement>(): [
|
|
8
8
|
MutableRefObject<T>,
|
|
9
9
|
ReturnType,
|
|
10
10
|
React.Dispatch<React.SetStateAction<ReturnType>>
|
|
11
11
|
];
|
|
12
|
+
export default DomSize;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MutableRefObject } from 'react';
|
|
2
|
-
|
|
2
|
+
declare function useHeaderScroll<T extends HTMLElement>(props: {
|
|
3
3
|
headerWrapperRef: MutableRefObject<T | undefined>;
|
|
4
4
|
headerOffset: number;
|
|
5
5
|
align: 'left' | 'right';
|
|
@@ -7,3 +7,4 @@ export default function useHeaderScroll<T extends HTMLElement>(props: {
|
|
|
7
7
|
isScrollable: boolean;
|
|
8
8
|
onScroll: (offset: number) => void | boolean;
|
|
9
9
|
}): void;
|
|
10
|
+
export default useHeaderScroll;
|
package/types/tabs/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare function DropdownIcon(props: any): import("react/jsx-dev-runtime").JSX.Element | null;
|
|
2
|
+
export default DropdownIcon;
|
|
@@ -13,5 +13,5 @@ export interface TimeColumnProps {
|
|
|
13
13
|
popupVisible?: boolean;
|
|
14
14
|
scrollSticky?: boolean;
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
export
|
|
16
|
+
declare function TimeColumn(props: TimeColumnProps): import("react/jsx-dev-runtime").JSX.Element;
|
|
17
|
+
export default TimeColumn;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { RangePickerProps, TimePickerDecorator, TimePickerProps } from './interface';
|
|
2
|
+
declare const RangePicker: {
|
|
3
|
+
(props: RangePickerProps): import("react/jsx-dev-runtime").JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
export { RangePicker as TimeRangePicker };
|
|
2
7
|
declare const _default: TimePickerDecorator;
|
|
3
8
|
export default _default;
|
|
4
9
|
export type { TimePickerProps, RangePickerProps as TimeRangePickerProps };
|
|
@@ -7,5 +7,6 @@ declare const ForwardRefTimeline: React.ForwardRefExoticComponent<TimelineProps
|
|
|
7
7
|
declare const TimelineComponent: typeof ForwardRefTimeline & {
|
|
8
8
|
Item: typeof Item;
|
|
9
9
|
};
|
|
10
|
+
export { Item as TimelineItem };
|
|
10
11
|
export default TimelineComponent;
|
|
11
12
|
export type { TimelineProps };
|