@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
@@ -1,60 +1,60 @@
1
- import { jsxs as Q, jsx as n, Fragment as De } from "react/jsx-runtime";
1
+ import { jsxs as Q, jsx as t, Fragment as De } from "react/jsx-runtime";
2
2
  import Ke from "@unicom-cloud/icons/IconUiMenuFold";
3
- import _e from "@unicom-cloud/icons/IconUiMenuUnfold";
4
- import Re from "lodash/isPlainObject";
5
- import F, { useContext as T, useState as fe, forwardRef as he, useEffect as te, useRef as ne, useMemo as Te } from "react";
6
- import { a as ge } from "./CNcLypMY.js";
7
- import { u as Ae } from "./CQ_WOOmf.js";
3
+ import Re from "@unicom-cloud/icons/IconUiMenuUnfold";
4
+ import _e from "lodash/isPlainObject";
5
+ import F, { useContext as A, useState as fe, forwardRef as he, useEffect as ne, useRef as te, useMemo as Ae } from "react";
6
+ import { a as ge } from "./CQvM33Vg.js";
7
+ import { u as Te } from "./CQ_WOOmf.js";
8
8
  import { u as oe } from "./B4YRLi8r.js";
9
- import { u as Ue } from "./XTEsYGuF.js";
9
+ import { u as Ue } from "./BYdIoY50.js";
10
10
  import { u as Le } from "./BFTV6myl.js";
11
- import { u as Z } from "./DeV0v__J.js";
11
+ import { u as Z } from "./CXPOj2uy.js";
12
12
  import { SiderContext as ze } from "../layout/Sider.js";
13
- import { p as U } from "./CUFsOxJ2.js";
13
+ import U from "@unicom-cloud/utils/class-name";
14
14
  import { o as Y } from "./BKKEev13.js";
15
15
  import V from "../menu/context.js";
16
16
  import Be from "../menu/Item.js";
17
17
  import He from "../menu/ItemGroup.js";
18
18
  import { r as Ve } from "./CIRG541s.js";
19
19
  import { getStyle as pe } from "../utils/style.js";
20
- import Me from "@unicom-cloud/icons/IconUiDown";
20
+ import we from "@unicom-cloud/icons/IconUiDown";
21
21
  import { u as We } from "./Duezix3m.js";
22
- import ye from "../menu/Indent.js";
23
- import { isChildrenSelected as be, processChildren as we, PROPS_NEED_TO_BE_PASSED_IN_SUBMENU as Fe, generateInfoMap as je } from "../menu/util.js";
24
- import { P as qe } from "./BpYX5PN4.js";
25
- import { e as ve, y as Ge, n as Qe } from "./BrOW642m.js";
22
+ import Me from "../menu/Indent.js";
23
+ import { isChildrenSelected as be, processChildren as ye, PROPS_NEED_TO_BE_PASSED_IN_SUBMENU as Fe, generateInfoMap as je } from "../menu/util.js";
24
+ import { P as qe } from "./NPajzdOv.js";
25
+ import { Enter as ve, ArrowLeft as Ge, ArrowRight as Qe } from "@unicom-cloud/utils/constant/keyboardCode";
26
26
  import { p as Ye } from "./ClqoGc3r.js";
27
27
  import Je from "@unicom-cloud/icons/IconUiLeft";
28
28
  import Xe from "@unicom-cloud/icons/IconUiRight";
29
29
  import Ze from "../dropdown/index.js";
30
- const ee = { height: 0, visibility: "hidden" }, en = (o) => {
30
+ const ee = { height: 0, visibility: "hidden" }, et = (o) => {
31
31
  const {
32
32
  _key: i,
33
- children: N,
33
+ children: I,
34
34
  style: m,
35
35
  className: C,
36
- title: M,
36
+ title: w,
37
37
  level: p,
38
38
  forwardedRef: S,
39
- selectable: y,
39
+ selectable: M,
40
40
  ...k
41
41
  } = o, {
42
42
  id: d,
43
43
  prefixCls: b,
44
44
  levelIndent: f,
45
45
  openKeys: x = [],
46
- selectedKeys: R = [],
46
+ selectedKeys: _ = [],
47
47
  icons: e,
48
48
  onClickSubMenu: r,
49
49
  onClickMenuItem: s
50
- } = T(V), c = `${b}-inline`, a = (x == null ? void 0 : x.indexOf(i)) > -1, g = y && R.indexOf(o._key) > -1 || be(N, R), [w, l] = We(
50
+ } = A(V), c = `${b}-inline`, a = (x == null ? void 0 : x.indexOf(i)) > -1, g = M && _.indexOf(o._key) > -1 || be(I, _), [y, l] = We(
51
51
  a ? { height: "auto" } : ee
52
52
  ), v = (h) => {
53
- r(i, p, "inline"), y && s(i, h);
54
- }, P = oe(`${d}-submenu-inline-`), D = we(N, {
53
+ r(i, p, "inline"), M && s(i, h);
54
+ }, P = oe(`${d}-submenu-inline-`), D = ye(I, {
55
55
  ...Ye(k, Fe),
56
56
  level: p + 1,
57
- selectable: y
57
+ selectable: M
58
58
  }), K = /* @__PURE__ */ Q(
59
59
  "div",
60
60
  {
@@ -69,24 +69,24 @@ const ee = { height: 0, visibility: "hidden" }, en = (o) => {
69
69
  h.key === ve.key && v(h);
70
70
  },
71
71
  children: [
72
- /* @__PURE__ */ n(
73
- ye,
72
+ /* @__PURE__ */ t(
73
+ Me,
74
74
  {
75
75
  level: p,
76
76
  prefixCls: b,
77
77
  levelIndent: f
78
78
  }
79
79
  ),
80
- /* @__PURE__ */ n("span", { children: M }),
81
- /* @__PURE__ */ n("span", { className: `${b}-icon-suffix ${a ? "is-open" : ""}`, children: e && e.horizontalArrowDown ? e.horizontalArrowDown : /* @__PURE__ */ n(Me, {}) })
80
+ /* @__PURE__ */ t("span", { children: w }),
81
+ /* @__PURE__ */ t("span", { className: `${b}-icon-suffix ${a ? "is-open" : ""}`, children: e && e.horizontalArrowDown ? e.horizontalArrowDown : /* @__PURE__ */ t(we, {}) })
82
82
  ]
83
83
  }
84
- ), L = /* @__PURE__ */ n(
84
+ ), L = /* @__PURE__ */ t(
85
85
  "div",
86
86
  {
87
87
  id: P,
88
88
  className: U(`${c}-content`),
89
- style: w,
89
+ style: y,
90
90
  children: D
91
91
  }
92
92
  );
@@ -99,7 +99,7 @@ const ee = { height: 0, visibility: "hidden" }, en = (o) => {
99
99
  ...Y(k, ["key", "popup", "triggerProps"]),
100
100
  children: [
101
101
  K,
102
- /* @__PURE__ */ n(
102
+ /* @__PURE__ */ t(
103
103
  qe,
104
104
  {
105
105
  in: a,
@@ -121,50 +121,50 @@ const ee = { height: 0, visibility: "hidden" }, en = (o) => {
121
121
  ]
122
122
  }
123
123
  );
124
- }, nn = (o) => {
124
+ }, tt = (o) => {
125
125
  const {
126
126
  _key: i,
127
- children: N,
127
+ children: I,
128
128
  style: m,
129
129
  className: C,
130
- title: M,
130
+ title: w,
131
131
  level: p,
132
132
  selectable: S,
133
- forwardedRef: y,
133
+ forwardedRef: M,
134
134
  triggerProps: k,
135
135
  ...d
136
136
  } = o, {
137
137
  id: b,
138
138
  prefixCls: f,
139
139
  mode: x,
140
- inDropdown: R,
140
+ inDropdown: _,
141
141
  levelIndent: e,
142
142
  selectedKeys: r = [],
143
143
  icons: s,
144
144
  triggerProps: c,
145
145
  onClickSubMenu: a,
146
146
  onClickMenuItem: g
147
- } = T(V), { rtl: w } = T(ge), l = { ...c, ...k }, [v, P] = fe(!1), D = `${f}-pop`, K = S && r.indexOf(o._key) > -1, L = x === "horizontal" && !R, h = oe(`${b}-submenu-pop-`), z = () => {
148
- const O = s && s.popArrowRight ? s.popArrowRight : w ? /* @__PURE__ */ n(Je, {}) : /* @__PURE__ */ n(Xe, {}), u = s && s.horizontalArrowDown ? s.horizontalArrowDown : /* @__PURE__ */ n(Me, {});
149
- return /* @__PURE__ */ n("span", { className: `${f}-icon-suffix`, children: L ? u : O });
150
- }, B = be(N, r) || K, H = w ? ["br", "lt"] : ["bl", "rt"], j = (O) => {
151
- a(i, p, "pop"), S && g(i, O);
147
+ } = A(V), { rtl: y } = A(ge), l = { ...c, ...k }, [v, P] = fe(!1), D = `${f}-pop`, K = S && r.indexOf(o._key) > -1, L = x === "horizontal" && !_, h = oe(`${b}-submenu-pop-`), z = () => {
148
+ const $ = s && s.popArrowRight ? s.popArrowRight : y ? /* @__PURE__ */ t(Je, {}) : /* @__PURE__ */ t(Xe, {}), u = s && s.horizontalArrowDown ? s.horizontalArrowDown : /* @__PURE__ */ t(we, {});
149
+ return /* @__PURE__ */ t("span", { className: `${f}-icon-suffix`, children: L ? u : $ });
150
+ }, B = be(I, r) || K, H = y ? ["br", "lt"] : ["bl", "rt"], j = ($) => {
151
+ a(i, p, "pop"), S && g(i, $);
152
152
  };
153
- return /* @__PURE__ */ n(
153
+ return /* @__PURE__ */ t(
154
154
  Ze,
155
155
  {
156
156
  trigger: "hover",
157
157
  popupVisible: v,
158
158
  onVisibleChange: P,
159
- droplist: /* @__PURE__ */ n(
159
+ droplist: /* @__PURE__ */ t(
160
160
  W,
161
161
  {
162
162
  id: h,
163
163
  selectedKeys: r,
164
- onClickMenuItem: (O, u) => {
165
- g(O, u), P(!1);
164
+ onClickMenuItem: ($, u) => {
165
+ g($, u), P(!1);
166
166
  },
167
- children: N
167
+ children: I
168
168
  }
169
169
  ),
170
170
  triggerProps: {
@@ -188,7 +188,7 @@ const ee = { height: 0, visibility: "hidden" }, en = (o) => {
188
188
  "aria-haspopup": !0,
189
189
  "aria-expanded": v,
190
190
  "aria-controls": h,
191
- ref: y,
191
+ ref: M,
192
192
  style: m,
193
193
  className: U(
194
194
  D,
@@ -199,39 +199,39 @@ const ee = { height: 0, visibility: "hidden" }, en = (o) => {
199
199
  C
200
200
  ),
201
201
  onClick: j,
202
- onKeyDown: (O) => {
203
- const u = O.key;
204
- u === ve.key ? j(O) : u === Ge.key ? P(!1) : u === Qe.key && P(!0);
202
+ onKeyDown: ($) => {
203
+ const u = $.key;
204
+ u === ve.key ? j($) : u === Ge.key ? P(!1) : u === Qe.key && P(!0);
205
205
  },
206
206
  ...Y(d, ["key", "popup"]),
207
207
  children: [
208
- /* @__PURE__ */ n(
209
- ye,
208
+ /* @__PURE__ */ t(
209
+ Me,
210
210
  {
211
211
  prefixCls: f,
212
212
  levelIndent: e,
213
213
  level: p
214
214
  }
215
215
  ),
216
- M,
216
+ w,
217
217
  z(),
218
- B && x === "horizontal" ? /* @__PURE__ */ n("div", { className: `${f}-selected-label` }) : null
218
+ B && x === "horizontal" ? /* @__PURE__ */ t("div", { className: `${f}-selected-label` }) : null
219
219
  ]
220
220
  }
221
221
  )
222
222
  }
223
223
  );
224
224
  };
225
- function tn(o, i) {
226
- const { children: N, popup: m, level: C } = o, { mode: M, collapse: p, inDropdown: S, collectInlineMenuKeys: y } = T(V), b = !!(typeof m == "function" ? m(C) : m) || p || S || M !== "vertical" ? nn : en;
227
- return te(() => (y(o._key), () => {
228
- y(o._key, !0);
229
- }), []), /* @__PURE__ */ n(b, { forwardedRef: i, ...o, children: N });
225
+ function nt(o, i) {
226
+ const { children: I, popup: m, level: C } = o, { mode: w, collapse: p, inDropdown: S, collectInlineMenuKeys: M } = A(V), b = !!(typeof m == "function" ? m(C) : m) || p || S || w !== "vertical" ? tt : et;
227
+ return ne(() => (M(o._key), () => {
228
+ M(o._key, !0);
229
+ }), []), /* @__PURE__ */ t(b, { forwardedRef: i, ...o, children: I });
230
230
  }
231
- const on = he(tn), J = on;
231
+ const ot = he(nt), J = ot;
232
232
  J.displayName = "SubMenu";
233
233
  J.menuType = "SubMenu";
234
- const rn = 5;
234
+ const rt = 5;
235
235
  function de(o) {
236
236
  return o && Math.ceil(+o.getBoundingClientRect().width);
237
237
  }
@@ -239,8 +239,8 @@ function me(o) {
239
239
  const i = Number(o.replace("px", ""));
240
240
  return isNaN(i) ? 0 : i;
241
241
  }
242
- const sn = (o) => {
243
- const { children: i, ellipsisText: N = "···", onEllipsisChange: m } = o, { prefixCls: C } = T(V), M = ne(null), [p, S] = fe(null), y = `${C}-overflow-sub-menu`, k = `${C}-overflow-hidden-menu-item`, d = `${C}-overflow-sub-menu-mirror`, b = (e) => {
242
+ const st = (o) => {
243
+ const { children: i, ellipsisText: I = "···", onEllipsisChange: m } = o, { prefixCls: C } = A(V), w = te(null), [p, S] = fe(null), M = `${C}-overflow-sub-menu`, k = `${C}-overflow-hidden-menu-item`, d = `${C}-overflow-sub-menu-mirror`, b = (e) => {
244
244
  if (e !== p) {
245
245
  const r = F.Children.toArray(i), s = e === null;
246
246
  m == null || m({
@@ -250,12 +250,12 @@ const sn = (o) => {
250
250
  }
251
251
  };
252
252
  function f() {
253
- if (!M.current)
253
+ if (!w.current)
254
254
  return;
255
- const e = M.current, r = de(e) - rn, s = [].slice.call(e.children);
255
+ const e = w.current, r = de(e) - rt, s = [].slice.call(e.children);
256
256
  let c = 0, a = 0, g = 0;
257
- for (let w = 0; w < s.length; w++) {
258
- const l = s[w], v = l.className.split(" "), P = v.indexOf(y) > -1, D = v.indexOf(d) > -1;
257
+ for (let y = 0; y < s.length; y++) {
258
+ const l = s[y], v = l.className.split(" "), P = v.indexOf(M) > -1, D = v.indexOf(d) > -1;
259
259
  if (P)
260
260
  continue;
261
261
  const K = de(l) + me(pe(l, "marginLeft")) + me(pe(l, "marginRight"));
@@ -274,23 +274,23 @@ const sn = (o) => {
274
274
  }
275
275
  b(null);
276
276
  }
277
- const x = (e, r = !1) => /* @__PURE__ */ n(
277
+ const x = (e, r = !1) => /* @__PURE__ */ t(
278
278
  J,
279
279
  {
280
- title: /* @__PURE__ */ n("span", { children: N }),
281
- className: r ? d : y,
280
+ title: /* @__PURE__ */ t("span", { children: I }),
281
+ className: r ? d : M,
282
282
  children: e
283
283
  },
284
284
  `pqb-menu-overflow-sub-menu${r ? "-mirror" : ""}`
285
- ), R = () => {
285
+ ), _ = () => {
286
286
  let e = null;
287
287
  const r = x(null, !0), s = F.Children.map(i, (c, a) => {
288
- var w;
288
+ var y;
289
289
  let g = c;
290
290
  if (p !== null && (a > p && (g = F.cloneElement(c, {
291
291
  className: U(
292
292
  k,
293
- (w = c == null ? void 0 : c.props) == null ? void 0 : w.className
293
+ (y = c == null ? void 0 : c.props) == null ? void 0 : y.className
294
294
  )
295
295
  })), a === p + 1)) {
296
296
  const l = F.Children.toArray(i).slice(p + 1).map(
@@ -304,39 +304,39 @@ const sn = (o) => {
304
304
  }) ?? [];
305
305
  return [r, ...s, e];
306
306
  };
307
- return te(() => {
308
- const e = Ve([M.current], f);
307
+ return ne(() => {
308
+ const e = Ve([w.current], f);
309
309
  return () => {
310
310
  e();
311
311
  };
312
- }, [M.current]), /* @__PURE__ */ n("div", { className: `${C}-overflow-wrap`, ref: M, children: R() });
313
- }, ln = "light", cn = {
312
+ }, [w.current]), /* @__PURE__ */ t("div", { className: `${C}-overflow-wrap`, ref: w, children: _() });
313
+ }, lt = "light", it = {
314
314
  mode: "vertical",
315
315
  selectable: !0,
316
316
  ellipsis: !0
317
317
  };
318
- function an(o, i) {
319
- const { getPrefixCls: N, componentConfig: m, rtl: C } = T(ge), M = Le(
318
+ function ct(o, i) {
319
+ const { getPrefixCls: I, componentConfig: m, rtl: C } = A(ge), w = Le(
320
320
  o,
321
- cn,
321
+ it,
322
322
  m == null ? void 0 : m.Menu
323
323
  ), {
324
324
  style: p,
325
325
  children: S,
326
- className: y,
326
+ className: M,
327
327
  prefixCls: k,
328
328
  mode: d,
329
329
  theme: b,
330
330
  icons: f,
331
331
  levelIndent: x,
332
- collapse: R,
332
+ collapse: _,
333
333
  inDropdown: e,
334
334
  selectable: r,
335
335
  triggerProps: s,
336
336
  tooltipProps: c,
337
337
  ellipsis: a,
338
338
  accordion: g,
339
- autoOpen: w,
339
+ autoOpen: y,
340
340
  autoScrollIntoView: l,
341
341
  scrollConfig: v,
342
342
  hasCollapseButton: P,
@@ -348,79 +348,79 @@ function an(o, i) {
348
348
  onClickMenuItem: B,
349
349
  onCollapseChange: H,
350
350
  onEllipsisChange: j,
351
- ...O
352
- } = M, [u, re] = Z([], {
351
+ ...$
352
+ } = w, [u, re] = Z([], {
353
353
  defaultValue: D,
354
354
  value: L
355
355
  }), [Ce, Se] = Z([], {
356
356
  defaultValue: K,
357
357
  value: h
358
- }), [q, Ie] = Z(!1, {
359
- value: R
360
- }), Ne = T(V), { siderCollapsed: xe } = T(ze), $ = k || N("menu"), G = xe || q || e || d === "popButton", se = b || Ne.theme || ln, A = ne([]), le = ne([]), Pe = Ae(), Oe = Ue(), ie = Te(() => je(S), [S]), $e = oe(`${$}-`), X = O.id || $e;
361
- te(() => {
362
- let t = u.filter(
363
- (I) => A.current.indexOf(I) !== -1
358
+ }), [q, Ne] = Z(!1, {
359
+ value: _
360
+ }), Ie = A(V), { siderCollapsed: xe } = A(ze), O = k || I("menu"), G = xe || q || e || d === "popButton", se = b || Ie.theme || lt, T = te([]), le = te([]), Pe = Te(), $e = Ue(), ie = Ae(() => je(S), [S]), Oe = oe(`${O}-`), X = $.id || Oe;
361
+ ne(() => {
362
+ let n = u.filter(
363
+ (N) => T.current.indexOf(N) !== -1
364
364
  );
365
- if (w) {
366
- const I = A.current.filter(
365
+ if (y) {
366
+ const N = T.current.filter(
367
367
  (E) => le.current.indexOf(E) === -1
368
368
  );
369
- t = u.concat(I);
369
+ n = u.concat(N);
370
370
  }
371
- re(g ? t.slice(0, 1) : t), le.current = A.current.slice();
372
- }, [A.current.toString()]);
371
+ re(g ? n.slice(0, 1) : n), le.current = T.current.slice();
372
+ }, [T.current.toString()]);
373
373
  const ce = d !== "horizontal" && d !== "popButton" && !e && P, Ee = () => {
374
- const t = we(S, { level: 1 }), I = q ? f && f.collapseActive || /* @__PURE__ */ n(_e, {}) : f && f.collapseDefault || /* @__PURE__ */ n(Ke, {}), E = () => {
375
- const _ = !q;
376
- Ie(_), H == null || H(_);
374
+ const n = ye(S, { level: 1 }), N = q ? f && f.collapseActive || /* @__PURE__ */ t(Re, {}) : f && f.collapseDefault || /* @__PURE__ */ t(Ke, {}), E = () => {
375
+ const R = !q;
376
+ Ne(R), H == null || H(R);
377
377
  };
378
378
  return /* @__PURE__ */ Q(De, { children: [
379
- /* @__PURE__ */ n("div", { className: `${$}-inner`, children: d === "horizontal" && a !== !1 ? /* @__PURE__ */ n(
380
- sn,
379
+ /* @__PURE__ */ t("div", { className: `${O}-inner`, children: d === "horizontal" && a !== !1 ? /* @__PURE__ */ t(
380
+ st,
381
381
  {
382
- ellipsisText: Re(a) ? a.text : "···",
382
+ ellipsisText: _e(a) ? a.text : "···",
383
383
  onEllipsisChange: j,
384
- children: t
384
+ children: n
385
385
  }
386
- ) : t }),
387
- ce && /* @__PURE__ */ n(
386
+ ) : n }),
387
+ ce && /* @__PURE__ */ t(
388
388
  "div",
389
389
  {
390
390
  tabIndex: 0,
391
391
  role: "button",
392
392
  "aria-controls": X,
393
393
  "aria-expanded": !q,
394
- className: `${$}-collapse-button`,
394
+ className: `${O}-collapse-button`,
395
395
  onClick: E,
396
- ...Oe({ onPressEnter: E }),
397
- children: I
396
+ ...$e({ onPressEnter: E }),
397
+ children: N
398
398
  }
399
399
  )
400
400
  ] });
401
401
  }, ae = { ...p };
402
- return G && !e && delete ae.width, /* @__PURE__ */ n(
402
+ return G && !e && delete ae.width, /* @__PURE__ */ t(
403
403
  "div",
404
404
  {
405
405
  id: ce ? X : void 0,
406
406
  role: "menu",
407
- ...Y(O, ["isMenu"]),
407
+ ...Y($, ["isMenu"]),
408
408
  ref: i,
409
409
  style: ae,
410
410
  className: U(
411
- $,
412
- `${$}-${se}`,
413
- `${$}-${d === "horizontal" ? "horizontal" : "vertical"}`,
411
+ O,
412
+ `${O}-${se}`,
413
+ `${O}-${d === "horizontal" ? "horizontal" : "vertical"}`,
414
414
  {
415
- [`${$}-collapse`]: G,
415
+ [`${O}-collapse`]: G,
416
416
  // 缩起状态自动变成 pop 模式
417
- [`${$}-pop`]: d === "pop" || G,
418
- [`${$}-pop-button`]: d === "popButton",
419
- [`${$}-rtl`]: C
417
+ [`${O}-pop`]: d === "pop" || G,
418
+ [`${O}-pop-button`]: d === "popButton",
419
+ [`${O}-rtl`]: C
420
420
  },
421
- y
421
+ M
422
422
  ),
423
- children: /* @__PURE__ */ n(
423
+ children: /* @__PURE__ */ t(
424
424
  V.Provider,
425
425
  {
426
426
  value: {
@@ -438,20 +438,20 @@ function an(o, i) {
438
438
  scrollConfig: v,
439
439
  // pass props directly
440
440
  id: X,
441
- prefixCls: $,
442
- collectInlineMenuKeys: (t, I) => {
443
- I ? A.current = A.current.filter(
444
- (E) => E !== t
445
- ) : A.current.push(t), Pe();
441
+ prefixCls: O,
442
+ collectInlineMenuKeys: (n, N) => {
443
+ N ? T.current = T.current.filter(
444
+ (E) => E !== n
445
+ ) : T.current.push(n), Pe();
446
446
  },
447
- onClickMenuItem: (t, I) => {
447
+ onClickMenuItem: (n, N) => {
448
448
  var E;
449
- r && Se([t]), B == null || B(t, I, (E = ie[t]) == null ? void 0 : E.keyPath);
449
+ r && Se([n]), B == null || B(n, N, (E = ie[n]) == null ? void 0 : E.keyPath);
450
450
  },
451
- onClickSubMenu: (t, I, E) => {
451
+ onClickSubMenu: (n, N, E) => {
452
452
  var ue;
453
- let _ = [...u];
454
- E === "inline" && ((u == null ? void 0 : u.indexOf(t)) > -1 ? g && I === 1 ? _ = [] : _ = u.filter((ke) => ke !== t) : g && I === 1 ? _ = [t] : _ = u.concat([t])), re(_), z == null || z(t, _, (ue = ie[t]) == null ? void 0 : ue.keyPath);
453
+ let R = [...u];
454
+ E === "inline" && ((u == null ? void 0 : u.indexOf(n)) > -1 ? g && N === 1 ? R = [] : R = u.filter((ke) => ke !== n) : g && N === 1 ? R = [n] : R = u.concat([n])), re(R), z == null || z(n, R, (ue = ie[n]) == null ? void 0 : ue.keyPath);
455
455
  }
456
456
  },
457
457
  children: Ee()
@@ -460,7 +460,7 @@ function an(o, i) {
460
460
  }
461
461
  );
462
462
  }
463
- const un = he(an), W = un;
463
+ const at = he(ct), W = at;
464
464
  W.displayName = "Menu";
465
465
  W.Item = Be;
466
466
  W.SubMenu = J;
@@ -468,6 +468,6 @@ W.ItemGroup = He;
468
468
  W.__PQB_MENU__ = !0;
469
469
  export {
470
470
  W as M,
471
- sn as O,
471
+ st as O,
472
472
  J as S
473
473
  };
@@ -1,5 +1,5 @@
1
1
  import { useState as w, useCallback as h, useEffect as m } from "react";
2
- import { s as p, u as O } from "./ZrBrCzQX.js";
2
+ import { s as p, u as O } from "./B4WG1mhs.js";
3
3
  function E(u) {
4
4
  const {
5
5
  defaultInView: t,