@unicom-cloud/ui 0.8.62 → 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 +2 -2
- package/Anchor.js +1 -1
- package/AutoComplete.js +3 -3
- package/Avatar.js +1 -1
- package/BackTop.js +2 -2
- package/Badge.js +2 -2
- 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 +1026 -1016
- package/Descriptions.js +10 -10
- 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 +2 -2
- 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 +4 -3
- package/Modal.js +1 -1
- package/Notice.js +1 -1
- package/Notification.js +4 -3
- 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 +50 -46
- package/Spin.js +1 -1
- package/Statistic.js +28 -27
- package/Steps.js +40 -38
- package/Switch.js +2 -2
- 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 +2 -2
- package/Typography.js +6 -2
- package/Upload.js +5 -4
- package/VerificationCode.js +1 -1
- package/Watermark.js +1 -1
- package/chunk/{CHyuuVxl.js → -IELMT_x.js} +1 -1
- package/chunk/{CV1kLw5Z.js → B5GDq8NJ.js} +8 -6
- package/chunk/{qpd2axxs.js → B68hRpYG.js} +2 -2
- package/chunk/{B8SZFOjt.js → BCxoi4Kf.js} +22 -20
- package/chunk/{DRp7voqz.js → BHnRi7Xh.js} +3 -3
- package/chunk/{C6fEFlPt.js → BJSjbYSN.js} +2 -2
- package/chunk/{BlNFmhNa.js → BSBJlVZH.js} +3 -3
- package/chunk/{yESVS-qX.js → BfHNSLva.js} +3 -3
- package/chunk/{B4-WpgY2.js → BtIG250j.js} +7 -4
- package/chunk/{Dtm4BmKB.js → BwSpYGK-.js} +1 -1
- package/chunk/{KchYsivk.js → CA69nxbj.js} +1 -1
- package/chunk/{D3VMG9V1.js → CAhODOfT.js} +3 -2
- package/chunk/{tOFzwzpT.js → CAiaqaWc.js} +1 -1
- package/chunk/{Wum88vrW.js → CBgwLBAC.js} +40 -38
- package/chunk/{Bp3XomF8.js → CLBavO5c.js} +23 -20
- package/chunk/{CT1lZ7ss.js → CTF5o0OX.js} +1 -1
- package/chunk/{C4eJ9vCf.js → CYQ1EE4h.js} +2 -2
- package/chunk/{DRQ1v6Ux.js → CZfGDXaB.js} +1 -1
- package/chunk/{B0oDiPqE.js → CtUTlwlQ.js} +1 -1
- package/chunk/{DGasAUHE.js → CxpFYX4B.js} +11 -11
- package/chunk/{BnqeQYIZ.js → D-oHJail.js} +59 -55
- package/chunk/{CazXy0r4.js → D01b7bWX.js} +50 -45
- package/chunk/{C8o-VGyc.js → DPJEIBKZ.js} +3 -3
- package/chunk/{-Z968QpN.js → DQ561AmR.js} +3 -3
- package/chunk/{CDJ1EnJ2.js → QlYCEvCX.js} +1 -1
- package/chunk/{AqH9yP_J.js → Yvz-hPQB.js} +2 -2
- package/chunk/{nbEvdwT0.js → _m8hLSsx.js} +4 -2
- package/chunk/{CJnshq6A.js → oR9TkA35.js} +2 -2
- package/chunk/{BXWxA-tS.js → pq-36BDW.js} +5 -3
- package/chunk/{mfn4EgmQ.js → tW_FgNSv.js} +1 -1
- package/index.js +540 -472
- package/locale/zh-CN.js +8 -0
- package/package.json +1 -1
- package/types/calendar/hook/useCellClassName.d.ts +2 -1
- package/types/checkbox/IconCheck.d.ts +2 -1
- package/types/color-picker/hooks/useColorPicker.d.ts +3 -8
- package/types/date-picker/hook/useCellClassName.d.ts +2 -1
- package/types/date-picker/index.d.ts +7 -0
- 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 +25 -25
- 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/locale/interface.d.ts +1 -0
- package/types/locale/zh-CN.d.ts +14 -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 +4 -1
- 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/is.d.ts +2 -0
- 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/types/verification-code/VerificationCode.d.ts +2 -1
- package/utils/CSSTransition.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/dayjs.js +50 -49
- package/utils/index.js +161 -148
- package/utils/is.js +125 -112
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 };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import Tree from '../tree';
|
|
3
|
+
import { NodeProps } from '../tree/interface';
|
|
3
4
|
import { RefTreeSelectType, TreeSelectProps } from './interface';
|
|
4
5
|
declare const ForwardRefTreeSelect: import("react").ForwardRefExoticComponent<TreeSelectProps & {
|
|
5
6
|
children?: ReactNode | undefined;
|
|
@@ -10,4 +11,8 @@ declare const TreeSelectComponent: typeof ForwardRefTreeSelect & {
|
|
|
10
11
|
SHOW_PARENT: typeof Tree.SHOW_PARENT;
|
|
11
12
|
SHOW_CHILD: typeof Tree.SHOW_CHILD;
|
|
12
13
|
};
|
|
14
|
+
declare const TreeNode: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<NodeProps & {
|
|
15
|
+
children?: ReactNode | undefined;
|
|
16
|
+
} & import("react").RefAttributes<HTMLDivElement>>>;
|
|
17
|
+
export { TreeNode as TreeSelectTreeNode };
|
|
13
18
|
export default TreeSelectComponent;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { TreeSelectProps } from '../../tree-select/interface';
|
|
2
2
|
import { TreeProps } from '../../tree/interface';
|
|
3
|
-
|
|
3
|
+
declare function useTreeData(props: TreeSelectProps): [TreeProps['treeData']];
|
|
4
|
+
export default useTreeData;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import type { OperationsProps } from './interface';
|
|
3
|
-
|
|
3
|
+
declare function Operations(props: PropsWithChildren<OperationsProps>): import("react/jsx-dev-runtime").JSX.Element;
|
|
4
|
+
export default Operations;
|
|
@@ -9,5 +9,6 @@ declare const Typography: typeof OriginTypography & {
|
|
|
9
9
|
Paragraph: typeof Paragraph;
|
|
10
10
|
Ellipsis: typeof Ellipsis;
|
|
11
11
|
};
|
|
12
|
+
export { Ellipsis as TypographyEllipsis, Paragraph as TypographyParagraph, Text as TypographyText, Title as TypographyTitle, };
|
|
12
13
|
export default Typography;
|
|
13
14
|
export type { EllipsisConfig, TypographyEllipsisProps, TypographyParagraphProps, TypographyProps, TypographyTextProps, TypographyTitleProps, } from './interface';
|
package/types/upload/Upload.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { STATUS, type UploadInstance, type UploadItem, type UploadProps } from './interface';
|
|
3
|
+
import UploadList from './list';
|
|
3
4
|
export type UploadState = {
|
|
4
5
|
uploadState: {
|
|
5
6
|
[key: string]: UploadItem;
|
|
@@ -8,6 +9,6 @@ export type UploadState = {
|
|
|
8
9
|
declare const UploadRef: React.ForwardRefExoticComponent<UploadProps & {
|
|
9
10
|
children?: React.ReactNode | undefined;
|
|
10
11
|
} & React.RefAttributes<UploadInstance>>;
|
|
11
|
-
export { STATUS };
|
|
12
|
+
export { STATUS, UploadList, STATUS as UploadSTATUS };
|
|
12
13
|
export default UploadRef;
|
|
13
14
|
export { UploadItem, UploadProps };
|
package/types/upload/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import Upload
|
|
2
|
-
|
|
3
|
-
export { STATUS, UploadList };
|
|
1
|
+
import Upload from './Upload';
|
|
2
|
+
export * from './Upload';
|
|
4
3
|
export default Upload;
|
|
5
4
|
export type { RequestOptions, UploadInstance, UploadItem, UploadListProps, UploadProps, UploadRequestReturn, UploadStatus, } from './interface';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare function fillNBSP(str: any): any;
|
|
2
|
+
export default fillNBSP;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
declare function getHighlightText<T>({ nodeList, pattern, highlightClassName, }: {
|
|
2
2
|
nodeList: T;
|
|
3
3
|
pattern: string;
|
|
4
4
|
highlightClassName: string;
|
|
5
5
|
}): T;
|
|
6
|
+
export default getHighlightText;
|
|
@@ -5,4 +5,5 @@ export interface Key {
|
|
|
5
5
|
alt?: boolean;
|
|
6
6
|
meta?: boolean;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
declare function getHotkeyHandler(hotkeyMap: Map<Key | number | string, Function>): (e: KeyboardEvent) => void;
|
|
9
|
+
export default getHotkeyHandler;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare function getStringLength(str: string): number;
|
|
2
|
+
export default getStringLength;
|
package/types/utils/include.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare function include<T extends object, K extends keyof T>(obj: T, keys: Array<K | string>): Partial<T>;
|
|
2
|
+
export default include;
|
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, };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare function mergeProps<PropsType>(_componentProps: PropsType, _defaultProps: Partial<PropsType>, _globalComponentConfig: PropsType, propsNameList?: string[]): Partial<PropsType>;
|
|
2
|
+
export default mergeProps;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare function mergedToString(children: any): string;
|
|
2
|
+
export default mergedToString;
|
package/types/utils/omit.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare function omit<T extends object, K extends keyof T>(obj: T, keys: Array<K | string>): Omit<T, K>;
|
|
2
|
+
export default omit;
|
package/types/utils/pick.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
declare function pick<T extends object, K extends keyof T>(o: T, keys: Array<K | string>): Pick<T, K>;
|
|
2
2
|
export declare function pickDataAttributes<T extends object, K extends keyof T>(o: T | undefined): {
|
|
3
3
|
[key in K]: any;
|
|
4
4
|
};
|
|
5
|
+
export default pick;
|
package/types/utils/warning.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare function warning(condition: any, message: string, ...extra: any[]): void;
|
|
2
|
+
export default warning;
|
|
@@ -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/utils/CSSTransition.js
CHANGED
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
|