@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
package/card/index.js CHANGED
@@ -1,51 +1,51 @@
1
1
  import { jsx as a, jsxs as l } from "react/jsx-runtime";
2
- import n, { useContext as L } from "react";
3
- import { a as k } from "../chunk/CQvM33Vg.js";
2
+ import d, { useContext as P } from "react";
3
+ import { a as k } from "../chunk/C9oo3EJI.js";
4
4
  import { u as q } from "../chunk/BFTV6myl.js";
5
5
  import A from "../spin/index.js";
6
- import $ from "@unicom-cloud/utils/class-name";
6
+ import u from "@unicom-cloud/utils/class-name";
7
7
  import C from "./Grid.js";
8
- import u from "./Meta.js";
8
+ import N from "./Meta.js";
9
9
  const B = {
10
10
  size: "default",
11
11
  bordered: !0
12
12
  };
13
- function D(N, v) {
14
- const { getPrefixCls: y, loadingElement: x, componentConfig: s, rtl: g } = L(k), b = q(
15
- N,
13
+ function D(v, y) {
14
+ const { getPrefixCls: o, loadingElement: b, componentConfig: s, rtl: x } = P(k), g = q(
15
+ v,
16
16
  B,
17
17
  s == null ? void 0 : s.Card
18
18
  ), {
19
19
  className: M,
20
20
  children: z,
21
- bordered: P,
22
- loading: c,
23
- hoverable: R,
24
- size: S,
21
+ bordered: R,
22
+ loading: m,
23
+ hoverable: S,
24
+ size: j,
25
25
  title: t,
26
- extra: o,
27
- cover: m,
28
- actions: i,
29
- headerStyle: j,
30
- bodyStyle: w,
31
- ...E
32
- } = b, e = y("card"), p = i && i.length ? /* @__PURE__ */ a("div", { className: `${e}-actions`, children: /* @__PURE__ */ a("div", { className: `${e}-actions-right`, children: i.map((r, F) => /* @__PURE__ */ a(
26
+ extra: i,
27
+ cover: p,
28
+ actions: n,
29
+ headerStyle: w,
30
+ bodyStyle: E,
31
+ ...G
32
+ } = g, e = o == null ? void 0 : o("card"), h = n && n.length ? /* @__PURE__ */ a("div", { className: `${e}-actions`, children: /* @__PURE__ */ a("div", { className: `${e}-actions-right`, children: n.map((r, L) => /* @__PURE__ */ a(
33
33
  "span",
34
34
  {
35
35
  className: `${e}-actions-item`,
36
36
  children: r
37
37
  },
38
- `action-${F}`
38
+ `action-${L}`
39
39
  )) }) }) : null;
40
- let f = !1, h = !1;
41
- const G = n.Children.map(
40
+ let f = !1, $ = !1;
41
+ const F = d.Children.map(
42
42
  z,
43
43
  (r) => {
44
44
  if (r && r.type) {
45
45
  if (r.type === C)
46
46
  f = !0;
47
- else if (r.type === u)
48
- return h = !0, n.cloneElement(r, { actionList: p });
47
+ else if (r.type === N)
48
+ return $ = !0, d.cloneElement(r, { actionList: h });
49
49
  }
50
50
  return r;
51
51
  }
@@ -53,47 +53,47 @@ function D(N, v) {
53
53
  return /* @__PURE__ */ l(
54
54
  "div",
55
55
  {
56
- ...E,
57
- ref: v,
58
- className: $(
56
+ ...G,
57
+ ref: y,
58
+ className: u(
59
59
  e,
60
- `${e}-size-${S}`,
60
+ `${e}-size-${j}`,
61
61
  {
62
- [`${e}-loading`]: c,
63
- [`${e}-bordered`]: P,
64
- [`${e}-hoverable`]: R,
62
+ [`${e}-loading`]: m,
63
+ [`${e}-bordered`]: R,
64
+ [`${e}-hoverable`]: S,
65
65
  [`${e}-contain-grid`]: f,
66
- [`${e}-rtl`]: g
66
+ [`${e}-rtl`]: x
67
67
  },
68
68
  M
69
69
  ),
70
70
  children: [
71
- t || o ? /* @__PURE__ */ l(
71
+ t || i ? /* @__PURE__ */ l(
72
72
  "div",
73
73
  {
74
- className: $(`${e}-header`, {
74
+ className: u(`${e}-header`, {
75
75
  [`${e}-header-no-title`]: !t
76
76
  }),
77
- style: j,
77
+ style: w,
78
78
  children: [
79
79
  t && /* @__PURE__ */ a("div", { className: `${e}-header-title`, children: t }),
80
- o && /* @__PURE__ */ a("div", { className: `${e}-header-extra`, children: o })
80
+ i && /* @__PURE__ */ a("div", { className: `${e}-header-extra`, children: i })
81
81
  ]
82
82
  }
83
83
  ) : null,
84
- m ? /* @__PURE__ */ a("div", { className: `${e}-cover`, children: m }) : null,
85
- /* @__PURE__ */ l("div", { className: `${e}-body`, style: w, children: [
86
- c ? x || /* @__PURE__ */ a(A, {}) : G,
87
- h ? null : p
84
+ p ? /* @__PURE__ */ a("div", { className: `${e}-cover`, children: p }) : null,
85
+ /* @__PURE__ */ l("div", { className: `${e}-body`, style: E, children: [
86
+ m ? b || /* @__PURE__ */ a(A, {}) : F,
87
+ $ ? null : h
88
88
  ] })
89
89
  ]
90
90
  }
91
91
  );
92
92
  }
93
- const H = n.forwardRef(D), d = H;
94
- d.Meta = u;
95
- d.Grid = C;
96
- d.displayName = "Card";
93
+ const H = d.forwardRef(D), c = H;
94
+ c.Meta = N;
95
+ c.Grid = C;
96
+ c.displayName = "Card";
97
97
  export {
98
- d as default
98
+ c as default
99
99
  };
package/carousel/Arrow.js CHANGED
@@ -1,36 +1,36 @@
1
1
  import { jsx as r, jsxs as h } from "react/jsx-runtime";
2
2
  import v from "@unicom-cloud/icons/IconUiDown";
3
- import x from "@unicom-cloud/icons/IconUiLeft";
4
- import u from "@unicom-cloud/icons/IconUiRight";
5
- import C from "@unicom-cloud/icons/IconUiUp";
6
- import b, { useContext as y } from "react";
7
- import { a as N } from "../chunk/CQvM33Vg.js";
3
+ import u from "@unicom-cloud/icons/IconUiLeft";
4
+ import x from "@unicom-cloud/icons/IconUiRight";
5
+ import b from "@unicom-cloud/icons/IconUiUp";
6
+ import C, { useContext as y } from "react";
7
+ import { a as N } from "../chunk/C9oo3EJI.js";
8
8
  import { u as $ } from "../chunk/BYdIoY50.js";
9
9
  import I from "@unicom-cloud/utils/class-name";
10
- function P(i, c) {
10
+ function U(i, l) {
11
11
  const {
12
- className: l,
12
+ className: m,
13
13
  direction: t = "horizontal",
14
- showArrow: m = "always",
15
- prev: n,
14
+ showArrow: p = "always",
15
+ prev: a,
16
16
  next: s,
17
17
  icons: o
18
- } = i, a = $(), { getPrefixCls: p } = y(N), e = p("carousel"), f = I(
18
+ } = i, c = $(), { getPrefixCls: n } = y(N), e = n == null ? void 0 : n("carousel"), f = I(
19
19
  `${e}-arrow`,
20
20
  {
21
- [`${e}-arrow-hover`]: m === "hover"
21
+ [`${e}-arrow-hover`]: p === "hover"
22
22
  },
23
- l
24
- ), w = o && Object.prototype.hasOwnProperty.call(o, "prev") ? o.prev : t === "horizontal" ? /* @__PURE__ */ r(x, {}) : /* @__PURE__ */ r(C, {}), d = o && Object.prototype.hasOwnProperty.call(o, "next") ? o.next : t === "horizontal" ? /* @__PURE__ */ r(u, {}) : /* @__PURE__ */ r(v, {});
25
- return /* @__PURE__ */ h("div", { ref: c, className: f, children: [
23
+ m
24
+ ), w = o && Object.prototype.hasOwnProperty.call(o, "prev") ? o.prev : t === "horizontal" ? /* @__PURE__ */ r(u, {}) : /* @__PURE__ */ r(b, {}), d = o && Object.prototype.hasOwnProperty.call(o, "next") ? o.next : t === "horizontal" ? /* @__PURE__ */ r(x, {}) : /* @__PURE__ */ r(v, {});
25
+ return /* @__PURE__ */ h("div", { ref: l, className: f, children: [
26
26
  /* @__PURE__ */ r(
27
27
  "div",
28
28
  {
29
29
  className: `${e}-arrow-${t === "vertical" ? "top" : "left"}`,
30
- onClick: n,
30
+ onClick: a,
31
31
  role: "button",
32
32
  tabIndex: 0,
33
- ...a({ onPressEnter: n }),
33
+ ...c({ onPressEnter: a }),
34
34
  children: w
35
35
  }
36
36
  ),
@@ -41,14 +41,14 @@ function P(i, c) {
41
41
  onClick: s,
42
42
  role: "button",
43
43
  tabIndex: 0,
44
- ...a({ onPressEnter: s }),
44
+ ...c({ onPressEnter: s }),
45
45
  children: d
46
46
  }
47
47
  )
48
48
  ] });
49
49
  }
50
- const K = b.forwardRef(
51
- P
50
+ const K = C.forwardRef(
51
+ U
52
52
  );
53
53
  export {
54
54
  K as default
@@ -1,64 +1,64 @@
1
- import { jsx as r } from "react/jsx-runtime";
1
+ import { jsx as c } from "react/jsx-runtime";
2
2
  import N, { useContext as h } from "react";
3
- import { a as I } from "../chunk/CQvM33Vg.js";
4
- import c from "@unicom-cloud/utils/class-name";
5
- function w(f, m) {
6
- const { getPrefixCls: p } = h(I), {
3
+ import { a as I } from "../chunk/C9oo3EJI.js";
4
+ import l from "@unicom-cloud/utils/class-name";
5
+ function w(f, p) {
6
+ const { getPrefixCls: a } = h(I), {
7
7
  className: u,
8
8
  type: i = "line",
9
- count: a = 2,
9
+ count: n = 2,
10
10
  activeIndex: s = 0,
11
11
  position: x = "bottom",
12
- trigger: g = "click",
13
- onSelectIndex: l
14
- } = f, e = p("carousel-indicator"), n = [];
12
+ trigger: $ = "click",
13
+ onSelectIndex: d
14
+ } = f, e = a == null ? void 0 : a("carousel-indicator"), r = [];
15
15
  if (i === "slider") {
16
- const t = 100 / a;
17
- n.push(
18
- /* @__PURE__ */ r(
16
+ const t = 100 / n;
17
+ r.push(
18
+ /* @__PURE__ */ c(
19
19
  "span",
20
20
  {
21
21
  style: { width: `${t}%`, left: `${s * t}%` },
22
- className: c(`${e}-item`, `${e}-item-active`)
22
+ className: l(`${e}-item`, `${e}-item-active`)
23
23
  },
24
24
  0
25
25
  )
26
26
  );
27
27
  } else
28
- for (let t = 0; t < a; t++)
29
- n.push(
30
- /* @__PURE__ */ r(
28
+ for (let t = 0; t < n; t++)
29
+ r.push(
30
+ /* @__PURE__ */ c(
31
31
  "span",
32
32
  {
33
33
  "data-index": t,
34
- className: c(`${e}-item`, {
34
+ className: l(`${e}-item`, {
35
35
  [`${e}-item-active`]: t === s
36
36
  })
37
37
  },
38
38
  t
39
39
  )
40
40
  );
41
- const C = {
42
- ref: m,
43
- className: c(
41
+ const g = {
42
+ ref: p,
43
+ className: l(
44
44
  e,
45
45
  `${e}-${i}`,
46
46
  `${e}-${x}`,
47
47
  u
48
48
  ),
49
- [g === "click" ? "onClick" : "onMouseMove"]: (t) => {
49
+ [$ === "click" ? "onClick" : "onMouseMove"]: (t) => {
50
50
  if (t.preventDefault(), i === "slider") {
51
51
  if (t.target === t.currentTarget) {
52
- const { x: o, width: $ } = t.currentTarget.getBoundingClientRect(), d = ~~((t.nativeEvent.clientX - o) / $ * a);
53
- d !== s && l(d);
52
+ const { x: o, width: C } = t.currentTarget.getBoundingClientRect(), m = ~~((t.nativeEvent.clientX - o) / C * n);
53
+ m !== s && d(m);
54
54
  }
55
55
  } else {
56
56
  const o = t.target.getAttribute("data-index");
57
- o && +o !== s && l(+o);
57
+ o && +o !== s && d(+o);
58
58
  }
59
59
  }
60
60
  };
61
- return /* @__PURE__ */ r("div", { ...C, children: n });
61
+ return /* @__PURE__ */ c("div", { ...g, children: r });
62
62
  }
63
63
  const y = N.forwardRef(w);
64
64
  export {
package/carousel/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs as ye, jsx as I } from "react/jsx-runtime";
2
- import P, { useContext as xe, useRef as F, useState as m, useEffect as z, useImperativeHandle as Ne } from "react";
3
- import { a as Ie } from "../chunk/CQvM33Vg.js";
2
+ import P, { useContext as Ne, useRef as z, useState as m, useEffect as O, useImperativeHandle as xe } from "react";
3
+ import { a as Ie } from "../chunk/C9oo3EJI.js";
4
4
  import { u as Ce } from "../chunk/C4OrxKE6.js";
5
5
  import { u as Pe } from "../chunk/BFTV6myl.js";
6
6
  import C from "@unicom-cloud/utils/class-name";
@@ -19,30 +19,30 @@ const we = 3e3, Ae = {
19
19
  moveSpeed: 500,
20
20
  timingFunc: "cubic-bezier(0.34, 0.69, 0.1, 1)"
21
21
  };
22
- function Ee(B, O) {
23
- const { getPrefixCls: G, componentConfig: $, rtl: V } = xe(Ie), h = Pe(
24
- B,
22
+ function Ee(G, V) {
23
+ const { getPrefixCls: $, componentConfig: b, rtl: _ } = Ne(Ie), h = Pe(
24
+ G,
25
25
  Ae,
26
- $ == null ? void 0 : $.Carousel
26
+ b == null ? void 0 : b.Carousel
27
27
  ), {
28
28
  style: J,
29
29
  className: K,
30
30
  children: Q,
31
31
  currentIndex: y,
32
- animation: x,
32
+ animation: N,
33
33
  trigger: ee,
34
- direction: b,
35
- moveSpeed: T,
36
- timingFunc: _,
37
- indicatorType: k,
38
- indicatorPosition: W,
34
+ direction: T,
35
+ moveSpeed: W,
36
+ timingFunc: k,
37
+ indicatorType: U,
38
+ indicatorPosition: S,
39
39
  indicatorClassName: te,
40
- showArrow: U,
40
+ showArrow: Y,
41
41
  miniRender: re,
42
42
  arrowClassName: ne,
43
43
  carousel: ie,
44
44
  icons: oe,
45
- onChange: S,
45
+ onChange: w,
46
46
  ...se
47
47
  } = h;
48
48
  let o = h.autoPlay;
@@ -52,17 +52,17 @@ function Ee(B, O) {
52
52
  !0,
53
53
  "[Pqb Carousel] The 'autoPlaySpeed' property will be removed in the next major version, please use 'autoPlay.interval' instead."
54
54
  ));
55
- const Y = P.Children.toArray(Q).filter(
55
+ const Z = P.Children.toArray(Q).filter(
56
56
  (e) => P.isValidElement(e)
57
- ), d = Y.length, p = F(null), f = F(null), N = F(null), [w, ae] = m(
58
- typeof y == "number" ? g(y) : 0
59
- ), [le, ce] = m(w), [ue, Z] = m(!1), [A, q] = m(!1), [E, de] = m(
57
+ ), d = Z.length, p = z(null), f = z(null), x = z(null), [A, ae] = m(
58
+ typeof y == "number" ? v(y) : 0
59
+ ), [le, ce] = m(A), [ue, q] = m(!1), [E, X] = m(!1), [M, de] = m(
60
60
  null
61
- ), [X, M] = m({
61
+ ), [B, R] = m({
62
62
  sliderWrapper: null,
63
63
  indicatorWrapper: null
64
- }), s = typeof y == "number" ? g(y) : w, R = g(s - 1), j = g(s + 1), me = typeof o == "object" && o.interval ? o.interval : we;
65
- z(() => () => N.current && clearTimeout(N.current), []), z(() => {
64
+ }), s = typeof y == "number" ? v(y) : A, j = v(s - 1), D = v(s + 1), me = typeof o == "object" && o.interval ? o.interval : we;
65
+ O(() => () => x.current && clearTimeout(x.current), []), O(() => {
66
66
  c({
67
67
  targetIndex: s
68
68
  });
@@ -70,24 +70,24 @@ function Ee(B, O) {
70
70
  const pe = Ce(
71
71
  () => {
72
72
  c({
73
- targetIndex: j
73
+ targetIndex: D
74
74
  });
75
75
  },
76
76
  o && !ue && d > 1 ? me : null
77
77
  );
78
- Ne(ie, () => ({
78
+ xe(ie, () => ({
79
79
  dom: p.current,
80
80
  getRootDOMNode: () => p.current,
81
81
  goto: ({ index: e, isNegative: t, isManual: r, resetAutoPlayInterval: i }) => {
82
82
  c({
83
- targetIndex: g(e),
83
+ targetIndex: v(e),
84
84
  isNegative: t,
85
85
  isManual: r,
86
86
  resetAutoPlayInterval: i
87
87
  });
88
88
  }
89
89
  }));
90
- function g(e) {
90
+ function v(e) {
91
91
  const t = +e;
92
92
  return typeof t == "number" && !isNaN(t) ? (t + d) % d : e;
93
93
  }
@@ -97,21 +97,21 @@ function Ee(B, O) {
97
97
  isManual: r = !1,
98
98
  resetAutoPlayInterval: i = !1
99
99
  }) {
100
- !A && e !== s && (q(!0), ae(e), ce(w), de(t ? "negative" : "positive"), S == null || S(e, s, r), o && i && pe(), N.current = setTimeout(() => {
101
- q(!1), N.current = null;
102
- }, T));
100
+ !E && e !== s && (X(!0), ae(e), ce(A), de(t ? "negative" : "positive"), w == null || w(e, s, r), o && i && pe(), x.current = setTimeout(() => {
101
+ X(!1), x.current = null;
102
+ }, W));
103
103
  }
104
104
  function fe() {
105
- if (x === "card") {
105
+ if (N === "card") {
106
106
  if (f.current) {
107
107
  const e = f.current.children[0];
108
108
  if (!e)
109
109
  return;
110
- if (b === "horizontal") {
111
- const t = f.current.clientWidth, r = e.clientWidth, i = (t - r) / 2, a = 200, l = t / 2, u = r, v = l + 50 >= u ? a * 4 : a * l / (u - l);
112
- M({
110
+ if (T === "horizontal") {
111
+ const t = f.current.clientWidth, r = e.clientWidth, i = (t - r) / 2, a = 200, l = t / 2, u = r, g = l + 50 >= u ? a * 4 : a * l / (u - l);
112
+ R({
113
113
  sliderWrapper: {
114
- perspective: v
114
+ perspective: g
115
115
  },
116
116
  indicatorWrapper: {
117
117
  width: "auto",
@@ -120,10 +120,10 @@ function Ee(B, O) {
120
120
  }
121
121
  });
122
122
  } else {
123
- const t = f.current.clientHeight, r = e.clientHeight, i = (t - r) / 2, a = 200, l = t / 2, u = r, v = l + 50 >= u ? a * 4 : a * l / (u - l);
124
- M({
123
+ const t = f.current.clientHeight, r = e.clientHeight, i = (t - r) / 2, a = 200, l = t / 2, u = r, g = l + 50 >= u ? a * 4 : a * l / (u - l);
124
+ R({
125
125
  sliderWrapper: {
126
- perspective: v
126
+ perspective: g
127
127
  },
128
128
  indicatorWrapper: {
129
129
  height: "auto",
@@ -134,37 +134,37 @@ function Ee(B, O) {
134
134
  }
135
135
  }
136
136
  } else
137
- M({
137
+ R({
138
138
  sliderWrapper: null,
139
139
  indicatorWrapper: null
140
140
  });
141
141
  }
142
- const n = G("carousel"), ge = C(
142
+ const n = $ == null ? void 0 : $("carousel"), ve = C(
143
143
  n,
144
- `${n}-indicator-position-${W}`,
144
+ `${n}-indicator-position-${S}`,
145
145
  {
146
- [`${n}-rtl`]: V
146
+ [`${n}-rtl`]: _
147
147
  },
148
148
  K
149
- ), ve = Object.assign(
149
+ ), ge = Object.assign(
150
150
  {},
151
151
  o && (typeof o != "object" || o.hoverToPause !== !1) ? {
152
- onMouseEnter: () => Z(!0),
153
- onMouseLeave: () => Z(!1)
152
+ onMouseEnter: () => q(!0),
153
+ onMouseLeave: () => q(!1)
154
154
  } : null
155
155
  );
156
- let [D, H] = [
156
+ let [H, L] = [
157
157
  () => c({
158
- targetIndex: R,
158
+ targetIndex: j,
159
159
  isNegative: !0,
160
160
  isManual: !0
161
161
  }),
162
162
  () => c({
163
- targetIndex: j,
163
+ targetIndex: D,
164
164
  isManual: !0
165
165
  })
166
166
  ];
167
- return V && ([D, H] = [H, D]), z(() => {
167
+ return _ && ([H, L] = [L, H]), O(() => {
168
168
  const e = be([p.current], fe);
169
169
  return () => {
170
170
  e();
@@ -173,56 +173,56 @@ function Ee(B, O) {
173
173
  "div",
174
174
  {
175
175
  ref: (e) => {
176
- O = e, p.current = O;
176
+ V = e, p.current = V;
177
177
  },
178
- className: ge,
178
+ className: ve,
179
179
  style: J,
180
180
  ...$e(se, ["autoplay", "autoPlaySpeed"]),
181
- ...ve,
181
+ ...ge,
182
182
  children: [
183
183
  /* @__PURE__ */ I(
184
184
  "div",
185
185
  {
186
186
  ref: f,
187
- style: X.sliderWrapper,
187
+ style: B.sliderWrapper,
188
188
  className: C(
189
- `${n}-${x}`,
190
- `${n}-${b}`,
189
+ `${n}-${N}`,
190
+ `${n}-${T}`,
191
191
  {
192
- [`${n}-negative`]: E === "negative"
192
+ [`${n}-negative`]: M === "negative"
193
193
  }
194
194
  ),
195
- children: Y.map((e, t) => {
196
- const r = t === s, i = t === R, a = t === j;
195
+ children: Z.map((e, t) => {
196
+ const r = t === s, i = t === j, a = t === D;
197
197
  if (!(!re || r || i || a))
198
198
  return null;
199
199
  const {
200
200
  style: u,
201
- className: v,
202
- onClick: L
201
+ className: g,
202
+ onClick: F
203
203
  } = e.props;
204
204
  return P.cloneElement(e, {
205
205
  "aria-hidden": !r,
206
206
  style: Object.assign(
207
207
  {
208
- transitionTimingFunction: _,
209
- transitionDuration: `${T}ms`,
210
- animationTimingFunction: _,
211
- animationDuration: `${T}ms`
208
+ transitionTimingFunction: k,
209
+ transitionDuration: `${W}ms`,
210
+ animationTimingFunction: k,
211
+ animationDuration: `${W}ms`
212
212
  },
213
213
  u
214
214
  ),
215
- className: C(v, {
215
+ className: C(g, {
216
216
  [`${n}-item-prev`]: i,
217
217
  [`${n}-item-next`]: a,
218
218
  [`${n}-item-current`]: r,
219
- [`${n}-item-slide-in`]: x === "slide" && E && A && r,
220
- [`${n}-item-slide-out`]: x === "slide" && E && A && t === le
219
+ [`${n}-item-slide-in`]: N === "slide" && M && E && r,
220
+ [`${n}-item-slide-out`]: N === "slide" && M && E && t === le
221
221
  }),
222
222
  onClick: (he) => {
223
- L == null || L(he), c({
223
+ F == null || F(he), c({
224
224
  targetIndex: t,
225
- isNegative: t === R,
225
+ isNegative: t === j,
226
226
  isManual: !0
227
227
  });
228
228
  }
@@ -230,22 +230,22 @@ function Ee(B, O) {
230
230
  })
231
231
  }
232
232
  ),
233
- k !== "never" && d > 1 && /* @__PURE__ */ I(
233
+ U !== "never" && d > 1 && /* @__PURE__ */ I(
234
234
  "div",
235
235
  {
236
- style: X.indicatorWrapper,
236
+ style: B.indicatorWrapper,
237
237
  className: C(
238
238
  `${n}-indicator-wrapper`,
239
- `${n}-indicator-wrapper-${W}`
239
+ `${n}-indicator-wrapper-${S}`
240
240
  ),
241
241
  children: /* @__PURE__ */ I(
242
242
  Se,
243
243
  {
244
244
  className: te,
245
- type: k,
245
+ type: U,
246
246
  count: d,
247
247
  activeIndex: s,
248
- position: W,
248
+ position: S,
249
249
  trigger: ee,
250
250
  onSelectIndex: (e) => c({
251
251
  targetIndex: e,
@@ -256,15 +256,15 @@ function Ee(B, O) {
256
256
  )
257
257
  }
258
258
  ),
259
- U !== "never" && d > 1 && /* @__PURE__ */ I(
259
+ Y !== "never" && d > 1 && /* @__PURE__ */ I(
260
260
  We,
261
261
  {
262
262
  className: ne,
263
- direction: b,
264
- showArrow: U,
263
+ direction: T,
264
+ showArrow: Y,
265
265
  icons: oe,
266
- prev: D,
267
- next: H
266
+ prev: H,
267
+ next: L
268
268
  }
269
269
  )
270
270
  ]
@@ -9,7 +9,7 @@ import "lodash/isFunction";
9
9
  import "lodash/isPlainObject";
10
10
  import "lodash/isString";
11
11
  import "react";
12
- import "../chunk/CQvM33Vg.js";
12
+ import "../chunk/C9oo3EJI.js";
13
13
  import "../chunk/CQ_WOOmf.js";
14
14
  import "../chunk/B4YRLi8r.js";
15
15
  import "../chunk/BFTV6myl.js";
@@ -19,7 +19,7 @@ import "../select-view/index.js";
19
19
  import "../trigger/index.js";
20
20
  import "@unicom-cloud/utils/class-name";
21
21
  import "@unicom-cloud/utils/constant/keyboardCode";
22
- import { X as k, a as n } from "../chunk/DLBfXSnU.js";
22
+ import { X as k, a as n } from "../chunk/BmulTYLW.js";
23
23
  export {
24
24
  k as DefaultFieldNames,
25
25
  n as default
package/cascader/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as o } from "../chunk/DLBfXSnU.js";
1
+ import { a as o } from "../chunk/BmulTYLW.js";
2
2
  export {
3
3
  o as default
4
4
  };
package/cascader/util.js CHANGED
@@ -1,4 +1,4 @@
1
- import { F as s, D as t, B as o, V as r, U as l, H as u, W as S, I as V, Q as m, J as f, K as g } from "../chunk/DLBfXSnU.js";
1
+ import { F as s, D as t, B as o, V as r, U as l, H as u, W as S, I as V, Q as m, J as f, K as g } from "../chunk/BmulTYLW.js";
2
2
  export {
3
3
  s as PANEL_MODE,
4
4
  t as SHOW_CHILD,