@unicom-cloud/ui 0.8.62 → 0.8.64

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 (202) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +2 -2
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +3 -3
  5. package/Avatar.js +1 -1
  6. package/BackTop.js +2 -2
  7. package/Badge.js +2 -2
  8. package/Breadcrumb.js +2 -2
  9. package/Button.js +1 -1
  10. package/Calendar.js +3 -3
  11. package/Card.js +1 -1
  12. package/Carousel.js +1 -1
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +4 -4
  17. package/Comment.js +1 -1
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +1 -1
  20. package/DatePicker.js +1026 -1016
  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 +26 -25
  26. package/Empty.js +1 -1
  27. package/Form.js +2 -2
  28. package/Grid.js +2 -2
  29. package/Icon.js +2 -1
  30. package/IconHover.js +1 -1
  31. package/Image.js +4 -1
  32. package/Input.js +11 -2
  33. package/InputNumber.js +2 -2
  34. package/InputTag.js +1 -1
  35. package/Layout.js +24 -20
  36. package/Link.js +1 -1
  37. package/List.js +4 -3
  38. package/Mentions.js +3 -3
  39. package/Menu.js +7 -2
  40. package/Message.js +4 -3
  41. package/Modal.js +1 -1
  42. package/Notice.js +1 -1
  43. package/Notification.js +4 -3
  44. package/OverflowEllipsis.js +1 -1
  45. package/PageHeader.js +1 -1
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +1 -1
  49. package/Popover.js +1 -1
  50. package/Progress.js +1 -1
  51. package/Radio.js +4 -2
  52. package/Rate.js +1 -1
  53. package/ResizeBox.js +66 -64
  54. package/Result.js +1 -1
  55. package/Select.js +4 -1
  56. package/SelectView.js +3 -3
  57. package/Skeleton.js +1 -1
  58. package/Slider.js +2 -2
  59. package/Space.js +50 -46
  60. package/Spin.js +1 -1
  61. package/Statistic.js +28 -27
  62. package/Steps.js +40 -38
  63. package/Switch.js +2 -2
  64. package/Table.js +7 -4
  65. package/Tabs.js +6 -2
  66. package/Tag.js +1 -1
  67. package/TimePicker.js +37 -36
  68. package/Timeline.js +4 -2
  69. package/Tooltip.js +1 -1
  70. package/Transfer.js +3 -3
  71. package/Tree.js +1 -1
  72. package/TreeSelect.js +3 -1
  73. package/Trigger.js +2 -2
  74. package/Typography.js +6 -2
  75. package/Upload.js +5 -4
  76. package/VerificationCode.js +1 -1
  77. package/Watermark.js +1 -1
  78. package/chunk/{CHyuuVxl.js → -IELMT_x.js} +1 -1
  79. package/chunk/{CV1kLw5Z.js → B5GDq8NJ.js} +8 -6
  80. package/chunk/{qpd2axxs.js → B68hRpYG.js} +2 -2
  81. package/chunk/{B8SZFOjt.js → BCxoi4Kf.js} +22 -20
  82. package/chunk/{DRp7voqz.js → BHnRi7Xh.js} +3 -3
  83. package/chunk/{C6fEFlPt.js → BJSjbYSN.js} +2 -2
  84. package/chunk/{BlNFmhNa.js → BSBJlVZH.js} +3 -3
  85. package/chunk/{yESVS-qX.js → BfHNSLva.js} +3 -3
  86. package/chunk/{B4-WpgY2.js → BtIG250j.js} +7 -4
  87. package/chunk/{Dtm4BmKB.js → BwSpYGK-.js} +1 -1
  88. package/chunk/{KchYsivk.js → CA69nxbj.js} +1 -1
  89. package/chunk/{D3VMG9V1.js → CAhODOfT.js} +3 -2
  90. package/chunk/{tOFzwzpT.js → CAiaqaWc.js} +1 -1
  91. package/chunk/{Wum88vrW.js → CBgwLBAC.js} +40 -38
  92. package/chunk/{Bp3XomF8.js → CLBavO5c.js} +23 -20
  93. package/chunk/{CT1lZ7ss.js → CTF5o0OX.js} +1 -1
  94. package/chunk/{C4eJ9vCf.js → CYQ1EE4h.js} +2 -2
  95. package/chunk/{DRQ1v6Ux.js → CZfGDXaB.js} +1 -1
  96. package/chunk/{B0oDiPqE.js → CtUTlwlQ.js} +1 -1
  97. package/chunk/{DGasAUHE.js → CxpFYX4B.js} +11 -11
  98. package/chunk/{BnqeQYIZ.js → D-oHJail.js} +59 -55
  99. package/chunk/{CazXy0r4.js → D01b7bWX.js} +50 -45
  100. package/chunk/{C8o-VGyc.js → DPJEIBKZ.js} +3 -3
  101. package/chunk/{-Z968QpN.js → DQ561AmR.js} +3 -3
  102. package/chunk/{CDJ1EnJ2.js → QlYCEvCX.js} +1 -1
  103. package/chunk/{AqH9yP_J.js → Yvz-hPQB.js} +2 -2
  104. package/chunk/{nbEvdwT0.js → _m8hLSsx.js} +4 -2
  105. package/chunk/{CJnshq6A.js → oR9TkA35.js} +2 -2
  106. package/chunk/{BXWxA-tS.js → pq-36BDW.js} +5 -3
  107. package/chunk/{mfn4EgmQ.js → tW_FgNSv.js} +1 -1
  108. package/index.js +540 -472
  109. package/locale/zh-CN.js +8 -0
  110. package/package.json +1 -1
  111. package/types/calendar/hook/useCellClassName.d.ts +2 -1
  112. package/types/checkbox/IconCheck.d.ts +2 -1
  113. package/types/color-picker/hooks/useColorPicker.d.ts +3 -8
  114. package/types/date-picker/hook/useCellClassName.d.ts +2 -1
  115. package/types/date-picker/index.d.ts +7 -0
  116. package/types/date-picker/panel/Footer.d.ts +2 -1
  117. package/types/dropdown/index.d.ts +1 -0
  118. package/types/form/IconSymbol.d.ts +2 -1
  119. package/types/form/useForm.d.ts +2 -1
  120. package/types/icon/addFromIconFontCn.d.ts +2 -1
  121. package/types/icon/index.d.ts +2 -0
  122. package/types/image/Image.d.ts +1 -0
  123. package/types/image/index.d.ts +2 -1
  124. package/types/image/util/getFixTranslate.d.ts +2 -1
  125. package/types/image/util/hook/useImageStatus.d.ts +2 -2
  126. package/types/image/util/hook/useShowFooter.d.ts +2 -2
  127. package/types/index.d.ts +25 -25
  128. package/types/input/Input.d.ts +1 -0
  129. package/types/input/index.d.ts +1 -0
  130. package/types/input/useComposition.d.ts +2 -1
  131. package/types/input-number/useSelectionRange.d.ts +2 -1
  132. package/types/layout/index.d.ts +1 -0
  133. package/types/list/index.d.ts +1 -0
  134. package/types/locale/interface.d.ts +1 -0
  135. package/types/locale/zh-CN.d.ts +14 -0
  136. package/types/menu/Indent.d.ts +2 -1
  137. package/types/menu/Menu.d.ts +1 -0
  138. package/types/menu/index.d.ts +1 -0
  139. package/types/message/index.d.ts +2 -0
  140. package/types/notification/index.d.ts +2 -0
  141. package/types/overflow-ellipsis/OverflowItem.d.ts +2 -2
  142. package/types/overflow-ellipsis/index.d.ts +2 -2
  143. package/types/radio/Radio.d.ts +2 -0
  144. package/types/radio/index.d.ts +2 -1
  145. package/types/resize-box/ResizeTrigger.d.ts +2 -1
  146. package/types/resize-box/index.d.ts +1 -0
  147. package/types/result/403.d.ts +2 -1
  148. package/types/result/404.d.ts +2 -1
  149. package/types/result/500.d.ts +2 -1
  150. package/types/select/Select.d.ts +1 -1
  151. package/types/select/index.d.ts +1 -0
  152. package/types/skeleton/Image.d.ts +2 -1
  153. package/types/skeleton/Text.d.ts +2 -1
  154. package/types/slider/hook/useLegalValue.d.ts +2 -1
  155. package/types/space/index.d.ts +4 -1
  156. package/types/space/toArray.d.ts +2 -1
  157. package/types/speech-synthesis/index.d.ts +2 -1
  158. package/types/spin/DotLoading.d.ts +2 -1
  159. package/types/statistic/index.d.ts +1 -0
  160. package/types/steps/index.d.ts +1 -0
  161. package/types/table/hook/useComponent.d.ts +2 -1
  162. package/types/table/hook/useExpand.d.ts +2 -1
  163. package/types/table/hook/useRowSelection.d.ts +2 -1
  164. package/types/table/hook/useSorter.d.ts +2 -1
  165. package/types/table/index.d.ts +2 -1
  166. package/types/table/summary/index.d.ts +3 -0
  167. package/types/tabs/Tab.d.ts +1 -0
  168. package/types/tabs/TabContent.d.ts +2 -2
  169. package/types/tabs/hook/useDomSize.d.ts +2 -1
  170. package/types/tabs/hook/useHeaderScroll.d.ts +2 -1
  171. package/types/tabs/index.d.ts +1 -0
  172. package/types/tabs/tab-header/DropdownIcon.d.ts +2 -1
  173. package/types/time-picker/TimeColumn.d.ts +2 -2
  174. package/types/time-picker/index.d.ts +5 -0
  175. package/types/timeline/Timeline.d.ts +1 -0
  176. package/types/timeline/index.d.ts +1 -0
  177. package/types/tree-select/Select.d.ts +5 -0
  178. package/types/tree-select/hook/useTreeData.d.ts +2 -1
  179. package/types/tree-select/index.d.ts +2 -1
  180. package/types/typography/Operations.d.ts +2 -1
  181. package/types/typography/index.d.ts +1 -0
  182. package/types/upload/Upload.d.ts +2 -1
  183. package/types/upload/index.d.ts +2 -3
  184. package/types/utils/fillNBSP.d.ts +2 -1
  185. package/types/utils/getHighlightText.d.ts +2 -1
  186. package/types/utils/getHotkeyHandler.d.ts +2 -1
  187. package/types/utils/getStringLength.d.ts +2 -1
  188. package/types/utils/include.d.ts +2 -1
  189. package/types/utils/is.d.ts +2 -0
  190. package/types/utils/mergeProps.d.ts +2 -1
  191. package/types/utils/mergedToString.d.ts +2 -1
  192. package/types/utils/omit.d.ts +2 -1
  193. package/types/utils/pick.d.ts +2 -1
  194. package/types/utils/throttleByRaf.d.ts +2 -1
  195. package/types/utils/throttleByRafV2.d.ts +2 -1
  196. package/types/utils/warning.d.ts +2 -1
  197. package/types/verification-code/VerificationCode.d.ts +2 -1
  198. package/utils/CSSTransition.js +1 -1
  199. package/utils/contextHolder.js +1 -1
  200. package/utils/dayjs.js +50 -49
  201. package/utils/index.js +161 -148
  202. package/utils/is.js +125 -112
package/utils/is.js CHANGED
@@ -1,145 +1,158 @@
1
- import { isValidElement as i } from "react";
1
+ import { isValidElement as f } from "react";
2
2
  import u from "react-dom";
3
- import { isForwardRef as p, ForwardRef as a, Memo as m } from "react-is";
4
- import { Q as w, r as D, m as W, z as v, G as L, H as P, K as h, t as k, v as B, Z as Y, X as I, Y as V, f as j, _ as q, J as H } from "../chunk/Cqyp4qni.js";
5
- import { default as U } from "lodash/isArguments";
6
- import { default as G } from "lodash/isArray";
7
- import { default as Q } from "lodash/isArrayBuffer";
8
- import { default as Z } from "lodash/isArrayLike";
9
- import { default as tr } from "lodash/isArrayLikeObject";
10
- import { default as or } from "lodash/isBoolean";
11
- import { default as sr } from "lodash/isBuffer";
12
- import { default as ir } from "lodash/isDate";
13
- import { default as pr } from "lodash/isElement";
14
- import { default as nr } from "lodash/isEmpty";
15
- import { default as mr } from "lodash/isEqual";
16
- import { default as xr } from "lodash/isEqualWith";
17
- import { default as Er } from "lodash/isError";
18
- import { default as $r } from "lodash/isFinite";
19
- import { default as br } from "lodash/isFunction";
20
- import { default as Ar } from "lodash/isInteger";
21
- import { default as Or } from "lodash/isLength";
22
- import { default as Mr } from "lodash/isMap";
23
- import { default as gr } from "lodash/isMatch";
24
- import { default as wr } from "lodash/isMatchWith";
25
- import { default as Wr } from "lodash/isNaN";
26
- import { default as Lr } from "lodash/isNative";
27
- import { default as hr } from "lodash/isNil";
28
- import { default as Br } from "lodash/isNull";
29
- import { default as Ir } from "lodash/isNumber";
30
- import { default as jr } from "lodash/isObject";
31
- import { default as Hr } from "lodash/isObjectLike";
32
- import { default as Ur } from "lodash/isPlainObject";
33
- import { default as Gr } from "lodash/isRegExp";
34
- import { default as Qr } from "lodash/isSafeInteger";
35
- import { default as Zr } from "lodash/isSet";
36
- import { default as tt } from "lodash/isString";
37
- import { default as ot } from "lodash/isSymbol";
38
- import { default as st } from "lodash/isTypedArray";
39
- import { default as it } from "lodash/isUndefined";
40
- import { default as pt } from "lodash/isWeakMap";
41
- import { default as nt } from "lodash/isWeakSet";
42
- function N(r) {
3
+ import { isForwardRef as p, ForwardRef as o, Memo as m } from "react-is";
4
+ import { isAsyncMode as P, isConcurrentMode as w, isContextConsumer as v, isContextProvider as D, isElement as L, isForwardRef as W, isFragment as h, isLazy as k, isMemo as B, isPortal as V, isProfiler as Y, isStrictMode as I, isSuspense as j, isValidElementType as q } from "react-is";
5
+ import { Q as H, r as J, m as U, z as G, G as K, H as Q, K as X, t as Z, v as rr, Z as tr, X as er, Y as sr, f as or, _ as ar, J as ir } from "../chunk/Cqyp4qni.js";
6
+ import { default as ur } from "lodash/isArguments";
7
+ import { default as lr } from "lodash/isArray";
8
+ import { default as dr } from "lodash/isArrayBuffer";
9
+ import { default as yr } from "lodash/isArrayLike";
10
+ import { default as cr } from "lodash/isArrayLikeObject";
11
+ import { default as Rr } from "lodash/isBoolean";
12
+ import { default as Sr } from "lodash/isBuffer";
13
+ import { default as br } from "lodash/isDate";
14
+ import { default as Nr } from "lodash/isEmpty";
15
+ import { default as Tr } from "lodash/isEqual";
16
+ import { default as Fr } from "lodash/isEqualWith";
17
+ import { default as gr } from "lodash/isError";
18
+ import { default as wr } from "lodash/isFinite";
19
+ import { default as Dr } from "lodash/isFunction";
20
+ import { default as Wr } from "lodash/isInteger";
21
+ import { default as kr } from "lodash/isLength";
22
+ import { default as Vr } from "lodash/isMap";
23
+ import { default as Ir } from "lodash/isMatch";
24
+ import { default as qr } from "lodash/isMatchWith";
25
+ import { default as Hr } from "lodash/isNaN";
26
+ import { default as Ur } from "lodash/isNative";
27
+ import { default as Kr } from "lodash/isNil";
28
+ import { default as Xr } from "lodash/isNull";
29
+ import { default as rt } from "lodash/isNumber";
30
+ import { default as et } from "lodash/isObject";
31
+ import { default as ot } from "lodash/isObjectLike";
32
+ import { default as it } from "lodash/isPlainObject";
33
+ import { default as ut } from "lodash/isRegExp";
34
+ import { default as lt } from "lodash/isSafeInteger";
35
+ import { default as dt } from "lodash/isSet";
36
+ import { default as yt } from "lodash/isString";
37
+ import { default as ct } from "lodash/isSymbol";
38
+ import { default as Rt } from "lodash/isTypedArray";
39
+ import { default as St } from "lodash/isUndefined";
40
+ import { default as bt } from "lodash/isWeakMap";
41
+ import { default as Nt } from "lodash/isWeakSet";
42
+ function b(r) {
43
43
  return r == null;
44
44
  }
45
- function A(r, t) {
45
+ function M(r, t) {
46
46
  return r == null || r === !1 || typeof r == "string" && (t ? r.trim() === "" : r === "");
47
47
  }
48
- function C(r) {
48
+ function N(r) {
49
49
  return r || r === 0;
50
50
  }
51
- function O(r) {
51
+ function A(r) {
52
52
  return r === window;
53
53
  }
54
54
  function T(r) {
55
55
  return isPlainObject(r) && "$y" in r && "$M" in r && "$D" in r && "$d" in r && "$H" in r && "$m" in r && "$s" in r;
56
56
  }
57
- const l = (r) => r && i(r) && typeof r.type == "function", y = (r) => {
57
+ const l = (r) => r && f(r) && typeof r.type == "function", y = (r) => {
58
58
  var t;
59
59
  return l(r) && !!((t = r.type.prototype) != null && t.isReactComponent);
60
- }, x = (r) => i(r) && typeof r.type == "string";
61
- var s;
62
- const M = Number((s = u.version) == null ? void 0 : s.split(".")[0]) > 17;
63
- var f;
64
- const c = Number((f = u.version) == null ? void 0 : f.split(".")[0]) > 18, E = (r) => {
60
+ }, x = (r) => f(r) && typeof r.type == "string";
61
+ var a;
62
+ const O = Number((a = u.version) == null ? void 0 : a.split(".")[0]) > 17;
63
+ var i;
64
+ const c = Number((i = u.version) == null ? void 0 : i.split(".")[0]) > 18, E = (r) => {
65
65
  if (!c)
66
66
  return p(r);
67
67
  const t = Symbol.for("react.element"), n = Symbol.for("react.transitional.element"), d = Symbol.for("react.forward_ref");
68
68
  if (typeof r == "object" && r !== null) {
69
69
  const e = r.$$typeof;
70
70
  if (e === t || e === n) {
71
- const o = r.type;
72
- return (o && o.$$typeof) === d;
71
+ const s = r.type;
72
+ return (s && s.$$typeof) === d;
73
73
  }
74
74
  }
75
75
  return !1;
76
- }, _ = (r) => {
76
+ }, F = (r) => {
77
77
  var t;
78
- return r ? x(r) || E(r) || p(r) || r.$$typeof === a ? !0 : r.$$typeof === m ? ((t = r.type) == null ? void 0 : t.$$typeof) === a : l(r) ? y(r) : !1 : !1;
78
+ return r ? x(r) || E(r) || p(r) || r.$$typeof === o ? !0 : r.$$typeof === m ? ((t = r.type) == null ? void 0 : t.$$typeof) === o : l(r) ? y(r) : !1 : !1;
79
79
  };
80
80
  export {
81
- U as isArguments,
82
- G as isArray,
83
- Q as isArrayBuffer,
84
- Z as isArrayLike,
85
- tr as isArrayLikeObject,
86
- w as isBlob,
87
- or as isBoolean,
88
- sr as isBuffer,
81
+ ur as isArguments,
82
+ lr as isArray,
83
+ dr as isArrayBuffer,
84
+ yr as isArrayLike,
85
+ cr as isArrayLikeObject,
86
+ P as isAsyncMode,
87
+ H as isBlob,
88
+ Rr as isBoolean,
89
+ Sr as isBuffer,
89
90
  y as isClassComponent,
90
- D as isColor,
91
- W as isColor2,
91
+ J as isColor,
92
+ U as isColor2,
93
+ w as isConcurrentMode,
94
+ v as isContextConsumer,
95
+ D as isContextProvider,
92
96
  x as isDOMElement,
93
- ir as isDate,
97
+ br as isDate,
94
98
  T as isDayjs,
95
- pr as isElement,
96
- nr as isEmpty,
97
- v as isEmptyArray,
98
- L as isEmptyObject,
99
- A as isEmptyReactNode,
100
- P as isEmptyValue,
101
- mr as isEqual,
102
- xr as isEqualWith,
103
- Er as isError,
104
- C as isExist,
105
- h as isFile,
106
- $r as isFinite,
99
+ L as isElement,
100
+ Nr as isEmpty,
101
+ G as isEmptyArray,
102
+ K as isEmptyObject,
103
+ M as isEmptyReactNode,
104
+ Q as isEmptyValue,
105
+ Tr as isEqual,
106
+ Fr as isEqualWith,
107
+ gr as isError,
108
+ N as isExist,
109
+ X as isFile,
110
+ wr as isFinite,
111
+ W as isForwardRef,
107
112
  E as isForwardRefReact,
108
- br as isFunction,
109
- Ar as isInteger,
110
- k as isJSON,
111
- Or as isLength,
112
- Mr as isMap,
113
- gr as isMatch,
114
- wr as isMatchWith,
115
- Wr as isNaN,
116
- Lr as isNative,
117
- hr as isNil,
118
- Br as isNull,
119
- N as isNullOrUndefined,
120
- Ir as isNumber,
121
- jr as isObject,
122
- Hr as isObjectLike,
123
- Ur as isPlainObject,
124
- B as isPromise,
125
- M as isReact18,
113
+ h as isFragment,
114
+ Dr as isFunction,
115
+ Wr as isInteger,
116
+ Z as isJSON,
117
+ k as isLazy,
118
+ kr as isLength,
119
+ Vr as isMap,
120
+ Ir as isMatch,
121
+ qr as isMatchWith,
122
+ B as isMemo,
123
+ Hr as isNaN,
124
+ Ur as isNative,
125
+ Kr as isNil,
126
+ Xr as isNull,
127
+ b as isNullOrUndefined,
128
+ rt as isNumber,
129
+ et as isObject,
130
+ ot as isObjectLike,
131
+ it as isPlainObject,
132
+ V as isPortal,
133
+ Y as isProfiler,
134
+ rr as isPromise,
135
+ O as isReact18,
126
136
  c as isReact19,
127
137
  l as isReactComponent,
128
- Y as isReadableByteStreamControllerSupported,
129
- I as isReadableStream,
130
- V as isReadableStreamDefaultControllerSupported,
131
- j as isReadableStreamSupported,
132
- q as isReadableStreamSymbolAsyncIteratorSupported,
133
- Gr as isRegExp,
134
- Qr as isSafeInteger,
135
- Zr as isSet,
136
- tt as isString,
137
- ot as isSymbol,
138
- st as isTypedArray,
139
- it as isUndefined,
140
- H as isValidColor,
141
- pt as isWeakMap,
142
- nt as isWeakSet,
143
- O as isWindow,
144
- _ as supportRef
138
+ tr as isReadableByteStreamControllerSupported,
139
+ er as isReadableStream,
140
+ sr as isReadableStreamDefaultControllerSupported,
141
+ or as isReadableStreamSupported,
142
+ ar as isReadableStreamSymbolAsyncIteratorSupported,
143
+ ut as isRegExp,
144
+ lt as isSafeInteger,
145
+ dt as isSet,
146
+ I as isStrictMode,
147
+ yt as isString,
148
+ j as isSuspense,
149
+ ct as isSymbol,
150
+ Rt as isTypedArray,
151
+ St as isUndefined,
152
+ ir as isValidColor,
153
+ q as isValidElementType,
154
+ bt as isWeakMap,
155
+ Nt as isWeakSet,
156
+ A as isWindow,
157
+ F as supportRef
145
158
  };