@unicom-cloud/ui 0.8.81 → 0.8.83

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 (280) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +1 -1
  3. package/AutoComplete.js +2 -2
  4. package/BackTop.js +2 -2
  5. package/Badge.js +1 -1
  6. package/Breadcrumb.js +2 -2
  7. package/Button.js +1 -1
  8. package/Calendar.js +2 -2
  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 +2 -2
  15. package/Comment.js +1 -1
  16. package/ConfigProvider.js +5 -4
  17. package/Copy.js +1 -1
  18. package/DatePicker.js +7 -7
  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/Input.js +11 -10
  28. package/InputNumber.js +1 -1
  29. package/Layout.js +1 -1
  30. package/Link.js +1 -1
  31. package/List.js +2 -2
  32. package/Mentions.js +2 -2
  33. package/Menu.js +1 -1
  34. package/Message.js +1 -1
  35. package/Modal.js +1 -1
  36. package/Notice.js +1 -1
  37. package/Notification.js +5 -5
  38. package/OverflowEllipsis.js +1 -1
  39. package/PageHeader.js +1 -1
  40. package/Pagination.js +1 -1
  41. package/Popconfirm.js +1 -1
  42. package/Popover.js +1 -1
  43. package/Progress.js +1 -1
  44. package/Radio.js +1 -1
  45. package/Rate.js +1 -1
  46. package/ResizeBox.js +1 -1
  47. package/Result.js +1 -1
  48. package/Select.js +1 -1
  49. package/Skeleton.js +1 -1
  50. package/Slider.js +1 -1
  51. package/Space.js +1 -1
  52. package/SpeechSynthesis.js +1 -1
  53. package/Spin.js +1 -1
  54. package/Statistic.js +2 -2
  55. package/Steps.js +1 -1
  56. package/Switch.js +1 -1
  57. package/Table.js +1 -1
  58. package/Tabs.js +1 -1
  59. package/Tag.js +1 -1
  60. package/Tooltip.js +1 -1
  61. package/Transfer.js +2 -2
  62. package/Tree.js +1 -1
  63. package/TreeSelect.js +1 -1
  64. package/Trigger.js +1 -1
  65. package/Typography.js +1 -1
  66. package/affix/index.js +60 -57
  67. package/alert/index.js +53 -53
  68. package/anchor/Anchor.js +72 -72
  69. package/anchor/Link.js +27 -27
  70. package/anchor/util.js +1 -1
  71. package/auto-complete/index.js +2 -2
  72. package/avatar/Avatar.js +31 -31
  73. package/avatar/Group.js +25 -25
  74. package/back-top/index.js +30 -30
  75. package/badge/index.js +37 -37
  76. package/breadcrumb/index.js +26 -26
  77. package/button/Group.js +7 -7
  78. package/button/index.js +29 -29
  79. package/calendar/index.js +2 -2
  80. package/card/Grid.js +12 -12
  81. package/card/Meta.js +17 -17
  82. package/card/index.js +44 -44
  83. package/carousel/Arrow.js +19 -19
  84. package/carousel/Indicator.js +25 -25
  85. package/carousel/index.js +77 -77
  86. package/cascader/Cascader.js +2 -2
  87. package/cascader/index.js +1 -1
  88. package/cascader/util.js +1 -1
  89. package/checkbox/Checkbox.js +2 -2
  90. package/checkbox/Group.js +2 -2
  91. package/checkbox/GroupBlock.js +2 -2
  92. package/checkbox/index.js +2 -2
  93. package/chunk/B6r8jPCd.js +6 -0
  94. package/chunk/{DLBfXSnU.js → BmulTYLW.js} +2880 -2878
  95. package/chunk/C9oo3EJI.js +692 -0
  96. package/chunk/{C5X4hOkx.js → CVSWh4ZZ.js} +80 -80
  97. package/chunk/DILUZgXW.js +1464 -0
  98. package/chunk/DSRHFFrc.js +53 -0
  99. package/chunk/{yLRv5RIK.js → DdJVL_4g.js} +181 -181
  100. package/chunk/{DYspELhF.js → DlHiTTJO.js} +223 -223
  101. package/chunk/{BG7YGUsx.js → R-uQJib2.js} +119 -119
  102. package/chunk/{DEiyXzBZ.js → ev6oHWqY.js} +63 -63
  103. package/chunk/{BNevupAU.js → uKZyjtff.js} +5 -4
  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 +36 -36
  108. package/color-picker/InputAlpha.js +11 -11
  109. package/color-picker/InputHex.js +24 -24
  110. package/color-picker/InputRgb.js +23 -23
  111. package/color-picker/Palette.js +18 -18
  112. package/color-picker/Panel.js +2 -2
  113. package/color-picker/index.js +2 -2
  114. package/comment/index.js +31 -31
  115. package/config-provider/ConfigProvider.js +5 -3
  116. package/config-provider/context.js +2 -2
  117. package/config-provider/index.js +4 -3
  118. package/copy/index.js +28 -28
  119. package/date-picker/Picker.js +276 -276
  120. package/date-picker/{PickerRange.js → RangePicker.js} +2 -2
  121. package/date-picker/index.js +26 -27
  122. package/descriptions/index.js +33 -33
  123. package/divider/index.js +12 -12
  124. package/draggable/index.js +23 -23
  125. package/drawer/Drawer.js +81 -81
  126. package/dropdown/Button.js +1 -1
  127. package/dropdown/index.js +56 -56
  128. package/empty/index.js +1 -1
  129. package/form/Form.js +76 -76
  130. package/form/FormItem.js +64 -64
  131. package/form/context.js +1 -1
  132. package/grid/Col.js +53 -53
  133. package/grid/Row.js +34 -34
  134. package/grid/grid-item.js +29 -29
  135. package/grid/grid.js +50 -50
  136. package/icon/index.js +20 -19
  137. package/icon-hover/index.js +1 -1
  138. package/image/Image.js +86 -86
  139. package/image/ImagePreview.js +2 -2
  140. package/image/ImagePreviewArrow.js +22 -22
  141. package/image/ImagePreviewGroup.js +1 -1
  142. package/image/index.js +1 -1
  143. package/index.js +498 -493
  144. package/input/Button.js +11 -0
  145. package/input/Group.js +8 -8
  146. package/input/Input.js +488 -434
  147. package/input/InputElement.js +1 -1
  148. package/input/Password.js +1 -1
  149. package/input/Search.js +1 -1
  150. package/input/Textarea.js +1 -1
  151. package/input/index.js +9 -8
  152. package/input-number/index.js +1 -1
  153. package/input-tag/InputTag.js +40 -40
  154. package/layout/Content.js +7 -7
  155. package/layout/Footer.js +9 -9
  156. package/layout/Header.js +7 -7
  157. package/layout/Sider.js +55 -55
  158. package/layout/index.js +32 -32
  159. package/link/index.js +35 -35
  160. package/list/Item.js +29 -29
  161. package/list/Meta.js +12 -12
  162. package/list/index.js +2 -2
  163. package/mentions/index.js +2 -2
  164. package/menu/Menu.js +2 -2
  165. package/menu/OverflowWrap.js +1 -1
  166. package/menu/index.js +2 -2
  167. package/message/index.js +1 -1
  168. package/message/useMessage.js +1 -1
  169. package/modal/Confirm.js +2 -2
  170. package/modal/Modal.js +2 -2
  171. package/modal/index.js +1 -1
  172. package/notice/index.js +1 -1
  173. package/notification/index.js +5 -5
  174. package/notification/useNotification.js +1 -1
  175. package/overflow-ellipsis/OverflowItem.js +12 -12
  176. package/overflow-ellipsis/index.js +24 -24
  177. package/package.json +1 -1
  178. package/page-header/index.js +38 -38
  179. package/pagination/PageItem.js +16 -16
  180. package/pagination/PageJumper.js +1 -1
  181. package/pagination/PageOption.js +2 -2
  182. package/pagination/Pagination.js +2 -2
  183. package/pagination/index.js +1 -1
  184. package/picker/Input.js +69 -69
  185. package/picker/InputRange.js +111 -111
  186. package/popconfirm/index.js +61 -61
  187. package/popover/index.js +35 -35
  188. package/progress/index.js +22 -22
  189. package/radio/Group.js +2 -2
  190. package/radio/GroupBlock.js +2 -2
  191. package/radio/Radio.js +2 -2
  192. package/radio/index.js +2 -2
  193. package/rate/index.js +49 -49
  194. package/resize-box/ResizeTrigger.js +34 -34
  195. package/resize-box/Split.js +56 -56
  196. package/resize-box/SplitGroup.js +55 -55
  197. package/resize-box/index.js +51 -51
  198. package/result/index.js +41 -41
  199. package/select/Option.js +1 -1
  200. package/select/Select.js +2 -2
  201. package/select/index.js +2 -2
  202. package/select/util.js +1 -1
  203. package/select-view/Core.js +125 -125
  204. package/skeleton/index.js +20 -20
  205. package/slider/Button.js +57 -57
  206. package/slider/index.js +116 -116
  207. package/space/index.js +46 -44
  208. package/speech-synthesis/index.js +1 -1
  209. package/spin/DotLoading.js +10 -10
  210. package/spin/index.js +44 -44
  211. package/statistic/Countdown.js +34 -34
  212. package/statistic/index.js +67 -67
  213. package/steps/index.js +55 -55
  214. package/style.css +1 -1
  215. package/switch/index.js +54 -54
  216. package/table/Table.js +3 -3
  217. package/table/index.js +1 -1
  218. package/tabs/Tab.js +2 -2
  219. package/tabs/TabContent.js +2 -2
  220. package/tabs/TabPane.js +12 -12
  221. package/tabs/index.js +2 -2
  222. package/tag/index.js +45 -45
  223. package/time-picker/Picker.js +76 -76
  224. package/time-picker/TimePicker.js +136 -136
  225. package/time-picker/index.js +8 -8
  226. package/time-picker/util.js +5 -5
  227. package/timeline/Item.js +47 -47
  228. package/timeline/Timeline.js +41 -41
  229. package/tooltip/index.js +29 -29
  230. package/transfer/Item.js +2 -2
  231. package/transfer/List.js +2 -2
  232. package/transfer/index.js +2 -2
  233. package/tree/Animation.js +2 -2
  234. package/tree/Node.js +2 -2
  235. package/tree/NodeList.js +1 -1
  236. package/tree/Tree.js +2 -2
  237. package/tree/index.js +1 -1
  238. package/tree-select/List.js +1 -1
  239. package/tree-select/Select.js +2 -2
  240. package/tree-select/index.js +2 -2
  241. package/trigger/index.js +60 -60
  242. package/types/config-provider/ConfigProvider.d.ts +2 -2
  243. package/types/config-provider/context.d.ts +1 -1
  244. package/types/date-picker/index.d.ts +8 -9
  245. package/types/date-picker/interface.d.ts +9 -9
  246. package/types/index.d.ts +2 -2
  247. package/types/input/Button.d.ts +5 -0
  248. package/types/input/Input.d.ts +4 -1
  249. package/types/input/interface.d.ts +7 -0
  250. package/types/picker/Input.d.ts +2 -2
  251. package/types/space/index.d.ts +2 -1
  252. package/types/utils/index.d.ts +1 -0
  253. package/types/utils/names.d.ts +1 -1
  254. package/types/utils/setTheme.d.ts +2 -0
  255. package/typography/Base.js +53 -53
  256. package/typography/Ellipsis.js +10 -8
  257. package/typography/Operations.js +28 -28
  258. package/typography/Paragraph.js +8 -8
  259. package/typography/Typography.js +7 -7
  260. package/typography/index.js +1 -1
  261. package/upload/TriggerNode.js +47 -47
  262. package/upload/Upload.js +184 -184
  263. package/upload/request.js +1 -1
  264. package/upload/request_.js +1 -1
  265. package/utils/constant.js +1 -1
  266. package/utils/contextHolder.js +3 -3
  267. package/utils/dom.js +1 -1
  268. package/utils/index.js +116 -114
  269. package/utils/names.js +1 -1
  270. package/utils/setDarkTheme.js +23 -22
  271. package/utils/setPrimaryColor.js +22 -16
  272. package/utils/setTheme.js +9 -0
  273. package/utils/tween.js +1 -1
  274. package/verification-code/VerificationCode.js +49 -49
  275. package/version/index.js +1 -1
  276. package/watermark/Watermark.js +24 -24
  277. package/chunk/CQvM33Vg.js +0 -724
  278. package/chunk/D0ZWT7db.js +0 -5
  279. package/chunk/yhU2zeeu.js +0 -1461
  280. /package/types/date-picker/{PickerRange.d.ts → RangePicker.d.ts} +0 -0
@@ -1,81 +1,81 @@
1
- import { jsx as N, jsxs as R } from "react/jsx-runtime";
2
- import b, { forwardRef as w, useContext as F, useRef as j, createElement as z } from "react";
3
- import { a as D } from "../chunk/CQvM33Vg.js";
4
- import { u as E } from "../chunk/BFTV6myl.js";
5
- import K from "../input/InputElement.js";
6
- import p from "@unicom-cloud/utils/class-name";
7
- import { useVerificationCode as L } from "../hooks/useVerificationCode.js";
8
- const M = {
1
+ import { jsx as w, jsxs as x } from "react/jsx-runtime";
2
+ import F, { forwardRef as j, useContext as z, useRef as D, createElement as E } from "react";
3
+ import { a as K } from "../chunk/C9oo3EJI.js";
4
+ import { u as L } from "../chunk/BFTV6myl.js";
5
+ import M from "../input/InputElement.js";
6
+ import g from "@unicom-cloud/utils/class-name";
7
+ import { useVerificationCode as _ } from "../hooks/useVerificationCode.js";
8
+ const q = {
9
9
  length: 6
10
10
  };
11
- function C(g, _) {
12
- var d;
13
- const o = F(D), e = E(
14
- g,
15
- M,
16
- (d = o.componentConfig) == null ? void 0 : d.VerificationCode
17
- ), { size: l, separator: r, status: c, length: y, masked: h, disabled: v } = e, f = j([]), { value: $, filledValue: P, getInputProps: x } = L({
11
+ function y(h, A) {
12
+ var d, m, u;
13
+ const t = z(K), e = L(
14
+ h,
15
+ q,
16
+ (d = t.componentConfig) == null ? void 0 : d.VerificationCode
17
+ ), { size: l, separator: r, status: f, length: v, masked: $, disabled: P } = e, c = D([]), { value: O, filledValue: V, getInputProps: k } = _({
18
18
  defaultValue: e.defaultValue,
19
19
  value: e.value,
20
- length: y,
21
- getInputRefList: () => f.current,
20
+ length: v,
21
+ getInputRefList: () => c.current,
22
22
  onChange: e.onChange,
23
23
  onFinish: e.onFinish
24
- }), a = o.getPrefixCls("verification-code"), n = o.getPrefixCls("input");
25
- return /* @__PURE__ */ N(
24
+ }), a = (m = t.getPrefixCls) == null ? void 0 : m.call(t, "verification-code"), n = (u = t.getPrefixCls) == null ? void 0 : u.call(t, "input");
25
+ return /* @__PURE__ */ w(
26
26
  "div",
27
27
  {
28
- className: p(`${a}`, e.className, {
29
- [`${a}-rtl`]: o.rtl
28
+ className: g(`${a}`, e.className, {
29
+ [`${a}-rtl`]: t.rtl
30
30
  }),
31
31
  style: e.style,
32
- children: P.map((O, s) => {
33
- const { onChange: m, onClick: V, onPaste: k, onKeyDown: I, ...u } = x(s);
34
- return /* @__PURE__ */ R(b.Fragment, { children: [
35
- /* @__PURE__ */ z(
36
- K,
32
+ children: V.map((I, s) => {
33
+ const { onChange: p, onClick: N, onPaste: R, onKeyDown: b, ...C } = k(s);
34
+ return /* @__PURE__ */ x(F.Fragment, { children: [
35
+ /* @__PURE__ */ E(
36
+ M,
37
37
  {
38
38
  disabled: e.disabled,
39
39
  readOnly: e.readOnly,
40
- className: p(n, `${a}-input`, {
40
+ className: g(n, `${a}-input`, {
41
41
  [`${n}-size-${l}`]: l,
42
- [`${n}-${c}`]: c,
43
- [`${n}-disabled`]: v,
44
- [`${n}-rtl`]: o.rtl
42
+ [`${n}-${f}`]: f,
43
+ [`${n}-disabled`]: P,
44
+ [`${n}-rtl`]: t.rtl
45
45
  }),
46
- ref: (t) => {
47
- f.current[s] = t == null ? void 0 : t.dom;
46
+ ref: (o) => {
47
+ c.current[s] = o == null ? void 0 : o.dom;
48
48
  },
49
- ...u,
50
- key: u.key,
51
- onClick: e.readOnly ? void 0 : V,
52
- onPaste: e.readOnly ? void 0 : k,
53
- onKeyDown: e.readOnly ? void 0 : I,
54
- onChange: e.readOnly ? void 0 : (t) => {
49
+ ...C,
50
+ key: C.key,
51
+ onClick: e.readOnly ? void 0 : N,
52
+ onPaste: e.readOnly ? void 0 : R,
53
+ onKeyDown: e.readOnly ? void 0 : b,
54
+ onChange: e.readOnly ? void 0 : (o) => {
55
55
  if (e.validate) {
56
56
  const i = e == null ? void 0 : e.validate({
57
- inputValue: t,
57
+ inputValue: o,
58
58
  index: s,
59
- value: $
59
+ value: O
60
60
  });
61
- i !== !1 && m(
62
- typeof i == "string" ? i : t
61
+ i !== !1 && p(
62
+ typeof i == "string" ? i : o
63
63
  );
64
64
  } else
65
- m(t);
65
+ p(o);
66
66
  },
67
- type: h ? "password" : "text"
67
+ type: $ ? "password" : "text"
68
68
  }
69
69
  ),
70
- r == null ? void 0 : r({ index: s, character: O })
70
+ r == null ? void 0 : r({ index: s, character: I })
71
71
  ] }, s);
72
72
  })
73
73
  }
74
74
  );
75
75
  }
76
- C.displayName = "VerificationCodeComponent";
77
- const S = w(C);
76
+ y.displayName = "VerificationCodeComponent";
77
+ const U = j(y);
78
78
  export {
79
- C as VerificationCodeComponent,
80
- S as default
79
+ y as VerificationCodeComponent,
80
+ U as default
81
81
  };
package/version/index.js CHANGED
@@ -1,4 +1,4 @@
1
- const I = "2025-04-25 09:21:29", t = "1745544089164", E = "2.66.0";
1
+ const I = "2025-05-05 07:33:06", t = "1746401586487", E = "2.66.0";
2
2
  export {
3
3
  E as VERSION,
4
4
  I as VERSION_BUILD_DATE,
@@ -1,10 +1,10 @@
1
- import { jsx as l } from "react/jsx-runtime";
2
- import { forwardRef as g, useContext as u, useRef as p, useCallback as d, useEffect as C } from "react";
3
- import { a as h } from "../chunk/CQvM33Vg.js";
1
+ import { jsx as u } from "react/jsx-runtime";
2
+ import { forwardRef as g, useContext as p, useRef as d, useCallback as C, useEffect as h } from "react";
3
+ import { a as k } from "../chunk/C9oo3EJI.js";
4
4
  import { useWatermark as x } from "../hooks/useWatermark.js";
5
- import { u as k } from "../chunk/BFTV6myl.js";
6
- import w from "@unicom-cloud/utils/class-name";
7
- const y = {}, N = [
5
+ import { u as w } from "../chunk/BFTV6myl.js";
6
+ import y from "@unicom-cloud/utils/class-name";
7
+ const N = {}, O = [
8
8
  "zIndex",
9
9
  "width",
10
10
  "height",
@@ -16,21 +16,21 @@ const y = {}, N = [
16
16
  "offset",
17
17
  "getContainer"
18
18
  ];
19
- function O(c, S) {
20
- var f;
21
- const r = u(h), t = k(
19
+ function S(c, W) {
20
+ var f, m;
21
+ const e = p(k), t = w(
22
22
  c,
23
- y,
24
- (f = r.componentConfig) == null ? void 0 : f.Watermark
25
- ), n = p(), o = d(() => {
26
- var e;
27
- return n.current || ((e = t.getContainer) == null ? void 0 : e.call(t));
28
- }, [n.current, t.getContainer]), s = N.reduce((e, a) => (a in t && (e[a] = t[a]), e), {}), { setWatermark: m } = x({
23
+ N,
24
+ (f = e.componentConfig) == null ? void 0 : f.Watermark
25
+ ), n = d(null), o = C(() => {
26
+ var r;
27
+ return n.current || ((r = t.getContainer) == null ? void 0 : r.call(t));
28
+ }, [n.current, t.getContainer]), s = O.reduce((r, a) => (a in t && (r[a] = t[a]), r), {}), { setWatermark: l } = x({
29
29
  ...s,
30
30
  getContainer: o
31
31
  });
32
- C(() => {
33
- m({
32
+ h(() => {
33
+ l({
34
34
  ...s,
35
35
  getContainer: o
36
36
  });
@@ -46,12 +46,12 @@ function O(c, S) {
46
46
  JSON.stringify(t.offset),
47
47
  o
48
48
  ]);
49
- const i = r.getPrefixCls("watermark");
50
- return t.children ? /* @__PURE__ */ l(
49
+ const i = (m = e.getPrefixCls) == null ? void 0 : m.call(e, "watermark");
50
+ return t.children ? /* @__PURE__ */ u(
51
51
  "div",
52
52
  {
53
- className: w(`${i}`, t.className, {
54
- [`${i}-rtl`]: r.rtl
53
+ className: y(`${i}`, t.className, {
54
+ [`${i}-rtl`]: e.rtl
55
55
  }),
56
56
  style: t.style,
57
57
  ref: n,
@@ -59,8 +59,8 @@ function O(c, S) {
59
59
  }
60
60
  ) : null;
61
61
  }
62
- const $ = g(O);
62
+ const b = g(S);
63
63
  export {
64
- O as WatermarkComponent,
65
- $ as default
64
+ S as WatermarkComponent,
65
+ b as default
66
66
  };