@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.
Files changed (202) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +2 -2
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +3 -3
  5. package/Avatar.js +1 -1
  6. package/BackTop.js +2 -2
  7. package/Badge.js +2 -2
  8. package/Breadcrumb.js +2 -2
  9. package/Button.js +1 -1
  10. package/Calendar.js +3 -3
  11. package/Card.js +1 -1
  12. package/Carousel.js +1 -1
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +4 -4
  17. package/Comment.js +1 -1
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +1 -1
  20. package/DatePicker.js +1026 -1016
  21. package/Descriptions.js +10 -10
  22. package/Divider.js +1 -1
  23. package/Draggable.js +1 -1
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +26 -25
  26. package/Empty.js +1 -1
  27. package/Form.js +2 -2
  28. package/Grid.js +2 -2
  29. package/Icon.js +2 -1
  30. package/IconHover.js +1 -1
  31. package/Image.js +4 -1
  32. package/Input.js +11 -2
  33. package/InputNumber.js +2 -2
  34. package/InputTag.js +1 -1
  35. package/Layout.js +24 -20
  36. package/Link.js +1 -1
  37. package/List.js +4 -3
  38. package/Mentions.js +3 -3
  39. package/Menu.js +7 -2
  40. package/Message.js +4 -3
  41. package/Modal.js +1 -1
  42. package/Notice.js +1 -1
  43. package/Notification.js +4 -3
  44. package/OverflowEllipsis.js +1 -1
  45. package/PageHeader.js +1 -1
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +1 -1
  49. package/Popover.js +1 -1
  50. package/Progress.js +1 -1
  51. package/Radio.js +4 -2
  52. package/Rate.js +1 -1
  53. package/ResizeBox.js +66 -64
  54. package/Result.js +1 -1
  55. package/Select.js +4 -1
  56. package/SelectView.js +3 -3
  57. package/Skeleton.js +1 -1
  58. package/Slider.js +2 -2
  59. package/Space.js +50 -46
  60. package/Spin.js +1 -1
  61. package/Statistic.js +28 -27
  62. package/Steps.js +40 -38
  63. package/Switch.js +2 -2
  64. package/Table.js +7 -4
  65. package/Tabs.js +6 -2
  66. package/Tag.js +1 -1
  67. package/TimePicker.js +37 -36
  68. package/Timeline.js +4 -2
  69. package/Tooltip.js +1 -1
  70. package/Transfer.js +3 -3
  71. package/Tree.js +1 -1
  72. package/TreeSelect.js +3 -1
  73. package/Trigger.js +2 -2
  74. package/Typography.js +6 -2
  75. package/Upload.js +5 -4
  76. package/VerificationCode.js +1 -1
  77. package/Watermark.js +1 -1
  78. package/chunk/{CHyuuVxl.js → -IELMT_x.js} +1 -1
  79. package/chunk/{CV1kLw5Z.js → B5GDq8NJ.js} +8 -6
  80. package/chunk/{qpd2axxs.js → B68hRpYG.js} +2 -2
  81. package/chunk/{B8SZFOjt.js → BCxoi4Kf.js} +22 -20
  82. package/chunk/{DRp7voqz.js → BHnRi7Xh.js} +3 -3
  83. package/chunk/{C6fEFlPt.js → BJSjbYSN.js} +2 -2
  84. package/chunk/{BlNFmhNa.js → BSBJlVZH.js} +3 -3
  85. package/chunk/{yESVS-qX.js → BfHNSLva.js} +3 -3
  86. package/chunk/{B4-WpgY2.js → BtIG250j.js} +7 -4
  87. package/chunk/{Dtm4BmKB.js → BwSpYGK-.js} +1 -1
  88. package/chunk/{KchYsivk.js → CA69nxbj.js} +1 -1
  89. package/chunk/{D3VMG9V1.js → CAhODOfT.js} +3 -2
  90. package/chunk/{tOFzwzpT.js → CAiaqaWc.js} +1 -1
  91. package/chunk/{Wum88vrW.js → CBgwLBAC.js} +40 -38
  92. package/chunk/{Bp3XomF8.js → CLBavO5c.js} +23 -20
  93. package/chunk/{CT1lZ7ss.js → CTF5o0OX.js} +1 -1
  94. package/chunk/{C4eJ9vCf.js → CYQ1EE4h.js} +2 -2
  95. package/chunk/{DRQ1v6Ux.js → CZfGDXaB.js} +1 -1
  96. package/chunk/{B0oDiPqE.js → CtUTlwlQ.js} +1 -1
  97. package/chunk/{DGasAUHE.js → CxpFYX4B.js} +11 -11
  98. package/chunk/{BnqeQYIZ.js → D-oHJail.js} +59 -55
  99. package/chunk/{CazXy0r4.js → D01b7bWX.js} +50 -45
  100. package/chunk/{C8o-VGyc.js → DPJEIBKZ.js} +3 -3
  101. package/chunk/{-Z968QpN.js → DQ561AmR.js} +3 -3
  102. package/chunk/{CDJ1EnJ2.js → QlYCEvCX.js} +1 -1
  103. package/chunk/{AqH9yP_J.js → Yvz-hPQB.js} +2 -2
  104. package/chunk/{nbEvdwT0.js → _m8hLSsx.js} +4 -2
  105. package/chunk/{CJnshq6A.js → oR9TkA35.js} +2 -2
  106. package/chunk/{BXWxA-tS.js → pq-36BDW.js} +5 -3
  107. package/chunk/{mfn4EgmQ.js → tW_FgNSv.js} +1 -1
  108. package/index.js +540 -472
  109. package/locale/zh-CN.js +8 -0
  110. package/package.json +1 -1
  111. package/types/calendar/hook/useCellClassName.d.ts +2 -1
  112. package/types/checkbox/IconCheck.d.ts +2 -1
  113. package/types/color-picker/hooks/useColorPicker.d.ts +3 -8
  114. package/types/date-picker/hook/useCellClassName.d.ts +2 -1
  115. package/types/date-picker/index.d.ts +7 -0
  116. package/types/date-picker/panel/Footer.d.ts +2 -1
  117. package/types/dropdown/index.d.ts +1 -0
  118. package/types/form/IconSymbol.d.ts +2 -1
  119. package/types/form/useForm.d.ts +2 -1
  120. package/types/icon/addFromIconFontCn.d.ts +2 -1
  121. package/types/icon/index.d.ts +2 -0
  122. package/types/image/Image.d.ts +1 -0
  123. package/types/image/index.d.ts +2 -1
  124. package/types/image/util/getFixTranslate.d.ts +2 -1
  125. package/types/image/util/hook/useImageStatus.d.ts +2 -2
  126. package/types/image/util/hook/useShowFooter.d.ts +2 -2
  127. package/types/index.d.ts +25 -25
  128. package/types/input/Input.d.ts +1 -0
  129. package/types/input/index.d.ts +1 -0
  130. package/types/input/useComposition.d.ts +2 -1
  131. package/types/input-number/useSelectionRange.d.ts +2 -1
  132. package/types/layout/index.d.ts +1 -0
  133. package/types/list/index.d.ts +1 -0
  134. package/types/locale/interface.d.ts +1 -0
  135. package/types/locale/zh-CN.d.ts +14 -0
  136. package/types/menu/Indent.d.ts +2 -1
  137. package/types/menu/Menu.d.ts +1 -0
  138. package/types/menu/index.d.ts +1 -0
  139. package/types/message/index.d.ts +2 -0
  140. package/types/notification/index.d.ts +2 -0
  141. package/types/overflow-ellipsis/OverflowItem.d.ts +2 -2
  142. package/types/overflow-ellipsis/index.d.ts +2 -2
  143. package/types/radio/Radio.d.ts +2 -0
  144. package/types/radio/index.d.ts +2 -1
  145. package/types/resize-box/ResizeTrigger.d.ts +2 -1
  146. package/types/resize-box/index.d.ts +1 -0
  147. package/types/result/403.d.ts +2 -1
  148. package/types/result/404.d.ts +2 -1
  149. package/types/result/500.d.ts +2 -1
  150. package/types/select/Select.d.ts +1 -1
  151. package/types/select/index.d.ts +1 -0
  152. package/types/skeleton/Image.d.ts +2 -1
  153. package/types/skeleton/Text.d.ts +2 -1
  154. package/types/slider/hook/useLegalValue.d.ts +2 -1
  155. package/types/space/index.d.ts +4 -1
  156. package/types/space/toArray.d.ts +2 -1
  157. package/types/speech-synthesis/index.d.ts +2 -1
  158. package/types/spin/DotLoading.d.ts +2 -1
  159. package/types/statistic/index.d.ts +1 -0
  160. package/types/steps/index.d.ts +1 -0
  161. package/types/table/hook/useComponent.d.ts +2 -1
  162. package/types/table/hook/useExpand.d.ts +2 -1
  163. package/types/table/hook/useRowSelection.d.ts +2 -1
  164. package/types/table/hook/useSorter.d.ts +2 -1
  165. package/types/table/index.d.ts +2 -1
  166. package/types/table/summary/index.d.ts +3 -0
  167. package/types/tabs/Tab.d.ts +1 -0
  168. package/types/tabs/TabContent.d.ts +2 -2
  169. package/types/tabs/hook/useDomSize.d.ts +2 -1
  170. package/types/tabs/hook/useHeaderScroll.d.ts +2 -1
  171. package/types/tabs/index.d.ts +1 -0
  172. package/types/tabs/tab-header/DropdownIcon.d.ts +2 -1
  173. package/types/time-picker/TimeColumn.d.ts +2 -2
  174. package/types/time-picker/index.d.ts +5 -0
  175. package/types/timeline/Timeline.d.ts +1 -0
  176. package/types/timeline/index.d.ts +1 -0
  177. package/types/tree-select/Select.d.ts +5 -0
  178. package/types/tree-select/hook/useTreeData.d.ts +2 -1
  179. package/types/tree-select/index.d.ts +2 -1
  180. package/types/typography/Operations.d.ts +2 -1
  181. package/types/typography/index.d.ts +1 -0
  182. package/types/upload/Upload.d.ts +2 -1
  183. package/types/upload/index.d.ts +2 -3
  184. package/types/utils/fillNBSP.d.ts +2 -1
  185. package/types/utils/getHighlightText.d.ts +2 -1
  186. package/types/utils/getHotkeyHandler.d.ts +2 -1
  187. package/types/utils/getStringLength.d.ts +2 -1
  188. package/types/utils/include.d.ts +2 -1
  189. package/types/utils/is.d.ts +2 -0
  190. package/types/utils/mergeProps.d.ts +2 -1
  191. package/types/utils/mergedToString.d.ts +2 -1
  192. package/types/utils/omit.d.ts +2 -1
  193. package/types/utils/pick.d.ts +2 -1
  194. package/types/utils/throttleByRaf.d.ts +2 -1
  195. package/types/utils/throttleByRafV2.d.ts +2 -1
  196. package/types/utils/warning.d.ts +2 -1
  197. package/types/verification-code/VerificationCode.d.ts +2 -1
  198. package/utils/CSSTransition.js +1 -1
  199. package/utils/contextHolder.js +1 -1
  200. package/utils/dayjs.js +50 -49
  201. package/utils/index.js +161 -148
  202. package/utils/is.js +125 -112
@@ -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;
@@ -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
- export default function TabContent(props: TabContentProps): import("react/jsx-dev-runtime").JSX.Element | null;
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
- export default function DomSize<T extends HTMLElement>(): [
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
- export default function useHeaderScroll<T extends HTMLElement>(props: {
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;
@@ -1,3 +1,4 @@
1
1
  import Tabs from './Tab';
2
+ export * from './Tab';
2
3
  export default Tabs;
3
4
  export type { TabPaneProps, TabsProps } from './interface';
@@ -1 +1,2 @@
1
- export default function DropdownIcon(props: any): import("react/jsx-dev-runtime").JSX.Element | null;
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
- export default function TimeColumn(props: TimeColumnProps): import("react/jsx-dev-runtime").JSX.Element;
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,3 +1,4 @@
1
1
  import Timeline from './Timeline';
2
+ export * from './Timeline';
2
3
  export default Timeline;
3
4
  export type { TimelineItemProps, TimelineProps } from './interface';
@@ -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
- export default function useTreeData(props: TreeSelectProps): [TreeProps['treeData']];
3
+ declare function useTreeData(props: TreeSelectProps): [TreeProps['treeData']];
4
+ export default useTreeData;
@@ -1,3 +1,4 @@
1
1
  import TreeSelect from './Select';
2
- export default TreeSelect;
3
2
  export type { RefTreeSelectType, TreeSelectProps } from './interface';
3
+ export * from './Select';
4
+ export default TreeSelect;
@@ -1,3 +1,4 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import type { OperationsProps } from './interface';
3
- export default function Operations(props: PropsWithChildren<OperationsProps>): import("react/jsx-dev-runtime").JSX.Element;
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';
@@ -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 };
@@ -1,5 +1,4 @@
1
- import Upload, { STATUS } from './Upload';
2
- import UploadList from './list';
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
- export default function fillNBSP(str: any): any;
1
+ declare function fillNBSP(str: any): any;
2
+ export default fillNBSP;
@@ -1,5 +1,6 @@
1
- export default function getHighlightText<T>({ nodeList, pattern, highlightClassName, }: {
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
- export default function getHotkeyHandler(hotkeyMap: Map<Key | number | string, Function>): (e: KeyboardEvent) => void;
8
+ declare function getHotkeyHandler(hotkeyMap: Map<Key | number | string, Function>): (e: KeyboardEvent) => void;
9
+ export default getHotkeyHandler;
@@ -1 +1,2 @@
1
- export default function getStringLength(str: string): number;
1
+ declare function getStringLength(str: string): number;
2
+ export default getStringLength;
@@ -1 +1,2 @@
1
- export default function include<T extends object, K extends keyof T>(obj: T, keys: Array<K | string>): Partial<T>;
1
+ declare function include<T extends object, K extends keyof T>(obj: T, keys: Array<K | string>): Partial<T>;
2
+ export default include;
@@ -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
- export default function mergeProps<PropsType>(_componentProps: PropsType, _defaultProps: Partial<PropsType>, _globalComponentConfig: PropsType, propsNameList?: string[]): Partial<PropsType>;
1
+ declare function mergeProps<PropsType>(_componentProps: PropsType, _defaultProps: Partial<PropsType>, _globalComponentConfig: PropsType, propsNameList?: string[]): Partial<PropsType>;
2
+ export default mergeProps;
@@ -1 +1,2 @@
1
- export default function mergedToString(children: any): string;
1
+ declare function mergedToString(children: any): string;
2
+ export default mergedToString;
@@ -1 +1,2 @@
1
- export default function omit<T extends object, K extends keyof T>(obj: T, keys: Array<K | string>): Omit<T, K>;
1
+ declare function omit<T extends object, K extends keyof T>(obj: T, keys: Array<K | string>): Omit<T, K>;
2
+ export default omit;
@@ -1,4 +1,5 @@
1
- export default function pick<T extends object, K extends keyof T>(o: T, keys: Array<K | string>): Pick<T, K>;
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;
@@ -1,4 +1,5 @@
1
- export default function throttleByRaf(cb: (...args: any[]) => void): {
1
+ declare function throttleByRaf(cb: (...args: any[]) => void): {
2
2
  (...args: any[]): void;
3
3
  cancel(): void;
4
4
  };
5
+ export default throttleByRaf;
@@ -1,4 +1,5 @@
1
- export default function (cb: (...args: any[]) => void): {
1
+ declare function throttleByRafV2(cb: (...args: any[]) => void): {
2
2
  (...args: any[]): void;
3
3
  cancel(): void;
4
4
  };
5
+ export default throttleByRafV2;
@@ -1 +1,2 @@
1
- export default function warning(condition: any, message: string, ...extra: any[]): void;
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: import("react").ForwardRefExoticComponent<VerificationCodeProps & import("react").RefAttributes<unknown>>;
7
+ declare const VerificationCode: React.ForwardRefExoticComponent<VerificationCodeProps & React.RefAttributes<unknown>>;
7
8
  export default VerificationCode;
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { P as a } from "../chunk/Bp3XomF8.js";
2
+ import { P as a } from "../chunk/CLBavO5c.js";
3
3
  import "react";
4
4
  import "./is.js";
5
5
  import "./reactDOM.js";
@@ -1,5 +1,5 @@
1
1
  import "react";
2
- import { C as a } from "../chunk/CV1kLw5Z.js";
2
+ import { C as a } from "../chunk/B5GDq8NJ.js";
3
3
  export {
4
4
  a as default
5
5
  };
package/utils/dayjs.js CHANGED
@@ -1,33 +1,34 @@
1
- import c, { isDayjs as m } from "dayjs";
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 u from "lodash/isArray";
8
+ import d from "lodash/isArray";
9
9
  import O from "lodash/isUndefined";
10
- const v = (t, e, n) => {
11
- n = function(r, i) {
12
- if (m(r))
13
- return r.clone();
14
- const f = typeof i == "object" ? i : {};
15
- return f.date = r, f.args = arguments, new e(f);
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, s = o.$utils;
18
+ const o = e.prototype, i = o.$utils;
18
19
  o.$utils = function() {
19
- const r = s();
20
+ const r = i();
20
21
  return r.i = m, r;
21
22
  }, n.isDayjs = m;
22
- };
23
- c.extend(v);
24
- c.extend(j);
25
- c.extend($);
26
- c.extend(Y);
27
- c.extend(x);
28
- c.extend(k);
29
- c.extend(F);
30
- const a = c, y = {
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({ ...a.Ls[o], weekStart: n }).isSame(e, "week");
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 g = 0; g < n.length; g += 1) {
75
- const { type: p, value: w } = n[g], D = A[p];
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 s = o[3], r = s === 24 ? 0 : s, i = Date.UTC(
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 f = +t;
88
- const d = f % 1e3;
89
- return f -= d, (i - f) / (60 * 1e3);
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 s = h(o, n);
93
- if (e === s)
93
+ const i = h(o, n);
94
+ if (e === i)
94
95
  return [o, e];
95
- o -= (s - e) * 60 * 1e3;
96
+ o -= (i - e) * 60 * 1e3;
96
97
  const r = h(o, n);
97
- return s === r ? [o, s] : [t - Math.min(s, r) * 60 * 1e3, Math.max(s, r)];
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 ? a() : l(a(), 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 s = -t.toDate().getTimezoneOffset(), r = O(e) ? n ? b(t.valueOf(), n) : s : e, i = Math.abs(r) <= 16 ? r * 60 : r, f = o ? s - i : i - s;
113
- return a(a(t).valueOf() + f * 60 * 1e3);
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 s = (i, f) => {
127
- if (m(i))
128
- return a(i.valueOf());
129
- if (typeof i == "string") {
130
- const d = a(i, u(e) ? e[f] : e);
131
- return d.isValid() ? d : a(i, "YYYY-MM-DD");
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 a(i);
134
- }, r = (i, f) => n !== void 0 || o ? l(s(i, f), n, o) : s(i, f);
135
- return u(t) ? t.map((i, f) => i ? r(i, f) : void 0) : r(t, 0);
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(), s = t.date();
139
+ const n = t.year(), o = t.month(), i = t.date();
139
140
  if (e) {
140
141
  let r = e;
141
- return r = y.set(r, "year", n), r = y.set(r, "month", o), r = y.set(r, "date", s), 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 || a(e).valueOf() !== a(t).valueOf();
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 || u(e) && u(t) && a(e[0]).valueOf() !== a(t[0]).valueOf() || a(e[1]).valueOf() !== a(t[1]).valueOf();
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" && a(t, e).format(u(e) ? e[n] : e) === t;
159
+ return typeof t == "string" && f(t, e).format(d(e) ? e[n] : e) === t;
159
160
  }
160
161
  export {
161
- a as dayjs,
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
- y as methods,
171
+ g as methods,
171
172
  b as timezoneToOffset,
172
173
  G as toLocal,
173
174
  l as toTimezone