@unicom-cloud/ui 0.8.61 → 0.8.62

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 (179) 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 +165 -162
  21. package/Descriptions.js +1 -1
  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 +1 -1
  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/{V6euPXVB.js → -Z968QpN.js} +257 -251
  81. package/chunk/{IooeSKJJ.js → AqH9yP_J.js} +19 -19
  82. package/chunk/{cZiP8FvM.js → B0oDiPqE.js} +1 -1
  83. package/chunk/{B16KHtX-.js → B4-WpgY2.js} +191 -185
  84. package/chunk/{CuOl4X0X.js → B8SZFOjt.js} +1 -1
  85. package/chunk/{CbiWdbr_.js → BXWxA-tS.js} +35 -34
  86. package/chunk/{DpfUGhi4.js → BlNFmhNa.js} +288 -283
  87. package/chunk/{C1xMmQIZ.js → BmO1y0vr.js} +34 -34
  88. package/chunk/{Kbr6FzOG.js → BnqeQYIZ.js} +210 -186
  89. package/chunk/{BPZ-6HKJ.js → Bp3XomF8.js} +1 -2
  90. package/chunk/BsWphzcT.js +20 -0
  91. package/chunk/{RMBPs_Ry.js → C4eJ9vCf.js} +4 -3
  92. package/chunk/{BNHrEI0Y.js → C6fEFlPt.js} +52 -48
  93. package/chunk/C8o-VGyc.js +376 -0
  94. package/chunk/{eK7lxdak.js → CDJ1EnJ2.js} +8 -8
  95. package/chunk/{C5AQWbC4.js → CHyuuVxl.js} +1 -1
  96. package/chunk/{B2vORJQ8.js → CJnshq6A.js} +13 -13
  97. package/chunk/CT1lZ7ss.js +116 -0
  98. package/chunk/{Bdh4XVuf.js → CV1kLw5Z.js} +290 -281
  99. package/chunk/{DmUhn9ib.js → CazXy0r4.js} +54 -53
  100. package/chunk/{BBVjSFnw.js → Cqyp4qni.js} +23 -19
  101. package/chunk/{BJ_7JTqC.js → D3VMG9V1.js} +1 -1
  102. package/chunk/{D2HkyI6A.js → DGasAUHE.js} +2 -2
  103. package/chunk/{YIlBPVAs.js → DRQ1v6Ux.js} +1 -1
  104. package/chunk/{DhBo0pPJ.js → DRp7voqz.js} +119 -118
  105. package/chunk/{gIbzjQ-X.js → Dtm4BmKB.js} +2 -2
  106. package/chunk/{BEDYCG-I.js → KchYsivk.js} +18 -18
  107. package/chunk/{Cbd50gx8.js → Wum88vrW.js} +33 -33
  108. package/chunk/{BjSHZA0m.js → mfn4EgmQ.js} +1 -1
  109. package/chunk/{BYhtrDV3.js → nbEvdwT0.js} +152 -148
  110. package/chunk/{C1D7T29r.js → qpd2axxs.js} +83 -76
  111. package/chunk/{BVLwPZis.js → tOFzwzpT.js} +31 -30
  112. package/chunk/{DSGRHf-1.js → yESVS-qX.js} +157 -156
  113. package/hooks/useMergeValue.js +1 -1
  114. package/icons.js +4 -6001
  115. package/index.js +420 -392
  116. package/locale/en-US.js +1 -1
  117. package/locale/tr-TR.js +1 -1
  118. package/package.json +1 -1
  119. package/style.css +1 -1
  120. package/types/cascader/panel/Search.d.ts +1 -1
  121. package/types/config-provider/interface.d.ts +1 -1
  122. package/types/form/interface.d.ts +1 -1
  123. package/types/index.d.ts +1 -1
  124. package/types/message/index.d.ts +2 -2
  125. package/types/notification/index.d.ts +2 -2
  126. package/types/notification-base/index.d.ts +2 -2
  127. package/types/select/interface.d.ts +1 -0
  128. package/types/select-view/interface.d.ts +1 -0
  129. package/types/tree/Context.d.ts +1 -0
  130. package/types/tree/Tree.d.ts +1 -1
  131. package/types/tree/index.d.ts +5 -4
  132. package/types/tree/interface.d.ts +1 -0
  133. package/types/utils/index.d.ts +1 -0
  134. package/types/utils/lodash.d.ts +14 -1
  135. package/types/version/index.d.ts +1 -1
  136. package/utils/CSSTransition.js +1 -1
  137. package/utils/caseName.js +2 -18
  138. package/utils/contextHolder.js +1 -1
  139. package/utils/index.js +220 -191
  140. package/utils/is.js +68 -67
  141. package/utils/lodash.js +32 -6
  142. package/utils/reactDOM.js +1 -1
  143. package/chunk/-LZOUh53.js +0 -29
  144. package/chunk/-jdfq71f.js +0 -23
  145. package/chunk/B0GOLsj_.js +0 -58
  146. package/chunk/B7Zsp3gO.js +0 -29
  147. package/chunk/BDjXkzNj.js +0 -23
  148. package/chunk/BHn4xgbv.js +0 -209
  149. package/chunk/BLSiP_gg.js +0 -32
  150. package/chunk/BMJfSSLX.js +0 -23
  151. package/chunk/B_nfMl0e.js +0 -116
  152. package/chunk/BcS17Pzy.js +0 -66
  153. package/chunk/BdiEwtQO.js +0 -41
  154. package/chunk/Bpug_KxP.js +0 -34
  155. package/chunk/C1u_ckwU.js +0 -29
  156. package/chunk/C43Hv2Bl.js +0 -34
  157. package/chunk/C9vsih_D.js +0 -29
  158. package/chunk/CAfR2wLq.js +0 -41
  159. package/chunk/CAfecMDF.js +0 -46
  160. package/chunk/CKp4rZnD.js +0 -207
  161. package/chunk/CV2Aqv9q.js +0 -52
  162. package/chunk/CYdarMv9.js +0 -32
  163. package/chunk/C_S5Mdvd.js +0 -379
  164. package/chunk/CmB-TL7C.js +0 -46
  165. package/chunk/D-ER56Sf.js +0 -29
  166. package/chunk/D-aYnb6u.js +0 -41
  167. package/chunk/D3xQFJcO.js +0 -23
  168. package/chunk/DJcEys80.js +0 -29
  169. package/chunk/DLIm6rRJ.js +0 -29
  170. package/chunk/DOWEHtqM.js +0 -41
  171. package/chunk/DT37l12z.js +0 -40
  172. package/chunk/DW-B7npC.js +0 -23
  173. package/chunk/D_MTFBb0.js +0 -38
  174. package/chunk/Dx_5J4fO.js +0 -29
  175. package/chunk/Dy487FZ1.js +0 -118
  176. package/chunk/Uz-rNulO.js +0 -98
  177. package/chunk/cDZI_t6o.js +0 -52
  178. package/chunk/sScV-J56.js +0 -206
  179. 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>;
@@ -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,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
@@ -73,7 +73,7 @@ export { default as VerificationCode } from "./verification-code";
73
73
  export { default as version } from "./version";
74
74
  export { default as Watermark } from "./watermark";
75
75
  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";
76
+ export { CSSTransition, ReplaceTransition, SwitchTransition, Transition, TransitionGroup } from "@unicom-cloud/react-transition-group";
77
77
  export { default as scrollIntoView, default as scrollIntoViewIfNeeded } from "@unicom-cloud/scroll-into-view-if-needed";
78
78
  export { default as TinyColor, convertDecimalToHex, convertHexToDecimal, hslToRgb, hsvToRgb, numberInputToObject, parseIntFromHex, rgbToHex, rgbToHsl, rgbToHsv, rgbToRgb, rgbaToArgbHex, rgbaToHex } from "@unicom-cloud/tinycolor";
79
79
  export { easing, default as tween } from "@unicom-cloud/tween";
@@ -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;
@@ -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,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,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/Bp3XomF8.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/CV1kLw5Z.js";
3
3
  export {
4
4
  a as default
5
5
  };