@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.
Files changed (188) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +44 -40
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +4 -4
  5. package/Avatar.js +1 -1
  6. package/BackTop.js +7 -7
  7. package/Badge.js +2 -2
  8. package/Breadcrumb.js +22 -22
  9. package/Button.js +2 -2
  10. package/Calendar.js +106 -104
  11. package/Card.js +1 -1
  12. package/Carousel.js +34 -33
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +12 -12
  17. package/Comment.js +1 -1
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +16 -16
  20. package/DatePicker.js +1021 -1008
  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 +9 -9
  26. package/Empty.js +2 -2
  27. package/Form.js +60 -54
  28. package/Grid.js +2 -2
  29. package/Icon.js +1 -1
  30. package/IconHover.js +1 -1
  31. package/Image.js +1 -1
  32. package/Input.js +1 -1
  33. package/InputNumber.js +6 -6
  34. package/InputTag.js +1 -1
  35. package/Layout.js +2 -2
  36. package/Link.js +14 -14
  37. package/List.js +3 -3
  38. package/Mentions.js +3 -3
  39. package/Menu.js +1 -1
  40. package/Message.js +2 -2
  41. package/Modal.js +1 -1
  42. package/Notice.js +9 -3
  43. package/Notification.js +2 -2
  44. package/OverflowEllipsis.js +32 -32
  45. package/PageHeader.js +23 -22
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +7 -7
  49. package/Popover.js +1 -1
  50. package/Progress.js +14 -14
  51. package/Radio.js +2 -2
  52. package/Rate.js +43 -40
  53. package/ResizeBox.js +97 -96
  54. package/Result.js +15 -15
  55. package/Select.js +1 -1
  56. package/SelectView.js +295 -249
  57. package/Skeleton.js +1 -1
  58. package/Slider.js +25 -25
  59. package/Space.js +32 -32
  60. package/SpeechSynthesis.js +32 -29
  61. package/Spin.js +2 -2
  62. package/Statistic.js +1 -1
  63. package/Steps.js +11 -11
  64. package/Switch.js +3 -3
  65. package/Table.js +9 -9
  66. package/Tabs.js +1 -1
  67. package/Tag.js +68 -67
  68. package/TimePicker.js +17 -17
  69. package/Timeline.js +1 -1
  70. package/Tooltip.js +1 -1
  71. package/Transfer.js +47 -46
  72. package/Tree.js +2 -2
  73. package/TreeSelect.js +1 -1
  74. package/Trigger.js +3 -3
  75. package/Typography.js +1 -1
  76. package/Upload.js +2 -2
  77. package/VerificationCode.js +1 -1
  78. package/Version.js +1 -1
  79. package/Watermark.js +1 -1
  80. package/chunk/{DhBo0pPJ.js → B5gIo-hD.js} +119 -118
  81. package/chunk/{eK7lxdak.js → B9w_puFP.js} +8 -8
  82. package/chunk/{RMBPs_Ry.js → BEB_A9eY.js} +4 -3
  83. package/chunk/{CuOl4X0X.js → BLLKKgZJ.js} +1 -1
  84. package/chunk/{cZiP8FvM.js → BcwdVUDs.js} +1 -1
  85. package/chunk/{C1xMmQIZ.js → BmO1y0vr.js} +34 -34
  86. package/chunk/{DmUhn9ib.js → Bn2-vqTg.js} +54 -53
  87. package/chunk/{Kbr6FzOG.js → BnLshM9R.js} +210 -186
  88. package/chunk/{BJ_7JTqC.js → BoDdbbF_.js} +1 -1
  89. package/chunk/BsWphzcT.js +20 -0
  90. package/chunk/{Bdh4XVuf.js → C5S_amaH.js} +290 -281
  91. package/chunk/{YIlBPVAs.js → C6Zb_-OE.js} +1 -1
  92. package/chunk/{CbiWdbr_.js → CAxIyiy6.js} +35 -34
  93. package/chunk/CD7dGcUa.js +376 -0
  94. package/chunk/{BPZ-6HKJ.js → CLBavO5c.js} +24 -22
  95. package/chunk/{B2vORJQ8.js → CZ1wrD_H.js} +13 -13
  96. package/chunk/{DpfUGhi4.js → CfTcP6nF.js} +288 -283
  97. package/chunk/{BNHrEI0Y.js → CfZWOhnc.js} +52 -48
  98. package/chunk/{BjSHZA0m.js → CgDayZDE.js} +1 -1
  99. package/chunk/{BYhtrDV3.js → Co3idurS.js} +152 -148
  100. package/chunk/{BBVjSFnw.js → Cqyp4qni.js} +23 -19
  101. package/chunk/{Cbd50gx8.js → CvlD3aiv.js} +33 -33
  102. package/chunk/{IooeSKJJ.js → D3dcFbex.js} +19 -19
  103. package/chunk/{C5AQWbC4.js → DDDuw0Zi.js} +1 -1
  104. package/chunk/{gIbzjQ-X.js → DXZ8-ha7.js} +2 -2
  105. package/chunk/{C1D7T29r.js → DbLgopUR.js} +83 -76
  106. package/chunk/{BVLwPZis.js → DbPYtS7-.js} +31 -30
  107. package/chunk/{V6euPXVB.js → Dk6hL04k.js} +257 -251
  108. package/chunk/{BEDYCG-I.js → Dpzgtdt-.js} +18 -18
  109. package/chunk/{B16KHtX-.js → JpKOcIfl.js} +191 -185
  110. package/chunk/{D2HkyI6A.js → QFkhCtUr.js} +11 -11
  111. package/chunk/aqSmxUbY.js +116 -0
  112. package/chunk/{DSGRHf-1.js → rlfmXePI.js} +157 -156
  113. package/hooks/useMergeValue.js +1 -1
  114. package/icons.js +4 -6001
  115. package/index.js +439 -393
  116. package/locale/en-US.js +1 -1
  117. package/locale/tr-TR.js +1 -1
  118. package/locale/zh-CN.js +8 -0
  119. package/package.json +1 -1
  120. package/style.css +1 -1
  121. package/types/cascader/panel/Search.d.ts +1 -1
  122. package/types/color-picker/hooks/useColorPicker.d.ts +3 -8
  123. package/types/config-provider/interface.d.ts +1 -1
  124. package/types/date-picker/index.d.ts +7 -0
  125. package/types/form/interface.d.ts +1 -1
  126. package/types/index.d.ts +3 -3
  127. package/types/locale/interface.d.ts +1 -0
  128. package/types/locale/zh-CN.d.ts +14 -0
  129. package/types/message/index.d.ts +2 -2
  130. package/types/notification/index.d.ts +2 -2
  131. package/types/notification-base/index.d.ts +2 -2
  132. package/types/select/interface.d.ts +1 -0
  133. package/types/select-view/interface.d.ts +1 -0
  134. package/types/space/index.d.ts +2 -1
  135. package/types/tree/Context.d.ts +1 -0
  136. package/types/tree/Tree.d.ts +1 -1
  137. package/types/tree/index.d.ts +5 -4
  138. package/types/tree/interface.d.ts +1 -0
  139. package/types/utils/index.d.ts +1 -0
  140. package/types/utils/is.d.ts +2 -0
  141. package/types/utils/lodash.d.ts +14 -1
  142. package/types/verification-code/VerificationCode.d.ts +2 -1
  143. package/types/version/index.d.ts +1 -1
  144. package/utils/CSSTransition.js +1 -1
  145. package/utils/caseName.js +2 -18
  146. package/utils/contextHolder.js +1 -1
  147. package/utils/dayjs.js +50 -49
  148. package/utils/index.js +227 -185
  149. package/utils/is.js +125 -111
  150. package/utils/lodash.js +32 -6
  151. package/utils/reactDOM.js +1 -1
  152. package/chunk/-LZOUh53.js +0 -29
  153. package/chunk/-jdfq71f.js +0 -23
  154. package/chunk/B0GOLsj_.js +0 -58
  155. package/chunk/B7Zsp3gO.js +0 -29
  156. package/chunk/BDjXkzNj.js +0 -23
  157. package/chunk/BHn4xgbv.js +0 -209
  158. package/chunk/BLSiP_gg.js +0 -32
  159. package/chunk/BMJfSSLX.js +0 -23
  160. package/chunk/B_nfMl0e.js +0 -116
  161. package/chunk/BcS17Pzy.js +0 -66
  162. package/chunk/BdiEwtQO.js +0 -41
  163. package/chunk/Bpug_KxP.js +0 -34
  164. package/chunk/C1u_ckwU.js +0 -29
  165. package/chunk/C43Hv2Bl.js +0 -34
  166. package/chunk/C9vsih_D.js +0 -29
  167. package/chunk/CAfR2wLq.js +0 -41
  168. package/chunk/CAfecMDF.js +0 -46
  169. package/chunk/CKp4rZnD.js +0 -207
  170. package/chunk/CV2Aqv9q.js +0 -52
  171. package/chunk/CYdarMv9.js +0 -32
  172. package/chunk/C_S5Mdvd.js +0 -379
  173. package/chunk/CmB-TL7C.js +0 -46
  174. package/chunk/D-ER56Sf.js +0 -29
  175. package/chunk/D-aYnb6u.js +0 -41
  176. package/chunk/D3xQFJcO.js +0 -23
  177. package/chunk/DJcEys80.js +0 -29
  178. package/chunk/DLIm6rRJ.js +0 -29
  179. package/chunk/DOWEHtqM.js +0 -41
  180. package/chunk/DT37l12z.js +0 -40
  181. package/chunk/DW-B7npC.js +0 -23
  182. package/chunk/D_MTFBb0.js +0 -38
  183. package/chunk/Dx_5J4fO.js +0 -29
  184. package/chunk/Dy487FZ1.js +0 -118
  185. package/chunk/Uz-rNulO.js +0 -98
  186. package/chunk/cDZI_t6o.js +0 -52
  187. package/chunk/sScV-J56.js +0 -206
  188. 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, OptionProps, extraOptions } from '../interface';
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 | undefined;
25
+ alpha: number;
31
26
  };
32
- alpha: number | undefined;
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
- themeType?: 'light' | 'dark';
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/utils/types/validate';
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, default as transitionGroup } from "@unicom-cloud/react-transition-group";
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 { default as TinyColor, convertDecimalToHex, convertHexToDecimal, hslToRgb, hsvToRgb, numberInputToObject, parseIntFromHex, rgbToHex, rgbToHsl, rgbToHsv, rgbToRgb, rgbaToArgbHex, rgbaToHex } from "@unicom-cloud/tinycolor";
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";
@@ -1,6 +1,7 @@
1
1
  type CalendarType = {
2
2
  today: string;
3
3
  view: Record<string, any>;
4
+ quarter: Record<string, any>;
4
5
  month: {
5
6
  short: Record<string, any>;
6
7
  long: Record<string, any>;
@@ -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;
@@ -1,5 +1,5 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
- import BaseNotification from '../notification-base';
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 BaseNotification {
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 BaseNotification from '../notification-base';
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 BaseNotification {
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 BaseNotification extends Component<any, NotificationState> {
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 BaseNotification;
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;
@@ -1,4 +1,5 @@
1
+ import React from 'react';
1
2
  import type { SpaceProps, SpaceSize } from './interface';
2
- declare const SpaceComponent: import("react").ForwardRefExoticComponent<SpaceProps & import("react").RefAttributes<unknown>>;
3
+ declare const SpaceComponent: React.ForwardRefExoticComponent<SpaceProps & React.RefAttributes<unknown>>;
3
4
  export default SpaceComponent;
4
5
  export type { SpaceProps, SpaceSize };
@@ -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;
@@ -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
  };
@@ -1,7 +1,8 @@
1
- import Tree from './Tree';
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';
@@ -53,6 +53,7 @@ export interface TreeProps {
53
53
  multiple?: boolean;
54
54
  checkable?: boolean;
55
55
  draggable?: boolean;
56
+ animation?: boolean;
56
57
  allowDrop?: AllowDrop;
57
58
  selectable?: boolean;
58
59
  checkStrictly?: boolean;
@@ -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';
@@ -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,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
- export { cloneDeep, merge, mergeWith };
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: import("react").ForwardRefExoticComponent<VerificationCodeProps & import("react").RefAttributes<unknown>>;
7
+ declare const VerificationCode: React.ForwardRefExoticComponent<VerificationCodeProps & React.RefAttributes<unknown>>;
7
8
  export default VerificationCode;
@@ -1,2 +1,2 @@
1
- export declare const version = "2.64.1";
1
+ export declare const version = "2.65.0";
2
2
  export default version;
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { P as a } from "../chunk/BPZ-6HKJ.js";
2
+ import { P as a } from "../chunk/CLBavO5c.js";
3
3
  import "react";
4
4
  import "./is.js";
5
5
  import "./reactDOM.js";
package/utils/caseName.js CHANGED
@@ -1,20 +1,4 @@
1
- import p from "lodash/camelCase.js";
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
- x as default
3
+ r as default
20
4
  };
@@ -1,5 +1,5 @@
1
1
  import "react";
2
- import { C as a } from "../chunk/Bdh4XVuf.js";
2
+ import { C as a } from "../chunk/C5S_amaH.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