@unicom-cloud/ui 0.8.78 → 0.8.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +13 -13
  75. package/badge/Count.js +13 -13
  76. package/badge/index.js +21 -21
  77. package/breadcrumb/Item.js +25 -25
  78. package/breadcrumb/index.js +12 -12
  79. package/button/Group.js +6 -6
  80. package/button/index.js +30 -30
  81. package/calendar/Month.js +2 -2
  82. package/calendar/Year.js +1 -1
  83. package/calendar/index.js +4 -4
  84. package/card/Grid.js +13 -13
  85. package/card/Meta.js +13 -13
  86. package/card/index.js +29 -29
  87. package/carousel/Arrow.js +6 -6
  88. package/carousel/Indicator.js +27 -27
  89. package/carousel/index.js +24 -24
  90. package/cascader/Cascader.js +8 -8
  91. package/cascader/index.js +1 -1
  92. package/cascader/util.js +1 -1
  93. package/checkbox/Checkbox.js +4 -4
  94. package/checkbox/Group.js +4 -4
  95. package/checkbox/GroupBlock.js +3 -3
  96. package/checkbox/index.js +2 -2
  97. package/chunk/{ZrBrCzQX.js → B4WG1mhs.js} +6 -7
  98. package/chunk/{Cwm8LL5p.js → B4mZh-RK.js} +7245 -7249
  99. package/chunk/{CjqvxJml.js → BG7YGUsx.js} +32 -32
  100. package/chunk/{BhBEMwvI.js → BNevupAU.js} +18 -20
  101. package/chunk/BYdIoY50.js +17 -0
  102. package/chunk/{Cc_-i0o_.js → BZ3igxQN.js} +6 -7
  103. package/chunk/{uEGHykhe.js → BZ9g7J4R.js} +1 -1
  104. package/chunk/BsUZRQDT.js +23 -0
  105. package/chunk/{CBgu99gQ.js → C5X4hOkx.js} +130 -130
  106. package/chunk/{B0n0iRhF.js → CCKr5jj1.js} +1 -1
  107. package/chunk/{CNcLypMY.js → CQvM33Vg.js} +190 -189
  108. package/chunk/CXPOj2uy.js +19 -0
  109. package/chunk/{DAAff-FT.js → ClM74To2.js} +9 -10
  110. package/chunk/{RS6OAxzv.js → D-ap9qEk.js} +2 -2
  111. package/chunk/{tpmioyz1.js → DEiyXzBZ.js} +28 -28
  112. package/chunk/{CplLA01W.js → DEuVgCzp.js} +45 -52
  113. package/chunk/{BPQXH_5i.js → DYspELhF.js} +43 -43
  114. package/chunk/DxYoPlum.js +50 -0
  115. package/chunk/{BpYX5PN4.js → NPajzdOv.js} +2 -2
  116. package/chunk/{BBkdXHrJ.js → rT6qmv-Y.js} +1 -1
  117. package/chunk/{BC5fEyWK.js → yLRv5RIK.js} +61 -61
  118. package/chunk/{C_4I3haT.js → yhU2zeeu.js} +96 -96
  119. package/collapse/Collapse.js +4 -4
  120. package/collapse/Item.js +4 -4
  121. package/collapse/index.js +1 -1
  122. package/color-picker/ControlBar.js +22 -22
  123. package/color-picker/InputAlpha.js +1 -1
  124. package/color-picker/InputHex.js +1 -1
  125. package/color-picker/InputRgb.js +1 -1
  126. package/color-picker/Palette.js +1 -1
  127. package/color-picker/Panel.js +4 -4
  128. package/color-picker/index.js +3 -3
  129. package/comment/index.js +18 -18
  130. package/config-provider/ConfigProvider.js +2 -2
  131. package/config-provider/context.js +2 -2
  132. package/config-provider/index.js +2 -2
  133. package/copy/index.js +23 -23
  134. package/date-picker/Picker.js +41 -41
  135. package/date-picker/PickerRange.js +3 -3
  136. package/date-picker/index.js +1 -1
  137. package/descriptions/index.js +28 -28
  138. package/divider/index.js +15 -15
  139. package/draggable/Item.js +11 -11
  140. package/draggable/index.js +15 -15
  141. package/drawer/Drawer.js +31 -31
  142. package/dropdown/Button.js +1 -1
  143. package/dropdown/index.js +22 -22
  144. package/empty/index.js +2 -2
  145. package/form/Control.js +46 -46
  146. package/form/Form.js +12 -12
  147. package/form/FormItem.js +12 -12
  148. package/form/FormLabel.js +11 -11
  149. package/form/context.js +7 -6
  150. package/form/promisify.js +9 -10
  151. package/form/store.js +1 -1
  152. package/form/util.js +1 -1
  153. package/grid/Col.js +38 -38
  154. package/grid/Row.js +15 -15
  155. package/grid/grid-item.js +17 -17
  156. package/grid/grid.js +28 -28
  157. package/hooks/index.js +6 -6
  158. package/hooks/useInView.js +1 -1
  159. package/hooks/useIntersectionObserver.js +1 -1
  160. package/hooks/useKeyboardEvent.js +1 -1
  161. package/hooks/useMergeValue.js +1 -1
  162. package/hooks/useOverrideRef.js +1 -1
  163. package/hooks/usePrefersColorSchemeDark.js +1 -1
  164. package/hooks/useVerificationCode.js +30 -30
  165. package/icon/index.js +20 -16
  166. package/icon-hover/index.js +2 -2
  167. package/image/Image.js +22 -22
  168. package/image/ImageFooter.js +2 -2
  169. package/image/ImagePreview.js +11 -11
  170. package/image/ImagePreviewArrow.js +16 -16
  171. package/image/ImagePreviewGroup.js +2 -2
  172. package/image/ImagePreviewToolbar.js +7 -7
  173. package/image/TriggerForToolbar.js +7 -7
  174. package/image/index.js +1 -1
  175. package/index.js +547 -580
  176. package/input/Group.js +10 -10
  177. package/input/Input.js +213 -214
  178. package/input/InputElement.js +10 -11
  179. package/input/Password.js +4 -4
  180. package/input/Search.js +3 -3
  181. package/input/Textarea.js +7 -8
  182. package/input/useComposition.js +6 -6
  183. package/input-number/index.js +3 -3
  184. package/input-tag/InputTag.js +110 -111
  185. package/layout/Content.js +4 -4
  186. package/layout/Footer.js +6 -6
  187. package/layout/Header.js +8 -8
  188. package/layout/Sider.js +29 -29
  189. package/layout/index.js +16 -16
  190. package/link/index.js +27 -27
  191. package/list/Item.js +5 -5
  192. package/list/Meta.js +11 -11
  193. package/list/index.js +4 -4
  194. package/locale/en-US.js +1 -1
  195. package/locale/tr-TR.js +1 -1
  196. package/mentions/index.js +5 -5
  197. package/menu/Item.js +11 -11
  198. package/menu/ItemGroup.js +8 -8
  199. package/menu/Menu.js +5 -5
  200. package/menu/OverflowWrap.js +2 -2
  201. package/menu/index.js +2 -2
  202. package/message/index.js +3 -3
  203. package/message/useMessage.js +1 -1
  204. package/modal/Confirm.js +2 -2
  205. package/modal/Modal.js +7 -7
  206. package/modal/index.js +1 -1
  207. package/notice/index.js +9 -8
  208. package/notification/index.js +3 -3
  209. package/notification/useNotification.js +1 -1
  210. package/overflow-ellipsis/OverflowItem.js +6 -6
  211. package/overflow-ellipsis/index.js +27 -27
  212. package/package.json +1 -1
  213. package/page-header/index.js +3 -3
  214. package/pagination/PageItem.js +7 -7
  215. package/pagination/PageJumper.js +1 -1
  216. package/pagination/PageOption.js +3 -3
  217. package/pagination/Pagination.js +4 -4
  218. package/pagination/index.js +1 -1
  219. package/picker/Input.js +7 -7
  220. package/picker/InputRange.js +77 -77
  221. package/popconfirm/index.js +11 -11
  222. package/popover/index.js +21 -21
  223. package/progress/CircleProgress.js +14 -14
  224. package/progress/LineProgess.js +14 -14
  225. package/progress/StepProgress.js +9 -9
  226. package/progress/index.js +26 -26
  227. package/radio/Group.js +4 -4
  228. package/radio/GroupBlock.js +3 -3
  229. package/radio/Radio.js +4 -4
  230. package/radio/index.js +2 -2
  231. package/rate/index.js +16 -16
  232. package/resize-box/ResizeTrigger.js +27 -28
  233. package/resize-box/Split.js +21 -21
  234. package/resize-box/SplitGroup.js +40 -40
  235. package/resize-box/index.js +23 -23
  236. package/result/index.js +29 -29
  237. package/select/Option.js +2 -2
  238. package/select/Select.js +11 -12
  239. package/select/index.js +2 -2
  240. package/select/util.js +5 -5
  241. package/select-view/Core.js +104 -106
  242. package/select-view/index.js +22 -23
  243. package/skeleton/Image.js +14 -14
  244. package/skeleton/Text.js +16 -16
  245. package/skeleton/index.js +11 -11
  246. package/slider/Button.js +4 -4
  247. package/slider/Dot.js +9 -9
  248. package/slider/Input.js +20 -20
  249. package/slider/Tick.js +14 -14
  250. package/slider/index.js +103 -103
  251. package/slider/util.js +3 -3
  252. package/space/index.js +14 -14
  253. package/speech-synthesis/index.js +26 -28
  254. package/spin/DotLoading.js +1 -1
  255. package/spin/index.js +16 -16
  256. package/statistic/Countdown.js +17 -17
  257. package/statistic/index.js +32 -32
  258. package/steps/Step.js +8 -8
  259. package/steps/index.js +17 -17
  260. package/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 +1 -1
  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 +24 -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 +261 -298
  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,10 +1,10 @@
1
- import Q, { forwardRef as ee, useContext as D, createContext as Ue, useRef as k, useImperativeHandle as te, useEffect as T, useMemo as Fe, useState as Le } from "react";
2
- import { jsx as n, jsxs as G, Fragment as ue } from "react/jsx-runtime";
3
- import X from "@unicom-cloud/icons/context";
4
- import ze from "lodash/isPlainObject";
5
- import { c as Ae } from "./9TSjT7x_.js";
6
- import { o as oe } from "./ATwvJ8j2.js";
7
- import me from "lodash/merge";
1
+ import { jsx as n, jsxs as G, Fragment as me } from "react/jsx-runtime";
2
+ import W from "@unicom-cloud/icons/context";
3
+ import Fe from "lodash/isPlainObject";
4
+ import { c as Se } from "./9TSjT7x_.js";
5
+ import { UI_PC_PREFIX as ee } from "@unicom-cloud/utils/constant/ui";
6
+ import ue from "lodash/merge";
7
+ import Q, { forwardRef as te, useContext as U, createContext as Le, useRef as k, useImperativeHandle as oe, useEffect as _, useState as ze, useMemo as Ae } from "react";
8
8
  import { u as re } from "./BFTV6myl.js";
9
9
  import { b as ge } from "./BJ9_azwQ.js";
10
10
  import j from "lodash/isNumber";
@@ -13,24 +13,25 @@ import { createRoot as he } from "react-dom/client";
13
13
  import Ge from "@unicom-cloud/icons/IconUiCheckCircleFill";
14
14
  import pe from "@unicom-cloud/icons/IconUiClose";
15
15
  import Qe from "@unicom-cloud/icons/IconUiCloseCircleFill";
16
- import Be from "@unicom-cloud/icons/IconUiExclamationCircleFill";
17
- import Je from "@unicom-cloud/icons/IconUiInfoCircleFill";
18
- import Ke from "@unicom-cloud/icons/IconUiLoading";
19
- import Ve from "@unicom-cloud/icons/IconUiEmpty";
20
- import { p as U } from "./CUFsOxJ2.js";
21
- import We from "../locale/zh-CN.js";
16
+ import Xe from "@unicom-cloud/icons/IconUiExclamationCircleFill";
17
+ import Be from "@unicom-cloud/icons/IconUiInfoCircleFill";
18
+ import Je from "@unicom-cloud/icons/IconUiLoading";
19
+ import { setConfigProviderProps as Ke } from "../modal/config.js";
20
+ import { createPortal as Ve } from "react-dom";
21
+ import { P as xe } from "./NPajzdOv.js";
22
+ import F from "@unicom-cloud/utils/class-name";
23
+ import We from "@unicom-cloud/icons/IconUiEmpty";
24
+ import Ye from "../locale/zh-CN.js";
25
+ import ve from "../notification/withNotification.js";
22
26
  import "lodash/isEqualWith";
23
- import "./DAAff-FT.js";
27
+ import "./ClM74To2.js";
28
+ import "@unicom-cloud/utils/constant/keyboardCode";
24
29
  import "../utils/dom.js";
25
- import "./ZrBrCzQX.js";
26
- import "./Cc_-i0o_.js";
27
- import "./Ce1j9KTi.js";
30
+ import "./B4WG1mhs.js";
31
+ import "./BZ3igxQN.js";
32
+ import "@unicom-cloud/utils/constant";
28
33
  import "lodash/debounce";
29
- import { createPortal as Xe } from "react-dom";
30
- import { P as xe } from "./BpYX5PN4.js";
31
- import ve from "../notification/withNotification.js";
32
- import Ye from "lodash/isString";
33
- import { setConfigProviderProps as Ze } from "../modal/config.js";
34
+ import Ze from "lodash/isString";
34
35
  const et = {
35
36
  primaryColor: {
36
37
  default: "--pqbblue-6",
@@ -59,10 +60,10 @@ const et = {
59
60
  }
60
61
  };
61
62
  function tt(e) {
62
- ze(e) && Object.entries(et).forEach(([o, t], c, a) => {
63
+ Fe(e) && Object.entries(et).forEach(([o, t], c, a) => {
63
64
  const r = e[o];
64
65
  if (!r) return;
65
- const i = new Ae(r), d = window.document.documentElement;
66
+ const i = new Se(r), d = window.document.documentElement;
66
67
  d.style.setProperty(t.default, i.lighten(0).toRgbArrayString()), e[`${o}Hover`] || d.style.setProperty(t.hover, i.lighten(10).toRgbArrayString()), e[`${o}Active`] || d.style.setProperty(t.active, i.lighten(-10).toRgbArrayString());
67
68
  });
68
69
  }
@@ -71,30 +72,30 @@ function ot(e, o) {
71
72
  getPrefixCls: t,
72
73
  locale: c,
73
74
  componentConfig: a
74
- } = D(w), r = re(
75
+ } = U(w), r = re(
75
76
  e,
76
77
  {},
77
78
  a == null ? void 0 : a.Empty
78
- ), { style: i, className: d, description: s, icon: l, imgSrc: u, ...m } = r, C = t("empty"), v = U(C, d), g = c.Empty.noData, f = typeof s == "string" ? s : "empty";
79
- return /* @__PURE__ */ n("div", { ref: o, className: v, style: i, ...m, children: /* @__PURE__ */ G("div", { className: `${C}-wrapper`, children: [
80
- /* @__PURE__ */ n("div", { className: `${C}-image`, children: u ? /* @__PURE__ */ n("img", { alt: f, src: u }) : l || /* @__PURE__ */ n(Ve, {}) }),
79
+ ), { style: i, className: d, description: s, icon: l, imgSrc: m, ...u } = r, C = t("empty"), v = F(C, d), g = c.Empty.noData, f = typeof s == "string" ? s : "empty";
80
+ return /* @__PURE__ */ n("div", { ref: o, className: v, style: i, ...u, children: /* @__PURE__ */ G("div", { className: `${C}-wrapper`, children: [
81
+ /* @__PURE__ */ n("div", { className: `${C}-image`, children: m ? /* @__PURE__ */ n("img", { alt: f, src: m }) : l || /* @__PURE__ */ n(We, {}) }),
81
82
  /* @__PURE__ */ n("div", { className: `${C}-description`, children: s || g })
82
83
  ] }) });
83
84
  }
84
- const be = ee(ot);
85
+ const be = te(ot);
85
86
  be.displayName = "Empty";
86
87
  const rt = Q.memo(be);
87
88
  function nt(e) {
88
89
  return /* @__PURE__ */ n(rt, {});
89
90
  }
90
91
  const Ne = {
91
- locale: We,
92
- prefixCls: oe,
92
+ locale: Ye,
93
+ prefixCls: ee,
93
94
  getPopupContainer: () => document.body,
94
95
  size: "default",
95
96
  renderEmpty: nt
96
- }, w = Ue({
97
- getPrefixCls: (e, o) => `${o || oe}-${e}`,
97
+ }, w = Le({
98
+ getPrefixCls: (e, o) => `${o || ee}-${e}`,
98
99
  ...Ne
99
100
  });
100
101
  function it(e, o) {
@@ -105,14 +106,14 @@ function it(e, o) {
105
106
  prefix: r,
106
107
  size: i = "default",
107
108
  ...d
108
- } = e, { getPrefixCls: s } = D(w), l = s("icon-hover"), u = k();
109
- return te(o, () => ({
110
- getRootDOMNode: () => u.current
109
+ } = e, { getPrefixCls: s } = U(w), l = s("icon-hover"), m = k();
110
+ return oe(o, () => ({
111
+ getRootDOMNode: () => m.current
111
112
  })), /* @__PURE__ */ n(
112
113
  "span",
113
114
  {
114
- ref: u,
115
- className: U(
115
+ ref: m,
116
+ className: F(
116
117
  l,
117
118
  {
118
119
  [`${r}-icon-hover`]: r,
@@ -138,14 +139,14 @@ function ct(e, o) {
138
139
  getPrefixCls: t,
139
140
  componentConfig: c,
140
141
  rtl: a
141
- } = D(w), r = re(
142
+ } = U(w), r = re(
142
143
  e,
143
144
  st,
144
145
  c == null ? void 0 : c.Notice
145
- ), i = D(w), d = t("notice");
146
+ ), i = U(w), d = t("notice");
146
147
  k();
147
- const s = k(), l = k(), u = k(), {
148
- title: m,
148
+ const s = k(), l = k(), m = k(), {
149
+ title: u,
149
150
  content: C,
150
151
  showIcon: v,
151
152
  className: g,
@@ -158,9 +159,9 @@ function ct(e, o) {
158
159
  noticeType: R,
159
160
  iconPrefix: ce,
160
161
  rtl: je = a,
161
- closeIcon: F,
162
+ closeIcon: S,
162
163
  classPrefixCls: le
163
- } = r, qe = U(
164
+ } = r, qe = F(
164
165
  x,
165
166
  `${x}-${p}`,
166
167
  {
@@ -169,35 +170,35 @@ function ct(e, o) {
169
170
  },
170
171
  g
171
172
  );
172
- let B = "closable" in r ? b : !0, J = v;
173
- p === "normal" && !N && (J = !1);
173
+ let X = "closable" in r ? b : !0, B = v;
174
+ p === "normal" && !N && (B = !1);
174
175
  const ae = { ...i };
175
176
  le && (ae.prefixCls = le);
176
177
  function He() {
177
178
  return l.current;
178
179
  }
179
- function K() {
180
- const { duration: y, onClose: _, id: V } = r;
181
- y !== 0 && (s.current = window.setTimeout(() => {
182
- _ == null || _(V), q();
183
- }, y));
180
+ function J() {
181
+ const { duration: $, onClose: O, id: K } = r;
182
+ $ !== 0 && (s.current = window.setTimeout(() => {
183
+ O == null || O(K), q();
184
+ }, $));
184
185
  }
185
186
  function q() {
186
187
  s.current && (window.clearTimeout(s.current), s.current = null);
187
188
  }
188
189
  function L() {
189
- var y;
190
- (y = r.onClose) == null || y.call(r, r.id);
190
+ var $;
191
+ ($ = r.onClose) == null || $.call(r, r.id);
191
192
  }
192
193
  function fe() {
193
- const { showIcon: y, icon: _, type: V, iconPrefix: de } = r;
194
+ const { showIcon: $, icon: O, type: K, iconPrefix: de } = r;
194
195
  let P;
195
- if (_)
196
- P = _;
197
- else if (y) {
198
- switch (V) {
196
+ if (O)
197
+ P = O;
198
+ else if ($) {
199
+ switch (K) {
199
200
  case "info":
200
- P = /* @__PURE__ */ n(Je, {});
201
+ P = /* @__PURE__ */ n(Be, {});
201
202
  break;
202
203
  case "success":
203
204
  P = /* @__PURE__ */ n(Ge, {});
@@ -206,14 +207,14 @@ function ct(e, o) {
206
207
  P = /* @__PURE__ */ n(Qe, {});
207
208
  break;
208
209
  case "warning":
209
- P = /* @__PURE__ */ n(Be, {});
210
+ P = /* @__PURE__ */ n(Xe, {});
210
211
  break;
211
212
  case "loading":
212
- P = /* @__PURE__ */ n(Ke, {});
213
+ P = /* @__PURE__ */ n(Je, {});
213
214
  break;
214
215
  }
215
216
  P = /* @__PURE__ */ n(
216
- X.Provider,
217
+ W.Provider,
217
218
  {
218
219
  value: de ? { prefixCls: de } : {},
219
220
  children: P
@@ -222,26 +223,26 @@ function ct(e, o) {
222
223
  }
223
224
  return /* @__PURE__ */ n("span", { className: `${x}-icon`, children: P });
224
225
  }
225
- function De() {
226
+ function Ue() {
226
227
  q();
227
228
  }
228
- function Se() {
229
- q(), K();
229
+ function De() {
230
+ q(), J();
230
231
  }
231
- te(o, () => ({
232
+ oe(o, () => ({
232
233
  getRootDOMNode: He
233
- }), []), T(() => {
234
- const y = u.current;
235
- return (y && (y == null ? void 0 : y.duration) !== r.duration || r.update) && (q(), K()), u.current = r, () => {
234
+ }), []), _(() => {
235
+ const $ = m.current;
236
+ return ($ && ($ == null ? void 0 : $.duration) !== r.duration || r.update) && (q(), J()), m.current = r, () => {
236
237
  };
237
- }, [r.duration, r.update]), T(() => (K(), () => {
238
+ }, [r.duration, r.update]), _(() => (J(), () => {
238
239
  q();
239
240
  }), []);
240
- let O;
241
- return R === "message" && (B = b, O = /* @__PURE__ */ G(ue, { children: [
242
- J && fe(),
241
+ let T;
242
+ return R === "message" && (X = b, T = /* @__PURE__ */ G(me, { children: [
243
+ B && fe(),
243
244
  /* @__PURE__ */ n("span", { className: `${x}-content`, children: C }),
244
- B && (F !== void 0 ? /* @__PURE__ */ n("span", { onClick: L, className: `${x}-close-btn`, children: F }) : /* @__PURE__ */ n(
245
+ X && (S !== void 0 ? /* @__PURE__ */ n("span", { onClick: L, className: `${x}-close-btn`, children: S }) : /* @__PURE__ */ n(
245
246
  Ce,
246
247
  {
247
248
  prefix: x,
@@ -250,21 +251,21 @@ function ct(e, o) {
250
251
  children: /* @__PURE__ */ n(pe, {})
251
252
  }
252
253
  ))
253
- ] })), R === "notification" && (O = /* @__PURE__ */ G(ue, { children: [
254
- J && /* @__PURE__ */ n("div", { className: `${x}-left`, children: fe() }),
254
+ ] })), R === "notification" && (T = /* @__PURE__ */ G(me, { children: [
255
+ B && /* @__PURE__ */ n("div", { className: `${x}-left`, children: fe() }),
255
256
  /* @__PURE__ */ G("div", { className: `${x}-right`, children: [
256
- m && /* @__PURE__ */ n("div", { className: `${x}-title`, children: m }),
257
+ u && /* @__PURE__ */ n("div", { className: `${x}-title`, children: u }),
257
258
  /* @__PURE__ */ n("div", { className: `${x}-content`, children: C }),
258
259
  h && /* @__PURE__ */ n("div", { className: `${x}-btn-wrapper`, children: h })
259
260
  ] }),
260
- B && (F !== void 0 ? /* @__PURE__ */ n("span", { onClick: L, className: `${x}-close-btn`, children: F }) : /* @__PURE__ */ n(
261
+ X && (S !== void 0 ? /* @__PURE__ */ n("span", { onClick: L, className: `${x}-close-btn`, children: S }) : /* @__PURE__ */ n(
261
262
  Ce,
262
263
  {
263
264
  prefix: x,
264
265
  className: `${x}-close-btn`,
265
266
  onClick: L,
266
267
  children: /* @__PURE__ */ n(
267
- X.Provider,
268
+ W.Provider,
268
269
  {
269
270
  value: ce ? { prefixCls: ce } : {},
270
271
  children: /* @__PURE__ */ n(pe, {})
@@ -272,35 +273,59 @@ function ct(e, o) {
272
273
  )
273
274
  }
274
275
  ))
275
- ] })), O && (O = /* @__PURE__ */ n(se, { ...ae, childrenName: "notice", children: /* @__PURE__ */ n(
276
+ ] })), T && (T = /* @__PURE__ */ n(se, { ...ae, childrenName: "notice", children: /* @__PURE__ */ n(
276
277
  "div",
277
278
  {
278
279
  ref: l,
279
280
  className: `${d}-${R}`,
280
- onMouseEnter: De,
281
- onMouseLeave: Se,
282
- children: /* @__PURE__ */ n("div", { className: qe, style: f, role: "alert", children: O })
281
+ onMouseEnter: Ue,
282
+ onMouseLeave: De,
283
+ children: /* @__PURE__ */ n("div", { className: qe, style: f, role: "alert", children: T })
283
284
  }
284
- ) })), O;
285
+ ) })), T;
286
+ }
287
+ const $e = te(ct);
288
+ function ye(e, o) {
289
+ const t = U(w), [c, a] = ze([]);
290
+ function r(s) {
291
+ a((l) => [...l, s]);
292
+ }
293
+ function i(s) {
294
+ a(
295
+ (l) => l.filter((m) => s !== m)
296
+ );
297
+ }
298
+ function d() {
299
+ return t;
300
+ }
301
+ return oe(o, () => ({
302
+ addInstance: r,
303
+ removeInstance: i,
304
+ getContextConfig: d
305
+ })), Q.Children.map(
306
+ c,
307
+ (s, l) => Q.cloneElement(s, { key: l })
308
+ );
285
309
  }
286
- const ye = ee(ct);
310
+ ye.displayName = "ContextHolderElement";
311
+ const Pe = te(ye);
287
312
  function lt(e = {}) {
288
313
  const {
289
314
  maxCount: o,
290
315
  duration: t = 3e3,
291
316
  prefixCls: c,
292
317
  getContainer: a
293
- } = e, r = k(), i = /* @__PURE__ */ n(_e, { ref: r }), d = {};
318
+ } = e, r = k(), i = /* @__PURE__ */ n(Pe, { ref: r }), d = {};
294
319
  let s;
295
- function l(m) {
320
+ function l(u) {
296
321
  let C, v;
297
322
  if (r.current) {
298
323
  const N = r.current.getContextConfig();
299
324
  v = N.rtl, C = N.prefixCls;
300
325
  }
301
- const g = c || C, f = ie(m.position, v), p = {
326
+ const g = c || C, f = ie(u.position, v), p = {
302
327
  duration: t,
303
- ...m
328
+ ...u
304
329
  }, h = d[f];
305
330
  if (h) {
306
331
  if (h.notices.length >= o) {
@@ -310,7 +335,7 @@ function lt(e = {}) {
310
335
  h.add({ ...p });
311
336
  } else
312
337
  s = /* @__PURE__ */ n(
313
- $,
338
+ y,
314
339
  {
315
340
  ...p,
316
341
  prefixCls: g,
@@ -323,13 +348,13 @@ function lt(e = {}) {
323
348
  ), r.current.addInstance(s);
324
349
  return d[f];
325
350
  }
326
- const u = {};
327
- return ne.forEach((m) => {
328
- u[m] = (C) => l({
351
+ const m = {};
352
+ return ne.forEach((u) => {
353
+ m[u] = (C) => l({
329
354
  ...C,
330
- type: m
355
+ type: u
331
356
  });
332
- }), [u, i];
357
+ }), [m, i];
333
358
  }
334
359
  const ne = [
335
360
  "info",
@@ -339,19 +364,19 @@ const ne = [
339
364
  "loading",
340
365
  "normal"
341
366
  ];
342
- let I = {}, z = [], $e, Pe, Ee, Y, S;
367
+ let I = {}, z = [], Ee, Ie, we, Y, D;
343
368
  function ie(e, o) {
344
- return H(e) && (e = o || S ? "topLeft" : "topRight"), e;
369
+ return H(e) && (e = o || D ? "topLeft" : "topRight"), e;
345
370
  }
346
371
  function at(e) {
347
- const { prefixCls: o, rtl: t, getContainer: c, notices: a } = e, r = H(t) ? S : t, i = ie(e.position, r), d = o || Pe, s = d ? `${d}-notification` : "pqb-notification";
372
+ const { prefixCls: o, rtl: t, getContainer: c, notices: a } = e, r = H(t) ? D : t, i = ie(e.position, r), d = o || Ie, s = d ? `${d}-notification` : "pqb-notification";
348
373
  let l;
349
374
  i === "topLeft" || i === "bottomLeft" ? l = "slideNoticeLeft" : l = "slideNoticeRight";
350
- const u = U(
375
+ const m = F(
351
376
  `${s}-wrapper`,
352
377
  `${s}-wrapper-${i}`,
353
- { [`${s}-wrapper-rtl`]: S }
354
- ), m = c == null ? void 0 : c();
378
+ { [`${s}-wrapper-rtl`]: D }
379
+ ), u = c == null ? void 0 : c();
355
380
  function C(g) {
356
381
  const f = a.find((p) => p.id === g);
357
382
  f && e.update({
@@ -361,10 +386,10 @@ function at(e) {
361
386
  e.remove(g);
362
387
  }, 200);
363
388
  }
364
- T(() => (e.add(e), () => {
389
+ _(() => (e.add(e), () => {
365
390
  e.clear();
366
391
  }), []);
367
- const v = /* @__PURE__ */ n("div", { className: u, children: /* @__PURE__ */ n(ge, { component: null, children: a.map((g) => /* @__PURE__ */ n(
392
+ const v = /* @__PURE__ */ n("div", { className: m, children: /* @__PURE__ */ n(ge, { component: null, children: a.map((g) => /* @__PURE__ */ n(
368
393
  xe,
369
394
  {
370
395
  timeout: {
@@ -383,7 +408,7 @@ function at(e) {
383
408
  f && (f.style.height = 0, (p = g.onClose) == null || p.call(g));
384
409
  },
385
410
  children: /* @__PURE__ */ n(
386
- ye,
411
+ $e,
387
412
  {
388
413
  ...g,
389
414
  onClose: C,
@@ -397,32 +422,32 @@ function at(e) {
397
422
  },
398
423
  g.id
399
424
  )) }) });
400
- return m ? Xe(v, m) : v;
425
+ return u ? Ve(v, u) : v;
401
426
  }
402
- const $ = ve(at);
403
- $.useNotification = lt;
404
- $.config = (e = {}) => {
427
+ const y = ve(at);
428
+ y.useNotification = lt;
429
+ y.config = (e = {}) => {
405
430
  var o;
406
- j(e.maxCount) && ($e = e.maxCount), e.prefixCls && (Pe = e.prefixCls), j(e.duration) && (Ee = e.duration), typeof e.rtl == "boolean" && (S = e.rtl), e.getContainer && ((o = e.getContainer) == null ? void 0 : o.call(e)) !== Y && (Y = e.getContainer(), Object.values(I).forEach(
431
+ j(e.maxCount) && (Ee = e.maxCount), e.prefixCls && (Ie = e.prefixCls), j(e.duration) && (we = e.duration), typeof e.rtl == "boolean" && (D = e.rtl), e.getContainer && ((o = e.getContainer) == null ? void 0 : o.call(e)) !== Y && (Y = e.getContainer(), Object.values(I).forEach(
407
432
  (t) => {
408
433
  var c;
409
434
  return (c = t == null ? void 0 : t.clear) == null ? void 0 : c.call(t);
410
435
  }
411
436
  ), I = {});
412
437
  };
413
- $.clear = () => {
438
+ y.clear = () => {
414
439
  Object.values(I).forEach((e) => {
415
440
  e == null || e.clear();
416
441
  });
417
442
  };
418
- $.remove = (e) => {
443
+ y.remove = (e) => {
419
444
  Object.values(I).forEach((o) => {
420
445
  o == null || o.remove(e);
421
446
  });
422
447
  };
423
- $.addInstance = (e) => {
424
- const o = ie(e.position, S), t = I[o], c = {
425
- duration: Ee,
448
+ y.addInstance = (e) => {
449
+ const o = ie(e.position, D), t = I[o], c = {
450
+ duration: we,
426
451
  ...e
427
452
  };
428
453
  if (t) {
@@ -432,13 +457,13 @@ $.addInstance = (e) => {
432
457
  ...c,
433
458
  update: a
434
459
  };
435
- t.notices.length >= $e && (a ? r.id = a.id : t.shift()), t.add({ ...r });
460
+ t.notices.length >= Ee && (a ? r.id = a.id : t.shift()), t.add({ ...r });
436
461
  }
437
462
  if (t === null && z.push(e), t === void 0) {
438
463
  const a = document.createElement("div");
439
464
  (Y || document.body).appendChild(a), he(a).render(
440
465
  /* @__PURE__ */ n(
441
- $,
466
+ y,
442
467
  {
443
468
  ...c,
444
469
  ref: (i) => {
@@ -455,27 +480,27 @@ $.addInstance = (e) => {
455
480
  return I[o];
456
481
  };
457
482
  ne.forEach((e) => {
458
- $[e] = (o) => $.addInstance({
483
+ y[e] = (o) => y.addInstance({
459
484
  ...o,
460
485
  type: e
461
486
  });
462
487
  });
463
488
  function ft(e = {}) {
464
- const { maxCount: o, duration: t = 3e3, prefixCls: c } = e, a = k(), r = Fe(
465
- () => /* @__PURE__ */ n(_e, { ref: a }),
489
+ const { maxCount: o, duration: t = 3e3, prefixCls: c } = e, a = k(), r = Ae(
490
+ () => /* @__PURE__ */ n(Pe, { ref: a }),
466
491
  []
467
492
  ), i = {};
468
493
  let d;
469
- function s(u) {
470
- let m, C;
494
+ function s(m) {
495
+ let u, C;
471
496
  if (a.current) {
472
497
  const b = a.current.getContextConfig();
473
- C = b.rtl, m = b.prefixCls;
498
+ C = b.rtl, u = b.prefixCls;
474
499
  }
475
- const v = c || m, g = {
500
+ const v = c || u, g = {
476
501
  position: "top",
477
502
  duration: t,
478
- ...u
503
+ ...m
479
504
  }, { position: f, transitionClassNames: p } = g;
480
505
  let h;
481
506
  const N = i[f];
@@ -501,18 +526,18 @@ function ft(e = {}) {
501
526
  };
502
527
  }
503
528
  const l = {};
504
- return Ie.forEach((u) => {
505
- l[u] = (m) => {
506
- const C = Ye(m) ? { content: m } : m;
529
+ return Re.forEach((m) => {
530
+ l[m] = (u) => {
531
+ const C = Ze(u) ? { content: u } : u;
507
532
  return s({
508
533
  ...C,
509
- type: u
534
+ type: m
510
535
  });
511
536
  };
512
537
  }), [l, r];
513
538
  }
514
- const Ie = [...ne];
515
- let M = {}, A = [], we, Re, ke, Z, Me, Te;
539
+ const Re = [...ne];
540
+ let M = {}, A = [], ke, Me, _e, Z, Te, Oe;
516
541
  function dt(e) {
517
542
  const {
518
543
  transitionClassNames: o,
@@ -532,13 +557,13 @@ function dt(e) {
532
557
  e.remove(f);
533
558
  }, 100);
534
559
  }
535
- T(() => (e.add(e), () => {
560
+ _(() => (e.add(e), () => {
536
561
  e.clear();
537
562
  }), []);
538
- const l = c || Re, u = H(a) ? Me : a, m = H(r) ? Te : r, C = l ? `${l}-message` : "pqb-message", v = {
563
+ const l = c || Me, m = H(a) ? Te : a, u = H(r) ? Oe : r, C = l ? `${l}-message` : "pqb-message", v = {
539
564
  enter: j(t == null ? void 0 : t.enter) ? t == null ? void 0 : t.enter : 100,
540
565
  exit: j(t == null ? void 0 : t.exit) ? t == null ? void 0 : t.exit : 300
541
- }, g = U(
566
+ }, g = F(
542
567
  `${C}-wrapper`,
543
568
  `${C}-wrapper-${d}`
544
569
  );
@@ -558,7 +583,7 @@ function dt(e) {
558
583
  p && (p.style.height = 0, (h = f.onClose) == null || h.call(f));
559
584
  },
560
585
  children: /* @__PURE__ */ n(
561
- ye,
586
+ $e,
562
587
  {
563
588
  ...f,
564
589
  prefixCls: C,
@@ -566,8 +591,8 @@ function dt(e) {
566
591
  iconPrefix: l,
567
592
  onClose: s,
568
593
  noticeType: "message",
569
- rtl: u,
570
- ...H(m) ? {} : { closable: m }
594
+ rtl: m,
595
+ ...H(u) ? {} : { closable: u }
571
596
  }
572
597
  )
573
598
  },
@@ -577,7 +602,7 @@ function dt(e) {
577
602
  const E = ve(dt);
578
603
  E.config = (e = {}) => {
579
604
  var o;
580
- j(e.maxCount) && (we = e.maxCount), e.prefixCls && (Re = e.prefixCls), j(e.duration) && (ke = e.duration), typeof e.rtl == "boolean" && (Me = e.rtl), typeof e.closable == "boolean" && (Te = e.closable), ((o = e.getContainer) == null ? void 0 : o.call(e)) !== Z && (Z = e.getContainer(), Object.values(M).forEach((t) => t == null ? void 0 : t.clear()), M = {});
605
+ j(e.maxCount) && (ke = e.maxCount), e.prefixCls && (Me = e.prefixCls), j(e.duration) && (_e = e.duration), typeof e.rtl == "boolean" && (Te = e.rtl), typeof e.closable == "boolean" && (Oe = e.closable), ((o = e.getContainer) == null ? void 0 : o.call(e)) !== Z && (Z = e.getContainer(), Object.values(M).forEach((t) => t == null ? void 0 : t.clear()), M = {});
581
606
  };
582
607
  E.clear = () => {
583
608
  Object.values(M).forEach((e) => {
@@ -587,19 +612,19 @@ E.clear = () => {
587
612
  E.addInstance = (e) => {
588
613
  const o = {
589
614
  position: "top",
590
- duration: ke,
615
+ duration: _e,
591
616
  ...e
592
617
  }, { position: t, transitionClassNames: c, transitionTimeout: a } = o;
593
618
  let r;
594
619
  const i = M[t];
595
620
  if (i) {
596
621
  const s = i.notices.find(
597
- (u) => u.id === e.id
622
+ (m) => m.id === e.id
598
623
  ), l = {
599
624
  ...o,
600
625
  update: s
601
626
  };
602
- i.notices.length >= we ? s ? i.add({
627
+ i.notices.length >= ke ? s ? i.add({
603
628
  ...l,
604
629
  id: s.id
605
630
  }) : (i.shift(), i.add(l)) : r = i.add(l);
@@ -613,11 +638,11 @@ E.addInstance = (e) => {
613
638
  transitionClassNames: c,
614
639
  transitionTimeout: a,
615
640
  ...o,
616
- ref: (u) => {
617
- if (u) {
618
- for (let m = 0; m < A.length; m++)
619
- u.add(A[m]);
620
- A = [], M[t] = u;
641
+ ref: (m) => {
642
+ if (m) {
643
+ for (let u = 0; u < A.length; u++)
644
+ m.add(A[u]);
645
+ A = [], M[t] = m;
621
646
  }
622
647
  }
623
648
  }
@@ -629,7 +654,7 @@ E.addInstance = (e) => {
629
654
  (l = (s = M[t]) == null ? void 0 : s.remove) == null || l.call(s, r);
630
655
  };
631
656
  };
632
- Ie.forEach((e) => {
657
+ Re.forEach((e) => {
633
658
  E[e] = (o) => {
634
659
  const t = typeof o == "string" ? { content: o } : o;
635
660
  return E.addInstance({
@@ -639,14 +664,14 @@ Ie.forEach((e) => {
639
664
  };
640
665
  });
641
666
  E.useMessage = ft;
642
- const ut = Ne;
643
- let W = {};
644
- const mt = {};
667
+ const mt = Ne;
668
+ let V = {};
669
+ const ut = {};
645
670
  function se(e) {
646
671
  const o = re(
647
672
  e,
648
- ut,
649
- mt
673
+ mt,
674
+ ut
650
675
  ), {
651
676
  theme: t,
652
677
  prefixCls: c,
@@ -657,67 +682,43 @@ function se(e) {
657
682
  } = o, {
658
683
  children: s,
659
684
  isRootConfig: l,
660
- keepConfig: u,
685
+ keepConfig: m,
661
686
  // 潘启宝添加
662
- ...m
687
+ ...u
663
688
  } = o;
664
- (l || u) && (W = me({}, W, m));
665
- const C = me({}, W, m, {
689
+ (l || m) && (V = ue({}, V, u));
690
+ const C = ue({}, V, u, {
666
691
  getPrefixCls: v
667
692
  });
668
693
  function v(f, p) {
669
694
  return `${p || c}-${f}`;
670
695
  }
671
- T(() => (tt(), () => {
672
- }), [t]), T(() => {
673
- i && (E.config({ prefixCls: c, rtl: r }), $.config({ prefixCls: c, rtl: r }));
674
- }, [c, r, i]), T(() => {
675
- d && Ze({ locale: a, prefixCls: c, rtl: r });
696
+ _(() => (tt(), () => {
697
+ }), [t]), _(() => {
698
+ i && (E.config({ prefixCls: c, rtl: r }), y.config({ prefixCls: c, rtl: r }));
699
+ }, [c, r, i]), _(() => {
700
+ d && Ke({ locale: a, prefixCls: c, rtl: r });
676
701
  }, [a, c, r, d]);
677
702
  let g = s;
678
- return c && c !== oe && (g = /* @__PURE__ */ n(X.Provider, { value: { prefixCls: c }, children: s })), /* @__PURE__ */ n(w.Provider, { value: C, children: g });
703
+ return c && c !== ee && (g = /* @__PURE__ */ n(W.Provider, { value: { prefixCls: c }, children: s })), /* @__PURE__ */ n(w.Provider, { value: C, children: g });
679
704
  }
680
705
  se.ConfigContext = w;
681
706
  se.displayName = "ConfigProvider";
682
707
  const Jt = w.Consumer;
683
- function Oe(e, o) {
684
- const t = D(w), [c, a] = Le([]);
685
- function r(s) {
686
- a((l) => [...l, s]);
687
- }
688
- function i(s) {
689
- a(
690
- (l) => l.filter((u) => s !== u)
691
- );
692
- }
693
- function d() {
694
- return t;
695
- }
696
- return te(o, () => ({
697
- addInstance: r,
698
- removeInstance: i,
699
- getContextConfig: d
700
- })), Q.Children.map(
701
- c,
702
- (s, l) => Q.cloneElement(s, { key: l })
703
- );
704
- }
705
- Oe.displayName = "ContextHolderElement";
706
- const _e = ee(Oe);
707
708
  export {
708
709
  Jt as C,
709
710
  Ne as D,
710
711
  rt as E,
711
712
  Ce as I,
712
713
  E as M,
713
- $ as N,
714
+ y as N,
714
715
  w as a,
715
716
  se as b,
716
717
  lt as c,
717
- _e as d,
718
- ye as e,
718
+ Pe as d,
719
+ $e as e,
719
720
  ie as g,
720
- Ie as m,
721
+ Re as m,
721
722
  ne as n,
722
723
  ft as u
723
724
  };