@unicom-cloud/ui 0.8.63 → 0.8.65

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 (214) hide show
  1. package/Affix.js +2 -2
  2. package/Alert.js +2 -2
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +4 -4
  5. package/Avatar.js +2 -2
  6. package/BackTop.js +2 -2
  7. package/Badge.js +37 -31
  8. package/Breadcrumb.js +3 -3
  9. package/Button.js +82 -71
  10. package/Calendar.js +4 -4
  11. package/Card.js +2 -2
  12. package/Carousel.js +2 -2
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +5 -5
  17. package/Comment.js +2 -2
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +3 -3
  20. package/DatePicker.js +92 -92
  21. package/Descriptions.js +2 -2
  22. package/Divider.js +2 -2
  23. package/Draggable.js +2 -2
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +27 -26
  26. package/Empty.js +2 -2
  27. package/Form.js +4 -4
  28. package/Grid.js +3 -3
  29. package/Icon.js +3 -2
  30. package/IconHover.js +2 -2
  31. package/Image.js +4 -1
  32. package/Input.js +11 -2
  33. package/InputNumber.js +3 -3
  34. package/InputTag.js +1 -1
  35. package/Layout.js +25 -21
  36. package/Link.js +2 -2
  37. package/List.js +31 -30
  38. package/Mentions.js +4 -4
  39. package/Menu.js +7 -2
  40. package/Message.js +4 -3
  41. package/Modal.js +1 -1
  42. package/Notice.js +2 -2
  43. package/Notification.js +4 -3
  44. package/OverflowEllipsis.js +2 -2
  45. package/PageHeader.js +2 -2
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +2 -2
  49. package/Popover.js +2 -2
  50. package/Progress.js +2 -2
  51. package/Radio.js +4 -2
  52. package/Rate.js +2 -2
  53. package/ResizeBox.js +140 -137
  54. package/Result.js +2 -2
  55. package/Select.js +4 -1
  56. package/SelectView.js +7 -7
  57. package/Skeleton.js +2 -2
  58. package/Slider.js +5 -5
  59. package/Space.js +54 -50
  60. package/Spin.js +2 -2
  61. package/Statistic.js +29 -28
  62. package/Steps.js +41 -39
  63. package/Switch.js +3 -3
  64. package/Table.js +8 -5
  65. package/Tabs.js +6 -2
  66. package/Tag.js +2 -2
  67. package/TimePicker.js +38 -37
  68. package/Timeline.js +4 -2
  69. package/Tooltip.js +2 -2
  70. package/Transfer.js +4 -4
  71. package/Tree.js +1 -1
  72. package/TreeSelect.js +3 -1
  73. package/Trigger.js +43 -42
  74. package/Typography.js +6 -2
  75. package/Upload.js +3 -3
  76. package/VerificationCode.js +1 -1
  77. package/Version.js +5 -3
  78. package/Watermark.js +1 -1
  79. package/chunk/{DDDuw0Zi.js → 1GQdnTJp.js} +2 -2
  80. package/chunk/BAWsPQBM.js +11 -0
  81. package/chunk/{CfZWOhnc.js → BS09tn7B.js} +2 -2
  82. package/chunk/{CZ1wrD_H.js → BUCEs557.js} +2 -2
  83. package/chunk/BqGtwxTi.js +777 -0
  84. package/chunk/{BcwdVUDs.js → Bqk6yh16.js} +2 -2
  85. package/chunk/{CD7dGcUa.js → BqufsN8i.js} +4 -4
  86. package/chunk/{Dpzgtdt-.js → BtlvlGQN.js} +2 -2
  87. package/chunk/{BoDdbbF_.js → CF6p9R93.js} +4 -3
  88. package/chunk/{BnLshM9R.js → CGZ0In1p.js} +189 -182
  89. package/chunk/{B5gIo-hD.js → CH1UUxsg.js} +4 -4
  90. package/chunk/{D3dcFbex.js → CIlGCedk.js} +3 -3
  91. package/chunk/{CgDayZDE.js → CPcm9Cm5.js} +2 -2
  92. package/chunk/{Cqyp4qni.js → CSC_V_25.js} +45 -45
  93. package/chunk/{JpKOcIfl.js → CWgltRVL.js} +44 -41
  94. package/chunk/{BLLKKgZJ.js → CsbCHnFk.js} +23 -21
  95. package/chunk/{Cb_oWoGj.js → CwhPMMWy.js} +14 -14
  96. package/chunk/{B9w_puFP.js → DG-epQqF.js} +2 -2
  97. package/chunk/{QFkhCtUr.js → DIx0qmCq.js} +3 -3
  98. package/chunk/{Bn2-vqTg.js → DK4KcodH.js} +201 -195
  99. package/chunk/{BEB_A9eY.js → DLvMA1OW.js} +2 -2
  100. package/chunk/{DbPYtS7-.js → DQDkV47j.js} +2 -2
  101. package/chunk/{rlfmXePI.js → DTjcKyDN.js} +135 -134
  102. package/chunk/{BmO1y0vr.js → DUeHQKtx.js} +12 -12
  103. package/chunk/{C6Zb_-OE.js → DXZEpA3t.js} +2 -2
  104. package/chunk/{aqSmxUbY.js → DjtWv6Wn.js} +1 -1
  105. package/chunk/{C5S_amaH.js → DlLL5JQo.js} +106 -101
  106. package/chunk/{CvlD3aiv.js → Dnycc1qJ.js} +133 -130
  107. package/chunk/{DbLgopUR.js → DqFhzTWC.js} +3 -3
  108. package/chunk/{DXZ8-ha7.js → Dv_xRzvR.js} +3 -3
  109. package/chunk/{Dk6hL04k.js → Ek8U5CTN.js} +222 -221
  110. package/chunk/{CfTcP6nF.js → ewRDIDUz.js} +4 -4
  111. package/chunk/{CAxIyiy6.js → tYXLFPVI.js} +6 -4
  112. package/hooks/useIntersectionObserver.js +1 -1
  113. package/hooks/useMergeValue.js +2 -2
  114. package/index.js +530 -476
  115. package/locale/en-US.js +1 -1
  116. package/locale/tr-TR.js +1 -1
  117. package/package.json +1 -1
  118. package/style/variable.less +820 -0
  119. package/style.css +1 -1
  120. package/types/badge/index.d.ts +2 -2
  121. package/types/button/index.d.ts +3 -1
  122. package/types/calendar/hook/useCellClassName.d.ts +2 -1
  123. package/types/checkbox/IconCheck.d.ts +2 -1
  124. package/types/config-provider/interface.d.ts +1 -1
  125. package/types/date-picker/hook/useCellClassName.d.ts +2 -1
  126. package/types/date-picker/panel/Footer.d.ts +2 -1
  127. package/types/dropdown/index.d.ts +1 -0
  128. package/types/form/IconSymbol.d.ts +2 -1
  129. package/types/form/useForm.d.ts +2 -1
  130. package/types/icon/addFromIconFontCn.d.ts +2 -1
  131. package/types/icon/index.d.ts +2 -0
  132. package/types/image/Image.d.ts +1 -0
  133. package/types/image/index.d.ts +2 -1
  134. package/types/image/util/getFixTranslate.d.ts +2 -1
  135. package/types/image/util/hook/useImageStatus.d.ts +2 -2
  136. package/types/image/util/hook/useShowFooter.d.ts +2 -2
  137. package/types/index.d.ts +26 -26
  138. package/types/input/Input.d.ts +1 -0
  139. package/types/input/index.d.ts +1 -0
  140. package/types/input/useComposition.d.ts +2 -1
  141. package/types/input-number/useSelectionRange.d.ts +2 -1
  142. package/types/layout/index.d.ts +1 -0
  143. package/types/list/index.d.ts +1 -0
  144. package/types/menu/Indent.d.ts +2 -1
  145. package/types/menu/Menu.d.ts +1 -0
  146. package/types/menu/index.d.ts +1 -0
  147. package/types/message/index.d.ts +2 -0
  148. package/types/notification/index.d.ts +2 -0
  149. package/types/overflow-ellipsis/OverflowItem.d.ts +2 -2
  150. package/types/overflow-ellipsis/index.d.ts +2 -2
  151. package/types/radio/Radio.d.ts +2 -0
  152. package/types/radio/index.d.ts +2 -1
  153. package/types/resize-box/ResizeTrigger.d.ts +2 -1
  154. package/types/resize-box/index.d.ts +1 -0
  155. package/types/result/403.d.ts +2 -1
  156. package/types/result/404.d.ts +2 -1
  157. package/types/result/500.d.ts +2 -1
  158. package/types/select/Select.d.ts +1 -1
  159. package/types/select/index.d.ts +1 -0
  160. package/types/select/interface.d.ts +1 -1
  161. package/types/skeleton/Image.d.ts +2 -1
  162. package/types/skeleton/Text.d.ts +2 -1
  163. package/types/slider/hook/useLegalValue.d.ts +2 -1
  164. package/types/space/index.d.ts +2 -0
  165. package/types/space/toArray.d.ts +2 -1
  166. package/types/speech-synthesis/index.d.ts +2 -1
  167. package/types/spin/DotLoading.d.ts +2 -1
  168. package/types/statistic/index.d.ts +1 -0
  169. package/types/steps/index.d.ts +1 -0
  170. package/types/table/hook/useComponent.d.ts +2 -1
  171. package/types/table/hook/useExpand.d.ts +2 -1
  172. package/types/table/hook/useRowSelection.d.ts +2 -1
  173. package/types/table/hook/useSorter.d.ts +2 -1
  174. package/types/table/index.d.ts +2 -1
  175. package/types/table/summary/index.d.ts +3 -0
  176. package/types/tabs/Tab.d.ts +1 -0
  177. package/types/tabs/TabContent.d.ts +2 -2
  178. package/types/tabs/hook/useDomSize.d.ts +2 -1
  179. package/types/tabs/hook/useHeaderScroll.d.ts +2 -1
  180. package/types/tabs/index.d.ts +1 -0
  181. package/types/tabs/tab-header/DropdownIcon.d.ts +2 -1
  182. package/types/time-picker/TimeColumn.d.ts +2 -2
  183. package/types/time-picker/index.d.ts +5 -0
  184. package/types/timeline/Timeline.d.ts +1 -0
  185. package/types/timeline/index.d.ts +1 -0
  186. package/types/tree-select/Select.d.ts +5 -0
  187. package/types/tree-select/hook/useTreeData.d.ts +2 -1
  188. package/types/tree-select/index.d.ts +2 -1
  189. package/types/typography/Operations.d.ts +2 -1
  190. package/types/typography/index.d.ts +1 -0
  191. package/types/upload/Upload.d.ts +2 -1
  192. package/types/upload/index.d.ts +2 -3
  193. package/types/utils/fillNBSP.d.ts +2 -1
  194. package/types/utils/getHighlightText.d.ts +2 -1
  195. package/types/utils/getHotkeyHandler.d.ts +2 -1
  196. package/types/utils/getStringLength.d.ts +2 -1
  197. package/types/utils/include.d.ts +2 -1
  198. package/types/utils/mergeProps.d.ts +2 -1
  199. package/types/utils/mergedToString.d.ts +2 -1
  200. package/types/utils/omit.d.ts +2 -1
  201. package/types/utils/pick.d.ts +2 -1
  202. package/types/utils/throttleByRaf.d.ts +2 -1
  203. package/types/utils/throttleByRafV2.d.ts +2 -1
  204. package/types/utils/warning.d.ts +2 -1
  205. package/types/version/index.d.ts +2 -0
  206. package/utils/className.js +1 -1
  207. package/utils/contextHolder.js +1 -1
  208. package/utils/copy.js +1 -1
  209. package/utils/index.js +41 -41
  210. package/utils/is.js +37 -37
  211. package/utils/reactDOM.js +3 -3
  212. package/utils/scrollIntoView.js +1 -1
  213. package/chunk/BzPkh4Zv.js +0 -11
  214. package/chunk/Co3idurS.js +0 -774
@@ -1,9 +1,9 @@
1
1
  import { jsx as i, jsxs as _, Fragment as Je } from "react/jsx-runtime";
2
2
  import W, { useContext as O, useState as Oe, useRef as ge, useEffect as te, forwardRef as Ae, createElement as J } from "react";
3
- import { d as A } from "./C5S_amaH.js";
3
+ import { d as A } from "./DlLL5JQo.js";
4
4
  import { useMergeProps as Fe } from "../hooks/useMergeProps.js";
5
5
  import { useMergeValue as le } from "../hooks/useMergeValue.js";
6
- import { y as q } from "./BzPkh4Zv.js";
6
+ import { y as q } from "./BAWsPQBM.js";
7
7
  import { pickDataAttributes as _e } from "../utils/pick.js";
8
8
  import Le from "@unicom-cloud/icons/IconUiLeft";
9
9
  import Te from "@unicom-cloud/icons/IconUiMore";
@@ -12,8 +12,8 @@ import { useKeyboardEvent as pe } from "../hooks/useKeyboardEvent.js";
12
12
  import Be from "lodash/isFunction";
13
13
  import Ke from "lodash/isPlainObject";
14
14
  import ce from "lodash/isUndefined";
15
- import { I as Ve } from "./Bn2-vqTg.js";
16
- import { S as fe } from "./Co3idurS.js";
15
+ import { I as Ve } from "./DK4KcodH.js";
16
+ import { S as fe } from "./BqGtwxTi.js";
17
17
  var R = /* @__PURE__ */ ((e) => (e[e.previous = 0] = "previous", e[e.next = 1] = "next", e))(R || {});
18
18
  function De(e) {
19
19
  var M, h, t;
@@ -5,15 +5,15 @@ import _ from "lodash/isNumber";
5
5
  import ee from "lodash/isPlainObject";
6
6
  import Ie from "lodash/isUndefined";
7
7
  import xe, { useContext as re, useMemo as R, useRef as oe, useEffect as G } from "react";
8
- import { d as Ve } from "./C5S_amaH.js";
8
+ import { d as Ve } from "./DlLL5JQo.js";
9
9
  import { useInView as Le } from "../hooks/useInView.js";
10
10
  import { useKeyboardEvent as ye } from "../hooks/useKeyboardEvent.js";
11
11
  import { useMergeProps as Ee } from "../hooks/useMergeProps.js";
12
12
  import { useMergeValue as Fe } from "../hooks/useMergeValue.js";
13
- import { y as h } from "./BzPkh4Zv.js";
13
+ import { y as h } from "./BAWsPQBM.js";
14
14
  import Re from "../utils/omit.js";
15
15
  import Ge from "@unicom-cloud/icons/IconUiMore";
16
- import { T as Ue, P as ie, a as je, b as Me, u as Se } from "./DbLgopUR.js";
16
+ import { T as Ue, P as ie, a as je, b as Me, u as Se } from "./DqFhzTWC.js";
17
17
  function te(v) {
18
18
  const { title: w, description: $, actions: t } = v, a = w || $, l = t && t.length;
19
19
  return [a || l, a, l];
@@ -1,9 +1,9 @@
1
1
  import { jsx as g } from "react/jsx-runtime";
2
2
  import { forwardRef as l, useContext as u, useRef as p, useCallback as d, useEffect as C } from "react";
3
- import { d as h } from "./C5S_amaH.js";
3
+ import { d as h } from "./DlLL5JQo.js";
4
4
  import { useWatermark as x } from "../hooks/use-watermark.js";
5
5
  import { useMergeProps as k } from "../hooks/useMergeProps.js";
6
- import { y } from "./BzPkh4Zv.js";
6
+ import { y } from "./BAWsPQBM.js";
7
7
  const w = {}, W = [
8
8
  "zIndex",
9
9
  "width",
@@ -1,50 +1,50 @@
1
- import "lodash/isArguments";
2
- import p from "lodash/isArray";
3
- import "lodash/isArrayBuffer";
4
- import "lodash/isArrayLike";
5
- import "lodash/isArrayLikeObject";
6
- import "lodash/isBoolean";
7
- import "lodash/isBuffer";
8
- import "lodash/isDate";
9
- import "lodash/isElement";
10
- import e from "lodash/isEmpty";
11
- import "lodash/isEqual";
12
- import "lodash/isEqualWith";
13
- import "lodash/isError";
14
- import "lodash/isFinite";
15
- import "lodash/isFunction";
16
- import "lodash/isInteger";
17
- import "lodash/isLength";
18
- import "lodash/isMap";
19
- import "lodash/isMatch";
20
- import "lodash/isMatchWith";
21
- import "lodash/isNaN";
22
- import "lodash/isNative";
23
- import c from "lodash/isNil";
24
- import "lodash/isNull";
25
- import "lodash/isNumber";
26
- import a from "lodash/isObject";
27
- import "lodash/isObjectLike";
28
- import "lodash/isPlainObject";
29
- import "lodash/isRegExp";
30
- import "lodash/isSafeInteger";
31
- import "lodash/isSet";
32
- import "lodash/isString";
33
- import "lodash/isSymbol";
34
- import "lodash/isTypedArray";
35
- import "lodash/isUndefined";
36
- import "lodash/isWeakMap";
37
- import "lodash/isWeakSet";
38
- function M(t) {
1
+ import "lodash/isArguments.js";
2
+ import p from "lodash/isArray.js";
3
+ import "lodash/isArrayBuffer.js";
4
+ import "lodash/isArrayLike.js";
5
+ import "lodash/isArrayLikeObject.js";
6
+ import "lodash/isBoolean.js";
7
+ import "lodash/isBuffer.js";
8
+ import "lodash/isDate.js";
9
+ import "lodash/isElement.js";
10
+ import e from "lodash/isEmpty.js";
11
+ import "lodash/isEqual.js";
12
+ import "lodash/isEqualWith.js";
13
+ import "lodash/isError.js";
14
+ import "lodash/isFinite.js";
15
+ import "lodash/isFunction.js";
16
+ import "lodash/isInteger.js";
17
+ import "lodash/isLength.js";
18
+ import "lodash/isMap.js";
19
+ import "lodash/isMatch.js";
20
+ import "lodash/isMatchWith.js";
21
+ import "lodash/isNaN.js";
22
+ import "lodash/isNative.js";
23
+ import c from "lodash/isNil.js";
24
+ import "lodash/isNull.js";
25
+ import "lodash/isNumber.js";
26
+ import a from "lodash/isObject.js";
27
+ import "lodash/isObjectLike.js";
28
+ import "lodash/isPlainObject.js";
29
+ import "lodash/isRegExp.js";
30
+ import "lodash/isSafeInteger.js";
31
+ import "lodash/isSet.js";
32
+ import "lodash/isString.js";
33
+ import "lodash/isSymbol.js";
34
+ import "lodash/isTypedArray.js";
35
+ import "lodash/isUndefined.js";
36
+ import "lodash/isWeakMap.js";
37
+ import "lodash/isWeakSet.js";
38
+ function L(t) {
39
39
  return t instanceof Promise;
40
40
  }
41
- function T(t) {
41
+ function M(t) {
42
42
  return p(t) && e(t);
43
43
  }
44
- function U(t) {
44
+ function T(t) {
45
45
  return a(t) && e(t);
46
46
  }
47
- function V(t) {
47
+ function U(t) {
48
48
  return c(t) || t === "";
49
49
  }
50
50
  function W(t) {
@@ -78,8 +78,8 @@ function pt(t) {
78
78
  return l(t);
79
79
  }
80
80
  export {
81
- U as G,
82
- V as H,
81
+ T as G,
82
+ U as H,
83
83
  pt as J,
84
84
  W as K,
85
85
  tt as Q,
@@ -91,6 +91,6 @@ export {
91
91
  l as m,
92
92
  mt as r,
93
93
  nt as t,
94
- M as v,
95
- T as z
94
+ L as v,
95
+ M as z
96
96
  };
@@ -3,14 +3,14 @@ import Ae from "@unicom-cloud/icons/IconUiMenuFold";
3
3
  import Ue from "@unicom-cloud/icons/IconUiMenuUnfold";
4
4
  import He from "lodash/isPlainObject";
5
5
  import L, { createContext as Be, useContext as K, forwardRef as X, useRef as J, useEffect as Z, useState as Ce, useMemo as Fe } from "react";
6
- import { d as Ie } from "./C5S_amaH.js";
6
+ import { d as Ie } from "./DlLL5JQo.js";
7
7
  import { useForceUpdate as Ve } from "../hooks/useForceUpdate.js";
8
8
  import { useId as le } from "../hooks/useId.js";
9
9
  import { useKeyboardEvent as We } from "../hooks/useKeyboardEvent.js";
10
10
  import { useMergeProps as Ge } from "../hooks/useMergeProps.js";
11
11
  import { useMergeValue as re } from "../hooks/useMergeValue.js";
12
- import { a as ze } from "./DbPYtS7-.js";
13
- import { y as H } from "./BzPkh4Zv.js";
12
+ import { a as ze } from "./DQDkV47j.js";
13
+ import { y as H } from "./BAWsPQBM.js";
14
14
  import z from "../utils/omit.js";
15
15
  import { p as je } from "./CANaGbGR.js";
16
16
  import { useIsFirstRender as qe } from "../hooks/useIsFirstRender.js";
@@ -53,13 +53,13 @@ const Ne = [
53
53
  const s = Se(l);
54
54
  return s.forEach((r, n) => {
55
55
  var p, C;
56
- const c = r.key, u = r.type.menuType, h = [c, ...o], y = {
56
+ const c = r.key, u = r.type.menuType, m = [c, ...o], y = {
57
57
  keyPath: [],
58
58
  prev: ((p = s[n - 1]) == null ? void 0 : p.key) || null,
59
59
  next: ((C = s[n + 1]) == null ? void 0 : C.key) || null
60
60
  };
61
61
  if (n === 0 || n === s.length - 1) {
62
- const a = h[1], S = n === 0 ? "firstChild" : "lastChild";
62
+ const a = m[1], S = n === 0 ? "firstChild" : "lastChild";
63
63
  a && (e[a] = {
64
64
  ...e[a],
65
65
  [S]: c
@@ -67,10 +67,10 @@ const Ne = [
67
67
  }
68
68
  switch (u) {
69
69
  case "SubMenu":
70
- y.keyPath = h, ke(r.props.children, h, e);
70
+ y.keyPath = m, ke(r.props.children, m, e);
71
71
  break;
72
72
  case "MenuItem":
73
- y.keyPath = h, y.disabled = r.props.disabled;
73
+ y.keyPath = m, y.disabled = r.props.disabled;
74
74
  break;
75
75
  }
76
76
  e[c] = {
@@ -117,7 +117,7 @@ function rn(l, o) {
117
117
  disabled: n,
118
118
  className: c,
119
119
  style: u,
120
- wrapper: h = "div",
120
+ wrapper: m = "div",
121
121
  onClick: y,
122
122
  renderItemInTooltip: p,
123
123
  ...C
@@ -132,12 +132,12 @@ function rn(l, o) {
132
132
  scrollConfig: b,
133
133
  tooltipProps: w,
134
134
  onClickMenuItem: v
135
- } = K(B), m = J(null), x = qe(), P = S === "vertical" && r > 1, O = E && !t && r === 1, $ = d && ~d.indexOf(e);
135
+ } = K(B), h = J(null), x = qe(), P = S === "vertical" && r > 1, O = E && !t && r === 1, $ = d && ~d.indexOf(e);
136
136
  Z(() => {
137
137
  const k = $ && g;
138
- m.current && k && setTimeout(
138
+ h.current && k && setTimeout(
139
139
  () => {
140
- m.current && je(m.current, {
140
+ h.current && je(h.current, {
141
141
  behavior: "smooth",
142
142
  block: "start",
143
143
  scrollMode: "if-needed",
@@ -151,12 +151,12 @@ function rn(l, o) {
151
151
  const A = (k) => {
152
152
  n || (v == null || v(e, k), y == null || y(k));
153
153
  }, I = /* @__PURE__ */ F(
154
- h,
154
+ m,
155
155
  {
156
156
  tabIndex: n ? -1 : 0,
157
157
  role: "menuitem",
158
158
  ref: (k) => {
159
- o = k, m.current = o;
159
+ o = k, h.current = o;
160
160
  },
161
161
  style: u,
162
162
  className: H(
@@ -221,7 +221,7 @@ const sn = X(rn), ce = sn;
221
221
  ce.displayName = "MenuItem";
222
222
  ce.menuType = "MenuItem";
223
223
  function ln(l, o) {
224
- const { children: e, title: s, level: r, className: n, style: c } = l, { prefixCls: u, levelIndent: h } = K(B), y = r === 1 ? r + 1 : r, p = ne(e, {
224
+ const { children: e, title: s, level: r, className: n, style: c } = l, { prefixCls: u, levelIndent: m } = K(B), y = r === 1 ? r + 1 : r, p = ne(e, {
225
225
  level: y
226
226
  });
227
227
  return /* @__PURE__ */ F(
@@ -237,7 +237,7 @@ function ln(l, o) {
237
237
  {
238
238
  level: r,
239
239
  prefixCls: u,
240
- levelIndent: h
240
+ levelIndent: m
241
241
  }
242
242
  ),
243
243
  /* @__PURE__ */ i("span", { children: s })
@@ -259,7 +259,7 @@ const se = { height: 0, visibility: "hidden" }, an = (l) => {
259
259
  title: n,
260
260
  level: c,
261
261
  forwardedRef: u,
262
- selectable: h,
262
+ selectable: m,
263
263
  ...y
264
264
  } = l, {
265
265
  id: p,
@@ -270,14 +270,14 @@ const se = { height: 0, visibility: "hidden" }, an = (l) => {
270
270
  icons: t,
271
271
  onClickSubMenu: f,
272
272
  onClickMenuItem: d
273
- } = K(B), g = `${C}-inline`, b = (S == null ? void 0 : S.indexOf(o)) > -1, w = h && E.indexOf(l._key) > -1 || xe(e, E), [v, m] = Xe(
273
+ } = K(B), g = `${C}-inline`, b = (S == null ? void 0 : S.indexOf(o)) > -1, w = m && E.indexOf(l._key) > -1 || xe(e, E), [v, h] = Xe(
274
274
  b ? { height: "auto" } : se
275
275
  ), x = (I) => {
276
- f(o, c, "inline"), h && d(o, I);
276
+ f(o, c, "inline"), m && d(o, I);
277
277
  }, P = le(`${p}-submenu-inline-`), O = ne(e, {
278
278
  ...en(y, Ne),
279
279
  level: c + 1,
280
- selectable: h
280
+ selectable: m
281
281
  }), $ = /* @__PURE__ */ F(
282
282
  "div",
283
283
  {
@@ -330,13 +330,13 @@ const se = { height: 0, visibility: "hidden" }, an = (l) => {
330
330
  classNames: g,
331
331
  unmountOnExit: !1,
332
332
  onEnter: async (I) => {
333
- I && (await m(se), await m({ height: I.scrollHeight }));
333
+ I && (await h(se), await h({ height: I.scrollHeight }));
334
334
  },
335
335
  onEntered: () => {
336
- m({ height: "auto" });
336
+ h({ height: "auto" });
337
337
  },
338
338
  onExit: async (I) => {
339
- I && (await m({ height: I.scrollHeight }), await m(se));
339
+ I && (await h({ height: I.scrollHeight }), await h(se));
340
340
  },
341
341
  children: A
342
342
  }
@@ -353,7 +353,7 @@ const se = { height: 0, visibility: "hidden" }, an = (l) => {
353
353
  title: n,
354
354
  level: c,
355
355
  selectable: u,
356
- forwardedRef: h,
356
+ forwardedRef: m,
357
357
  triggerProps: y,
358
358
  ...p
359
359
  } = l, {
@@ -367,7 +367,7 @@ const se = { height: 0, visibility: "hidden" }, an = (l) => {
367
367
  triggerProps: g,
368
368
  onClickSubMenu: b,
369
369
  onClickMenuItem: w
370
- } = K(B), { rtl: v } = K(Ie), m = { ...g, ...y }, [x, P] = Ce(!1), O = `${a}-pop`, $ = u && f.indexOf(l._key) > -1, A = S === "horizontal" && !E, I = le(`${C}-submenu-pop-`), k = () => {
370
+ } = K(B), { rtl: v } = K(Ie), h = { ...g, ...y }, [x, P] = Ce(!1), O = `${a}-pop`, $ = u && f.indexOf(l._key) > -1, A = S === "horizontal" && !E, I = le(`${C}-submenu-pop-`), k = () => {
371
371
  const _ = d && d.popArrowRight ? d.popArrowRight : v ? /* @__PURE__ */ i(nn, {}) : /* @__PURE__ */ i(tn, {}), N = d && d.horizontalArrowDown ? d.horizontalArrowDown : /* @__PURE__ */ i(ve, {});
372
372
  return /* @__PURE__ */ i("span", { className: `${a}-icon-suffix`, children: A ? N : _ });
373
373
  }, V = xe(e, f) || $, G = v ? ["br", "lt"] : ["bl", "rt"], q = (_) => {
@@ -400,9 +400,9 @@ const se = { height: 0, visibility: "hidden" }, an = (l) => {
400
400
  mouseLeaveDelay: 50,
401
401
  className: H(
402
402
  `${O}-trigger`,
403
- m && m.className
403
+ h.className
404
404
  ),
405
- ...z(m, ["className"])
405
+ ...z(h, ["className"])
406
406
  },
407
407
  children: /* @__PURE__ */ F(
408
408
  "div",
@@ -411,7 +411,7 @@ const se = { height: 0, visibility: "hidden" }, an = (l) => {
411
411
  "aria-haspopup": !0,
412
412
  "aria-expanded": x,
413
413
  "aria-controls": I,
414
- ref: h,
414
+ ref: m,
415
415
  style: s,
416
416
  className: H(
417
417
  O,
@@ -446,9 +446,9 @@ const se = { height: 0, visibility: "hidden" }, an = (l) => {
446
446
  );
447
447
  };
448
448
  function pn(l, o) {
449
- const { children: e, popup: s, level: r } = l, { mode: n, collapse: c, inDropdown: u, collectInlineMenuKeys: h } = K(B), C = !!(typeof s == "function" ? s(r) : s) || c || u || n !== "vertical" ? un : an;
450
- return Z(() => (h(l._key), () => {
451
- h(l._key, !0);
449
+ const { children: e, popup: s, level: r } = l, { mode: n, collapse: c, inDropdown: u, collectInlineMenuKeys: m } = K(B), C = !!(typeof s == "function" ? s(r) : s) || c || u || n !== "vertical" ? un : an;
450
+ return Z(() => (m(l._key), () => {
451
+ m(l._key, !0);
452
452
  }), []), /* @__PURE__ */ i(C, { forwardedRef: o, ...l, children: e });
453
453
  }
454
454
  const dn = X(pn), te = dn;
@@ -463,7 +463,7 @@ function be(l) {
463
463
  return isNaN(o) ? 0 : o;
464
464
  }
465
465
  const mn = (l) => {
466
- const { children: o, ellipsisText: e = "···", onEllipsisChange: s } = l, { prefixCls: r } = K(B), n = J(null), [c, u] = Ce(null), h = `${r}-overflow-sub-menu`, y = `${r}-overflow-hidden-menu-item`, p = `${r}-overflow-sub-menu-mirror`, C = (t) => {
466
+ const { children: o, ellipsisText: e = "···", onEllipsisChange: s } = l, { prefixCls: r } = K(B), n = J(null), [c, u] = Ce(null), m = `${r}-overflow-sub-menu`, y = `${r}-overflow-hidden-menu-item`, p = `${r}-overflow-sub-menu-mirror`, C = (t) => {
467
467
  if (t !== c) {
468
468
  const f = L.Children.toArray(o), d = t === null;
469
469
  s == null || s({
@@ -478,10 +478,10 @@ const mn = (l) => {
478
478
  const t = n.current, f = Me(t) - fn, d = [].slice.call(t.children);
479
479
  let g = 0, b = 0, w = 0;
480
480
  for (let v = 0; v < d.length; v++) {
481
- const m = d[v], x = m.className.split(" "), P = x.indexOf(h) > -1, O = x.indexOf(p) > -1;
481
+ const h = d[v], x = h.className.split(" "), P = x.indexOf(m) > -1, O = x.indexOf(p) > -1;
482
482
  if (P)
483
483
  continue;
484
- const $ = Me(m) + be(ge(m, "marginLeft")) + be(ge(m, "marginRight"));
484
+ const $ = Me(h) + be(ge(h, "marginLeft")) + be(ge(h, "marginRight"));
485
485
  if (O) {
486
486
  w = $;
487
487
  continue;
@@ -501,7 +501,7 @@ const mn = (l) => {
501
501
  te,
502
502
  {
503
503
  title: /* @__PURE__ */ i("span", { children: e }),
504
- className: f ? p : h,
504
+ className: f ? p : m,
505
505
  children: t
506
506
  },
507
507
  `pqb-menu-overflow-sub-menu${f ? "-mirror" : ""}`
@@ -516,12 +516,12 @@ const mn = (l) => {
516
516
  (v = g == null ? void 0 : g.props) == null ? void 0 : v.className
517
517
  )
518
518
  })), b === c + 1)) {
519
- const m = L.Children.toArray(o).slice(c + 1).map(
519
+ const h = L.Children.toArray(o).slice(c + 1).map(
520
520
  (x) => L.cloneElement(x, {
521
521
  key: x.props._key
522
522
  })
523
523
  );
524
- t = S(m);
524
+ t = S(h);
525
525
  }
526
526
  return w;
527
527
  }) ?? [];
@@ -547,7 +547,7 @@ function gn(l, o) {
547
547
  ), {
548
548
  style: c,
549
549
  children: u,
550
- className: h,
550
+ className: m,
551
551
  prefixCls: y,
552
552
  mode: p,
553
553
  theme: C,
@@ -561,7 +561,7 @@ function gn(l, o) {
561
561
  ellipsis: b,
562
562
  accordion: w,
563
563
  autoOpen: v,
564
- autoScrollIntoView: m,
564
+ autoScrollIntoView: h,
565
565
  scrollConfig: x,
566
566
  hasCollapseButton: P,
567
567
  defaultOpenKeys: O,
@@ -642,7 +642,7 @@ function gn(l, o) {
642
642
  [`${R}-pop-button`]: p === "popButton",
643
643
  [`${R}-rtl`]: r
644
644
  },
645
- h
645
+ m
646
646
  ),
647
647
  children: /* @__PURE__ */ i(
648
648
  B.Provider,
@@ -658,7 +658,7 @@ function gn(l, o) {
658
658
  icons: a,
659
659
  triggerProps: d,
660
660
  tooltipProps: g,
661
- autoScrollIntoView: m,
661
+ autoScrollIntoView: h,
662
662
  scrollConfig: x,
663
663
  // pass props directly
664
664
  id: oe,
@@ -691,5 +691,8 @@ j.SubMenu = te;
691
691
  j.ItemGroup = ae;
692
692
  j.__PQB_MENU__ = !0;
693
693
  export {
694
- j as M
694
+ ce as I,
695
+ j as M,
696
+ te as S,
697
+ ae as a
695
698
  };
@@ -1,11 +1,11 @@
1
- import { jsx as s, jsxs as z, Fragment as O } from "react/jsx-runtime";
1
+ import { jsx as i, jsxs as z, Fragment as O } from "react/jsx-runtime";
2
2
  import j from "lodash/isFunction";
3
3
  import w from "lodash/isNil";
4
4
  import B, { createContext as H, useContext as G, useRef as L } from "react";
5
- import { d as A, I as Q } from "./C5S_amaH.js";
5
+ import { d as A, I as Q } from "./DlLL5JQo.js";
6
6
  import { useMergeProps as D } from "../hooks/useMergeProps.js";
7
7
  import { useMergeValue as F } from "../hooks/useMergeValue.js";
8
- import { y as I } from "./BzPkh4Zv.js";
8
+ import { y as I } from "./BAWsPQBM.js";
9
9
  import S from "../utils/omit.js";
10
10
  import T from "lodash/isArray";
11
11
  import q from "lodash/isPlainObject";
@@ -17,7 +17,7 @@ const _ = {
17
17
  type: "radio",
18
18
  mode: "outline",
19
19
  direction: "horizontal"
20
- }, x = H(_), ne = ({ children: C }) => /* @__PURE__ */ s(x.Provider, { value: _, children: C });
20
+ }, x = H(_), ne = ({ children: C }) => /* @__PURE__ */ i(x.Provider, { value: _, children: C });
21
21
  function M(C) {
22
22
  const {
23
23
  getPrefixCls: b,
@@ -37,7 +37,7 @@ function M(C) {
37
37
  type: v,
38
38
  mode: k,
39
39
  options: g,
40
- disabled: i
40
+ disabled: s
41
41
  } = e, [l, R] = F(void 0, {
42
42
  defaultValue: e.defaultValue,
43
43
  value: e.value
@@ -47,7 +47,7 @@ function M(C) {
47
47
  [`${n}-group-type-button`]: v !== "radio",
48
48
  [`${n}-size-${$}`]: !!$,
49
49
  [`${n}-mode-${k}`]: !!k,
50
- [`${n}-group-disabled`]: i,
50
+ [`${n}-group-disabled`]: s,
51
51
  [`${n}-group-direction-vertical`]: p === "vertical",
52
52
  [`${n}-group-rtl`]: N
53
53
  },
@@ -59,11 +59,11 @@ function M(C) {
59
59
  },
60
60
  type: v,
61
61
  value: l,
62
- disabled: i,
62
+ disabled: s,
63
63
  group: !0,
64
64
  name: c
65
65
  };
66
- return /* @__PURE__ */ s(x.Provider, { value: u, children: /* @__PURE__ */ s(
66
+ return /* @__PURE__ */ i(x.Provider, { value: u, children: /* @__PURE__ */ i(
67
67
  "div",
68
68
  {
69
69
  className: P,
@@ -71,15 +71,15 @@ function M(C) {
71
71
  style: r,
72
72
  ...E(e),
73
73
  ...J(e),
74
- children: g && T(g) ? g.map((a, f) => q(a) ? /* @__PURE__ */ s(
74
+ children: g && T(g) ? g.map((a, f) => q(a) ? /* @__PURE__ */ i(
75
75
  h,
76
76
  {
77
- disabled: i || a.disabled,
77
+ disabled: s || a.disabled,
78
78
  value: a.value,
79
79
  children: a.label
80
80
  },
81
81
  a.value
82
- ) : /* @__PURE__ */ s(h, { value: a, disabled: i, children: a }, f)) : m
82
+ ) : /* @__PURE__ */ i(h, { value: a, disabled: s, children: a }, f)) : m
83
83
  }
84
84
  ) });
85
85
  }
@@ -91,7 +91,7 @@ function h(C) {
91
91
  d == null ? void 0 : d.Radio
92
92
  ), r = G(x), o = y("radio"), c = { ...e };
93
93
  r.group && (c.checked = r.value === e.value, c.disabled = "disabled" in e ? e.disabled : r.disabled);
94
- const { disabled: m, children: p, value: v, style: k, className: g, ...i } = c, [l, R] = F(!1, {
94
+ const { disabled: m, children: p, value: v, style: k, className: g, ...s } = c, [l, R] = F(!1, {
95
95
  value: c.checked,
96
96
  defaultValue: c.defaultChecked
97
97
  }), $ = I(
@@ -109,19 +109,19 @@ function h(C) {
109
109
  }, P = B.useCallback(
110
110
  (t) => {
111
111
  var u;
112
- j(e.children) && (t.preventDefault(), b.current && b.current.click()), (u = i.onClick) == null || u.call(i, t);
112
+ j(e.children) && (t.preventDefault(), b.current && b.current.click()), (u = s.onClick) == null || u.call(s, t);
113
113
  },
114
- [e.children, i.onClick]
114
+ [e.children, s.onClick]
115
115
  );
116
116
  return /* @__PURE__ */ z(
117
117
  "label",
118
118
  {
119
- ...S(i, ["checked", "onChange"]),
119
+ ...S(s, ["checked", "onChange"]),
120
120
  onClick: P,
121
121
  style: k,
122
122
  className: $,
123
123
  children: [
124
- /* @__PURE__ */ s(
124
+ /* @__PURE__ */ i(
125
125
  "input",
126
126
  {
127
127
  ref: b,
@@ -139,17 +139,17 @@ function h(C) {
139
139
  }
140
140
  ),
141
141
  j(p) ? p({ checked: l }) : r.type === "radio" ? /* @__PURE__ */ z(O, { children: [
142
- /* @__PURE__ */ s(
142
+ /* @__PURE__ */ i(
143
143
  Q,
144
144
  {
145
145
  prefix: o,
146
146
  className: `${o}-mask-wrapper`,
147
147
  disabled: l || m,
148
- children: /* @__PURE__ */ s("div", { className: `${o}-mask` })
148
+ children: /* @__PURE__ */ i("div", { className: `${o}-mask` })
149
149
  }
150
150
  ),
151
- !w(p) && /* @__PURE__ */ s("span", { className: `${o}-text`, children: p })
152
- ] }) : r.type === "button" && /* @__PURE__ */ s("span", { className: `${o}-button-inner`, children: p })
151
+ !w(p) && /* @__PURE__ */ i("span", { className: `${o}-text`, children: p })
152
+ ] }) : r.type === "button" && /* @__PURE__ */ i("span", { className: `${o}-button-inner`, children: p })
153
153
  ]
154
154
  }
155
155
  );
@@ -160,5 +160,7 @@ h.Group = M;
160
160
  h.GroupContext = x;
161
161
  export {
162
162
  ne as C,
163
- h as R
163
+ M as G,
164
+ h as R,
165
+ x as a
164
166
  };
@@ -1,28 +1,28 @@
1
- import a from "lodash/isString";
2
- function o() {
1
+ import r from "lodash/isString.js";
2
+ function n() {
3
3
  return new DOMException("The request is not allowed", "NotAllowedError");
4
4
  }
5
5
  async function i(t) {
6
6
  if (!navigator.clipboard)
7
- throw o();
7
+ throw n();
8
8
  return navigator.clipboard.writeText(t);
9
9
  }
10
10
  async function l(t) {
11
11
  const e = document.createElement("span");
12
12
  e.textContent = t, e.style.whiteSpace = "pre", e.style.webkitUserSelect = "auto", e.style.userSelect = "all", document.body.appendChild(e);
13
- const n = window.getSelection(), c = window.document.createRange();
14
- n.removeAllRanges(), c.selectNode(e), n.addRange(c);
15
- let r = !1;
13
+ const o = window.getSelection(), c = window.document.createRange();
14
+ o.removeAllRanges(), c.selectNode(e), o.addRange(c);
15
+ let a = !1;
16
16
  try {
17
- r = window.document.execCommand("copy");
17
+ a = window.document.execCommand("copy");
18
18
  } finally {
19
- n.removeAllRanges(), window.document.body.removeChild(e);
19
+ o.removeAllRanges(), window.document.body.removeChild(e);
20
20
  }
21
- if (!r) throw o();
21
+ if (!a) throw n();
22
22
  }
23
- async function s(t) {
23
+ async function w(t) {
24
24
  try {
25
- a(t) || (t = JSON.stringify(t) ?? t);
25
+ r(t) || (t = JSON.stringify(t) ?? t);
26
26
  } catch {
27
27
  }
28
28
  try {
@@ -30,11 +30,11 @@ async function s(t) {
30
30
  } catch (e) {
31
31
  try {
32
32
  await l(t);
33
- } catch (n) {
34
- throw n || e || o();
33
+ } catch (o) {
34
+ throw o || e || n();
35
35
  }
36
36
  }
37
37
  }
38
38
  export {
39
- s
39
+ w as s
40
40
  };
@@ -4,10 +4,10 @@ import B from "@unicom-cloud/icons/IconUiMinus";
4
4
  import I from "lodash/isFunction";
5
5
  import J from "lodash/isNil";
6
6
  import G, { createContext as K, useState as j, useContext as R, useCallback as F, useMemo as M, useRef as Q, useEffect as X } from "react";
7
- import { d as U, I as Y } from "./C5S_amaH.js";
7
+ import { d as U, I as Y } from "./DlLL5JQo.js";
8
8
  import { useMergeProps as Z } from "../hooks/useMergeProps.js";
9
9
  import { useMergeValue as z } from "../hooks/useMergeValue.js";
10
- import { y as D } from "./BzPkh4Zv.js";
10
+ import { y as D } from "./BAWsPQBM.js";
11
11
  import _ from "../utils/omit.js";
12
12
  import w from "lodash/isArray";
13
13
  import A from "lodash/isPlainObject";