@unicom-cloud/ui 0.8.113 → 0.8.115

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 (325) 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 +6 -5
  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/Pagination.js +4 -2
  47. package/Popconfirm.js +1 -1
  48. package/Popover.js +1 -1
  49. package/Progress.js +1 -1
  50. package/QrCode.js +7 -7
  51. package/Radio.js +1 -1
  52. package/Rate.js +1 -1
  53. package/ResizeBox.js +2 -2
  54. package/Result.js +1 -1
  55. package/RichText.js +1 -1
  56. package/Segmented.js +4 -4
  57. package/Skeleton.js +1 -1
  58. package/Slider.js +2 -2
  59. package/Space.js +4 -4
  60. package/Spin.js +1 -1
  61. package/Statistic.js +1 -1
  62. package/Steps.js +1 -1
  63. package/Switch.js +2 -2
  64. package/Table.js +1 -1
  65. package/Tabs.js +1 -1
  66. package/Tag.js +1 -1
  67. package/Tooltip.js +1 -1
  68. package/Tour.js +4 -4
  69. package/Transfer.js +1 -1
  70. package/Tree.js +1 -1
  71. package/TreeSelect.js +1 -1
  72. package/Trigger.js +3 -3
  73. package/affix/index.js +2 -2
  74. package/alert/index.js +2 -2
  75. package/anchor/Anchor.js +2 -2
  76. package/anchor/Link.js +1 -1
  77. package/app/App.js +2 -2
  78. package/auto-complete/index.js +1 -1
  79. package/avatar/Avatar.js +1 -1
  80. package/avatar/Group.js +1 -1
  81. package/back-top/index.js +3 -3
  82. package/badge/Count.js +1 -1
  83. package/badge/index.js +2 -2
  84. package/breadcrumb/index.js +2 -2
  85. package/button/Group.js +1 -1
  86. package/button/index.js +1 -1
  87. package/calendar/index.js +2 -2
  88. package/card/Grid.js +1 -1
  89. package/card/Meta.js +1 -1
  90. package/card/index.js +1 -1
  91. package/carousel/Arrow.js +1 -1
  92. package/carousel/Indicator.js +1 -1
  93. package/carousel/index.js +1 -1
  94. package/cascader/Cascader.js +2 -2
  95. package/cascader/index.js +1 -1
  96. package/cascader/util.js +1 -1
  97. package/checkbox/Checkbox.js +2 -2
  98. package/checkbox/Group.js +2 -2
  99. package/checkbox/GroupBlock.js +2 -2
  100. package/checkbox/index.js +2 -2
  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/{D0dVE1v1.js → CcH9qbbg.js} +418 -416
  109. package/chunk/{Bzx5BueA.js → Ch4iApRQ.js} +2 -2
  110. package/chunk/{CbXCgtzv.js → Cs9GrNJa.js} +5 -5
  111. package/chunk/CxbF1opI.js +231 -0
  112. package/chunk/{CRdegvoa.js → D3F0iWPu.js} +1 -1
  113. package/chunk/{DzlfiVe2.js → D6I1_o6O.js} +1 -1
  114. package/chunk/{DA5AMZwY.js → DPDyV8yt.js} +3 -3
  115. package/chunk/{B--6x-RL.js → DQ8_XXrH.js} +1 -1
  116. package/chunk/{hc_ufgVf.js → DmHIX8hU.js} +166 -121
  117. package/chunk/{CYDaUML7.js → DstheLSK.js} +4 -4
  118. package/chunk/{BHAu6wbC.js → HFPyZ48d.js} +37 -35
  119. package/chunk/{Bcl7dWlJ.js → efH9HX0H.js} +3 -3
  120. package/chunk/exc7v_Hl.js +53 -0
  121. package/collapse/Collapse.js +2 -2
  122. package/collapse/Item.js +2 -2
  123. package/color-picker/ControlBar.js +1 -1
  124. package/color-picker/InputAlpha.js +1 -1
  125. package/color-picker/InputHex.js +1 -1
  126. package/color-picker/InputRgb.js +1 -1
  127. package/color-picker/Palette.js +1 -1
  128. package/color-picker/Panel.js +2 -2
  129. package/color-picker/index.js +1 -1
  130. package/comment/index.js +1 -1
  131. package/config-provider/ConfigProvider.js +1 -1
  132. package/config-provider/context.js +1 -1
  133. package/config-provider/index.js +2 -2
  134. package/copy/index.js +1 -1
  135. package/countdown/index.js +4 -4
  136. package/date-picker/Picker.js +1 -1
  137. package/date-picker/RangePicker.js +2 -2
  138. package/date-picker/index.js +1 -1
  139. package/descriptions/index.js +1 -1
  140. package/details/index.js +4 -4
  141. package/development/index.js +1 -1
  142. package/divider/index.js +1 -1
  143. package/draggable/index.js +1 -1
  144. package/drawer/Drawer.js +89 -93
  145. package/dropdown/Button.js +1 -1
  146. package/dropdown/index.js +2 -2
  147. package/empty/index.js +1 -1
  148. package/flex/index.js +4 -4
  149. package/form/Control.js +115 -103
  150. package/form/Form.js +2 -2
  151. package/form/FormItem.js +2 -2
  152. package/form/index.js +1 -1
  153. package/form/promisify.js +10 -19
  154. package/form/store.js +3 -3
  155. package/form/util.js +62 -52
  156. package/grid/Grid.js +1 -1
  157. package/grid/Item.js +1 -1
  158. package/hooks/index.js +3 -3
  159. package/hooks/useInView.js +1 -1
  160. package/hooks/useIntersectionObserver.js +1 -1
  161. package/hooks/useOverrideRef.js +1 -1
  162. package/hooks/useWatermark.js +1 -1
  163. package/icon/addFromIconFontCn.js +1 -1
  164. package/icon/index.js +2 -2
  165. package/icon-hover/index.js +1 -1
  166. package/icons/file.js +1 -1
  167. package/image/Image.js +3 -3
  168. package/image/ImagePreview.js +6 -6
  169. package/image/ImagePreviewArrow.js +1 -1
  170. package/image/ImagePreviewGroup.js +1 -1
  171. package/image/index.js +1 -1
  172. package/index.js +739 -726
  173. package/input/Button.js +1 -1
  174. package/input/Group.js +1 -1
  175. package/input/Input.js +2 -2
  176. package/input/InputElement.js +1 -1
  177. package/input/Password.js +1 -1
  178. package/input/Search.js +1 -1
  179. package/input/Textarea.js +1 -1
  180. package/input/autoSizeTextAreaHeight.js +29 -20
  181. package/input-number/index.js +1 -1
  182. package/input-tag/InputTag.js +2 -2
  183. package/layout/Content.js +1 -1
  184. package/layout/Footer.js +1 -1
  185. package/layout/Header.js +1 -1
  186. package/layout/Sider.js +1 -1
  187. package/layout/index.js +1 -1
  188. package/link/index.js +1 -1
  189. package/liquid-fill/index.js +4 -4
  190. package/list/Item.js +1 -1
  191. package/list/Meta.js +1 -1
  192. package/list/index.js +2 -1
  193. package/loading/index.js +4 -4
  194. package/locale/en-US.js +5 -3
  195. package/locale/tr-TR.js +5 -3
  196. package/marquee/index.js +7 -6
  197. package/marquee-/index.js +7 -6
  198. package/mentions/index.js +1 -1
  199. package/menu/Menu.js +2 -2
  200. package/menu/OverflowWrap.js +1 -1
  201. package/menu/index.js +2 -2
  202. package/message/index.js +2 -2
  203. package/message/useMessage.js +1 -1
  204. package/modal/Confirm.js +2 -2
  205. package/modal/Modal.js +5 -5
  206. package/modal/index.js +2 -2
  207. package/notice/index.js +4 -4
  208. package/notification/index.js +2 -2
  209. package/notification/useNotification.js +1 -1
  210. package/overflow-ellipsis/OverflowItem.js +1 -1
  211. package/overflow-ellipsis/index.js +1 -1
  212. package/package.json +1 -1
  213. package/page-header/index.js +1 -1
  214. package/pagination/PageItem.js +1 -1
  215. package/pagination/PageJumper.js +1 -1
  216. package/pagination/PageOption.js +103 -31
  217. package/pagination/Pagination.js +38 -35
  218. package/pagination/index.js +2 -0
  219. package/picker/Input.js +1 -1
  220. package/picker/InputRange.js +1 -1
  221. package/popconfirm/index.js +1 -1
  222. package/popover/index.js +1 -1
  223. package/progress/index.js +1 -1
  224. package/qr-code/index.js +1233 -45
  225. package/radio/Group.js +2 -2
  226. package/radio/GroupBlock.js +2 -2
  227. package/radio/Radio.js +2 -2
  228. package/radio/index.js +2 -2
  229. package/rate/index.js +1 -1
  230. package/resize-box/ResizeTrigger.js +1 -1
  231. package/resize-box/Split.js +2 -2
  232. package/resize-box/SplitGroup.js +2 -2
  233. package/resize-box/index.js +2 -2
  234. package/result/index.js +1 -1
  235. package/rich-text/index.js +1 -1
  236. package/row-col/Col-.js +1 -1
  237. package/row-col/Col.js +1 -1
  238. package/row-col/Row.js +1 -1
  239. package/segmented/index.js +21 -21
  240. package/select/Option.js +1 -1
  241. package/select/Select.js +2 -2
  242. package/select-view/Core.js +1 -1
  243. package/skeleton/index.js +1 -1
  244. package/slider/Button.js +2 -2
  245. package/slider/index.js +2 -2
  246. package/space/index.js +4 -4
  247. package/spin/DotLoading.js +1 -1
  248. package/spin/index.js +1 -1
  249. package/splitter/Panel.js +1 -1
  250. package/splitter/SplitBar.js +2 -2
  251. package/splitter/Splitter.js +2 -2
  252. package/statistic/index.js +1 -1
  253. package/steps/index.js +1 -1
  254. package/style.css +1 -1
  255. package/switch/index.js +2 -2
  256. package/table/Table.js +5 -4
  257. package/table/index.js +4 -4
  258. package/tabs/Tab.js +2 -2
  259. package/tabs/TabContent.js +2 -2
  260. package/tabs/TabPane.js +1 -1
  261. package/tabs/index.js +2 -2
  262. package/tag/index.js +1 -1
  263. package/time-picker/Picker.js +1 -1
  264. package/time-picker/TimePicker.js +1 -1
  265. package/timeline/Item.js +1 -1
  266. package/timeline/Timeline.js +1 -1
  267. package/tooltip/index.js +1 -1
  268. package/tour/index.js +4 -4
  269. package/transfer/Item.js +2 -2
  270. package/transfer/List.js +2 -2
  271. package/transfer/index.js +1 -1
  272. package/tree/Animation.js +3 -3
  273. package/tree/Node.js +3 -3
  274. package/tree/NodeList.js +1 -1
  275. package/tree/Tree.js +2 -2
  276. package/tree/index.js +1 -1
  277. package/tree-select/Select.js +2 -2
  278. package/tree-select/index.js +1 -1
  279. package/trigger/getPopupStyle.js +1 -1
  280. package/trigger/index.js +145 -145
  281. package/types/common/hooks/useWindowSize.d.ts +4 -4
  282. package/types/common/utils/dom.d.ts +1 -1
  283. package/types/common/utils/lodash.d.ts +2 -1
  284. package/types/common/utils/reactDOM.d.ts +10 -1
  285. package/types/common/utils/validate.d.ts +2 -0
  286. package/types/pc/form/interface.d.ts +6 -1
  287. package/types/pc/form/promisify.d.ts +5 -0
  288. package/types/pc/form/store.d.ts +1 -1
  289. package/types/pc/form/util.d.ts +1 -1
  290. package/types/pc/input/autoSizeTextAreaHeight.d.ts +4 -2
  291. package/types/pc/pagination/PageOption.d.ts +3 -0
  292. package/types/pc/pagination/index.d.ts +2 -0
  293. package/types/pc/pagination/interface.d.ts +5 -0
  294. package/types/pc/qr-code/examples/demo.d.ts +1 -0
  295. package/types/pc/qr-code/examples/download.d.ts +2 -0
  296. package/types/pc/qr-code/examples/full.d.ts +2 -0
  297. package/types/pc/qr-code/examples/image.d.ts +2 -0
  298. package/types/pc/qr-code/index.d.ts +2 -0
  299. package/types/pc/qr-code/src/index.d.ts +116 -0
  300. package/types/pc/qr-code/src/qrcodegen.d.ts +95 -0
  301. package/types/pc/qr-code/src/qrcodegen2.d.ts +325 -0
  302. package/types/pc/utils/validate.d.ts +1 -1
  303. package/typography/Base.js +1 -1
  304. package/typography/Ellipsis.js +2 -2
  305. package/typography/Paragraph.js +1 -1
  306. package/typography/Typography.js +1 -1
  307. package/upload/TriggerNode.js +1 -1
  308. package/upload/Upload.js +2 -2
  309. package/upload/Uploader.js +1 -1
  310. package/upload/request_.js +1972 -41
  311. package/utils/PqbCSSTransition.js +1 -1
  312. package/utils/contextHolder.js +1 -1
  313. package/utils/dom.js +1 -1
  314. package/utils/index.js +247 -235
  315. package/utils/lodash.js +33 -32
  316. package/utils/react19Adapter.js +1 -1
  317. package/utils/reactDOM.js +1 -1
  318. package/utils/validate.js +15 -5
  319. package/verification-code/VerificationCode.js +1 -1
  320. package/version/index.js +1 -1
  321. package/virtual-list/VirtualList.js +1 -1
  322. package/watermark/Watermark.js +1 -1
  323. package/chunk/CXrVhA6-.js +0 -54
  324. package/chunk/De8RLlOK.js +0 -231
  325. package/chunk/d1c9z8T1.js +0 -49
package/trigger/index.js CHANGED
@@ -1,25 +1,25 @@
1
- import { jsx as h, jsxs as De } from "react/jsx-runtime";
2
- import { c as ro } from "../chunk/BJ9_azwQ.js";
3
- import xe from "lodash/isArray";
4
- import D from "lodash/isFunction";
5
- import { forwardRef as io, useContext as so, useRef as L, useState as uo, Children as Me, useCallback as Se, cloneElement as Oe, useImperativeHandle as co, useLayoutEffect as lo, useEffect as g, Fragment as ao } from "react";
6
- import { createPortal as po } from "react-dom";
7
- import { a as fo } from "../chunk/CYDaUML7.js";
1
+ import { jsx as h, jsxs as xe } from "react/jsx-runtime";
2
+ import { c as so } from "../chunk/BJ9_azwQ.js";
3
+ import Me from "lodash/isArray";
4
+ import w from "lodash/isFunction";
5
+ import { forwardRef as uo, useContext as co, useRef as L, useState as lo, Children as Se, useCallback as Oe, cloneElement as ve, useImperativeHandle as ao, useLayoutEffect as po, useEffect as g, Fragment as fo } from "react";
6
+ import { createPortal as mo } from "react-dom";
7
+ import { a as go } from "../chunk/DstheLSK.js";
8
8
  import R from "@unicom-cloud/utils/class-name";
9
- import { b as G, o as J, g as mo, i as go, c as ve } from "../chunk/d1c9z8T1.js";
10
- import { s as yo } from "../chunk/DsaQZE4X.js";
11
- import { Esc as be } from "@unicom-cloud/utils/constant/keyboardCode";
12
- import { m as To } from "../chunk/DH7HTOV_.js";
13
- import { a as Co } from "../chunk/ClqoGc3r.js";
14
- import { c as ho, f as Po } from "../chunk/CXrVhA6-.js";
9
+ import { b as G, o as J, g as yo, i as To, c as be } from "../chunk/BcdTSJks.js";
10
+ import { s as Co } from "../chunk/DsaQZE4X.js";
11
+ import { Esc as Ne } from "@unicom-cloud/utils/constant/keyboardCode";
12
+ import { m as ho } from "../chunk/DH7HTOV_.js";
13
+ import { a as Po } from "../chunk/ClqoGc3r.js";
14
+ import { c as Eo, f as Do } from "../chunk/exc7v_Hl.js";
15
15
  import { r as Z } from "../chunk/CHQ8c547.js";
16
- import Ne from "../utils/throttleByRaf.js";
17
- import Eo, { getBoundingClientRect as wo } from "./getPopupStyle.js";
16
+ import $e from "../utils/throttleByRaf.js";
17
+ import wo, { getBoundingClientRect as xo } from "./getPopupStyle.js";
18
18
  import { isPlainObject as ee } from "@unicom-cloud/utils/is";
19
- function Do(d, $) {
19
+ function Mo(d, $) {
20
20
  if (!d)
21
21
  return {};
22
- const { width: y, height: x, left: T, right: z } = wo(d, $);
22
+ const { width: y, height: x, left: T, right: z } = xo(d, $);
23
23
  return {
24
24
  width: y,
25
25
  height: x,
@@ -27,7 +27,7 @@ function Do(d, $) {
27
27
  right: z
28
28
  };
29
29
  }
30
- const Wo = [
30
+ const Uo = [
31
31
  "onClick",
32
32
  "onMouseEnter",
33
33
  "onMouseLeave",
@@ -37,13 +37,13 @@ const Wo = [
37
37
  "onContextMenu",
38
38
  "onKeyDown"
39
39
  ];
40
- function xo(d, $) {
40
+ function So(d, $) {
41
41
  const y = {}, x = { ...d };
42
42
  return $.forEach((T) => {
43
43
  d && T in d && (y[T] = d[T], delete x[T]);
44
44
  }), { picked: y, omitted: x };
45
45
  }
46
- const Mo = {
46
+ const Oo = {
47
47
  blurToHide: !0,
48
48
  // clickToClose: true,
49
49
  classNames: "fadeIn",
@@ -64,26 +64,26 @@ const Mo = {
64
64
  autoFitPosition: !0,
65
65
  updateOnScroll: !0
66
66
  };
67
- function So(d, $) {
68
- const y = so(fo), { getPrefixCls: x, zIndex: T, rtl: z } = y, i = u(d), {
67
+ function vo(d, $) {
68
+ const y = co(go), { getPrefixCls: x, zIndex: T, rtl: z } = y, i = u(d), {
69
69
  children: oe,
70
70
  style: te,
71
- className: $e,
72
- arrowProps: B,
71
+ className: ke,
72
+ arrowProps: V,
73
73
  disabled: M,
74
- popup: ke,
74
+ popup: He,
75
75
  classNames: A,
76
- duration: He,
76
+ duration: Ie,
77
77
  unmountOnExit: ne,
78
- alignPoint: Ie,
79
- autoAlignPopupWidth: Le,
78
+ alignPoint: Le,
79
+ autoAlignPopupWidth: Ve,
80
80
  position: Be,
81
81
  childrenPrefix: P,
82
- showArrow: Ve,
82
+ showArrow: _e,
83
83
  popupStyle: re,
84
- __onExit: _e,
85
- __onExited: Fe
86
- } = i, ie = oe || oe === 0, p = L(null), S = L(null), se = L(null), ue = L(null), t = L({
84
+ __onExit: Fe,
85
+ __onExited: Re
86
+ } = i, ie = "popupVisible" in i, ze = "defaultPopupVisible" in i, se = oe || oe === 0, p = L(null), S = L(null), ue = L(null), ce = L(null), t = L({
87
87
  rootElement: void 0,
88
88
  triggerDestoried: !1,
89
89
  // 标志 popup 是否被销毁
@@ -104,48 +104,48 @@ function So(d, $) {
104
104
  // 保存当前节点到弹出容器间的所有滚动元素
105
105
  delayTimeoutID: -1,
106
106
  updatePositionTimeoutID: -1
107
- }), [Y, O] = uo({ popupVisible: !1, popupStyle: {} }), K = i.popupVisible, Re = Y.popupVisible, s = K ?? Re, l = {}, Q = {
107
+ }), [Y, O] = lo({ popupVisible: !1, popupStyle: {} }), K = i.popupVisible, Ae = Y.popupVisible, s = K ?? Ae, l = {}, Q = {
108
108
  onMouseDown() {
109
109
  t.current.hasPopupMouseDown = !0, setTimeout(() => {
110
110
  t.current.hasPopupMouseDown = !1;
111
111
  }, 0);
112
112
  }
113
113
  };
114
- I() && !M ? (l.onMouseEnter = Xe, l.onMouseLeave = ge, U() && (l.onClick = ye), Ie && (l.onMouseMove = Ue), Ye() || (Q.onMouseEnter = je, Q.onMouseLeave = qe)) : (l.onMouseEnter = w("onMouseEnter"), l.onMouseLeave = w("onMouseLeave")), le() && !M ? (l.onContextMenu = Ge, l.onClick = ye) : l.onContextMenu = w("onContextMenu"), ce() && !M ? l.onClick = Je : l.onClick = l.onClick || w("onClick"), X() && !M ? (l.onFocus = Ze, ae() && (l.onBlur = eo)) : (l.onFocus = w("onFocus"), l.onBlur = w("onBlur")), M ? l.onKeyDown = w("onKeyDown") : l.onKeyDown = Qe;
115
- const k = _(), H = Me.only(ke?.());
114
+ I() && !M ? (l.onMouseEnter = je, l.onMouseLeave = ye, U() && (l.onClick = Te), Le && (l.onMouseMove = qe), Qe() || (Q.onMouseEnter = Ge, Q.onMouseLeave = Je)) : (l.onMouseEnter = D("onMouseEnter"), l.onMouseLeave = D("onMouseLeave")), ae() && !M ? (l.onContextMenu = Ze, l.onClick = Te) : l.onContextMenu = D("onContextMenu"), le() && !M ? l.onClick = eo : l.onClick = l.onClick || D("onClick"), X() && !M ? (l.onFocus = oo, pe() && (l.onBlur = to)) : (l.onFocus = D("onFocus"), l.onBlur = D("onBlur")), M ? l.onKeyDown = D("onKeyDown") : l.onKeyDown = Xe;
115
+ const k = _(), H = Se.only(He?.());
116
116
  k.props.className && (l.className = k.props.className), P && s && (l.className = R(
117
117
  l.className,
118
118
  `${P}-open`
119
119
  )), X() && (l.tabIndex = M ? -1 : 0);
120
- const v = x?.("trigger"), ze = R(
120
+ const v = x?.("trigger"), Ye = R(
121
121
  v,
122
122
  P,
123
123
  `${v}-position-${Be}`,
124
124
  { [`${v}-rtl`]: z },
125
- $e
125
+ ke
126
126
  );
127
127
  function u(e) {
128
128
  const { componentConfig: o } = y ?? {};
129
- return To(
129
+ return ho(
130
130
  ee(e) ? e : d,
131
- Mo,
131
+ Oo,
132
132
  o?.Trigger ?? {},
133
- xe(e) ? e : void 0
133
+ Me(e) ? e : void 0
134
134
  );
135
135
  }
136
136
  function b() {
137
- const e = Po(
137
+ const e = Do(
138
138
  i.getTargetDOMNode?.() || i.getRootElement?.() || t.current.child
139
139
  );
140
140
  return t.current.rootElement = e, e;
141
141
  }
142
- const W = Se(
143
- Ne(() => {
142
+ const W = Oe(
143
+ $e(() => {
144
144
  N();
145
145
  }),
146
146
  [s]
147
147
  );
148
- function ce() {
148
+ function le() {
149
149
  const { trigger: e } = u(["trigger"]);
150
150
  return [].concat(e).indexOf("click") > -1;
151
151
  }
@@ -157,30 +157,30 @@ function So(d, $) {
157
157
  const { trigger: e } = u(["trigger"]);
158
158
  return [].concat(e).indexOf("hover") > -1;
159
159
  }
160
- function le() {
160
+ function ae() {
161
161
  const { trigger: e } = u(["trigger"]);
162
162
  return [].concat(e).indexOf("contextMenu") > -1;
163
163
  }
164
- function Ae() {
164
+ function Ke() {
165
165
  return I() && u(["mouseLeaveToClose"]).mouseLeaveToClose;
166
166
  }
167
- function Ye() {
167
+ function Qe() {
168
168
  return I() && !u(["popupHoverStay"]).popupHoverStay;
169
169
  }
170
170
  function U() {
171
- if (ce() || le()) {
171
+ if (le() || ae()) {
172
172
  const { clickToClose: e = !0 } = u(["clickToClose"]);
173
173
  return e;
174
174
  }
175
175
  return I() && i.clickToClose;
176
176
  }
177
- function ae() {
177
+ function pe() {
178
178
  return X() && u(["blurToHide"]).blurToHide;
179
179
  }
180
- function Ke() {
180
+ function We() {
181
181
  t.current.updatePositionTimeoutID && (t.current.updatePositionTimeoutID.cancel ? t.current.updatePositionTimeoutID.cancel() : (clearTimeout(t.current.updatePositionTimeoutID), t.current.updatePositionTimeoutID = null)), E();
182
182
  }
183
- function pe(e) {
183
+ function fe(e) {
184
184
  const o = p.current;
185
185
  if (!o)
186
186
  return {};
@@ -190,7 +190,7 @@ function So(d, $) {
190
190
  ]);
191
191
  let c = n && t.current.arrowStyle?.top || 0, a = n && t.current.arrowStyle?.left || 0;
192
192
  c = c ? `${c}px` : "", a = a ? `${a}px` : "";
193
- const Ee = {
193
+ const De = {
194
194
  top: `${a || "50%"} 100% 0`,
195
195
  tl: `${a || "15px"} 100% 0`,
196
196
  tr: `${a || `${o.clientWidth - 15}px`} 100% 0`,
@@ -206,7 +206,7 @@ function So(d, $) {
206
206
  };
207
207
  if (r && r.indexOf("zoom") > -1)
208
208
  return {
209
- transformOrigin: Ee[e]
209
+ transformOrigin: De[e]
210
210
  };
211
211
  if (r === "slideDynamicOrigin") {
212
212
  let we = "0% 0%";
@@ -216,7 +216,7 @@ function So(d, $) {
216
216
  }
217
217
  return {};
218
218
  }
219
- function fe() {
219
+ function de() {
220
220
  if (u(["classNames"]).classNames !== "slideDynamicOrigin")
221
221
  return "";
222
222
  switch (t.current.realPosition) {
@@ -238,7 +238,7 @@ function So(d, $) {
238
238
  const e = p.current, o = b();
239
239
  if (!o?.offsetParent && !o?.getClientRects()?.length)
240
240
  return Y.popupStyle;
241
- const { style: n, arrowStyle: r, realPosition: c } = Eo(
241
+ const { style: n, arrowStyle: r, realPosition: c } = wo(
242
242
  i,
243
243
  e,
244
244
  o,
@@ -249,7 +249,7 @@ function So(d, $) {
249
249
  const a = c || i.position;
250
250
  return t.current.realPosition = a, {
251
251
  ...n,
252
- ...pe(a)
252
+ ...fe(a)
253
253
  };
254
254
  }
255
255
  function C(e) {
@@ -257,17 +257,17 @@ function So(d, $) {
257
257
  O((n) => {
258
258
  const r = { ...n };
259
259
  return r.popupStyle = o, r;
260
- }), D(e) && setTimeout(() => {
260
+ }), w(e) && setTimeout(() => {
261
261
  e();
262
262
  }, 0);
263
263
  }
264
- const V = Se(Ne(C), [
264
+ const B = Oe($e(C), [
265
265
  s
266
266
  ]);
267
267
  function N(e = 0, o) {
268
268
  if (s) {
269
269
  if (e < 4) {
270
- t.current.updatePositionTimeoutID = V(o);
270
+ t.current.updatePositionTimeoutID = B(o);
271
271
  return;
272
272
  }
273
273
  t.current.updatePositionTimeoutID = setTimeout(() => {
@@ -275,7 +275,7 @@ function So(d, $) {
275
275
  O((r) => {
276
276
  const c = { ...r };
277
277
  return c.popupStyle = n, c;
278
- }), D(o) && setTimeout(() => {
278
+ }), w(o) && setTimeout(() => {
279
279
  o();
280
280
  }, 0);
281
281
  }, e);
@@ -283,8 +283,8 @@ function So(d, $) {
283
283
  }
284
284
  function f(e, o = 0, n) {
285
285
  const r = u(["onVisibleChange", "popupVisible"]);
286
- e !== s ? de(o, () => {
287
- r.onVisibleChange?.(e), "popupVisible" in r ? n?.() : (O((c) => {
286
+ e !== s ? me(o, () => {
287
+ r.onVisibleChange?.(e), ie ? n?.() : (O((c) => {
288
288
  const a = { ...c };
289
289
  return a.popupVisible = !!e, a;
290
290
  }), setTimeout(e ? () => {
@@ -294,7 +294,7 @@ function So(d, $) {
294
294
  }, 0));
295
295
  }) : n?.();
296
296
  }
297
- function de(e, o) {
297
+ function me(e, o) {
298
298
  e ? (E(), t.current.delayTimeoutID = setTimeout(() => {
299
299
  o(), E();
300
300
  }, e)) : o();
@@ -302,35 +302,35 @@ function So(d, $) {
302
302
  function E() {
303
303
  t.current.delayTimeoutID && (clearTimeout(t.current.delayTimeoutID), t.current.delayTimeoutID = null);
304
304
  }
305
- function me(e) {
305
+ function ge(e) {
306
306
  const o = u(["onClickOutside", "clickOutsideToClose"]);
307
- let n = ve(p.current, e.target);
308
- n ||= ve(b(), e.target), n ||= !!t.current.hasPopupMouseDown, n || (o.onClickOutside?.(), o.clickOutsideToClose && (ae() || I() || f(!1)));
307
+ let n = be(p.current, e.target);
308
+ n ||= be(b(), e.target), n ||= !!t.current.hasPopupMouseDown, n || (o.onClickOutside?.(), o.clickOutsideToClose && (pe() || I() || f(!1)));
309
309
  }
310
- function Qe(e) {
310
+ function Xe(e) {
311
311
  const o = e.key;
312
- m("onKeyDown", e), o === be.key && We(e);
312
+ m("onKeyDown", e), o === Ne.key && Ue(e);
313
313
  }
314
- function We(e) {
314
+ function Ue(e) {
315
315
  const { escToClose: o } = u(["escToClose"]);
316
- o && e && e.key === be.key && s && f(!1);
316
+ o && e && e.key === Ne.key && s && f(!1);
317
317
  }
318
- function Xe(e) {
318
+ function je(e) {
319
319
  const { mouseEnterDelay: o } = u(["mouseEnterDelay"]);
320
320
  m("onMouseEnter", e), E(), f(!0, o || 0);
321
321
  }
322
- function Ue(e) {
323
- m("onMouseMove", e), q(e), s && V();
322
+ function qe(e) {
323
+ m("onMouseMove", e), q(e), s && B();
324
324
  }
325
- function ge(e) {
325
+ function ye(e) {
326
326
  const { mouseLeaveDelay: o } = u(["mouseLeaveDelay"]);
327
- E(), m("onMouseLeave", e), Ae() && s && f(!1, o || 0);
327
+ E(), m("onMouseLeave", e), Ke() && s && f(!1, o || 0);
328
328
  }
329
- function je() {
329
+ function Ge() {
330
330
  E();
331
331
  }
332
- function qe(e) {
333
- ge(e);
332
+ function Je(e) {
333
+ ye(e);
334
334
  }
335
335
  function q(e) {
336
336
  u(["alignPoint"]).alignPoint && (t.current.mouseLocation = {
@@ -338,34 +338,34 @@ function So(d, $) {
338
338
  clientY: e.clientY
339
339
  });
340
340
  }
341
- function Ge(e) {
342
- e.preventDefault(), m("onContextMenu", e), q(e), s ? u(["alignPoint"]).alignPoint && V() : f(!0, 0);
341
+ function Ze(e) {
342
+ e.preventDefault(), m("onContextMenu", e), q(e), s ? u(["alignPoint"]).alignPoint && B() : f(!0, 0);
343
343
  }
344
- function ye(e) {
344
+ function Te(e) {
345
345
  s && (t.current.mousedownToHide = !0), m("onClick", e), U() && s && f(!s, 0);
346
346
  }
347
- function Je(e) {
347
+ function eo(e) {
348
348
  s && (t.current.mousedownToHide = !0), m("onClick", e), q(e), !(!U() && s) && f(!s, 0);
349
349
  }
350
- function Ze(e) {
350
+ function oo(e) {
351
351
  const { focusDelay: o } = u(["focusDelay"]), n = () => {
352
352
  m("onFocus", e);
353
353
  };
354
354
  E(), t.current.mousedownToHide || (s ? n?.() : f(!0, o || 0, n)), t.current.mousedownToHide = !1;
355
355
  }
356
- function eo(e) {
356
+ function to(e) {
357
357
  f(!1, 200, () => m("onBlur", e));
358
358
  }
359
- function Te() {
359
+ function Ce() {
360
360
  s && u(["autoFixPosition"]).autoFixPosition && N();
361
361
  }
362
362
  function _() {
363
363
  const { children: e } = i, o = e, n = o && typeof o != "string" && o.type;
364
364
  let r = e;
365
- if (["string", "number"].indexOf(typeof e) > -1 || Me.count(e) > 1)
365
+ if (["string", "number"].indexOf(typeof e) > -1 || Se.count(e) > 1)
366
366
  r = /* @__PURE__ */ h("span", { children: e });
367
367
  else if (o && n && (n.__PQB_BUTTON === !0 || n.__PQB_CHECKBOX === !0 || n.__PQB_SWITCH === !0 || n.__PQB_RADIO === !0 || n === "button") && o.props.disabled) {
368
- const { picked: c, omitted: a } = xo(o.props.style, [
368
+ const { picked: c, omitted: a } = So(o.props.style, [
369
369
  "position",
370
370
  "left",
371
371
  "right",
@@ -380,7 +380,7 @@ function So(d, $) {
380
380
  {
381
381
  className: o.props?.className,
382
382
  style: { display: "inline-block", ...c, cursor: "not-allowed" },
383
- children: Oe(o, {
383
+ children: ve(o, {
384
384
  style: {
385
385
  ...a,
386
386
  pointerEvents: "none"
@@ -394,32 +394,32 @@ function So(d, $) {
394
394
  }
395
395
  function m(e, o) {
396
396
  const n = _(), r = n && n.props && n.props[e], c = u([e])[e];
397
- D(r) && r(o), D(c) && c(o);
397
+ w(r) && r(o), w(c) && c(o);
398
398
  }
399
- function w(e) {
399
+ function D(e) {
400
400
  const o = _(), n = o && o.props && o.props[e], r = u([e])[e];
401
- return D(r) && D(n) ? (c) => {
401
+ return w(r) && w(n) ? (c) => {
402
402
  n(c), r(c);
403
403
  } : n || r;
404
404
  }
405
- function Ce() {
405
+ function he() {
406
406
  const e = u(["containerScrollToClose", "updateOnScroll"]);
407
407
  e.containerScrollToClose ? f(!1) : e.updateOnScroll && N();
408
408
  }
409
- function oo() {
410
- t.current.scrollElements || (t.current.scrollElements = mo(
409
+ function no() {
410
+ t.current.scrollElements || (t.current.scrollElements = yo(
411
411
  b()
412
412
  // refPopupContainer.current.parentNode as HTMLElement,
413
- ), xe(t.current.scrollElements) && (i.containerScrollToClose && S.current?.parentNode === document.body && t.current.scrollElements.indexOf(document.body) === -1 && go(document.documentElement) && t.current.scrollElements.push(window), t.current.scrollElements.forEach((e) => {
414
- G(e, "scroll", Ce);
413
+ ), Me(t.current.scrollElements) && (i.containerScrollToClose && S.current?.parentNode === document.body && t.current.scrollElements.indexOf(document.body) === -1 && To(document.documentElement) && t.current.scrollElements.push(window), t.current.scrollElements.forEach((e) => {
414
+ G(e, "scroll", he);
415
415
  })));
416
416
  }
417
- function he() {
417
+ function Pe() {
418
418
  t.current.scrollElements && (t.current.scrollElements.forEach((e) => {
419
- J(e, "scroll", Ce);
419
+ J(e, "scroll", he);
420
420
  }), t.current.scrollElements = null);
421
421
  }
422
- co($, () => ({
422
+ ao($, () => ({
423
423
  getRootDOMNode: b,
424
424
  getRootElement: b,
425
425
  getPopupElement() {
@@ -427,20 +427,20 @@ function So(d, $) {
427
427
  },
428
428
  getChild: _,
429
429
  getPopupStyle: j,
430
- getTransformTranslate: fe,
431
- getTransformOrigin: pe,
432
- updateThrottleByRaf: V,
430
+ getTransformTranslate: de,
431
+ getTransformOrigin: fe,
432
+ updateThrottleByRaf: B,
433
433
  update: C,
434
434
  updatePopupStyle: C,
435
435
  updatePopupPosition: N,
436
436
  handleUpdatePosition: W,
437
437
  setPopupVisible: f,
438
- delayToDo: de
439
- })), lo(() => (C(), () => {
438
+ delayToDo: me
439
+ })), po(() => (C(), () => {
440
440
  }), [
441
441
  p.current,
442
- se.current,
443
442
  ue.current,
443
+ ce.current,
444
444
  t.current.rootElement
445
445
  ]), g(() => {
446
446
  const e = S.current?.parentNode, o = Z([e], N);
@@ -448,18 +448,18 @@ function So(d, $) {
448
448
  o();
449
449
  };
450
450
  }, [S.current?.parentNode]), g(() => {
451
- const e = p.current, o = Z([e], Te);
451
+ const e = p.current, o = Z([e], Ce);
452
452
  return () => {
453
453
  o();
454
454
  };
455
455
  }, [p.current]), g(() => {
456
- const e = t.current.rootElement, o = Z([e], Te);
456
+ const e = t.current.rootElement, o = Z([e], Ce);
457
457
  return () => {
458
458
  o();
459
459
  };
460
460
  }, [t.current.rootElement]), g(() => {
461
461
  const e = t.current.rootElement;
462
- return s && (t.current.childrenDomSize = Do(e, {
462
+ return s && (t.current.childrenDomSize = Mo(e, {
463
463
  boundaryDistance: i.alignPoint ? void 0 : i.boundaryDistance,
464
464
  position: i.position
465
465
  })), () => {
@@ -469,8 +469,8 @@ function So(d, $) {
469
469
  i.alignPoint,
470
470
  i.boundaryDistance,
471
471
  i.position
472
- ]), g(() => (s && (i.updateOnScroll || i.containerScrollToClose ? oo() : (N(), he())), () => {
473
- he();
472
+ ]), g(() => (s && (i.updateOnScroll || i.containerScrollToClose ? no() : (N(), Pe())), () => {
473
+ Pe();
474
474
  }), [
475
475
  s,
476
476
  i.updateOnScroll,
@@ -485,30 +485,30 @@ function So(d, $) {
485
485
  // 2. 点击label标签,会触发对应input元素的点击事件,导致触发clickOutside,隐藏popup。
486
486
  capture: ee(e) ? e.capture : !1
487
487
  };
488
- return s && (G(n, "mousedown", me, r), G(window, "resize", W)), () => {
489
- J(n, "mousedown", me, r), J(window, "resize", W);
488
+ return s && (G(n, "mousedown", ge, r), G(window, "resize", W)), () => {
489
+ J(n, "mousedown", ge, r), J(window, "resize", W);
490
490
  };
491
- }, [s]), g(() => ("defaultPopupVisible" in i && O((e) => {
491
+ }, [s]), g(() => (ze && O((e) => {
492
492
  const o = { ...e };
493
493
  return o.popupVisible = !!i?.defaultPopupVisible, o;
494
494
  }), () => {
495
- }), []), g(() => ("popupVisible" in i && O((e) => {
495
+ }), []), g(() => (ie && O((e) => {
496
496
  const o = { ...e };
497
497
  return o.popupVisible = !!K, o;
498
498
  }), () => {
499
499
  }), [K]), g(() => () => {
500
- Ke();
500
+ We();
501
501
  }, []);
502
- const to = ie && Oe(k, {
502
+ const ro = se && ve(k, {
503
503
  ...l,
504
- ref: yo(k) ? (e) => {
505
- t.current.child = e, ho(k, e);
504
+ ref: Co(k) ? (e) => {
505
+ t.current.child = e, Eo(k, e);
506
506
  } : void 0
507
- }), no = /* @__PURE__ */ h(
508
- ro,
507
+ }), io = /* @__PURE__ */ h(
508
+ so,
509
509
  {
510
510
  in: !!s,
511
- timeout: He,
511
+ timeout: Ie,
512
512
  classNames: A,
513
513
  unmountOnExit: ne,
514
514
  appear: !0,
@@ -516,7 +516,7 @@ function So(d, $) {
516
516
  onEnter: () => {
517
517
  t.current.triggerDestoried = !1;
518
518
  const e = p.current;
519
- e && (e.style.display = "initial", e.style.pointerEvents = "none", A === "slideDynamicOrigin" && (e.style.transform = fe()), C());
519
+ e && (e.style.display = "initial", e.style.pointerEvents = "none", A === "slideDynamicOrigin" && (e.style.transform = de()), C());
520
520
  },
521
521
  onEntering: () => {
522
522
  const e = p.current;
@@ -528,24 +528,24 @@ function So(d, $) {
528
528
  },
529
529
  onExit: () => {
530
530
  const e = p.current;
531
- e && (e.style.pointerEvents = "none", _e?.(e));
531
+ e && (e.style.pointerEvents = "none", Fe?.(e));
532
532
  },
533
533
  onExited: () => {
534
534
  const e = p.current;
535
535
  e && (e.style.display = "none", ne && (t.current.triggerDestoried = !0), O((o) => {
536
536
  const n = { ...o };
537
537
  return n.popupStyle = {}, n;
538
- }), Fe?.(e));
538
+ }), Re?.(e));
539
539
  },
540
540
  nodeRef: p,
541
- children: /* @__PURE__ */ De(
541
+ children: /* @__PURE__ */ xe(
542
542
  "span",
543
543
  {
544
544
  ref: p,
545
545
  "trigger-placement": t.current.realPosition,
546
- ...Co(i),
546
+ ...Po(i),
547
547
  style: {
548
- width: Le && te?.width === void 0 ? t.current.childrenDomSize?.width : "",
548
+ width: Ve && te?.width === void 0 ? t.current.childrenDomSize?.width : "",
549
549
  ...Y.popupStyle,
550
550
  position: "absolute",
551
551
  zIndex: T || "",
@@ -553,7 +553,7 @@ function So(d, $) {
553
553
  // display
554
554
  },
555
555
  ...Q,
556
- className: ze,
556
+ className: Ye,
557
557
  children: [
558
558
  ee(re) ? /* @__PURE__ */ h(
559
559
  H.type,
@@ -563,26 +563,26 @@ function So(d, $) {
563
563
  style: { ...H.props.style, ...re }
564
564
  }
565
565
  ) : H,
566
- (Ve || B) && /* @__PURE__ */ h(
566
+ (_e || V) && /* @__PURE__ */ h(
567
567
  "div",
568
568
  {
569
- ref: se,
569
+ ref: ue,
570
570
  className: R(`${v}-arrow-container`, {
571
571
  [`${P}-arrow-container`]: P
572
572
  }),
573
573
  children: /* @__PURE__ */ h(
574
574
  "div",
575
575
  {
576
- ref: ue,
577
- ...B,
576
+ ref: ce,
577
+ ...V,
578
578
  className: R(
579
579
  `${v}-arrow`,
580
580
  {
581
581
  [`${P}-arrow`]: P
582
582
  },
583
- B?.className
583
+ V?.className
584
584
  ),
585
- style: { ...t.current.arrowStyle, ...B?.style }
585
+ style: { ...t.current.arrowStyle, ...V?.style }
586
586
  }
587
587
  )
588
588
  }
@@ -592,26 +592,26 @@ function So(d, $) {
592
592
  )
593
593
  }
594
594
  );
595
- let F, Pe = s;
596
- if (Pe ||= !!p.current && !t.current.triggerDestoried, Pe) {
595
+ let F, Ee = s;
596
+ if (Ee ||= !!p.current && !t.current.triggerDestoried, Ee) {
597
597
  const e = i.getPopupContainer || y.getPopupContainer;
598
- if (D(e)) {
598
+ if (w(e)) {
599
599
  const o = e(b());
600
- o && (F = po(
601
- /* @__PURE__ */ h("div", { ref: S, className: `${v}-container`, children: no }),
600
+ o && (F = mo(
601
+ /* @__PURE__ */ h("div", { ref: S, className: `${v}-container`, children: io }),
602
602
  o
603
603
  // popupVisible ? 1 : 0,
604
604
  ));
605
605
  }
606
606
  }
607
- return ie && (F = /* @__PURE__ */ De(ao, { children: [
608
- to,
607
+ return se && (F = /* @__PURE__ */ xe(fo, { children: [
608
+ ro,
609
609
  F
610
610
  ] })), F;
611
611
  }
612
- const Oo = io(So);
613
- Oo.displayName = "Trigger";
612
+ const bo = uo(vo);
613
+ bo.displayName = "Trigger";
614
614
  export {
615
- Wo as EventsByTriggerNeed,
616
- Oo as default
615
+ Uo as EventsByTriggerNeed,
616
+ bo as default
617
617
  };