@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,30 +1,30 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { c as C } from "../chunk/9TSjT7x_.js";
3
- import { useContext as d, useMemo as h } from "react";
4
- import { a as g } from "../chunk/CQvM33Vg.js";
5
- import { u as x } from "../chunk/k-OUstoD.js";
6
- const w = ({ color: c, onChange: l }) => {
7
- const { getPrefixCls: a } = d(g), e = a("color-picker"), { h: r, s: t, v: n } = c.hsv, { blockRef: f, handlerRef: i, onMouseDown: m } = x({
8
- value: [t, 1 - n],
9
- onChange: (o) => l(o[0], 1 - o[1])
10
- }), p = h(() => new C({ h: r * 360, s: 100, v: 100 }).toRgbString(), [r]), u = () => /* @__PURE__ */ s(
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { c as d } from "../chunk/9TSjT7x_.js";
3
+ import { useContext as h, useMemo as C } from "react";
4
+ import { a as v } from "../chunk/C9oo3EJI.js";
5
+ import { u as g } from "../chunk/k-OUstoD.js";
6
+ const w = ({ color: l, onChange: a }) => {
7
+ const { getPrefixCls: o } = h(v), r = o == null ? void 0 : o("color-picker"), { h: t, s: n, v: s } = l.hsv, { blockRef: m, handlerRef: f, onMouseDown: i } = g({
8
+ value: [n, 1 - s],
9
+ onChange: (e) => a(e[0], 1 - e[1])
10
+ }), p = C(() => new d({ h: t * 360, s: 100, v: 100 }).toRgbString(), [t]), u = () => /* @__PURE__ */ c(
11
11
  "div",
12
12
  {
13
- ref: i,
14
- className: `${e}-handler`,
13
+ ref: f,
14
+ className: `${r}-handler`,
15
15
  style: {
16
- top: `${(1 - n) * 100}%`,
17
- left: `${t * 100}%`
16
+ top: `${(1 - s) * 100}%`,
17
+ left: `${n * 100}%`
18
18
  }
19
19
  }
20
20
  );
21
- return /* @__PURE__ */ s(
21
+ return /* @__PURE__ */ c(
22
22
  "div",
23
23
  {
24
- ref: f,
25
- className: `${e}-palette`,
24
+ ref: m,
25
+ className: `${r}-palette`,
26
26
  style: { backgroundColor: p },
27
- onMouseDown: m,
27
+ onMouseDown: i,
28
28
  children: u()
29
29
  }
30
30
  );
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../chunk/9TSjT7x_.js";
3
3
  import "react";
4
- import "../chunk/CQvM33Vg.js";
5
- import { Z as b } from "../chunk/DLBfXSnU.js";
4
+ import "../chunk/C9oo3EJI.js";
5
+ import { Z as b } from "../chunk/BmulTYLW.js";
6
6
  import "../tooltip/index.js";
7
7
  import "@unicom-cloud/utils/class-name";
8
8
  import "./ControlBar.js";
@@ -2,13 +2,13 @@ import "react/jsx-runtime";
2
2
  import "lodash/isFunction";
3
3
  import "lodash/isNil";
4
4
  import "react";
5
- import "../chunk/CQvM33Vg.js";
5
+ import "../chunk/C9oo3EJI.js";
6
6
  import "../copy/index.js";
7
7
  import "../chunk/BFTV6myl.js";
8
8
  import "../trigger/index.js";
9
9
  import "@unicom-cloud/utils/class-name";
10
10
  import "./colors.js";
11
- import { d as x } from "../chunk/DLBfXSnU.js";
11
+ import { d as x } from "../chunk/BmulTYLW.js";
12
12
  import "./utils.js";
13
13
  export {
14
14
  x as default
package/comment/index.js CHANGED
@@ -1,25 +1,25 @@
1
1
  import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import g from "lodash/isPlainObject";
3
- import N from "lodash/isString";
2
+ import N from "lodash/isPlainObject";
3
+ import g from "lodash/isString";
4
4
  import { forwardRef as u, useContext as v } from "react";
5
- import { a as C } from "../chunk/CQvM33Vg.js";
5
+ import { a as C } from "../chunk/C9oo3EJI.js";
6
6
  import { u as x } from "../chunk/BFTV6myl.js";
7
- import d from "@unicom-cloud/utils/class-name";
8
- import { a as P } from "../chunk/ClqoGc3r.js";
9
- const j = {
7
+ import f from "@unicom-cloud/utils/class-name";
8
+ import { a as j } from "../chunk/ClqoGc3r.js";
9
+ const y = {
10
10
  datetime: "left",
11
11
  actions: "left"
12
- }, y = {
12
+ }, b = {
13
13
  align: "left"
14
14
  };
15
- function b(f, p) {
16
- const { getPrefixCls: $, componentConfig: s, rtl: h } = v(C), a = x(
17
- f,
18
- y,
19
- s == null ? void 0 : s.Comment
20
- ), t = $("comment"), { actions: m, author: r, avatar: i, content: o, datetime: l } = a, c = {
21
- ...j,
22
- ...g(a.align) ? a.align : {
15
+ function A(p, $) {
16
+ const { getPrefixCls: s, componentConfig: r, rtl: h } = v(C), a = x(
17
+ p,
18
+ b,
19
+ r == null ? void 0 : r.Comment
20
+ ), t = s == null ? void 0 : s("comment"), { actions: o, author: l, avatar: i, content: c, datetime: m } = a, d = {
21
+ ...y,
22
+ ...N(a.align) ? a.align : {
23
23
  datetime: a.align,
24
24
  actions: a.align
25
25
  }
@@ -27,34 +27,34 @@ function b(f, p) {
27
27
  return /* @__PURE__ */ n(
28
28
  "div",
29
29
  {
30
- ref: p,
31
- className: d(
30
+ ref: $,
31
+ className: f(
32
32
  `${t}`,
33
33
  { [`${t}-rtl`]: h },
34
34
  a.className
35
35
  ),
36
36
  style: a.style,
37
- ...P(a),
37
+ ...j(a),
38
38
  children: [
39
- i && /* @__PURE__ */ e("div", { className: d(`${t}-avatar`), children: N(i) ? /* @__PURE__ */ e("img", { src: i, alt: "comment-avatar" }) : i }),
39
+ i && /* @__PURE__ */ e("div", { className: f(`${t}-avatar`), children: g(i) ? /* @__PURE__ */ e("img", { src: i, alt: "comment-avatar" }) : i }),
40
40
  /* @__PURE__ */ n("div", { className: `${t}-inner`, children: [
41
41
  /* @__PURE__ */ n("div", { className: `${t}-inner-content`, children: [
42
- (r || l) && /* @__PURE__ */ n(
42
+ (l || m) && /* @__PURE__ */ n(
43
43
  "div",
44
44
  {
45
- className: `${t}-title ${t}-title-align-${c.datetime}`,
45
+ className: `${t}-title ${t}-title-align-${d.datetime}`,
46
46
  children: [
47
- r && /* @__PURE__ */ e("span", { className: `${t}-author`, children: r }),
48
- l && /* @__PURE__ */ e("span", { className: `${t}-datetime`, children: l })
47
+ l && /* @__PURE__ */ e("span", { className: `${t}-author`, children: l }),
48
+ m && /* @__PURE__ */ e("span", { className: `${t}-datetime`, children: m })
49
49
  ]
50
50
  }
51
51
  ),
52
- o && /* @__PURE__ */ e("div", { className: `${t}-content`, children: o }),
53
- m && /* @__PURE__ */ e(
52
+ c && /* @__PURE__ */ e("div", { className: `${t}-content`, children: c }),
53
+ o && /* @__PURE__ */ e(
54
54
  "div",
55
55
  {
56
- className: `${t}-actions ${t}-actions-align-${c.actions}`,
57
- children: m
56
+ className: `${t}-actions ${t}-actions-align-${d.actions}`,
57
+ children: o
58
58
  }
59
59
  )
60
60
  ] }),
@@ -64,10 +64,10 @@ function b(f, p) {
64
64
  }
65
65
  );
66
66
  }
67
- const A = u(
68
- b
67
+ const P = u(
68
+ A
69
69
  );
70
- A.displayName = "Comment";
70
+ P.displayName = "Comment";
71
71
  export {
72
- A as default
72
+ P as default
73
73
  };
@@ -1,13 +1,15 @@
1
1
  import "react/jsx-runtime";
2
2
  import "@unicom-cloud/icons/context";
3
- import { C as f, a as n, b as s } from "../chunk/CQvM33Vg.js";
3
+ import "../chunk/DSRHFFrc.js";
4
4
  import "@unicom-cloud/utils/constant/ui";
5
5
  import "lodash/merge";
6
6
  import "react";
7
7
  import "../chunk/BFTV6myl.js";
8
+ import { C, a as n, c as g, b as u } from "../chunk/C9oo3EJI.js";
8
9
  import "../modal/config.js";
9
10
  export {
10
- f as ConfigConsumer,
11
+ C as ConfigConsumer,
11
12
  n as ConfigContext,
12
- s as default
13
+ g as ConfigProviderDefaultProps,
14
+ u as default
13
15
  };
@@ -1,9 +1,9 @@
1
1
  import "react/jsx-runtime";
2
2
  import "@unicom-cloud/utils/constant/ui";
3
3
  import "react";
4
- import { D as m, a as e } from "../chunk/CQvM33Vg.js";
4
+ import { c as m, a as e } from "../chunk/C9oo3EJI.js";
5
5
  import "../locale/zh-CN.js";
6
6
  export {
7
- m as DefaultConfigProviderProps,
7
+ m as ConfigProviderDefaultProps,
8
8
  e as default
9
9
  };
@@ -1,7 +1,8 @@
1
- import { b as r } from "../chunk/CQvM33Vg.js";
2
- import { C as f, a as t } from "../chunk/CQvM33Vg.js";
1
+ import { b as r } from "../chunk/C9oo3EJI.js";
2
+ import { C as f, a as i, c as s } from "../chunk/C9oo3EJI.js";
3
3
  export {
4
4
  f as ConfigConsumer,
5
- t as ConfigContext,
5
+ i as ConfigContext,
6
+ s as ConfigProviderDefaultProps,
6
7
  r as default
7
8
  };
package/copy/index.js CHANGED
@@ -1,36 +1,36 @@
1
- import { jsx as r, jsxs as T } from "react/jsx-runtime";
1
+ import { jsx as c, jsxs as T } from "react/jsx-runtime";
2
2
  import h from "@unicom-cloud/icons/IconUiCheckCircleFill";
3
3
  import b from "@unicom-cloud/icons/IconUiCopy";
4
- import { useContext as P, useState as w, useRef as E, useEffect as N } from "react";
5
- import { a as k } from "../chunk/CQvM33Vg.js";
6
- import { u as v } from "../chunk/BYdIoY50.js";
7
- import I from "../tooltip/index.js";
4
+ import { useContext as w, useState as E, useRef as N, useEffect as k } from "react";
5
+ import { a as v } from "../chunk/C9oo3EJI.js";
6
+ import { u as I } from "../chunk/BYdIoY50.js";
7
+ import P from "../tooltip/index.js";
8
8
  import j from "@unicom-cloud/utils/class-name";
9
9
  import S from "@unicom-cloud/utils/clipboard-copy";
10
10
  import { m as U } from "../chunk/B5RFT17G.js";
11
11
  function $(o) {
12
- var l, u;
13
- const { children: c } = o, p = v(), x = P(k), { getPrefixCls: g, locale: t } = x, s = g("copy"), [e, m] = w(!1), n = E(-1), i = o.tooltips || [
14
- (l = t == null ? void 0 : t.Typography) == null ? void 0 : l.copy,
15
- (u = t == null ? void 0 : t.Typography) == null ? void 0 : u.copied
12
+ var u, d;
13
+ const { children: m } = o, x = I(), g = w(v), { getPrefixCls: n, locale: t } = g, s = n == null ? void 0 : n("copy"), [e, a] = E(!1), i = N(-1), r = o.tooltips || [
14
+ (u = t == null ? void 0 : t.Typography) == null ? void 0 : u.copy,
15
+ (d = t == null ? void 0 : t.Typography) == null ? void 0 : d.copied
16
16
  ];
17
- let a = null;
18
- o.icon !== null && o.icon !== !1 && (a = e ? /* @__PURE__ */ r(h, {}) : o.icon || /* @__PURE__ */ r(b, {}));
19
- function f(C) {
20
- var y;
21
- if (C.stopPropagation(), e)
17
+ let f = null;
18
+ o.icon !== null && o.icon !== !1 && (f = e ? /* @__PURE__ */ c(h, {}) : o.icon || /* @__PURE__ */ c(b, {}));
19
+ function l(y) {
20
+ var p;
21
+ if (y.stopPropagation(), e)
22
22
  return;
23
- const d = o.text !== void 0 ? o.text : U(c);
24
- S(d), m(!0), (y = o.onCopy) == null || y.call(o, d, C), n.current = window.setTimeout(() => {
25
- m(!1);
23
+ const C = o.text !== void 0 ? o.text : U(m);
24
+ S(C), a(!0), (p = o.onCopy) == null || p.call(o, C, y), i.current = window.setTimeout(() => {
25
+ a(!1);
26
26
  }, 3e3);
27
27
  }
28
- return N(() => () => {
29
- clearTimeout(n.current), n.current = -1;
30
- }, []), /* @__PURE__ */ r(
31
- I,
28
+ return k(() => () => {
29
+ clearTimeout(i.current), i.current = -1;
30
+ }, []), /* @__PURE__ */ c(
31
+ P,
32
32
  {
33
- content: e ? i[1] : i[0],
33
+ content: e ? r[1] : r[0],
34
34
  getPopupContainer: () => window.document.body,
35
35
  ...o.tooltipProps,
36
36
  children: /* @__PURE__ */ T(
@@ -42,15 +42,15 @@ function $(o) {
42
42
  o.className
43
43
  ),
44
44
  role: "button",
45
- "aria-label": i[0],
45
+ "aria-label": r[0],
46
46
  tabIndex: 0,
47
- onClick: f,
48
- ...p({
49
- onPressEnter: f
47
+ onClick: l,
48
+ ...x({
49
+ onPressEnter: l
50
50
  }),
51
51
  children: [
52
- c,
53
- a
52
+ m,
53
+ f
54
54
  ]
55
55
  }
56
56
  )