@unicom-cloud/ui 0.8.52 → 0.8.53
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 +41 -40
- package/Alert.js +2 -2
- package/Anchor.js +1 -1
- package/AutoComplete.js +3 -3
- package/Avatar.js +1 -1
- package/BackTop.js +2 -2
- package/Badge.js +2 -2
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +3 -3
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +3 -3
- package/Comment.js +1 -1
- package/ConfigProvider.js +2 -2
- package/Copy.js +1 -1
- package/DatePicker.js +1268 -1233
- package/Descriptions.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Drawer.js +1 -1
- package/Dropdown.js +1 -1
- package/Empty.js +1 -1
- package/Form.js +122 -117
- package/Grid.js +86 -83
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/Input.js +1 -1
- package/InputNumber.js +2 -2
- package/InputTag.js +1 -1
- package/Layout.js +2 -2
- package/Link.js +1 -1
- 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 +1 -1
- package/Notification.js +2 -2
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/Radio.js +2 -2
- package/Rate.js +1 -1
- package/ResizeBox.js +33 -32
- package/Result.js +1 -1
- package/Select.js +1 -1
- package/SelectView.js +142 -141
- package/Skeleton.js +1 -1
- package/Slider.js +2 -2
- package/Space.js +1 -1
- package/Spin.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +15 -14
- package/Table.js +141 -133
- package/Tabs.js +1 -1
- package/Tag.js +111 -82
- package/TimePicker.js +3 -3
- package/Timeline.js +1 -1
- package/Tooltip.js +1 -1
- package/Transfer.js +3 -3
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +31 -30
- package/Typography.js +25 -25
- package/Upload.js +1 -1
- package/VerificationCode.js +1 -1
- package/Version.js +1 -1
- package/Watermark.js +1 -1
- package/chunk/{CoevJNNj.js → -sV-N67P.js} +1 -1
- package/chunk/{CkIWpIl6.js → 8hWViek4.js} +1 -1
- package/chunk/{Ct7mcZuW.js → B8IzaBdN.js} +1 -1
- package/chunk/{DCe3olyi.js → BEVtQ2QL.js} +101 -99
- package/chunk/{tkU8zIK4.js → BEiJmFHq.js} +1 -1
- package/chunk/{CQvJK4kb.js → BOUZ7hSf.js} +12 -12
- package/chunk/{DMeJAY1S.js → BYMRs7t5.js} +6 -5
- package/chunk/{DWGwYNvC.js → CBaVCRtG.js} +2 -2
- package/chunk/{5PpvDpEt.js → CLU6Le34.js} +2 -2
- package/chunk/{dhljdm11.js → COWsswcW.js} +64 -63
- package/chunk/{B9nYZhXo.js → CRxPui7e.js} +2 -2
- package/chunk/CYyPBcnp.js +970 -0
- package/chunk/{DfvdYCUz.js → CccPQyYX.js} +1 -1
- package/chunk/{DUX5Hw8l.js → CmEyvBdT.js} +3 -3
- package/chunk/{Cku5-xbe.js → Cwp65v9h.js} +47 -46
- package/chunk/{I0bfWb5y.js → CyVLxv_U.js} +95 -93
- package/chunk/{Cw63stMm.js → Cz65nXZD.js} +18 -18
- package/chunk/D3pUE3-b.js +445 -0
- package/chunk/{9AJ-uN8F.js → D6BMh1k4.js} +1 -1
- package/chunk/{BHWpeAbb.js → DGK45cuc.js} +1 -1
- package/chunk/{CfqAfcA3.js → DNyP-r9G.js} +2 -2
- package/chunk/DQ3uFRJD.js +892 -0
- package/chunk/{4XXtB4ZV.js → DY9WA4bf.js} +1 -1
- package/chunk/{DG5zSZDd.js → DdVbiC4t.js} +2 -2
- package/chunk/{n58kSv9T.js → DfMf16uZ.js} +11 -5
- package/chunk/{z7sBNzI4.js → Lyg-9NEt.js} +17 -17
- package/chunk/{BXZYc88i.js → PRN8SqRA.js} +3 -3
- package/chunk/bcn23eHi.js +277 -0
- package/index.js +408 -346
- package/package.json +1 -23
- package/style.css +1 -1
- package/types/color-picker/colors.d.ts +1 -1
- package/types/date-picker/Picker.d.ts +4 -3
- package/types/date-picker/PickerRange.d.ts +3 -7
- package/types/date-picker/interface.d.ts +9 -1
- package/types/grid/index.d.ts +2 -1
- package/types/index.d.ts +1 -0
- package/types/pagination/interface.d.ts +1 -0
- package/types/picker/InputRange.d.ts +1 -1
- package/types/select/Select.d.ts +1 -1
- package/types/tag/interface.d.ts +7 -3
- package/types/utils/CSSTransition.d.ts +2 -1
- package/types/utils/is.d.ts +4 -17
- package/types/version/index.d.ts +1 -1
- package/utils/CSSTransition.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/is.js +102 -104
- package/utils/reactDOM.js +19 -19
- package/chunk/C61BEbHK.js +0 -263
- package/chunk/DXMtLuTP.js +0 -443
- package/chunk/m3_n9fBe.js +0 -961
- package/chunk/uUGMUxt_.js +0 -474
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const colors: FlatArray<boolean | string[], 0 | 3 | 2 | 1 | 13 | 8 | 9 | 6 | -1 | 20 | 4 | 16 |
|
|
1
|
+
export declare const colors: FlatArray<boolean | string[], 0 | 3 | 2 | 1 | 17 | 18 | 13 | 8 | 9 | 6 | -1 | 20 | 4 | 16 | 10 | 5 | 7 | 11 | 12 | 14 | 15 | 19>[];
|
|
2
2
|
export default colors;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Dayjs } from 'dayjs';
|
|
2
|
-
import { ReactElement } from 'react';
|
|
2
|
+
import React, { ReactElement } from 'react';
|
|
3
3
|
import { TimePickerProps } from '../time-picker/interface';
|
|
4
4
|
import type { CalendarValue, ModeType, PickerProps } from './interface';
|
|
5
|
+
import { DatePickerHandle } from './interface';
|
|
5
6
|
interface InnerPickerProps extends PickerProps {
|
|
6
7
|
disabledDate?: (current: Dayjs) => boolean;
|
|
7
8
|
picker?: ReactElement;
|
|
@@ -14,5 +15,5 @@ interface InnerPickerProps extends PickerProps {
|
|
|
14
15
|
showNowBtn?: boolean;
|
|
15
16
|
mode: ModeType;
|
|
16
17
|
}
|
|
17
|
-
declare const
|
|
18
|
-
export default
|
|
18
|
+
declare const PickerComponent: React.ForwardRefExoticComponent<InnerPickerProps & React.RefAttributes<DatePickerHandle>>;
|
|
19
|
+
export default PickerComponent;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type
|
|
3
|
-
|
|
4
|
-
(baseProps: RangePickerProps): import("react/jsx-dev-runtime").JSX.Element;
|
|
5
|
-
displayName: string;
|
|
6
|
-
}>;
|
|
7
|
-
export default _default;
|
|
1
|
+
import { RangePickerHandle } from './interface';
|
|
2
|
+
declare const PickerComponent: import("react").ForwardRefExoticComponent<import("./interface").BaseRangePickerProps & import("../utils/type").Omit<import("./interface").PickerProps, "onChange" | "onSelect" | "onOk" | "inputProps" | "defaultPickerValue" | "pickerValue" | "onPickerValueChange"> & import("react").RefAttributes<RangePickerHandle>>;
|
|
3
|
+
export default PickerComponent;
|
|
@@ -150,10 +150,18 @@ export interface ShortcutsProps {
|
|
|
150
150
|
nowText?: ReactNode;
|
|
151
151
|
showTime?: boolean | TimePickerProps;
|
|
152
152
|
}
|
|
153
|
+
export type DatePickerHandle = {
|
|
154
|
+
focus: () => void;
|
|
155
|
+
blur: () => void;
|
|
156
|
+
};
|
|
157
|
+
export type RangePickerHandle = {
|
|
158
|
+
focus: (index?: number) => void;
|
|
159
|
+
blur: () => void;
|
|
160
|
+
};
|
|
153
161
|
export interface DatePickerDecorator extends React.ComponentClass<DatePickerProps> {
|
|
154
162
|
MonthPicker: React.ComponentClass<MonthPickerProps>;
|
|
155
163
|
YearPicker: React.ComponentClass<YearPickerProps>;
|
|
156
164
|
WeekPicker: React.ComponentClass<WeekPickerProps>;
|
|
157
165
|
QuarterPicker: React.ComponentClass<QuarterPickerProps>;
|
|
158
|
-
RangePicker: React.
|
|
166
|
+
RangePicker: React.ForwardRefExoticComponent<RangePickerProps & React.RefAttributes<RangePickerHandle>>;
|
|
159
167
|
}
|
package/types/grid/index.d.ts
CHANGED
|
@@ -5,8 +5,9 @@ import GridItem from './grid-item';
|
|
|
5
5
|
declare const Grid: typeof OriginGrid & {
|
|
6
6
|
Col: typeof Col;
|
|
7
7
|
Row: typeof Row;
|
|
8
|
+
Item: typeof GridItem;
|
|
8
9
|
GridItem: typeof GridItem;
|
|
9
10
|
};
|
|
10
|
-
export { Col, Row };
|
|
11
|
+
export { Col, GridItem, Row };
|
|
11
12
|
export default Grid;
|
|
12
13
|
export type { ColProps, GridProps, ResponsiveValue, RowProps, } from './interface';
|
package/types/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as computeScrollIntoView } from "@unicom-cloud/compute-scroll-into-view";
|
|
2
2
|
export { default as scrollIntoViewIfNeeded } from "@unicom-cloud/scroll-into-view-if-needed";
|
|
3
3
|
export * from "./hooks";
|
|
4
|
+
export * from "./utils/is";
|
|
4
5
|
export { default as className } from "./utils/className";
|
|
5
6
|
export { default as Affix } from "./affix";
|
|
6
7
|
export { default as Alert } from "./alert";
|
|
@@ -20,7 +20,7 @@ export interface DateInputRangeProps {
|
|
|
20
20
|
onChange?: (e: any) => void;
|
|
21
21
|
inputValue?: string;
|
|
22
22
|
separator?: ReactNode;
|
|
23
|
-
changeFocusedInputIndex?: (index: number) => void;
|
|
23
|
+
changeFocusedInputIndex?: (index: number, silent?: boolean) => void;
|
|
24
24
|
focusedInputIndex?: number;
|
|
25
25
|
isPlaceholder?: boolean;
|
|
26
26
|
prefix?: ReactNode;
|
package/types/select/Select.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { SelectHandle, SelectProps } from './interface';
|
|
2
3
|
import OptGroup from './OptGroup';
|
|
3
4
|
import Option from './Option';
|
|
4
|
-
import type { SelectHandle, SelectProps } from './interface';
|
|
5
5
|
declare const ForwardRefSelect: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<SelectHandle>>;
|
|
6
6
|
declare const SelectComponent: typeof ForwardRefSelect & {
|
|
7
7
|
Option: typeof Option;
|
package/types/tag/interface.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import { CSSProperties, HTMLAttributes
|
|
1
|
+
import { CSSProperties, HTMLAttributes } from 'react';
|
|
2
|
+
import { PopconfirmProps } from '../popconfirm';
|
|
2
3
|
export interface TagProps extends Omit<HTMLAttributes<HTMLDivElement>, 'className' | 'ref'> {
|
|
3
4
|
style?: CSSProperties;
|
|
4
5
|
className?: string | string[];
|
|
5
6
|
color?: string;
|
|
6
|
-
bordered?:
|
|
7
|
+
bordered?: boolean;
|
|
7
8
|
size?: 'small' | 'default' | 'medium' | 'large';
|
|
8
9
|
visible?: boolean;
|
|
9
|
-
closable?: boolean
|
|
10
|
+
closable?: boolean | {
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
popconfirm?: PopconfirmProps;
|
|
13
|
+
};
|
|
10
14
|
checkable?: boolean;
|
|
11
15
|
defaultChecked?: boolean;
|
|
12
16
|
checked?: boolean;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { CSSTransition } from '@unicom-cloud/react-transition-group';
|
|
2
|
-
|
|
2
|
+
declare function PqbCSSTransition(props: CSSTransition): import("react/jsx-dev-runtime").JSX.Element;
|
|
3
|
+
export default PqbCSSTransition;
|
package/types/utils/is.d.ts
CHANGED
|
@@ -1,27 +1,14 @@
|
|
|
1
|
+
import { isArguments, isArray, isArrayBuffer, isArrayLike, isArrayLikeObject, isBlob, isBoolean, isBuffer, isColor, isColor2, isDate, isElement, isEmpty, isEmptyArray, isEmptyObject, isEmptyValue, isEqual, isEqualWith, isError, isFile, isFinite, isFunction, isInteger, isJSON, isLength, isMap, isMatch, isMatchWith, isNaN, isNative, isNil, isNull, isNumber, isObject, isObjectLike, isPlainObject, isReadableByteStreamControllerSupported, isReadableStream, isReadableStreamSupported, isReadableStreamSymbolAsyncIteratorSupported, isRegExp, isSafeInteger, isSet, isString, isSymbol, isTypedArray, isUndefined, isWeakMap, isWeakSet } from '@unicom-cloud/utils/is';
|
|
1
2
|
import { Dayjs } from 'dayjs';
|
|
2
|
-
export declare function isArray(obj: any): obj is any[];
|
|
3
|
-
export declare function isObject(obj: any): obj is {
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
};
|
|
6
|
-
export declare function isString(obj: any): obj is string;
|
|
7
|
-
export declare function isNumber(obj: any): obj is number;
|
|
8
|
-
export declare function isRegExp(obj: any): boolean;
|
|
9
|
-
export declare function isFile(obj: any): obj is File;
|
|
10
|
-
export declare function isBlob(obj: any): obj is Blob;
|
|
11
|
-
export declare function isColor(color: any): boolean;
|
|
12
|
-
export declare function isValidColor2(color: any): boolean;
|
|
13
|
-
export declare function isValidColor(color: any): boolean;
|
|
14
|
-
export declare function isUndefined(obj: any): obj is undefined;
|
|
15
|
-
export declare function isNull(obj: any): obj is null;
|
|
16
3
|
export declare function isNullOrUndefined(obj: any): boolean;
|
|
17
|
-
export declare function isFunction(obj: any): obj is (...args: any[]) => any;
|
|
18
|
-
export declare function isEmptyObject(obj: any): boolean;
|
|
19
4
|
export declare function isEmptyReactNode(content: any, trim?: boolean): boolean;
|
|
20
5
|
export declare function isExist(obj: any): boolean;
|
|
21
6
|
export declare function isWindow(el: any): el is Window;
|
|
22
7
|
export declare function isDayjs(time: any): time is Dayjs;
|
|
23
|
-
export declare function isBoolean(value: any): value is Boolean;
|
|
24
8
|
export declare const isReactComponent: (element: any) => boolean;
|
|
25
9
|
export declare const isClassComponent: (element: any) => boolean;
|
|
26
10
|
export declare const isDOMElement: (element: any) => boolean;
|
|
11
|
+
export declare const isReact18: boolean;
|
|
12
|
+
export declare const isReact19: boolean;
|
|
27
13
|
export declare const supportRef: (element: any) => boolean;
|
|
14
|
+
export { isArguments, isArray, isArrayBuffer, isArrayLike, isArrayLikeObject, isBlob, isBoolean, isBuffer, isColor, isColor2, isDate, isElement, isEmpty, isEmptyArray, isEmptyObject, isEmptyValue, isEqual, isEqualWith, isError, isFile, isFinite, isFunction, isInteger, isJSON, isLength, isMap, isMatch, isMatchWith, isNaN, isNative, isNil, isNull, isNumber, isObject, isObjectLike, isPlainObject, isReadableByteStreamControllerSupported, isReadableStream, isReadableStreamSupported, isReadableStreamSymbolAsyncIteratorSupported, isRegExp, isSafeInteger, isSet, isString, isSymbol, isTypedArray, isUndefined, isWeakMap, isWeakSet, };
|
package/types/version/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "2.63.
|
|
1
|
+
export declare const version = "2.63.3";
|
|
2
2
|
export default version;
|
package/utils/CSSTransition.js
CHANGED
package/utils/contextHolder.js
CHANGED
package/utils/is.js
CHANGED
|
@@ -1,107 +1,105 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return r.
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
return n.style.color = t, n.style.color !== "";
|
|
44
|
-
}
|
|
45
|
-
function v(t) {
|
|
46
|
-
return t === void 0;
|
|
47
|
-
}
|
|
48
|
-
function M(t) {
|
|
49
|
-
return t === null;
|
|
50
|
-
}
|
|
51
|
-
function B(t) {
|
|
52
|
-
return t == null;
|
|
53
|
-
}
|
|
54
|
-
function D(t) {
|
|
55
|
-
return typeof t == "function";
|
|
56
|
-
}
|
|
57
|
-
function S(t) {
|
|
58
|
-
return e(t) && Object.keys(t).length === 0;
|
|
59
|
-
}
|
|
60
|
-
function V(t, n) {
|
|
61
|
-
return t == null || t === !1 || typeof t == "string" && (n ? t.trim() === "" : t === "");
|
|
62
|
-
}
|
|
63
|
-
function H(t) {
|
|
64
|
-
return t || t === 0;
|
|
65
|
-
}
|
|
66
|
-
function U(t) {
|
|
67
|
-
return t === window;
|
|
68
|
-
}
|
|
69
|
-
function k(t) {
|
|
70
|
-
return e(t) && ("$y" in t && "$M" in t && "$D" in t && "$d" in t && "$H" in t && "$m" in t && "$s" in t || t._isAMomentObject);
|
|
71
|
-
}
|
|
72
|
-
function m(t) {
|
|
73
|
-
return typeof t == "boolean";
|
|
74
|
-
}
|
|
75
|
-
const o = (t) => t && s(t) && typeof t.type == "function", b = (t) => {
|
|
76
|
-
var n;
|
|
77
|
-
return o(t) && !!((n = t.type.prototype) != null && n.isReactComponent);
|
|
78
|
-
}, g = (t) => s(t) && typeof t.type == "string", W = (t) => {
|
|
79
|
-
var n;
|
|
80
|
-
return t ? g(t) || d(t) || t.$$typeof === i ? !0 : t.$$typeof === a ? ((n = t.type) == null ? void 0 : n.$$typeof) === i : o(t) ? b(t) : !1 : !1;
|
|
1
|
+
import { isPlainObject as c } from "@unicom-cloud/utils/is";
|
|
2
|
+
import { isArguments as L, isArray as h, isArrayBuffer as k, isArrayLike as v, isArrayLikeObject as B, isBlob as P, isBoolean as x, isBuffer as I, isColor as Y, isColor2 as j, isDate as q, isElement as U, isEmpty as V, isEmptyArray as H, isEmptyObject as J, isEmptyValue as z, isEqual as G, isEqualWith as K, isError as Q, isFile as X, isFinite as Z, isFunction as rr, isInteger as ir, isJSON as tr, isLength as sr, isMap as er, isMatch as or, isMatchWith as nr, isNaN as ar, isNative as fr, isNil as ur, isNull as pr, isNumber as yr, isObject as lr, isObjectLike as cr, isPlainObject as Er, isReadableByteStreamControllerSupported as dr, isReadableStream as $r, isReadableStreamSupported as Rr, isReadableStreamSymbolAsyncIteratorSupported as mr, isRegExp as Sr, isSafeInteger as br, isSet as Nr, isString as Ar, isSymbol as Or, isTypedArray as Tr, isUndefined as Cr, isWeakMap as Mr, isWeakSet as _r } from "@unicom-cloud/utils/is";
|
|
3
|
+
import { isValidElement as a } from "react";
|
|
4
|
+
import f from "react-dom";
|
|
5
|
+
import { isForwardRef as u, ForwardRef as e, Memo as E } from "react-is";
|
|
6
|
+
function T(r) {
|
|
7
|
+
return r == null;
|
|
8
|
+
}
|
|
9
|
+
function C(r, i) {
|
|
10
|
+
return r == null || r === !1 || typeof r == "string" && (i ? r.trim() === "" : r === "");
|
|
11
|
+
}
|
|
12
|
+
function M(r) {
|
|
13
|
+
return r || r === 0;
|
|
14
|
+
}
|
|
15
|
+
function _(r) {
|
|
16
|
+
return r === window;
|
|
17
|
+
}
|
|
18
|
+
function g(r) {
|
|
19
|
+
return c(r) && "$y" in r && "$M" in r && "$D" in r && "$d" in r && "$H" in r && "$m" in r && "$s" in r;
|
|
20
|
+
}
|
|
21
|
+
const p = (r) => r && a(r) && typeof r.type == "function", d = (r) => {
|
|
22
|
+
var i;
|
|
23
|
+
return p(r) && !!((i = r.type.prototype) != null && i.isReactComponent);
|
|
24
|
+
}, $ = (r) => a(r) && typeof r.type == "string";
|
|
25
|
+
var o;
|
|
26
|
+
const F = Number((o = f.version) == null ? void 0 : o.split(".")[0]) > 17;
|
|
27
|
+
var n;
|
|
28
|
+
const R = Number((n = f.version) == null ? void 0 : n.split(".")[0]) > 18, m = (r) => {
|
|
29
|
+
if (!R)
|
|
30
|
+
return u(r);
|
|
31
|
+
const i = Symbol.for("react.element"), y = Symbol.for("react.transitional.element"), l = Symbol.for("react.forward_ref");
|
|
32
|
+
if (typeof r == "object" && r !== null) {
|
|
33
|
+
const t = r.$$typeof;
|
|
34
|
+
if (t === i || t === y) {
|
|
35
|
+
const s = r.type;
|
|
36
|
+
return (s && s.$$typeof) === l;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return !1;
|
|
40
|
+
}, w = (r) => {
|
|
41
|
+
var i;
|
|
42
|
+
return r ? $(r) || m(r) || u(r) || r.$$typeof === e ? !0 : r.$$typeof === E ? ((i = r.type) == null ? void 0 : i.$$typeof) === e : p(r) ? d(r) : !1 : !1;
|
|
81
43
|
};
|
|
82
44
|
export {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
45
|
+
L as isArguments,
|
|
46
|
+
h as isArray,
|
|
47
|
+
k as isArrayBuffer,
|
|
48
|
+
v as isArrayLike,
|
|
49
|
+
B as isArrayLikeObject,
|
|
50
|
+
P as isBlob,
|
|
51
|
+
x as isBoolean,
|
|
52
|
+
I as isBuffer,
|
|
53
|
+
d as isClassComponent,
|
|
54
|
+
Y as isColor,
|
|
55
|
+
j as isColor2,
|
|
56
|
+
$ as isDOMElement,
|
|
57
|
+
q as isDate,
|
|
58
|
+
g as isDayjs,
|
|
59
|
+
U as isElement,
|
|
60
|
+
V as isEmpty,
|
|
61
|
+
H as isEmptyArray,
|
|
62
|
+
J as isEmptyObject,
|
|
63
|
+
C as isEmptyReactNode,
|
|
64
|
+
z as isEmptyValue,
|
|
65
|
+
G as isEqual,
|
|
66
|
+
K as isEqualWith,
|
|
67
|
+
Q as isError,
|
|
68
|
+
M as isExist,
|
|
69
|
+
X as isFile,
|
|
70
|
+
Z as isFinite,
|
|
71
|
+
rr as isFunction,
|
|
72
|
+
ir as isInteger,
|
|
73
|
+
tr as isJSON,
|
|
74
|
+
sr as isLength,
|
|
75
|
+
er as isMap,
|
|
76
|
+
or as isMatch,
|
|
77
|
+
nr as isMatchWith,
|
|
78
|
+
ar as isNaN,
|
|
79
|
+
fr as isNative,
|
|
80
|
+
ur as isNil,
|
|
81
|
+
pr as isNull,
|
|
82
|
+
T as isNullOrUndefined,
|
|
83
|
+
yr as isNumber,
|
|
84
|
+
lr as isObject,
|
|
85
|
+
cr as isObjectLike,
|
|
86
|
+
Er as isPlainObject,
|
|
87
|
+
F as isReact18,
|
|
88
|
+
R as isReact19,
|
|
89
|
+
p as isReactComponent,
|
|
90
|
+
dr as isReadableByteStreamControllerSupported,
|
|
91
|
+
$r as isReadableStream,
|
|
92
|
+
Rr as isReadableStreamSupported,
|
|
93
|
+
mr as isReadableStreamSymbolAsyncIteratorSupported,
|
|
94
|
+
Sr as isRegExp,
|
|
95
|
+
br as isSafeInteger,
|
|
96
|
+
Nr as isSet,
|
|
97
|
+
Ar as isString,
|
|
98
|
+
Or as isSymbol,
|
|
99
|
+
Tr as isTypedArray,
|
|
100
|
+
Cr as isUndefined,
|
|
101
|
+
Mr as isWeakMap,
|
|
102
|
+
_r as isWeakSet,
|
|
103
|
+
_ as isWindow,
|
|
104
|
+
w as supportRef
|
|
107
105
|
};
|
package/utils/reactDOM.js
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import { Component as a } from "react";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
2
|
+
import e from "react-dom";
|
|
3
|
+
import { isReact18 as _ } from "./is.js";
|
|
4
|
+
import R from "./warning.js";
|
|
5
|
+
import { isFunction as O, isPlainObject as N } from "@unicom-cloud/utils/is";
|
|
6
|
+
const d = "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED", f = e;
|
|
6
7
|
let i;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
O(e[s]) && (e[s].usingClientEntryPoint = t);
|
|
8
|
+
const s = (t) => {
|
|
9
|
+
N(f[d]) && (f[d].usingClientEntryPoint = t);
|
|
10
10
|
};
|
|
11
11
|
let u;
|
|
12
12
|
try {
|
|
13
|
-
u =
|
|
13
|
+
u = f.createRoot;
|
|
14
14
|
} catch {
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
_ && u ? i = (t, o) => {
|
|
17
|
+
s(!0);
|
|
18
18
|
const r = u(o);
|
|
19
|
-
return
|
|
19
|
+
return s(!1), r.render(t), r._unmount = function() {
|
|
20
20
|
setTimeout(() => {
|
|
21
21
|
var c;
|
|
22
22
|
(c = r == null ? void 0 : r.unmount) == null || c.call(r);
|
|
23
23
|
});
|
|
24
24
|
}, r;
|
|
25
25
|
} : i = function(t, o) {
|
|
26
|
-
return
|
|
26
|
+
return f.render(t, o), {
|
|
27
27
|
render: (r) => {
|
|
28
|
-
|
|
28
|
+
f.render(r, o);
|
|
29
29
|
},
|
|
30
30
|
_unmount() {
|
|
31
|
-
|
|
31
|
+
f.unmountComponentAtNode(o);
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
let n;
|
|
36
|
-
function
|
|
36
|
+
function p(t) {
|
|
37
37
|
const o = t.constructor;
|
|
38
38
|
if (typeof o != "function") return !1;
|
|
39
39
|
!n && typeof WeakSet == "function" && (n = /* @__PURE__ */ new WeakSet());
|
|
40
40
|
const r = !!(n != null && n.has(o));
|
|
41
41
|
return n == null || n.add(o), r;
|
|
42
42
|
}
|
|
43
|
-
const y = (t, o) => t && t instanceof Element ? t : t && t.current && t.current instanceof Element ? t.current : t
|
|
44
|
-
!
|
|
43
|
+
const y = (t, o) => t && t instanceof Element ? t : t && t.current && t.current instanceof Element ? t.current : t && O(t.getRootDOMNode) ? t.getRootDOMNode() : t instanceof a && e.findDOMNode ? e.findDOMNode(t) : o && (R(
|
|
44
|
+
_ && !p(o),
|
|
45
45
|
"Element does not define the `getRootDOMNode` method causing a call to React.findDOMNode. but findDOMNode is deprecated in StrictMode. Please check the code logic",
|
|
46
46
|
{ element: t, instance: o }
|
|
47
|
-
),
|
|
48
|
-
t && t.ref && (
|
|
47
|
+
), e.findDOMNode) ? e.findDOMNode(o) : null, C = (t, o) => {
|
|
48
|
+
t && t.ref && (O(t.ref) && (t == null || t.ref(o)), "current" in t.ref && (t.ref.current = o));
|
|
49
49
|
}, T = i;
|
|
50
50
|
export {
|
|
51
51
|
C as callbackOriginRef,
|