@unicom-cloud/ui 0.8.73 → 0.8.75

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 (306) hide show
  1. package/Affix.js +2 -2
  2. package/Alert.js +3 -3
  3. package/AutoComplete.js +2 -2
  4. package/BackTop.js +4 -4
  5. package/Badge.js +3 -3
  6. package/Breadcrumb.js +3 -3
  7. package/Button.js +2 -2
  8. package/Calendar.js +3 -3
  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 +2 -2
  15. package/Comment.js +2 -2
  16. package/ConfigProvider.js +1 -1
  17. package/Copy.js +3 -3
  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 +2 -2
  23. package/Empty.js +2 -2
  24. package/Icon.js +2 -2
  25. package/IconHover.js +2 -2
  26. package/Image.js +1 -1
  27. package/InputNumber.js +2 -2
  28. package/Layout.js +2 -2
  29. package/Link.js +2 -2
  30. package/List.js +2 -2
  31. package/Mentions.js +2 -2
  32. package/Menu.js +1 -1
  33. package/Message.js +4 -4
  34. package/Modal.js +1 -1
  35. package/Notice.js +2 -2
  36. package/Notification.js +4 -4
  37. package/OverflowEllipsis.js +2 -2
  38. package/PageHeader.js +2 -2
  39. package/Popconfirm.js +2 -2
  40. package/Popover.js +2 -2
  41. package/Progress.js +2 -2
  42. package/Radio.js +1 -1
  43. package/Rate.js +2 -2
  44. package/ResizeBox.js +2 -2
  45. package/Result.js +2 -2
  46. package/SelectView.js +1 -1
  47. package/Skeleton.js +2 -2
  48. package/Slider.js +2 -2
  49. package/Space.js +2 -2
  50. package/SpeechSynthesis.js +4 -4
  51. package/Spin.js +2 -2
  52. package/Statistic.js +3 -3
  53. package/Steps.js +2 -2
  54. package/Switch.js +4 -4
  55. package/Table.js +1 -1
  56. package/Tabs.js +1 -1
  57. package/Tag.js +2 -2
  58. package/Tooltip.js +3 -3
  59. package/Transfer.js +2 -2
  60. package/Tree.js +1 -1
  61. package/Trigger.js +3 -3
  62. package/affix/index.js +2 -2
  63. package/alert/index.js +9 -9
  64. package/anchor/Anchor.js +26 -26
  65. package/anchor/Link.js +2 -2
  66. package/anchor/util.js +1 -1
  67. package/auto-complete/index.js +2 -2
  68. package/avatar/Avatar.js +2 -2
  69. package/avatar/Group.js +2 -2
  70. package/back-top/index.js +11 -11
  71. package/badge/Count.js +7 -7
  72. package/badge/index.js +9 -9
  73. package/breadcrumb/Item.js +6 -6
  74. package/breadcrumb/index.js +3 -3
  75. package/button/Group.js +2 -2
  76. package/button/index.js +2 -2
  77. package/calendar/Month.js +2 -2
  78. package/calendar/Year.js +1 -1
  79. package/calendar/index.js +4 -4
  80. package/card/Grid.js +5 -5
  81. package/card/Meta.js +4 -4
  82. package/card/index.js +2 -2
  83. package/carousel/Arrow.js +2 -2
  84. package/carousel/Indicator.js +6 -6
  85. package/carousel/index.js +2 -2
  86. package/cascader/Cascader.js +3 -3
  87. package/cascader/index.js +1 -1
  88. package/cascader/util.js +1 -1
  89. package/checkbox/Checkbox.js +3 -3
  90. package/checkbox/Group.js +3 -3
  91. package/checkbox/index.js +1 -1
  92. package/chunk/{oHDWCJnz.js → 0mWCmQHr.js} +3 -3
  93. package/chunk/{UDX9U6M7.js → B8hkFIar.js} +3 -3
  94. package/chunk/BFmckYou.js +25 -0
  95. package/chunk/{Cj2SQJiO.js → BJ9_azwQ.js} +487 -487
  96. package/chunk/{Dg0M2OmF.js → BViFMHr-.js} +5 -5
  97. package/chunk/BbqvFW5R.js +927 -0
  98. package/chunk/{uKZyjtff.js → BhBEMwvI.js} +21 -20
  99. package/chunk/{Bj4EV0eG.js → BpYX5PN4.js} +1 -1
  100. package/chunk/{B7hulkj9.js → BxZ39GzB.js} +2 -2
  101. package/chunk/C9XYyypq.js +713 -0
  102. package/chunk/CIkPwQlq.js +6 -0
  103. package/chunk/{uH6uxyao.js → CPlPBkN7.js} +2 -2
  104. package/chunk/CUFsOxJ2.js +10 -0
  105. package/chunk/CWlklVfi.js +257 -0
  106. package/chunk/{Ey4YJCkX.js → D0Dlbc2g.js} +2 -1
  107. package/chunk/{DejjIa3N.js → DFcz9ZPP.js} +35 -35
  108. package/chunk/{AwZqeapI.js → DRTWRsgI.js} +1 -1
  109. package/chunk/{D2LLXZQX.js → DeCsZrXb.js} +4 -4
  110. package/chunk/{DpoumMDw.js → DohlrJ4S.js} +1 -1
  111. package/chunk/DskaI8QL.js +25 -0
  112. package/chunk/{7HDzVe32.js → Dv6USvVF.js} +4 -4
  113. package/chunk/{DJDOFlqC.js → EL5Jmjgr.js} +2 -2
  114. package/chunk/{CiY7w1ZO.js → WVoGhvMI.js} +3 -3
  115. package/chunk/{BJ1soa2K.js → uEGHykhe.js} +18 -18
  116. package/collapse/Collapse.js +3 -3
  117. package/collapse/Item.js +4 -4
  118. package/collapse/index.js +1 -1
  119. package/color-picker/ControlBar.js +2 -2
  120. package/color-picker/InputAlpha.js +1 -1
  121. package/color-picker/InputHex.js +7 -7
  122. package/color-picker/InputRgb.js +6 -6
  123. package/color-picker/Palette.js +5 -5
  124. package/color-picker/Panel.js +4 -4
  125. package/color-picker/colors.js +7 -12
  126. package/color-picker/index.js +20 -20
  127. package/color-picker/utils.js +1 -1
  128. package/comment/index.js +6 -6
  129. package/config-provider/ConfigProvider.js +2 -2
  130. package/config-provider/context.js +1 -1
  131. package/config-provider/index.js +2 -2
  132. package/copy/index.js +16 -16
  133. package/date-picker/Picker.js +2 -2
  134. package/date-picker/PickerRange.js +3 -3
  135. package/date-picker/index.js +1 -1
  136. package/descriptions/index.js +2 -2
  137. package/divider/index.js +5 -5
  138. package/draggable/Item.js +1 -1
  139. package/draggable/index.js +9 -9
  140. package/drawer/Drawer.js +3 -3
  141. package/dropdown/Button.js +1 -1
  142. package/dropdown/index.js +2 -2
  143. package/empty/index.js +2 -2
  144. package/form/Control.js +1 -1
  145. package/form/Form.js +2 -2
  146. package/form/FormItem.js +3 -3
  147. package/form/FormLabel.js +9 -9
  148. package/form/context.js +1 -1
  149. package/grid/Col.js +2 -2
  150. package/grid/Row.js +2 -2
  151. package/grid/grid-item.js +2 -2
  152. package/grid/grid.js +8 -8
  153. package/icon/index.js +11 -11
  154. package/icon-hover/index.js +2 -2
  155. package/image/Image.js +4 -4
  156. package/image/ImageFooter.js +2 -2
  157. package/image/ImagePreview.js +5 -5
  158. package/image/ImagePreviewArrow.js +4 -4
  159. package/image/ImagePreviewGroup.js +1 -1
  160. package/image/ImagePreviewToolbar.js +1 -1
  161. package/image/TriggerForToolbar.js +4 -4
  162. package/image/index.js +1 -1
  163. package/index.js +586 -592
  164. package/input/Group.js +4 -4
  165. package/input/Input.js +45 -45
  166. package/input/InputElement.js +2 -2
  167. package/input/Password.js +2 -2
  168. package/input/Search.js +2 -2
  169. package/input/Textarea.js +2 -2
  170. package/input-number/index.js +2 -2
  171. package/input-tag/InputTag.js +4 -4
  172. package/layout/Content.js +2 -2
  173. package/layout/Footer.js +5 -5
  174. package/layout/Header.js +4 -4
  175. package/layout/Sider.js +2 -2
  176. package/layout/index.js +2 -2
  177. package/link/index.js +5 -5
  178. package/list/Item.js +2 -2
  179. package/list/Meta.js +4 -4
  180. package/list/index.js +2 -2
  181. package/mentions/index.js +2 -2
  182. package/menu/Item.js +5 -5
  183. package/menu/ItemGroup.js +1 -1
  184. package/menu/Menu.js +3 -3
  185. package/menu/OverflowWrap.js +2 -2
  186. package/menu/index.js +2 -2
  187. package/message/index.js +4 -4
  188. package/message/useMessage.js +1 -1
  189. package/modal/Confirm.js +2 -2
  190. package/modal/Modal.js +4 -4
  191. package/modal/index.js +1 -1
  192. package/notice/index.js +2 -2
  193. package/notification/index.js +4 -4
  194. package/notification/useNotification.js +1 -1
  195. package/overflow-ellipsis/OverflowItem.js +6 -6
  196. package/overflow-ellipsis/index.js +8 -8
  197. package/package.json +1 -1
  198. package/page-header/index.js +2 -2
  199. package/pagination/PageItem.js +2 -2
  200. package/pagination/PageJumper.js +1 -1
  201. package/pagination/PageOption.js +1 -1
  202. package/pagination/Pagination.js +23 -23
  203. package/picker/Input.js +7 -7
  204. package/picker/InputRange.js +9 -9
  205. package/popconfirm/index.js +2 -2
  206. package/popover/index.js +2 -2
  207. package/progress/CircleProgress.js +7 -7
  208. package/progress/LineProgess.js +1 -1
  209. package/progress/StepProgress.js +7 -7
  210. package/progress/index.js +8 -8
  211. package/radio/Group.js +3 -3
  212. package/radio/Radio.js +3 -3
  213. package/radio/index.js +2 -2
  214. package/rate/index.js +2 -2
  215. package/resize-box/ResizeTrigger.js +10 -10
  216. package/resize-box/Split.js +12 -12
  217. package/resize-box/SplitGroup.js +2 -2
  218. package/resize-box/index.js +2 -2
  219. package/result/index.js +9 -9
  220. package/select/Option.js +2 -2
  221. package/select/Select.js +3 -3
  222. package/select-view/Core.js +27 -27
  223. package/select-view/index.js +1 -1
  224. package/skeleton/Image.js +4 -4
  225. package/skeleton/Text.js +7 -7
  226. package/skeleton/index.js +2 -2
  227. package/slider/Button.js +2 -2
  228. package/slider/Dot.js +5 -5
  229. package/slider/Input.js +12 -12
  230. package/slider/Tick.js +6 -6
  231. package/slider/index.js +2 -2
  232. package/space/index.js +12 -12
  233. package/speech-synthesis/index.js +4 -4
  234. package/spin/DotLoading.js +1 -1
  235. package/spin/index.js +2 -2
  236. package/statistic/Countdown.js +7 -7
  237. package/statistic/index.js +20 -20
  238. package/steps/Step.js +1 -1
  239. package/steps/index.js +2 -2
  240. package/style/variables.less +375 -710
  241. package/style.css +1 -1
  242. package/switch/index.js +4 -4
  243. package/table/Table.js +4 -4
  244. package/table/index.js +4 -4
  245. package/tabs/Tab.js +3 -3
  246. package/tabs/TabContent.js +3 -3
  247. package/tabs/TabPane.js +2 -2
  248. package/tabs/index.js +2 -2
  249. package/tag/index.js +6 -6
  250. package/time-picker/Picker.js +2 -2
  251. package/time-picker/TimeColumn.js +7 -7
  252. package/time-picker/TimePicker.js +23 -23
  253. package/time-picker/util.js +5 -5
  254. package/timeline/Item.js +2 -2
  255. package/timeline/Timeline.js +2 -2
  256. package/tooltip/index.js +3 -3
  257. package/transfer/Item.js +3 -3
  258. package/transfer/List.js +3 -3
  259. package/transfer/index.js +2 -2
  260. package/tree/Animation.js +3 -3
  261. package/tree/Node.js +4 -4
  262. package/tree/NodeList.js +1 -1
  263. package/tree/Tree.js +3 -3
  264. package/tree/index.js +1 -1
  265. package/tree-select/Select.js +2 -2
  266. package/trigger/index.js +3 -3
  267. package/types/color-picker/colors.d.ts +1 -1
  268. package/types/config-provider/interface.d.ts +0 -1
  269. package/types/utils/color.d.ts +1 -1
  270. package/types/utils/constant.d.ts +1 -1
  271. package/types/utils/index.d.ts +1 -0
  272. package/types/utils/setDarkTheme.d.ts +4 -0
  273. package/typography/Base.js +2 -2
  274. package/typography/EditContent.js +1 -1
  275. package/typography/Ellipsis.js +14 -15
  276. package/typography/Paragraph.js +6 -6
  277. package/typography/Typography.js +5 -5
  278. package/typography/index.js +12 -13
  279. package/upload/TriggerNode.js +2 -2
  280. package/upload/Upload.js +5 -5
  281. package/upload/Uploader.js +2 -2
  282. package/upload/request.js +1 -1
  283. package/upload/request_.js +1 -1
  284. package/utils/PqbCSSTransition.js +1 -1
  285. package/utils/className.js +3 -3
  286. package/utils/color.js +2 -116
  287. package/utils/constant.js +3 -2
  288. package/utils/contextHolder.js +1 -1
  289. package/utils/copy.js +4 -4
  290. package/utils/dom.js +1 -1
  291. package/utils/fileToURL.js +1 -1
  292. package/utils/index.js +303 -309
  293. package/utils/reactTransitionGroup.js +1 -1
  294. package/utils/saveAs.js +1 -1
  295. package/utils/setDarkTheme.js +7 -0
  296. package/utils/tinycolor.js +13 -13
  297. package/utils/tween.js +1 -1
  298. package/verification-code/VerificationCode.js +7 -7
  299. package/version/index.js +1 -1
  300. package/watermark/Watermark.js +6 -6
  301. package/chunk/B0UZ1Ee2.js +0 -257
  302. package/chunk/Byd0ztYY.js +0 -724
  303. package/chunk/CCVU-Kst.js +0 -770
  304. package/chunk/CTxjmYmx.js +0 -19
  305. package/chunk/D0ZWT7db.js +0 -5
  306. package/chunk/JPPo5nY_.js +0 -9
@@ -6,13 +6,13 @@ import G from "lodash/isArray";
6
6
  import Ge from "lodash/isPlainObject";
7
7
  import Fn from "lodash/isUndefined";
8
8
  import _n, { useContext as ce, useMemo as un, forwardRef as Wn, useRef as Ve, useImperativeHandle as Bn, useState as ie, useEffect as Ke } from "react";
9
- import { a as Re } from "./Byd0ztYY.js";
9
+ import { a as Re } from "./C9XYyypq.js";
10
10
  import { u as zn } from "./BFTV6myl.js";
11
11
  import { u as Xt } from "./VSe_Wq1g.js";
12
12
  import { u as Zt } from "./a3hR6zLw.js";
13
13
  import qn from "../picker/InputRange.js";
14
14
  import Un from "../trigger/index.js";
15
- import { m as ge } from "./JPPo5nY_.js";
15
+ import { p as ge } from "./CUFsOxJ2.js";
16
16
  import { b as Me, a as te, d as Nt, c as jn, g as oe, m as X, k as en, j as wt, e as Je, h as Qn, i as Kn } from "./tamGhTJp.js";
17
17
  import { a as Jn } from "./ClqoGc3r.js";
18
18
  import Ye from "../date-picker/context.js";
@@ -0,0 +1,10 @@
1
+ import l from "lodash/uniq.js";
2
+ import "./C0pRaDCf.js";
3
+ import n from "lodash/isPlainObject.js";
4
+ function j(...e) {
5
+ const i = " ", r = e.map((o, f, p) => n(o) ? Object.keys(o).filter((t) => o[t]) : o).flat(1 / 0).filter(Boolean).join(i).split(i).filter(Boolean);
6
+ return l(r).join(i);
7
+ }
8
+ export {
9
+ j as p
10
+ };
@@ -0,0 +1,257 @@
1
+ import { jsxs as w, jsx as r } from "react/jsx-runtime";
2
+ import U from "@unicom-cloud/icons/IconUiCaretLeft";
3
+ import L from "@unicom-cloud/icons/IconUiCaretRight";
4
+ import V from "lodash/isFunction";
5
+ import M, { useContext as K, useRef as A, createContext as B } from "react";
6
+ import { a as T, I as S } from "./C9XYyypq.js";
7
+ import { u as q } from "./BFTV6myl.js";
8
+ import { u as D } from "./DeV0v__J.js";
9
+ import { p } from "./CUFsOxJ2.js";
10
+ import { o as G } from "./BKKEev13.js";
11
+ import { u as J } from "./BJ9_azwQ.js";
12
+ import { u as Q } from "./XTEsYGuF.js";
13
+ import { off as W, on as X } from "../utils/dom.js";
14
+ function Y(d, m) {
15
+ var C;
16
+ const { getPrefixCls: g } = K(T), n = K(j), I = Q(), {
17
+ children: s,
18
+ name: a,
19
+ header: $,
20
+ className: H,
21
+ style: E,
22
+ contentStyle: b,
23
+ extra: x,
24
+ disabled: c,
25
+ destroyOnHide: y,
26
+ expandIcon: v,
27
+ showExpandIcon: N = !0,
28
+ ...P
29
+ } = d, i = A(), h = A(), t = g("collapse-item"), l = ((C = n.activeKeys) == null ? void 0 : C.indexOf(a)) > -1, u = N ? "expandIcon" in d ? v : n.expandIcon : null, f = (e, o) => {
30
+ var O;
31
+ if (c)
32
+ return;
33
+ const { triggerRegion: R } = n;
34
+ (o === (R === "icon" ? 0 : R === "header" ? 1 : 2) || // When triggerRegion is set to header, clicking icon should trigger onChange as well
35
+ R === "header" && [0, 1].includes(o)) && ((O = n.onToggle) == null || O.call(n, a, e));
36
+ };
37
+ return /* @__PURE__ */ w(
38
+ "div",
39
+ {
40
+ ref: m,
41
+ ...P,
42
+ className: p(
43
+ t,
44
+ {
45
+ [`${t}-active`]: l,
46
+ [`${t}-no-icon`]: !u,
47
+ [`${t}-disabled`]: c
48
+ },
49
+ H
50
+ ),
51
+ style: E,
52
+ children: [
53
+ /* @__PURE__ */ w(
54
+ "div",
55
+ {
56
+ role: "button",
57
+ "aria-disabled": c,
58
+ "aria-expanded": l,
59
+ "data-active-region": n.triggerRegion,
60
+ tabIndex: c ? -1 : 0,
61
+ className: p(
62
+ `${t}-header`,
63
+ `${t}-header-${n.expandIconPosition}`,
64
+ {
65
+ [`${t}-header-disabled`]: c
66
+ }
67
+ ),
68
+ onClick: (e) => f(e, 2),
69
+ ...I({
70
+ onPressEnter: (e) => {
71
+ !c && n.onToggle(a, e);
72
+ }
73
+ }),
74
+ children: [
75
+ u && /* @__PURE__ */ r(
76
+ S,
77
+ {
78
+ prefix: t,
79
+ disabled: c,
80
+ className: p({
81
+ [`${t}-icon-hover-right`]: n.expandIconPosition === "right",
82
+ [`${t}-header-icon-right`]: n.expandIconPosition === "right"
83
+ }),
84
+ onClick: (e) => f(e, 0),
85
+ children: /* @__PURE__ */ r(
86
+ "span",
87
+ {
88
+ className: p(`${t}-header-icon`, {
89
+ [`${t}-header-icon-down`]: l
90
+ }),
91
+ children: u
92
+ }
93
+ )
94
+ }
95
+ ),
96
+ /* @__PURE__ */ r(
97
+ "div",
98
+ {
99
+ className: `${t}-header-title`,
100
+ onClick: (e) => f(e, 1),
101
+ children: $
102
+ }
103
+ ),
104
+ x && /* @__PURE__ */ r(
105
+ "div",
106
+ {
107
+ className: `${t}-header-extra`,
108
+ onClick: (e) => {
109
+ e.stopPropagation();
110
+ },
111
+ children: x
112
+ }
113
+ )
114
+ ]
115
+ }
116
+ ),
117
+ /* @__PURE__ */ r(
118
+ J,
119
+ {
120
+ nodeRef: i,
121
+ in: l,
122
+ addEndListener: (e) => {
123
+ W(i.current, "transitionend", e), X(i.current, "transitionend", e);
124
+ },
125
+ mountOnEnter: "destroyOnHide" in d ? y : n.destroyOnHide || n.lazyload,
126
+ unmountOnExit: "destroyOnHide" in d ? y : n.destroyOnHide,
127
+ onEnter: () => {
128
+ const e = i.current;
129
+ e && (e.style.height = "0", e.style.display = "block");
130
+ },
131
+ onEntering: () => {
132
+ const e = i.current, o = h.current;
133
+ e && o && (e.style.height = `${Math.max(e.scrollHeight, o.scrollHeight)}px`);
134
+ },
135
+ onEntered: () => {
136
+ const e = i.current;
137
+ e && (e.style.height = "auto");
138
+ },
139
+ onExit: () => {
140
+ const e = i.current, o = h.current;
141
+ e && o && (e.offsetHeight, o.offsetHeight, e.style.display = "block", e.style.height = `${Math.max(e.offsetHeight, o.offsetHeight)}px`, e.offsetHeight, o.offsetHeight);
142
+ },
143
+ onExiting: () => {
144
+ const e = i.current;
145
+ e && (e.style.height = "0");
146
+ },
147
+ onExited: () => {
148
+ const e = i.current;
149
+ e && (e.style.display = "none", e.style.height = "auto");
150
+ },
151
+ children: /* @__PURE__ */ r(
152
+ "div",
153
+ {
154
+ ref: i,
155
+ role: "region",
156
+ className: p(`${t}-content`, {
157
+ [`${t}-content-expanded`]: l
158
+ }),
159
+ children: /* @__PURE__ */ r(
160
+ "div",
161
+ {
162
+ ref: h,
163
+ style: b,
164
+ className: `${t}-content-box`,
165
+ children: s
166
+ }
167
+ )
168
+ }
169
+ )
170
+ }
171
+ )
172
+ ]
173
+ }
174
+ );
175
+ }
176
+ const z = M.forwardRef(
177
+ Y
178
+ );
179
+ z.displayName = "CollapseItem";
180
+ const k = (d, m) => {
181
+ const g = [].concat(d);
182
+ return m ? g.slice(0, 1) : g;
183
+ }, Z = {
184
+ bordered: !0,
185
+ lazyload: !0,
186
+ expandIconPosition: "left"
187
+ }, j = B({
188
+ expandIconPosition: "left",
189
+ expandIcon: /* @__PURE__ */ r(L, {}),
190
+ activeKeys: [],
191
+ onToggle: () => {
192
+ }
193
+ });
194
+ function _(d, m) {
195
+ const { getPrefixCls: g, componentConfig: n, rtl: I } = K(T), s = q(
196
+ d,
197
+ Z,
198
+ n == null ? void 0 : n.Collapse
199
+ ), [a, $] = D([], {
200
+ defaultValue: "defaultActiveKey" in s ? k(s.defaultActiveKey, s.accordion) : void 0,
201
+ value: "activeKey" in s ? k(s.activeKey, s.accordion) : void 0
202
+ }), {
203
+ children: H,
204
+ className: E,
205
+ style: b,
206
+ bordered: x,
207
+ lazyload: c,
208
+ expandIcon: y,
209
+ expandIconPosition: v,
210
+ destroyOnHide: N,
211
+ accordion: P,
212
+ triggerRegion: i,
213
+ onChange: h,
214
+ ...t
215
+ } = s, l = g("collapse"), u = (f, C) => {
216
+ let e = [...a || []];
217
+ const o = a == null ? void 0 : a.indexOf(f);
218
+ o > -1 ? e.splice(o, 1) : P ? e = [f] : e.push(f), "activeKey" in s || $(e), V(h) && h(f, e, C);
219
+ };
220
+ return /* @__PURE__ */ r(
221
+ j.Provider,
222
+ {
223
+ value: {
224
+ activeKeys: a,
225
+ triggerRegion: i,
226
+ lazyload: c,
227
+ destroyOnHide: N,
228
+ expandIconPosition: v,
229
+ onToggle: u,
230
+ expandIcon: "expandIcon" in s ? y : v === "right" ? /* @__PURE__ */ r(U, {}) : /* @__PURE__ */ r(L, {})
231
+ },
232
+ children: /* @__PURE__ */ r(
233
+ "div",
234
+ {
235
+ ref: m,
236
+ ...G(t, ["activeKey", "defaultActiveKey"]),
237
+ className: p(
238
+ l,
239
+ `${l}-${x ? "border" : "borderless"}`,
240
+ { [`${l}-rtl`]: I },
241
+ E
242
+ ),
243
+ style: b,
244
+ children: H
245
+ }
246
+ )
247
+ }
248
+ );
249
+ }
250
+ const ee = M.forwardRef(_), F = ee;
251
+ F.displayName = "Collapse";
252
+ F.Item = z;
253
+ export {
254
+ F as C,
255
+ z as I,
256
+ j as a
257
+ };
@@ -1,3 +1,4 @@
1
+ import "./C0pRaDCf.js";
1
2
  import r from "lodash/isString.js";
2
3
  function n() {
3
4
  return new DOMException("The request is not allowed", "NotAllowedError");
@@ -36,5 +37,5 @@ async function s(t) {
36
37
  }
37
38
  }
38
39
  export {
39
- s
40
+ s as p
40
41
  };
@@ -12,7 +12,7 @@ import W from "lodash/isFunction";
12
12
  import oe from "lodash/isPlainObject";
13
13
  import Y from "lodash/isString";
14
14
  import Je, { useRef as z, useState as le, useCallback as se, useEffect as Z, forwardRef as Ge, useContext as Qe, useImperativeHandle as Xe } from "react";
15
- import { a as Ye } from "./Byd0ztYY.js";
15
+ import { a as Ye } from "./C9XYyypq.js";
16
16
  import { u as ue } from "./CQ_WOOmf.js";
17
17
  import { u as Ze } from "./B4YRLi8r.js";
18
18
  import { u as et } from "./BFTV6myl.js";
@@ -20,20 +20,20 @@ import { u as ve } from "./DeV0v__J.js";
20
20
  import { u as re } from "./a3hR6zLw.js";
21
21
  import tt from "../select-view/index.js";
22
22
  import nt from "../trigger/index.js";
23
- import { m as q } from "./JPPo5nY_.js";
23
+ import { p as q } from "./CUFsOxJ2.js";
24
24
  import { e as he, y as rt, n as lt, d as we, r as ae, o as fe, c as st } from "./BrOW642m.js";
25
- import { b as at } from "./Cj2SQJiO.js";
25
+ import { b as at } from "./BJ9_azwQ.js";
26
26
  import me from "lodash/isEqualWith";
27
27
  import ee from "lodash/get";
28
28
  import { p as it } from "./Coz3rCng.js";
29
- import { C as Oe } from "./B7hulkj9.js";
29
+ import { C as Oe } from "./BxZ39GzB.js";
30
30
  import { u as ct } from "./oopARUrq.js";
31
31
  import { on as Le, off as de } from "../utils/dom.js";
32
32
  import "./DAAff-FT.js";
33
33
  import Pe from "../virtual-list/VirtualList.js";
34
34
  import xe from "lodash/isPlainObject.js";
35
35
  import { u as ot } from "./Bg3uJGPu.js";
36
- import { P as dt } from "./Bj4EV0eG.js";
36
+ import { P as dt } from "./BpYX5PN4.js";
37
37
  function ut(t, e) {
38
38
  const n = z(null), l = ue();
39
39
  return n.current || (n.current = t()), re(() => {
@@ -72,17 +72,17 @@ class ge {
72
72
  const { showEmptyChildren: l, lazyload: a } = this.config, c = { ...Ae, ...this.config.fieldNames }, r = ee(e, c.children) || e[c.children];
73
73
  let C = Array.isArray(r) ? l ? !1 : r.length === 0 : !0;
74
74
  a && (c.isLeaf in e ? C = !!ee(e, c.isLeaf) || !!e[c.isLeaf] : C = !1);
75
- const O = ee(e, c.value) || e[c.value], $ = ee(e, c.label) || e[c.label], k = {
75
+ const O = ee(e, c.value) || e[c.value], I = ee(e, c.label) || e[c.label], k = {
76
76
  ...e,
77
77
  value: O,
78
- label: $,
78
+ label: I,
79
79
  isLeaf: C,
80
80
  loading: !1,
81
81
  loaded: !1,
82
82
  disabled: n && n.disabled || ee(e, c.disabled) || e[c.disabled],
83
83
  parent: n,
84
84
  pathValue: n ? [...n.pathValue, O] : [O],
85
- pathLabel: n ? [...n.pathLabel, $] : [$],
85
+ pathLabel: n ? [...n.pathLabel, I] : [I],
86
86
  _level: n ? n._level + 1 : 0,
87
87
  _checked: !1,
88
88
  _halfChecked: !1
@@ -286,7 +286,7 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
286
286
  a.map((O) => O.pathValue)
287
287
  ), r = [], C = {};
288
288
  return l.map((O) => {
289
- O.some(($, k, x) => {
289
+ O.some((I, k, x) => {
290
290
  const N = x.slice(0, k + 1), E = J(c, N);
291
291
  return E && !C[N.join(G)] && (r.push(N), C[N.join(G)] = 1), E;
292
292
  });
@@ -299,12 +299,12 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
299
299
  }, Me = (t, e, n, l) => {
300
300
  const a = l && Ct(n) ? !1 : l, c = e.getCheckedNodes().reduce((k, x) => (k.add(x.pathValue.join(G)), k), /* @__PURE__ */ new Set());
301
301
  n.setCheckedState(a);
302
- const C = e.getCheckedNodes().map((k) => k.pathValue), O = ie(C), $ = /* @__PURE__ */ new Set();
302
+ const C = e.getCheckedNodes().map((k) => k.pathValue), O = ie(C), I = /* @__PURE__ */ new Set();
303
303
  return t.filter((k) => {
304
304
  if (!J(c, k) || J(O, k))
305
- return $.add(k.join(G)), !0;
305
+ return I.add(k.join(G)), !0;
306
306
  }).concat(
307
- C.filter((k) => !J($, k))
307
+ C.filter((k) => !J(I, k))
308
308
  );
309
309
  }, kt = (t) => {
310
310
  const { prefixCls: e, multiple: n, option: l, renderOption: a, selected: c, icons: r } = t, C = l.disabled || n && l.disableCheckbox;
@@ -353,7 +353,7 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
353
353
  value: r,
354
354
  multiple: C,
355
355
  renderFooter: O,
356
- renderOption: $,
356
+ renderOption: I,
357
357
  showEmptyChildren: k,
358
358
  loadMore: x,
359
359
  renderEmpty: N,
@@ -456,13 +456,13 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
456
456
  de(s, "keydown", b);
457
457
  };
458
458
  }, [t.popupVisible, b]);
459
- const I = (() => {
459
+ const $ = (() => {
460
460
  const s = [L];
461
461
  return (h ? h.getPathNodes() : []).forEach((g) => {
462
462
  g && g.children && s.push(g.children);
463
463
  }), s;
464
464
  })(), _ = W(t.dropdownColumnRender) ? t.dropdownColumnRender : (s) => s;
465
- return !I.length || !((M = I[0]) != null && M.length) ? /* @__PURE__ */ p(ne, { children: N() }) : /* @__PURE__ */ p(at, { component: Je.Fragment, children: I.map((s, u) => {
465
+ return !$.length || !((M = $[0]) != null && M.length) ? /* @__PURE__ */ p(ne, { children: N() }) : /* @__PURE__ */ p(at, { component: Je.Fragment, children: $.map((s, u) => {
466
466
  const g = O ? O(u, h || null) : null;
467
467
  return s.length === 0 && !k ? null : /* @__PURE__ */ p(
468
468
  dt,
@@ -489,7 +489,7 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
489
489
  [`${c}-list-column-rtl`]: E
490
490
  }),
491
491
  style: {
492
- zIndex: I.length - u,
492
+ zIndex: $.length - u,
493
493
  ...t.dropdownMenuColumnStyle
494
494
  },
495
495
  children: _(
@@ -547,7 +547,7 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
547
547
  onMouseEnter: () => {
548
548
  o.disabled || t.expandTrigger === "hover" && (V(o), !o.isLeaf && S(o));
549
549
  },
550
- renderOption: $ && (() => $(o._data, u)),
550
+ renderOption: I && (() => I(o._data, u)),
551
551
  onClickOption: () => {
552
552
  o.isLeaf && C && !o.disableCheckbox ? P(o, !o._checked) : f(o);
553
553
  },
@@ -608,7 +608,7 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
608
608
  renderEmpty: r,
609
609
  style: C,
610
610
  defaultActiveFirstOption: O,
611
- rtl: $,
611
+ rtl: I,
612
612
  icons: k
613
613
  } = t, x = t.value || [], [N, E] = le(
614
614
  e.searchNodeByLabel(c) || []
@@ -636,12 +636,12 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
636
636
  if (!f)
637
637
  return;
638
638
  const P = (w) => {
639
- var I;
639
+ var $;
640
640
  w.stopPropagation();
641
641
  const b = w.key;
642
642
  switch (b) {
643
643
  case fe.key:
644
- return (I = t.onEsc) == null || I.call(t), !1;
644
+ return ($ = t.onEsc) == null || $.call(t), !1;
645
645
  case ae.key:
646
646
  case we.key: {
647
647
  h.current = !0;
@@ -692,13 +692,13 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
692
692
  },
693
693
  className: q(`${n}-list`, `${n}-list-search`, {
694
694
  [`${n}-list-multiple`]: l,
695
- [`${n}-list-rtl`]: $
695
+ [`${n}-list-rtl`]: I
696
696
  }),
697
697
  children: (f, P) => {
698
698
  const w = f.getPathNodes(), b = w.map((s, u, g) => /* @__PURE__ */ X("span", { children: [
699
699
  s.label,
700
700
  w.length === u + 1 ? "" : " / "
701
- ] }, `${s.label}_${s._level}`)), I = f._checked, _ = { checked: I }, M = W(t.renderOption) ? t.renderOption(c, f._data, _) : yt(c, b, n);
701
+ ] }, `${s.label}_${s._level}`)), $ = f._checked, _ = { checked: $ }, M = W(t.renderOption) ? t.renderOption(c, f._data, _) : yt(c, b, n);
702
702
  return /* @__PURE__ */ p(
703
703
  "li",
704
704
  {
@@ -706,15 +706,15 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
706
706
  role: "menuitem",
707
707
  "aria-disabled": f.disabled,
708
708
  ref: (s) => {
709
- P === L && (T.current = s), I && !T.current && (T.current = s);
709
+ P === L && (T.current = s), $ && !T.current && (T.current = s);
710
710
  },
711
711
  className: q(`${n}-list-search-item`, {
712
- [`${n}-list-search-item-active`]: I,
712
+ [`${n}-list-search-item-active`]: $,
713
713
  [`${n}-list-search-item-hover`]: P === L,
714
714
  [`${n}-list-search-item-disabled`]: f.disabled
715
715
  }),
716
716
  onClick: (s) => {
717
- S(f, !I, s);
717
+ S(f, !$, s);
718
718
  },
719
719
  onMouseEnter: () => {
720
720
  !h.current && !f.disabled && j(P);
@@ -722,9 +722,9 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
722
722
  onMouseLeave: () => {
723
723
  !h.current && !f.disabled && j(O ? 0 : -1);
724
724
  },
725
- children: /* @__PURE__ */ p("div", { className: `${n}-list-item-label`, children: W(t.renderOption) ? M : l ? /* @__PURE__ */ p(Oe, { checked: I, disabled: f.disabled, children: M }) : /* @__PURE__ */ X(ne, { children: [
725
+ children: /* @__PURE__ */ p("div", { className: `${n}-list-item-label`, children: W(t.renderOption) ? M : l ? /* @__PURE__ */ p(Oe, { checked: $, disabled: f.disabled, children: M }) : /* @__PURE__ */ X(ne, { children: [
726
726
  M,
727
- I && /* @__PURE__ */ p("span", { className: `${n}-check-icon`, children: k.checked })
727
+ $ && /* @__PURE__ */ p("span", { className: `${n}-check-icon`, children: k.checked })
728
728
  ] }) })
729
729
  },
730
730
  P
@@ -755,7 +755,7 @@ function _t(t, e) {
755
755
  ), {
756
756
  disabled: C,
757
757
  renderFormat: O,
758
- getPopupContainer: $,
758
+ getPopupContainer: I,
759
759
  children: k,
760
760
  triggerProps: x,
761
761
  expandTrigger: N,
@@ -770,7 +770,7 @@ function _t(t, e) {
770
770
  "value" in r ? r.value : r.defaultValue,
771
771
  V
772
772
  )
773
- ), [JSON.stringify(Ee(r)), r.options]), [f, P] = le(() => "value" in r ? te(r.value, V, S) : "defaultValue" in r ? te(r.defaultValue, V, S) : []), w = "value" in r ? te(r.value, V, S) : f, [b, I] = ve(!1, {
773
+ ), [JSON.stringify(Ee(r)), r.options]), [f, P] = le(() => "value" in r ? te(r.value, V, S) : "defaultValue" in r ? te(r.defaultValue, V, S) : []), w = "value" in r ? te(r.value, V, S) : f, [b, $] = ve(!1, {
774
774
  value: r.popupVisible,
775
775
  defaultValue: r.defaultPopupVisible
776
776
  }), [_, M, s] = ve("", {
@@ -816,10 +816,10 @@ function _t(t, e) {
816
816
  }, H = se(
817
817
  (i) => {
818
818
  var m;
819
- i !== b && ((m = r.onVisibleChange) == null || m.call(r, i), "popupVisible" in r || I(i));
819
+ i !== b && ((m = r.onVisibleChange) == null || m.call(r, i), "popupVisible" in r || $(i));
820
820
  },
821
821
  [r.onVisibleChange, b]
822
- ), Ie = se(
822
+ ), $e = se(
823
823
  (i) => {
824
824
  var y;
825
825
  const m = pe([i])[0] || [];
@@ -843,7 +843,7 @@ function _t(t, e) {
843
843
  V || (_ || B[0] && ((be = B[0][B[0].length - 1]) != null && be.isLeaf) || D && y === "hover") && H(!1), "value" in r ? (S.setNodeCheckedByValue(w), j()) : P(i), v == null || v(ce, Fe, {
844
844
  dropdownVisible: b
845
845
  });
846
- }, $e = (i, m, v) => {
846
+ }, Ie = (i, m, v) => {
847
847
  if (v.stopPropagation(), i.disabled)
848
848
  return;
849
849
  const D = w.filter((y, R) => R !== m);
@@ -947,7 +947,7 @@ function _t(t, e) {
947
947
  popup: Re,
948
948
  trigger: r.trigger,
949
949
  disabled: C,
950
- getPopupContainer: $,
950
+ getPopupContainer: I,
951
951
  position: c ? "br" : "bl",
952
952
  classNames: "slideDynamicOrigin",
953
953
  popupAlign: St,
@@ -971,8 +971,8 @@ function _t(t, e) {
971
971
  isEmptyValue: K(w),
972
972
  prefixCls: h,
973
973
  isMultiple: V,
974
- renderText: Ie,
975
- onRemoveCheckedItem: $e,
974
+ renderText: $e,
975
+ onRemoveCheckedItem: Ie,
976
976
  onSort: Te,
977
977
  renderView: ke,
978
978
  onClear: (i) => {
@@ -1,4 +1,4 @@
1
- import { l as r } from "./CTxjmYmx.js";
1
+ import { u as r } from "./BFmckYou.js";
2
2
  function t(o) {
3
3
  return new XMLHttpRequest();
4
4
  }
@@ -5,12 +5,12 @@ import Z from "@unicom-cloud/icons/IconUiFile";
5
5
  import ee from "@unicom-cloud/icons/IconUiLoading";
6
6
  import p from "lodash/isFunction";
7
7
  import ne, { useContext as _, useRef as j, useEffect as U, useMemo as Y, forwardRef as te, useState as ie, useCallback as S } from "react";
8
- import { C as ae } from "./B7hulkj9.js";
9
- import { a as B, I as re } from "./Byd0ztYY.js";
10
- import { m as O } from "./JPPo5nY_.js";
8
+ import { C as ae } from "./BxZ39GzB.js";
9
+ import { a as B, I as re } from "./C9XYyypq.js";
10
+ import { p as O } from "./CUFsOxJ2.js";
11
11
  import oe from "../utils/throttleByRaf.js";
12
12
  import se from "lodash/isNumber";
13
- import { P as le } from "./Bj4EV0eG.js";
13
+ import { P as le } from "./BpYX5PN4.js";
14
14
  import ce from "../virtual-list/VirtualList.js";
15
15
  import { TreeContext as V } from "../tree/Context.js";
16
16
  function de(e) {
@@ -1,6 +1,6 @@
1
1
  import { jsxs as p, jsx as s } from "react/jsx-runtime";
2
2
  import g from "@unicom-cloud/icons/IconUiMore";
3
- import { m as n } from "./JPPo5nY_.js";
3
+ import { p as n } from "./CUFsOxJ2.js";
4
4
  import { TriggerForToolbar as F } from "../image/TriggerForToolbar.js";
5
5
  function x(r) {
6
6
  const { title: a, description: l, actions: t } = r, i = a || l, e = t && t.length;
@@ -0,0 +1,25 @@
1
+ import { T as c } from "./CIkPwQlq.js";
2
+ const t = "dark";
3
+ function d(e, s) {
4
+ e.classList.add(s);
5
+ }
6
+ function a(e, s) {
7
+ e.classList.remove(s);
8
+ }
9
+ function i(e) {
10
+ const {
11
+ element: s = window.document.body,
12
+ className: o = c,
13
+ mode: n = t
14
+ } = e ?? {};
15
+ return n === t ? d(s, o) : a(s, o), () => {
16
+ a(s, o);
17
+ };
18
+ }
19
+ function r(e) {
20
+ i({ ...e, mode: "light" });
21
+ }
22
+ export {
23
+ r,
24
+ i as s
25
+ };
@@ -15,7 +15,7 @@ import Pt from "@unicom-cloud/icons/IconUiZoomIn";
15
15
  import Lt from "@unicom-cloud/icons/IconUiZoomOut";
16
16
  import zt from "lodash/isUndefined";
17
17
  import { useState as g, forwardRef as Nt, useContext as ke, useRef as x, useMemo as Ce, useImperativeHandle as Mt, useCallback as Tt, useEffect as v } from "react";
18
- import { a as At, b as Ot } from "./Byd0ztYY.js";
18
+ import { a as At, b as Ot } from "./C9XYyypq.js";
19
19
  import "lodash/isEqualWith";
20
20
  import { u as Et } from "./DeV0v__J.js";
21
21
  import "./DAAff-FT.js";
@@ -31,9 +31,9 @@ import "./Ce1j9KTi.js";
31
31
  import { u as Wt } from "./a3hR6zLw.js";
32
32
  import "lodash/debounce";
33
33
  import Zt from "../portal/index.js";
34
- import { P as Ie } from "./Bj4EV0eG.js";
35
- import { m as Se } from "./JPPo5nY_.js";
36
- import { s as jt } from "./Ey4YJCkX.js";
34
+ import { P as Ie } from "./BpYX5PN4.js";
35
+ import { p as Se } from "./CUFsOxJ2.js";
36
+ import { p as jt } from "./D0Dlbc2g.js";
37
37
  import { r as Ht } from "./CIRG541s.js";
38
38
  import Gt from "../image/ImagePreviewArrow.js";
39
39
  import _t from "../image/ImagePreviewToolbar.js";
@@ -2,10 +2,10 @@ import { jsx as i, jsxs as z, Fragment as H } from "react/jsx-runtime";
2
2
  import _ from "lodash/isFunction";
3
3
  import L from "lodash/isNil";
4
4
  import Q, { createContext as S, useContext as G, useRef as T } from "react";
5
- import { a as j, I as q } from "./Byd0ztYY.js";
5
+ import { a as j, I as q } from "./C9XYyypq.js";
6
6
  import { u as A } from "./BFTV6myl.js";
7
7
  import { u as D } from "./DeV0v__J.js";
8
- import { m as F } from "./JPPo5nY_.js";
8
+ import { p as F } from "./CUFsOxJ2.js";
9
9
  import { o as E } from "./BKKEev13.js";
10
10
  import J from "lodash/isArray";
11
11
  import K from "lodash/isPlainObject";
@@ -3,14 +3,14 @@ import ln from "@unicom-cloud/icons/IconUiClose";
3
3
  import Ie from "lodash/isFunction";
4
4
  import sn, { forwardRef as Oe, useState as $, useImperativeHandle as an, useRef as x, useContext as cn, useCallback as U, useEffect as oe } from "react";
5
5
  import De from "../button/index.js";
6
- import { b as Le, d as un, a as dn, I as mn } from "./Byd0ztYY.js";
6
+ import { b as Le, d as un, a as dn, I as mn } from "./C9XYyypq.js";
7
7
  import { u as fn } from "./oopARUrq.js";
8
8
  import { u as pn } from "./BFTV6myl.js";
9
9
  import { u as Cn } from "./DeV0v__J.js";
10
10
  import { u as hn } from "./DU1RCDfh.js";
11
11
  import bn from "../portal/index.js";
12
- import { P as $e } from "./Bj4EV0eG.js";
13
- import { m as Be } from "./JPPo5nY_.js";
12
+ import { P as $e } from "./BpYX5PN4.js";
13
+ import { p as Be } from "./CUFsOxJ2.js";
14
14
  import { contains as gn, isServerRendering as xn } from "../utils/dom.js";
15
15
  import { o as kn } from "./BrOW642m.js";
16
16
  import { o as vn } from "./BKKEev13.js";