@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
@@ -3,19 +3,18 @@ import { j as M } from "../chunk/C0pRaDCf.js";
3
3
  import $ from "lodash/isFunction";
4
4
  import Q from "lodash/isNumber";
5
5
  import W from "lodash/isPlainObject";
6
- import X, { useContext as Y, useRef as Z, useState as _, useImperativeHandle as tt } from "react";
7
- import { a as et } from "../chunk/C9XYyypq.js";
8
- import { P as it } from "../chunk/BpYX5PN4.js";
9
- import nt from "./TriggerNode.js";
6
+ import X, { useRef as Y, useState as Z, useImperativeHandle as _ } from "react";
7
+ import { P as tt } from "../chunk/BpYX5PN4.js";
8
+ import et from "./TriggerNode.js";
10
9
  import { STATUS as c } from "./interface.js";
11
- import ot from "./request.js";
12
- import { isAcceptFile as st } from "./util.js";
13
- function rt(i, A) {
14
- const { toAuthor: at } = Y(et), R = Z(null), [b, U] = _({ uploadRequests: {} });
15
- function E(t) {
16
- x(t);
17
- }
10
+ import it from "./request.js";
11
+ import { isAcceptFile as nt } from "./util.js";
12
+ function ot(i, E) {
13
+ const R = Y(null), [b, x] = Z({ uploadRequests: {} });
18
14
  function O(t) {
15
+ S(t);
16
+ }
17
+ function A(t) {
19
18
  var n;
20
19
  const e = b.uploadRequests[t.uid];
21
20
  e && ((n = e.abort) == null || n.call(e), l({
@@ -24,7 +23,7 @@ function rt(i, A) {
24
23
  }), p(t.uid));
25
24
  }
26
25
  function z(t) {
27
- x({
26
+ S({
28
27
  ...t,
29
28
  percent: 0,
30
29
  status: c.uploading
@@ -32,14 +31,14 @@ function rt(i, A) {
32
31
  }
33
32
  function p(t) {
34
33
  const e = { ...b.uploadRequests };
35
- delete e[t], U({
34
+ delete e[t], x({
36
35
  uploadRequests: e
37
36
  });
38
37
  }
39
- tt(A, () => ({
38
+ _(E, () => ({
40
39
  // 提供 ref 调用
41
- upload: E,
42
- abort: O,
40
+ upload: O,
41
+ abort: A,
43
42
  reupload: z,
44
43
  // 删除上传(手动上传时,文件会出现在上传列表,但属于init状态)
45
44
  delete: p
@@ -55,7 +54,7 @@ function rt(i, A) {
55
54
  const e = "uid" in t ? "uid" : "name";
56
55
  return i.fileList.find((s) => s[e] === t[e]);
57
56
  }
58
- async function x(t) {
57
+ async function S(t) {
59
58
  const {
60
59
  action: e,
61
60
  headers: n,
@@ -85,15 +84,15 @@ function rt(i, A) {
85
84
  withCredentials: h
86
85
  };
87
86
  l(t);
88
- let P;
89
- r ? P = await r(I) : e && (P = ot({ ...I, action: e, method: m })), U({
87
+ let w;
88
+ r ? w = await r(I) : e && (w = it({ ...I, action: e, method: m })), x({
90
89
  uploadRequests: {
91
90
  ...b.uploadRequests,
92
- [t.uid]: P
91
+ [t.uid]: w
93
92
  }
94
93
  });
95
94
  }
96
- function w(t) {
95
+ function T(t) {
97
96
  const { limit: e, fileList: n, onExceedLimit: s, autoUpload: f } = i;
98
97
  if (Q(e) && e < n.length + t.length)
99
98
  return s == null ? void 0 : s(t, n);
@@ -106,14 +105,14 @@ function rt(i, A) {
106
105
  name: r.name
107
106
  };
108
107
  l(u), a.push(u), l(u, a), f && setTimeout(() => {
109
- x({
108
+ S({
110
109
  ...u,
111
110
  status: c.uploading
112
111
  });
113
112
  }, 0);
114
113
  };
115
114
  t.forEach((r, m) => {
116
- st(r, i.accept) && ($(i.beforeUpload) ? Promise.resolve(i.beforeUpload(r, t)).then((a) => {
115
+ nt(r, i.accept) && ($(i.beforeUpload) ? Promise.resolve(i.beforeUpload(r, t)).then((a) => {
117
116
  if (a !== !1) {
118
117
  const u = M(a) ? a : r;
119
118
  h(u, m);
@@ -125,12 +124,12 @@ function rt(i, A) {
125
124
  }
126
125
  const {
127
126
  accept: d,
128
- multiple: T,
129
- children: S,
130
- prefixCls: k,
131
- tip: C,
132
- disabled: L,
133
- drag: v,
127
+ multiple: k,
128
+ children: P,
129
+ prefixCls: L,
130
+ tip: U,
131
+ disabled: v,
132
+ drag: C,
134
133
  listType: D,
135
134
  hide: H,
136
135
  directory: j,
@@ -153,11 +152,11 @@ function rt(i, A) {
153
152
  },
154
153
  type: "file",
155
154
  accept: W(d) ? d == null ? void 0 : d.type : d,
156
- multiple: T,
155
+ multiple: k,
157
156
  ...j ? { webkitdirectory: "true" } : {},
158
157
  onChange: (t) => {
159
158
  const e = t.target.files;
160
- e && (w([].slice.call(e)), R.current.value = "");
159
+ e && (T([].slice.call(e)), R.current.value = "");
161
160
  },
162
161
  onClick: (t) => {
163
162
  t.stopPropagation();
@@ -166,41 +165,41 @@ function rt(i, A) {
166
165
  "trigger-input"
167
166
  ),
168
167
  /* @__PURE__ */ y(
169
- it,
168
+ tt,
170
169
  {
171
170
  in: !H,
172
171
  timeout: 100,
173
172
  unmountOnExit: !0,
174
173
  classNames: "fadeIn",
175
174
  children: /* @__PURE__ */ y(
176
- nt,
175
+ et,
177
176
  {
178
177
  directory: j,
179
- tip: C,
180
- multiple: T,
178
+ tip: U,
179
+ multiple: k,
181
180
  accept: d,
182
- disabled: L,
183
- drag: v,
181
+ disabled: v,
182
+ drag: C,
184
183
  listType: D,
185
184
  onDrop: V,
186
185
  onDragOver: B,
187
186
  onDragLeave: G,
188
- onDragFiles: w,
187
+ onDragFiles: T,
189
188
  onClick: () => {
190
189
  var t, e;
191
- !L && ((e = (t = R.current) == null ? void 0 : t.click) == null || e.call(t));
190
+ !v && ((e = (t = R.current) == null ? void 0 : t.click) == null || e.call(t));
192
191
  },
193
- prefixCls: k,
194
- children: $(S) ? S({ fileList: i.fileList }) : S
192
+ prefixCls: L,
193
+ children: $(P) ? P({ fileList: i.fileList }) : P
195
194
  }
196
195
  )
197
196
  },
198
197
  "trigger-node"
199
198
  ),
200
- C && D !== "picture-card" && !v ? /* @__PURE__ */ y("div", { className: `${k}-trigger-tip`, children: C }, "trigger-tip") : null
199
+ U && D !== "picture-card" && !C ? /* @__PURE__ */ y("div", { className: `${L}-trigger-tip`, children: U }, "trigger-tip") : null
201
200
  ] });
202
201
  }
203
- const qt = X.forwardRef(rt);
202
+ const Ft = X.forwardRef(ot);
204
203
  export {
205
- qt as default
204
+ Ft as default
206
205
  };
package/upload/request.js CHANGED
@@ -1,4 +1,4 @@
1
- import { N as c } from "../chunk/CIkPwQlq.js";
1
+ import { N as c } from "../chunk/D0ZWT7db.js";
2
2
  function d(o) {
3
3
  const n = o.responseText || o.response;
4
4
  if (!n)
@@ -1,5 +1,5 @@
1
1
  import C from "axios";
2
- import { N as r } from "../chunk/CIkPwQlq.js";
2
+ import { N as r } from "../chunk/D0ZWT7db.js";
3
3
  import "../chunk/DAAff-FT.js";
4
4
  import "../chunk/C0pRaDCf.js";
5
5
  import N from "lodash/isPlainObject.js";
package/utils/caseName.js CHANGED
@@ -1,4 +1,4 @@
1
- import { d as e } from "../chunk/BsWphzcT.js";
1
+ import { g as e } from "../chunk/CBzE-PUr.js";
2
2
  export {
3
3
  e as caseName,
4
4
  e as default
package/utils/color.js CHANGED
@@ -1,4 +1,4 @@
1
- import { R as a } from "../chunk/BbqvFW5R.js";
1
+ import { R as a } from "../chunk/9TSjT7x_.js";
2
2
  export {
3
3
  a as color
4
4
  };
package/utils/constant.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { p as r } from "../chunk/ClqoGc3r.js";
2
- import { N as p, T as s } from "../chunk/CIkPwQlq.js";
3
- function e(o) {
2
+ import { N as a } from "../chunk/D0ZWT7db.js";
3
+ import { e as i, p as M } from "../chunk/ATwvJ8j2.js";
4
+ function n(o) {
4
5
  return Array.apply(null, Array(o));
5
6
  }
6
7
  function t(o) {
@@ -16,8 +17,9 @@ function t(o) {
16
17
  ]);
17
18
  }
18
19
  export {
19
- p as NOOP,
20
- s as THEME_DARK_CLASS_NAME,
21
- e as newArray,
20
+ a as NOOP,
21
+ i as UI_PC_KEY,
22
+ M as UI_PC_THEME_DARK_CLASS_NAME,
23
+ n as newArray,
22
24
  t as pickTriggerPropsFromRest
23
25
  };
@@ -1,5 +1,5 @@
1
1
  import "react";
2
- import { d, d as r } from "../chunk/C9XYyypq.js";
2
+ import { d, d as r } from "../chunk/CNcLypMY.js";
3
3
  export {
4
4
  d as ContextHolderElement,
5
5
  r as default
package/utils/dom.js CHANGED
@@ -1,4 +1,4 @@
1
- import { N as u } from "../chunk/CIkPwQlq.js";
1
+ import { N as u } from "../chunk/D0ZWT7db.js";
2
2
  const f = function() {
3
3
  try {
4
4
  return !(typeof window < "u" && document !== void 0);