@unicom-cloud/ui 0.8.113 → 0.8.114

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 (320) hide show
  1. package/Affix.js +2 -2
  2. package/Alert.js +2 -2
  3. package/AutoComplete.js +1 -1
  4. package/BackTop.js +3 -3
  5. package/Badge.js +2 -2
  6. package/Breadcrumb.js +2 -2
  7. package/Button.js +1 -1
  8. package/Calendar.js +1 -1
  9. package/Card.js +1 -1
  10. package/Carousel.js +1 -1
  11. package/Cascader.js +1 -1
  12. package/Checkbox.js +1 -1
  13. package/ColorPicker.js +1 -1
  14. package/Comment.js +1 -1
  15. package/ConfigProvider.js +1 -1
  16. package/Copy.js +1 -1
  17. package/Countdown.js +4 -4
  18. package/DatePicker.js +1 -1
  19. package/Descriptions.js +1 -1
  20. package/Details.js +4 -4
  21. package/Development.js +1 -1
  22. package/Divider.js +1 -1
  23. package/Draggable.js +1 -1
  24. package/Dropdown.js +2 -2
  25. package/Empty.js +1 -1
  26. package/Flex.js +4 -4
  27. package/Form.js +1 -1
  28. package/Icon.js +1 -1
  29. package/IconHover.js +1 -1
  30. package/Image.js +1 -1
  31. package/InputNumber.js +1 -1
  32. package/Layout.js +1 -1
  33. package/Link.js +1 -1
  34. package/LiquidFill.js +4 -4
  35. package/List.js +1 -1
  36. package/Loading.js +4 -4
  37. package/Marquee.js +7 -6
  38. package/Mentions.js +1 -1
  39. package/Menu.js +1 -1
  40. package/Message.js +2 -2
  41. package/Modal.js +1 -1
  42. package/Notice.js +4 -4
  43. package/Notification.js +2 -2
  44. package/OverflowEllipsis.js +1 -1
  45. package/PageHeader.js +1 -1
  46. package/Popconfirm.js +1 -1
  47. package/Popover.js +1 -1
  48. package/Progress.js +1 -1
  49. package/QrCode.js +7 -7
  50. package/Radio.js +1 -1
  51. package/Rate.js +1 -1
  52. package/ResizeBox.js +2 -2
  53. package/Result.js +1 -1
  54. package/RichText.js +1 -1
  55. package/Segmented.js +4 -4
  56. package/Skeleton.js +1 -1
  57. package/Slider.js +2 -2
  58. package/Space.js +4 -4
  59. package/Spin.js +1 -1
  60. package/Statistic.js +1 -1
  61. package/Steps.js +1 -1
  62. package/Switch.js +2 -2
  63. package/Table.js +1 -1
  64. package/Tabs.js +1 -1
  65. package/Tag.js +1 -1
  66. package/Tooltip.js +1 -1
  67. package/Tour.js +4 -4
  68. package/Transfer.js +1 -1
  69. package/Tree.js +1 -1
  70. package/TreeSelect.js +1 -1
  71. package/Trigger.js +3 -3
  72. package/affix/index.js +2 -2
  73. package/alert/index.js +2 -2
  74. package/anchor/Anchor.js +2 -2
  75. package/anchor/Link.js +1 -1
  76. package/app/App.js +2 -2
  77. package/auto-complete/index.js +1 -1
  78. package/avatar/Avatar.js +1 -1
  79. package/avatar/Group.js +1 -1
  80. package/back-top/index.js +3 -3
  81. package/badge/Count.js +1 -1
  82. package/badge/index.js +2 -2
  83. package/breadcrumb/index.js +2 -2
  84. package/button/Group.js +1 -1
  85. package/button/index.js +1 -1
  86. package/calendar/index.js +2 -2
  87. package/card/Grid.js +1 -1
  88. package/card/Meta.js +1 -1
  89. package/card/index.js +1 -1
  90. package/carousel/Arrow.js +1 -1
  91. package/carousel/Indicator.js +1 -1
  92. package/carousel/index.js +1 -1
  93. package/cascader/Cascader.js +2 -2
  94. package/cascader/index.js +1 -1
  95. package/cascader/util.js +1 -1
  96. package/checkbox/Checkbox.js +2 -2
  97. package/checkbox/Group.js +2 -2
  98. package/checkbox/GroupBlock.js +2 -2
  99. package/checkbox/index.js +2 -2
  100. package/chunk/{D0dVE1v1.js → BGb_jT2S.js} +417 -416
  101. package/chunk/{C6A94b7f.js → BcWPf1id.js} +1 -1
  102. package/chunk/BcdTSJks.js +48 -0
  103. package/chunk/{RjJoagzL.js → CEAeR6xB.js} +1 -1
  104. package/chunk/{yWKJUe_w.js → CKojyqln.js} +4 -4
  105. package/chunk/{DrYaod6k.js → CRgtPpMG.js} +1 -1
  106. package/chunk/{3t4FwEoB.js → CVjWKHBo.js} +1 -1
  107. package/chunk/{DB0hUIM1.js → CYPFoLks.js} +4 -4
  108. package/chunk/{Bzx5BueA.js → Ch4iApRQ.js} +2 -2
  109. package/chunk/{CbXCgtzv.js → Cs9GrNJa.js} +5 -5
  110. package/chunk/CxbF1opI.js +231 -0
  111. package/chunk/{CRdegvoa.js → D3F0iWPu.js} +1 -1
  112. package/chunk/{DzlfiVe2.js → D6I1_o6O.js} +1 -1
  113. package/chunk/{DA5AMZwY.js → DPDyV8yt.js} +3 -3
  114. package/chunk/{B--6x-RL.js → DQ8_XXrH.js} +1 -1
  115. package/chunk/{hc_ufgVf.js → DmHIX8hU.js} +166 -121
  116. package/chunk/{CYDaUML7.js → DstheLSK.js} +4 -4
  117. package/chunk/{BHAu6wbC.js → HFPyZ48d.js} +37 -35
  118. package/chunk/{Bcl7dWlJ.js → efH9HX0H.js} +3 -3
  119. package/chunk/exc7v_Hl.js +53 -0
  120. package/collapse/Collapse.js +2 -2
  121. package/collapse/Item.js +2 -2
  122. package/color-picker/ControlBar.js +1 -1
  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 +2 -2
  128. package/color-picker/index.js +1 -1
  129. package/comment/index.js +1 -1
  130. package/config-provider/ConfigProvider.js +1 -1
  131. package/config-provider/context.js +1 -1
  132. package/config-provider/index.js +2 -2
  133. package/copy/index.js +1 -1
  134. package/countdown/index.js +4 -4
  135. package/date-picker/Picker.js +1 -1
  136. package/date-picker/RangePicker.js +2 -2
  137. package/date-picker/index.js +1 -1
  138. package/descriptions/index.js +1 -1
  139. package/details/index.js +4 -4
  140. package/development/index.js +1 -1
  141. package/divider/index.js +1 -1
  142. package/draggable/index.js +1 -1
  143. package/drawer/Drawer.js +89 -93
  144. package/dropdown/Button.js +1 -1
  145. package/dropdown/index.js +2 -2
  146. package/empty/index.js +1 -1
  147. package/flex/index.js +4 -4
  148. package/form/Control.js +115 -103
  149. package/form/Form.js +2 -2
  150. package/form/FormItem.js +2 -2
  151. package/form/index.js +1 -1
  152. package/form/promisify.js +10 -19
  153. package/form/store.js +3 -3
  154. package/form/util.js +62 -52
  155. package/grid/Grid.js +1 -1
  156. package/grid/Item.js +1 -1
  157. package/hooks/index.js +3 -3
  158. package/hooks/useInView.js +1 -1
  159. package/hooks/useIntersectionObserver.js +1 -1
  160. package/hooks/useOverrideRef.js +1 -1
  161. package/hooks/useWatermark.js +1 -1
  162. package/icon/addFromIconFontCn.js +1 -1
  163. package/icon/index.js +2 -2
  164. package/icon-hover/index.js +1 -1
  165. package/icons/file.js +1 -1
  166. package/image/Image.js +3 -3
  167. package/image/ImagePreview.js +6 -6
  168. package/image/ImagePreviewArrow.js +1 -1
  169. package/image/ImagePreviewGroup.js +1 -1
  170. package/image/index.js +1 -1
  171. package/index.js +701 -689
  172. package/input/Button.js +1 -1
  173. package/input/Group.js +1 -1
  174. package/input/Input.js +2 -2
  175. package/input/InputElement.js +1 -1
  176. package/input/Password.js +1 -1
  177. package/input/Search.js +1 -1
  178. package/input/Textarea.js +1 -1
  179. package/input/autoSizeTextAreaHeight.js +29 -20
  180. package/input-number/index.js +1 -1
  181. package/input-tag/InputTag.js +2 -2
  182. package/layout/Content.js +1 -1
  183. package/layout/Footer.js +1 -1
  184. package/layout/Header.js +1 -1
  185. package/layout/Sider.js +1 -1
  186. package/layout/index.js +1 -1
  187. package/link/index.js +1 -1
  188. package/liquid-fill/index.js +4 -4
  189. package/list/Item.js +1 -1
  190. package/list/Meta.js +1 -1
  191. package/list/index.js +1 -1
  192. package/loading/index.js +4 -4
  193. package/locale/en-US.js +5 -3
  194. package/locale/tr-TR.js +5 -3
  195. package/marquee/index.js +7 -6
  196. package/marquee-/index.js +7 -6
  197. package/mentions/index.js +1 -1
  198. package/menu/Menu.js +2 -2
  199. package/menu/OverflowWrap.js +1 -1
  200. package/menu/index.js +2 -2
  201. package/message/index.js +2 -2
  202. package/message/useMessage.js +1 -1
  203. package/modal/Confirm.js +2 -2
  204. package/modal/Modal.js +5 -5
  205. package/modal/index.js +2 -2
  206. package/notice/index.js +4 -4
  207. package/notification/index.js +2 -2
  208. package/notification/useNotification.js +1 -1
  209. package/overflow-ellipsis/OverflowItem.js +1 -1
  210. package/overflow-ellipsis/index.js +1 -1
  211. package/package.json +1 -1
  212. package/page-header/index.js +1 -1
  213. package/pagination/PageItem.js +1 -1
  214. package/pagination/PageJumper.js +1 -1
  215. package/pagination/PageOption.js +1 -1
  216. package/pagination/Pagination.js +1 -1
  217. package/picker/Input.js +1 -1
  218. package/picker/InputRange.js +1 -1
  219. package/popconfirm/index.js +1 -1
  220. package/popover/index.js +1 -1
  221. package/progress/index.js +1 -1
  222. package/qr-code/index.js +1233 -45
  223. package/radio/Group.js +2 -2
  224. package/radio/GroupBlock.js +2 -2
  225. package/radio/Radio.js +2 -2
  226. package/radio/index.js +2 -2
  227. package/rate/index.js +1 -1
  228. package/resize-box/ResizeTrigger.js +1 -1
  229. package/resize-box/Split.js +2 -2
  230. package/resize-box/SplitGroup.js +2 -2
  231. package/resize-box/index.js +2 -2
  232. package/result/index.js +1 -1
  233. package/rich-text/index.js +1 -1
  234. package/row-col/Col-.js +1 -1
  235. package/row-col/Col.js +1 -1
  236. package/row-col/Row.js +1 -1
  237. package/segmented/index.js +21 -21
  238. package/select/Option.js +1 -1
  239. package/select/Select.js +2 -2
  240. package/select-view/Core.js +1 -1
  241. package/skeleton/index.js +1 -1
  242. package/slider/Button.js +2 -2
  243. package/slider/index.js +2 -2
  244. package/space/index.js +4 -4
  245. package/spin/DotLoading.js +1 -1
  246. package/spin/index.js +1 -1
  247. package/splitter/Panel.js +1 -1
  248. package/splitter/SplitBar.js +2 -2
  249. package/splitter/Splitter.js +2 -2
  250. package/statistic/index.js +1 -1
  251. package/steps/index.js +1 -1
  252. package/style.css +1 -1
  253. package/switch/index.js +2 -2
  254. package/table/Table.js +3 -3
  255. package/table/index.js +4 -4
  256. package/tabs/Tab.js +2 -2
  257. package/tabs/TabContent.js +2 -2
  258. package/tabs/TabPane.js +1 -1
  259. package/tabs/index.js +2 -2
  260. package/tag/index.js +1 -1
  261. package/time-picker/Picker.js +1 -1
  262. package/time-picker/TimePicker.js +1 -1
  263. package/timeline/Item.js +1 -1
  264. package/timeline/Timeline.js +1 -1
  265. package/tooltip/index.js +1 -1
  266. package/tour/index.js +4 -4
  267. package/transfer/Item.js +2 -2
  268. package/transfer/List.js +2 -2
  269. package/transfer/index.js +1 -1
  270. package/tree/Animation.js +3 -3
  271. package/tree/Node.js +3 -3
  272. package/tree/NodeList.js +1 -1
  273. package/tree/Tree.js +2 -2
  274. package/tree/index.js +1 -1
  275. package/tree-select/Select.js +2 -2
  276. package/tree-select/index.js +1 -1
  277. package/trigger/getPopupStyle.js +1 -1
  278. package/trigger/index.js +145 -145
  279. package/types/common/hooks/useWindowSize.d.ts +4 -4
  280. package/types/common/utils/dom.d.ts +1 -1
  281. package/types/common/utils/lodash.d.ts +2 -1
  282. package/types/common/utils/reactDOM.d.ts +10 -1
  283. package/types/common/utils/validate.d.ts +2 -0
  284. package/types/pc/form/interface.d.ts +6 -1
  285. package/types/pc/form/promisify.d.ts +5 -0
  286. package/types/pc/form/store.d.ts +1 -1
  287. package/types/pc/form/util.d.ts +1 -1
  288. package/types/pc/input/autoSizeTextAreaHeight.d.ts +4 -2
  289. package/types/pc/qr-code/examples/demo.d.ts +1 -0
  290. package/types/pc/qr-code/examples/download.d.ts +2 -0
  291. package/types/pc/qr-code/examples/full.d.ts +2 -0
  292. package/types/pc/qr-code/examples/image.d.ts +2 -0
  293. package/types/pc/qr-code/index.d.ts +2 -0
  294. package/types/pc/qr-code/src/index.d.ts +116 -0
  295. package/types/pc/qr-code/src/qrcodegen.d.ts +95 -0
  296. package/types/pc/qr-code/src/qrcodegen2.d.ts +325 -0
  297. package/types/pc/utils/validate.d.ts +1 -1
  298. package/typography/Base.js +1 -1
  299. package/typography/Ellipsis.js +2 -2
  300. package/typography/Paragraph.js +1 -1
  301. package/typography/Typography.js +1 -1
  302. package/upload/TriggerNode.js +1 -1
  303. package/upload/Upload.js +2 -2
  304. package/upload/Uploader.js +1 -1
  305. package/upload/request_.js +1972 -41
  306. package/utils/PqbCSSTransition.js +1 -1
  307. package/utils/contextHolder.js +1 -1
  308. package/utils/dom.js +1 -1
  309. package/utils/index.js +247 -235
  310. package/utils/lodash.js +33 -32
  311. package/utils/react19Adapter.js +1 -1
  312. package/utils/reactDOM.js +1 -1
  313. package/utils/validate.js +15 -5
  314. package/verification-code/VerificationCode.js +1 -1
  315. package/version/index.js +1 -1
  316. package/virtual-list/VirtualList.js +1 -1
  317. package/watermark/Watermark.js +1 -1
  318. package/chunk/CXrVhA6-.js +0 -54
  319. package/chunk/De8RLlOK.js +0 -231
  320. package/chunk/d1c9z8T1.js +0 -49
package/drawer/Drawer.js CHANGED
@@ -1,19 +1,19 @@
1
- import { jsxs as y, Fragment as pe, jsx as n } from "react/jsx-runtime";
1
+ import { jsxs as x, Fragment as pe, jsx as n } from "react/jsx-runtime";
2
2
  import me from "@unicom-cloud/icons/IconUiClose";
3
- import ue from "lodash/isFunction";
4
- import fe, { useContext as he, useRef as O, useState as c, useCallback as Ce, useMemo as xe, useImperativeHandle as ye, useEffect as B } from "react";
5
- import D from "../button/index.js";
6
- import { a as Ne, I as be, b as R } from "../chunk/CYDaUML7.js";
7
- import { u as ge } from "../chunk/FgWHhRFz.js";
8
- import { u as ke } from "../chunk/BqWBaRtM.js";
9
- import we from "../portal/index.js";
10
- import { P as S } from "../chunk/B--6x-RL.js";
11
- import N from "@unicom-cloud/utils/class-name";
12
- import { a as ve, c as Ie } from "../chunk/d1c9z8T1.js";
13
- import { Esc as Pe } from "@unicom-cloud/utils/constant/keyboardCode";
14
- import { o as $e } from "../chunk/BKKEev13.js";
15
- import { f as Ee } from "../chunk/CXrVhA6-.js";
16
- const Oe = {
3
+ import O from "lodash/isFunction";
4
+ import ue, { useContext as fe, useRef as B, useState as c, useCallback as he, useImperativeHandle as Ce, useEffect as D } from "react";
5
+ import R from "../button/index.js";
6
+ import { a as xe, I as ye, b as S } from "../chunk/DstheLSK.js";
7
+ import { u as Ne } from "../chunk/FgWHhRFz.js";
8
+ import { u as ge } from "../chunk/BqWBaRtM.js";
9
+ import ke from "../portal/index.js";
10
+ import { P as T } from "../chunk/DQ8_XXrH.js";
11
+ import y from "@unicom-cloud/utils/class-name";
12
+ import { a as be, c as we } from "../chunk/BcdTSJks.js";
13
+ import { Esc as ve } from "@unicom-cloud/utils/constant/keyboardCode";
14
+ import { o as Ie } from "../chunk/BKKEev13.js";
15
+ import { f as Pe } from "../chunk/exc7v_Hl.js";
16
+ const $e = {
17
17
  placement: "right",
18
18
  width: 250,
19
19
  height: 250,
@@ -24,87 +24,83 @@ const Oe = {
24
24
  mountOnEnter: !0,
25
25
  getPopupContainer: () => document.body
26
26
  };
27
- function Be(T, z) {
28
- const d = he(Ne), { locale: b, getPrefixCls: F, componentConfig: j, rtl: H } = d, o = ge(
29
- T,
30
- Oe,
31
- j?.Drawer
27
+ function Ee(z, F) {
28
+ const d = fe(xe), { locale: N, getPrefixCls: j, componentConfig: H, rtl: Z } = d, o = Ne(
29
+ z,
30
+ $e,
31
+ H?.Drawer
32
32
  ), {
33
- style: M,
34
- className: Z,
35
- children: L,
36
- wrapClassName: W,
37
- maskStyle: q,
38
- headerStyle: G,
39
- bodyStyle: K,
33
+ style: L,
34
+ className: M,
35
+ children: W,
36
+ wrapClassName: q,
37
+ maskStyle: G,
38
+ headerStyle: K,
39
+ bodyStyle: U,
40
40
  title: p,
41
41
  footer: i,
42
- okText: U,
43
- cancelText: _,
44
- width: A,
45
- height: J,
42
+ okText: _,
43
+ cancelText: A,
44
+ width: J,
45
+ height: Q,
46
46
  placement: a,
47
47
  mask: m,
48
48
  visible: r,
49
- closable: Q,
50
- maskClosable: V,
51
- confirmLoading: X,
49
+ closable: V,
50
+ maskClosable: X,
51
+ confirmLoading: Y,
52
52
  mountOnEnter: u,
53
53
  unmountOnExit: g,
54
- afterOpen: Y,
55
- afterClose: ee,
54
+ afterOpen: ee,
55
+ afterClose: ne,
56
56
  getPopupContainer: f,
57
- escToExit: ne,
57
+ escToExit: te,
58
58
  getChildrenPopupContainer: k,
59
- okButtonProps: te,
60
- cancelButtonProps: oe,
61
- zIndex: w,
62
- closeIcon: v,
59
+ okButtonProps: oe,
60
+ cancelButtonProps: re,
61
+ zIndex: b,
62
+ closeIcon: w,
63
63
  okButton: l,
64
- ...re
65
- } = o, s = O(null), I = O(null), [se, ie] = c(!1), [h, le] = c(), t = F?.("drawer"), [P, C] = c(!1), [Re, $] = c(!1), E = /* @__PURE__ */ y(pe, { children: [
64
+ ...se
65
+ } = o, s = B(null), v = B(null), [Be, ie] = c(!1), [h, le] = c(), t = j?.("drawer"), [I, C] = c(!1), [De, P] = c(!1), $ = /* @__PURE__ */ x(pe, { children: [
66
66
  o.cancelButton?.visible !== !1 && /* @__PURE__ */ n(
67
- D,
67
+ R,
68
68
  {
69
69
  onClick: o.onCancel,
70
- ...oe,
70
+ ...re,
71
71
  ...o.cancelButton?.props,
72
- children: o.cancelButton?.props?.children || o.cancelButton?.label || o.cancelButton?.text || _ || b?.Drawer.cancelText
72
+ children: o.cancelButton?.props?.children || o.cancelButton?.label || o.cancelButton?.text || A || N?.Drawer.cancelText
73
73
  }
74
74
  ),
75
75
  l?.visible !== !1 && /* @__PURE__ */ n(
76
- D,
76
+ R,
77
77
  {
78
78
  type: "primary",
79
- loading: X,
79
+ loading: Y,
80
80
  onClick: o.onOk,
81
- ...te,
81
+ ...oe,
82
82
  ...l?.props,
83
- children: l?.props?.children || l?.label || l?.text || U || b?.Drawer.okText
83
+ children: l?.props?.children || l?.label || l?.text || _ || N?.Drawer.okText
84
84
  }
85
85
  )
86
- ] }), x = Ce(() => {
86
+ ] }), E = he(() => {
87
87
  const e = f?.();
88
- return Ee(e) || document.body;
89
- }, [f]), ae = xe(() => !ve && x() === document.body, [
90
- se,
91
- x()
92
- // 潘启宝修改于2024年11月 4日 星期一 21时22分11秒 CST
93
- ]);
94
- ke(x, { hidden: (r || P) && m }), ye(z, () => s.current), B(() => {
95
- r && o.getPopupContainer && ie(!0);
96
- }, []), B(() => {
97
- r && Ie(document.body, s.current) && s.current?.focus?.();
88
+ return Pe(e) || document.body;
89
+ }, [f]), ae = !be && E() === document.body;
90
+ ge(E, { hidden: (r || I) && m }), Ce(F, () => s.current), D(() => {
91
+ r && O(o.getPopupContainer) && ie(!0);
92
+ }, []), D(() => {
93
+ r && we(document.body, s.current) && s.current?.focus?.();
98
94
  }, [r]);
99
95
  const ce = () => {
100
96
  if (r && h === void 0 && s.current) {
101
97
  const e = +window.getComputedStyle(s.current, null)?.zIndex;
102
98
  isNaN(e) || le(e + 1);
103
99
  }
104
- }, de = /* @__PURE__ */ y("div", { className: `${t}-scroll`, tabIndex: -1, children: [
105
- p !== null && /* @__PURE__ */ n("div", { className: `${t}-header`, style: G, children: /* @__PURE__ */ n("div", { className: `${t}-header-title`, children: p }) }),
106
- Q && (v !== void 0 ? /* @__PURE__ */ n("span", { onClick: o.onCancel, className: `${t}-close-icon`, children: v }) : /* @__PURE__ */ n(
107
- be,
100
+ }, de = /* @__PURE__ */ x("div", { className: `${t}-scroll`, tabIndex: -1, children: [
101
+ p !== null && /* @__PURE__ */ n("div", { className: `${t}-header`, style: K, children: /* @__PURE__ */ n("div", { className: `${t}-header-title`, children: p }) }),
102
+ V && (w !== void 0 ? /* @__PURE__ */ n("span", { onClick: o.onCancel, className: `${t}-close-icon`, children: w }) : /* @__PURE__ */ n(
103
+ ye,
108
104
  {
109
105
  onClick: o.onCancel,
110
106
  className: `${t}-close-icon`,
@@ -115,53 +111,53 @@ function Be(T, z) {
115
111
  "div",
116
112
  {
117
113
  ref: (e) => {
118
- I.current = e, ce();
114
+ v.current = e, ce();
119
115
  },
120
- style: K,
121
- className: N(`${t}-content`, {
116
+ style: U,
117
+ className: y(`${t}-content`, {
122
118
  [`${t}-content-nofooter`]: i === null,
123
119
  [`${t}-content-noheader`]: p === null
124
120
  }),
125
121
  children: /* @__PURE__ */ n(
126
- R,
122
+ S,
127
123
  {
128
124
  ...d,
129
125
  childrenName: "Drawer",
130
126
  zIndex: h || 1050,
131
- getPopupContainer: (e) => typeof k == "function" ? k(e) : I.current,
132
- children: L
127
+ getPopupContainer: (e) => typeof k == "function" ? k(e) : v.current,
128
+ children: W
133
129
  }
134
130
  )
135
131
  }
136
132
  ),
137
- i !== null && /* @__PURE__ */ n("div", { className: `${t}-footer`, children: ue(i) ? i(E) : i || E })
133
+ i !== null && /* @__PURE__ */ n("div", { className: `${t}-footer`, children: O(i) ? i($) : i || $ })
138
134
  ] });
139
135
  return /* @__PURE__ */ n(
140
- we,
136
+ ke,
141
137
  {
142
138
  forceRender: !u,
143
139
  visible: r,
144
140
  getContainer: f,
145
- children: /* @__PURE__ */ y(
141
+ children: /* @__PURE__ */ x(
146
142
  "div",
147
143
  {
148
- ...$e(re, ["onCancel", "onOk"]),
144
+ ...Ie(se, ["onCancel", "onOk"]),
149
145
  ref: s,
150
146
  onKeyDown: (e) => {
151
- e.key === Pe.key && ne && r && o.onCancel?.(e);
147
+ e.key === ve.key && te && r && o.onCancel?.(e);
152
148
  },
153
- className: N(
149
+ className: y(
154
150
  `${t}-wrapper`,
155
151
  {
156
152
  [`${t}-no-mask`]: !m,
157
153
  [`${t}-wrapper-hide`]: !r
158
154
  },
159
- W
155
+ q
160
156
  ),
161
- style: ae ? { position: "fixed", zIndex: w } : { zIndex: w || "inherit", position: "absolute" },
157
+ style: ae ? { position: "fixed", zIndex: b } : { zIndex: b || "inherit", position: "absolute" },
162
158
  children: [
163
159
  m ? /* @__PURE__ */ n(
164
- S,
160
+ T,
165
161
  {
166
162
  in: r,
167
163
  appear: !0,
@@ -173,16 +169,16 @@ function Be(T, z) {
173
169
  "div",
174
170
  {
175
171
  className: `${t}-mask`,
176
- style: q,
172
+ style: G,
177
173
  onClick: (e) => {
178
- !P && V && o.onCancel?.(e);
174
+ !I && X && o.onCancel?.(e);
179
175
  }
180
176
  }
181
177
  )
182
178
  }
183
179
  ) : null,
184
180
  /* @__PURE__ */ n(
185
- S,
181
+ T,
186
182
  {
187
183
  in: r,
188
184
  appear: !0,
@@ -199,25 +195,25 @@ function Be(T, z) {
199
195
  e && (e.parentNode.style.display = "block", C(!1));
200
196
  },
201
197
  onEntered: () => {
202
- $(!0), Y?.();
198
+ P(!0), ee?.();
203
199
  },
204
200
  onExit: () => {
205
- $(!1), C(!0);
201
+ P(!1), C(!0);
206
202
  },
207
203
  onExited: (e) => {
208
- e && (C(!1), e.parentNode.style.display = "", ee?.());
204
+ e && (C(!1), e.parentNode.style.display = "", ne?.());
209
205
  },
210
206
  children: /* @__PURE__ */ n(
211
207
  "div",
212
208
  {
213
- className: N(t, Z, { [`${t}-rtl`]: H }),
209
+ className: y(t, M, { [`${t}-rtl`]: Z }),
214
210
  style: Object.assign(
215
- a === "left" || a === "right" ? { width: A } : { height: J },
211
+ a === "left" || a === "right" ? { width: J } : { height: Q },
216
212
  { [a]: 0 },
217
- M
213
+ L
218
214
  ),
219
215
  children: /* @__PURE__ */ n("div", { className: `${t}-inner`, children: /* @__PURE__ */ n(
220
- R,
216
+ S,
221
217
  {
222
218
  ...d,
223
219
  childrenName: "Drawer",
@@ -235,8 +231,8 @@ function Be(T, z) {
235
231
  }
236
232
  );
237
233
  }
238
- const De = fe.forwardRef(Be);
239
- De.displayName = "Drawer";
234
+ const Oe = ue.forwardRef(Ee);
235
+ Oe.displayName = "Drawer";
240
236
  export {
241
- De as default
237
+ Oe as default
242
238
  };
@@ -3,7 +3,7 @@ import "@unicom-cloud/icons/IconUiMore";
3
3
  import "react";
4
4
  import { DropdownButton as f } from "./index.js";
5
5
  import "../button/index.js";
6
- import "../chunk/CYDaUML7.js";
6
+ import "../chunk/DstheLSK.js";
7
7
  import "../chunk/FgWHhRFz.js";
8
8
  import "../chunk/ClqoGc3r.js";
9
9
  export {
package/dropdown/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as r, jsxs as q } from "react/jsx-runtime";
2
2
  import v from "lodash/get";
3
3
  import s, { forwardRef as H, useContext as $, useRef as I } from "react";
4
- import { a as A } from "../chunk/CYDaUML7.js";
4
+ import { a as A } from "../chunk/DstheLSK.js";
5
5
  import { u as j } from "../chunk/FgWHhRFz.js";
6
6
  import { u as J } from "../chunk/2vdCeheu.js";
7
7
  import K, { EventsByTriggerNeed as S } from "../trigger/index.js";
@@ -9,7 +9,7 @@ import T from "@unicom-cloud/utils/class-name";
9
9
  import { s as W } from "../chunk/DsaQZE4X.js";
10
10
  import { o as X } from "../chunk/BKKEev13.js";
11
11
  import { a as U, p as Y } from "../chunk/ClqoGc3r.js";
12
- import { f as Z } from "../chunk/CXrVhA6-.js";
12
+ import { f as Z } from "../chunk/exc7v_Hl.js";
13
13
  import z from "@unicom-cloud/icons/IconUiMore";
14
14
  import M from "../button/index.js";
15
15
  const oo = {
package/empty/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { E as i } from "../chunk/CYDaUML7.js";
3
+ import { E as i } from "../chunk/DstheLSK.js";
4
4
  import "../chunk/FgWHhRFz.js";
5
5
  export {
6
6
  i as default
package/flex/index.js CHANGED
@@ -4,7 +4,7 @@ import { UI_COMMON_PREFIX as M } from "@unicom-cloud/utils/constant/ui";
4
4
  import { u as j } from "../chunk/FgWHhRFz.js";
5
5
  import w from "@unicom-cloud/utils/class-name";
6
6
  import "../chunk/DsaQZE4X.js";
7
- import { G as N, a as S } from "../chunk/CYDaUML7.js";
7
+ import { G as N, a as S } from "../chunk/DstheLSK.js";
8
8
  import { isBoolean as _, isArray as A, isString as h } from "@unicom-cloud/utils/is";
9
9
  import "@unicom-cloud/utils/constant/platform";
10
10
  import "../chunk/CdXR6dj7.js";
@@ -21,9 +21,9 @@ import "lodash/isEqualWith";
21
21
  import "@unicom-cloud/utils/constant/keyboardCode";
22
22
  import "lodash/isNumber";
23
23
  import "lodash/merge";
24
- import "../chunk/d1c9z8T1.js";
25
- import "../chunk/RjJoagzL.js";
26
- import "../chunk/CXrVhA6-.js";
24
+ import "../chunk/BcdTSJks.js";
25
+ import "../chunk/CEAeR6xB.js";
26
+ import "../chunk/exc7v_Hl.js";
27
27
  import "@unicom-cloud/utils/constant";
28
28
  function g(o, t, i) {
29
29
  if (i === void 0)