@unicom-cloud/ui 0.8.78 → 0.8.80

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 (345) hide show
  1. package/Affix.js +3 -3
  2. package/Alert.js +3 -3
  3. package/AutoComplete.js +5 -5
  4. package/BackTop.js +5 -5
  5. package/Badge.js +3 -3
  6. package/Breadcrumb.js +4 -4
  7. package/Button.js +2 -2
  8. package/Calendar.js +4 -4
  9. package/Card.js +2 -2
  10. package/Carousel.js +2 -2
  11. package/Cascader.js +1 -1
  12. package/Checkbox.js +1 -1
  13. package/Collapse.js +1 -1
  14. package/ColorPicker.js +3 -3
  15. package/Comment.js +2 -2
  16. package/ConfigProvider.js +1 -1
  17. package/Copy.js +4 -4
  18. package/DatePicker.js +1 -1
  19. package/Descriptions.js +2 -2
  20. package/Divider.js +2 -2
  21. package/Draggable.js +2 -2
  22. package/Dropdown.js +5 -5
  23. package/Empty.js +2 -2
  24. package/Icon.js +9 -5
  25. package/IconHover.js +2 -2
  26. package/Image.js +1 -1
  27. package/InputNumber.js +3 -3
  28. package/Layout.js +2 -2
  29. package/Link.js +3 -3
  30. package/List.js +4 -4
  31. package/Mentions.js +5 -5
  32. package/Menu.js +1 -1
  33. package/Message.js +3 -3
  34. package/Modal.js +1 -1
  35. package/Notice.js +9 -8
  36. package/Notification.js +3 -3
  37. package/OverflowEllipsis.js +2 -2
  38. package/PageHeader.js +3 -3
  39. package/Pagination.js +1 -1
  40. package/Popconfirm.js +3 -3
  41. package/Popover.js +3 -3
  42. package/Progress.js +2 -2
  43. package/Radio.js +1 -1
  44. package/Rate.js +3 -3
  45. package/ResizeBox.js +3 -3
  46. package/Result.js +2 -2
  47. package/Select.js +1 -1
  48. package/SelectView.js +5 -6
  49. package/Skeleton.js +2 -2
  50. package/Slider.js +4 -4
  51. package/Space.js +2 -2
  52. package/SpeechSynthesis.js +18 -20
  53. package/Spin.js +3 -3
  54. package/Statistic.js +3 -3
  55. package/Steps.js +2 -2
  56. package/Switch.js +7 -8
  57. package/Table.js +1 -1
  58. package/Tabs.js +1 -1
  59. package/Tag.js +3 -3
  60. package/Tooltip.js +3 -3
  61. package/Transfer.js +4 -4
  62. package/Tree.js +1 -1
  63. package/TreeSelect.js +1 -1
  64. package/Trigger.js +9 -10
  65. package/Typography.js +1 -1
  66. package/affix/index.js +17 -17
  67. package/alert/index.js +13 -13
  68. package/anchor/Anchor.js +40 -40
  69. package/anchor/Link.js +14 -14
  70. package/anchor/util.js +2 -2
  71. package/auto-complete/index.js +5 -5
  72. package/avatar/Avatar.js +17 -17
  73. package/avatar/Group.js +13 -13
  74. package/back-top/index.js +18 -18
  75. package/badge/Count.js +13 -13
  76. package/badge/index.js +21 -21
  77. package/breadcrumb/Item.js +25 -25
  78. package/breadcrumb/index.js +12 -12
  79. package/button/Group.js +6 -6
  80. package/button/index.js +30 -30
  81. package/calendar/Month.js +2 -2
  82. package/calendar/Year.js +1 -1
  83. package/calendar/index.js +4 -4
  84. package/card/Grid.js +13 -13
  85. package/card/Meta.js +13 -13
  86. package/card/index.js +29 -29
  87. package/carousel/Arrow.js +6 -6
  88. package/carousel/Indicator.js +27 -27
  89. package/carousel/index.js +24 -24
  90. package/cascader/Cascader.js +8 -8
  91. package/cascader/index.js +1 -1
  92. package/cascader/util.js +1 -1
  93. package/checkbox/Checkbox.js +4 -4
  94. package/checkbox/Group.js +4 -4
  95. package/checkbox/GroupBlock.js +3 -3
  96. package/checkbox/index.js +2 -2
  97. package/chunk/{ZrBrCzQX.js → B4WG1mhs.js} +6 -7
  98. package/chunk/{CjqvxJml.js → BG7YGUsx.js} +32 -32
  99. package/chunk/BYdIoY50.js +17 -0
  100. package/chunk/{Cc_-i0o_.js → BZ3igxQN.js} +6 -7
  101. package/chunk/{uEGHykhe.js → BZ9g7J4R.js} +1 -1
  102. package/chunk/BsUZRQDT.js +23 -0
  103. package/chunk/{CBgu99gQ.js → C5X4hOkx.js} +130 -130
  104. package/chunk/{B0n0iRhF.js → CCKr5jj1.js} +1 -1
  105. package/chunk/{CNcLypMY.js → CQvM33Vg.js} +190 -189
  106. package/chunk/CXPOj2uy.js +19 -0
  107. package/chunk/{DAAff-FT.js → ClM74To2.js} +9 -10
  108. package/chunk/{RS6OAxzv.js → D-ap9qEk.js} +2 -2
  109. package/chunk/{Cwm8LL5p.js → D73Vr7fa.js} +7197 -7202
  110. package/chunk/{tpmioyz1.js → DEiyXzBZ.js} +28 -28
  111. package/chunk/{CplLA01W.js → DEuVgCzp.js} +45 -52
  112. package/chunk/{BPQXH_5i.js → DYspELhF.js} +43 -43
  113. package/chunk/DxYoPlum.js +50 -0
  114. package/chunk/{BpYX5PN4.js → NPajzdOv.js} +2 -2
  115. package/chunk/{BBkdXHrJ.js → rT6qmv-Y.js} +1 -1
  116. package/chunk/{BhBEMwvI.js → uKZyjtff.js} +20 -21
  117. package/chunk/{BC5fEyWK.js → yLRv5RIK.js} +61 -61
  118. package/chunk/{C_4I3haT.js → yhU2zeeu.js} +96 -96
  119. package/collapse/Collapse.js +4 -4
  120. package/collapse/Item.js +4 -4
  121. package/collapse/index.js +1 -1
  122. package/color-picker/ControlBar.js +22 -22
  123. package/color-picker/InputAlpha.js +1 -1
  124. package/color-picker/InputHex.js +1 -1
  125. package/color-picker/InputRgb.js +1 -1
  126. package/color-picker/Palette.js +1 -1
  127. package/color-picker/Panel.js +4 -4
  128. package/color-picker/index.js +3 -3
  129. package/comment/index.js +18 -18
  130. package/config-provider/ConfigProvider.js +2 -2
  131. package/config-provider/context.js +2 -2
  132. package/config-provider/index.js +2 -2
  133. package/copy/index.js +23 -23
  134. package/date-picker/Picker.js +41 -41
  135. package/date-picker/PickerRange.js +3 -3
  136. package/date-picker/index.js +1 -1
  137. package/descriptions/index.js +28 -28
  138. package/divider/index.js +15 -15
  139. package/draggable/Item.js +11 -11
  140. package/draggable/index.js +15 -15
  141. package/drawer/Drawer.js +31 -31
  142. package/dropdown/Button.js +1 -1
  143. package/dropdown/index.js +22 -22
  144. package/empty/index.js +2 -2
  145. package/form/Control.js +46 -46
  146. package/form/Form.js +12 -12
  147. package/form/FormItem.js +12 -12
  148. package/form/FormLabel.js +11 -11
  149. package/form/context.js +7 -6
  150. package/form/promisify.js +9 -10
  151. package/form/store.js +1 -1
  152. package/form/util.js +1 -1
  153. package/grid/Col.js +38 -38
  154. package/grid/Row.js +15 -15
  155. package/grid/grid-item.js +17 -17
  156. package/grid/grid.js +28 -28
  157. package/hooks/index.js +6 -6
  158. package/hooks/useInView.js +1 -1
  159. package/hooks/useIntersectionObserver.js +1 -1
  160. package/hooks/useKeyboardEvent.js +1 -1
  161. package/hooks/useMergeValue.js +1 -1
  162. package/hooks/useOverrideRef.js +1 -1
  163. package/hooks/usePrefersColorSchemeDark.js +1 -1
  164. package/hooks/useVerificationCode.js +30 -30
  165. package/icon/index.js +20 -16
  166. package/icon-hover/index.js +2 -2
  167. package/image/Image.js +22 -22
  168. package/image/ImageFooter.js +2 -2
  169. package/image/ImagePreview.js +11 -11
  170. package/image/ImagePreviewArrow.js +16 -16
  171. package/image/ImagePreviewGroup.js +2 -2
  172. package/image/ImagePreviewToolbar.js +7 -7
  173. package/image/TriggerForToolbar.js +7 -7
  174. package/image/index.js +1 -1
  175. package/index.js +539 -572
  176. package/input/Group.js +10 -10
  177. package/input/Input.js +213 -214
  178. package/input/InputElement.js +10 -11
  179. package/input/Password.js +4 -4
  180. package/input/Search.js +3 -3
  181. package/input/Textarea.js +7 -8
  182. package/input/useComposition.js +6 -6
  183. package/input-number/index.js +3 -3
  184. package/input-tag/InputTag.js +110 -111
  185. package/layout/Content.js +4 -4
  186. package/layout/Footer.js +6 -6
  187. package/layout/Header.js +8 -8
  188. package/layout/Sider.js +29 -29
  189. package/layout/index.js +16 -16
  190. package/link/index.js +27 -27
  191. package/list/Item.js +5 -5
  192. package/list/Meta.js +11 -11
  193. package/list/index.js +4 -4
  194. package/locale/en-US.js +1 -1
  195. package/locale/tr-TR.js +1 -1
  196. package/mentions/index.js +5 -5
  197. package/menu/Item.js +11 -11
  198. package/menu/ItemGroup.js +8 -8
  199. package/menu/Menu.js +5 -5
  200. package/menu/OverflowWrap.js +2 -2
  201. package/menu/index.js +2 -2
  202. package/message/index.js +3 -3
  203. package/message/useMessage.js +1 -1
  204. package/modal/Confirm.js +2 -2
  205. package/modal/Modal.js +7 -7
  206. package/modal/index.js +1 -1
  207. package/notice/index.js +9 -8
  208. package/notification/index.js +3 -3
  209. package/notification/useNotification.js +1 -1
  210. package/overflow-ellipsis/OverflowItem.js +6 -6
  211. package/overflow-ellipsis/index.js +27 -27
  212. package/package.json +1 -1
  213. package/page-header/index.js +3 -3
  214. package/pagination/PageItem.js +7 -7
  215. package/pagination/PageJumper.js +1 -1
  216. package/pagination/PageOption.js +3 -3
  217. package/pagination/Pagination.js +4 -4
  218. package/pagination/index.js +1 -1
  219. package/picker/Input.js +7 -7
  220. package/picker/InputRange.js +77 -77
  221. package/popconfirm/index.js +11 -11
  222. package/popover/index.js +21 -21
  223. package/progress/CircleProgress.js +14 -14
  224. package/progress/LineProgess.js +14 -14
  225. package/progress/StepProgress.js +9 -9
  226. package/progress/index.js +26 -26
  227. package/radio/Group.js +4 -4
  228. package/radio/GroupBlock.js +3 -3
  229. package/radio/Radio.js +4 -4
  230. package/radio/index.js +2 -2
  231. package/rate/index.js +16 -16
  232. package/resize-box/ResizeTrigger.js +27 -28
  233. package/resize-box/Split.js +21 -21
  234. package/resize-box/SplitGroup.js +40 -40
  235. package/resize-box/index.js +23 -23
  236. package/result/index.js +29 -29
  237. package/select/Option.js +2 -2
  238. package/select/Select.js +11 -12
  239. package/select/index.js +2 -2
  240. package/select/util.js +5 -5
  241. package/select-view/Core.js +104 -106
  242. package/select-view/index.js +22 -23
  243. package/skeleton/Image.js +14 -14
  244. package/skeleton/Text.js +16 -16
  245. package/skeleton/index.js +11 -11
  246. package/slider/Button.js +4 -4
  247. package/slider/Dot.js +9 -9
  248. package/slider/Input.js +20 -20
  249. package/slider/Tick.js +14 -14
  250. package/slider/index.js +103 -103
  251. package/slider/util.js +3 -3
  252. package/space/index.js +14 -14
  253. package/speech-synthesis/index.js +26 -28
  254. package/spin/DotLoading.js +1 -1
  255. package/spin/index.js +16 -16
  256. package/statistic/Countdown.js +17 -17
  257. package/statistic/index.js +40 -40
  258. package/steps/Step.js +8 -8
  259. package/steps/index.js +17 -17
  260. package/switch/index.js +32 -33
  261. package/table/Table.js +5 -5
  262. package/table/index.js +1 -1
  263. package/tabs/Tab.js +4 -4
  264. package/tabs/TabContent.js +3 -3
  265. package/tabs/TabPane.js +11 -11
  266. package/tabs/index.js +2 -2
  267. package/tabs/util.js +1 -1
  268. package/tag/index.js +16 -16
  269. package/time-picker/Picker.js +50 -50
  270. package/time-picker/TimeColumn.js +8 -8
  271. package/time-picker/TimePicker.js +32 -32
  272. package/time-picker/util.js +5 -5
  273. package/timeline/Item.js +15 -15
  274. package/timeline/Timeline.js +24 -24
  275. package/tooltip/index.js +23 -23
  276. package/transfer/Item.js +4 -4
  277. package/transfer/List.js +4 -4
  278. package/transfer/index.js +4 -4
  279. package/tree/Animation.js +3 -3
  280. package/tree/Node.js +3 -3
  281. package/tree/NodeList.js +2 -2
  282. package/tree/Tree.js +4 -4
  283. package/tree/index.js +1 -1
  284. package/tree-select/List.js +2 -2
  285. package/tree-select/Select.js +8 -9
  286. package/tree-select/index.js +2 -2
  287. package/trigger/getPopupStyle.js +18 -19
  288. package/trigger/index.js +32 -33
  289. package/types/button/index.d.ts +2 -2
  290. package/types/color-picker/colors.d.ts +1 -1
  291. package/types/date-picker/util.d.ts +1 -1
  292. package/types/icon/index.d.ts +3 -1
  293. package/types/index.d.ts +1 -1
  294. package/types/menu/context.d.ts +1 -1
  295. package/typography/Base.js +33 -35
  296. package/typography/EditContent.js +16 -16
  297. package/typography/Ellipsis.js +25 -26
  298. package/typography/Operations.js +1 -1
  299. package/typography/Paragraph.js +8 -8
  300. package/typography/Typography.js +7 -7
  301. package/typography/index.js +1 -1
  302. package/upload/TriggerNode.js +8 -8
  303. package/upload/Upload.js +64 -65
  304. package/upload/Uploader.js +12 -12
  305. package/upload/request.js +13 -12
  306. package/upload/request_.js +5 -6
  307. package/utils/PqbCSSTransition.js +1 -1
  308. package/utils/caseName.js +4 -3
  309. package/utils/className.js +4 -3
  310. package/utils/constant.js +3 -3
  311. package/utils/contextHolder.js +1 -1
  312. package/utils/copy.js +5 -4
  313. package/utils/fileToURL.js +4 -3
  314. package/utils/index.js +262 -299
  315. package/utils/is.js +78 -115
  316. package/utils/keyboardCode.js +4 -26
  317. package/utils/math.js +10 -32
  318. package/utils/react19Adapter.js +1 -1
  319. package/utils/reactDOM.js +1 -1
  320. package/utils/saveAs.js +4 -3
  321. package/utils/screenfull.js +4 -3
  322. package/utils/scrollIntoView.js +1 -1
  323. package/utils/setDarkTheme.js +1 -1
  324. package/utils/tree.js +7 -83
  325. package/utils/tween.js +1 -1
  326. package/utils/validate.js +1 -1
  327. package/verification-code/VerificationCode.js +25 -25
  328. package/version/index.js +1 -1
  329. package/virtual-list/VirtualList.js +1 -1
  330. package/watermark/Watermark.js +8 -8
  331. package/chunk/ATwvJ8j2.js +0 -6
  332. package/chunk/BFmckYou.js +0 -25
  333. package/chunk/Bl7BnD1R.js +0 -119
  334. package/chunk/Bmvhjhzq.js +0 -24
  335. package/chunk/BrOW642m.js +0 -130
  336. package/chunk/C0pRaDCf.js +0 -96
  337. package/chunk/CBzE-PUr.js +0 -23
  338. package/chunk/CUFsOxJ2.js +0 -10
  339. package/chunk/Ce1j9KTi.js +0 -6
  340. package/chunk/D0Dlbc2g.js +0 -41
  341. package/chunk/DRTWRsgI.js +0 -34
  342. package/chunk/DeV0v__J.js +0 -20
  343. package/chunk/DohlrJ4S.js +0 -50
  344. package/chunk/XTEsYGuF.js +0 -17
  345. package/chunk/yl4BU7Sd.js +0 -1068
package/card/index.js CHANGED
@@ -1,20 +1,20 @@
1
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
2
- import l, { useContext as L } from "react";
3
- import { a as k } from "../chunk/CNcLypMY.js";
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";
4
4
  import { u as q } from "../chunk/BFTV6myl.js";
5
5
  import A from "../spin/index.js";
6
- import { p as C } from "../chunk/CUFsOxJ2.js";
7
- import $ from "./Grid.js";
6
+ import $ from "@unicom-cloud/utils/class-name";
7
+ import C from "./Grid.js";
8
8
  import u from "./Meta.js";
9
9
  const B = {
10
10
  size: "default",
11
11
  bordered: !0
12
12
  };
13
- function D(v, N) {
14
- const { getPrefixCls: y, loadingElement: x, componentConfig: o, rtl: g } = L(k), b = q(
15
- v,
13
+ function D(N, v) {
14
+ const { getPrefixCls: y, loadingElement: x, componentConfig: s, rtl: g } = L(k), b = q(
15
+ N,
16
16
  B,
17
- o == null ? void 0 : o.Card
17
+ s == null ? void 0 : s.Card
18
18
  ), {
19
19
  className: M,
20
20
  children: z,
@@ -22,14 +22,14 @@ function D(v, N) {
22
22
  loading: c,
23
23
  hoverable: R,
24
24
  size: S,
25
- title: a,
26
- extra: i,
25
+ title: t,
26
+ extra: o,
27
27
  cover: m,
28
- actions: s,
28
+ actions: i,
29
29
  headerStyle: j,
30
30
  bodyStyle: w,
31
31
  ...E
32
- } = b, e = y("card"), p = s && s.length ? /* @__PURE__ */ t("div", { className: `${e}-actions`, children: /* @__PURE__ */ t("div", { className: `${e}-actions-right`, children: s.map((r, F) => /* @__PURE__ */ t(
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(
33
33
  "span",
34
34
  {
35
35
  className: `${e}-actions-item`,
@@ -38,24 +38,24 @@ function D(v, N) {
38
38
  `action-${F}`
39
39
  )) }) }) : null;
40
40
  let f = !1, h = !1;
41
- const G = l.Children.map(
41
+ const G = n.Children.map(
42
42
  z,
43
43
  (r) => {
44
44
  if (r && r.type) {
45
- if (r.type === $)
45
+ if (r.type === C)
46
46
  f = !0;
47
47
  else if (r.type === u)
48
- return h = !0, l.cloneElement(r, { actionList: p });
48
+ return h = !0, n.cloneElement(r, { actionList: p });
49
49
  }
50
50
  return r;
51
51
  }
52
52
  );
53
- return /* @__PURE__ */ n(
53
+ return /* @__PURE__ */ l(
54
54
  "div",
55
55
  {
56
56
  ...E,
57
- ref: N,
58
- className: C(
57
+ ref: v,
58
+ className: $(
59
59
  e,
60
60
  `${e}-size-${S}`,
61
61
  {
@@ -68,31 +68,31 @@ function D(v, N) {
68
68
  M
69
69
  ),
70
70
  children: [
71
- a || i ? /* @__PURE__ */ n(
71
+ t || o ? /* @__PURE__ */ l(
72
72
  "div",
73
73
  {
74
- className: C(`${e}-header`, {
75
- [`${e}-header-no-title`]: !a
74
+ className: $(`${e}-header`, {
75
+ [`${e}-header-no-title`]: !t
76
76
  }),
77
77
  style: j,
78
78
  children: [
79
- a && /* @__PURE__ */ t("div", { className: `${e}-header-title`, children: a }),
80
- i && /* @__PURE__ */ t("div", { className: `${e}-header-extra`, children: i })
79
+ t && /* @__PURE__ */ a("div", { className: `${e}-header-title`, children: t }),
80
+ o && /* @__PURE__ */ a("div", { className: `${e}-header-extra`, children: o })
81
81
  ]
82
82
  }
83
83
  ) : null,
84
- m ? /* @__PURE__ */ t("div", { className: `${e}-cover`, children: m }) : null,
85
- /* @__PURE__ */ n("div", { className: `${e}-body`, style: w, children: [
86
- c ? x || /* @__PURE__ */ t(A, {}) : G,
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
87
  h ? null : p
88
88
  ] })
89
89
  ]
90
90
  }
91
91
  );
92
92
  }
93
- const H = l.forwardRef(D), d = H;
93
+ const H = n.forwardRef(D), d = H;
94
94
  d.Meta = u;
95
- d.Grid = $;
95
+ d.Grid = C;
96
96
  d.displayName = "Card";
97
97
  export {
98
98
  d as default
package/carousel/Arrow.js CHANGED
@@ -4,10 +4,10 @@ import x from "@unicom-cloud/icons/IconUiLeft";
4
4
  import u from "@unicom-cloud/icons/IconUiRight";
5
5
  import C from "@unicom-cloud/icons/IconUiUp";
6
6
  import b, { useContext as y } from "react";
7
- import { a as I } from "../chunk/CNcLypMY.js";
8
- import { u as P } from "../chunk/XTEsYGuF.js";
9
- import { p as $ } from "../chunk/CUFsOxJ2.js";
10
- function g(i, c) {
7
+ import { a as N } from "../chunk/CQvM33Vg.js";
8
+ import { u as $ } from "../chunk/BYdIoY50.js";
9
+ import I from "@unicom-cloud/utils/class-name";
10
+ function P(i, c) {
11
11
  const {
12
12
  className: l,
13
13
  direction: t = "horizontal",
@@ -15,7 +15,7 @@ function g(i, c) {
15
15
  prev: n,
16
16
  next: s,
17
17
  icons: o
18
- } = i, a = P(), { getPrefixCls: p } = y(I), e = p("carousel"), f = $(
18
+ } = i, a = $(), { getPrefixCls: p } = y(N), e = p("carousel"), f = I(
19
19
  `${e}-arrow`,
20
20
  {
21
21
  [`${e}-arrow-hover`]: m === "hover"
@@ -48,7 +48,7 @@ function g(i, c) {
48
48
  ] });
49
49
  }
50
50
  const K = b.forwardRef(
51
- g
51
+ P
52
52
  );
53
53
  export {
54
54
  K as default
@@ -1,66 +1,66 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import h, { useContext as I } from "react";
3
- import { a as w } from "../chunk/CNcLypMY.js";
4
- import { p as c } from "../chunk/CUFsOxJ2.js";
5
- function N(f, p) {
6
- const { getPrefixCls: m } = I(w), {
1
+ import { jsx as r } from "react/jsx-runtime";
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), {
7
7
  className: u,
8
- type: n = "line",
9
- count: s = 2,
10
- activeIndex: i = 0,
8
+ type: i = "line",
9
+ count: a = 2,
10
+ activeIndex: s = 0,
11
11
  position: x = "bottom",
12
12
  trigger: g = "click",
13
13
  onSelectIndex: l
14
- } = f, e = m("carousel-indicator"), r = [];
15
- if (n === "slider") {
16
- const t = 100 / s;
17
- r.push(
18
- /* @__PURE__ */ a(
14
+ } = f, e = p("carousel-indicator"), n = [];
15
+ if (i === "slider") {
16
+ const t = 100 / a;
17
+ n.push(
18
+ /* @__PURE__ */ r(
19
19
  "span",
20
20
  {
21
- style: { width: `${t}%`, left: `${i * t}%` },
21
+ style: { width: `${t}%`, left: `${s * t}%` },
22
22
  className: c(`${e}-item`, `${e}-item-active`)
23
23
  },
24
24
  0
25
25
  )
26
26
  );
27
27
  } else
28
- for (let t = 0; t < s; t++)
29
- r.push(
30
- /* @__PURE__ */ a(
28
+ for (let t = 0; t < a; t++)
29
+ n.push(
30
+ /* @__PURE__ */ r(
31
31
  "span",
32
32
  {
33
33
  "data-index": t,
34
34
  className: c(`${e}-item`, {
35
- [`${e}-item-active`]: t === i
35
+ [`${e}-item-active`]: t === s
36
36
  })
37
37
  },
38
38
  t
39
39
  )
40
40
  );
41
41
  const C = {
42
- ref: p,
42
+ ref: m,
43
43
  className: c(
44
44
  e,
45
- `${e}-${n}`,
45
+ `${e}-${i}`,
46
46
  `${e}-${x}`,
47
47
  u
48
48
  ),
49
49
  [g === "click" ? "onClick" : "onMouseMove"]: (t) => {
50
- if (t.preventDefault(), n === "slider") {
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) / $ * s);
53
- d !== i && l(d);
52
+ const { x: o, width: $ } = t.currentTarget.getBoundingClientRect(), d = ~~((t.nativeEvent.clientX - o) / $ * a);
53
+ d !== s && l(d);
54
54
  }
55
55
  } else {
56
56
  const o = t.target.getAttribute("data-index");
57
- o && +o !== i && l(+o);
57
+ o && +o !== s && l(+o);
58
58
  }
59
59
  }
60
60
  };
61
- return /* @__PURE__ */ a("div", { ...C, children: r });
61
+ return /* @__PURE__ */ r("div", { ...C, children: n });
62
62
  }
63
- const y = h.forwardRef(N);
63
+ const y = N.forwardRef(w);
64
64
  export {
65
65
  y as default
66
66
  };
package/carousel/index.js CHANGED
@@ -1,9 +1,9 @@
1
- import { jsxs as ye, jsx as N } from "react/jsx-runtime";
2
- import P, { useContext as xe, useRef as F, useState as p, useEffect as z, useImperativeHandle as Ie } from "react";
3
- import { a as Ne } from "../chunk/CNcLypMY.js";
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";
4
4
  import { u as Ce } from "../chunk/C4OrxKE6.js";
5
5
  import { u as Pe } from "../chunk/BFTV6myl.js";
6
- import { p as C } from "../chunk/CUFsOxJ2.js";
6
+ import C from "@unicom-cloud/utils/class-name";
7
7
  import { o as $e } from "../chunk/BKKEev13.js";
8
8
  import { r as be } from "../chunk/CIRG541s.js";
9
9
  import Te from "../utils/warning.js";
@@ -20,7 +20,7 @@ const we = 3e3, Ae = {
20
20
  timingFunc: "cubic-bezier(0.34, 0.69, 0.1, 1)"
21
21
  };
22
22
  function Ee(B, O) {
23
- const { getPrefixCls: G, componentConfig: $, rtl: V } = xe(Ne), h = Pe(
23
+ const { getPrefixCls: G, componentConfig: $, rtl: V } = xe(Ie), h = Pe(
24
24
  B,
25
25
  Ae,
26
26
  $ == null ? void 0 : $.Carousel
@@ -54,30 +54,30 @@ function Ee(B, O) {
54
54
  ));
55
55
  const Y = P.Children.toArray(Q).filter(
56
56
  (e) => P.isValidElement(e)
57
- ), d = Y.length, m = F(null), f = F(null), I = F(null), [w, ae] = p(
57
+ ), d = Y.length, p = F(null), f = F(null), N = F(null), [w, ae] = m(
58
58
  typeof y == "number" ? g(y) : 0
59
- ), [le, ce] = p(w), [ue, Z] = p(!1), [A, q] = p(!1), [E, de] = p(
59
+ ), [le, ce] = m(w), [ue, Z] = m(!1), [A, q] = m(!1), [E, de] = m(
60
60
  null
61
- ), [X, M] = p({
61
+ ), [X, M] = 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), pe = typeof o == "object" && o.interval ? o.interval : we;
65
- z(() => () => I.current && clearTimeout(I.current), []), z(() => {
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(() => {
66
66
  c({
67
67
  targetIndex: s
68
68
  });
69
69
  }, [s]);
70
- const me = Ce(
70
+ const pe = Ce(
71
71
  () => {
72
72
  c({
73
73
  targetIndex: j
74
74
  });
75
75
  },
76
- o && !ue && d > 1 ? pe : null
76
+ o && !ue && d > 1 ? me : null
77
77
  );
78
- Ie(ie, () => ({
79
- dom: m.current,
80
- getRootDOMNode: () => m.current,
78
+ Ne(ie, () => ({
79
+ dom: p.current,
80
+ getRootDOMNode: () => p.current,
81
81
  goto: ({ index: e, isNegative: t, isManual: r, resetAutoPlayInterval: i }) => {
82
82
  c({
83
83
  targetIndex: g(e),
@@ -97,8 +97,8 @@ 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 && me(), I.current = setTimeout(() => {
101
- q(!1), I.current = null;
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
102
  }, T));
103
103
  }
104
104
  function fe() {
@@ -165,22 +165,22 @@ function Ee(B, O) {
165
165
  })
166
166
  ];
167
167
  return V && ([D, H] = [H, D]), z(() => {
168
- const e = be([m.current], fe);
168
+ const e = be([p.current], fe);
169
169
  return () => {
170
170
  e();
171
171
  };
172
- }, [m.current]), /* @__PURE__ */ ye(
172
+ }, [p.current]), /* @__PURE__ */ ye(
173
173
  "div",
174
174
  {
175
175
  ref: (e) => {
176
- O = e, m.current = O;
176
+ O = e, p.current = O;
177
177
  },
178
178
  className: ge,
179
179
  style: J,
180
180
  ...$e(se, ["autoplay", "autoPlaySpeed"]),
181
181
  ...ve,
182
182
  children: [
183
- /* @__PURE__ */ N(
183
+ /* @__PURE__ */ I(
184
184
  "div",
185
185
  {
186
186
  ref: f,
@@ -230,7 +230,7 @@ function Ee(B, O) {
230
230
  })
231
231
  }
232
232
  ),
233
- k !== "never" && d > 1 && /* @__PURE__ */ N(
233
+ k !== "never" && d > 1 && /* @__PURE__ */ I(
234
234
  "div",
235
235
  {
236
236
  style: X.indicatorWrapper,
@@ -238,7 +238,7 @@ function Ee(B, O) {
238
238
  `${n}-indicator-wrapper`,
239
239
  `${n}-indicator-wrapper-${W}`
240
240
  ),
241
- children: /* @__PURE__ */ N(
241
+ children: /* @__PURE__ */ I(
242
242
  Se,
243
243
  {
244
244
  className: te,
@@ -256,7 +256,7 @@ function Ee(B, O) {
256
256
  )
257
257
  }
258
258
  ),
259
- U !== "never" && d > 1 && /* @__PURE__ */ N(
259
+ U !== "never" && d > 1 && /* @__PURE__ */ I(
260
260
  We,
261
261
  {
262
262
  className: ne,
@@ -3,24 +3,24 @@ import "@unicom-cloud/icons/IconUiCheck";
3
3
  import "@unicom-cloud/icons/IconUiLeft";
4
4
  import "@unicom-cloud/icons/IconUiLoading";
5
5
  import "@unicom-cloud/icons/IconUiRight";
6
- import "../chunk/C0pRaDCf.js";
6
+ import "@unicom-cloud/utils/is";
7
7
  import "lodash/isArray";
8
8
  import "lodash/isFunction";
9
9
  import "lodash/isPlainObject";
10
10
  import "lodash/isString";
11
11
  import "react";
12
- import "../chunk/CNcLypMY.js";
12
+ import "../chunk/CQvM33Vg.js";
13
13
  import "../chunk/CQ_WOOmf.js";
14
14
  import "../chunk/B4YRLi8r.js";
15
15
  import "../chunk/BFTV6myl.js";
16
- import "../chunk/DeV0v__J.js";
16
+ import "../chunk/CXPOj2uy.js";
17
17
  import "../chunk/a3hR6zLw.js";
18
18
  import "../select-view/index.js";
19
19
  import "../trigger/index.js";
20
- import "../chunk/CUFsOxJ2.js";
21
- import "../chunk/BrOW642m.js";
22
- import { a1 as n, a as q } from "../chunk/Cwm8LL5p.js";
20
+ import "@unicom-cloud/utils/class-name";
21
+ import "@unicom-cloud/utils/constant/keyboardCode";
22
+ import { X as k, a as n } from "../chunk/D73Vr7fa.js";
23
23
  export {
24
- n as DefaultFieldNames,
25
- q as default
24
+ k as DefaultFieldNames,
25
+ n as default
26
26
  };
package/cascader/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as o } from "../chunk/Cwm8LL5p.js";
1
+ import { a as o } from "../chunk/D73Vr7fa.js";
2
2
  export {
3
3
  o as default
4
4
  };
package/cascader/util.js CHANGED
@@ -1,4 +1,4 @@
1
- import { U as s, Q as t, K as o, V as r, $ as l, W as u, a0 as S, X as V, _ as m, Y as f, Z as g } from "../chunk/Cwm8LL5p.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/D73Vr7fa.js";
2
2
  export {
3
3
  s as PANEL_MODE,
4
4
  t as SHOW_CHILD,
@@ -4,12 +4,12 @@ import "@unicom-cloud/icons/IconUiMinus";
4
4
  import "lodash/isFunction";
5
5
  import "lodash/isNil";
6
6
  import "react";
7
- import "../chunk/CNcLypMY.js";
7
+ import "../chunk/CQvM33Vg.js";
8
8
  import "../chunk/BFTV6myl.js";
9
- import "../chunk/DeV0v__J.js";
10
- import "../chunk/CUFsOxJ2.js";
9
+ import "../chunk/CXPOj2uy.js";
10
+ import "@unicom-cloud/utils/class-name";
11
11
  import "../chunk/BKKEev13.js";
12
- import { G as f, c as k, b as h } from "../chunk/Cwm8LL5p.js";
12
+ import { G as f, c as k, b as h } from "../chunk/D73Vr7fa.js";
13
13
  import { default as C } from "./useCheckbox.js";
14
14
  export {
15
15
  f as CheckboxGroup,
package/checkbox/Group.js CHANGED
@@ -2,11 +2,11 @@ import "react/jsx-runtime";
2
2
  import "lodash/isArray";
3
3
  import "lodash/isPlainObject";
4
4
  import "react";
5
- import "../chunk/CNcLypMY.js";
6
- import "../chunk/DeV0v__J.js";
7
- import "../chunk/CUFsOxJ2.js";
5
+ import "../chunk/CQvM33Vg.js";
6
+ import "../chunk/CXPOj2uy.js";
7
+ import "@unicom-cloud/utils/class-name";
8
8
  import "../utils/constant.js";
9
- import { y as s, z as u, G } from "../chunk/Cwm8LL5p.js";
9
+ import { y as s, z as u, G } from "../chunk/D73Vr7fa.js";
10
10
  export {
11
11
  s as CheckboxGroupContext,
12
12
  u as ClearCheckboxGroupContext,
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import "../chunk/CNcLypMY.js";
4
- import { c as a } from "../chunk/Cwm8LL5p.js";
5
- import "../chunk/CUFsOxJ2.js";
3
+ import "../chunk/CQvM33Vg.js";
4
+ import { c as a } from "../chunk/D73Vr7fa.js";
5
+ import "@unicom-cloud/utils/class-name";
6
6
  export {
7
7
  a as default
8
8
  };
package/checkbox/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { b as e } from "../chunk/Cwm8LL5p.js";
2
- import { G as p, c as t } from "../chunk/Cwm8LL5p.js";
1
+ import { b as e } from "../chunk/D73Vr7fa.js";
2
+ import { G as p, c as t } from "../chunk/D73Vr7fa.js";
3
3
  import { default as c } from "./useCheckbox.js";
4
4
  export {
5
5
  p as CheckboxGroup,
@@ -1,11 +1,10 @@
1
- import { useRef as i } from "react";
2
- import { isServerRendering as c } from "../utils/dom.js";
3
- import "./DAAff-FT.js";
4
- import "./C0pRaDCf.js";
5
- import u from "lodash/isUndefined.js";
6
- const v = !c && !u(window == null ? void 0 : window.IntersectionObserver);
1
+ import { useRef as c } from "react";
2
+ import { isServerRendering as i } from "../utils/dom.js";
3
+ import "./ClM74To2.js";
4
+ import { isUndefined as u } from "@unicom-cloud/utils/is";
5
+ const v = !i && !u(window == null ? void 0 : window.IntersectionObserver);
7
6
  function O(t, s = {}) {
8
- const r = i(), e = () => {
7
+ const r = c(), e = () => {
9
8
  r.current && (r.current.disconnect(), r.current = null);
10
9
  }, o = (n) => {
11
10
  n && (e(), v && (r.current = new IntersectionObserver(