@unicom-cloud/ui 0.8.75 → 0.8.77

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 (286) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +1 -1
  3. package/AutoComplete.js +3 -5
  4. package/BackTop.js +1 -1
  5. package/Badge.js +1 -1
  6. package/Breadcrumb.js +2 -2
  7. package/Button.js +1 -1
  8. package/Calendar.js +3 -3
  9. package/Card.js +1 -1
  10. package/Carousel.js +1 -1
  11. package/Cascader.js +1 -1
  12. package/Checkbox.js +6 -2
  13. package/Collapse.js +1 -1
  14. package/ColorPicker.js +3 -4
  15. package/Comment.js +1 -1
  16. package/ConfigProvider.js +2 -3
  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 +1 -1
  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 +5 -6
  31. package/Mentions.js +3 -4
  32. package/Menu.js +1 -1
  33. package/Message.js +1 -1
  34. package/Modal.js +1 -1
  35. package/Notice.js +1 -1
  36. package/Notification.js +1 -1
  37. package/OverflowEllipsis.js +1 -1
  38. package/PageHeader.js +1 -1
  39. package/Pagination.js +2 -2
  40. package/Popconfirm.js +1 -1
  41. package/Popover.js +1 -1
  42. package/Progress.js +1 -1
  43. package/Radio.js +5 -4
  44. package/Rate.js +1 -1
  45. package/ResizeBox.js +1 -1
  46. package/Result.js +1 -1
  47. package/Select.js +5 -6
  48. package/Skeleton.js +1 -1
  49. package/Slider.js +1 -1
  50. package/Space.js +1 -1
  51. package/SpeechSynthesis.js +4 -3
  52. package/Spin.js +1 -1
  53. package/Statistic.js +1 -1
  54. package/Steps.js +1 -1
  55. package/Switch.js +1 -1
  56. package/Table.js +15 -16
  57. package/Tabs.js +1 -1
  58. package/Tag.js +1 -1
  59. package/Tooltip.js +2 -2
  60. package/Transfer.js +3 -4
  61. package/Tree.js +2 -3
  62. package/TreeSelect.js +3 -3
  63. package/Trigger.js +1 -1
  64. package/Typography.js +3 -3
  65. package/affix/index.js +86 -82
  66. package/alert/index.js +1 -1
  67. package/anchor/Anchor.js +1 -1
  68. package/anchor/Link.js +1 -1
  69. package/auto-complete/index.js +13 -147
  70. package/avatar/Avatar.js +1 -1
  71. package/avatar/Group.js +1 -1
  72. package/back-top/index.js +1 -1
  73. package/badge/index.js +1 -1
  74. package/breadcrumb/index.js +2 -2
  75. package/button/Group.js +1 -1
  76. package/button/index.js +1 -1
  77. package/calendar/index.js +12 -318
  78. package/card/Grid.js +1 -1
  79. package/card/Meta.js +1 -1
  80. package/card/index.js +1 -1
  81. package/carousel/Arrow.js +1 -1
  82. package/carousel/Indicator.js +1 -1
  83. package/carousel/index.js +1 -1
  84. package/cascader/Cascader.js +4 -4
  85. package/cascader/index.js +1 -1
  86. package/cascader/util.js +8 -8
  87. package/checkbox/Checkbox.js +7 -4
  88. package/checkbox/Group.js +5 -5
  89. package/checkbox/GroupBlock.js +8 -0
  90. package/checkbox/index.js +7 -2
  91. package/chunk/{BbqvFW5R.js → 9TSjT7x_.js} +112 -112
  92. package/chunk/ATwvJ8j2.js +6 -0
  93. package/chunk/{Dv6USvVF.js → BC5fEyWK.js} +2 -1
  94. package/chunk/{WVoGhvMI.js → BPQXH_5i.js} +32 -31
  95. package/chunk/{BPD5iNdA.js → CB4jGw4K.js} +22 -18
  96. package/chunk/{B8hkFIar.js → CBgu99gQ.js} +1 -1
  97. package/chunk/CBzE-PUr.js +23 -0
  98. package/chunk/CNcLypMY.js +723 -0
  99. package/chunk/{CPlPBkN7.js → C_4I3haT.js} +1 -1
  100. package/chunk/{0mWCmQHr.js → CjqvxJml.js} +2 -2
  101. package/chunk/Cwm8LL5p.js +7818 -0
  102. package/chunk/D0ZWT7db.js +5 -0
  103. package/chunk/{CWlklVfi.js → tpmioyz1.js} +1 -1
  104. package/collapse/Collapse.js +2 -2
  105. package/collapse/Item.js +2 -2
  106. package/collapse/index.js +1 -1
  107. package/color-picker/ControlBar.js +1 -1
  108. package/color-picker/InputAlpha.js +1 -1
  109. package/color-picker/InputHex.js +2 -2
  110. package/color-picker/InputRgb.js +2 -2
  111. package/color-picker/Palette.js +2 -2
  112. package/color-picker/Panel.js +15 -266
  113. package/color-picker/colors.js +4 -4
  114. package/color-picker/index.js +13 -268
  115. package/color-picker/utils.js +1 -1
  116. package/comment/index.js +1 -1
  117. package/config-provider/ConfigProvider.js +4 -6
  118. package/config-provider/context.js +3 -2
  119. package/config-provider/index.js +4 -5
  120. package/copy/index.js +1 -1
  121. package/date-picker/Picker.js +1 -1
  122. package/date-picker/PickerRange.js +2 -2
  123. package/date-picker/index.js +1 -1
  124. package/descriptions/index.js +1 -1
  125. package/divider/index.js +1 -1
  126. package/draggable/index.js +1 -1
  127. package/drawer/Drawer.js +30 -21
  128. package/dropdown/Button.js +1 -1
  129. package/dropdown/index.js +1 -1
  130. package/empty/index.js +1 -1
  131. package/form/Form.js +10 -10
  132. package/form/FormItem.js +1 -1
  133. package/form/context.js +1 -1
  134. package/grid/Col.js +1 -1
  135. package/grid/Row.js +1 -1
  136. package/grid/grid-item.js +1 -1
  137. package/grid/grid.js +1 -1
  138. package/hooks/index.js +1 -1
  139. package/hooks/useWindowSize.js +1 -1
  140. package/icon/index.js +1 -1
  141. package/icon-hover/index.js +1 -1
  142. package/image/Image.js +2 -2
  143. package/image/ImagePreview.js +2 -2
  144. package/image/ImagePreviewArrow.js +1 -1
  145. package/image/ImagePreviewGroup.js +1 -1
  146. package/image/index.js +1 -1
  147. package/index.js +453 -463
  148. package/input/Group.js +1 -1
  149. package/input/Input.js +1 -1
  150. package/input/InputElement.js +1 -1
  151. package/input/Password.js +1 -1
  152. package/input/Search.js +1 -1
  153. package/input/Textarea.js +1 -1
  154. package/input-number/index.js +1 -1
  155. package/input-tag/InputTag.js +1 -1
  156. package/layout/Content.js +1 -1
  157. package/layout/Footer.js +1 -1
  158. package/layout/Header.js +1 -1
  159. package/layout/Sider.js +1 -1
  160. package/layout/index.js +1 -1
  161. package/link/index.js +1 -1
  162. package/list/Item.js +1 -1
  163. package/list/Meta.js +1 -1
  164. package/list/index.js +17 -267
  165. package/mentions/index.js +11 -144
  166. package/menu/Menu.js +2 -2
  167. package/menu/OverflowWrap.js +1 -1
  168. package/menu/index.js +2 -2
  169. package/message/index.js +1 -1
  170. package/message/useMessage.js +1 -1
  171. package/modal/Confirm.js +2 -2
  172. package/modal/Modal.js +2 -2
  173. package/modal/index.js +1 -1
  174. package/notice/index.js +1 -1
  175. package/notification/index.js +1 -1
  176. package/notification/useNotification.js +1 -1
  177. package/overflow-ellipsis/OverflowItem.js +1 -1
  178. package/overflow-ellipsis/index.js +1 -1
  179. package/package.json +1 -1
  180. package/page-header/index.js +1 -1
  181. package/pagination/PageItem.js +1 -1
  182. package/pagination/PageJumper.js +1 -1
  183. package/pagination/PageOption.js +5 -45
  184. package/pagination/Pagination.js +11 -243
  185. package/pagination/index.js +2 -2
  186. package/picker/Input.js +1 -1
  187. package/picker/InputRange.js +1 -1
  188. package/popconfirm/index.js +1 -1
  189. package/popover/index.js +1 -1
  190. package/progress/index.js +1 -1
  191. package/radio/Group.js +5 -5
  192. package/radio/GroupBlock.js +9 -0
  193. package/radio/Radio.js +6 -5
  194. package/radio/index.js +4 -3
  195. package/rate/index.js +1 -1
  196. package/resize-box/ResizeTrigger.js +1 -1
  197. package/resize-box/Split.js +1 -1
  198. package/resize-box/SplitGroup.js +1 -1
  199. package/resize-box/index.js +1 -1
  200. package/result/index.js +1 -1
  201. package/select/Option.js +6 -93
  202. package/select/Select.js +23 -546
  203. package/select/index.js +3 -3
  204. package/select/util.js +18 -139
  205. package/select-view/Core.js +1 -1
  206. package/skeleton/index.js +1 -1
  207. package/slider/Button.js +1 -1
  208. package/slider/index.js +1 -1
  209. package/space/index.js +1 -1
  210. package/speech-synthesis/index.js +4 -3
  211. package/spin/DotLoading.js +1 -1
  212. package/spin/index.js +1 -1
  213. package/statistic/Countdown.js +1 -1
  214. package/statistic/index.js +1 -1
  215. package/steps/index.js +1 -1
  216. package/style/variables.less +0 -484
  217. package/style.css +1 -1
  218. package/switch/index.js +1 -1
  219. package/table/Table.js +2 -3
  220. package/table/index.js +15 -109
  221. package/tabs/Tab.js +2 -2
  222. package/tabs/TabContent.js +2 -2
  223. package/tabs/TabPane.js +1 -1
  224. package/tabs/index.js +2 -2
  225. package/tag/index.js +1 -1
  226. package/time-picker/Picker.js +1 -1
  227. package/time-picker/TimePicker.js +1 -1
  228. package/timeline/Item.js +1 -1
  229. package/timeline/Timeline.js +1 -1
  230. package/tooltip/index.js +2 -2
  231. package/transfer/Item.js +9 -104
  232. package/transfer/List.js +13 -184
  233. package/transfer/index.js +13 -180
  234. package/tree/Animation.js +2 -2
  235. package/tree/Node.js +3 -4
  236. package/tree/NodeList.js +6 -80
  237. package/tree/Tree.js +17 -578
  238. package/tree/index.js +2 -3
  239. package/tree-select/List.js +6 -122
  240. package/tree-select/Select.js +22 -392
  241. package/tree-select/index.js +3 -3
  242. package/trigger/index.js +1 -1
  243. package/types/checkbox/Checkbox.d.ts +5 -2
  244. package/types/checkbox/GroupBlock.d.ts +7 -0
  245. package/types/checkbox/index.d.ts +2 -1
  246. package/types/config-provider/ConfigProvider.d.ts +0 -27
  247. package/types/config-provider/interface.d.ts +3 -1
  248. package/types/index.d.ts +2 -2
  249. package/types/menu/context.d.ts +1 -1
  250. package/types/radio/GroupBlock.d.ts +7 -0
  251. package/types/radio/Radio.d.ts +5 -3
  252. package/types/utils/constant.d.ts +2 -1
  253. package/types/utils/index.d.ts +1 -0
  254. package/types/utils/setDarkTheme.d.ts +2 -3
  255. package/types/utils/setPrimaryColor.d.ts +2 -0
  256. package/typography/Base.js +1 -1
  257. package/typography/Ellipsis.js +9 -22
  258. package/typography/Paragraph.js +1 -1
  259. package/typography/Typography.js +1 -1
  260. package/typography/index.js +10 -276
  261. package/upload/TriggerNode.js +1 -1
  262. package/upload/Upload.js +1 -1
  263. package/upload/Uploader.js +43 -44
  264. package/upload/request.js +1 -1
  265. package/upload/request_.js +1 -1
  266. package/utils/caseName.js +1 -1
  267. package/utils/color.js +1 -1
  268. package/utils/constant.js +7 -5
  269. package/utils/contextHolder.js +1 -1
  270. package/utils/dom.js +1 -1
  271. package/utils/index.js +199 -195
  272. package/utils/setDarkTheme.js +34 -5
  273. package/utils/setPrimaryColor.js +26 -0
  274. package/utils/tinycolor.js +1 -1
  275. package/verification-code/VerificationCode.js +1 -1
  276. package/version/index.js +1 -1
  277. package/watermark/Watermark.js +1 -1
  278. package/chunk/BViFMHr-.js +0 -1820
  279. package/chunk/BsWphzcT.js +0 -20
  280. package/chunk/BxZ39GzB.js +0 -209
  281. package/chunk/C9XYyypq.js +0 -713
  282. package/chunk/CIkPwQlq.js +0 -6
  283. package/chunk/DFcz9ZPP.js +0 -1020
  284. package/chunk/DeCsZrXb.js +0 -310
  285. package/chunk/DskaI8QL.js +0 -25
  286. package/chunk/EL5Jmjgr.js +0 -170
package/switch/index.js CHANGED
@@ -3,7 +3,7 @@ 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/C9XYyypq.js";
6
+ import { a as Q } from "../chunk/CNcLypMY.js";
7
7
  import { u as U } from "../chunk/BFTV6myl.js";
8
8
  import { P as x } from "../chunk/BpYX5PN4.js";
9
9
  import { p as W } from "../chunk/CUFsOxJ2.js";
package/table/Table.js CHANGED
@@ -6,18 +6,17 @@ import "lodash/isNumber";
6
6
  import "lodash/isPlainObject";
7
7
  import "lodash/throttle";
8
8
  import "react";
9
- import "../chunk/C9XYyypq.js";
9
+ import "../chunk/CNcLypMY.js";
10
10
  import "../chunk/B2yFlXke.js";
11
11
  import "../chunk/BFTV6myl.js";
12
12
  import "../chunk/a3hR6zLw.js";
13
- import "../pagination/Pagination.js";
13
+ import { a4 as q } from "../chunk/Cwm8LL5p.js";
14
14
  import "../spin/index.js";
15
15
  import "../chunk/CUFsOxJ2.js";
16
16
  import "../utils/dom.js";
17
17
  import "../chunk/ClqoGc3r.js";
18
18
  import "../chunk/CIRG541s.js";
19
19
  import "./ColGroup.js";
20
- import { T as q } from "../chunk/BViFMHr-.js";
21
20
  import "./util.js";
22
21
  export {
23
22
  q as default
package/table/index.js CHANGED
@@ -1,111 +1,17 @@
1
- import { S as X, T as D } from "../chunk/BViFMHr-.js";
2
- import { u as le, a as ae, b as ue, c as ce, d as ie, e as me, f as fe } from "../chunk/BViFMHr-.js";
3
- import { defaultComponent as I } from "./constant.js";
4
- import y, { useRef as g, useContext as w, useCallback as f, useEffect as A, useState as O } from "react";
5
- import { jsx as T, jsxs as U } from "react/jsx-runtime";
6
- import j from "lodash/isFunction";
7
- import { a as E } from "../chunk/C9XYyypq.js";
8
- import { p as P } from "../chunk/CUFsOxJ2.js";
9
- import { on as M, off as N } from "../utils/dom.js";
10
- import { o as q } from "../chunk/BKKEev13.js";
11
- import $ from "lodash/get";
12
- function H(u) {
13
- let { className: r, children: o, column: p, onResize: i, ...d } = u;
14
- const n = I.header.th, a = g(null), C = g(null), l = g({}), { getPrefixCls: s } = w(E), b = s("table-th-resizable");
15
- if (!j(i)) return /* @__PURE__ */ T(n, { ref: a, ...d, className: r, children: o });
16
- const t = f((e) => {
17
- l.current.boundingClientRect = a.current.getBoundingClientRect(), l.current.pageX = (e == null ? void 0 : e.pageX) ?? 0, S();
18
- }, []), m = f((e) => {
19
- x();
20
- }, []), c = f((e) => {
21
- let h = l.current.boundingClientRect.width + (((e == null ? void 0 : e.pageX) ?? 0) - l.current.pageX);
22
- h < 0 || (p.width = h, i == null || i({
23
- column: p,
24
- width: h,
25
- widthOrigin: l.current.boundingClientRect.width
26
- }));
27
- }, []), S = f((e) => {
28
- M(document, "mousemove", c), M(document, "mouseup", m);
29
- }, []), x = f((e) => {
30
- N(document, "mousemove", c), N(document, "mouseup", m);
31
- }, []);
32
- return r = P(r, b), A(() => (t(), c(), m(), () => {
33
- x();
34
- }), []), /* @__PURE__ */ U(n, { ref: a, ...d, className: r, children: [
35
- o,
36
- /* @__PURE__ */ T(
37
- "div",
38
- {
39
- ref: C,
40
- className: `${b}-cursor`,
41
- onMouseDown: t
42
- }
43
- )
44
- ] });
45
- }
46
- function se(u = {}) {
47
- const r = f((n, a) => ({
48
- column: n,
49
- onResize(l) {
50
- const { column: s = {}, width: b } = l ?? {};
51
- d((t) => {
52
- const m = t.find((c) => c === s || c.dataIndex === s.dataIndex && c.title == s.title);
53
- return m ? (m.width = b ?? s.width, o(t)) : t;
54
- });
55
- }
56
- }), []), o = f((n) => n.map((a, C, l) => {
57
- const s = a;
58
- return C < l.length - 1 && a.resizable !== !1 && !a.fixed && (s.onHeaderCell = r), s;
59
- }), []), p = f((n) => d(o(n)), []), [i, d] = O(() => {
60
- const n = u.columns;
61
- return n ? o(n) : [];
62
- });
63
- return A(() => () => {
64
- }, []), {
65
- columns: i,
66
- setColumns: p,
67
- ThResizable: H
68
- };
69
- }
70
- function v(u) {
71
- const { children: r, ...o } = u;
72
- return /* @__PURE__ */ T("td", { ...q(o, ["$$PqbTableSummaryCell"]), children: r });
73
- }
74
- v.__PQB_TABLE_SUMMARY_CELL__ = !0;
75
- function Q(u) {
76
- const { rtl: r } = w(E), { columns: o, stickyOffsets: p, stickyClassNames: i, prefixCls: d } = w(X), { children: n, ...a } = u, C = y.Children.map(
77
- n,
78
- (s) => s.props.colSpan || 1
79
- ), l = y.Children.map(n, (s, b) => {
80
- var k, L;
81
- const t = s, m = $(t, "type.__PQB_TABLE_SUMMARY_CELL__") || $(t, "props.$$PqbTableSummaryCell"), c = (k = t == null ? void 0 : t.props) == null ? void 0 : k.style, S = (L = t == null ? void 0 : t.props) == null ? void 0 : L.className, e = C.slice(0, b).reduce((z, B) => z + B, 0), R = o[e].fixed === "left" ? { [r ? "right" : "left"]: p[e] } : o[e].fixed === "right" ? { [r ? "left" : "right"]: p[e] } : {}, h = o[e].fixed === "left" || o[e].fixed === "right" ? i[e] : "";
82
- return m ? y.cloneElement(t, {
83
- ...t.props,
84
- className: P(`${d}-td`, h, S),
85
- style: { ...c, ...R }
86
- }) : s;
87
- });
88
- return /* @__PURE__ */ T("tr", { ...a, children: l });
89
- }
90
- function _(u) {
91
- return u.children;
92
- }
93
- _.Row = Q;
94
- _.Cell = v;
95
- const Y = D;
96
- Y.Summary = _;
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";
2
+ import { defaultComponent as C } from "./constant.js";
97
3
  export {
98
- _ as TableSummary,
99
- v as TableSummaryCell,
100
- Q as TableSummaryRow,
101
- Y as default,
102
- I as tableDefaultComponent,
103
- le as useTableColumns,
104
- ae as useTableComponent,
105
- ue as useTableExpand,
106
- ce as useTableRowSelection,
107
- ie as useTableSorter,
108
- me as useTableStickyClassNames,
109
- fe as useTableStickyOffsets,
110
- se as useTableThResizable
4
+ s as TableSummary,
5
+ l as TableSummaryCell,
6
+ o as TableSummaryRow,
7
+ u as default,
8
+ C as tableDefaultComponent,
9
+ m as useTableColumns,
10
+ t as useTableComponent,
11
+ b as useTableExpand,
12
+ T as useTableRowSelection,
13
+ n as useTableSorter,
14
+ r as useTableStickyClassNames,
15
+ f as useTableStickyOffsets,
16
+ p as useTableThResizable
111
17
  };
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/C9XYyypq.js";
5
+ import "../chunk/CNcLypMY.js";
6
6
  import "../chunk/B4YRLi8r.js";
7
7
  import "../chunk/BFTV6myl.js";
8
8
  import "../chunk/DeV0v__J.js";
9
9
  import "../chunk/CUFsOxJ2.js";
10
10
  import "../chunk/BKKEev13.js";
11
- import { a as d, T as l } from "../chunk/0mWCmQHr.js";
11
+ import { a as d, T as l } from "../chunk/CjqvxJml.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/C9XYyypq.js";
3
+ import "../chunk/CNcLypMY.js";
4
4
  import "../chunk/CUFsOxJ2.js";
5
- import { b as a } from "../chunk/0mWCmQHr.js";
5
+ import { b as a } from "../chunk/CjqvxJml.js";
6
6
  export {
7
7
  a as default
8
8
  };
package/tabs/TabPane.js CHANGED
@@ -1,6 +1,6 @@
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/C9XYyypq.js";
3
+ import { a as x } from "../chunk/CNcLypMY.js";
4
4
  import { p as C } from "../chunk/CUFsOxJ2.js";
5
5
  import { o as P } from "../chunk/BKKEev13.js";
6
6
  function R(r, a) {
package/tabs/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { T as e } from "../chunk/0mWCmQHr.js";
2
- import { a as s } from "../chunk/0mWCmQHr.js";
1
+ import { T as e } from "../chunk/CjqvxJml.js";
2
+ import { a as s } from "../chunk/CjqvxJml.js";
3
3
  import { default as f, default as T } from "./TabPane.js";
4
4
  export {
5
5
  f as TabPane,
package/tag/index.js CHANGED
@@ -3,7 +3,7 @@ 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/C9XYyypq.js";
6
+ import { a as Z, I as S } from "../chunk/CNcLypMY.js";
7
7
  import { u as ee } from "../chunk/XTEsYGuF.js";
8
8
  import { u as oe } from "../chunk/BFTV6myl.js";
9
9
  import ne from "../popconfirm/index.js";
@@ -3,7 +3,7 @@ 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/C9XYyypq.js";
6
+ import { a as Ae } from "../chunk/CNcLypMY.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";
@@ -1,7 +1,7 @@
1
1
  import { jsxs as I, Fragment as pe, jsx as a } from "react/jsx-runtime";
2
2
  import { useContext as Q, useCallback as W } from "react";
3
3
  import X from "../button/index.js";
4
- import { a as he } from "../chunk/C9XYyypq.js";
4
+ import { a as he } from "../chunk/CNcLypMY.js";
5
5
  import { p as xe } from "../chunk/CUFsOxJ2.js";
6
6
  import { g as $e, a as Y, d as $, j as Z } from "../chunk/tamGhTJp.js";
7
7
  import { padStart as m } from "../utils/pad.js";
package/timeline/Item.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs as r, jsx as t } from "react/jsx-runtime";
2
2
  import S, { useContext as g, useRef as z, useEffect as F } from "react";
3
- import { a as W } from "../chunk/C9XYyypq.js";
3
+ import { a as W } from "../chunk/CNcLypMY.js";
4
4
  import { u as j } from "../chunk/BFTV6myl.js";
5
5
  import { p as h } from "../chunk/CUFsOxJ2.js";
6
6
  const D = {
@@ -1,6 +1,6 @@
1
1
  import { jsx as u } from "react/jsx-runtime";
2
2
  import d, { useContext as R } from "react";
3
- import { a as w } from "../chunk/C9XYyypq.js";
3
+ import { a as w } from "../chunk/CNcLypMY.js";
4
4
  import { u as z } from "../chunk/BFTV6myl.js";
5
5
  import j from "../spin/index.js";
6
6
  import { p as y } from "../chunk/CUFsOxJ2.js";
package/tooltip/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as u } from "react/jsx-runtime";
2
- import { c as I } from "../chunk/BbqvFW5R.js";
2
+ import { c as I } from "../chunk/9TSjT7x_.js";
3
3
  import S from "lodash/isFunction";
4
4
  import { forwardRef as j, useContext as z, useRef as B, useImperativeHandle as W, useMemo as q } from "react";
5
- import { a as G } from "../chunk/C9XYyypq.js";
5
+ import { a as G } from "../chunk/CNcLypMY.js";
6
6
  import { u as J } from "../chunk/BFTV6myl.js";
7
7
  import K, { EventsByTriggerNeed as Q } from "../trigger/index.js";
8
8
  import { p as b } from "../chunk/CUFsOxJ2.js";
package/transfer/Item.js CHANGED
@@ -1,106 +1,11 @@
1
- import { jsxs as P, jsx as r, Fragment as F } from "react/jsx-runtime";
2
- import H from "@unicom-cloud/icons/IconUiClose";
3
- import V from "@unicom-cloud/icons/IconUiDragDotVertical";
4
- import { useRef as N, useState as h, useEffect as T } from "react";
5
- import { C as q } from "../chunk/BxZ39GzB.js";
6
- import { u as z } from "../chunk/XTEsYGuF.js";
7
- import { I as A } from "../chunk/C9XYyypq.js";
8
- import { p as G } from "../chunk/CUFsOxJ2.js";
9
- function te(w) {
10
- const {
11
- className: E,
12
- prefixCls: O,
13
- render: v,
14
- item: t,
15
- selectedKeys: S,
16
- disabled: K,
17
- draggable: C,
18
- droppable: l,
19
- allowClear: R,
20
- onItemSelect: j,
21
- onItemRemove: $,
22
- onDragStart: d,
23
- onDragEnd: g,
24
- onDragLeave: m,
25
- onDragOver: p,
26
- onDrop: f
27
- } = w, U = z(), o = `${O}-view-item`, y = N(null), u = N(null), [a, n] = h("none"), [D, s] = h(!1), [b, I] = h(0), i = K || t.disabled, k = C && !i, Y = S.indexOf(t.key) > -1, x = v ? v(t) : t.value;
28
- return T(() => () => {
29
- u.current && clearTimeout(u.current);
30
- }, []), T(() => {
31
- a === "dragged" && (u.current = setTimeout(() => n("none"), 1e3));
32
- }, [a]), /* @__PURE__ */ P(
33
- "li",
34
- {
35
- ref: y,
36
- className: G(
37
- o,
38
- {
39
- [`${o}-disabled`]: i,
40
- [`${o}-draggable`]: k,
41
- [`${o}-gap-top`]: D && b < 0,
42
- [`${o}-gap-bottom`]: D && b > 0,
43
- [`${o}-${a}`]: a !== "none"
44
- },
45
- E
46
- ),
47
- draggable: k,
48
- onDragStart: (e) => {
49
- e.stopPropagation(), n("dragging"), d == null || d(e, t);
50
- try {
51
- e.dataTransfer.setData("text/plain", "");
52
- } catch (c) {
53
- console.error(c);
54
- }
55
- },
56
- onDragEnd: (e) => {
57
- e.stopPropagation(), s(!1), n("dragged"), g == null || g(e, t);
58
- },
59
- onDragOver: (e) => {
60
- if (l) {
61
- e.stopPropagation(), e.preventDefault();
62
- const c = y.current.getBoundingClientRect(), _ = window.pageYOffset + c.top + c.height / 2, B = e.pageY > _ ? 1 : -1;
63
- s(!0), I(B), p == null || p(e, t);
64
- }
65
- },
66
- onDragLeave: (e) => {
67
- l && (e.stopPropagation(), s(!1), m == null || m(e, t));
68
- },
69
- onDrop: (e) => {
70
- l && (e.stopPropagation(), e.preventDefault(), s(!1), I(0), n("none"), f == null || f(e, t, b));
71
- },
72
- children: [
73
- C ? /* @__PURE__ */ r(V, { className: `${o}-icon-drag` }) : null,
74
- R ? /* @__PURE__ */ P(F, { children: [
75
- /* @__PURE__ */ r("span", { className: `${o}-content`, children: x }),
76
- !i && /* @__PURE__ */ r(
77
- A,
78
- {
79
- className: `${o}-icon-remove`,
80
- onClick: () => $(t.key),
81
- tabIndex: 0,
82
- role: "button",
83
- ...U({
84
- onPressEnter: () => $(t.key)
85
- }),
86
- children: /* @__PURE__ */ r(H, {})
87
- }
88
- )
89
- ] }) : /* @__PURE__ */ r(
90
- q,
91
- {
92
- className: `${o}-content`,
93
- checked: Y,
94
- disabled: i,
95
- onChange: (e) => j(t.key, e),
96
- children: x
97
- }
98
- )
99
- ]
100
- },
101
- t.key
102
- );
103
- }
1
+ import "react/jsx-runtime";
2
+ import "@unicom-cloud/icons/IconUiClose";
3
+ import "@unicom-cloud/icons/IconUiDragDotVertical";
4
+ import "react";
5
+ import { a5 as d } from "../chunk/Cwm8LL5p.js";
6
+ import "../chunk/XTEsYGuF.js";
7
+ import "../chunk/CNcLypMY.js";
8
+ import "../chunk/CUFsOxJ2.js";
104
9
  export {
105
- te as default
10
+ d as default
106
11
  };
package/transfer/List.js CHANGED
@@ -1,186 +1,15 @@
1
- import { jsx as r, jsxs as K, Fragment as z } from "react/jsx-runtime";
2
- import le from "@unicom-cloud/icons/IconUiDelete";
3
- import ce from "@unicom-cloud/icons/IconUiSearch";
4
- import B from "lodash/isPlainObject";
5
- import ie, { useContext as de, useState as L, useEffect as me } from "react";
6
- import fe from "../button/index.js";
7
- import { C as A } from "../chunk/BxZ39GzB.js";
8
- import { a as he, I as pe } from "../chunk/C9XYyypq.js";
9
- import { u as ue } from "../chunk/XTEsYGuF.js";
10
- import Ce from "../input/Input.js";
11
- import Ie from "../list/index.js";
12
- import { p as ge } from "../chunk/CUFsOxJ2.js";
13
- import xe from "./Item.js";
14
- const be = (q, G) => {
15
- const J = ue(), {
16
- style: M,
17
- prefixCls: O,
18
- className: Q,
19
- listType: V,
20
- dataSource: m,
21
- selectedKeys: l = [],
22
- validKeys: f,
23
- selectedDisabledKeys: g,
24
- title: h = "",
25
- disabled: i,
26
- draggable: W,
27
- allowClear: P,
28
- showSearch: c,
29
- showFooter: j,
30
- searchPlaceholder: X,
31
- render: Y,
32
- renderList: x,
33
- pagination: b,
34
- handleSelect: k,
35
- handleRemove: v,
36
- filterOption: D,
37
- renderHeaderUnit: Z,
38
- virtualListProps: _,
39
- onSearch: y,
40
- onResetData: ee,
41
- onDragStart: N,
42
- onDragEnd: T,
43
- onDragLeave: R,
44
- onDragOver: $,
45
- onDrop: S
46
- } = q, a = `${O}-view`, { locale: w } = de(he), [p, F] = L(null), [u, te] = L(""), [C, ne] = L(m);
47
- me(() => {
48
- ne(
49
- u ? m.filter((n) => D(u, n)) : m
50
- );
51
- }, [m, u, D]);
52
- const H = (n, s) => k(
53
- s ? l.concat(n) : l.filter((e) => e !== n)
54
- ), oe = (n, s) => k(
55
- s ? [...new Set(l.concat(n))] : l.filter(
56
- (e) => n.indexOf(e) === -1
57
- )
58
- ), E = (n) => () => v(n), U = /* @__PURE__ */ r(
59
- Ce,
60
- {
61
- size: "small",
62
- disabled: i,
63
- placeholder: X,
64
- suffix: /* @__PURE__ */ r(ce, {}),
65
- ...B(c) ? c : {},
66
- onChange: (n, s) => {
67
- var e;
68
- te(n), y == null || y(n), B(c) && ((e = c.onChange) == null || e.call(c, n, s));
69
- }
70
- }
71
- ), re = () => {
72
- const n = l.length, s = C.length, e = u ? f.filter(
73
- (d) => C.find(({ key: ae }) => ae === d)
74
- ) : f, t = e.filter(
75
- (d) => l.indexOf(d) > -1
76
- ).length, o = {
77
- disabled: i,
78
- checked: t > 0 && t === e.length,
79
- indeterminate: t > 0 && t < e.length,
80
- onChange: (d) => oe(e, d)
81
- };
82
- if (typeof h == "function")
83
- return h({
84
- countTotal: s,
85
- countSelected: n,
86
- clear: E(e),
87
- checkbox: /* @__PURE__ */ r(A, { ...o }),
88
- searchInput: U
89
- });
90
- const I = /* @__PURE__ */ r("span", { className: `${a}-header-unit`, children: Z(n, s) });
91
- return P ? /* @__PURE__ */ K(z, { children: [
92
- /* @__PURE__ */ r("span", { className: `${a}-header-title`, children: h }),
93
- I,
94
- !i && f.length ? /* @__PURE__ */ r(
95
- pe,
96
- {
97
- className: `${a}-icon-clear`,
98
- onClick: E(e),
99
- tabIndex: 0,
100
- role: "button",
101
- ...J({
102
- onPressEnter: E(e)
103
- }),
104
- children: /* @__PURE__ */ r(le, {})
105
- }
106
- ) : null
107
- ] }) : /* @__PURE__ */ K(z, { children: [
108
- /* @__PURE__ */ r("span", { className: `${a}-header-title`, children: /* @__PURE__ */ r(A, { ...o, children: h }) }),
109
- I
110
- ] });
111
- }, se = () => {
112
- var s;
113
- const n = x == null ? void 0 : x({
114
- listType: V,
115
- disabled: i,
116
- selectedKeys: l,
117
- validKeys: f,
118
- selectedDisabledKeys: g,
119
- filteredItems: C,
120
- onItemRemove: (e) => v([e]),
121
- onItemSelect: H,
122
- onItemSelectAll: (e, t) => {
123
- k(
124
- t ? e.concat(g) : [...g]
125
- );
126
- }
127
- });
128
- return n ? /* @__PURE__ */ r("div", { className: `${a}-custom-list`, children: n }) : /* @__PURE__ */ r(
129
- Ie,
130
- {
131
- bordered: !1,
132
- paginationInFooter: !0,
133
- virtualListProps: _,
134
- wrapperClassName: `${a}-list`,
135
- dataSource: C,
136
- pagination: b ? {
137
- simple: !0,
138
- size: "mini",
139
- ...typeof b == "object" ? b : {}
140
- } : void 0,
141
- footer: j === !0 ? /* @__PURE__ */ r(fe, { size: "mini", disabled: i, onClick: ee, children: (s = w == null ? void 0 : w.Transfer) == null ? void 0 : s.resetText }) : j || null,
142
- render: (e) => /* @__PURE__ */ r(
143
- xe,
144
- {
145
- prefixCls: O,
146
- item: e,
147
- disabled: i,
148
- draggable: W,
149
- droppable: !!p,
150
- allowClear: P,
151
- render: Y,
152
- selectedKeys: l,
153
- onItemSelect: (t, o) => H(t, o),
154
- onItemRemove: (t) => v([t]),
155
- onDragStart: (t, o) => {
156
- F(o), N == null || N(t, o);
157
- },
158
- onDragEnd: (t, o) => {
159
- F(null), T == null || T(t, o);
160
- },
161
- onDragLeave: (t, o) => R == null ? void 0 : R(t, o),
162
- onDragOver: (t, o) => $ == null ? void 0 : $(t, o),
163
- onDrop: (t, o, I) => {
164
- p && p.key !== o.key && (S == null || S({
165
- e: t,
166
- dropItem: o,
167
- dropPosition: I,
168
- dragItem: p
169
- }));
170
- }
171
- },
172
- e.key
173
- )
174
- }
175
- );
176
- };
177
- return /* @__PURE__ */ K("div", { ref: G, className: ge(a, Q), style: M, children: [
178
- /* @__PURE__ */ r("div", { className: `${a}-header`, children: re() }),
179
- c && /* @__PURE__ */ r("div", { className: `${a}-search`, children: U }),
180
- se()
181
- ] });
182
- }, Pe = ie.forwardRef(be);
1
+ import "react/jsx-runtime";
2
+ import "@unicom-cloud/icons/IconUiDelete";
3
+ import "@unicom-cloud/icons/IconUiSearch";
4
+ import "lodash/isPlainObject";
5
+ import "react";
6
+ import "../button/index.js";
7
+ import { a6 as n, a7 as u } from "../chunk/Cwm8LL5p.js";
8
+ import "../chunk/CNcLypMY.js";
9
+ import "../chunk/XTEsYGuF.js";
10
+ import "../input/Input.js";
11
+ import "../chunk/CUFsOxJ2.js";
183
12
  export {
184
- be as TransferList,
185
- Pe as default
13
+ n as TransferList,
14
+ u as default
186
15
  };