@unicom-cloud/ui 0.8.61 → 0.8.63
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 +44 -40
- package/Anchor.js +1 -1
- package/AutoComplete.js +4 -4
- package/Avatar.js +1 -1
- package/BackTop.js +7 -7
- package/Badge.js +2 -2
- package/Breadcrumb.js +22 -22
- package/Button.js +2 -2
- package/Calendar.js +106 -104
- package/Card.js +1 -1
- package/Carousel.js +34 -33
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +12 -12
- package/Comment.js +1 -1
- package/ConfigProvider.js +2 -2
- package/Copy.js +16 -16
- package/DatePicker.js +1021 -1008
- package/Descriptions.js +10 -10
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Drawer.js +1 -1
- package/Dropdown.js +9 -9
- package/Empty.js +2 -2
- package/Form.js +60 -54
- package/Grid.js +2 -2
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/Input.js +1 -1
- package/InputNumber.js +6 -6
- package/InputTag.js +1 -1
- package/Layout.js +2 -2
- package/Link.js +14 -14
- package/List.js +3 -3
- package/Mentions.js +3 -3
- package/Menu.js +1 -1
- package/Message.js +2 -2
- package/Modal.js +1 -1
- package/Notice.js +9 -3
- package/Notification.js +2 -2
- package/OverflowEllipsis.js +32 -32
- package/PageHeader.js +23 -22
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +7 -7
- package/Popover.js +1 -1
- package/Progress.js +14 -14
- package/Radio.js +2 -2
- package/Rate.js +43 -40
- package/ResizeBox.js +97 -96
- package/Result.js +15 -15
- package/Select.js +1 -1
- package/SelectView.js +295 -249
- package/Skeleton.js +1 -1
- package/Slider.js +25 -25
- package/Space.js +32 -32
- package/SpeechSynthesis.js +32 -29
- package/Spin.js +2 -2
- package/Statistic.js +1 -1
- package/Steps.js +11 -11
- package/Switch.js +3 -3
- package/Table.js +9 -9
- package/Tabs.js +1 -1
- package/Tag.js +68 -67
- package/TimePicker.js +17 -17
- package/Timeline.js +1 -1
- package/Tooltip.js +1 -1
- package/Transfer.js +47 -46
- package/Tree.js +2 -2
- package/TreeSelect.js +1 -1
- package/Trigger.js +3 -3
- package/Typography.js +1 -1
- package/Upload.js +2 -2
- package/VerificationCode.js +1 -1
- package/Version.js +1 -1
- package/Watermark.js +1 -1
- package/chunk/{DhBo0pPJ.js → B5gIo-hD.js} +119 -118
- package/chunk/{eK7lxdak.js → B9w_puFP.js} +8 -8
- package/chunk/{RMBPs_Ry.js → BEB_A9eY.js} +4 -3
- package/chunk/{CuOl4X0X.js → BLLKKgZJ.js} +1 -1
- package/chunk/{cZiP8FvM.js → BcwdVUDs.js} +1 -1
- package/chunk/{C1xMmQIZ.js → BmO1y0vr.js} +34 -34
- package/chunk/{DmUhn9ib.js → Bn2-vqTg.js} +54 -53
- package/chunk/{Kbr6FzOG.js → BnLshM9R.js} +210 -186
- package/chunk/{BJ_7JTqC.js → BoDdbbF_.js} +1 -1
- package/chunk/BsWphzcT.js +20 -0
- package/chunk/{Bdh4XVuf.js → C5S_amaH.js} +290 -281
- package/chunk/{YIlBPVAs.js → C6Zb_-OE.js} +1 -1
- package/chunk/{CbiWdbr_.js → CAxIyiy6.js} +35 -34
- package/chunk/CD7dGcUa.js +376 -0
- package/chunk/{BPZ-6HKJ.js → CLBavO5c.js} +24 -22
- package/chunk/{B2vORJQ8.js → CZ1wrD_H.js} +13 -13
- package/chunk/{DpfUGhi4.js → CfTcP6nF.js} +288 -283
- package/chunk/{BNHrEI0Y.js → CfZWOhnc.js} +52 -48
- package/chunk/{BjSHZA0m.js → CgDayZDE.js} +1 -1
- package/chunk/{BYhtrDV3.js → Co3idurS.js} +152 -148
- package/chunk/{BBVjSFnw.js → Cqyp4qni.js} +23 -19
- package/chunk/{Cbd50gx8.js → CvlD3aiv.js} +33 -33
- package/chunk/{IooeSKJJ.js → D3dcFbex.js} +19 -19
- package/chunk/{C5AQWbC4.js → DDDuw0Zi.js} +1 -1
- package/chunk/{gIbzjQ-X.js → DXZ8-ha7.js} +2 -2
- package/chunk/{C1D7T29r.js → DbLgopUR.js} +83 -76
- package/chunk/{BVLwPZis.js → DbPYtS7-.js} +31 -30
- package/chunk/{V6euPXVB.js → Dk6hL04k.js} +257 -251
- package/chunk/{BEDYCG-I.js → Dpzgtdt-.js} +18 -18
- package/chunk/{B16KHtX-.js → JpKOcIfl.js} +191 -185
- package/chunk/{D2HkyI6A.js → QFkhCtUr.js} +11 -11
- package/chunk/aqSmxUbY.js +116 -0
- package/chunk/{DSGRHf-1.js → rlfmXePI.js} +157 -156
- package/hooks/useMergeValue.js +1 -1
- package/icons.js +4 -6001
- package/index.js +439 -393
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/locale/zh-CN.js +8 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/cascader/panel/Search.d.ts +1 -1
- package/types/color-picker/hooks/useColorPicker.d.ts +3 -8
- package/types/config-provider/interface.d.ts +1 -1
- package/types/date-picker/index.d.ts +7 -0
- package/types/form/interface.d.ts +1 -1
- package/types/index.d.ts +3 -3
- package/types/locale/interface.d.ts +1 -0
- package/types/locale/zh-CN.d.ts +14 -0
- package/types/message/index.d.ts +2 -2
- package/types/notification/index.d.ts +2 -2
- package/types/notification-base/index.d.ts +2 -2
- package/types/select/interface.d.ts +1 -0
- package/types/select-view/interface.d.ts +1 -0
- package/types/space/index.d.ts +2 -1
- package/types/tree/Context.d.ts +1 -0
- package/types/tree/Tree.d.ts +1 -1
- package/types/tree/index.d.ts +5 -4
- package/types/tree/interface.d.ts +1 -0
- package/types/utils/index.d.ts +1 -0
- package/types/utils/is.d.ts +2 -0
- package/types/utils/lodash.d.ts +14 -1
- package/types/verification-code/VerificationCode.d.ts +2 -1
- package/types/version/index.d.ts +1 -1
- package/utils/CSSTransition.js +1 -1
- package/utils/caseName.js +2 -18
- package/utils/contextHolder.js +1 -1
- package/utils/dayjs.js +50 -49
- package/utils/index.js +227 -185
- package/utils/is.js +125 -111
- package/utils/lodash.js +32 -6
- package/utils/reactDOM.js +1 -1
- package/chunk/-LZOUh53.js +0 -29
- package/chunk/-jdfq71f.js +0 -23
- package/chunk/B0GOLsj_.js +0 -58
- package/chunk/B7Zsp3gO.js +0 -29
- package/chunk/BDjXkzNj.js +0 -23
- package/chunk/BHn4xgbv.js +0 -209
- package/chunk/BLSiP_gg.js +0 -32
- package/chunk/BMJfSSLX.js +0 -23
- package/chunk/B_nfMl0e.js +0 -116
- package/chunk/BcS17Pzy.js +0 -66
- package/chunk/BdiEwtQO.js +0 -41
- package/chunk/Bpug_KxP.js +0 -34
- package/chunk/C1u_ckwU.js +0 -29
- package/chunk/C43Hv2Bl.js +0 -34
- package/chunk/C9vsih_D.js +0 -29
- package/chunk/CAfR2wLq.js +0 -41
- package/chunk/CAfecMDF.js +0 -46
- package/chunk/CKp4rZnD.js +0 -207
- package/chunk/CV2Aqv9q.js +0 -52
- package/chunk/CYdarMv9.js +0 -32
- package/chunk/C_S5Mdvd.js +0 -379
- package/chunk/CmB-TL7C.js +0 -46
- package/chunk/D-ER56Sf.js +0 -29
- package/chunk/D-aYnb6u.js +0 -41
- package/chunk/D3xQFJcO.js +0 -23
- package/chunk/DJcEys80.js +0 -29
- package/chunk/DLIm6rRJ.js +0 -29
- package/chunk/DOWEHtqM.js +0 -41
- package/chunk/DT37l12z.js +0 -40
- package/chunk/DW-B7npC.js +0 -23
- package/chunk/D_MTFBb0.js +0 -38
- package/chunk/Dx_5J4fO.js +0 -29
- package/chunk/Dy487FZ1.js +0 -118
- package/chunk/Uz-rNulO.js +0 -98
- package/chunk/cDZI_t6o.js +0 -52
- package/chunk/sScV-J56.js +0 -206
- package/chunk/wI2I1qb0.js +0 -23
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { NodeProps } from '../../cascader/base/node';
|
|
3
3
|
import Store from '../../cascader/base/store';
|
|
4
|
-
import { CascaderProps,
|
|
4
|
+
import { CascaderProps, extraOptions, OptionProps } from '../interface';
|
|
5
5
|
export declare const getLegalIndex: (currentIndex: any, maxIndex: any) => any;
|
|
6
6
|
export type SearchPanelProps<T> = {
|
|
7
7
|
store?: Store<T>;
|
|
@@ -15,21 +15,16 @@ export declare const useColorPicker: (props: UseColorPickerProps) => {
|
|
|
15
15
|
popupVisible: boolean;
|
|
16
16
|
color: {
|
|
17
17
|
hsv: HSV;
|
|
18
|
-
rgb:
|
|
19
|
-
r: number;
|
|
20
|
-
g: number;
|
|
21
|
-
b: number;
|
|
22
|
-
a: number | undefined;
|
|
23
|
-
};
|
|
18
|
+
rgb: import("@unicom-cloud/tinycolor").Numberify<import("@unicom-cloud/tinycolor").RGBA>;
|
|
24
19
|
rgbString: string;
|
|
25
20
|
hex: string;
|
|
26
21
|
hexString: string;
|
|
27
22
|
hex8String: string;
|
|
28
23
|
string: string;
|
|
29
24
|
tiny: TinyColor;
|
|
30
|
-
alpha: number
|
|
25
|
+
alpha: number;
|
|
31
26
|
};
|
|
32
|
-
alpha: number
|
|
27
|
+
alpha: number;
|
|
33
28
|
onHsvChange: (_value: HSV) => void;
|
|
34
29
|
onAlphaChange: (_value: number) => void;
|
|
35
30
|
onVisibleChange: (newVisible: any) => void;
|
|
@@ -153,7 +153,7 @@ export interface ConfigProviderProps {
|
|
|
153
153
|
componentConfig?: ComponentConfig;
|
|
154
154
|
locale?: Locale;
|
|
155
155
|
theme?: ThemeConfig;
|
|
156
|
-
|
|
156
|
+
appearance?: 'light' | 'dark';
|
|
157
157
|
size?: 'mini' | 'small' | 'default' | 'large';
|
|
158
158
|
prefixCls?: string;
|
|
159
159
|
getPrefixCls?: (componentName: string, customPrefix?: string) => string;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { DatePickerDecorator, DatePickerProps, MonthPickerProps, QuarterPickerProps, RangePickerProps, WeekPickerProps, YearPickerProps } from './interface';
|
|
3
|
+
declare const MonthPicker: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
|
|
4
|
+
declare const YearPicker: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
|
|
5
|
+
declare const WeekPicker: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
|
|
6
|
+
declare const QuarterPicker: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
|
|
7
|
+
declare const RangePicker: React.ForwardRefExoticComponent<import("./interface").BaseRangePickerProps & import("..").Omit<import("./interface").PickerProps, "onChange" | "onSelect" | "onOk" | "inputProps" | "defaultPickerValue" | "pickerValue" | "onPickerValueChange"> & React.RefAttributes<import("./interface").RangePickerHandle>>;
|
|
8
|
+
export { MonthPicker, QuarterPicker, RangePicker, WeekPicker, YearPicker };
|
|
2
9
|
declare const _default: DatePickerDecorator;
|
|
3
10
|
export default _default;
|
|
4
11
|
export type { DatePickerProps, MonthPickerProps, QuarterPickerProps, RangePickerProps, WeekPickerProps, YearPickerProps, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Options as ScrollIntoViewOptions } from '@unicom-cloud/scroll-into-view-if-needed';
|
|
2
|
-
import { ValidateMessagesTemplateType } from '@unicom-cloud/
|
|
2
|
+
import type { ValidateMessagesTemplateType } from '@unicom-cloud/validate/types';
|
|
3
3
|
import React, { CSSProperties, FormHTMLAttributes, HTMLAttributes, ReactElement, ReactNode } from 'react';
|
|
4
4
|
import { JSX } from 'react/jsx-runtime';
|
|
5
5
|
import { ColProps } from '../grid/Col';
|
package/types/index.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ export { default as Checkbox } from "./checkbox";
|
|
|
15
15
|
export { default as Collapse } from "./collapse";
|
|
16
16
|
export { default as Comment } from "./comment";
|
|
17
17
|
export { default as Copy } from "./copy";
|
|
18
|
-
export { default as DatePicker } from "./date-picker";
|
|
19
18
|
export { default as Descriptions } from "./descriptions";
|
|
20
19
|
export { default as Divider } from "./divider";
|
|
21
20
|
export { default as Drawer } from "./drawer";
|
|
@@ -73,14 +72,15 @@ export { default as VerificationCode } from "./verification-code";
|
|
|
73
72
|
export { default as version } from "./version";
|
|
74
73
|
export { default as Watermark } from "./watermark";
|
|
75
74
|
export { compute, default as computeScrollIntoView } from "@unicom-cloud/compute-scroll-into-view";
|
|
76
|
-
export { CSSTransition, ReplaceTransition, SwitchTransition, Transition, TransitionGroup
|
|
75
|
+
export { CSSTransition, ReplaceTransition, SwitchTransition, Transition, TransitionGroup } from "@unicom-cloud/react-transition-group";
|
|
77
76
|
export { default as scrollIntoView, default as scrollIntoViewIfNeeded } from "@unicom-cloud/scroll-into-view-if-needed";
|
|
78
|
-
export {
|
|
77
|
+
export { convertDecimalToHex, convertHexToDecimal, hslToRgb, hsvToRgb, numberInputToObject, parseIntFromHex, rgbaToArgbHex, rgbaToHex, rgbToHex, rgbToHsl, rgbToHsv, rgbToRgb, default as TinyColor } from "@unicom-cloud/tinycolor";
|
|
79
78
|
export { easing, default as tween } from "@unicom-cloud/tween";
|
|
80
79
|
export { v4 as uuid, v4 as uuidv4 } from "@unicom-cloud/uuid";
|
|
81
80
|
export { DefaultValidateMessage, Schema, default as validate } from "@unicom-cloud/validate";
|
|
82
81
|
export { default as Badge, COLORS as BadgeCOLORS, STATUS as BadgeSTATUS } from "./badge";
|
|
83
82
|
export { default as Button, ButtonGroup } from "./button";
|
|
84
83
|
export { ConfigConsumer, ConfigContext, default as ConfigProvider } from "./config-provider";
|
|
84
|
+
export { default as DatePicker, MonthPicker, QuarterPicker, RangePicker, WeekPicker, YearPicker } from "./date-picker";
|
|
85
85
|
export { Col, default as Grid, GridItem, Row } from "./grid";
|
|
86
86
|
export { default as Upload, UploadList, STATUS as UploadSTATUS } from "./upload";
|
package/types/locale/zh-CN.d.ts
CHANGED
|
@@ -15,6 +15,13 @@ declare const _default: {
|
|
|
15
15
|
week: string;
|
|
16
16
|
day: string;
|
|
17
17
|
};
|
|
18
|
+
quarter: {
|
|
19
|
+
q1: string;
|
|
20
|
+
q2: string;
|
|
21
|
+
q3: string;
|
|
22
|
+
q4: string;
|
|
23
|
+
format: string;
|
|
24
|
+
};
|
|
18
25
|
month: {
|
|
19
26
|
long: {
|
|
20
27
|
January: string;
|
|
@@ -82,6 +89,13 @@ declare const _default: {
|
|
|
82
89
|
week: string;
|
|
83
90
|
day: string;
|
|
84
91
|
};
|
|
92
|
+
quarter: {
|
|
93
|
+
q1: string;
|
|
94
|
+
q2: string;
|
|
95
|
+
q3: string;
|
|
96
|
+
q4: string;
|
|
97
|
+
format: string;
|
|
98
|
+
};
|
|
85
99
|
month: {
|
|
86
100
|
long: {
|
|
87
101
|
January: string;
|
package/types/message/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import NotificationBase from '../notification-base';
|
|
3
3
|
import type { MessageProps } from './interface';
|
|
4
4
|
import { MessageHookReturnType } from './interface';
|
|
5
5
|
export type ConfigProps = {
|
|
@@ -14,7 +14,7 @@ export interface MessageType {
|
|
|
14
14
|
(): void;
|
|
15
15
|
}
|
|
16
16
|
declare function addInstance(noticeProps: MessageProps): () => void;
|
|
17
|
-
declare class Message extends
|
|
17
|
+
declare class Message extends NotificationBase {
|
|
18
18
|
static useMessage: (config?: ConfigProps) => [MessageHookReturnType, JSX.Element];
|
|
19
19
|
static success: (config: MessageProps | string) => MessageType;
|
|
20
20
|
static info: (config: MessageProps | string) => MessageType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactInstance } from 'react';
|
|
2
2
|
import { JSX } from 'react/jsx-runtime';
|
|
3
|
-
import
|
|
3
|
+
import NotificationBase from '../notification-base';
|
|
4
4
|
import type { NotificationProps } from './interface';
|
|
5
5
|
import { NotificationHookReturnType } from './interface';
|
|
6
6
|
export type ConfigProps = {
|
|
@@ -10,7 +10,7 @@ export type ConfigProps = {
|
|
|
10
10
|
duration?: number;
|
|
11
11
|
rtl?: boolean;
|
|
12
12
|
};
|
|
13
|
-
declare class Notification extends
|
|
13
|
+
declare class Notification extends NotificationBase {
|
|
14
14
|
static useNotification: (config?: ConfigProps) => [NotificationHookReturnType, JSX.Element];
|
|
15
15
|
static success: (config: NotificationProps) => ReactInstance;
|
|
16
16
|
static info: (config: NotificationProps) => ReactInstance;
|
|
@@ -5,11 +5,11 @@ interface NotificationState {
|
|
|
5
5
|
}[];
|
|
6
6
|
position?: string;
|
|
7
7
|
}
|
|
8
|
-
declare class
|
|
8
|
+
declare class NotificationBase extends Component<any, NotificationState> {
|
|
9
9
|
constructor(props: any);
|
|
10
10
|
add: (noticeProps: any) => string;
|
|
11
11
|
update: (newNotice: any) => void;
|
|
12
12
|
remove(id: string): void;
|
|
13
13
|
clear: () => void;
|
|
14
14
|
}
|
|
15
|
-
export default
|
|
15
|
+
export default NotificationBase;
|
|
@@ -21,6 +21,7 @@ export interface SelectProps extends SelectViewCommonProps {
|
|
|
21
21
|
value?: string | string[] | number | number[] | LabeledValue | LabeledValue[];
|
|
22
22
|
inputValue?: string;
|
|
23
23
|
mode?: 'multiple' | 'tags';
|
|
24
|
+
allowCheckAll?: boolean;
|
|
24
25
|
options?: (string | number | {
|
|
25
26
|
label: ReactNode | string;
|
|
26
27
|
value: string | number;
|
|
@@ -22,6 +22,7 @@ export interface SelectViewCommonProps extends Pick<InputTagProps<unknown>, 'ani
|
|
|
22
22
|
maxTagCount?: number | 'responsive' | {
|
|
23
23
|
count: number | 'responsive';
|
|
24
24
|
render?: (invisibleTagCount: number) => ReactNode;
|
|
25
|
+
showPopover?: boolean;
|
|
25
26
|
};
|
|
26
27
|
prefix?: ReactNode;
|
|
27
28
|
suffixIcon?: ReactNode;
|
package/types/space/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { SpaceProps, SpaceSize } from './interface';
|
|
2
|
-
declare const SpaceComponent:
|
|
3
|
+
declare const SpaceComponent: React.ForwardRefExoticComponent<SpaceProps & React.RefAttributes<unknown>>;
|
|
3
4
|
export default SpaceComponent;
|
|
4
5
|
export type { SpaceProps, SpaceSize };
|
package/types/tree/Context.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare const TreeContext: import("react").Context<{
|
|
|
19
19
|
getNodeProps?: <T extends NodeProps | NodeProps[]>(nodes: T, dataSet?: any) => T;
|
|
20
20
|
getTreeState?: () => TreeState;
|
|
21
21
|
onExpandEnd?: (key: string) => void;
|
|
22
|
+
animation?: boolean;
|
|
22
23
|
onNodeDragStart?: (e: DragEvent<HTMLSpanElement>, nodeProps: NodeProps) => void;
|
|
23
24
|
onNodeDragEnd?: (e: DragEvent<HTMLSpanElement>, nodeProps: NodeProps) => void;
|
|
24
25
|
onNodeDragOver?: (e: DragEvent<HTMLSpanElement>, nodeProps: NodeProps, position: any) => void;
|
package/types/tree/Tree.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { NodeInstance, NodeProps, TreeDataType, TreeProps, TreeState } from
|
|
|
4
4
|
export type key2nodePropsType = {
|
|
5
5
|
[key: string]: TreeDataType;
|
|
6
6
|
};
|
|
7
|
-
declare const needMergeKeys: readonly ["style", "className", "height", "size", "blockNode", "autoExpandParent", "checkedStrategy", "fieldNames", "icons", "virtualListProps", "showLine", "selectable", "allowDrop", "actionOnClick"];
|
|
7
|
+
declare const needMergeKeys: readonly ["style", "className", "height", "size", "blockNode", "autoExpandParent", "checkedStrategy", "fieldNames", "icons", "virtualListProps", "showLine", "selectable", "allowDrop", "actionOnClick", "animation"];
|
|
8
8
|
type MergedPropsType = {
|
|
9
9
|
[key in (typeof needMergeKeys)[number]]?: TreeProps[key];
|
|
10
10
|
};
|
package/types/tree/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default Tree;
|
|
3
|
-
import type { TreeDataType } from './interface';
|
|
4
|
-
export type { TreeDataType, NodeProps as TreeNodeProps, TreeProps, } from './interface';
|
|
1
|
+
import { NodeProps, TreeDataType, TreeProps } from './interface';
|
|
5
2
|
export type key2nodePropsType = {
|
|
6
3
|
[key: string]: TreeDataType;
|
|
7
4
|
};
|
|
5
|
+
export type * from './interface';
|
|
6
|
+
export type { TreeDataType, NodeProps as TreeNodeProps, TreeProps };
|
|
7
|
+
export * from './Tree';
|
|
8
|
+
export { default } from './Tree';
|
package/types/utils/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './reactDOM';
|
|
|
14
14
|
export * from './responsiveObserve';
|
|
15
15
|
export * from './style';
|
|
16
16
|
export * from './type';
|
|
17
|
+
export { default as caseName } from './caseName';
|
|
17
18
|
export { default as className } from './className';
|
|
18
19
|
export { default as ContextHolderElement } from './contextHolder';
|
|
19
20
|
export { default as clipboardCopy, default as copy } from './copy';
|
package/types/utils/is.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Dayjs } from 'dayjs';
|
|
2
|
+
import { isAsyncMode, isConcurrentMode, isContextConsumer, isContextProvider, isElement, isForwardRef, isFragment, isLazy, isMemo, isPortal, isProfiler, isStrictMode, isSuspense, isValidElementType } from 'react-is';
|
|
2
3
|
export * from '@unicom-cloud/utils/is';
|
|
3
4
|
export declare function isNullOrUndefined(obj: any): boolean;
|
|
4
5
|
export declare function isEmptyReactNode(content: any, trim?: boolean): boolean;
|
|
@@ -12,3 +13,4 @@ export declare const isReact18: boolean;
|
|
|
12
13
|
export declare const isReact19: boolean;
|
|
13
14
|
export declare const isForwardRefReact: (object: any) => any;
|
|
14
15
|
export declare const supportRef: (element: any) => boolean;
|
|
16
|
+
export { isAsyncMode, isConcurrentMode, isContextConsumer, isContextProvider, isElement, isForwardRef, isFragment, isLazy, isMemo, isPortal, isProfiler, isStrictMode, isSuspense, isValidElementType, };
|
package/types/utils/lodash.d.ts
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
|
+
import camelCase from 'lodash/camelCase';
|
|
2
|
+
import capitalize from 'lodash/capitalize';
|
|
1
3
|
import cloneDeep from 'lodash/cloneDeep';
|
|
4
|
+
import debounce from 'lodash/debounce';
|
|
5
|
+
import get from 'lodash/get';
|
|
6
|
+
import has from 'lodash/has';
|
|
7
|
+
import kebabCase from 'lodash/kebabCase';
|
|
2
8
|
import merge from 'lodash/merge';
|
|
3
9
|
import mergeWith from 'lodash/mergeWith';
|
|
4
|
-
|
|
10
|
+
import set from 'lodash/set';
|
|
11
|
+
import setWith from 'lodash/setWith';
|
|
12
|
+
import snakeCase from 'lodash/snakeCase';
|
|
13
|
+
import startCase from 'lodash/startCase';
|
|
14
|
+
import throttle from 'lodash/throttle';
|
|
15
|
+
import uniq from 'lodash/uniq';
|
|
16
|
+
import upperFirst from 'lodash/upperFirst';
|
|
17
|
+
export { camelCase, capitalize, cloneDeep, debounce, get, has, kebabCase, merge, mergeWith, set, setWith, snakeCase, startCase, throttle, uniq, upperFirst, };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { VerificationCodeProps } from './interface';
|
|
2
3
|
export declare function VerificationCodeComponent(baseProps: VerificationCodeProps, _: any): import("react/jsx-dev-runtime").JSX.Element;
|
|
3
4
|
export declare namespace VerificationCodeComponent {
|
|
4
5
|
var displayName: string;
|
|
5
6
|
}
|
|
6
|
-
declare const VerificationCode:
|
|
7
|
+
declare const VerificationCode: React.ForwardRefExoticComponent<VerificationCodeProps & React.RefAttributes<unknown>>;
|
|
7
8
|
export default VerificationCode;
|
package/types/version/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "2.
|
|
1
|
+
export declare const version = "2.65.0";
|
|
2
2
|
export default version;
|
package/utils/CSSTransition.js
CHANGED
package/utils/caseName.js
CHANGED
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import s from "lodash/capitalize.js";
|
|
3
|
-
import f from "lodash/kebabCase.js";
|
|
4
|
-
import n from "lodash/snakeCase.js";
|
|
5
|
-
import C from "lodash/startCase.js";
|
|
6
|
-
import N from "lodash/upperFirst.js";
|
|
7
|
-
function x(m) {
|
|
8
|
-
const o = f(m), r = s(m), e = p(m), t = n(m), a = C(m), i = N(e);
|
|
9
|
-
return {
|
|
10
|
-
kebabCaseName: o,
|
|
11
|
-
capitalizeName: r,
|
|
12
|
-
camelCaseName: e,
|
|
13
|
-
snakeCaseName: t,
|
|
14
|
-
startCaseName: a,
|
|
15
|
-
ComponentCaseName: i
|
|
16
|
-
};
|
|
17
|
-
}
|
|
1
|
+
import { d as r } from "../chunk/BsWphzcT.js";
|
|
18
2
|
export {
|
|
19
|
-
|
|
3
|
+
r as default
|
|
20
4
|
};
|
package/utils/contextHolder.js
CHANGED
package/utils/dayjs.js
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
import
|
|
1
|
+
import u, { isDayjs as m } from "dayjs";
|
|
2
2
|
import x from "dayjs/plugin/advancedFormat";
|
|
3
3
|
import j from "dayjs/plugin/customParseFormat";
|
|
4
4
|
import $ from "dayjs/plugin/isBetween";
|
|
5
5
|
import F from "dayjs/plugin/quarterOfYear";
|
|
6
6
|
import Y from "dayjs/plugin/weekOfYear";
|
|
7
7
|
import k from "dayjs/plugin/weekYear";
|
|
8
|
-
import
|
|
8
|
+
import d from "lodash/isArray";
|
|
9
9
|
import O from "lodash/isUndefined";
|
|
10
|
-
|
|
11
|
-
n = function(r
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
function v(t, e, n) {
|
|
11
|
+
n = function(...r) {
|
|
12
|
+
const [s, a] = r;
|
|
13
|
+
if (m(s))
|
|
14
|
+
return s.clone();
|
|
15
|
+
const c = typeof a == "object" ? a : {};
|
|
16
|
+
return c.date = s, c.args = r, new e(c);
|
|
16
17
|
};
|
|
17
|
-
const o = e.prototype,
|
|
18
|
+
const o = e.prototype, i = o.$utils;
|
|
18
19
|
o.$utils = function() {
|
|
19
|
-
const r =
|
|
20
|
+
const r = i();
|
|
20
21
|
return r.i = m, r;
|
|
21
22
|
}, n.isDayjs = m;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const
|
|
23
|
+
}
|
|
24
|
+
u.extend(v);
|
|
25
|
+
u.extend(j);
|
|
26
|
+
u.extend($);
|
|
27
|
+
u.extend(Y);
|
|
28
|
+
u.extend(x);
|
|
29
|
+
u.extend(k);
|
|
30
|
+
u.extend(F);
|
|
31
|
+
const f = u, g = {
|
|
31
32
|
add(t, e, n) {
|
|
32
33
|
return t.add(e, n);
|
|
33
34
|
},
|
|
@@ -44,7 +45,7 @@ const a = c, y = {
|
|
|
44
45
|
return t.set(e, n);
|
|
45
46
|
},
|
|
46
47
|
isSameWeek(t, e, n, o) {
|
|
47
|
-
return t.locale({ ...
|
|
48
|
+
return t.locale({ ...f.Ls[o], weekStart: n }).isSame(e, "week");
|
|
48
49
|
}
|
|
49
50
|
}, A = {
|
|
50
51
|
year: 0,
|
|
@@ -71,11 +72,11 @@ const a = c, y = {
|
|
|
71
72
|
return M(e).formatToParts(n);
|
|
72
73
|
}, h = (t, e) => {
|
|
73
74
|
const n = S(t, e), o = [];
|
|
74
|
-
for (let
|
|
75
|
-
const { type: p, value: w } = n[
|
|
75
|
+
for (let y = 0; y < n.length; y += 1) {
|
|
76
|
+
const { type: p, value: w } = n[y], D = A[p];
|
|
76
77
|
D >= 0 && (o[D] = parseInt(w, 10));
|
|
77
78
|
}
|
|
78
|
-
const
|
|
79
|
+
const i = o[3], r = i === 24 ? 0 : i, s = Date.UTC(
|
|
79
80
|
o[0],
|
|
80
81
|
o[1] - 1,
|
|
81
82
|
o[2],
|
|
@@ -84,17 +85,17 @@ const a = c, y = {
|
|
|
84
85
|
o[5],
|
|
85
86
|
0
|
|
86
87
|
);
|
|
87
|
-
let
|
|
88
|
-
const
|
|
89
|
-
return
|
|
88
|
+
let a = +t;
|
|
89
|
+
const c = a % 1e3;
|
|
90
|
+
return a -= c, (s - a) / (60 * 1e3);
|
|
90
91
|
}, U = (t, e, n) => {
|
|
91
92
|
let o = t - e * 60 * 1e3;
|
|
92
|
-
const
|
|
93
|
-
if (e ===
|
|
93
|
+
const i = h(o, n);
|
|
94
|
+
if (e === i)
|
|
94
95
|
return [o, e];
|
|
95
|
-
o -= (
|
|
96
|
+
o -= (i - e) * 60 * 1e3;
|
|
96
97
|
const r = h(o, n);
|
|
97
|
-
return
|
|
98
|
+
return i === r ? [o, i] : [t - Math.min(i, r) * 60 * 1e3, Math.max(i, r)];
|
|
98
99
|
};
|
|
99
100
|
function b(t, e) {
|
|
100
101
|
return U(
|
|
@@ -104,13 +105,13 @@ function b(t, e) {
|
|
|
104
105
|
)[1];
|
|
105
106
|
}
|
|
106
107
|
function B(t, e) {
|
|
107
|
-
return O(t) && !e ?
|
|
108
|
+
return O(t) && !e ? f() : l(f(), t, e);
|
|
108
109
|
}
|
|
109
110
|
function l(t, e, n, o) {
|
|
110
111
|
if (!t || O(e) && !n)
|
|
111
112
|
return t;
|
|
112
|
-
const
|
|
113
|
-
return
|
|
113
|
+
const i = -t.toDate().getTimezoneOffset(), r = O(e) ? n ? b(t.valueOf(), n) : i : e, s = Math.abs(r) <= 16 ? r * 60 : r, a = o ? i - s : s - i;
|
|
114
|
+
return f(f(t).valueOf() + a * 60 * 1e3);
|
|
114
115
|
}
|
|
115
116
|
function G(t, e, n) {
|
|
116
117
|
return l(t, e, n, !0);
|
|
@@ -123,22 +124,22 @@ function Q(t) {
|
|
|
123
124
|
function _(t, e, n, o) {
|
|
124
125
|
if (!t)
|
|
125
126
|
return;
|
|
126
|
-
const
|
|
127
|
-
if (m(
|
|
128
|
-
return
|
|
129
|
-
if (typeof
|
|
130
|
-
const
|
|
131
|
-
return
|
|
127
|
+
const i = (s, a) => {
|
|
128
|
+
if (m(s))
|
|
129
|
+
return f(s.valueOf());
|
|
130
|
+
if (typeof s == "string") {
|
|
131
|
+
const c = f(s, d(e) ? e[a] : e);
|
|
132
|
+
return c.isValid() ? c : f(s, "YYYY-MM-DD");
|
|
132
133
|
}
|
|
133
|
-
return
|
|
134
|
-
}, r = (
|
|
135
|
-
return
|
|
134
|
+
return f(s);
|
|
135
|
+
}, r = (s, a) => n !== void 0 || o ? l(i(s, a), n, o) : i(s, a);
|
|
136
|
+
return d(t) ? t.map((s, a) => s ? r(s, a) : void 0) : r(t, 0);
|
|
136
137
|
}
|
|
137
138
|
function q(t, e) {
|
|
138
|
-
const n = t.year(), o = t.month(),
|
|
139
|
+
const n = t.year(), o = t.month(), i = t.date();
|
|
139
140
|
if (e) {
|
|
140
141
|
let r = e;
|
|
141
|
-
return r =
|
|
142
|
+
return r = g.set(r, "year", n), r = g.set(r, "month", o), r = g.set(r, "date", i), r;
|
|
142
143
|
}
|
|
143
144
|
return t;
|
|
144
145
|
}
|
|
@@ -149,16 +150,16 @@ function E(t) {
|
|
|
149
150
|
return e.sort((n, o) => n.valueOf() - o.valueOf()), e;
|
|
150
151
|
}
|
|
151
152
|
function J(t, e) {
|
|
152
|
-
return e === void 0 && t === void 0 ? !1 : e && !t || !e && t ||
|
|
153
|
+
return e === void 0 && t === void 0 ? !1 : e && !t || !e && t || f(e).valueOf() !== f(t).valueOf();
|
|
153
154
|
}
|
|
154
155
|
function K(t, e) {
|
|
155
|
-
return e === void 0 && t === void 0 ? !1 : e && !t || !e && t ||
|
|
156
|
+
return e === void 0 && t === void 0 ? !1 : e && !t || !e && t || d(e) && d(t) && f(e[0]).valueOf() !== f(t[0]).valueOf() || f(e[1]).valueOf() !== f(t[1]).valueOf();
|
|
156
157
|
}
|
|
157
158
|
function X(t, e, n) {
|
|
158
|
-
return typeof t == "string" &&
|
|
159
|
+
return typeof t == "string" && f(t, e).format(d(e) ? e[n] : e) === t;
|
|
159
160
|
}
|
|
160
161
|
export {
|
|
161
|
-
|
|
162
|
+
f as dayjs,
|
|
162
163
|
_ as getDayjsValue,
|
|
163
164
|
B as getNow,
|
|
164
165
|
E as getSortedDayjsArray,
|
|
@@ -167,7 +168,7 @@ export {
|
|
|
167
168
|
K as isDayjsArrayChange,
|
|
168
169
|
J as isDayjsChange,
|
|
169
170
|
X as isValidTimeString,
|
|
170
|
-
|
|
171
|
+
g as methods,
|
|
171
172
|
b as timezoneToOffset,
|
|
172
173
|
G as toLocal,
|
|
173
174
|
l as toTimezone
|