@unicom-cloud/ui 0.8.60 → 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.
- package/Affix.js +1 -1
- package/Alert.js +44 -40
- package/Anchor.js +1 -1
- package/AutoComplete.js +4 -4
- package/Avatar.js +1 -1
- package/BackTop.js +7 -7
- package/Badge.js +2 -2
- package/Breadcrumb.js +22 -22
- package/Button.js +2 -2
- package/Calendar.js +106 -104
- package/Card.js +1 -1
- package/Carousel.js +34 -33
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +12 -12
- package/Comment.js +1 -1
- package/ConfigProvider.js +2 -2
- package/Copy.js +16 -16
- package/DatePicker.js +165 -162
- package/Descriptions.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Drawer.js +1 -1
- package/Dropdown.js +9 -9
- package/Empty.js +2 -2
- package/Form.js +60 -54
- package/Grid.js +2 -2
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/Input.js +1 -1
- package/InputNumber.js +6 -6
- package/InputTag.js +1 -1
- package/Layout.js +2 -2
- package/Link.js +14 -14
- package/List.js +3 -3
- package/Mentions.js +3 -3
- package/Menu.js +1 -1
- package/Message.js +2 -2
- package/Modal.js +1 -1
- package/Notice.js +9 -3
- package/Notification.js +2 -2
- package/OverflowEllipsis.js +32 -32
- package/PageHeader.js +23 -22
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +7 -7
- package/Popover.js +1 -1
- package/Progress.js +14 -14
- package/Radio.js +2 -2
- package/Rate.js +43 -40
- package/ResizeBox.js +97 -96
- package/Result.js +15 -15
- package/Select.js +1 -1
- package/SelectView.js +295 -249
- package/Skeleton.js +1 -1
- package/Slider.js +25 -25
- package/Space.js +1 -1
- package/SpeechSynthesis.js +32 -29
- package/Spin.js +2 -2
- package/Statistic.js +1 -1
- package/Steps.js +11 -11
- package/Switch.js +3 -3
- package/Table.js +994 -991
- package/Tabs.js +1 -1
- package/Tag.js +68 -67
- package/TimePicker.js +17 -17
- package/Timeline.js +1 -1
- package/Tooltip.js +1 -1
- package/Transfer.js +47 -46
- package/Tree.js +2 -2
- package/TreeSelect.js +1 -1
- package/Trigger.js +3 -3
- package/Typography.js +1 -1
- package/Upload.js +2 -2
- package/VerificationCode.js +1 -1
- package/Version.js +1 -1
- package/Watermark.js +1 -1
- package/chunk/{V6euPXVB.js → -Z968QpN.js} +257 -251
- package/chunk/{IooeSKJJ.js → AqH9yP_J.js} +19 -19
- package/chunk/{cZiP8FvM.js → B0oDiPqE.js} +1 -1
- package/chunk/{B16KHtX-.js → B4-WpgY2.js} +191 -185
- package/chunk/{CuOl4X0X.js → B8SZFOjt.js} +1 -1
- package/chunk/{CbiWdbr_.js → BXWxA-tS.js} +35 -34
- package/chunk/{DpfUGhi4.js → BlNFmhNa.js} +288 -283
- package/chunk/{C1xMmQIZ.js → BmO1y0vr.js} +34 -34
- package/chunk/{Kbr6FzOG.js → BnqeQYIZ.js} +210 -186
- package/chunk/{BPZ-6HKJ.js → Bp3XomF8.js} +1 -2
- package/chunk/BsWphzcT.js +20 -0
- package/chunk/{RMBPs_Ry.js → C4eJ9vCf.js} +4 -3
- package/chunk/{BNHrEI0Y.js → C6fEFlPt.js} +52 -48
- package/chunk/C8o-VGyc.js +376 -0
- package/chunk/{eK7lxdak.js → CDJ1EnJ2.js} +8 -8
- package/chunk/{C5AQWbC4.js → CHyuuVxl.js} +1 -1
- package/chunk/{B2vORJQ8.js → CJnshq6A.js} +13 -13
- package/chunk/CT1lZ7ss.js +116 -0
- package/chunk/{Bdh4XVuf.js → CV1kLw5Z.js} +290 -281
- package/chunk/{DmUhn9ib.js → CazXy0r4.js} +54 -53
- package/chunk/{BBVjSFnw.js → Cqyp4qni.js} +23 -19
- package/chunk/{BJ_7JTqC.js → D3VMG9V1.js} +1 -1
- package/chunk/{D2HkyI6A.js → DGasAUHE.js} +2 -2
- package/chunk/{YIlBPVAs.js → DRQ1v6Ux.js} +1 -1
- package/chunk/{DhBo0pPJ.js → DRp7voqz.js} +119 -118
- package/chunk/{gIbzjQ-X.js → Dtm4BmKB.js} +2 -2
- package/chunk/{BEDYCG-I.js → KchYsivk.js} +18 -18
- package/chunk/{Cbd50gx8.js → Wum88vrW.js} +33 -33
- package/chunk/{BjSHZA0m.js → mfn4EgmQ.js} +1 -1
- package/chunk/{BYhtrDV3.js → nbEvdwT0.js} +152 -148
- package/chunk/{C1D7T29r.js → qpd2axxs.js} +83 -76
- package/chunk/{BVLwPZis.js → tOFzwzpT.js} +31 -30
- package/chunk/{DSGRHf-1.js → yESVS-qX.js} +157 -156
- package/hooks/useMergeValue.js +1 -1
- package/icons.js +4 -6001
- package/index.js +420 -392
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/cascader/panel/Search.d.ts +1 -1
- package/types/config-provider/interface.d.ts +1 -1
- package/types/form/interface.d.ts +1 -1
- package/types/index.d.ts +1 -1
- package/types/message/index.d.ts +2 -2
- package/types/notification/index.d.ts +2 -2
- package/types/notification-base/index.d.ts +2 -2
- package/types/select/interface.d.ts +1 -0
- package/types/select-view/interface.d.ts +1 -0
- package/types/table/interface.d.ts +1 -0
- package/types/tree/Context.d.ts +1 -0
- package/types/tree/Tree.d.ts +1 -1
- package/types/tree/index.d.ts +5 -4
- package/types/tree/interface.d.ts +1 -0
- package/types/utils/index.d.ts +1 -0
- package/types/utils/lodash.d.ts +14 -1
- package/types/version/index.d.ts +1 -1
- package/utils/CSSTransition.js +1 -1
- package/utils/caseName.js +2 -18
- package/utils/contextHolder.js +1 -1
- package/utils/index.js +220 -191
- package/utils/is.js +68 -67
- package/utils/lodash.js +32 -6
- package/utils/reactDOM.js +1 -1
- package/chunk/-LZOUh53.js +0 -29
- package/chunk/-jdfq71f.js +0 -23
- package/chunk/B0GOLsj_.js +0 -58
- package/chunk/B7Zsp3gO.js +0 -29
- package/chunk/BDjXkzNj.js +0 -23
- package/chunk/BHn4xgbv.js +0 -209
- package/chunk/BLSiP_gg.js +0 -32
- package/chunk/BMJfSSLX.js +0 -23
- package/chunk/B_nfMl0e.js +0 -116
- package/chunk/BcS17Pzy.js +0 -66
- package/chunk/BdiEwtQO.js +0 -41
- package/chunk/Bpug_KxP.js +0 -34
- package/chunk/C1u_ckwU.js +0 -29
- package/chunk/C43Hv2Bl.js +0 -34
- package/chunk/C9vsih_D.js +0 -29
- package/chunk/CAfR2wLq.js +0 -41
- package/chunk/CAfecMDF.js +0 -46
- package/chunk/CKp4rZnD.js +0 -207
- package/chunk/CV2Aqv9q.js +0 -52
- package/chunk/CYdarMv9.js +0 -32
- package/chunk/C_S5Mdvd.js +0 -379
- package/chunk/CmB-TL7C.js +0 -46
- package/chunk/D-ER56Sf.js +0 -29
- package/chunk/D-aYnb6u.js +0 -41
- package/chunk/D3xQFJcO.js +0 -23
- package/chunk/DJcEys80.js +0 -29
- package/chunk/DLIm6rRJ.js +0 -29
- package/chunk/DOWEHtqM.js +0 -41
- package/chunk/DT37l12z.js +0 -40
- package/chunk/DW-B7npC.js +0 -23
- package/chunk/D_MTFBb0.js +0 -38
- package/chunk/Dx_5J4fO.js +0 -29
- package/chunk/Dy487FZ1.js +0 -118
- package/chunk/Uz-rNulO.js +0 -98
- package/chunk/cDZI_t6o.js +0 -52
- package/chunk/sScV-J56.js +0 -206
- package/chunk/wI2I1qb0.js +0 -23
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { NodeProps } from '../../cascader/base/node';
|
|
3
3
|
import Store from '../../cascader/base/store';
|
|
4
|
-
import { CascaderProps,
|
|
4
|
+
import { CascaderProps, extraOptions, OptionProps } from '../interface';
|
|
5
5
|
export declare const getLegalIndex: (currentIndex: any, maxIndex: any) => any;
|
|
6
6
|
export type SearchPanelProps<T> = {
|
|
7
7
|
store?: Store<T>;
|
|
@@ -153,7 +153,7 @@ export interface ConfigProviderProps {
|
|
|
153
153
|
componentConfig?: ComponentConfig;
|
|
154
154
|
locale?: Locale;
|
|
155
155
|
theme?: ThemeConfig;
|
|
156
|
-
|
|
156
|
+
appearance?: 'light' | 'dark';
|
|
157
157
|
size?: 'mini' | 'small' | 'default' | 'large';
|
|
158
158
|
prefixCls?: string;
|
|
159
159
|
getPrefixCls?: (componentName: string, customPrefix?: string) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Options as ScrollIntoViewOptions } from '@unicom-cloud/scroll-into-view-if-needed';
|
|
2
|
-
import { ValidateMessagesTemplateType } from '@unicom-cloud/
|
|
2
|
+
import type { ValidateMessagesTemplateType } from '@unicom-cloud/validate/types';
|
|
3
3
|
import React, { CSSProperties, FormHTMLAttributes, HTMLAttributes, ReactElement, ReactNode } from 'react';
|
|
4
4
|
import { JSX } from 'react/jsx-runtime';
|
|
5
5
|
import { ColProps } from '../grid/Col';
|
package/types/index.d.ts
CHANGED
|
@@ -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
|
|
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";
|
package/types/message/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import NotificationBase from '../notification-base';
|
|
3
3
|
import type { MessageProps } from './interface';
|
|
4
4
|
import { MessageHookReturnType } from './interface';
|
|
5
5
|
export type ConfigProps = {
|
|
@@ -14,7 +14,7 @@ export interface MessageType {
|
|
|
14
14
|
(): void;
|
|
15
15
|
}
|
|
16
16
|
declare function addInstance(noticeProps: MessageProps): () => void;
|
|
17
|
-
declare class Message extends
|
|
17
|
+
declare class Message extends NotificationBase {
|
|
18
18
|
static useMessage: (config?: ConfigProps) => [MessageHookReturnType, JSX.Element];
|
|
19
19
|
static success: (config: MessageProps | string) => MessageType;
|
|
20
20
|
static info: (config: MessageProps | string) => MessageType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactInstance } from 'react';
|
|
2
2
|
import { JSX } from 'react/jsx-runtime';
|
|
3
|
-
import
|
|
3
|
+
import NotificationBase from '../notification-base';
|
|
4
4
|
import type { NotificationProps } from './interface';
|
|
5
5
|
import { NotificationHookReturnType } from './interface';
|
|
6
6
|
export type ConfigProps = {
|
|
@@ -10,7 +10,7 @@ export type ConfigProps = {
|
|
|
10
10
|
duration?: number;
|
|
11
11
|
rtl?: boolean;
|
|
12
12
|
};
|
|
13
|
-
declare class Notification extends
|
|
13
|
+
declare class Notification extends NotificationBase {
|
|
14
14
|
static useNotification: (config?: ConfigProps) => [NotificationHookReturnType, JSX.Element];
|
|
15
15
|
static success: (config: NotificationProps) => ReactInstance;
|
|
16
16
|
static info: (config: NotificationProps) => ReactInstance;
|
|
@@ -5,11 +5,11 @@ interface NotificationState {
|
|
|
5
5
|
}[];
|
|
6
6
|
position?: string;
|
|
7
7
|
}
|
|
8
|
-
declare class
|
|
8
|
+
declare class NotificationBase extends Component<any, NotificationState> {
|
|
9
9
|
constructor(props: any);
|
|
10
10
|
add: (noticeProps: any) => string;
|
|
11
11
|
update: (newNotice: any) => void;
|
|
12
12
|
remove(id: string): void;
|
|
13
13
|
clear: () => void;
|
|
14
14
|
}
|
|
15
|
-
export default
|
|
15
|
+
export default NotificationBase;
|
|
@@ -21,6 +21,7 @@ export interface SelectProps extends SelectViewCommonProps {
|
|
|
21
21
|
value?: string | string[] | number | number[] | LabeledValue | LabeledValue[];
|
|
22
22
|
inputValue?: string;
|
|
23
23
|
mode?: 'multiple' | 'tags';
|
|
24
|
+
allowCheckAll?: boolean;
|
|
24
25
|
options?: (string | number | {
|
|
25
26
|
label: ReactNode | string;
|
|
26
27
|
value: string | number;
|
|
@@ -22,6 +22,7 @@ export interface SelectViewCommonProps extends Pick<InputTagProps<unknown>, 'ani
|
|
|
22
22
|
maxTagCount?: number | 'responsive' | {
|
|
23
23
|
count: number | 'responsive';
|
|
24
24
|
render?: (invisibleTagCount: number) => ReactNode;
|
|
25
|
+
showPopover?: boolean;
|
|
25
26
|
};
|
|
26
27
|
prefix?: ReactNode;
|
|
27
28
|
suffixIcon?: ReactNode;
|
|
@@ -63,6 +63,7 @@ export interface TableProps<T = any> {
|
|
|
63
63
|
pagePosition?: 'br' | 'bl' | 'tr' | 'tl' | 'topCenter' | 'bottomCenter';
|
|
64
64
|
childrenColumnName?: string;
|
|
65
65
|
indentSize?: number;
|
|
66
|
+
header?: (currentPageDate: any) => ReactNode;
|
|
66
67
|
footer?: (currentPageDate: any) => ReactNode;
|
|
67
68
|
virtualized?: boolean;
|
|
68
69
|
virtualListProps?: AvailableVirtualListProps;
|
package/types/tree/Context.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare const TreeContext: import("react").Context<{
|
|
|
19
19
|
getNodeProps?: <T extends NodeProps | NodeProps[]>(nodes: T, dataSet?: any) => T;
|
|
20
20
|
getTreeState?: () => TreeState;
|
|
21
21
|
onExpandEnd?: (key: string) => void;
|
|
22
|
+
animation?: boolean;
|
|
22
23
|
onNodeDragStart?: (e: DragEvent<HTMLSpanElement>, nodeProps: NodeProps) => void;
|
|
23
24
|
onNodeDragEnd?: (e: DragEvent<HTMLSpanElement>, nodeProps: NodeProps) => void;
|
|
24
25
|
onNodeDragOver?: (e: DragEvent<HTMLSpanElement>, nodeProps: NodeProps, position: any) => void;
|
package/types/tree/Tree.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { NodeInstance, NodeProps, TreeDataType, TreeProps, TreeState } from
|
|
|
4
4
|
export type key2nodePropsType = {
|
|
5
5
|
[key: string]: TreeDataType;
|
|
6
6
|
};
|
|
7
|
-
declare const needMergeKeys: readonly ["style", "className", "height", "size", "blockNode", "autoExpandParent", "checkedStrategy", "fieldNames", "icons", "virtualListProps", "showLine", "selectable", "allowDrop", "actionOnClick"];
|
|
7
|
+
declare const needMergeKeys: readonly ["style", "className", "height", "size", "blockNode", "autoExpandParent", "checkedStrategy", "fieldNames", "icons", "virtualListProps", "showLine", "selectable", "allowDrop", "actionOnClick", "animation"];
|
|
8
8
|
type MergedPropsType = {
|
|
9
9
|
[key in (typeof needMergeKeys)[number]]?: TreeProps[key];
|
|
10
10
|
};
|
package/types/tree/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default Tree;
|
|
3
|
-
import type { TreeDataType } from './interface';
|
|
4
|
-
export type { TreeDataType, NodeProps as TreeNodeProps, TreeProps, } from './interface';
|
|
1
|
+
import { NodeProps, TreeDataType, TreeProps } from './interface';
|
|
5
2
|
export type key2nodePropsType = {
|
|
6
3
|
[key: string]: TreeDataType;
|
|
7
4
|
};
|
|
5
|
+
export type * from './interface';
|
|
6
|
+
export type { TreeDataType, NodeProps as TreeNodeProps, TreeProps };
|
|
7
|
+
export * from './Tree';
|
|
8
|
+
export { default } from './Tree';
|
package/types/utils/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './reactDOM';
|
|
|
14
14
|
export * from './responsiveObserve';
|
|
15
15
|
export * from './style';
|
|
16
16
|
export * from './type';
|
|
17
|
+
export { default as caseName } from './caseName';
|
|
17
18
|
export { default as className } from './className';
|
|
18
19
|
export { default as ContextHolderElement } from './contextHolder';
|
|
19
20
|
export { default as clipboardCopy, default as copy } from './copy';
|
package/types/utils/lodash.d.ts
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
|
+
import camelCase from 'lodash/camelCase';
|
|
2
|
+
import capitalize from 'lodash/capitalize';
|
|
1
3
|
import cloneDeep from 'lodash/cloneDeep';
|
|
4
|
+
import debounce from 'lodash/debounce';
|
|
5
|
+
import get from 'lodash/get';
|
|
6
|
+
import has from 'lodash/has';
|
|
7
|
+
import kebabCase from 'lodash/kebabCase';
|
|
2
8
|
import merge from 'lodash/merge';
|
|
3
9
|
import mergeWith from 'lodash/mergeWith';
|
|
4
|
-
|
|
10
|
+
import set from 'lodash/set';
|
|
11
|
+
import setWith from 'lodash/setWith';
|
|
12
|
+
import snakeCase from 'lodash/snakeCase';
|
|
13
|
+
import startCase from 'lodash/startCase';
|
|
14
|
+
import throttle from 'lodash/throttle';
|
|
15
|
+
import uniq from 'lodash/uniq';
|
|
16
|
+
import upperFirst from 'lodash/upperFirst';
|
|
17
|
+
export { camelCase, capitalize, cloneDeep, debounce, get, has, kebabCase, merge, mergeWith, set, setWith, snakeCase, startCase, throttle, uniq, upperFirst, };
|
package/types/version/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "2.
|
|
1
|
+
export declare const version = "2.65.0";
|
|
2
2
|
export default version;
|
package/utils/CSSTransition.js
CHANGED
package/utils/caseName.js
CHANGED
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import s from "lodash/capitalize.js";
|
|
3
|
-
import f from "lodash/kebabCase.js";
|
|
4
|
-
import n from "lodash/snakeCase.js";
|
|
5
|
-
import C from "lodash/startCase.js";
|
|
6
|
-
import N from "lodash/upperFirst.js";
|
|
7
|
-
function x(m) {
|
|
8
|
-
const o = f(m), r = s(m), e = p(m), t = n(m), a = C(m), i = N(e);
|
|
9
|
-
return {
|
|
10
|
-
kebabCaseName: o,
|
|
11
|
-
capitalizeName: r,
|
|
12
|
-
camelCaseName: e,
|
|
13
|
-
snakeCaseName: t,
|
|
14
|
-
startCaseName: a,
|
|
15
|
-
ComponentCaseName: i
|
|
16
|
-
};
|
|
17
|
-
}
|
|
1
|
+
import { d as r } from "../chunk/BsWphzcT.js";
|
|
18
2
|
export {
|
|
19
|
-
|
|
3
|
+
r as default
|
|
20
4
|
};
|
package/utils/contextHolder.js
CHANGED