@unicom-cloud/ui 0.8.106 → 0.8.108
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/App.js +7 -0
- package/BackTop.js +2 -4
- package/Calendar.js +2 -2
- package/ColorPicker.js +15 -14
- package/Constant.js +4 -0
- package/Copy.js +4 -3
- package/Countdown.js +25 -0
- package/Grid.js +8 -10
- package/LiquidFill.js +4 -3
- package/List.js +7 -6
- package/Marquee.js +4 -3
- package/Modal.js +4 -2
- package/PageHeader.js +3 -2
- package/QrCode.js +4 -3
- package/RowCol.js +8 -0
- package/Segmented.js +14 -4
- package/Statistic.js +5 -4
- package/Tour.js +4 -3
- package/Transfer.js +4 -2
- package/anchor/Link.js +1 -1
- package/app/App.js +26 -0
- package/app/context.js +9 -0
- package/app/index.js +9 -0
- package/app/interface.js +1 -0
- package/app/useApp.js +8 -0
- package/avatar/Group.js +1 -1
- package/back-top/index.js +44 -56
- package/button/index.js +52 -51
- package/calendar/Lunar.js +71 -0
- package/calendar/index.js +11 -11
- package/cascader/base/node.js +22 -20
- package/cascader/base/store.js +10 -10
- package/cascader/util.js +29 -27
- package/color-picker/Mode.js +8 -7
- package/color-picker/hooks/useColorPicker.js +56 -55
- package/color-picker/index.js +49 -48
- package/color-picker/utils.js +58 -57
- package/components/common/empty/index.js +2 -2
- package/components/common/flex/index.js +64 -55
- package/components/common/flex/interface.js +6 -6
- package/components/common/hooks/useInterval.js +6 -6
- package/components/common/icons/file/index.js +13 -11
- package/components/common/space/index.js +53 -53
- package/components/common/utils/dayjs.js +114 -126
- package/components/common/utils/is.js +98 -104
- package/components/common/utils/setDir.js +12 -0
- package/components/common/utils/setTheme.js +13 -13
- package/components/common/utils/toArray.js +7 -5
- package/config-provider/ConfigProvider.js +32 -30
- package/constant/index.js +4 -0
- package/copy/index.js +2 -1
- package/countdown/index.js +113 -0
- package/countdown/interface.js +1 -0
- package/countdown/util.js +29 -0
- package/descriptions/index.js +45 -45
- package/divider/index.js +28 -20
- package/dropdown/Button.js +1 -1
- package/empty/index.js +1 -1
- package/flex/index.js +30 -29
- package/form/FormItem.js +126 -122
- package/grid/Grid.js +56 -90
- package/grid/Item.js +44 -65
- package/grid/context.js +2 -6
- package/grid/index.js +6 -8
- package/grid/util.js +6 -44
- package/hooks/useResponsiveState.js +54 -0
- package/index.js +614 -605
- package/input/Button.js +12 -12
- package/input/Group.js +11 -12
- package/input/Input.js +112 -102
- package/input/InputElement.js +25 -24
- package/input/Search.js +24 -24
- package/layout/Sider.js +1 -1
- package/liquid-fill/index.js +4 -3
- package/list/Item.js +21 -21
- package/list/index.js +53 -52
- package/marquee/index.js +20 -19
- package/marquee-/index.js +4 -3
- package/mentions/util.js +9 -8
- package/modal/Confirm.js +17 -17
- package/modal/Modal.js +247 -237
- package/modal/index.js +4 -2
- package/modal/use-modal/index.js +2 -2
- package/package.json +1 -1
- package/page-header/index.js +57 -56
- package/pagination/Pagination.js +89 -92
- package/qr-code/index.js +4 -3
- package/radio/Group.js +1 -1
- package/row-col/Col-.js +88 -0
- package/row-col/Col.js +159 -0
- package/row-col/Row.js +73 -0
- package/row-col/context.js +5 -0
- package/row-col/index.js +11 -0
- package/row-col/interface.js +1 -0
- package/segmented/index.js +257 -206
- package/select/Select.js +191 -191
- package/select/util.js +50 -50
- package/select-view/Core.js +31 -28
- package/space/index.js +15 -13
- package/splitter/SplitBar.js +44 -46
- package/statistic/index.js +56 -55
- package/statistic/interface.js +4 -1
- package/style.css +1 -1
- package/table/Table.js +198 -210
- package/table/hook/useColumns.js +27 -26
- package/table/hook/useStickyClassNames.js +9 -8
- package/table/hook/useThResizable.js +4 -3
- package/table/th-resizable/index.js +2 -2
- package/table/thead/index.js +18 -16
- package/time-picker/util.js +20 -30
- package/timeline/Item.js +1 -1
- package/tour/index.js +4 -3
- package/transfer/index.js +93 -91
- package/trigger/index.js +66 -66
- package/types/common/development/interface.d.ts +3 -3
- package/types/common/flex/index.d.ts +3 -9
- package/types/common/flex/interface.d.ts +15 -4
- package/types/common/space/index.d.ts +3 -5
- package/types/common/space/interface.d.ts +2 -0
- package/types/common/utils/dayjs.d.ts +3 -1
- package/types/common/utils/is.d.ts +3 -4
- package/types/common/utils/setDir.d.ts +2 -0
- package/types/pc/app/App.d.ts +6 -0
- package/types/pc/app/context.d.ts +4 -0
- package/types/pc/app/index.d.ts +5 -0
- package/types/pc/app/interface.d.ts +17 -0
- package/types/pc/app/useApp.d.ts +3 -0
- package/types/pc/back-top/interface.d.ts +4 -17
- package/types/pc/button/interface.d.ts +2 -2
- package/types/pc/calendar/Lunar.d.ts +17 -0
- package/types/pc/calendar/index.d.ts +1 -1
- package/types/pc/config-provider/interface.d.ts +17 -12
- package/types/pc/constant/index.d.ts +1 -0
- package/types/pc/countdown/interface.d.ts +65 -0
- package/types/pc/countdown/util.d.ts +7 -0
- package/types/pc/divider/interface.d.ts +1 -0
- package/types/pc/flex/index.d.ts +8 -6
- package/types/pc/flex/interface.d.ts +3 -10
- package/types/pc/form/FormItem.d.ts +1 -1
- package/types/pc/form/interface.d.ts +1 -1
- package/types/pc/grid/Grid.d.ts +2 -4
- package/types/pc/grid/Item.d.ts +1 -5
- package/types/pc/grid/context.d.ts +4 -15
- package/types/pc/grid/index.d.ts +4 -6
- package/types/pc/grid/interface.d.ts +14 -142
- package/types/pc/grid/util.d.ts +1 -10
- package/types/pc/hooks/useResponsiveState.d.ts +3 -0
- package/types/pc/index.d.ts +10 -4
- package/types/pc/input/Button.d.ts +2 -2
- package/types/pc/list/interface.d.ts +2 -1
- package/types/pc/message/index.d.ts +1 -9
- package/types/pc/message/interface.d.ts +8 -0
- package/types/pc/message/useMessage.d.ts +1 -2
- package/types/pc/modal/Modal.d.ts +1 -0
- package/types/pc/modal/config.d.ts +1 -2
- package/types/pc/modal/index.d.ts +2 -1
- package/types/pc/modal/interface.d.ts +17 -5
- package/types/pc/notification/index.d.ts +2 -9
- package/types/pc/notification/interface.d.ts +7 -0
- package/types/pc/notification/useNotification.d.ts +1 -2
- package/types/pc/pagination/PageOption.d.ts +0 -1
- package/types/pc/pagination/interface.d.ts +5 -6
- package/types/pc/{grid → row-col}/Col-.d.ts +1 -1
- package/types/pc/{grid → row-col}/Col.d.ts +1 -2
- package/types/pc/{grid → row-col}/Row.d.ts +1 -2
- package/types/pc/row-col/context.d.ts +6 -0
- package/types/pc/row-col/index.d.ts +7 -0
- package/types/pc/row-col/interface.d.ts +112 -0
- package/types/pc/segmented/index.d.ts +3 -7
- package/types/pc/segmented/interface.d.ts +38 -5
- package/types/pc/select-view/Core.d.ts +1 -8
- package/types/pc/select-view/index.d.ts +1 -8
- package/types/pc/select-view/interface.d.ts +9 -2
- package/types/pc/space/index.d.ts +5 -7
- package/types/pc/space/interface.d.ts +3 -10
- package/types/pc/statistic/index.d.ts +1 -1
- package/types/pc/statistic/interface.d.ts +1 -49
- package/types/pc/utils/is.d.ts +1 -1
- package/types/pc/utils/names.d.ts +422 -111
- package/types/pc/utils/responsiveObserve.d.ts +8 -8
- package/typography/Ellipsis.js +5 -4
- package/typography/Operations.js +4 -3
- package/utils/dayjs.js +13 -11
- package/utils/index.js +245 -244
- package/utils/is.js +65 -66
- package/utils/names.js +309 -150
- package/utils/responsiveObserve.js +43 -36
- package/version/index.js +1 -1
- package/grid/Col-.js +0 -86
- package/grid/Col.js +0 -169
- package/grid/Row.js +0 -96
- package/grid/hook/useResponsiveState.js +0 -38
- package/statistic/Countdown.js +0 -56
- package/statistic/util.js +0 -33
- package/types/pc/grid/hook/useResponsiveState.d.ts +0 -2
- package/types/pc/statistic/util.d.ts +0 -1
- /package/types/pc/{statistic/Countdown.d.ts → countdown/index.d.ts} +0 -0
package/utils/is.js
CHANGED
|
@@ -1,84 +1,83 @@
|
|
|
1
|
-
import { isClassComponent as
|
|
2
|
-
import { isArguments as
|
|
3
|
-
import {
|
|
1
|
+
import { isClassComponent as s, isDOMElement as t, isEmptyReactNode as a, isExist as r, isForwardRefReact as o, isNullOrUndefined as l, isReact18 as n, isReact19 as m, isReactComponent as p, isSupportRef as c, isWindow as R, supportRef as d } from "../components/common/utils/is.js";
|
|
2
|
+
import { isArguments as y, isArray as S, isArrayBuffer as f, isArrayLike as E, isArrayLikeObject as b, isBlob as C, isBoolean as x, isBuffer as M, isColor as N, isColor2 as g, isDate as A, isElement as F, isEmpty as O, isEmptyArray as P, isEmptyObject as j, isEmptyValue as L, isEqual as h, isEqualWith as k, isError as B, isFile as W, isFinite as w, isFunction as D, isInteger as V, isJSON as v, isLength as I, isMap as T, isMatch as q, isMatchWith as z, isNaN as U, isNative as J, isNil as G, isNull as H, isNumber as K, isObject as Q, isObjectLike as X, isPlainObject as Y, isPromise as Z, isReadableByteStreamControllerSupported as _, isReadableStream as $, isReadableStreamDefaultControllerSupported as ee, isReadableStreamSupported as ie, isReadableStreamSymbolAsyncIteratorSupported as se, isRegExp as te, isSafeInteger as ae, isSet as re, isString as oe, isSymbol as le, isTypedArray as ne, isUndefined as me, isValidColor as pe, isWeakMap as ce, isWeakSet as Re } from "@unicom-cloud/utils/is";
|
|
3
|
+
import { isDayjs as ue } from "dayjs";
|
|
4
|
+
import { isContextConsumer as Se, isContextProvider as fe, isElement as Ee, isForwardRef as be, isFragment as Ce, isLazy as xe, isMemo as Me, isPortal as Ne, isProfiler as ge, isStrictMode as Ae, isSuspense as Fe, isValidElementType as Oe } from "react-is";
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
y as isArguments,
|
|
7
|
+
S as isArray,
|
|
8
|
+
f as isArrayBuffer,
|
|
8
9
|
E as isArrayLike,
|
|
9
10
|
b as isArrayLikeObject,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
C as isBlob,
|
|
12
|
+
x as isBoolean,
|
|
13
|
+
M as isBuffer,
|
|
14
|
+
s as isClassComponent,
|
|
14
15
|
N as isColor,
|
|
15
16
|
g as isColor2,
|
|
16
17
|
t as isDOMElement,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
18
|
+
A as isDate,
|
|
19
|
+
ue as isDayjs,
|
|
20
|
+
F as isElement,
|
|
21
|
+
O as isEmpty,
|
|
22
|
+
P as isEmptyArray,
|
|
23
|
+
j as isEmptyObject,
|
|
24
|
+
a as isEmptyReactNode,
|
|
25
|
+
L as isEmptyValue,
|
|
26
|
+
h as isEqual,
|
|
27
|
+
k as isEqualWith,
|
|
28
|
+
B as isError,
|
|
29
|
+
r as isExist,
|
|
30
|
+
W as isFile,
|
|
31
|
+
w as isFinite,
|
|
32
|
+
o as isForwardRefReact,
|
|
33
|
+
D as isFunction,
|
|
34
|
+
V as isInteger,
|
|
35
|
+
v as isJSON,
|
|
36
|
+
I as isLength,
|
|
37
|
+
T as isMap,
|
|
38
|
+
q as isMatch,
|
|
39
|
+
z as isMatchWith,
|
|
40
|
+
U as isNaN,
|
|
41
|
+
J as isNative,
|
|
42
|
+
G as isNil,
|
|
43
|
+
H as isNull,
|
|
43
44
|
l as isNullOrUndefined,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
K as isNumber,
|
|
46
|
+
Q as isObject,
|
|
47
|
+
X as isObjectLike,
|
|
48
|
+
Y as isPlainObject,
|
|
49
|
+
Z as isPromise,
|
|
50
|
+
n as isReact18,
|
|
50
51
|
m as isReact19,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
fe as isReactContextConsumer,
|
|
55
|
-
Ce as isReactContextProvider,
|
|
52
|
+
p as isReactComponent,
|
|
53
|
+
Se as isReactContextConsumer,
|
|
54
|
+
fe as isReactContextProvider,
|
|
56
55
|
Ee as isReactElement,
|
|
57
56
|
be as isReactForwardRef,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
Ce as isReactFragment,
|
|
58
|
+
xe as isReactLazy,
|
|
59
|
+
Me as isReactMemo,
|
|
61
60
|
Ne as isReactPortal,
|
|
62
61
|
ge as isReactProfiler,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
62
|
+
Ae as isReactStrictMode,
|
|
63
|
+
Fe as isReactSuspense,
|
|
64
|
+
Oe as isReactValidElementType,
|
|
65
|
+
_ as isReadableByteStreamControllerSupported,
|
|
66
|
+
$ as isReadableStream,
|
|
67
|
+
ee as isReadableStreamDefaultControllerSupported,
|
|
69
68
|
ie as isReadableStreamSupported,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
69
|
+
se as isReadableStreamSymbolAsyncIteratorSupported,
|
|
70
|
+
te as isRegExp,
|
|
71
|
+
ae as isSafeInteger,
|
|
72
|
+
re as isSet,
|
|
73
|
+
oe as isString,
|
|
74
|
+
c as isSupportRef,
|
|
76
75
|
le as isSymbol,
|
|
77
|
-
|
|
76
|
+
ne as isTypedArray,
|
|
78
77
|
me as isUndefined,
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
pe as isValidColor,
|
|
79
|
+
ce as isWeakMap,
|
|
81
80
|
Re as isWeakSet,
|
|
82
81
|
R as isWindow,
|
|
83
|
-
|
|
82
|
+
d as supportRef
|
|
84
83
|
};
|