@unicom-cloud/ui 0.8.77 → 0.8.79

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 (346) 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 +13 -13
  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/{Cwm8LL5p.js → B4mZh-RK.js} +7245 -7249
  99. package/chunk/{CjqvxJml.js → BG7YGUsx.js} +32 -32
  100. package/chunk/{BhBEMwvI.js → BNevupAU.js} +18 -20
  101. package/chunk/BYdIoY50.js +17 -0
  102. package/chunk/{Cc_-i0o_.js → BZ3igxQN.js} +6 -7
  103. package/chunk/{uEGHykhe.js → BZ9g7J4R.js} +1 -1
  104. package/chunk/BsUZRQDT.js +23 -0
  105. package/chunk/{CBgu99gQ.js → C5X4hOkx.js} +130 -130
  106. package/chunk/{B0n0iRhF.js → CCKr5jj1.js} +1 -1
  107. package/chunk/{CNcLypMY.js → CQvM33Vg.js} +190 -189
  108. package/chunk/CXPOj2uy.js +19 -0
  109. package/chunk/{DAAff-FT.js → ClM74To2.js} +9 -10
  110. package/chunk/{RS6OAxzv.js → D-ap9qEk.js} +2 -2
  111. package/chunk/{tpmioyz1.js → DEiyXzBZ.js} +28 -28
  112. package/chunk/{CplLA01W.js → DEuVgCzp.js} +45 -52
  113. package/chunk/{BPQXH_5i.js → DYspELhF.js} +43 -43
  114. package/chunk/DxYoPlum.js +50 -0
  115. package/chunk/{BpYX5PN4.js → NPajzdOv.js} +2 -2
  116. package/chunk/{BBkdXHrJ.js → rT6qmv-Y.js} +1 -1
  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 +547 -580
  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 +32 -32
  258. package/steps/Step.js +8 -8
  259. package/steps/index.js +17 -17
  260. package/style.css +1 -1
  261. package/switch/index.js +32 -33
  262. package/table/Table.js +5 -5
  263. package/table/index.js +1 -1
  264. package/tabs/Tab.js +4 -4
  265. package/tabs/TabContent.js +3 -3
  266. package/tabs/TabPane.js +11 -11
  267. package/tabs/index.js +2 -2
  268. package/tabs/util.js +1 -1
  269. package/tag/index.js +16 -16
  270. package/time-picker/Picker.js +50 -50
  271. package/time-picker/TimeColumn.js +8 -8
  272. package/time-picker/TimePicker.js +32 -32
  273. package/time-picker/util.js +1 -1
  274. package/timeline/Item.js +15 -15
  275. package/timeline/Timeline.js +24 -24
  276. package/tooltip/index.js +23 -23
  277. package/transfer/Item.js +4 -4
  278. package/transfer/List.js +4 -4
  279. package/transfer/index.js +4 -4
  280. package/tree/Animation.js +3 -3
  281. package/tree/Node.js +3 -3
  282. package/tree/NodeList.js +2 -2
  283. package/tree/Tree.js +4 -4
  284. package/tree/index.js +1 -1
  285. package/tree-select/List.js +2 -2
  286. package/tree-select/Select.js +8 -9
  287. package/tree-select/index.js +2 -2
  288. package/trigger/getPopupStyle.js +18 -19
  289. package/trigger/index.js +32 -33
  290. package/types/button/index.d.ts +2 -2
  291. package/types/color-picker/colors.d.ts +1 -1
  292. package/types/date-picker/util.d.ts +1 -1
  293. package/types/icon/index.d.ts +3 -1
  294. package/types/index.d.ts +1 -1
  295. package/types/menu/context.d.ts +1 -1
  296. package/typography/Base.js +33 -35
  297. package/typography/EditContent.js +16 -16
  298. package/typography/Ellipsis.js +24 -26
  299. package/typography/Operations.js +1 -1
  300. package/typography/Paragraph.js +8 -8
  301. package/typography/Typography.js +7 -7
  302. package/typography/index.js +1 -1
  303. package/upload/TriggerNode.js +8 -8
  304. package/upload/Upload.js +64 -65
  305. package/upload/Uploader.js +12 -12
  306. package/upload/request.js +13 -12
  307. package/upload/request_.js +5 -6
  308. package/utils/PqbCSSTransition.js +1 -1
  309. package/utils/caseName.js +4 -3
  310. package/utils/className.js +4 -3
  311. package/utils/constant.js +3 -3
  312. package/utils/contextHolder.js +1 -1
  313. package/utils/copy.js +5 -4
  314. package/utils/fileToURL.js +4 -3
  315. package/utils/index.js +261 -298
  316. package/utils/is.js +78 -115
  317. package/utils/keyboardCode.js +4 -26
  318. package/utils/math.js +10 -32
  319. package/utils/react19Adapter.js +1 -1
  320. package/utils/reactDOM.js +1 -1
  321. package/utils/saveAs.js +4 -3
  322. package/utils/screenfull.js +4 -3
  323. package/utils/scrollIntoView.js +1 -1
  324. package/utils/setDarkTheme.js +1 -1
  325. package/utils/tree.js +7 -83
  326. package/utils/tween.js +1 -1
  327. package/utils/validate.js +1 -1
  328. package/verification-code/VerificationCode.js +25 -25
  329. package/version/index.js +1 -1
  330. package/virtual-list/VirtualList.js +1 -1
  331. package/watermark/Watermark.js +8 -8
  332. package/chunk/ATwvJ8j2.js +0 -6
  333. package/chunk/BFmckYou.js +0 -25
  334. package/chunk/Bl7BnD1R.js +0 -119
  335. package/chunk/Bmvhjhzq.js +0 -24
  336. package/chunk/BrOW642m.js +0 -130
  337. package/chunk/C0pRaDCf.js +0 -96
  338. package/chunk/CBzE-PUr.js +0 -23
  339. package/chunk/CUFsOxJ2.js +0 -10
  340. package/chunk/Ce1j9KTi.js +0 -6
  341. package/chunk/D0Dlbc2g.js +0 -41
  342. package/chunk/DRTWRsgI.js +0 -34
  343. package/chunk/DeV0v__J.js +0 -20
  344. package/chunk/DohlrJ4S.js +0 -50
  345. package/chunk/XTEsYGuF.js +0 -17
  346. package/chunk/yl4BU7Sd.js +0 -1068
@@ -1,20 +1,19 @@
1
- import { jsx as r, jsxs as O } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as O } from "react/jsx-runtime";
2
2
  import F from "@unicom-cloud/icons/IconUiCaretDown";
3
- import N from "@unicom-cloud/icons/IconUiCaretLeft";
3
+ import $ from "@unicom-cloud/icons/IconUiCaretLeft";
4
4
  import h from "@unicom-cloud/icons/IconUiCaretRight";
5
5
  import H from "@unicom-cloud/icons/IconUiCaretUp";
6
6
  import L from "@unicom-cloud/icons/IconUiDragDot";
7
7
  import M from "@unicom-cloud/icons/IconUiDragDotVertical";
8
8
  import g from "lodash/isFunction";
9
9
  import { useContext as V, useRef as q, useEffect as A } from "react";
10
- import { a as B } from "../chunk/CNcLypMY.js";
11
- import { p as o } from "../chunk/CUFsOxJ2.js";
12
- import "../chunk/DAAff-FT.js";
10
+ import { a as B } from "../chunk/CQvM33Vg.js";
11
+ import o from "@unicom-cloud/utils/class-name";
12
+ import "../chunk/ClM74To2.js";
13
13
  import { o as G } from "../chunk/BKKEev13.js";
14
14
  import { r as J } from "../chunk/CIRG541s.js";
15
- import "../chunk/C0pRaDCf.js";
16
- import z from "lodash/isPlainObject.js";
17
- function ar(I) {
15
+ import { isPlainObject as z } from "@unicom-cloud/utils/is";
16
+ function ce(I) {
18
17
  const {
19
18
  className: D,
20
19
  direction: U,
@@ -26,54 +25,54 @@ function ar(I) {
26
25
  resizable: l = !0,
27
26
  renderChildren: c,
28
27
  ...T
29
- } = I, { getPrefixCls: k, rtl: C } = V(B), e = k("resizebox-trigger"), t = U === "horizontal", y = C && !t, x = o(
30
- e,
31
- `${e}-${t ? "horizontal" : "vertical"}`,
32
- { [`${e}-not-resizable`]: !l },
33
- { [`${e}-rtl`]: C },
28
+ } = I, { getPrefixCls: k, rtl: C } = V(B), r = k("resizebox-trigger"), t = U === "horizontal", y = C && !t, x = o(
29
+ r,
30
+ `${r}-${t ? "horizontal" : "vertical"}`,
31
+ { [`${r}-not-resizable`]: !l },
32
+ { [`${r}-rtl`]: C },
34
33
  D
35
- ), p = q(), v = y ? [/* @__PURE__ */ r(h, {}, "prev"), /* @__PURE__ */ r(N, {}, "next")] : [/* @__PURE__ */ r(N, {}, "prev"), /* @__PURE__ */ r(h, {}, "next")], i = z(n.prev) ? {
34
+ ), m = q(), v = y ? [/* @__PURE__ */ e(h, {}, "prev"), /* @__PURE__ */ e($, {}, "next")] : [/* @__PURE__ */ e($, {}, "prev"), /* @__PURE__ */ e(h, {}, "next")], i = z(n.prev) ? {
36
35
  ...n.prev,
37
- icon: n.prev.icon || (t ? /* @__PURE__ */ r(H, {}) : v[0])
36
+ icon: n.prev.icon || (t ? /* @__PURE__ */ e(H, {}) : v[0])
38
37
  } : {}, s = z(n.next) ? {
39
38
  ...n.next,
40
- icon: n.next.icon || (t ? /* @__PURE__ */ r(F, {}) : v[1])
41
- } : {}, j = () => i.icon && !i.collapsed || s.collapsed ? /* @__PURE__ */ r(
39
+ icon: n.next.icon || (t ? /* @__PURE__ */ e(F, {}) : v[1])
40
+ } : {}, j = () => i.icon && !i.collapsed || s.collapsed ? /* @__PURE__ */ e(
42
41
  "span",
43
42
  {
44
- className: o(`${e}-icon`, o(`${e}-prev`)),
43
+ className: o(`${r}-icon`, o(`${r}-prev`)),
45
44
  onClick: i.onClick,
46
45
  children: i.icon
47
46
  }
48
- ) : /* @__PURE__ */ r("span", { className: o(`${e}-icon-empty`) }), w = () => s.icon && !s.collapsed || i.collapsed ? /* @__PURE__ */ r(
47
+ ) : /* @__PURE__ */ e("span", { className: o(`${r}-icon-empty`) }), w = () => s.icon && !s.collapsed || i.collapsed ? /* @__PURE__ */ e(
49
48
  "span",
50
49
  {
51
- className: o(`${e}-icon`, o(`${e}-next`)),
50
+ className: o(`${r}-icon`, o(`${r}-next`)),
52
51
  onClick: s.onClick,
53
52
  children: s.icon
54
53
  }
55
- ) : /* @__PURE__ */ r("span", { className: o(`${e}-icon-empty`) }), P = () => l ? /* @__PURE__ */ r("span", { className: `${e}-icon`, children: b || (t ? /* @__PURE__ */ r(L, {}) : /* @__PURE__ */ r(M, {})) }) : /* @__PURE__ */ r("span", { className: o(`${e}-icon-empty`) }), m = j(), f = P(), d = w(), $ = () => /* @__PURE__ */ O("div", { className: `${e}-icon-wrapper`, children: [
56
- m,
54
+ ) : /* @__PURE__ */ e("span", { className: o(`${r}-icon-empty`) }), P = () => l ? /* @__PURE__ */ e("span", { className: `${r}-icon`, children: b || (t ? /* @__PURE__ */ e(L, {}) : /* @__PURE__ */ e(M, {})) }) : /* @__PURE__ */ e("span", { className: o(`${r}-icon-empty`) }), p = j(), f = P(), d = w(), N = () => /* @__PURE__ */ O("div", { className: `${r}-icon-wrapper`, children: [
55
+ p,
57
56
  f,
58
57
  d
59
58
  ] });
60
59
  return l ? (A(() => {
61
60
  if (!g(a)) return;
62
- const E = J([p.current], a);
61
+ const E = J([m.current], a);
63
62
  return () => {
64
63
  E();
65
64
  };
66
- }, [p.current, a]), /* @__PURE__ */ r(
65
+ }, [m.current, a]), /* @__PURE__ */ e(
67
66
  "div",
68
67
  {
69
- ref: p,
68
+ ref: m,
70
69
  ...G(T, ["style"]),
71
70
  className: x,
72
71
  onMouseDown: R,
73
- children: g(c) ? c(m, f, d) : u || $()
72
+ children: g(c) ? c(p, f, d) : u || N()
74
73
  }
75
- )) : /* @__PURE__ */ r("div", { className: x, children: g(c) ? c(m, f, d) : u || $() });
74
+ )) : /* @__PURE__ */ e("div", { className: x, children: g(c) ? c(p, f, d) : u || N() });
76
75
  }
77
76
  export {
78
- ar as default
77
+ ce as default
79
78
  };
@@ -1,8 +1,8 @@
1
- import { jsx as y, jsxs as ie } from "react/jsx-runtime";
2
- import { forwardRef as ce, useContext as ae, useState as D, useRef as T, useImperativeHandle as fe, useEffect as ue } from "react";
3
- import { a as le } from "../chunk/CNcLypMY.js";
1
+ import { jsx as $, jsxs as ie } from "react/jsx-runtime";
2
+ import { forwardRef as ce, useContext as ae, useState as D, useRef as y, useImperativeHandle as fe, useEffect as ue } from "react";
3
+ import { a as le } from "../chunk/CQvM33Vg.js";
4
4
  import { u as me } from "../chunk/B2yFlXke.js";
5
- import { p as $ } from "../chunk/CUFsOxJ2.js";
5
+ import T from "@unicom-cloud/utils/class-name";
6
6
  import { on as l, off as m } from "../utils/dom.js";
7
7
  import de from "./ResizeTrigger.js";
8
8
  const C = "horizontal", W = "vertical";
@@ -11,7 +11,7 @@ function ge(n, A) {
11
11
  style: L,
12
12
  className: V,
13
13
  component: j = "div",
14
- direction: p = "horizontal",
14
+ direction: H = "horizontal",
15
15
  icon: B,
16
16
  size: d = 0.5,
17
17
  min: v,
@@ -19,29 +19,29 @@ function ge(n, A) {
19
19
  panes: _,
20
20
  disabled: Z,
21
21
  trigger: k
22
- } = n, { getPrefixCls: q, rtl: H } = ae(le), s = q("resizebox-split"), g = p.includes(C), I = p.includes("reverse"), G = g && H, R = !g, J = $(
22
+ } = n, { getPrefixCls: q, rtl: I } = ae(le), s = q("resizebox-split"), g = H.includes(C), p = H.includes("reverse"), G = g && I, R = !g, J = T(
23
23
  s,
24
24
  `${s}-${g ? C : W}`,
25
- { [`${s}-rtl`]: H },
25
+ { [`${s}-rtl`]: I },
26
26
  V
27
- ), [K, Q] = _, i = typeof d == "string", [c, E] = D(parseFloat(d)), [F, U] = D(0), t = T({
27
+ ), [K, Q] = _, i = typeof d == "string", [c, E] = D(parseFloat(d)), [F, U] = D(0), t = y({
28
28
  startX: 0,
29
29
  startY: 0,
30
30
  startWidth: 0,
31
31
  startHeight: 0,
32
32
  startOffset: 0,
33
33
  moving: !1
34
- }), w = T(), O = T([]);
34
+ }), w = y(), O = y([]);
35
35
  fe(A, () => w.current, []);
36
- function z(e, o) {
36
+ function N(e, o) {
37
37
  return parseFloat(e) / parseFloat(o);
38
38
  }
39
39
  function M(e, o, r, f) {
40
- const X = typeof v == "string" ? z(parseFloat(v), e) : v || 0, Y = typeof x == "string" ? z(parseFloat(x), e) : x || 1;
41
- let N = I ? -1 : 1;
42
- N *= G ? -1 : 1;
43
- let u = i ? o + (f - r) * N : z(
44
- e * o + (f - r) * N,
40
+ const X = typeof v == "string" ? N(parseFloat(v), e) : v || 0, Y = typeof x == "string" ? N(parseFloat(x), e) : x || 1;
41
+ let z = p ? -1 : 1;
42
+ z *= G ? -1 : 1;
43
+ let u = i ? o + (f - r) * z : N(
44
+ e * o + (f - r) * z,
45
45
  e
46
46
  );
47
47
  const re = i ? X * e : X, se = i ? Y * e : Y;
@@ -87,29 +87,29 @@ function ge(n, A) {
87
87
  const e = parseFloat(d);
88
88
  c !== e && E(e);
89
89
  }, [d]);
90
- const oe = j, b = /* @__PURE__ */ y(
90
+ const oe = j, b = /* @__PURE__ */ $(
91
91
  "div",
92
92
  {
93
- className: $(`${s}-pane`, "first-pane"),
93
+ className: T(`${s}-pane`, "first-pane"),
94
94
  style: { flexBasis: ne() },
95
95
  ref: (e) => {
96
96
  O.current[0] = e;
97
97
  },
98
98
  children: K
99
99
  }
100
- ), P = /* @__PURE__ */ y(
100
+ ), P = /* @__PURE__ */ $(
101
101
  "div",
102
102
  {
103
- className: $(`${s}-pane`, "second-pane"),
103
+ className: T(`${s}-pane`, "second-pane"),
104
104
  ref: (e) => {
105
105
  O.current[1] = e;
106
106
  },
107
107
  children: Q
108
108
  }
109
- ), S = I ? [P, b] : [b, P];
109
+ ), S = p ? [P, b] : [b, P];
110
110
  return /* @__PURE__ */ ie(oe, { style: L, className: J, ref: w, children: [
111
111
  S[0],
112
- !Z && /* @__PURE__ */ y(
112
+ !Z && /* @__PURE__ */ $(
113
113
  de,
114
114
  {
115
115
  className: `${s}-trigger`,
@@ -4,43 +4,43 @@ import Mt from "lodash/isNumber";
4
4
  import S from "lodash/isPlainObject";
5
5
  import Ot from "lodash/isString";
6
6
  import W from "lodash/isUndefined";
7
- import Ct, { forwardRef as xt, useContext as St, useRef as z, useState as y, useEffect as L, useImperativeHandle as zt } from "react";
8
- import { a as Pt } from "../chunk/CNcLypMY.js";
9
- import { p as Rt } from "../chunk/CUFsOxJ2.js";
7
+ import Ct, { forwardRef as xt, useContext as St, useRef as z, useState as b, useEffect as L, useImperativeHandle as zt } from "react";
8
+ import { a as Pt } from "../chunk/CQvM33Vg.js";
9
+ import Rt from "@unicom-cloud/utils/class-name";
10
10
  import { on as P, off as R } from "../utils/dom.js";
11
11
  import { o as Nt } from "../chunk/BKKEev13.js";
12
12
  import pt from "./ResizeTrigger.js";
13
13
  const D = "horizontal", Y = "vertical";
14
14
  function Tt(c, _) {
15
15
  const {
16
- panes: a,
16
+ panes: f,
17
17
  style: J,
18
18
  className: U,
19
19
  component: Z = "div",
20
20
  direction: q = "horizontal",
21
21
  icon: K,
22
22
  ...Q
23
- } = c, { getPrefixCls: tt, rtl: j } = St(Pt), et = 1 / a.length, g = z(), $ = z(
24
- new Array(a.length).fill({
23
+ } = c, { getPrefixCls: tt, rtl: j } = St(Pt), et = 1 / f.length, g = z(), y = z(
24
+ new Array(f.length).fill({
25
25
  moving: !1,
26
26
  startOffset: 0,
27
27
  startPosition: 0
28
28
  })
29
- ), nt = z([]), N = z(0), p = z([]), [l, A] = y(
30
- new Array(a.length).fill(et)
31
- ), [ot, k] = y(!1), [E, rt] = y(
32
- new Array(a.length).fill(0)
33
- ), [w, st] = y(
34
- new Array(Math.max(a.length - 1, 0)).fill({ prev: !1, next: !1 })
29
+ ), nt = z([]), N = z(0), p = z([]), [l, A] = b(
30
+ new Array(f.length).fill(et)
31
+ ), [ot, k] = b(!1), [E, rt] = b(
32
+ new Array(f.length).fill(0)
33
+ ), [w, st] = b(
34
+ new Array(Math.max(f.length - 1, 0)).fill({ prev: !1, next: !1 })
35
35
  ), d = tt("resizebox-split-group"), v = q === D, ct = v && j, I = !v, it = Rt(
36
36
  d,
37
37
  `${d}-${v ? D : Y}`,
38
38
  { [`${d}-moving`]: ot },
39
39
  { [`${d}-rtl`]: j },
40
40
  U
41
- ), ft = Z, at = () => {
41
+ ), at = Z, ft = () => {
42
42
  let t = [];
43
- a.forEach((o) => {
43
+ f.forEach((o) => {
44
44
  const { size: s } = o;
45
45
  W(s) ? t.push(void 0) : t.push(M(s));
46
46
  });
@@ -58,10 +58,10 @@ function Tt(c, _) {
58
58
  return Math.min(n, 1);
59
59
  }
60
60
  const H = (t) => {
61
- const e = Math.min(t + 1, a.length - 1), n = l[t] + l[e], r = M(a[t].min) || 0;
62
- let o = M(a[t].max) || n;
63
- const s = M(a[e].min) || 0;
64
- let i = M(a[e].max) || n;
61
+ const e = Math.min(t + 1, f.length - 1), n = l[t] + l[e], r = M(f[t].min) || 0;
62
+ let o = M(f[t].max) || n;
63
+ const s = M(f[e].min) || 0;
64
+ let i = M(f[e].max) || n;
65
65
  return o = Math.min(n - s, o), i = Math.min(n - r, i), {
66
66
  currentMin: r,
67
67
  currentMax: o,
@@ -69,16 +69,16 @@ function Tt(c, _) {
69
69
  nextMax: i
70
70
  };
71
71
  }, ut = (t, e, n) => {
72
- const r = N.current, o = r + 1, s = [...l], i = ct ? -1 : 1, h = l[r], C = l[o], x = h + C, { currentMin: m, currentMax: f } = H(r);
72
+ const r = N.current, o = r + 1, s = [...l], i = ct ? -1 : 1, h = l[r], C = l[o], x = h + C, { currentMin: m, currentMax: a } = H(r);
73
73
  let u = t + M(`${(n - e) * i}px`);
74
- return u = Math.max(m, u), u = Math.min(f, u), s[r] = u, s[o] = x - u, s;
74
+ return u = Math.max(m, u), u = Math.min(a, u), s[r] = u, s[o] = x - u, s;
75
75
  };
76
76
  function mt(t, e) {
77
77
  const { contentRect: n } = t[0], r = n[I ? "height" : "width"], o = [...E];
78
78
  o[e] = r, rt(o);
79
79
  }
80
80
  const gt = (t) => {
81
- let e = a[t].collapsible;
81
+ let e = f[t].collapsible;
82
82
  S(e) || (e = e ? { prev: !0, next: !0 } : {});
83
83
  const { prev: n, next: r } = e;
84
84
  if (!n && !r)
@@ -91,12 +91,12 @@ function Tt(c, _) {
91
91
  function vt(t, e) {
92
92
  var r;
93
93
  (r = c.onMovingStart) == null || r.call(c, e), N.current = e;
94
- const n = $.current[e];
94
+ const n = y.current[e];
95
95
  n.moving = !0, n.startOffset = l[e], n.startPosition = v ? t.pageX : t.pageY, k(!0), P(window, "mousemove", T), P(window, "touchmove", T), P(window, "mouseup", O), P(window, "touchend", O), P(window, "contextmenu", O), document.body.style.cursor = I ? "row-resize" : "col-resize";
96
96
  }
97
97
  function T(t) {
98
98
  var o;
99
- const e = N.current, n = $.current[e], r = v ? g.current.offsetWidth : g.current.offsetHeight;
99
+ const e = N.current, n = y.current[e], r = v ? g.current.offsetWidth : g.current.offsetHeight;
100
100
  if (n.moving) {
101
101
  const s = ut(
102
102
  n.startOffset,
@@ -114,13 +114,13 @@ function Tt(c, _) {
114
114
  function O() {
115
115
  var e;
116
116
  const t = N.current;
117
- $.current[t].moving = !1, k(!1), R(window, "mousemove", T), R(window, "touchmove", T), R(window, "mouseup", O), R(window, "touchend", O), R(window, "contextmenu", O), document.body.style.cursor = "default", (e = c.onMovingEnd) == null || e.call(c, t);
117
+ y.current[t].moving = !1, k(!1), R(window, "mousemove", T), R(window, "touchmove", T), R(window, "mouseup", O), R(window, "touchend", O), R(window, "contextmenu", O), document.body.style.cursor = "default", (e = c.onMovingEnd) == null || e.call(c, t);
118
118
  }
119
119
  function F(t, e, n, r) {
120
120
  var G, V;
121
- const o = e + 1, s = [...l], i = l[e], h = l[o], C = i + h, x = v ? g.current.offsetWidth : g.current.offsetHeight, { currentMin: m, nextMin: f } = H(e);
122
- let u = p.current[e], b = p.current[o], X = w[e][n];
123
- n === "prev" ? (h !== f || b === f) && (u = m, b = C - m, X = !0) : (i !== m || u === m) && (u = C - f, b = f, X = !0), s[e] = u, s[o] = b, (G = c == null ? void 0 : c.onMoving) == null || G.call(
121
+ const o = e + 1, s = [...l], i = l[e], h = l[o], C = i + h, x = v ? g.current.offsetWidth : g.current.offsetHeight, { currentMin: m, nextMin: a } = H(e);
122
+ let u = p.current[e], $ = p.current[o], X = w[e][n];
123
+ n === "prev" ? (h !== a || $ === a) && (u = m, $ = C - m, X = !0) : (i !== m || u === m) && (u = C - a, $ = a, X = !0), s[e] = u, s[o] = $, (G = c == null ? void 0 : c.onMoving) == null || G.call(
124
124
  c,
125
125
  t,
126
126
  s.map((ht) => `${ht * x}px`),
@@ -128,16 +128,16 @@ function Tt(c, _) {
128
128
  ), (V = c.onMovingEnd) == null || V.call(c, e), A(s), dt(r) && r(t, e, n, X);
129
129
  }
130
130
  return L(() => {
131
- const t = at();
131
+ const t = ft();
132
132
  A(t), p.current = t;
133
- }, [JSON.stringify(a.map((t) => t.size))]), zt(_, () => g.current, []), L(() => {
133
+ }, [JSON.stringify(f.map((t) => t.size))]), zt(_, () => g.current, []), L(() => {
134
134
  const t = [];
135
135
  l.forEach((e, n) => {
136
136
  const r = { prev: !1, next: !1 }, o = n + 1, { currentMin: s, nextMin: i } = H(n);
137
137
  e === s ? r.prev = !0 : l[o] === i && (r.next = !0), t.push(r);
138
138
  }), st(t);
139
139
  }, [l]), /* @__PURE__ */ B(
140
- ft,
140
+ at,
141
141
  {
142
142
  ...Nt(Q, [
143
143
  "onMovingStart",
@@ -148,7 +148,7 @@ function Tt(c, _) {
148
148
  style: J,
149
149
  className: it,
150
150
  ref: g,
151
- children: a.map((t, e) => {
151
+ children: f.map((t, e) => {
152
152
  const {
153
153
  content: n,
154
154
  disabled: r,
@@ -162,26 +162,26 @@ function Tt(c, _) {
162
162
  {
163
163
  className: `${d}-pane`,
164
164
  style: { flexBasis: lt(e) },
165
- ref: (f) => nt.current[e] = f,
165
+ ref: (a) => nt.current[e] = a,
166
166
  children: n
167
167
  }
168
168
  ),
169
- !r && e !== a.length - 1 && /* @__PURE__ */ B(
169
+ !r && e !== f.length - 1 && /* @__PURE__ */ B(
170
170
  pt,
171
171
  {
172
172
  className: `${d}-trigger`,
173
173
  direction: I ? D : Y,
174
174
  icon: K,
175
- onResize: (f) => mt(f, e),
176
- onMouseDown: (f) => vt(f, e),
175
+ onResize: (a) => mt(a, e),
176
+ onMouseDown: (a) => vt(a, e),
177
177
  collapsible: {
178
178
  prev: h ? {
179
- onClick: (f) => F(f, e, "prev", x.onClick),
179
+ onClick: (a) => F(a, e, "prev", x.onClick),
180
180
  icon: x.icon,
181
181
  collapsed: w[e].prev
182
182
  } : void 0,
183
183
  next: C ? {
184
- onClick: (f) => F(f, e, "next", m.onClick),
184
+ onClick: (a) => F(a, e, "next", m.onClick),
185
185
  icon: m.icon,
186
186
  collapsed: w[e].next
187
187
  } : void 0
@@ -195,8 +195,8 @@ function Tt(c, _) {
195
195
  }
196
196
  );
197
197
  }
198
- const bt = xt(Tt);
199
- bt.displayName = "ResizeBoxSplitGroup";
198
+ const $t = xt(Tt);
199
+ $t.displayName = "ResizeBoxSplitGroup";
200
200
  export {
201
- bt as default
201
+ $t as default
202
202
  };
@@ -1,17 +1,17 @@
1
1
  import { jsxs as ot, jsx as rt } from "react/jsx-runtime";
2
2
  import B from "lodash/isNumber";
3
3
  import { forwardRef as nt, useContext as st, useState as it, useRef as E, useImperativeHandle as ct } from "react";
4
- import { a as at } from "../chunk/CNcLypMY.js";
4
+ import { a as at } from "../chunk/CQvM33Vg.js";
5
5
  import { u as ut } from "../chunk/BFTV6myl.js";
6
- import { u as W } from "../chunk/DeV0v__J.js";
7
- import { p as mt } from "../chunk/CUFsOxJ2.js";
6
+ import { u as W } from "../chunk/CXPOj2uy.js";
7
+ import mt from "@unicom-cloud/utils/class-name";
8
8
  import { on as g, off as l } from "../utils/dom.js";
9
9
  import { o as dt } from "../chunk/BKKEev13.js";
10
10
  import gt from "./ResizeTrigger.js";
11
11
  import lt from "./Split.js";
12
12
  import ft from "./SplitGroup.js";
13
- const X = "left", z = "right", b = "top", x = "bottom", pt = [
14
- X,
13
+ const $ = "left", z = "right", b = "top", x = "bottom", pt = [
14
+ $,
15
15
  z,
16
16
  b,
17
17
  x
@@ -30,8 +30,8 @@ const X = "left", z = "right", b = "top", x = "bottom", pt = [
30
30
  return f;
31
31
  }
32
32
  };
33
- function vt(f, Y) {
34
- const { getPrefixCls: $, componentConfig: w, rtl: T } = st(at), r = ut(
33
+ function vt(f, X) {
34
+ const { getPrefixCls: Y, componentConfig: w, rtl: T } = st(at), r = ut(
35
35
  f,
36
36
  ht,
37
37
  w == null ? void 0 : w.ResizeBox
@@ -46,7 +46,7 @@ function vt(f, Y) {
46
46
  width: F,
47
47
  height: q,
48
48
  ...K
49
- } = r, L = T ? C.map((t) => wt(t)) : C, v = $("resizebox"), U = mt(v, { [`${v}-rtl`]: T }, k), [V, J] = it({}), [I, S] = W(void 0, { value: F }), [H, M] = W(void 0, { value: q }), o = E({
49
+ } = r, L = T ? C.map((t) => wt(t)) : C, v = Y("resizebox"), U = mt(v, { [`${v}-rtl`]: T }, k), [V, J] = it({}), [I, N] = W(void 0, { value: F }), [S, H] = W(void 0, { value: q }), o = E({
50
50
  startX: 0,
51
51
  startY: 0,
52
52
  startWidth: 0,
@@ -60,17 +60,17 @@ function vt(f, Y) {
60
60
  right: 0
61
61
  }
62
62
  }), p = E();
63
- ct(Y, () => p.current, []);
63
+ ct(X, () => p.current, []);
64
64
  function R(t) {
65
65
  return [b, x].indexOf(t) > -1;
66
66
  }
67
- function O(t, e) {
67
+ function M(t, e) {
68
68
  if (t === 0)
69
69
  return 0;
70
70
  const n = t - e;
71
71
  return n <= 0 ? 0 : n;
72
72
  }
73
- function D(t) {
73
+ function O(t) {
74
74
  const e = "data-pqb-origin-cursor";
75
75
  if (t)
76
76
  document.body.setAttribute(e, document.body.style.cursor), document.body.style.cursor = t;
@@ -83,45 +83,45 @@ function vt(f, Y) {
83
83
  var i, m, d;
84
84
  (i = r.onMovingStart) == null || i.call(r), o.current.moving = !0, o.current.startX = e.pageX, o.current.startY = e.pageY, o.current.direction = t;
85
85
  const { top: n, left: c, right: a, bottom: s } = o.current.padding;
86
- o.current.startWidth = O(
86
+ o.current.startWidth = M(
87
87
  (m = p.current) == null ? void 0 : m.clientWidth,
88
88
  c + a
89
- ), o.current.startHeight = O(
89
+ ), o.current.startHeight = M(
90
90
  (d = p.current) == null ? void 0 : d.clientHeight,
91
91
  n + s
92
- ), g(window, "mousemove", h), g(window, "touchmove", h), g(window, "mouseup", u), g(window, "touchend", u), g(window, "contextmenu", u), D(
92
+ ), g(window, "mousemove", h), g(window, "touchmove", h), g(window, "mouseup", u), g(window, "touchend", u), g(window, "contextmenu", u), O(
93
93
  R(t) ? "row-resize" : "col-resize"
94
94
  );
95
95
  }
96
96
  function h(t) {
97
- var N;
97
+ var D;
98
98
  if (!o.current.moving)
99
99
  return !1;
100
100
  const { startX: e, startY: n, startWidth: c, startHeight: a } = o.current;
101
101
  let s = c, i = a;
102
102
  const m = t.pageX - e, d = t.pageY - n;
103
103
  switch (o.current.direction) {
104
- case X:
105
- s = c - m, S(s);
104
+ case $:
105
+ s = c - m, N(s);
106
106
  break;
107
107
  case z:
108
- s = c + m, S(s);
108
+ s = c + m, N(s);
109
109
  break;
110
110
  case b:
111
- i = a - d, M(i);
111
+ i = a - d, H(i);
112
112
  break;
113
113
  case x:
114
- i = a + d, M(i);
114
+ i = a + d, H(i);
115
115
  break;
116
116
  }
117
- (N = r.onMoving) == null || N.call(r, t, {
117
+ (D = r.onMoving) == null || D.call(r, t, {
118
118
  width: s,
119
119
  height: i
120
120
  });
121
121
  }
122
122
  function u() {
123
123
  var t;
124
- o.current.moving = !1, Z(), D(), (t = r.onMovingEnd) == null || t.call(r);
124
+ o.current.moving = !1, Z(), O(), (t = r.onMovingEnd) == null || t.call(r);
125
125
  }
126
126
  function Z() {
127
127
  l(window, "mousemove", h), l(window, "touchmove", h), l(window, "mouseup", u), l(window, "touchend", u), l(window, "contextmenu", u);
@@ -137,7 +137,7 @@ function vt(f, Y) {
137
137
  ...V,
138
138
  ...P || {},
139
139
  ...B(I) ? { width: I } : {},
140
- ...B(H) ? { height: H } : {}
140
+ ...B(S) ? { height: S } : {}
141
141
  };
142
142
  return /* @__PURE__ */ ot(
143
143
  G,
package/result/index.js CHANGED
@@ -1,71 +1,71 @@
1
- import { jsxs as h, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as h, jsx as s } from "react/jsx-runtime";
2
2
  import g from "@unicom-cloud/icons/IconUiCheck";
3
3
  import v from "@unicom-cloud/icons/IconUiClose";
4
4
  import C from "@unicom-cloud/icons/IconUiExclamation";
5
5
  import R from "@unicom-cloud/icons/IconUiInfo";
6
6
  import { forwardRef as U, useContext as P } from "react";
7
- import { a as b } from "../chunk/CNcLypMY.js";
7
+ import { a as b } from "../chunk/CQvM33Vg.js";
8
8
  import { u as j } from "../chunk/BFTV6myl.js";
9
- import { p as m } from "../chunk/CUFsOxJ2.js";
9
+ import m from "@unicom-cloud/utils/class-name";
10
10
  import w from "./403.js";
11
11
  import y from "./404.js";
12
12
  import k from "./500.js";
13
13
  const E = {
14
- success: /* @__PURE__ */ o(g, {}),
15
- info: /* @__PURE__ */ o(R, {}),
16
- warning: /* @__PURE__ */ o(C, {}),
17
- error: /* @__PURE__ */ o(v, {}),
18
- 404: /* @__PURE__ */ o(y, {}),
19
- 403: /* @__PURE__ */ o(w, {}),
20
- 500: /* @__PURE__ */ o(k, {})
14
+ success: /* @__PURE__ */ s(g, {}),
15
+ info: /* @__PURE__ */ s(R, {}),
16
+ warning: /* @__PURE__ */ s(C, {}),
17
+ error: /* @__PURE__ */ s(v, {}),
18
+ 404: /* @__PURE__ */ s(y, {}),
19
+ 403: /* @__PURE__ */ s(w, {}),
20
+ 500: /* @__PURE__ */ s(k, {})
21
21
  }, M = {
22
22
  status: "info"
23
23
  };
24
24
  function T(f, p) {
25
- const { getPrefixCls: u, componentConfig: r, rtl: d } = P(b), e = j(
25
+ const { getPrefixCls: u, componentConfig: e, rtl: d } = P(b), r = j(
26
26
  f,
27
27
  M,
28
- r == null ? void 0 : r.Result
28
+ e == null ? void 0 : e.Result
29
29
  ), {
30
30
  className: $,
31
- style: x,
31
+ style: N,
32
32
  status: t,
33
33
  title: i,
34
34
  subTitle: c,
35
35
  extra: n,
36
36
  children: a,
37
- icon: I,
38
- ...N
39
- } = e, s = u("result"), l = "icon" in e ? I : E[t];
37
+ icon: x,
38
+ ...I
39
+ } = r, o = u("result"), l = "icon" in r ? x : E[t];
40
40
  return /* @__PURE__ */ h(
41
41
  "div",
42
42
  {
43
43
  ref: p,
44
44
  className: m(
45
- s,
45
+ o,
46
46
  {
47
- [`${s}-is-${t}`]: t,
48
- [`${s}-rtl`]: d
47
+ [`${o}-is-${t}`]: t,
48
+ [`${o}-rtl`]: d
49
49
  },
50
50
  $
51
51
  ),
52
- style: x,
53
- ...N,
52
+ style: N,
53
+ ...I,
54
54
  children: [
55
- l && /* @__PURE__ */ o("div", { className: `${s}-icon`, children: /* @__PURE__ */ o(
55
+ l && /* @__PURE__ */ s("div", { className: `${o}-icon`, children: /* @__PURE__ */ s(
56
56
  "span",
57
57
  {
58
- className: m(`${s}-icon-tip`, {
59
- [`${s}-icon-${t}`]: t,
60
- [`${s}-icon-custom`]: t === null
58
+ className: m(`${o}-icon-tip`, {
59
+ [`${o}-icon-${t}`]: t,
60
+ [`${o}-icon-custom`]: t === null
61
61
  }),
62
62
  children: l
63
63
  }
64
64
  ) }),
65
- i && /* @__PURE__ */ o("div", { className: `${s}-title`, children: i }),
66
- c && /* @__PURE__ */ o("div", { className: `${s}-subtitle`, children: c }),
67
- n && /* @__PURE__ */ o("div", { className: `${s}-extra`, children: n }),
68
- a && /* @__PURE__ */ o("div", { className: `${s}-content`, children: a })
65
+ i && /* @__PURE__ */ s("div", { className: `${o}-title`, children: i }),
66
+ c && /* @__PURE__ */ s("div", { className: `${o}-subtitle`, children: c }),
67
+ n && /* @__PURE__ */ s("div", { className: `${o}-extra`, children: n }),
68
+ a && /* @__PURE__ */ s("div", { className: `${o}-content`, children: a })
69
69
  ]
70
70
  }
71
71
  );
package/select/Option.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { O as a } from "../chunk/Cwm8LL5p.js";
4
- import "../chunk/CUFsOxJ2.js";
3
+ import { O as a } from "../chunk/B4mZh-RK.js";
4
+ import "@unicom-cloud/utils/class-name";
5
5
  import "../chunk/BKKEev13.js";
6
6
  export {
7
7
  a as default