@unicom-cloud/ui 0.8.72 → 0.8.73

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 (357) hide show
  1. package/Affix.js +2 -2
  2. package/Alert.js +2 -2
  3. package/AutoComplete.js +2 -2
  4. package/BackTop.js +2 -2
  5. package/Badge.js +2 -2
  6. package/Breadcrumb.js +3 -3
  7. package/Button.js +1 -1
  8. package/Calendar.js +1 -1
  9. package/Card.js +1 -1
  10. package/Carousel.js +1 -1
  11. package/Cascader.js +1 -1
  12. package/Checkbox.js +1 -1
  13. package/Collapse.js +1 -1
  14. package/ColorPicker.js +1 -1
  15. package/Comment.js +1 -1
  16. package/ConfigProvider.js +1 -1
  17. package/Copy.js +1 -1
  18. package/DatePicker.js +1 -1
  19. package/Descriptions.js +1 -1
  20. package/Divider.js +1 -1
  21. package/Draggable.js +1 -1
  22. package/Dropdown.js +4 -4
  23. package/Empty.js +1 -1
  24. package/Icon.js +1 -1
  25. package/IconHover.js +1 -1
  26. package/Image.js +1 -1
  27. package/InputNumber.js +1 -1
  28. package/Layout.js +1 -1
  29. package/Link.js +1 -1
  30. package/List.js +2 -2
  31. package/Mentions.js +2 -2
  32. package/Menu.js +1 -1
  33. package/Message.js +6 -5
  34. package/Modal.js +1 -1
  35. package/Notice.js +4 -4
  36. package/Notification.js +7 -6
  37. package/OverflowEllipsis.js +1 -1
  38. package/PageHeader.js +1 -1
  39. package/Popconfirm.js +2 -2
  40. package/Popover.js +2 -2
  41. package/Progress.js +1 -1
  42. package/Radio.js +1 -1
  43. package/Rate.js +2 -2
  44. package/ResizeBox.js +2 -2
  45. package/Result.js +1 -1
  46. package/SelectView.js +4 -3
  47. package/Skeleton.js +1 -1
  48. package/Slider.js +3 -3
  49. package/Space.js +1 -1
  50. package/SpeechSynthesis.js +20 -20
  51. package/Spin.js +2 -2
  52. package/Statistic.js +1 -1
  53. package/Steps.js +1 -1
  54. package/Switch.js +7 -5
  55. package/Table.js +1 -1
  56. package/Tabs.js +1 -1
  57. package/Tag.js +1 -1
  58. package/Tooltip.js +3 -3
  59. package/Transfer.js +2 -2
  60. package/Tree.js +1 -1
  61. package/Trigger.js +8 -7
  62. package/affix/index.js +2 -2
  63. package/alert/index.js +2 -2
  64. package/anchor/Anchor.js +53 -50
  65. package/anchor/Link.js +1 -1
  66. package/anchor/util.js +1 -1
  67. package/auto-complete/index.js +2 -2
  68. package/avatar/Avatar.js +1 -1
  69. package/avatar/Group.js +1 -1
  70. package/back-top/index.js +2 -2
  71. package/badge/Count.js +1 -1
  72. package/badge/index.js +50 -48
  73. package/breadcrumb/index.js +3 -3
  74. package/button/Group.js +1 -1
  75. package/button/index.js +1 -1
  76. package/calendar/index.js +2 -2
  77. package/card/Grid.js +1 -1
  78. package/card/Meta.js +1 -1
  79. package/card/index.js +1 -1
  80. package/carousel/Arrow.js +1 -1
  81. package/carousel/Indicator.js +1 -1
  82. package/carousel/index.js +1 -1
  83. package/cascader/Cascader.js +4 -4
  84. package/cascader/index.js +1 -1
  85. package/cascader/util.js +1 -1
  86. package/checkbox/Checkbox.js +3 -3
  87. package/checkbox/Group.js +3 -3
  88. package/checkbox/index.js +1 -1
  89. package/chunk/{BnWo0OJ0.js → 7HDzVe32.js} +7 -7
  90. package/chunk/{6nKl68Er.js → B0UZ1Ee2.js} +3 -3
  91. package/chunk/{b1e8awfs.js → B0n0iRhF.js} +1 -1
  92. package/chunk/{BDHuWwhT.js → B7hulkj9.js} +2 -2
  93. package/chunk/Bj4EV0eG.js +27 -0
  94. package/chunk/{Bfq4YEcr.js → Bmvhjhzq.js} +9 -8
  95. package/chunk/{Cgbja_v_.js → Byd0ztYY.js} +13 -12
  96. package/chunk/{URXCKjXr.js → C0pRaDCf.js} +23 -23
  97. package/chunk/{B4JiMp8I.js → CCVU-Kst.js} +8 -2
  98. package/chunk/{ClaNycDy.js → Cc_-i0o_.js} +2 -2
  99. package/chunk/CiY7w1ZO.js +647 -0
  100. package/chunk/{fFjj2KuF.js → Cj2SQJiO.js} +392 -414
  101. package/chunk/Coz3rCng.js +33 -0
  102. package/chunk/{BHL-PzAD.js → CplLA01W.js} +17 -17
  103. package/chunk/{CAVVFFyZ.js → D2LLXZQX.js} +5 -7
  104. package/chunk/DAAff-FT.js +59 -0
  105. package/chunk/{Cf4qn5jY.js → DJDOFlqC.js} +2 -2
  106. package/chunk/DU1RCDfh.js +29 -0
  107. package/chunk/{CdaT1b_F.js → DeV0v__J.js} +2 -2
  108. package/chunk/{IUjEMHU1.js → DejjIa3N.js} +176 -173
  109. package/chunk/{y9unmTx_.js → Dg0M2OmF.js} +125 -125
  110. package/chunk/{DV7ywe_q.js → RS6OAxzv.js} +2 -2
  111. package/chunk/{rp1MtSd0.js → UDX9U6M7.js} +3 -3
  112. package/chunk/{Biupwn8l.js → ZrBrCzQX.js} +6 -5
  113. package/chunk/{CP7Ac47f.js → oHDWCJnz.js} +3 -3
  114. package/chunk/{CdAuhef7.js → uH6uxyao.js} +1 -1
  115. package/chunk/{D090jlwP.js → xAb6ZgqS.js} +1 -1
  116. package/collapse/Collapse.js +3 -3
  117. package/collapse/Item.js +3 -3
  118. package/collapse/index.js +1 -1
  119. package/color-picker/ControlBar.js +1 -1
  120. package/color-picker/InputAlpha.js +1 -1
  121. package/color-picker/InputHex.js +8 -8
  122. package/color-picker/InputRgb.js +6 -6
  123. package/color-picker/Palette.js +2 -2
  124. package/color-picker/Panel.js +16 -16
  125. package/color-picker/colors.js +4 -4
  126. package/color-picker/index.js +3 -3
  127. package/color-picker/utils.js +1 -1
  128. package/comment/index.js +1 -1
  129. package/config-provider/ConfigProvider.js +2 -2
  130. package/config-provider/context.js +1 -1
  131. package/config-provider/index.js +2 -2
  132. package/copy/index.js +1 -1
  133. package/date-picker/Picker.js +1 -1
  134. package/date-picker/PickerRange.js +2 -2
  135. package/date-picker/index.js +1 -1
  136. package/descriptions/index.js +2 -2
  137. package/divider/index.js +1 -1
  138. package/draggable/index.js +1 -1
  139. package/drawer/Drawer.js +121 -111
  140. package/dropdown/Button.js +1 -1
  141. package/dropdown/index.js +4 -4
  142. package/empty/index.js +1 -1
  143. package/form/Form.js +2 -2
  144. package/form/FormItem.js +2 -2
  145. package/form/promisify.js +9 -8
  146. package/form/store.js +1 -1
  147. package/form/util.js +1 -1
  148. package/grid/Col.js +1 -1
  149. package/grid/Row.js +2 -2
  150. package/grid/grid-item.js +2 -2
  151. package/grid/grid.js +2 -2
  152. package/hooks/index.js +5 -5
  153. package/hooks/useInView.js +1 -1
  154. package/hooks/useIntersectionObserver.js +1 -1
  155. package/hooks/useMergeValue.js +1 -1
  156. package/hooks/useOverflowHidden.js +1 -1
  157. package/hooks/useOverrideRef.js +1 -1
  158. package/hooks/useVerificationCode.js +2 -2
  159. package/icon/index.js +1 -1
  160. package/icon-hover/index.js +1 -1
  161. package/image/Image.js +4 -4
  162. package/image/ImagePreview.js +8 -8
  163. package/image/ImagePreviewArrow.js +1 -1
  164. package/image/ImagePreviewGroup.js +2 -2
  165. package/image/index.js +1 -1
  166. package/index.js +591 -571
  167. package/input/Group.js +1 -1
  168. package/input/Input.js +47 -46
  169. package/input/InputElement.js +3 -3
  170. package/input/Password.js +2 -2
  171. package/input/Search.js +2 -2
  172. package/input/Textarea.js +6 -5
  173. package/input-number/index.js +1 -1
  174. package/input-tag/InputTag.js +52 -50
  175. package/layout/Content.js +1 -1
  176. package/layout/Footer.js +1 -1
  177. package/layout/Header.js +1 -1
  178. package/layout/Sider.js +3 -3
  179. package/layout/index.js +1 -1
  180. package/link/index.js +1 -1
  181. package/list/Item.js +1 -1
  182. package/list/Meta.js +1 -1
  183. package/list/index.js +2 -2
  184. package/locale/en-US.js +1 -1
  185. package/locale/tr-TR.js +1 -1
  186. package/mentions/index.js +2 -2
  187. package/menu/Item.js +1 -1
  188. package/menu/Menu.js +3 -3
  189. package/menu/OverflowWrap.js +1 -1
  190. package/menu/index.js +2 -2
  191. package/message/index.js +6 -5
  192. package/message/useMessage.js +1 -1
  193. package/modal/Confirm.js +2 -2
  194. package/modal/Modal.js +8 -7
  195. package/modal/index.js +1 -1
  196. package/notice/index.js +4 -4
  197. package/notification/index.js +7 -6
  198. package/notification/useNotification.js +1 -1
  199. package/overflow-ellipsis/OverflowItem.js +1 -1
  200. package/overflow-ellipsis/index.js +1 -1
  201. package/package.json +1 -1
  202. package/page-header/index.js +1 -1
  203. package/pagination/PageItem.js +1 -1
  204. package/pagination/PageJumper.js +1 -1
  205. package/pagination/PageOption.js +1 -1
  206. package/pagination/Pagination.js +2 -2
  207. package/picker/Input.js +1 -1
  208. package/picker/InputRange.js +1 -1
  209. package/popconfirm/index.js +2 -2
  210. package/popover/index.js +2 -2
  211. package/progress/index.js +1 -1
  212. package/radio/Group.js +3 -3
  213. package/radio/Radio.js +3 -3
  214. package/radio/index.js +2 -2
  215. package/rate/index.js +26 -26
  216. package/resize-box/ResizeTrigger.js +21 -20
  217. package/resize-box/Split.js +1 -1
  218. package/resize-box/SplitGroup.js +1 -1
  219. package/resize-box/index.js +2 -2
  220. package/result/index.js +1 -1
  221. package/select/Option.js +1 -1
  222. package/select/Select.js +5 -4
  223. package/select/util.js +12 -12
  224. package/select-view/Core.js +3 -3
  225. package/select-view/index.js +2 -1
  226. package/skeleton/index.js +1 -1
  227. package/slider/Button.js +2 -2
  228. package/slider/Tick.js +1 -1
  229. package/slider/index.js +19 -19
  230. package/slider/util.js +8 -8
  231. package/space/index.js +1 -1
  232. package/speech-synthesis/index.js +20 -20
  233. package/spin/DotLoading.js +1 -1
  234. package/spin/index.js +2 -2
  235. package/statistic/Countdown.js +1 -1
  236. package/statistic/index.js +1 -1
  237. package/steps/index.js +1 -1
  238. package/style/variables.less +1 -1
  239. package/style.css +1 -1
  240. package/switch/index.js +16 -14
  241. package/table/Table.js +2 -2
  242. package/table/index.js +3 -3
  243. package/tabs/Tab.js +3 -3
  244. package/tabs/TabContent.js +2 -2
  245. package/tabs/TabPane.js +1 -1
  246. package/tabs/index.js +2 -2
  247. package/tag/index.js +1 -1
  248. package/time-picker/Picker.js +1 -1
  249. package/time-picker/TimePicker.js +1 -1
  250. package/timeline/Item.js +1 -1
  251. package/timeline/Timeline.js +1 -1
  252. package/tooltip/index.js +3 -3
  253. package/transfer/Item.js +2 -2
  254. package/transfer/List.js +2 -2
  255. package/transfer/index.js +2 -2
  256. package/tree/Animation.js +3 -3
  257. package/tree/Node.js +3 -3
  258. package/tree/NodeList.js +2 -2
  259. package/tree/Tree.js +3 -3
  260. package/tree/index.js +1 -1
  261. package/tree-select/Select.js +25 -25
  262. package/trigger/getPopupStyle.js +2 -2
  263. package/trigger/index.js +7 -6
  264. package/types/badge/interface.d.ts +1 -0
  265. package/types/color-picker/colors.d.ts +1 -1
  266. package/types/date-picker/util.d.ts +1 -1
  267. package/types/drawer/interface.d.ts +10 -0
  268. package/types/index.d.ts +0 -7
  269. package/types/modal/Confirm.d.ts +1 -0
  270. package/types/utils/PqbCSSTransition.d.ts +3 -0
  271. package/types/utils/caseName.d.ts +1 -0
  272. package/types/utils/className.d.ts +1 -0
  273. package/types/utils/color.d.ts +1 -0
  274. package/types/utils/computeScrollIntoView.d.ts +1 -0
  275. package/types/utils/contextHolder.d.ts +1 -0
  276. package/types/utils/copy.d.ts +1 -0
  277. package/types/utils/fileToURL.d.ts +1 -0
  278. package/types/utils/fillNBSP.d.ts +1 -0
  279. package/types/utils/getHighlightText.d.ts +1 -0
  280. package/types/utils/getHotkeyHandler.d.ts +1 -0
  281. package/types/utils/getStringLength.d.ts +1 -0
  282. package/types/utils/include.d.ts +1 -0
  283. package/types/utils/index.d.ts +29 -25
  284. package/types/utils/is.d.ts +1 -1
  285. package/types/utils/keyboardCode.d.ts +1 -0
  286. package/types/utils/math.d.ts +1 -0
  287. package/types/utils/mergeProps.d.ts +1 -0
  288. package/types/utils/mergedToString.d.ts +1 -0
  289. package/types/utils/names.d.ts +497 -81
  290. package/types/utils/omit.d.ts +1 -0
  291. package/types/utils/pick.d.ts +1 -1
  292. package/types/utils/reactTransitionGroup.d.ts +1 -0
  293. package/types/utils/responsiveObserve.d.ts +1 -0
  294. package/types/utils/saveAs.d.ts +1 -0
  295. package/types/utils/screenfull.d.ts +1 -0
  296. package/types/utils/scrollIntoView.d.ts +1 -0
  297. package/types/utils/tinycolor.d.ts +1 -0
  298. package/types/utils/tree.d.ts +1 -0
  299. package/types/utils/tween.d.ts +1 -0
  300. package/types/utils/uuid.d.ts +1 -0
  301. package/types/utils/validate.d.ts +1 -0
  302. package/types/version/index.d.ts +1 -1
  303. package/typography/Base.js +6 -5
  304. package/typography/Ellipsis.js +30 -29
  305. package/typography/Paragraph.js +1 -1
  306. package/typography/Typography.js +1 -1
  307. package/typography/index.js +28 -27
  308. package/upload/TriggerNode.js +1 -1
  309. package/upload/Upload.js +60 -58
  310. package/upload/Uploader.js +21 -21
  311. package/upload/request_.js +4 -3
  312. package/utils/PqbCSSTransition.js +5 -0
  313. package/utils/caseName.js +3 -2
  314. package/utils/className.js +3 -2
  315. package/{chunk/B6X4lnd0.js → utils/color.js} +55 -53
  316. package/utils/computeScrollIntoView.js +128 -0
  317. package/utils/contextHolder.js +3 -2
  318. package/utils/copy.js +4 -2
  319. package/utils/fileToURL.js +3 -2
  320. package/utils/fillNBSP.js +2 -1
  321. package/utils/getHighlightText.js +2 -1
  322. package/utils/getHotkeyHandler.js +2 -1
  323. package/utils/getStringLength.js +2 -1
  324. package/utils/include.js +2 -1
  325. package/utils/index.js +302 -249
  326. package/utils/is.js +104 -101
  327. package/utils/keyboardCode.js +2 -1
  328. package/utils/math.js +35 -0
  329. package/utils/mergeProps.js +2 -1
  330. package/utils/mergedToString.js +2 -1
  331. package/utils/names.js +332 -81
  332. package/utils/omit.js +2 -1
  333. package/utils/pick.js +1 -0
  334. package/utils/react19Adapter.js +1 -1
  335. package/utils/reactDOM.js +1 -1
  336. package/utils/reactTransitionGroup.js +10 -0
  337. package/utils/responsiveObserve.js +2 -1
  338. package/utils/saveAs.js +3 -2
  339. package/utils/screenfull.js +2 -1
  340. package/utils/scrollIntoView.js +4 -2
  341. package/utils/tinycolor.js +30 -0
  342. package/utils/tree.js +87 -0
  343. package/utils/tween.js +6 -0
  344. package/utils/uuid.js +5 -0
  345. package/utils/validate.js +7 -0
  346. package/verification-code/VerificationCode.js +1 -1
  347. package/version/index.js +3 -3
  348. package/virtual-list/VirtualList.js +1 -1
  349. package/watermark/Watermark.js +1 -1
  350. package/chunk/BibHFOCF.js +0 -34
  351. package/chunk/CVYWxu00.js +0 -155
  352. package/chunk/CbLaCJmG.js +0 -26
  353. package/chunk/D-TPB2Do.js +0 -56
  354. package/chunk/DVfOiRp-.js +0 -629
  355. package/chunk/DxxOUMSa.js +0 -98
  356. package/types/utils/CSSTransition.d.ts +0 -2
  357. package/utils/CSSTransition.js +0 -4
@@ -0,0 +1,33 @@
1
+ import { compute as r } from "../utils/computeScrollIntoView.js";
2
+ const f = (t) => t === Object(t) && Object.keys(t).length !== 0, p = (t) => typeof t == "object" ? typeof t.behavior == "function" : !1, d = (t) => t === !1 ? { block: "end", inline: "nearest" } : f(t) ? t : { block: "start", inline: "nearest" }, u = (t) => {
3
+ const o = window.getComputedStyle(t);
4
+ return {
5
+ top: parseFloat(o.scrollMarginTop) || 0,
6
+ right: parseFloat(o.scrollMarginRight) || 0,
7
+ bottom: parseFloat(o.scrollMarginBottom) || 0,
8
+ left: parseFloat(o.scrollMarginLeft) || 0
9
+ };
10
+ }, b = (t) => {
11
+ let o = t;
12
+ for (; o && o.parentNode; ) {
13
+ if (o.parentNode === document)
14
+ return !0;
15
+ o.parentNode instanceof ShadowRoot ? o = o.parentNode.host : o = o.parentNode;
16
+ }
17
+ return !1;
18
+ };
19
+ function g(t, o) {
20
+ if (!t.isConnected || !b(t))
21
+ return;
22
+ const e = u(t);
23
+ if (p(o))
24
+ return o.behavior(r(t, o));
25
+ const n = typeof o == "boolean" || o == null ? void 0 : o.behavior;
26
+ for (const { el: l, top: a, left: i } of r(t, d(o))) {
27
+ const s = a - e.top + e.bottom, c = i - e.left + e.right;
28
+ l.scroll({ top: s, left: c, behavior: n });
29
+ }
30
+ }
31
+ export {
32
+ g as p
33
+ };
@@ -1,12 +1,12 @@
1
- import { H as c, z as x, G as w } from "./URXCKjXr.js";
1
+ import { g as c, y as x, S as w } from "./C0pRaDCf.js";
2
2
  import b from "lodash/isObject.js";
3
3
  import p from "lodash/isArray.js";
4
4
  import M from "lodash/isString.js";
5
5
  import _ from "lodash/isNumber.js";
6
6
  import E from "lodash/isEqual.js";
7
7
  import O from "lodash/isBoolean.js";
8
- import z from "lodash/isFunction.js";
9
- const S = {
8
+ import S from "lodash/isFunction.js";
9
+ const k = {
10
10
  required: "#{field} 是必填项",
11
11
  type: {
12
12
  string: "#{field} 不是合法的文本类型",
@@ -60,7 +60,7 @@ const S = {
60
60
  ...n
61
61
  } : n || s;
62
62
  }), e;
63
- }, k = (r, t) => {
63
+ }, z = (r, t) => {
64
64
  const e = t.split(".");
65
65
  let i = r;
66
66
  for (let s = 0; s < e.length; s++)
@@ -77,8 +77,8 @@ class m {
77
77
  value: this.obj,
78
78
  field: this.field,
79
79
  type: this.type
80
- }, a = k(this.validateMessages, i);
81
- return z(a) ? a(n) : M(a) ? a.replace(/#\{.+?\}/g, (g) => {
80
+ }, a = z(this.validateMessages, i);
81
+ return S(a) ? a(n) : M(a) ? a.replace(/#\{.+?\}/g, (g) => {
82
82
  const d = g.slice(2, -1);
83
83
  if (d in n) {
84
84
  if (b(n[d]) || p(n[d]))
@@ -92,7 +92,7 @@ class m {
92
92
  return g;
93
93
  }) : a;
94
94
  }), b(e) && M(t) && e.trim ? this.obj = t.trim() : b(e) && e.ignoreEmptyString && t === "" ? this.obj = void 0 : this.obj = t, this.message = e.message, this.type = e.type, this.error = null, this.field = e.field || e.type, this.validateMessages = V(
95
- S,
95
+ k,
96
96
  e.validateMessages
97
97
  );
98
98
  }
@@ -271,7 +271,7 @@ class D extends m {
271
271
  return c(this.obj) ? this : this.validate(this.obj < 0, this.getValidateMsg("number.negative"));
272
272
  }
273
273
  }
274
- class H extends m {
274
+ class I extends m {
275
275
  constructor(t, e) {
276
276
  super(t, {
277
277
  ...e,
@@ -300,7 +300,7 @@ class H extends m {
300
300
  );
301
301
  }
302
302
  }
303
- class I extends m {
303
+ class T extends m {
304
304
  constructor(t, e) {
305
305
  super(t, {
306
306
  ...e,
@@ -348,11 +348,11 @@ class I extends m {
348
348
  ) : this;
349
349
  }
350
350
  }
351
- const T = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, Z = new RegExp(
351
+ const Z = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, A = new RegExp(
352
352
  "^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$",
353
353
  "i"
354
- ), $ = /^(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})(\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})){3}$/;
355
- class A extends m {
354
+ ), U = /^(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})(\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})){3}$/;
355
+ class $ extends m {
356
356
  constructor(t, e) {
357
357
  super(t, {
358
358
  ...e,
@@ -361,19 +361,19 @@ class A extends m {
361
361
  }
362
362
  get email() {
363
363
  return this.type = "email", this.validate(
364
- this.obj === void 0 || T.test(this.obj),
364
+ this.obj === void 0 || Z.test(this.obj),
365
365
  this.getValidateMsg("type.email")
366
366
  );
367
367
  }
368
368
  get url() {
369
369
  return this.type = "url", this.validate(
370
- this.obj === void 0 || Z.test(this.obj),
370
+ this.obj === void 0 || A.test(this.obj),
371
371
  this.getValidateMsg("type.url")
372
372
  );
373
373
  }
374
374
  get ip() {
375
375
  return this.type = "ip", this.validate(
376
- this.obj === void 0 || $.test(this.obj),
376
+ this.obj === void 0 || U.test(this.obj),
377
377
  this.getValidateMsg("type.ip")
378
378
  );
379
379
  }
@@ -394,7 +394,7 @@ class q {
394
394
  e.validateMessages
395
395
  )
396
396
  };
397
- this.string = new I(t, s), this.number = new D(t, s), this.array = new R(t, s), this.object = new H(t, s), this.boolean = new K(t, s), this.type = new A(t, s), this.custom = new P(t, s);
397
+ this.string = new T(t, s), this.number = new D(t, s), this.array = new R(t, s), this.object = new I(t, s), this.boolean = new K(t, s), this.type = new $(t, s), this.custom = new P(t, s);
398
398
  }
399
399
  }
400
400
  class X {
@@ -460,6 +460,6 @@ class X {
460
460
  }
461
461
  export {
462
462
  X as H,
463
- S as e,
463
+ k as e,
464
464
  f as m
465
465
  };
@@ -5,12 +5,12 @@ import Z from "@unicom-cloud/icons/IconUiFile";
5
5
  import ee from "@unicom-cloud/icons/IconUiLoading";
6
6
  import p from "lodash/isFunction";
7
7
  import ne, { useContext as _, useRef as j, useEffect as U, useMemo as Y, forwardRef as te, useState as ie, useCallback as S } from "react";
8
- import { C as ae } from "./BDHuWwhT.js";
9
- import { a as B, I as re } from "./Cgbja_v_.js";
8
+ import { C as ae } from "./B7hulkj9.js";
9
+ import { a as B, I as re } from "./Byd0ztYY.js";
10
10
  import { m as O } from "./JPPo5nY_.js";
11
11
  import oe from "../utils/throttleByRaf.js";
12
12
  import se from "lodash/isNumber";
13
- import { P as le } from "./fFjj2KuF.js";
13
+ import { P as le } from "./Bj4EV0eG.js";
14
14
  import ce from "../virtual-list/VirtualList.js";
15
15
  import { TreeContext as V } from "../tree/Context.js";
16
16
  function de(e) {
@@ -69,14 +69,12 @@ const ge = (e) => {
69
69
  exit: 0
70
70
  },
71
71
  onEnter: (a) => {
72
- if (!a)
73
- return;
72
+ if (!a) return;
74
73
  const d = a.scrollHeight;
75
74
  a.style.height = h ? 0 : `${Math.min(m || d, a.scrollHeight)}px`;
76
75
  },
77
76
  onEntering: (a) => {
78
- if (!a)
79
- return;
77
+ if (!a) return;
80
78
  const d = a.scrollHeight;
81
79
  a.style.height = h ? `${Math.min(m || d, d)}px` : 0;
82
80
  },
@@ -0,0 +1,59 @@
1
+ import "./C0pRaDCf.js";
2
+ import { isDayjs as $ } from "dayjs";
3
+ import { isValidElement as a } from "react";
4
+ import u from "react-dom";
5
+ import { isForwardRef as p, ForwardRef as i, Memo as E } from "react-is";
6
+ import l from "lodash/isPlainObject.js";
7
+ function A(r) {
8
+ return r == null;
9
+ }
10
+ function O(r, s) {
11
+ return r == null || r === !1 || typeof r == "string" && (s ? r.trim() === "" : r === "");
12
+ }
13
+ function P(r) {
14
+ return r || r === 0;
15
+ }
16
+ function S(r) {
17
+ return r === window;
18
+ }
19
+ function g(r) {
20
+ return r && $(r) && typeof r.isValid == "function" && r.isValid() && l(r) && "$y" in r && "$M" in r && "$D" in r && "$d" in r && "$H" in r && "$m" in r && "$s" in r;
21
+ }
22
+ const e = (r) => r && a(r) && typeof r.type == "function", R = (r) => {
23
+ var s;
24
+ return e(r) && !!((s = r.type.prototype) != null && s.isReactComponent);
25
+ }, d = (r) => a(r) && typeof r.type == "string";
26
+ var n;
27
+ const V = Number((n = u.version) == null ? void 0 : n.split(".")[0]) > 17;
28
+ var f;
29
+ const T = Number((f = u.version) == null ? void 0 : f.split(".")[0]) > 18, _ = (r) => {
30
+ if (!T)
31
+ return p(r);
32
+ const s = Symbol.for("react.element"), y = Symbol.for("react.transitional.element"), c = Symbol.for("react.forward_ref");
33
+ if (typeof r == "object" && r !== null) {
34
+ const t = r.$$typeof;
35
+ if (t === s || t === y) {
36
+ const o = r.type;
37
+ return (o && o.$$typeof) === c;
38
+ }
39
+ }
40
+ return !1;
41
+ }, w = (r) => {
42
+ var s;
43
+ return r ? d(r) || _(r) || p(r) || r.$$typeof === i ? !0 : r.$$typeof === E ? ((s = r.type) == null ? void 0 : s.$$typeof) === i : e(r) ? R(r) : !1 : !1;
44
+ }, W = w;
45
+ export {
46
+ g as a,
47
+ d as b,
48
+ O as c,
49
+ P as d,
50
+ _ as e,
51
+ A as f,
52
+ V as g,
53
+ T as h,
54
+ R as i,
55
+ e as j,
56
+ W as k,
57
+ S as l,
58
+ w as s
59
+ };
@@ -2,9 +2,9 @@ import { jsx as i, jsxs as z, Fragment as H } from "react/jsx-runtime";
2
2
  import _ from "lodash/isFunction";
3
3
  import L from "lodash/isNil";
4
4
  import Q, { createContext as S, useContext as G, useRef as T } from "react";
5
- import { a as j, I as q } from "./Cgbja_v_.js";
5
+ import { a as j, I as q } from "./Byd0ztYY.js";
6
6
  import { u as A } from "./BFTV6myl.js";
7
- import { u as D } from "./CdaT1b_F.js";
7
+ import { u as D } from "./DeV0v__J.js";
8
8
  import { m as F } from "./JPPo5nY_.js";
9
9
  import { o as E } from "./BKKEev13.js";
10
10
  import J from "lodash/isArray";
@@ -0,0 +1,29 @@
1
+ import { useRef as d, useEffect as f } from "react";
2
+ function a(o, { hidden: s }) {
3
+ const c = d(!1), r = d({}), u = (t) => {
4
+ var e, n;
5
+ return t === document.body || ((n = (e = t.tagName) == null ? void 0 : e.toLowerCase) == null ? void 0 : n.call(e)) === "body" ? window.innerWidth - (document.body.clientWidth || document.documentElement.clientWidth) : t.offsetWidth - t.clientWidth;
6
+ }, l = () => {
7
+ const t = o();
8
+ if (t && t.style.overflow !== "hidden") {
9
+ const e = t.style;
10
+ c.current = !0;
11
+ const n = u(t);
12
+ n && (r.current.width = e.width, t.style.width = `calc(${t.style.width || "100%"} - ${n}px)`), r.current.overflow = e.overflow, t.style.overflow = "hidden";
13
+ }
14
+ }, i = () => {
15
+ if (c.current && o()) {
16
+ const t = o(), e = r.current;
17
+ Object.keys(e).forEach(
18
+ (n) => t.style[n] = e[n]
19
+ );
20
+ }
21
+ c.current = !1, r.current = {};
22
+ };
23
+ return f(() => (s ? l() : i(), () => {
24
+ i();
25
+ }), [o, s]), [i, l];
26
+ }
27
+ export {
28
+ a as u
29
+ };
@@ -1,7 +1,7 @@
1
1
  import { useRef as i, useState as l, useEffect as m } from "react";
2
- import "./D-TPB2Do.js";
2
+ import "./DAAff-FT.js";
3
3
  import { u as c } from "./VSe_Wq1g.js";
4
- import "./URXCKjXr.js";
4
+ import "./C0pRaDCf.js";
5
5
  import t from "lodash/isUndefined.js";
6
6
  function P(a, f) {
7
7
  const { defaultValue: r, value: e } = f || {}, u = i(!0), n = c(e), [s, o] = l(