@unicom-cloud/ui-common 0.1.54 → 0.1.55

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 (321) hide show
  1. package/.virtual/_rolldown/runtime.js +2 -3
  2. package/animation/Animation.js +2 -3
  3. package/animation/constants.js +2 -3
  4. package/animation/context.js +2 -3
  5. package/animation/index.js +2 -3
  6. package/animation/style/index.js +1 -1
  7. package/animation/utils.js +1 -1
  8. package/base/Base.js +2 -3
  9. package/base/constants.js +1 -1
  10. package/base/context.js +2 -3
  11. package/base/index.js +2 -3
  12. package/base/style/index.js +1 -1
  13. package/base/utils.js +1 -1
  14. package/border-beam/BorderBeam.js +2 -3
  15. package/border-beam/Effect.js +2 -3
  16. package/border-beam/constants.js +2 -3
  17. package/border-beam/context.js +2 -3
  18. package/border-beam/hooks/useBorderSize.js +2 -3
  19. package/border-beam/hooks/useChildDom.js +2 -3
  20. package/border-beam/index.js +2 -3
  21. package/border-beam/style/index.js +1 -1
  22. package/border-beam/utils.js +2 -3
  23. package/development/Development.js +2 -3
  24. package/development/constants.js +1 -1
  25. package/development/context.js +2 -3
  26. package/development/index.js +2 -3
  27. package/development/style/index.js +1 -1
  28. package/development/utils.js +1 -1
  29. package/empty/Empty.js +2 -3
  30. package/empty/constants.js +1 -1
  31. package/empty/context.js +2 -3
  32. package/empty/index.js +2 -3
  33. package/empty/style/index.js +1 -1
  34. package/empty/utils.js +1 -1
  35. package/flex/Flex.js +2 -3
  36. package/flex/FlexVertical.js +2 -3
  37. package/flex/constants.js +1 -1
  38. package/flex/context.js +2 -3
  39. package/flex/index.js +2 -3
  40. package/flex/style/index.js +1 -1
  41. package/flex/utils.js +2 -3
  42. package/grid/Grid.js +2 -3
  43. package/grid/Item.js +2 -3
  44. package/grid/constants.js +1 -1
  45. package/grid/context.js +2 -3
  46. package/grid/index.js +2 -3
  47. package/grid/style/index.js +1 -1
  48. package/grid/utils.js +2 -3
  49. package/higher-order/with-speech-synthesis/context.js +2 -3
  50. package/higher-order/with-speech-synthesis/index.js +2 -3
  51. package/higher-order/with-speech-synthesis/style/index.js +1 -1
  52. package/higher-order/with-speech-synthesis/withSpeechSynthesis.js +2 -3
  53. package/hoc/withContext.js +2 -3
  54. package/hooks/create-deep-compare-effect/index.js +2 -3
  55. package/hooks/create-update-effect/index.js +2 -3
  56. package/hooks/create-use-storage-state/index.js +2 -3
  57. package/hooks/index.js +1 -1
  58. package/hooks/use-async-effect/index.js +2 -3
  59. package/hooks/use-boolean/index.js +2 -3
  60. package/hooks/use-click-away/index.js +2 -3
  61. package/hooks/use-computed-state/index.js +2 -3
  62. package/hooks/use-controllable-value/index.js +2 -3
  63. package/hooks/use-cookie-state/index.js +2 -3
  64. package/hooks/use-count-down/index.js +2 -3
  65. package/hooks/use-counter/index.js +2 -3
  66. package/hooks/use-create/index.js +2 -3
  67. package/hooks/use-creation/index.js +3 -4
  68. package/hooks/use-debounce/index.js +2 -3
  69. package/hooks/use-debounce-effect/index.js +2 -3
  70. package/hooks/use-debounce-fn/index.js +2 -3
  71. package/hooks/use-deep-compare-effect/index.js +2 -3
  72. package/hooks/use-deep-compare-layout-effect/index.js +2 -3
  73. package/hooks/use-document-visibility/index.js +2 -3
  74. package/hooks/use-drag/index.js +2 -3
  75. package/hooks/use-drag-move/index.js +2 -3
  76. package/hooks/use-drop/index.js +2 -3
  77. package/hooks/use-effect-event/index.js +2 -3
  78. package/hooks/use-event/index.js +2 -3
  79. package/hooks/use-event-emitter/index.js +2 -3
  80. package/hooks/use-event-listener/index.js +2 -3
  81. package/hooks/use-event-target/index.js +2 -3
  82. package/hooks/use-external/index.js +2 -3
  83. package/hooks/use-favicon/index.js +2 -3
  84. package/hooks/use-focus-within/index.js +2 -3
  85. package/hooks/use-force-update/index.js +2 -3
  86. package/hooks/use-fullscreen/index.js +2 -3
  87. package/hooks/use-get-state/index.js +2 -3
  88. package/hooks/use-history-travel/index.js +2 -3
  89. package/hooks/use-hover/index.js +2 -3
  90. package/hooks/use-id/index.js +2 -3
  91. package/hooks/use-in-viewport/index.js +17 -18
  92. package/hooks/use-infinite-scroll/index.js +2 -3
  93. package/hooks/use-intersection-observer/index.js +2 -3
  94. package/hooks/use-intersection-observers/index.js +19 -20
  95. package/hooks/use-interval/index.js +2 -3
  96. package/hooks/use-is-first-render/index.js +2 -3
  97. package/hooks/use-isomorphic-layout-effect/index.js +2 -3
  98. package/hooks/use-key-press/index.js +2 -3
  99. package/hooks/use-keyboard-event/index.js +2 -3
  100. package/hooks/use-latest/index.js +2 -3
  101. package/hooks/use-listen-window-resize/index.js +2 -3
  102. package/hooks/use-local-storage-state/index.js +2 -3
  103. package/hooks/use-lock-fn/index.js +2 -3
  104. package/hooks/use-long-press/index.js +2 -3
  105. package/hooks/use-map/index.js +2 -3
  106. package/hooks/use-media/index.js +2 -3
  107. package/hooks/use-memo/index.js +2 -3
  108. package/hooks/use-memoized-fn/index.js +2 -3
  109. package/hooks/use-merge-component-props/index.js +2 -3
  110. package/hooks/use-merge-value/index.js +2 -3
  111. package/hooks/use-mobile/index.js +2 -3
  112. package/hooks/use-mount/index.js +2 -3
  113. package/hooks/use-mouse/index.js +2 -3
  114. package/hooks/use-mutation-observer/index.js +2 -3
  115. package/hooks/use-mutation-observers/index.js +19 -20
  116. package/hooks/use-network/index.js +2 -3
  117. package/hooks/use-online-status/index.js +2 -3
  118. package/hooks/use-overflow-hidden/index.js +2 -3
  119. package/hooks/use-override-ref/index.js +2 -3
  120. package/hooks/use-pagination/index.js +2 -3
  121. package/hooks/use-paste-file/index.js +2 -3
  122. package/hooks/use-paste-image/index.js +2 -3
  123. package/hooks/use-persist-callback/index.js +2 -3
  124. package/hooks/use-prefers-color-scheme-dark/index.js +2 -3
  125. package/hooks/use-previous/index.js +2 -3
  126. package/hooks/use-raf-interval/index.js +2 -3
  127. package/hooks/use-raf-state/index.js +2 -3
  128. package/hooks/use-raf-timeout/index.js +2 -3
  129. package/hooks/use-reactive/index.js +2 -3
  130. package/hooks/use-ref-latest/index.js +2 -3
  131. package/hooks/use-ref-map/index.js +2 -3
  132. package/hooks/use-refs/index.js +2 -3
  133. package/hooks/use-request/index.js +2 -3
  134. package/hooks/use-request/src/Fetch.js +2 -3
  135. package/hooks/use-request/src/plugins/useAutoRunPlugin.js +2 -3
  136. package/hooks/use-request/src/plugins/useCachePlugin.js +2 -3
  137. package/hooks/use-request/src/plugins/useDebouncePlugin.js +2 -3
  138. package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +2 -3
  139. package/hooks/use-request/src/plugins/usePollingPlugin.js +2 -3
  140. package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +2 -3
  141. package/hooks/use-request/src/plugins/useRetryPlugin.js +2 -3
  142. package/hooks/use-request/src/plugins/useThrottlePlugin.js +2 -3
  143. package/hooks/use-request/src/useRequest.js +2 -3
  144. package/hooks/use-request/src/useRequestImplement.js +2 -3
  145. package/hooks/use-request/src/utils/cache.js +2 -3
  146. package/hooks/use-request/src/utils/cachePromise.js +2 -3
  147. package/hooks/use-request/src/utils/cacheSubscribe.js +2 -3
  148. package/hooks/use-request/src/utils/isDocumentVisible.js +2 -3
  149. package/hooks/use-request/src/utils/isOnline.js +2 -3
  150. package/hooks/use-request/src/utils/limit.js +2 -3
  151. package/hooks/use-request/src/utils/subscribeFocus.js +2 -3
  152. package/hooks/use-request/src/utils/subscribeReVisible.js +2 -3
  153. package/hooks/use-reset-state/index.js +2 -3
  154. package/hooks/use-resize-observer/index.js +2 -3
  155. package/hooks/use-resize-observers/index.js +19 -20
  156. package/hooks/use-responsive/index.js +2 -3
  157. package/hooks/use-safe-state/index.js +2 -3
  158. package/hooks/use-scroll/index.js +2 -3
  159. package/hooks/use-selections/index.js +2 -3
  160. package/hooks/use-session-storage-state/index.js +2 -3
  161. package/hooks/use-set/index.js +2 -3
  162. package/hooks/use-set-state/index.js +2 -3
  163. package/hooks/use-size/index.js +2 -3
  164. package/hooks/use-state-callback/index.js +3 -4
  165. package/hooks/use-state-with-promise/index.js +2 -3
  166. package/hooks/use-sync-state/index.js +2 -3
  167. package/hooks/use-text-selection/index.js +2 -3
  168. package/hooks/use-theme/index.js +2 -3
  169. package/hooks/use-throttle/index.js +2 -3
  170. package/hooks/use-throttle-effect/index.js +2 -3
  171. package/hooks/use-throttle-fn/index.js +2 -3
  172. package/hooks/use-throttle-fn-with-raf/index.js +2 -3
  173. package/hooks/use-timeout/index.js +2 -3
  174. package/hooks/use-title/index.js +2 -3
  175. package/hooks/use-toggle/index.js +2 -3
  176. package/hooks/use-tracked-effect/index.js +2 -3
  177. package/hooks/use-unmount/index.js +2 -3
  178. package/hooks/use-unmounted-ref/index.js +2 -3
  179. package/hooks/use-update/index.js +2 -3
  180. package/hooks/use-update-effect/index.js +2 -3
  181. package/hooks/use-update-layout-effect/index.js +2 -3
  182. package/hooks/use-url-state/index.js +2 -3
  183. package/hooks/use-virtual-list/index.js +2 -3
  184. package/hooks/use-watch/index.js +2 -3
  185. package/hooks/use-web-socket/index.js +3 -4
  186. package/hooks/use-why-did-you-update/index.js +2 -3
  187. package/hooks/use-window-size/index.js +2 -3
  188. package/hooks/utils/createEffectWithTarget.js +3 -4
  189. package/hooks/utils/depsAreSame.js +2 -3
  190. package/hooks/utils/depsEqual.js +2 -3
  191. package/hooks/utils/domTarget.js +2 -3
  192. package/hooks/utils/getDocumentOrShadow.js +2 -3
  193. package/hooks/utils/index.js +2 -3
  194. package/hooks/utils/isAppleDevice.js +2 -3
  195. package/hooks/utils/isBrowser.js +2 -3
  196. package/hooks/utils/isDev.js +2 -3
  197. package/hooks/utils/rect.js +2 -3
  198. package/hooks/utils/useDeepCompareWithTarget.js +2 -3
  199. package/hooks/utils/useEffectWithTarget.js +2 -3
  200. package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +2 -3
  201. package/hooks/utils/useLayoutEffectWithTarget.js +2 -3
  202. package/icons/file/File.js +2 -3
  203. package/icons/file/context.js +2 -3
  204. package/icons/file/index.js +2 -3
  205. package/icons/file/style/index.js +1 -1
  206. package/index.js +554 -554
  207. package/morphicons/core/interpolate.js +2 -3
  208. package/morphicons/core/normalize.js +2 -3
  209. package/morphicons/core/parse.js +0 -1
  210. package/morphicons/core/plan.js +0 -1
  211. package/morphicons/core/resample.js +2 -3
  212. package/morphicons/core/serialize.js +2 -3
  213. package/morphicons/core/spring.js +2 -3
  214. package/morphicons/dom/index.js +2 -3
  215. package/morphicons/index.js +1 -1
  216. package/morphicons/react/index.js +3 -4
  217. package/package.json +1 -1
  218. package/progress/Progress.js +40 -41
  219. package/progress/constants.js +1 -1
  220. package/progress/context.js +1 -1
  221. package/progress/index.js +2 -3
  222. package/progress/style/index.js +1 -1
  223. package/progress/utils.js +1 -1
  224. package/resize-observer/Collection.js +2 -3
  225. package/resize-observer/ResizeObserver.js +2 -3
  226. package/resize-observer/SingleObserver.js +2 -3
  227. package/resize-observer/constants.js +1 -1
  228. package/resize-observer/context.js +2 -3
  229. package/resize-observer/index.js +2 -3
  230. package/resize-observer/observerUtil.js +2 -3
  231. package/resize-observer/style/index.js +1 -1
  232. package/resize-observer/utils.js +1 -1
  233. package/space/Space.js +2 -3
  234. package/space/SpaceVertical.js +2 -3
  235. package/space/constants.js +1 -1
  236. package/space/context.js +2 -3
  237. package/space/index.js +2 -3
  238. package/space/style/index.js +1 -1
  239. package/space/utils.js +1 -1
  240. package/suspense-fallback-test/SuspenseFallbackTest.js +2 -3
  241. package/suspense-fallback-test/constants.js +1 -1
  242. package/suspense-fallback-test/context.js +2 -3
  243. package/suspense-fallback-test/index.js +2 -3
  244. package/suspense-fallback-test/style/index.js +1 -1
  245. package/suspense-fallback-test/utils.js +1 -1
  246. package/test.js +2 -3
  247. package/timer/Timer.js +2 -3
  248. package/timer/constants.js +1 -1
  249. package/timer/context.js +2 -3
  250. package/timer/index.js +2 -3
  251. package/timer/style/index.js +1 -1
  252. package/timer/utils.js +1 -1
  253. package/transition/Transition.js +2 -3
  254. package/transition/TransitionCSS.js +2 -3
  255. package/transition/TransitionGroup.js +2 -3
  256. package/transition/TransitionStyle.js +2 -3
  257. package/transition/constants.js +2 -3
  258. package/transition/context.js +2 -3
  259. package/transition/index.js +2 -3
  260. package/transition/style/index.js +1 -1
  261. package/transition/utils.js +2 -3
  262. package/utils/call.d.ts +1 -0
  263. package/utils/call.js +3 -0
  264. package/utils/callbackOriginRef.js +2 -3
  265. package/utils/confetti.js +2 -3
  266. package/utils/constants.js +2 -3
  267. package/utils/copy.js +2 -3
  268. package/utils/createRoot.js +3 -4
  269. package/utils/css.js +1 -1
  270. package/utils/dayjs.js +1 -2
  271. package/utils/document.js +2 -3
  272. package/utils/dom.js +2 -3
  273. package/utils/file.js +1 -1
  274. package/utils/fillNBSP.js +2 -3
  275. package/utils/getCompatProp.js +2 -3
  276. package/utils/getElement.js +2 -3
  277. package/utils/getHighlightText.js +2 -3
  278. package/utils/getHotkeyHandler.js +2 -3
  279. package/utils/getPrefixCls.js +2 -3
  280. package/utils/getScrollBarHeight.js +2 -3
  281. package/utils/getScrollBarSize.js +2 -3
  282. package/utils/getScrollBarWidth.js +2 -3
  283. package/utils/getScrollParent.js +2 -3
  284. package/utils/getStringLength.js +2 -3
  285. package/utils/getUrlSearchParam.js +2 -3
  286. package/utils/index.d.ts +1 -1
  287. package/utils/index.js +268 -268
  288. package/utils/initAllLineClamp.js +2 -3
  289. package/utils/injectLineClamp.js +2 -3
  290. package/utils/intersectionObserver.js +2 -3
  291. package/utils/is.js +2 -3
  292. package/utils/keyboardCode.js +2 -3
  293. package/utils/lodash.js +1 -1
  294. package/utils/mergeProps.js +2 -3
  295. package/utils/mergedToString.js +2 -3
  296. package/utils/migrateLegacyProps.js +2 -3
  297. package/utils/mutationObserver.js +2 -3
  298. package/utils/names.js +2 -3
  299. package/utils/object.js +2 -3
  300. package/utils/omit.js +2 -3
  301. package/utils/pad.js +2 -3
  302. package/utils/pick.js +2 -3
  303. package/utils/react19Adapter.js +2 -3
  304. package/utils/reactNode.js +2 -3
  305. package/utils/ref.js +2 -3
  306. package/utils/resizeObserver.js +2 -3
  307. package/utils/scrollIntoViewIfNeeded.js +2 -3
  308. package/utils/scrollTo.js +2 -3
  309. package/utils/setDarkTheme.js +2 -3
  310. package/utils/setDir.js +2 -3
  311. package/utils/setPrimaryColor.js +2 -3
  312. package/utils/setTheme.js +2 -3
  313. package/utils/string.js +2 -3
  314. package/utils/style.js +2 -3
  315. package/utils/tinycolor.js +1 -1
  316. package/utils/toArray.js +2 -3
  317. package/utils/tunnel.js +2 -3
  318. package/utils/warning.js +2 -3
  319. package/version/index.js +8 -9
  320. package/utils/callOrReturn.d.ts +0 -1
  321. package/utils/callOrReturn.js +0 -3
@@ -1,11 +1,11 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../use-latest/index.js";
4
4
  import t from "../utils/domTarget.js";
5
5
  import n from "../utils/useEffectWithTarget.js";
6
6
  import { useRef as r } from "react";
7
7
  import { isString as i } from "@unicom-cloud/utils/is";
8
- //#region components/common/hooks/use-drop/index.ts
8
+ // components/common/hooks/use-drop/index.ts
9
9
  var a = (a, o = {}) => {
10
10
  let s = e(o), c = r(void 0);
11
11
  n(() => {
@@ -40,7 +40,6 @@ var a = (a, o = {}) => {
40
40
  };
41
41
  }, [], a);
42
42
  };
43
- //#endregion
44
43
  export { a as default };
45
44
  /* 欲穷千里目,更上一层楼 */
46
45
  /* 独立思考,明辨是非 */
@@ -1,10 +1,9 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../use-memoized-fn/index.js";
4
4
  import t from "react";
5
- //#region components/common/hooks/use-effect-event/index.ts
5
+ // components/common/hooks/use-effect-event/index.ts
6
6
  var n = t.useEffectEvent || e;
7
- //#endregion
8
7
  export { n as default };
9
8
  /* 欲穷千里目,更上一层楼 */
10
9
  /* 独立思考,明辨是非 */
@@ -1,13 +1,12 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../use-latest/index.js";
4
4
  import { useCallback as t } from "react";
5
- //#region components/common/hooks/use-event/index.ts
5
+ // components/common/hooks/use-event/index.ts
6
6
  function n(n) {
7
7
  let r = e(n);
8
8
  return t((...e) => r.current?.(...e), []);
9
9
  }
10
- //#endregion
11
10
  export { n as default };
12
11
  /* 欲穷千里目,更上一层楼 */
13
12
  /* 独立思考,明辨是非 */
@@ -1,7 +1,7 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { useEffect as e, useRef as t } from "react";
4
- //#region components/common/hooks/use-event-emitter/index.ts
4
+ // components/common/hooks/use-event-emitter/index.ts
5
5
  var n = class {
6
6
  constructor() {
7
7
  this.subscriptions = /* @__PURE__ */ new Set(), this.emit = (e) => {
@@ -22,7 +22,6 @@ var n = class {
22
22
  let e = t(void 0);
23
23
  return e.current ||= new n(), e.current;
24
24
  };
25
- //#endregion
26
25
  export { n as EventEmitter, r as default };
27
26
  /* 欲穷千里目,更上一层楼 */
28
27
  /* 独立思考,明辨是非 */
@@ -1,10 +1,10 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../use-latest/index.js";
4
4
  import t from "../utils/domTarget.js";
5
5
  import n from "../utils/useEffectWithTarget.js";
6
6
  import r from "lodash/castArray";
7
- //#region components/common/hooks/use-event-listener/index.ts
7
+ // components/common/hooks/use-event-listener/index.ts
8
8
  function i(i, a, o = {}) {
9
9
  let { enable: s = !0 } = o, c = e(a);
10
10
  n(() => {
@@ -31,7 +31,6 @@ function i(i, a, o = {}) {
31
31
  s
32
32
  ], o.target);
33
33
  }
34
- //#endregion
35
34
  export { i as default };
36
35
  /* 欲穷千里目,更上一层楼 */
37
36
  /* 独立思考,明辨是非 */
@@ -1,9 +1,9 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../use-latest/index.js";
4
4
  import { useCallback as t, useState as n } from "react";
5
5
  import { isFunction as r } from "@unicom-cloud/utils/is";
6
- //#region components/common/hooks/use-event-target/index.ts
6
+ // components/common/hooks/use-event-target/index.ts
7
7
  function i(i) {
8
8
  let { initialValue: a, transformer: o } = i || {}, [s, c] = n(a), l = e(o), u = t(() => c(a), []);
9
9
  return [s, {
@@ -14,7 +14,6 @@ function i(i) {
14
14
  reset: u
15
15
  }];
16
16
  }
17
- //#endregion
18
17
  export { i as default };
19
18
  /* 欲穷千里目,更上一层楼 */
20
19
  /* 独立思考,明辨是非 */
@@ -1,9 +1,9 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { getBody as e, getHead as t } from "../../utils/dom.js";
4
4
  import { useEffect as n, useRef as r, useState as i } from "react";
5
5
  import { isUndefined as a } from "@unicom-cloud/utils/is";
6
- //#region components/common/hooks/use-external/index.ts
6
+ // components/common/hooks/use-external/index.ts
7
7
  var o = {}, s = (t, n = {}) => {
8
8
  let r = document.querySelector(`script[src="${t}"]`);
9
9
  if (!r) {
@@ -60,7 +60,6 @@ var o = {}, s = (t, n = {}) => {
60
60
  };
61
61
  }, [e]), l;
62
62
  };
63
- //#endregion
64
63
  export { l as default };
65
64
  /* 欲穷千里目,更上一层楼 */
66
65
  /* 独立思考,明辨是非 */
@@ -1,7 +1,7 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { useEffect as e } from "react";
4
- //#region components/common/hooks/use-favicon/index.ts
4
+ // components/common/hooks/use-favicon/index.ts
5
5
  var t = {
6
6
  SVG: "image/svg+xml",
7
7
  ICO: "image/x-icon",
@@ -14,7 +14,6 @@ var t = {
14
14
  i.type = t[r], i.href = n, i.rel = "shortcut icon", document.getElementsByTagName("head")[0].appendChild(i);
15
15
  }, [n]);
16
16
  };
17
- //#endregion
18
17
  export { n as default };
19
18
  /* 欲穷千里目,更上一层楼 */
20
19
  /* 独立思考,明辨是非 */
@@ -1,8 +1,8 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../use-event-listener/index.js";
4
4
  import { useState as t } from "react";
5
- //#region components/common/hooks/use-focus-within/index.tsx
5
+ // components/common/hooks/use-focus-within/index.tsx
6
6
  function n(n, r) {
7
7
  let [i, a] = t(!1), { onFocus: o, onBlur: s, onChange: c } = r || {};
8
8
  return e("focusin", (e) => {
@@ -11,7 +11,6 @@ function n(n, r) {
11
11
  i && !e.currentTarget?.contains?.(e.relatedTarget) && (s?.(e), c?.(!1), a(!1));
12
12
  }, { target: n }), i;
13
13
  }
14
- //#endregion
15
14
  export { n as default };
16
15
  /* 欲穷千里目,更上一层楼 */
17
16
  /* 独立思考,明辨是非 */
@@ -1,9 +1,8 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../use-update/index.js";
4
- //#region components/common/hooks/use-force-update/index.ts
4
+ // components/common/hooks/use-force-update/index.ts
5
5
  var t = e;
6
- //#endregion
7
6
  export { t as default };
8
7
  /* 欲穷千里目,更上一层楼 */
9
8
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../use-latest/index.js";
4
4
  import t from "../utils/domTarget.js";
@@ -6,7 +6,7 @@ import n from "../use-memoized-fn/index.js";
6
6
  import { useEffect as r, useRef as i, useState as a } from "react";
7
7
  import { isBoolean as o } from "@unicom-cloud/utils/is";
8
8
  import s from "@unicom-cloud/utils/screenfull";
9
- //#region components/common/hooks/use-fullscreen/index.ts
9
+ // components/common/hooks/use-fullscreen/index.ts
10
10
  var c = (c, l) => {
11
11
  let { onExit: u, onEnter: d, pageFullscreen: f = !1 } = l || {}, { className: p = "@unicom-cloud-ui-hooks-page-fullscreen", zIndex: m = 999999 } = o(f) || !f ? {} : f, h = e(u), g = e(d), [_, v] = a(b), y = i(b());
12
12
  function b() {
@@ -55,7 +55,6 @@ var c = (c, l) => {
55
55
  isEnabled: s.isEnabled
56
56
  }];
57
57
  };
58
- //#endregion
59
58
  export { c as default };
60
59
  /* 欲穷千里目,更上一层楼 */
61
60
  /* 独立思考,明辨是非 */
@@ -1,8 +1,8 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../use-latest/index.js";
4
4
  import { useCallback as t, useState as n } from "react";
5
- //#region components/common/hooks/use-get-state/index.ts
5
+ // components/common/hooks/use-get-state/index.ts
6
6
  function r(r) {
7
7
  let [i, a] = n(r), o = e(i);
8
8
  return [
@@ -11,7 +11,6 @@ function r(r) {
11
11
  t(() => o.current, [])
12
12
  ];
13
13
  }
14
- //#endregion
15
14
  export { r as default };
16
15
  /* 欲穷千里目,更上一层楼 */
17
16
  /* 独立思考,明辨是非 */
@@ -1,9 +1,9 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../use-memoized-fn/index.js";
4
4
  import { useRef as t, useState as n } from "react";
5
5
  import { isNumber as r } from "@unicom-cloud/utils/is";
6
- //#region components/common/hooks/use-history-travel/index.ts
6
+ // components/common/hooks/use-history-travel/index.ts
7
7
  var i = (e, t) => {
8
8
  let n = e > 0 ? e - 1 : t.length + e;
9
9
  return n >= t.length - 1 && (n = t.length - 1), n < 0 && (n = 0), n;
@@ -80,7 +80,6 @@ function o(i, o = 0) {
80
80
  reset: e(p)
81
81
  };
82
82
  }
83
- //#endregion
84
83
  export { o as default };
85
84
  /* 欲穷千里目,更上一层楼 */
86
85
  /* 独立思考,明辨是非 */
@@ -1,8 +1,8 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../use-boolean/index.js";
4
4
  import t from "../use-event-listener/index.js";
5
- //#region components/common/hooks/use-hover/index.ts
5
+ // components/common/hooks/use-hover/index.ts
6
6
  var n = (n, r) => {
7
7
  let { onEnter: i, onLeave: a, onChange: o } = r || {}, [s, { setTrue: c, setFalse: l }] = e(!1);
8
8
  return t("mouseenter", () => {
@@ -11,7 +11,6 @@ var n = (n, r) => {
11
11
  a?.(), l(), o?.(!1);
12
12
  }, { target: n }), s;
13
13
  };
14
- //#endregion
15
14
  export { n as default };
16
15
  /* 欲穷千里目,更上一层楼 */
17
16
  /* 独立思考,明辨是非 */
@@ -1,13 +1,12 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "react";
4
4
  import { isString as t } from "@unicom-cloud/utils/is";
5
- //#region components/common/hooks/use-id/index.ts
5
+ // components/common/hooks/use-id/index.ts
6
6
  function n(n) {
7
7
  let r = e.useId();
8
8
  return t(n) ? `${n}-${r}` : r;
9
9
  }
10
- //#endregion
11
10
  export { n as default };
12
11
  /* 欲穷千里目,更上一层楼 */
13
12
  /* 独立思考,明辨是非 */
@@ -1,34 +1,33 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../utils/domTarget.js";
4
4
  import t from "../utils/useEffectWithTarget.js";
5
5
  import { supportIntersectionObserver as n } from "../use-intersection-observer/index.js";
6
6
  import { useState as r } from "react";
7
- import { isExist as i } from "@unicom-cloud/utils/is";
8
- import a from "lodash/castArray";
9
- //#region components/common/hooks/use-in-viewport/index.ts
10
- function o(o, s) {
11
- let { flag: c = !0, defaultInView: l, callback: u, ...d } = s || {}, [f, p] = r(!n || !!l), [m, h] = r();
7
+ import { isArrayAndNotEmpty as i, isExist as a } from "@unicom-cloud/utils/is";
8
+ import o from "lodash/castArray";
9
+ // components/common/hooks/use-in-viewport/index.ts
10
+ function s(s, c) {
11
+ let { flag: l = !0, defaultInView: u, callback: d, ...f } = c || {}, [p, m] = r(!n || !!u), [h, g] = r();
12
12
  return t(() => {
13
- if (!c) return;
14
- let t = a(o).map((t) => e(t)).filter(i);
15
- if (!t.length) return;
13
+ if (!l) return;
14
+ let t = o(s).map((t) => e(t)).filter(a);
15
+ if (!i(t)) return;
16
16
  let n = new IntersectionObserver((e) => {
17
- for (let t of e) h(t.intersectionRatio), p(t.isIntersecting), u?.(t);
17
+ for (let t of e) g(t.intersectionRatio), m(t.isIntersecting), d?.(t);
18
18
  }, {
19
- ...d,
20
- root: e(s?.root)
19
+ ...f,
20
+ root: e(c?.root)
21
21
  });
22
22
  return t.forEach((e, t, r) => n.observe(e)), () => {
23
23
  n.disconnect();
24
24
  };
25
25
  }, [
26
- s?.rootMargin,
27
- s?.threshold,
28
- u
29
- ], o), [f, m];
26
+ c?.rootMargin,
27
+ c?.threshold,
28
+ d
29
+ ], s), [p, h];
30
30
  }
31
- //#endregion
32
- export { o as default };
31
+ export { s as default };
33
32
  /* 欲穷千里目,更上一层楼 */
34
33
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../utils/domTarget.js";
4
4
  import t from "../use-memoized-fn/index.js";
@@ -10,7 +10,7 @@ import { getClientHeight as o, getScrollHeight as s, getScrollTop as c } from ".
10
10
  import l from "../utils/useIsomorphicLayoutEffectWithTarget.js";
11
11
  import { useMemo as u, useRef as d, useState as f } from "react";
12
12
  import { isUndefined as p } from "@unicom-cloud/utils/is";
13
- //#region components/common/hooks/use-infinite-scroll/index.tsx
13
+ // components/common/hooks/use-infinite-scroll/index.tsx
14
14
  var m = (m, h = {}) => {
15
15
  let { target: g, isNoMore: _, threshold: v = 100, direction: y = "bottom", reloadDeps: b = [], manual: x, onBefore: S, onSuccess: C, onError: w, onFinally: T } = h, [E, D] = f(), [O, k] = f(!1), A = y === "top", j = d(void 0), M = d(0), N = d(!1), P = u(() => _ ? _(E) : !1, [E]), { loading: F, error: I, run: L, runAsync: R, cancel: z } = a(async (e) => ({
16
16
  currentData: await m(e),
@@ -85,7 +85,6 @@ var m = (m, h = {}) => {
85
85
  cancel: z
86
86
  };
87
87
  };
88
- //#endregion
89
88
  export { m as default };
90
89
  /* 欲穷千里目,更上一层楼 */
91
90
  /* 独立思考,明辨是非 */
@@ -1,9 +1,9 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { isServerRendering as e } from "../../utils/is.js";
4
4
  import { useRef as t } from "react";
5
5
  import { isUndefined as n } from "@unicom-cloud/utils/is";
6
- //#region components/common/hooks/use-intersection-observer/index.ts
6
+ // components/common/hooks/use-intersection-observer/index.ts
7
7
  var r = !e && !n(window?.IntersectionObserver);
8
8
  function i(e, n = {}) {
9
9
  let i = t(null), a = () => {
@@ -17,7 +17,6 @@ function i(e, n = {}) {
17
17
  dor: a
18
18
  };
19
19
  }
20
- //#endregion
21
20
  export { i as default, r as supportIntersectionObserver };
22
21
  /* 欲穷千里目,更上一层楼 */
23
22
  /* 独立思考,明辨是非 */
@@ -1,24 +1,24 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../use-latest/index.js";
4
4
  import { noop as t, uniq as n } from "../../utils/lodash.js";
5
5
  import { startTransition as r, useDeferredValue as i, useEffect as a, useState as o } from "react";
6
- import { isElement as s, isFunction as c } from "@unicom-cloud/utils/is";
7
- import l from "lodash/throttle";
8
- //#region components/common/hooks/use-intersection-observers/index.ts
9
- function u(u, d = [], f = {}) {
10
- let { immediate: p, shouldReturn: m = !1, ...h } = f, [g, _] = o(), v = i(g), y = e(u);
6
+ import { isArrayAndNotEmpty as s, isElement as c, isFunction as l } from "@unicom-cloud/utils/is";
7
+ import u from "lodash/throttle";
8
+ // components/common/hooks/use-intersection-observers/index.ts
9
+ function d(d, f = [], p = {}) {
10
+ let { immediate: m, shouldReturn: h = !1, ...g } = p, [_, v] = o(), y = i(_), b = e(d);
11
11
  if (a(() => {
12
- let e = l((e, t) => {
13
- let n = y.current;
14
- c(n) && n(e, t), m && r(() => {
15
- _(e);
12
+ let e = u((e, t) => {
13
+ let n = b.current;
14
+ l(n) && n(e, t), h && r(() => {
15
+ v(e);
16
16
  });
17
17
  }, 227);
18
- p && e();
19
- let i = n([].concat(d).filter((e, t, n) => s(e, !0)));
20
- if (!i.length) return t;
21
- let a = new IntersectionObserver(e, { ...h });
18
+ m && e();
19
+ let i = n([].concat(f).filter((e, t, n) => c(e, !0)));
20
+ if (!s(i)) return t;
21
+ let a = new IntersectionObserver(e, { ...g });
22
22
  return i.forEach((e, t, n) => {
23
23
  a.observe(e);
24
24
  }), () => {
@@ -27,12 +27,11 @@ function u(u, d = [], f = {}) {
27
27
  }), a.disconnect(), e.cancel();
28
28
  };
29
29
  }, [
30
- ...d,
31
- p,
32
- m
33
- ]), m) return v;
30
+ ...f,
31
+ m,
32
+ h
33
+ ]), h) return y;
34
34
  }
35
- //#endregion
36
- export { u as default, u as useIntersectionObservers };
35
+ export { d as default, d as useIntersectionObservers };
37
36
  /* 欲穷千里目,更上一层楼 */
38
37
  /* 独立思考,明辨是非 */
@@ -1,9 +1,9 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../use-memoized-fn/index.js";
4
4
  import { useCallback as t, useEffect as n, useRef as r } from "react";
5
5
  import { isNumber as i } from "@unicom-cloud/utils/is";
6
- //#region components/common/hooks/use-interval/index.ts
6
+ // components/common/hooks/use-interval/index.ts
7
7
  var a = (a, o, s = {}) => {
8
8
  let c = e(a), l = r(null), u = t(() => {
9
9
  l.current && clearInterval(l.current);
@@ -12,7 +12,6 @@ var a = (a, o, s = {}) => {
12
12
  if (i(o) && !(o < 0)) return s.immediate && c(), l.current = setInterval(c, o), u;
13
13
  }, [o, s.immediate]), u;
14
14
  };
15
- //#endregion
16
15
  export { a as default };
17
16
  /* 欲穷千里目,更上一层楼 */
18
17
  /* 独立思考,明辨是非 */
@@ -1,12 +1,11 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { useEffect as e, useRef as t } from "react";
4
- //#region components/common/hooks/use-is-first-render/index.ts
4
+ // components/common/hooks/use-is-first-render/index.ts
5
5
  function n() {
6
6
  let n = t(!0);
7
7
  return e(() => (n.current = !1, () => {}), []), n.current;
8
8
  }
9
- //#endregion
10
9
  export { n as default };
11
10
  /* 欲穷千里目,更上一层楼 */
12
11
  /* 独立思考,明辨是非 */
@@ -1,10 +1,9 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../utils/isBrowser.js";
4
4
  import { useEffect as t, useLayoutEffect as n } from "react";
5
- //#region components/common/hooks/use-isomorphic-layout-effect/index.ts
5
+ // components/common/hooks/use-isomorphic-layout-effect/index.ts
6
6
  var r = e ? n : t;
7
- //#endregion
8
7
  export { r as default };
9
8
  /* 欲穷千里目,更上一层楼 */
10
9
  /* 独立思考,明辨是非 */
@@ -1,11 +1,11 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../use-latest/index.js";
4
4
  import t from "../utils/domTarget.js";
5
5
  import n from "../utils/isAppleDevice.js";
6
6
  import r from "../utils/useDeepCompareWithTarget.js";
7
7
  import { isArray as i, isFunction as a, isNumber as o, isStringOrNumber as s } from "@unicom-cloud/utils/is";
8
- //#region components/common/hooks/use-key-press/index.ts
8
+ // components/common/hooks/use-key-press/index.ts
9
9
  var c = {
10
10
  0: 48,
11
11
  1: 49,
@@ -164,7 +164,6 @@ function h(n, i, a) {
164
164
  };
165
165
  }, [o], s);
166
166
  }
167
- //#endregion
168
167
  export { h as default };
169
168
  /* 欲穷千里目,更上一层楼 */
170
169
  /* 独立思考,明辨是非 */
@@ -1,15 +1,14 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { useCallback as e } from "react";
4
4
  import { ArrowDown as t, ArrowLeft as n, ArrowRight as r, ArrowUp as i, Enter as a } from "@unicom-cloud/utils/constants/keyboardCode";
5
- //#region components/common/hooks/use-keyboard-event/index.ts
5
+ // components/common/hooks/use-keyboard-event/index.ts
6
6
  function o(o = {}) {
7
7
  return e((e) => ({ onKeyDown(s) {
8
8
  let c = s.key;
9
9
  c === a.key && e.onPressEnter?.(s, c), c === t.key && e.onArrowDown?.(s, c), c === n.key && e.onArrowLeft?.(s, c), c === r.key && e.onArrowRight?.(s, c), c === i.key && e.onArrowUp?.(s, c), o.onKeyDown?.(s);
10
10
  } }), []);
11
11
  }
12
- //#endregion
13
12
  export { o as default };
14
13
  /* 欲穷千里目,更上一层楼 */
15
14
  /* 独立思考,明辨是非 */
@@ -1,12 +1,11 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { useRef as e } from "react";
4
- //#region components/common/hooks/use-latest/index.ts
4
+ // components/common/hooks/use-latest/index.ts
5
5
  function t(t) {
6
6
  let n = e(t);
7
7
  return n.current = t, n;
8
8
  }
9
- //#endregion
10
9
  export { t as default };
11
10
  /* 欲穷千里目,更上一层楼 */
12
11
  /* 独立思考,明辨是非 */
@@ -1,13 +1,12 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { useEffect as e } from "react";
4
- //#region components/common/hooks/use-listen-window-resize/index.ts
4
+ // components/common/hooks/use-listen-window-resize/index.ts
5
5
  function t(t, n = []) {
6
6
  e(() => (window.addEventListener("resize", t), window.addEventListener("orientationchange", t), () => {
7
7
  window.removeEventListener("resize", t), window.removeEventListener("orientationchange", t);
8
8
  }), [...n]);
9
9
  }
10
- //#endregion
11
10
  export { t as default };
12
11
  /* 欲穷千里目,更上一层楼 */
13
12
  /* 独立思考,明辨是非 */
@@ -1,10 +1,9 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../utils/isBrowser.js";
4
4
  import t from "../create-use-storage-state/index.js";
5
- //#region components/common/hooks/use-local-storage-state/index.ts
5
+ // components/common/hooks/use-local-storage-state/index.ts
6
6
  var n = t(() => e ? localStorage : void 0);
7
- //#endregion
8
7
  export { n as default };
9
8
  /* 欲穷千里目,更上一层楼 */
10
9
  /* 独立思考,明辨是非 */
@@ -1,7 +1,7 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { useCallback as e, useRef as t } from "react";
4
- //#region components/common/hooks/use-lock-fn/index.ts
4
+ // components/common/hooks/use-lock-fn/index.ts
5
5
  function n(n) {
6
6
  let r = t(!1);
7
7
  return e(async (...e) => {
@@ -17,7 +17,6 @@ function n(n) {
17
17
  }
18
18
  }, [n]);
19
19
  }
20
- //#endregion
21
20
  export { n as default };
22
21
  /* 欲穷千里目,更上一层楼 */
23
22
  /* 独立思考,明辨是非 */
@@ -1,10 +1,10 @@
1
- /* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../use-latest/index.js";
4
4
  import t from "../utils/domTarget.js";
5
5
  import n from "../utils/useEffectWithTarget.js";
6
6
  import { useRef as r } from "react";
7
- //#region components/common/hooks/use-long-press/index.ts
7
+ // components/common/hooks/use-long-press/index.ts
8
8
  function i(i, a, { delay: o = 300, moveThreshold: s, onClick: c, onLongPressEnd: l } = {}) {
9
9
  let u = e(i), d = e(c), f = e(l), p = r(void 0), m = r(!1), h = r({
10
10
  x: 0,
@@ -57,7 +57,6 @@ function i(i, a, { delay: o = 300, moveThreshold: s, onClick: c, onLongPressEnd:
57
57
  };
58
58
  }, [], a);
59
59
  }
60
- //#endregion
61
60
  export { i as default };
62
61
  /* 欲穷千里目,更上一层楼 */
63
62
  /* 独立思考,明辨是非 */