@unicom-cloud/ui 0.8.77 → 0.8.79

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 (346) hide show
  1. package/Affix.js +3 -3
  2. package/Alert.js +3 -3
  3. package/AutoComplete.js +5 -5
  4. package/BackTop.js +5 -5
  5. package/Badge.js +3 -3
  6. package/Breadcrumb.js +4 -4
  7. package/Button.js +2 -2
  8. package/Calendar.js +4 -4
  9. package/Card.js +2 -2
  10. package/Carousel.js +2 -2
  11. package/Cascader.js +1 -1
  12. package/Checkbox.js +1 -1
  13. package/Collapse.js +1 -1
  14. package/ColorPicker.js +3 -3
  15. package/Comment.js +2 -2
  16. package/ConfigProvider.js +1 -1
  17. package/Copy.js +4 -4
  18. package/DatePicker.js +1 -1
  19. package/Descriptions.js +2 -2
  20. package/Divider.js +2 -2
  21. package/Draggable.js +2 -2
  22. package/Dropdown.js +5 -5
  23. package/Empty.js +2 -2
  24. package/Icon.js +9 -5
  25. package/IconHover.js +2 -2
  26. package/Image.js +1 -1
  27. package/InputNumber.js +3 -3
  28. package/Layout.js +2 -2
  29. package/Link.js +3 -3
  30. package/List.js +4 -4
  31. package/Mentions.js +5 -5
  32. package/Menu.js +1 -1
  33. package/Message.js +3 -3
  34. package/Modal.js +1 -1
  35. package/Notice.js +9 -8
  36. package/Notification.js +3 -3
  37. package/OverflowEllipsis.js +2 -2
  38. package/PageHeader.js +3 -3
  39. package/Pagination.js +1 -1
  40. package/Popconfirm.js +3 -3
  41. package/Popover.js +3 -3
  42. package/Progress.js +2 -2
  43. package/Radio.js +1 -1
  44. package/Rate.js +3 -3
  45. package/ResizeBox.js +3 -3
  46. package/Result.js +2 -2
  47. package/Select.js +1 -1
  48. package/SelectView.js +5 -6
  49. package/Skeleton.js +2 -2
  50. package/Slider.js +4 -4
  51. package/Space.js +2 -2
  52. package/SpeechSynthesis.js +18 -20
  53. package/Spin.js +3 -3
  54. package/Statistic.js +3 -3
  55. package/Steps.js +2 -2
  56. package/Switch.js +7 -8
  57. package/Table.js +1 -1
  58. package/Tabs.js +1 -1
  59. package/Tag.js +3 -3
  60. package/Tooltip.js +3 -3
  61. package/Transfer.js +4 -4
  62. package/Tree.js +1 -1
  63. package/TreeSelect.js +1 -1
  64. package/Trigger.js +9 -10
  65. package/Typography.js +1 -1
  66. package/affix/index.js +17 -17
  67. package/alert/index.js +13 -13
  68. package/anchor/Anchor.js +40 -40
  69. package/anchor/Link.js +14 -14
  70. package/anchor/util.js +2 -2
  71. package/auto-complete/index.js +5 -5
  72. package/avatar/Avatar.js +17 -17
  73. package/avatar/Group.js +13 -13
  74. package/back-top/index.js +13 -13
  75. package/badge/Count.js +13 -13
  76. package/badge/index.js +21 -21
  77. package/breadcrumb/Item.js +25 -25
  78. package/breadcrumb/index.js +12 -12
  79. package/button/Group.js +6 -6
  80. package/button/index.js +30 -30
  81. package/calendar/Month.js +2 -2
  82. package/calendar/Year.js +1 -1
  83. package/calendar/index.js +4 -4
  84. package/card/Grid.js +13 -13
  85. package/card/Meta.js +13 -13
  86. package/card/index.js +29 -29
  87. package/carousel/Arrow.js +6 -6
  88. package/carousel/Indicator.js +27 -27
  89. package/carousel/index.js +24 -24
  90. package/cascader/Cascader.js +8 -8
  91. package/cascader/index.js +1 -1
  92. package/cascader/util.js +1 -1
  93. package/checkbox/Checkbox.js +4 -4
  94. package/checkbox/Group.js +4 -4
  95. package/checkbox/GroupBlock.js +3 -3
  96. package/checkbox/index.js +2 -2
  97. package/chunk/{ZrBrCzQX.js → B4WG1mhs.js} +6 -7
  98. package/chunk/{Cwm8LL5p.js → B4mZh-RK.js} +7245 -7249
  99. package/chunk/{CjqvxJml.js → BG7YGUsx.js} +32 -32
  100. package/chunk/{BhBEMwvI.js → BNevupAU.js} +18 -20
  101. package/chunk/BYdIoY50.js +17 -0
  102. package/chunk/{Cc_-i0o_.js → BZ3igxQN.js} +6 -7
  103. package/chunk/{uEGHykhe.js → BZ9g7J4R.js} +1 -1
  104. package/chunk/BsUZRQDT.js +23 -0
  105. package/chunk/{CBgu99gQ.js → C5X4hOkx.js} +130 -130
  106. package/chunk/{B0n0iRhF.js → CCKr5jj1.js} +1 -1
  107. package/chunk/{CNcLypMY.js → CQvM33Vg.js} +190 -189
  108. package/chunk/CXPOj2uy.js +19 -0
  109. package/chunk/{DAAff-FT.js → ClM74To2.js} +9 -10
  110. package/chunk/{RS6OAxzv.js → D-ap9qEk.js} +2 -2
  111. package/chunk/{tpmioyz1.js → DEiyXzBZ.js} +28 -28
  112. package/chunk/{CplLA01W.js → DEuVgCzp.js} +45 -52
  113. package/chunk/{BPQXH_5i.js → DYspELhF.js} +43 -43
  114. package/chunk/DxYoPlum.js +50 -0
  115. package/chunk/{BpYX5PN4.js → NPajzdOv.js} +2 -2
  116. package/chunk/{BBkdXHrJ.js → rT6qmv-Y.js} +1 -1
  117. package/chunk/{BC5fEyWK.js → yLRv5RIK.js} +61 -61
  118. package/chunk/{C_4I3haT.js → yhU2zeeu.js} +96 -96
  119. package/collapse/Collapse.js +4 -4
  120. package/collapse/Item.js +4 -4
  121. package/collapse/index.js +1 -1
  122. package/color-picker/ControlBar.js +22 -22
  123. package/color-picker/InputAlpha.js +1 -1
  124. package/color-picker/InputHex.js +1 -1
  125. package/color-picker/InputRgb.js +1 -1
  126. package/color-picker/Palette.js +1 -1
  127. package/color-picker/Panel.js +4 -4
  128. package/color-picker/index.js +3 -3
  129. package/comment/index.js +18 -18
  130. package/config-provider/ConfigProvider.js +2 -2
  131. package/config-provider/context.js +2 -2
  132. package/config-provider/index.js +2 -2
  133. package/copy/index.js +23 -23
  134. package/date-picker/Picker.js +41 -41
  135. package/date-picker/PickerRange.js +3 -3
  136. package/date-picker/index.js +1 -1
  137. package/descriptions/index.js +28 -28
  138. package/divider/index.js +15 -15
  139. package/draggable/Item.js +11 -11
  140. package/draggable/index.js +15 -15
  141. package/drawer/Drawer.js +31 -31
  142. package/dropdown/Button.js +1 -1
  143. package/dropdown/index.js +22 -22
  144. package/empty/index.js +2 -2
  145. package/form/Control.js +46 -46
  146. package/form/Form.js +12 -12
  147. package/form/FormItem.js +12 -12
  148. package/form/FormLabel.js +11 -11
  149. package/form/context.js +7 -6
  150. package/form/promisify.js +9 -10
  151. package/form/store.js +1 -1
  152. package/form/util.js +1 -1
  153. package/grid/Col.js +38 -38
  154. package/grid/Row.js +15 -15
  155. package/grid/grid-item.js +17 -17
  156. package/grid/grid.js +28 -28
  157. package/hooks/index.js +6 -6
  158. package/hooks/useInView.js +1 -1
  159. package/hooks/useIntersectionObserver.js +1 -1
  160. package/hooks/useKeyboardEvent.js +1 -1
  161. package/hooks/useMergeValue.js +1 -1
  162. package/hooks/useOverrideRef.js +1 -1
  163. package/hooks/usePrefersColorSchemeDark.js +1 -1
  164. package/hooks/useVerificationCode.js +30 -30
  165. package/icon/index.js +20 -16
  166. package/icon-hover/index.js +2 -2
  167. package/image/Image.js +22 -22
  168. package/image/ImageFooter.js +2 -2
  169. package/image/ImagePreview.js +11 -11
  170. package/image/ImagePreviewArrow.js +16 -16
  171. package/image/ImagePreviewGroup.js +2 -2
  172. package/image/ImagePreviewToolbar.js +7 -7
  173. package/image/TriggerForToolbar.js +7 -7
  174. package/image/index.js +1 -1
  175. package/index.js +547 -580
  176. package/input/Group.js +10 -10
  177. package/input/Input.js +213 -214
  178. package/input/InputElement.js +10 -11
  179. package/input/Password.js +4 -4
  180. package/input/Search.js +3 -3
  181. package/input/Textarea.js +7 -8
  182. package/input/useComposition.js +6 -6
  183. package/input-number/index.js +3 -3
  184. package/input-tag/InputTag.js +110 -111
  185. package/layout/Content.js +4 -4
  186. package/layout/Footer.js +6 -6
  187. package/layout/Header.js +8 -8
  188. package/layout/Sider.js +29 -29
  189. package/layout/index.js +16 -16
  190. package/link/index.js +27 -27
  191. package/list/Item.js +5 -5
  192. package/list/Meta.js +11 -11
  193. package/list/index.js +4 -4
  194. package/locale/en-US.js +1 -1
  195. package/locale/tr-TR.js +1 -1
  196. package/mentions/index.js +5 -5
  197. package/menu/Item.js +11 -11
  198. package/menu/ItemGroup.js +8 -8
  199. package/menu/Menu.js +5 -5
  200. package/menu/OverflowWrap.js +2 -2
  201. package/menu/index.js +2 -2
  202. package/message/index.js +3 -3
  203. package/message/useMessage.js +1 -1
  204. package/modal/Confirm.js +2 -2
  205. package/modal/Modal.js +7 -7
  206. package/modal/index.js +1 -1
  207. package/notice/index.js +9 -8
  208. package/notification/index.js +3 -3
  209. package/notification/useNotification.js +1 -1
  210. package/overflow-ellipsis/OverflowItem.js +6 -6
  211. package/overflow-ellipsis/index.js +27 -27
  212. package/package.json +1 -1
  213. package/page-header/index.js +3 -3
  214. package/pagination/PageItem.js +7 -7
  215. package/pagination/PageJumper.js +1 -1
  216. package/pagination/PageOption.js +3 -3
  217. package/pagination/Pagination.js +4 -4
  218. package/pagination/index.js +1 -1
  219. package/picker/Input.js +7 -7
  220. package/picker/InputRange.js +77 -77
  221. package/popconfirm/index.js +11 -11
  222. package/popover/index.js +21 -21
  223. package/progress/CircleProgress.js +14 -14
  224. package/progress/LineProgess.js +14 -14
  225. package/progress/StepProgress.js +9 -9
  226. package/progress/index.js +26 -26
  227. package/radio/Group.js +4 -4
  228. package/radio/GroupBlock.js +3 -3
  229. package/radio/Radio.js +4 -4
  230. package/radio/index.js +2 -2
  231. package/rate/index.js +16 -16
  232. package/resize-box/ResizeTrigger.js +27 -28
  233. package/resize-box/Split.js +21 -21
  234. package/resize-box/SplitGroup.js +40 -40
  235. package/resize-box/index.js +23 -23
  236. package/result/index.js +29 -29
  237. package/select/Option.js +2 -2
  238. package/select/Select.js +11 -12
  239. package/select/index.js +2 -2
  240. package/select/util.js +5 -5
  241. package/select-view/Core.js +104 -106
  242. package/select-view/index.js +22 -23
  243. package/skeleton/Image.js +14 -14
  244. package/skeleton/Text.js +16 -16
  245. package/skeleton/index.js +11 -11
  246. package/slider/Button.js +4 -4
  247. package/slider/Dot.js +9 -9
  248. package/slider/Input.js +20 -20
  249. package/slider/Tick.js +14 -14
  250. package/slider/index.js +103 -103
  251. package/slider/util.js +3 -3
  252. package/space/index.js +14 -14
  253. package/speech-synthesis/index.js +26 -28
  254. package/spin/DotLoading.js +1 -1
  255. package/spin/index.js +16 -16
  256. package/statistic/Countdown.js +17 -17
  257. package/statistic/index.js +32 -32
  258. package/steps/Step.js +8 -8
  259. package/steps/index.js +17 -17
  260. package/style.css +1 -1
  261. package/switch/index.js +32 -33
  262. package/table/Table.js +5 -5
  263. package/table/index.js +1 -1
  264. package/tabs/Tab.js +4 -4
  265. package/tabs/TabContent.js +3 -3
  266. package/tabs/TabPane.js +11 -11
  267. package/tabs/index.js +2 -2
  268. package/tabs/util.js +1 -1
  269. package/tag/index.js +16 -16
  270. package/time-picker/Picker.js +50 -50
  271. package/time-picker/TimeColumn.js +8 -8
  272. package/time-picker/TimePicker.js +32 -32
  273. package/time-picker/util.js +1 -1
  274. package/timeline/Item.js +15 -15
  275. package/timeline/Timeline.js +24 -24
  276. package/tooltip/index.js +23 -23
  277. package/transfer/Item.js +4 -4
  278. package/transfer/List.js +4 -4
  279. package/transfer/index.js +4 -4
  280. package/tree/Animation.js +3 -3
  281. package/tree/Node.js +3 -3
  282. package/tree/NodeList.js +2 -2
  283. package/tree/Tree.js +4 -4
  284. package/tree/index.js +1 -1
  285. package/tree-select/List.js +2 -2
  286. package/tree-select/Select.js +8 -9
  287. package/tree-select/index.js +2 -2
  288. package/trigger/getPopupStyle.js +18 -19
  289. package/trigger/index.js +32 -33
  290. package/types/button/index.d.ts +2 -2
  291. package/types/color-picker/colors.d.ts +1 -1
  292. package/types/date-picker/util.d.ts +1 -1
  293. package/types/icon/index.d.ts +3 -1
  294. package/types/index.d.ts +1 -1
  295. package/types/menu/context.d.ts +1 -1
  296. package/typography/Base.js +33 -35
  297. package/typography/EditContent.js +16 -16
  298. package/typography/Ellipsis.js +24 -26
  299. package/typography/Operations.js +1 -1
  300. package/typography/Paragraph.js +8 -8
  301. package/typography/Typography.js +7 -7
  302. package/typography/index.js +1 -1
  303. package/upload/TriggerNode.js +8 -8
  304. package/upload/Upload.js +64 -65
  305. package/upload/Uploader.js +12 -12
  306. package/upload/request.js +13 -12
  307. package/upload/request_.js +5 -6
  308. package/utils/PqbCSSTransition.js +1 -1
  309. package/utils/caseName.js +4 -3
  310. package/utils/className.js +4 -3
  311. package/utils/constant.js +3 -3
  312. package/utils/contextHolder.js +1 -1
  313. package/utils/copy.js +5 -4
  314. package/utils/fileToURL.js +4 -3
  315. package/utils/index.js +261 -298
  316. package/utils/is.js +78 -115
  317. package/utils/keyboardCode.js +4 -26
  318. package/utils/math.js +10 -32
  319. package/utils/react19Adapter.js +1 -1
  320. package/utils/reactDOM.js +1 -1
  321. package/utils/saveAs.js +4 -3
  322. package/utils/screenfull.js +4 -3
  323. package/utils/scrollIntoView.js +1 -1
  324. package/utils/setDarkTheme.js +1 -1
  325. package/utils/tree.js +7 -83
  326. package/utils/tween.js +1 -1
  327. package/utils/validate.js +1 -1
  328. package/verification-code/VerificationCode.js +25 -25
  329. package/version/index.js +1 -1
  330. package/virtual-list/VirtualList.js +1 -1
  331. package/watermark/Watermark.js +8 -8
  332. package/chunk/ATwvJ8j2.js +0 -6
  333. package/chunk/BFmckYou.js +0 -25
  334. package/chunk/Bl7BnD1R.js +0 -119
  335. package/chunk/Bmvhjhzq.js +0 -24
  336. package/chunk/BrOW642m.js +0 -130
  337. package/chunk/C0pRaDCf.js +0 -96
  338. package/chunk/CBzE-PUr.js +0 -23
  339. package/chunk/CUFsOxJ2.js +0 -10
  340. package/chunk/Ce1j9KTi.js +0 -6
  341. package/chunk/D0Dlbc2g.js +0 -41
  342. package/chunk/DRTWRsgI.js +0 -34
  343. package/chunk/DeV0v__J.js +0 -20
  344. package/chunk/DohlrJ4S.js +0 -50
  345. package/chunk/XTEsYGuF.js +0 -17
  346. package/chunk/yl4BU7Sd.js +0 -1068
package/switch/index.js CHANGED
@@ -1,36 +1,35 @@
1
- import { jsxs as l, jsx as n, Fragment as R } from "react/jsx-runtime";
1
+ import { jsxs as a, jsx as n, Fragment as R } from "react/jsx-runtime";
2
2
  import q from "@unicom-cloud/icons/IconUiLoading";
3
3
  import { h as A } from "../chunk/BJ9_azwQ.js";
4
4
  import B from "lodash/isArray";
5
5
  import { forwardRef as L, useContext as M, useState as O } from "react";
6
- import { a as Q } from "../chunk/CNcLypMY.js";
6
+ import { a as Q } from "../chunk/CQvM33Vg.js";
7
7
  import { u as U } from "../chunk/BFTV6myl.js";
8
- import { P as x } from "../chunk/BpYX5PN4.js";
9
- import { p as W } from "../chunk/CUFsOxJ2.js";
10
- import "../chunk/DAAff-FT.js";
8
+ import { P as x } from "../chunk/NPajzdOv.js";
9
+ import W from "@unicom-cloud/utils/class-name";
10
+ import "../chunk/ClM74To2.js";
11
11
  import { o as D } from "../chunk/BKKEev13.js";
12
- import "../chunk/C0pRaDCf.js";
13
- import G from "lodash/isPlainObject.js";
12
+ import { isPlainObject as G } from "@unicom-cloud/utils/is";
14
13
  const J = {
15
14
  type: "circle"
16
15
  };
17
- function K(S, $) {
16
+ function K(N, $) {
18
17
  const {
19
- getPrefixCls: y,
20
- size: N,
21
- componentConfig: a,
18
+ getPrefixCls: S,
19
+ size: y,
20
+ componentConfig: d,
22
21
  rtl: w
23
22
  } = M(Q), i = U(
24
- S,
23
+ N,
25
24
  J,
26
- a == null ? void 0 : a.Switch
25
+ d == null ? void 0 : d.Switch
27
26
  ), {
28
27
  className: P,
29
28
  children: t,
30
29
  style: g = {},
31
30
  disabled: b,
32
31
  size: I,
33
- loading: d,
32
+ loading: l,
34
33
  onChange: m,
35
34
  type: h,
36
35
  checkedText: v,
@@ -38,37 +37,37 @@ function K(S, $) {
38
37
  checkedIcon: p,
39
38
  uncheckedIcon: k,
40
39
  ...T
41
- } = i, e = y("switch"), f = I || N, [j, _] = O(
40
+ } = i, e = S("switch"), f = I || y, [j, _] = O(
42
41
  i.value ?? // 潘启宝添加,接收 FormItem 里传来的数据
43
42
  i.defaultChecked
44
43
  ), c = "checked" in i ? i.checked : j, E = (r) => {
45
44
  var u;
46
- d || ((u = i.onClick) == null || u.call(i, r), "checked" in i || _(!c), m == null || m(!c, r));
45
+ l || ((u = i.onClick) == null || u.call(i, r), "checked" in i || _(!c), m == null || m(!c, r));
47
46
  }, F = W(
48
47
  e,
49
48
  f === "small" ? `${e}-${f}` : void 0,
50
49
  {
51
50
  [`${e}-type-${h}`]: h,
52
51
  [`${e}-checked`]: c,
53
- [`${e}-loading`]: d,
52
+ [`${e}-loading`]: l,
54
53
  [`${e}-rtl`]: w
55
54
  },
56
55
  P
57
56
  );
58
- let o = v, s = z;
59
- t && B(t) ? (o = t.find(
57
+ let s = v, o = z;
58
+ t && B(t) ? (s = t.find(
60
59
  (r) => r.key === "open"
61
- ), s = t.find(
60
+ ), o = t.find(
62
61
  (r) => r.key === "close"
63
- )) : t && G(t) && (t.key === "open" ? o = t : t.key === "close" && (s = t));
62
+ )) : t && G(t) && (t.key === "open" ? s = t : t.key === "close" && (o = t));
64
63
  const H = D(T, ["onChange", "checked", "error"]);
65
- return /* @__PURE__ */ l(
64
+ return /* @__PURE__ */ a(
66
65
  "button",
67
66
  {
68
67
  ref: $,
69
68
  role: "switch",
70
69
  "aria-checked": !!c,
71
- tabIndex: d ? -1 : void 0,
70
+ tabIndex: l ? -1 : void 0,
72
71
  ...H,
73
72
  style: g,
74
73
  className: F,
@@ -76,8 +75,8 @@ function K(S, $) {
76
75
  onClick: E,
77
76
  type: "button",
78
77
  children: [
79
- /* @__PURE__ */ l("div", { className: `${e}-dot`, children: [
80
- !d && (p || k) && /* @__PURE__ */ n(A, { children: /* @__PURE__ */ n(
78
+ /* @__PURE__ */ a("div", { className: `${e}-dot`, children: [
79
+ !l && (p || k) && /* @__PURE__ */ n(A, { children: /* @__PURE__ */ n(
81
80
  x,
82
81
  {
83
82
  classNames: "fadeIn",
@@ -86,12 +85,12 @@ function K(S, $) {
86
85
  },
87
86
  c ? "checked" : "unchecked"
88
87
  ) }),
89
- d && /* @__PURE__ */ n("span", { className: `${e}-dot-icon`, children: /* @__PURE__ */ n(q, {}) })
88
+ l && /* @__PURE__ */ n("span", { className: `${e}-dot-icon`, children: /* @__PURE__ */ n(q, {}) })
90
89
  ] }),
91
- f !== "small" && h !== "line" && (o || s) && /* @__PURE__ */ l(R, { children: [
92
- /* @__PURE__ */ l("div", { className: `${e}-text-holder`, children: [
93
- o && c && o,
94
- s && !c && s
90
+ f !== "small" && h !== "line" && (s || o) && /* @__PURE__ */ a(R, { children: [
91
+ /* @__PURE__ */ a("div", { className: `${e}-text-holder`, children: [
92
+ s && c && s,
93
+ o && !c && o
95
94
  ] }),
96
95
  /* @__PURE__ */ n(
97
96
  x,
@@ -99,9 +98,9 @@ function K(S, $) {
99
98
  in: c,
100
99
  classNames: "switchSlideText",
101
100
  timeout: 200,
102
- children: /* @__PURE__ */ l("div", { className: `${e}-text`, children: [
103
- o && c && o,
104
- s && !c && s
101
+ children: /* @__PURE__ */ a("div", { className: `${e}-text`, children: [
102
+ s && c && s,
103
+ o && !c && o
105
104
  ] })
106
105
  }
107
106
  )
package/table/Table.js CHANGED
@@ -1,23 +1,23 @@
1
1
  import "react/jsx-runtime";
2
- import "../chunk/BhBEMwvI.js";
2
+ import "../chunk/BNevupAU.js";
3
3
  import "lodash/debounce";
4
4
  import "lodash/isArray";
5
5
  import "lodash/isNumber";
6
6
  import "lodash/isPlainObject";
7
7
  import "lodash/throttle";
8
8
  import "react";
9
- import "../chunk/CNcLypMY.js";
9
+ import "../chunk/CQvM33Vg.js";
10
10
  import "../chunk/B2yFlXke.js";
11
11
  import "../chunk/BFTV6myl.js";
12
12
  import "../chunk/a3hR6zLw.js";
13
- import { a4 as q } from "../chunk/Cwm8LL5p.js";
13
+ import { _ as n } from "../chunk/B4mZh-RK.js";
14
14
  import "../spin/index.js";
15
- import "../chunk/CUFsOxJ2.js";
15
+ import "@unicom-cloud/utils/class-name";
16
16
  import "../utils/dom.js";
17
17
  import "../chunk/ClqoGc3r.js";
18
18
  import "../chunk/CIRG541s.js";
19
19
  import "./ColGroup.js";
20
20
  import "./util.js";
21
21
  export {
22
- q as default
22
+ n as default
23
23
  };
package/table/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as s, i as l, j as o, T as u, u as m, k as t, l as b, m as T, n, o as r, p as f, q as p } from "../chunk/Cwm8LL5p.js";
1
+ import { h as s, i as l, j as o, T as u, u as m, k as t, l as b, m as T, n, o as r, p as f, q as p } from "../chunk/B4mZh-RK.js";
2
2
  import { defaultComponent as C } from "./constant.js";
3
3
  export {
4
4
  s as TableSummary,
package/tabs/Tab.js CHANGED
@@ -2,13 +2,13 @@ import "react/jsx-runtime";
2
2
  import "lodash/isFunction";
3
3
  import "lodash/isPlainObject";
4
4
  import "react";
5
- import "../chunk/CNcLypMY.js";
5
+ import "../chunk/CQvM33Vg.js";
6
6
  import "../chunk/B4YRLi8r.js";
7
7
  import "../chunk/BFTV6myl.js";
8
- import "../chunk/DeV0v__J.js";
9
- import "../chunk/CUFsOxJ2.js";
8
+ import "../chunk/CXPOj2uy.js";
9
+ import "@unicom-cloud/utils/class-name";
10
10
  import "../chunk/BKKEev13.js";
11
- import { a as d, T as l } from "../chunk/CjqvxJml.js";
11
+ import { a as d, T as l } from "../chunk/BG7YGUsx.js";
12
12
  import { default as u, default as x } from "./TabPane.js";
13
13
  export {
14
14
  u as TabPane,
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import "../chunk/CNcLypMY.js";
4
- import "../chunk/CUFsOxJ2.js";
5
- import { b as a } from "../chunk/CjqvxJml.js";
3
+ import "../chunk/CQvM33Vg.js";
4
+ import "@unicom-cloud/utils/class-name";
5
+ import { b as a } from "../chunk/BG7YGUsx.js";
6
6
  export {
7
7
  a as default
8
8
  };
package/tabs/TabPane.js CHANGED
@@ -1,22 +1,22 @@
1
1
  import { jsx as u } from "react/jsx-runtime";
2
2
  import d, { useRef as p, useContext as b } from "react";
3
- import { a as x } from "../chunk/CNcLypMY.js";
4
- import { p as C } from "../chunk/CUFsOxJ2.js";
5
- import { o as P } from "../chunk/BKKEev13.js";
6
- function R(r, a) {
7
- const e = p(!1), { getPrefixCls: o } = b(x), { children: s, className: n, style: i, lazyload: c, isActive: f, ...l } = r, m = o("tabs");
8
- return e.current = c ? e.current || f : !0, e.current && /* @__PURE__ */ u(
3
+ import { a as x } from "../chunk/CQvM33Vg.js";
4
+ import C from "@unicom-cloud/utils/class-name";
5
+ import { o as N } from "../chunk/BKKEev13.js";
6
+ function P(a, s) {
7
+ const e = p(!1), { getPrefixCls: r } = b(x), { children: o, className: n, style: i, lazyload: c, isActive: l, ...m } = a, f = r("tabs");
8
+ return e.current = c ? e.current || l : !0, e.current && /* @__PURE__ */ u(
9
9
  "div",
10
10
  {
11
- ref: a,
12
- ...P(l, ["destroyOnHide", "title", "closable"]),
13
- className: C(`${m}-pane`, n),
11
+ ref: s,
12
+ ...N(m, ["destroyOnHide", "title", "closable"]),
13
+ className: C(`${f}-pane`, n),
14
14
  style: i,
15
- children: s
15
+ children: o
16
16
  }
17
17
  );
18
18
  }
19
- const t = d.forwardRef(R);
19
+ const t = d.forwardRef(P);
20
20
  t.displayName = "TabPane";
21
21
  t.isTabPane = !0;
22
22
  export {
package/tabs/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { T as e } from "../chunk/CjqvxJml.js";
2
- import { a as s } from "../chunk/CjqvxJml.js";
1
+ import { T as e } from "../chunk/BG7YGUsx.js";
2
+ import { a as s } from "../chunk/BG7YGUsx.js";
3
3
  import { default as f, default as T } from "./TabPane.js";
4
4
  export {
5
5
  f as TabPane,
package/tabs/util.js CHANGED
@@ -1,4 +1,4 @@
1
- import { e as n } from "../chunk/BrOW642m.js";
1
+ import { Enter as n } from "@unicom-cloud/utils/constant/keyboardCode";
2
2
  const i = (e, t) => {
3
3
  const c = e.getBoundingClientRect(), o = t.getBoundingClientRect(), l = t.offsetWidth / o.width, s = t.offsetHeight / o.height;
4
4
  return {
package/tag/index.js CHANGED
@@ -3,13 +3,13 @@ import Q from "@unicom-cloud/icons/IconUiClose";
3
3
  import W from "@unicom-cloud/icons/IconUiLoading";
4
4
  import b from "lodash/isPlainObject";
5
5
  import { forwardRef as X, useContext as Y, useState as v } from "react";
6
- import { a as Z, I as S } from "../chunk/CNcLypMY.js";
7
- import { u as ee } from "../chunk/XTEsYGuF.js";
6
+ import { a as Z, I as S } from "../chunk/CQvM33Vg.js";
7
+ import { u as ee } from "../chunk/BYdIoY50.js";
8
8
  import { u as oe } from "../chunk/BFTV6myl.js";
9
9
  import ne from "../popconfirm/index.js";
10
- import { p as ie } from "../chunk/CUFsOxJ2.js";
10
+ import ie from "@unicom-cloud/utils/class-name";
11
11
  import { o as re } from "../chunk/BKKEev13.js";
12
- const te = [
12
+ const se = [
13
13
  "red",
14
14
  "orangered",
15
15
  "orange",
@@ -22,26 +22,26 @@ const te = [
22
22
  "purple",
23
23
  "magenta",
24
24
  "gray"
25
- ], se = {
25
+ ], te = {
26
26
  size: "default"
27
27
  };
28
28
  function ce(_, j) {
29
29
  var E;
30
30
  const { getPrefixCls: z, componentConfig: m, rtl: H } = Y(Z), L = ee(), r = oe(
31
31
  _,
32
- se,
32
+ te,
33
33
  m == null ? void 0 : m.Tag
34
34
  ), {
35
35
  className: w,
36
36
  style: K,
37
37
  children: x,
38
- color: t,
38
+ color: s,
39
39
  closable: e,
40
40
  checkable: l,
41
41
  defaultChecked: R,
42
42
  size: N,
43
- onClose: p,
44
- onCheck: f,
43
+ onClose: f,
44
+ onCheck: p,
45
45
  icon: P,
46
46
  closeIcon: h,
47
47
  bordered: U,
@@ -53,7 +53,7 @@ function ce(_, j) {
53
53
  "checked" in r ? r.checked : R
54
54
  ), [u, g] = v(), O = "checked" in r ? r.checked : M, B = "visible" in r ? r.visible : F;
55
55
  function k(n) {
56
- const i = p == null ? void 0 : p(n);
56
+ const i = f == null ? void 0 : f(n);
57
57
  i && i.then ? (g(!0), i.then(() => {
58
58
  g(!1), I(!1);
59
59
  }).catch(() => {
@@ -62,9 +62,9 @@ function ce(_, j) {
62
62
  }
63
63
  function D() {
64
64
  const n = !O;
65
- "checked" in r || A(n), f == null || f(n);
65
+ "checked" in r || A(n), p == null || p(n);
66
66
  }
67
- const d = t && te.indexOf(t) !== -1 ? t : "", C = l ? O : !0, G = ie(
67
+ const d = s && se.indexOf(s) !== -1 ? s : "", C = l ? O : !0, G = ie(
68
68
  o,
69
69
  {
70
70
  [`${o}-loading`]: u,
@@ -74,14 +74,14 @@ function ce(_, j) {
74
74
  [`${o}-checked`]: C,
75
75
  [`${o}-size-${N}`]: N,
76
76
  [`${o}-bordered`]: U,
77
- [`${o}-custom-color`]: C && t && !d,
77
+ [`${o}-custom-color`]: C && s && !d,
78
78
  [`${o}-rtl`]: H
79
79
  },
80
80
  w
81
- ), s = {
81
+ ), t = {
82
82
  ...K
83
83
  };
84
- t && !d && C && (s.backgroundColor || (s.backgroundColor = t), s.borderColor || (s.borderColor = t));
84
+ s && !d && C && (t.backgroundColor || (t.backgroundColor = s), t.borderColor || (t.borderColor = s));
85
85
  const y = re(q, ["visible"]);
86
86
  l && (y.onClick = D);
87
87
  let $ = /* @__PURE__ */ c(
@@ -122,7 +122,7 @@ function ce(_, j) {
122
122
  },
123
123
  children: $
124
124
  }
125
- )), /* @__PURE__ */ T("div", { ref: j, style: s, className: G, ...y, children: [
125
+ )), /* @__PURE__ */ T("div", { ref: j, style: t, className: G, ...y, children: [
126
126
  P && /* @__PURE__ */ c("span", { className: `${o}-icon`, children: P }),
127
127
  /* @__PURE__ */ c("span", { className: `${o}-content`, children: x }),
128
128
  !!e && !u && h !== null && $,
@@ -3,17 +3,17 @@ import De from "@unicom-cloud/icons/IconUiClockCircle";
3
3
  import { isDayjs as Se } from "dayjs";
4
4
  import l from "lodash/isArray";
5
5
  import Te, { useContext as je, useState as I, useRef as we } from "react";
6
- import { a as Ae } from "../chunk/CNcLypMY.js";
6
+ import { a as Ae } from "../chunk/CQvM33Vg.js";
7
7
  import { u as Ee } from "../chunk/BFTV6myl.js";
8
8
  import { u as Y } from "../chunk/VSe_Wq1g.js";
9
9
  import { u as He } from "../chunk/a3hR6zLw.js";
10
- import ze from "../picker/Input.js";
11
- import Oe from "../picker/InputRange.js";
12
- import Fe from "../trigger/index.js";
13
- import { p as Re } from "../chunk/CUFsOxJ2.js";
14
- import { g as S, j as c, k as Z, h as O, b as Ne, i as Ue, f as Le } from "../chunk/tamGhTJp.js";
15
- import { a as Me } from "../chunk/ClqoGc3r.js";
16
- import $e from "./context.js";
10
+ import Ne from "../picker/Input.js";
11
+ import ze from "../picker/InputRange.js";
12
+ import Oe from "../trigger/index.js";
13
+ import Fe from "@unicom-cloud/utils/class-name";
14
+ import { g as S, j as f, k as Z, h as z, b as Re, i as Ue, f as $e } from "../chunk/tamGhTJp.js";
15
+ import { a as Le } from "../chunk/ClqoGc3r.js";
16
+ import Me from "./context.js";
17
17
  import { getFormatTime as qe } from "./util.js";
18
18
  function Be(T) {
19
19
  return T.format || "HH:mm:ss";
@@ -35,12 +35,12 @@ const _ = {
35
35
  j == null ? void 0 : j.TimePicker
36
36
  ), {
37
37
  allowClear: te = !0,
38
- className: F,
38
+ className: O,
39
39
  disableConfirm: ie,
40
- style: R,
40
+ style: F,
41
41
  placeholder: w,
42
42
  getPopupContainer: re,
43
- disabled: N,
43
+ disabled: R,
44
44
  position: ne,
45
45
  isRangePicker: m,
46
46
  picker: se,
@@ -48,10 +48,10 @@ const _ = {
48
48
  status: ue,
49
49
  triggerElement: U,
50
50
  triggerProps: le,
51
- value: fe,
51
+ value: ce,
52
52
  onChange: u,
53
- icons: L,
54
- size: ce,
53
+ icons: $,
54
+ size: fe,
55
55
  editable: pe,
56
56
  unmountOnExit: me,
57
57
  order: de,
@@ -62,10 +62,10 @@ const _ = {
62
62
  let e;
63
63
  return t.value ? e = S(t.value, s, r, n) : t.defaultValue && (e = S(t.defaultValue, s, r, n)), e;
64
64
  }
65
- const [M, $] = I(!1), [d, q] = I(Ve()), [i, h] = I(), [v, g] = I(), [x, Pe] = I(0), f = "value" in t ? S(fe, s, r, n) : d, A = "popupVisible" in t ? t.popupVisible : M, y = Y(r), b = Y(n);
65
+ const [L, M] = I(!1), [d, q] = I(Ve()), [i, h] = I(), [v, g] = I(), [x, Pe] = I(0), c = "value" in t ? S(ce, s, r, n) : d, A = "popupVisible" in t ? t.popupVisible : L, y = Y(r), b = Y(n);
66
66
  He(() => {
67
67
  if (d && (y !== r || n !== b)) {
68
- const e = l(d) ? d.map((a) => c(a, y, b)) : c(d, y, b), o = l(e) ? e.map((a) => Z(a, r, n)) : Z(e, r, n);
68
+ const e = l(d) ? d.map((a) => f(a, y, b)) : f(d, y, b), o = l(e) ? e.map((a) => Z(a, r, n)) : Z(e, r, n);
69
69
  q(o);
70
70
  }
71
71
  }, [r, y, n, b]);
@@ -74,7 +74,7 @@ const _ = {
74
74
  var o, a;
75
75
  (a = (o = E.current) == null ? void 0 : o.focus) == null || a.call(o, e);
76
76
  }
77
- function z(e) {
77
+ function N(e) {
78
78
  Pe(e), setTimeout(() => H(e));
79
79
  }
80
80
  function he(e) {
@@ -83,28 +83,28 @@ const _ = {
83
83
  }) : C(!1);
84
84
  }
85
85
  function C(e, o) {
86
- $(e), g(void 0), o == null || o(), e || h(void 0);
86
+ M(e), g(void 0), o == null || o(), e || h(void 0);
87
87
  }
88
88
  function k(e) {
89
- const o = m && de && l(e) ? Ne(e.map((a) => qe(a))) : e;
89
+ const o = m && de && l(e) ? Re(e.map((a) => qe(a))) : e;
90
90
  q(o), h(void 0), g(void 0), ve(o), ie || C(!1);
91
91
  }
92
92
  function ve(e) {
93
- l(e) && Ue(f, e) && (u == null || u(
94
- e.map((o) => c(o, r, n).format(s)),
95
- e.map((o) => c(o, r, n))
96
- )), Se(e) && Le(f, e) && (u == null || u(
97
- c(e, r, n).format(s),
98
- c(e, r, n)
93
+ l(e) && Ue(c, e) && (u == null || u(
94
+ e.map((o) => f(o, r, n).format(s)),
95
+ e.map((o) => f(o, r, n))
96
+ )), Se(e) && $e(c, e) && (u == null || u(
97
+ f(e, r, n).format(s),
98
+ f(e, r, n)
99
99
  ));
100
100
  }
101
101
  function B(e) {
102
- const o = m ? l(i) && i.length ? i : f : i || f;
102
+ const o = m ? l(i) && i.length ? i : c : i || c;
103
103
  return /* @__PURE__ */ P(
104
104
  "div",
105
105
  {
106
- className: Re(`${ge}-container`, e ? F : ""),
107
- style: e ? R : {},
106
+ className: Fe(`${ge}-container`, e ? O : ""),
107
+ style: e ? F : {},
108
108
  onClick: () => H(),
109
109
  children: Te.cloneElement(se, {
110
110
  ...t,
@@ -114,17 +114,17 @@ const _ = {
114
114
  onConfirmValue: k,
115
115
  setValueShow: h,
116
116
  valueShow: o,
117
- value: f,
117
+ value: c,
118
118
  popupVisible: A,
119
119
  focusedInputIndex: x,
120
- changeFocusedInputIndex: z
120
+ changeFocusedInputIndex: N
121
121
  })
122
122
  }
123
123
  );
124
124
  }
125
125
  function G(e) {
126
126
  const o = e.target.value;
127
- M || $(!0), g(o), Ce(o);
127
+ L || M(!0), g(o), Ce(o);
128
128
  }
129
129
  function Ce(e) {
130
130
  var a, W;
@@ -133,10 +133,10 @@ const _ = {
133
133
  const V = [
134
134
  ...l(i) ? i : d || []
135
135
  ];
136
- if (O(e, s)) {
136
+ if (z(e, s)) {
137
137
  V[x] = o;
138
138
  const X = V.map(
139
- (D) => c(D, r, n)
139
+ (D) => f(D, r, n)
140
140
  );
141
141
  (a = t.onSelect) == null || a.call(
142
142
  t,
@@ -144,43 +144,43 @@ const _ = {
144
144
  X
145
145
  ), h(V), g(void 0);
146
146
  }
147
- } else if (O(e, s)) {
148
- const V = c(o, r, n);
147
+ } else if (z(e, s)) {
148
+ const V = f(o, r, n);
149
149
  (W = t.onSelect) == null || W.call(t, V.format(s), V), h(o), g(void 0);
150
150
  }
151
151
  }
152
152
  function Ie() {
153
- m ? l(i) && i.length ? v && !O(v, s) ? C(!1) : i[0] === void 0 || i[1] === void 0 ? z(x === 0 ? 1 : 0) : i.length === 2 && k(i) : C(!1) : k(i || f);
153
+ m ? l(i) && i.length ? v && !z(v, s) ? C(!1) : i[0] === void 0 || i[1] === void 0 ? N(x === 0 ? 1 : 0) : i.length === 2 && k(i) : C(!1) : k(i || c);
154
154
  }
155
155
  function xe(e) {
156
156
  var o;
157
157
  e.stopPropagation(), k(void 0), u == null || u(void 0, void 0), (o = t.onClear) == null || o.call(t);
158
158
  }
159
- const ye = m && l(w) ? w : (K = p == null ? void 0 : p.TimePicker) == null ? void 0 : K.placeholders, be = w || ((Q = p == null ? void 0 : p.TimePicker) == null ? void 0 : Q.placeholder), ke = L && L.inputSuffix || /* @__PURE__ */ P(De, {}), J = {
160
- style: R,
161
- className: F,
159
+ const ye = m && l(w) ? w : (K = p == null ? void 0 : p.TimePicker) == null ? void 0 : K.placeholders, be = w || ((Q = p == null ? void 0 : p.TimePicker) == null ? void 0 : Q.placeholder), ke = $ && $.inputSuffix || /* @__PURE__ */ P(De, {}), J = {
160
+ style: F,
161
+ className: O,
162
162
  popupVisible: A,
163
163
  format: s,
164
- disabled: N,
164
+ disabled: R,
165
165
  error: ae,
166
166
  status: ue,
167
- size: ce,
167
+ size: fe,
168
168
  onPressEnter: Ie,
169
169
  onClear: xe,
170
170
  suffixIcon: ke,
171
171
  editable: pe,
172
172
  allowClear: te,
173
173
  prefix: t.prefix,
174
- ...Me(t)
174
+ ...Le(t)
175
175
  };
176
- return /* @__PURE__ */ P($e.Provider, { value: { utcOffset: r, timezone: n }, children: U === null ? B(!0) : /* @__PURE__ */ P(
177
- Fe,
176
+ return /* @__PURE__ */ P(Me.Provider, { value: { utcOffset: r, timezone: n }, children: U === null ? B(!0) : /* @__PURE__ */ P(
177
+ Oe,
178
178
  {
179
179
  popup: () => B(),
180
180
  trigger: "click",
181
181
  clickToClose: !1,
182
182
  position: ne,
183
- disabled: N,
183
+ disabled: R,
184
184
  popupAlign: Ge,
185
185
  getPopupContainer: re,
186
186
  onVisibleChange: he,
@@ -189,24 +189,24 @@ const _ = {
189
189
  unmountOnExit: !!me,
190
190
  ...le,
191
191
  children: U || (m ? /* @__PURE__ */ P(
192
- Oe,
192
+ ze,
193
193
  {
194
194
  ...J,
195
195
  ref: E,
196
196
  placeholder: ye,
197
- value: l(i) && i.length ? i : f,
197
+ value: l(i) && i.length ? i : c,
198
198
  onChange: G,
199
199
  inputValue: v,
200
- changeFocusedInputIndex: z,
200
+ changeFocusedInputIndex: N,
201
201
  focusedInputIndex: x
202
202
  }
203
203
  ) : /* @__PURE__ */ P(
204
- ze,
204
+ Ne,
205
205
  {
206
206
  ...J,
207
207
  ref: E,
208
208
  placeholder: be,
209
- value: i || f,
209
+ value: i || c,
210
210
  inputValue: v,
211
211
  onChange: G
212
212
  }
@@ -1,8 +1,8 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import C from "lodash/debounce";
3
3
  import { useRef as n, useEffect as d, useCallback as H } from "react";
4
- import { u as S } from "../chunk/VSe_Wq1g.js";
5
- import { p as T } from "../chunk/CUFsOxJ2.js";
4
+ import { u as N } from "../chunk/VSe_Wq1g.js";
5
+ import T from "@unicom-cloud/utils/class-name";
6
6
  import { scrollTo as b } from "./util.js";
7
7
  function V(g) {
8
8
  const {
@@ -10,10 +10,10 @@ function V(g) {
10
10
  list: l,
11
11
  value: s,
12
12
  onHandleSelect: u,
13
- unit: h,
13
+ unit: m,
14
14
  popupVisible: o,
15
15
  scrollSticky: $
16
- } = g, a = n(/* @__PURE__ */ new Map()), r = n(null), m = n(), v = n(0), f = S(o), p = n(
16
+ } = g, a = n(/* @__PURE__ */ new Map()), r = n(null), h = n(), v = n(0), f = N(o), p = n(
17
17
  r.current && r.current.scrollTop
18
18
  );
19
19
  d(() => {
@@ -25,14 +25,14 @@ function V(g) {
25
25
  e && (b(r.current, e.offsetTop, 0), p.current = e.offsetTop);
26
26
  }
27
27
  }, [o, f]), d(() => {
28
- l.length <= 1 || (v.current = (m.current.clientHeight - r.current.clientHeight) / (l.length - 1));
28
+ l.length <= 1 || (v.current = (h.current.clientHeight - r.current.clientHeight) / (l.length - 1));
29
29
  }, [l.length]);
30
30
  const x = H(
31
31
  C(() => {
32
32
  const t = (r.current.scrollTop - p.current > 0 ? Math.ceil : Math.floor)(
33
33
  r.current.scrollTop / v.current
34
34
  );
35
- t !== s && l[t] && !l[t].disabled && u(l[t].value, h);
35
+ t !== s && l[t] && !l[t].disabled && u(l[t].value, m);
36
36
  }, 100),
37
37
  [u]
38
38
  );
@@ -42,14 +42,14 @@ function V(g) {
42
42
  className: T(`${c}-list`),
43
43
  ref: r,
44
44
  onWheel: $ ? x : void 0,
45
- children: /* @__PURE__ */ i("ul", { ref: m, children: l.map((e) => /* @__PURE__ */ i(
45
+ children: /* @__PURE__ */ i("ul", { ref: h, children: l.map((e) => /* @__PURE__ */ i(
46
46
  "li",
47
47
  {
48
48
  className: T(`${c}-cell`, {
49
49
  [`${c}-cell-disabled`]: e.disabled,
50
50
  [`${c}-cell-selected`]: e.selected
51
51
  }),
52
- onClick: () => !e.disabled && u(e.value, h),
52
+ onClick: () => !e.disabled && u(e.value, m),
53
53
  ref: (t) => {
54
54
  a.current.set(e.value, t);
55
55
  },