@unicom-cloud/ui-common 0.1.53 → 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 (345) 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 +18 -17
  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/index.js +1 -4
  50. package/higher-order/with-speech-synthesis/context.js +2 -3
  51. package/higher-order/with-speech-synthesis/index.js +2 -3
  52. package/higher-order/with-speech-synthesis/style/index.js +1 -1
  53. package/higher-order/with-speech-synthesis/withSpeechSynthesis.js +2 -3
  54. package/hoc/withContext.js +2 -3
  55. package/hooks/create-deep-compare-effect/index.js +2 -3
  56. package/hooks/create-update-effect/index.js +2 -3
  57. package/hooks/create-use-storage-state/index.js +2 -3
  58. package/hooks/index.d.ts +1 -0
  59. package/hooks/index.js +14 -13
  60. package/hooks/use-async-effect/index.js +2 -3
  61. package/hooks/use-boolean/index.js +2 -3
  62. package/hooks/use-click-away/index.js +2 -3
  63. package/hooks/use-computed-state/index.js +2 -3
  64. package/hooks/use-controllable-value/index.js +2 -3
  65. package/hooks/use-cookie-state/index.js +2 -3
  66. package/hooks/use-count-down/index.js +2 -3
  67. package/hooks/use-counter/index.js +2 -3
  68. package/hooks/use-create/index.js +2 -3
  69. package/hooks/use-creation/index.js +3 -4
  70. package/hooks/use-debounce/index.js +2 -3
  71. package/hooks/use-debounce-effect/index.js +2 -3
  72. package/hooks/use-debounce-fn/index.js +2 -3
  73. package/hooks/use-deep-compare-effect/index.js +2 -3
  74. package/hooks/use-deep-compare-layout-effect/index.js +2 -3
  75. package/hooks/use-document-visibility/index.js +2 -3
  76. package/hooks/use-drag/index.js +2 -3
  77. package/hooks/use-drag-move/index.js +2 -3
  78. package/hooks/use-drop/index.js +3 -14
  79. package/hooks/use-effect-event/index.js +2 -3
  80. package/hooks/use-event/index.js +2 -3
  81. package/hooks/use-event-emitter/index.js +2 -3
  82. package/hooks/use-event-listener/index.js +2 -3
  83. package/hooks/use-event-target/index.js +2 -3
  84. package/hooks/use-external/index.js +2 -3
  85. package/hooks/use-favicon/index.js +2 -3
  86. package/hooks/use-focus-within/index.js +2 -3
  87. package/hooks/use-force-update/index.js +2 -3
  88. package/hooks/use-fullscreen/index.js +5 -15
  89. package/hooks/use-get-state/index.js +2 -3
  90. package/hooks/use-history-travel/index.js +2 -3
  91. package/hooks/use-hover/index.js +2 -3
  92. package/hooks/use-id/index.js +2 -3
  93. package/hooks/use-in-viewport/index.js +17 -18
  94. package/hooks/use-infinite-scroll/index.js +2 -3
  95. package/hooks/use-intersection-observer/index.js +2 -3
  96. package/hooks/use-intersection-observers/index.js +19 -20
  97. package/hooks/use-interval/index.js +2 -3
  98. package/hooks/use-is-first-render/index.js +2 -3
  99. package/hooks/use-isomorphic-layout-effect/index.js +2 -3
  100. package/hooks/use-key-press/index.js +2 -3
  101. package/hooks/use-keyboard-event/index.js +2 -3
  102. package/hooks/use-latest/index.js +2 -3
  103. package/hooks/use-listen-window-resize/index.js +2 -3
  104. package/hooks/use-local-storage-state/index.js +2 -3
  105. package/hooks/use-lock-fn/index.js +2 -3
  106. package/hooks/use-long-press/index.js +2 -3
  107. package/hooks/use-map/index.js +2 -3
  108. package/hooks/use-media/index.js +2 -3
  109. package/hooks/use-memo/index.js +2 -3
  110. package/hooks/use-memoized-fn/index.js +2 -3
  111. package/hooks/use-merge-component-props/index.js +2 -3
  112. package/hooks/use-merge-value/index.js +2 -3
  113. package/hooks/use-mobile/index.js +2 -3
  114. package/hooks/use-mount/index.js +2 -3
  115. package/hooks/use-mouse/index.js +2 -3
  116. package/hooks/use-move/index.js +1 -4
  117. package/hooks/use-mutation-observer/index.js +2 -3
  118. package/hooks/use-mutation-observers/index.js +19 -20
  119. package/hooks/use-network/index.js +2 -3
  120. package/hooks/use-online-status/index.js +2 -3
  121. package/hooks/use-overflow-hidden/index.js +2 -3
  122. package/hooks/use-override-ref/index.js +2 -3
  123. package/hooks/use-pagination/index.js +2 -3
  124. package/hooks/use-paste-file/index.d.ts +10 -0
  125. package/hooks/use-paste-file/index.js +29 -0
  126. package/hooks/use-paste-image/index.d.ts +2 -3
  127. package/hooks/use-paste-image/index.js +8 -20
  128. package/hooks/use-persist-callback/index.js +2 -3
  129. package/hooks/use-prefers-color-scheme-dark/index.js +2 -3
  130. package/hooks/use-previous/index.js +2 -3
  131. package/hooks/use-raf-interval/index.js +2 -3
  132. package/hooks/use-raf-state/index.js +2 -3
  133. package/hooks/use-raf-timeout/index.js +2 -3
  134. package/hooks/use-reactive/index.js +2 -3
  135. package/hooks/use-ref-latest/index.js +2 -3
  136. package/hooks/use-ref-map/index.js +2 -3
  137. package/hooks/use-refs/index.js +2 -3
  138. package/hooks/use-request/index.js +2 -3
  139. package/hooks/use-request/src/Fetch.js +2 -3
  140. package/hooks/use-request/src/plugins/useAutoRunPlugin.js +2 -3
  141. package/hooks/use-request/src/plugins/useCachePlugin.js +3 -4
  142. package/hooks/use-request/src/plugins/useDebouncePlugin.js +2 -3
  143. package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +2 -3
  144. package/hooks/use-request/src/plugins/usePollingPlugin.js +2 -3
  145. package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +2 -3
  146. package/hooks/use-request/src/plugins/useRetryPlugin.js +2 -3
  147. package/hooks/use-request/src/plugins/useThrottlePlugin.js +2 -3
  148. package/hooks/use-request/src/useRequest.js +2 -3
  149. package/hooks/use-request/src/useRequestImplement.js +2 -3
  150. package/hooks/use-request/src/utils/cache.js +2 -3
  151. package/hooks/use-request/src/utils/cachePromise.js +2 -3
  152. package/hooks/use-request/src/utils/cacheSubscribe.js +2 -3
  153. package/hooks/use-request/src/utils/isDocumentVisible.js +2 -3
  154. package/hooks/use-request/src/utils/isOnline.js +2 -3
  155. package/hooks/use-request/src/utils/limit.js +2 -3
  156. package/hooks/use-request/src/utils/subscribeFocus.js +2 -3
  157. package/hooks/use-request/src/utils/subscribeReVisible.js +2 -3
  158. package/hooks/use-reset-state/index.js +2 -3
  159. package/hooks/use-resize-observer/index.js +2 -3
  160. package/hooks/use-resize-observers/index.js +19 -20
  161. package/hooks/use-responsive/index.js +2 -3
  162. package/hooks/use-safe-state/index.js +2 -3
  163. package/hooks/use-scroll/index.js +2 -3
  164. package/hooks/use-selections/index.js +2 -3
  165. package/hooks/use-session-storage-state/index.js +2 -3
  166. package/hooks/use-set/index.js +2 -3
  167. package/hooks/use-set-state/index.js +2 -3
  168. package/hooks/use-size/index.js +2 -3
  169. package/hooks/use-state-callback/index.js +11 -12
  170. package/hooks/use-state-with-promise/index.js +2 -3
  171. package/hooks/use-sync-state/index.js +2 -3
  172. package/hooks/use-text-selection/index.js +2 -3
  173. package/hooks/use-theme/index.js +2 -3
  174. package/hooks/use-throttle/index.js +2 -3
  175. package/hooks/use-throttle-effect/index.js +2 -3
  176. package/hooks/use-throttle-fn/index.js +2 -3
  177. package/hooks/use-throttle-fn-with-raf/index.js +2 -3
  178. package/hooks/use-timeout/index.js +2 -3
  179. package/hooks/use-title/index.js +2 -3
  180. package/hooks/use-toggle/index.js +2 -3
  181. package/hooks/use-tracked-effect/index.js +2 -3
  182. package/hooks/use-unmount/index.js +2 -3
  183. package/hooks/use-unmounted-ref/index.js +2 -3
  184. package/hooks/use-update/index.js +2 -3
  185. package/hooks/use-update-effect/index.js +2 -3
  186. package/hooks/use-update-layout-effect/index.js +2 -3
  187. package/hooks/use-url-state/index.js +2 -3
  188. package/hooks/use-virtual-list/index.js +3 -8
  189. package/hooks/use-watch/index.js +2 -3
  190. package/hooks/use-web-socket/index.js +3 -4
  191. package/hooks/use-why-did-you-update/index.js +2 -3
  192. package/hooks/use-window-size/index.js +2 -3
  193. package/hooks/utils/createEffectWithTarget.js +3 -8
  194. package/hooks/utils/depsAreSame.js +2 -3
  195. package/hooks/utils/depsEqual.js +2 -3
  196. package/hooks/utils/domTarget.js +2 -3
  197. package/hooks/utils/getDocumentOrShadow.js +2 -3
  198. package/hooks/utils/index.js +2 -3
  199. package/hooks/utils/isAppleDevice.js +2 -3
  200. package/hooks/utils/isBrowser.js +2 -3
  201. package/hooks/utils/isDev.js +2 -3
  202. package/hooks/utils/rect.js +2 -3
  203. package/hooks/utils/useDeepCompareWithTarget.js +2 -3
  204. package/hooks/utils/useEffectWithTarget.js +2 -3
  205. package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +2 -3
  206. package/hooks/utils/useLayoutEffectWithTarget.js +2 -3
  207. package/icons/file/File.js +2 -3
  208. package/icons/file/context.js +2 -3
  209. package/icons/file/index.js +2 -3
  210. package/icons/file/style/index.js +1 -1
  211. package/index.js +554 -557
  212. package/morphicons/core/interpolate.js +2 -3
  213. package/morphicons/core/normalize.js +2 -3
  214. package/morphicons/core/parse.js +0 -1
  215. package/morphicons/core/plan.js +4 -11
  216. package/morphicons/core/resample.js +2 -3
  217. package/morphicons/core/serialize.js +2 -3
  218. package/morphicons/core/spring.js +2 -3
  219. package/morphicons/dom/index.js +2 -3
  220. package/morphicons/index.js +1 -1
  221. package/morphicons/react/index.js +3 -4
  222. package/package.json +1 -1
  223. package/progress/Progress.js +40 -41
  224. package/progress/constants.js +1 -1
  225. package/progress/context.js +1 -1
  226. package/progress/index.js +2 -3
  227. package/progress/style/index.js +1 -1
  228. package/progress/utils.js +1 -1
  229. package/resize-observer/Collection.js +2 -3
  230. package/resize-observer/ResizeObserver.js +2 -3
  231. package/resize-observer/SingleObserver.js +2 -3
  232. package/resize-observer/constants.js +1 -1
  233. package/resize-observer/context.js +2 -3
  234. package/resize-observer/index.js +2 -3
  235. package/resize-observer/observerUtil.js +2 -3
  236. package/resize-observer/style/index.js +1 -1
  237. package/resize-observer/utils.js +1 -1
  238. package/space/Space.js +42 -42
  239. package/space/SpaceVertical.js +7 -7
  240. package/space/constants.js +1 -1
  241. package/space/context.js +7 -7
  242. package/space/index.js +2 -3
  243. package/space/style/index.js +1 -1
  244. package/space/utils.js +1 -1
  245. package/suspense-fallback-test/SuspenseFallbackTest.js +2 -3
  246. package/suspense-fallback-test/constants.js +1 -1
  247. package/suspense-fallback-test/context.js +2 -3
  248. package/suspense-fallback-test/index.js +2 -3
  249. package/suspense-fallback-test/style/index.js +1 -1
  250. package/suspense-fallback-test/utils.js +1 -1
  251. package/test.js +2 -3
  252. package/timer/Timer.js +2 -3
  253. package/timer/constants.js +1 -1
  254. package/timer/context.js +2 -3
  255. package/timer/index.js +2 -3
  256. package/timer/style/index.js +1 -1
  257. package/timer/utils.js +1 -1
  258. package/transition/Transition.js +2 -3
  259. package/transition/TransitionCSS.js +2 -3
  260. package/transition/TransitionGroup.js +2 -3
  261. package/transition/TransitionStyle.js +2 -3
  262. package/transition/constants.js +2 -3
  263. package/transition/context.js +2 -3
  264. package/transition/index.js +2 -3
  265. package/transition/style/index.js +1 -1
  266. package/transition/utils.js +2 -3
  267. package/utils/call.d.ts +1 -0
  268. package/utils/call.js +3 -0
  269. package/utils/callbackOriginRef.js +2 -3
  270. package/utils/caseName.js +1 -4
  271. package/utils/className.js +1 -4
  272. package/utils/confetti.js +3 -4
  273. package/utils/constants.js +2 -3
  274. package/utils/copy.js +2 -3
  275. package/utils/createRoot.js +16 -17
  276. package/utils/css.js +1 -1
  277. package/utils/date.js +1 -4
  278. package/utils/dayjs.js +12 -12
  279. package/utils/document.js +2 -3
  280. package/utils/dom.js +2 -3
  281. package/utils/emitter.js +1 -4
  282. package/utils/file.js +1 -1
  283. package/utils/fileRead.js +1 -4
  284. package/utils/fileToDataURL.js +1 -4
  285. package/utils/fillNBSP.js +2 -3
  286. package/utils/getCompatProp.js +2 -3
  287. package/utils/getElement.js +14 -15
  288. package/utils/getHighlightText.js +2 -3
  289. package/utils/getHotkeyHandler.js +2 -3
  290. package/utils/getPrefixCls.js +2 -3
  291. package/utils/getScrollBarHeight.js +2 -3
  292. package/utils/getScrollBarSize.js +2 -3
  293. package/utils/getScrollBarWidth.js +2 -3
  294. package/utils/getScrollParent.js +2 -3
  295. package/utils/getStringLength.js +2 -3
  296. package/utils/getUrlSearchParam.js +2 -3
  297. package/utils/index.d.ts +1 -3
  298. package/utils/index.js +268 -273
  299. package/utils/initAllLineClamp.js +2 -3
  300. package/utils/injectLineClamp.js +2 -3
  301. package/utils/intersectionObserver.js +2 -3
  302. package/utils/is.js +2 -3
  303. package/utils/keyboardCode.js +2 -3
  304. package/utils/lodash.d.ts +2 -1
  305. package/utils/lodash.js +12 -11
  306. package/utils/math.js +1 -4
  307. package/utils/mergeProps.js +2 -3
  308. package/utils/mergedToString.js +2 -3
  309. package/utils/migrateLegacyProps.js +2 -3
  310. package/utils/mutationObserver.js +2 -3
  311. package/utils/names.js +22 -3
  312. package/utils/object.js +2 -3
  313. package/utils/omit.js +2 -3
  314. package/utils/pad.js +2 -3
  315. package/utils/pick.js +2 -3
  316. package/utils/pinyin.js +1 -4
  317. package/utils/react19Adapter.js +2 -3
  318. package/utils/reactNode.js +2 -3
  319. package/utils/ref.js +2 -3
  320. package/utils/resizeObserver.js +2 -3
  321. package/utils/saveAs.js +1 -4
  322. package/utils/screenfull.js +1 -4
  323. package/utils/scrollIntoViewIfNeeded.js +2 -3
  324. package/utils/scrollTo.js +2 -3
  325. package/utils/setDarkTheme.js +2 -3
  326. package/utils/setDir.js +2 -3
  327. package/utils/setPrimaryColor.js +2 -3
  328. package/utils/setTheme.js +2 -3
  329. package/utils/string.js +2 -3
  330. package/utils/style.js +2 -3
  331. package/utils/tinycolor.js +2 -3
  332. package/utils/toArray.js +2 -3
  333. package/utils/tree.js +1 -4
  334. package/utils/tunnel.js +2 -3
  335. package/utils/uuid.js +1 -4
  336. package/utils/validate.d.ts +2 -2
  337. package/utils/validate.js +1 -4
  338. package/utils/warning.js +2 -3
  339. package/version/index.js +11 -12
  340. package/utils/callOrReturn.d.ts +0 -1
  341. package/utils/callOrReturn.js +0 -6
  342. package/utils/include.d.ts +0 -3
  343. package/utils/include.js +0 -13
  344. package/utils/tween.d.ts +0 -1
  345. package/utils/tween.js +0 -6
@@ -1,8 +1,8 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { isExist as e, isFunction as t } from "@unicom-cloud/utils/is";
4
4
  import n from "lodash/throttle";
5
- //#region components/common/utils/intersectionObserver.ts
5
+ // components/common/utils/intersectionObserver.ts
6
6
  function r(r, i) {
7
7
  let a = [].concat(r).filter(e);
8
8
  if (!(a.length && t(i))) return () => {};
@@ -17,7 +17,6 @@ function r(r, i) {
17
17
  }), s.disconnect(), o.cancel();
18
18
  };
19
19
  }
20
- //#endregion
21
20
  export { r as default, r as intersectionObserver };
22
21
  /* 欲穷千里目,更上一层楼 */
23
22
  /* 独立思考,明辨是非 */
package/utils/is.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { get as e } from "./lodash.js";
4
4
  import t, { isValidElement as n } from "react";
@@ -6,7 +6,7 @@ import { isEmptyArray as r, isEmptyString as i, isFalse as a, isFunction as o, i
6
6
  import { isBrowser as l } from "@unicom-cloud/utils/constants/platform";
7
7
  import u from "react-dom";
8
8
  import { isFragment as d } from "react-is";
9
- //#region components/common/utils/is.ts
9
+ // components/common/utils/is.ts
10
10
  var f = !l, [p, m] = [18, 19].map((e, n, r) => {
11
11
  let i = t.version || u.version || "", a = /\d+/.exec(i)?.[0] ?? "";
12
12
  return e <= parseFloat(a);
@@ -36,7 +36,6 @@ function b(e) {
36
36
  function x(e) {
37
37
  return t.Children.count(e) === 0;
38
38
  }
39
- //#endregion
40
39
  export { b as isCompositeTypeElement, x as isEmptyChildren, h as isEmptyReactNode, p as isReact18, m as isReact19, v as isReactClassComponent, _ as isReactComponent, g as isReactComponentAndNotFragment, y as isReactFunctionalComponent, f as isServerRendering };
41
40
  /* 欲穷千里目,更上一层楼 */
42
41
  /* 独立思考,明辨是非 */
@@ -1,10 +1,9 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import * as e from "@unicom-cloud/utils/constants/keyboardCode";
4
4
  export * from "@unicom-cloud/utils/constants/keyboardCode";
5
- //#region components/common/utils/keyboardCode.ts
5
+ // components/common/utils/keyboardCode.ts
6
6
  var t = e;
7
- //#endregion
8
7
  export { t as default, e as keyboardCode };
9
8
  /* 欲穷千里目,更上一层楼 */
10
9
  /* 独立思考,明辨是非 */
package/utils/lodash.d.ts CHANGED
@@ -65,6 +65,7 @@ import toPath from 'lodash/toPath';
65
65
  import truncate from 'lodash/truncate';
66
66
  import union from 'lodash/union';
67
67
  import uniq from 'lodash/uniq';
68
+ import uniqBy from 'lodash/uniqBy';
68
69
  import uniqueId from 'lodash/uniqueId';
69
70
  import unset from 'lodash/unset';
70
71
  import update from 'lodash/update';
@@ -74,4 +75,4 @@ import upperFirst from 'lodash/upperFirst';
74
75
  import without from 'lodash/without';
75
76
  import xor from 'lodash/xor';
76
77
  import zip from 'lodash/zip';
77
- export { assign, assignIn, at, camelCase, capitalize, castArray, chain, chunk, clamp, clone, cloneDeep, cloneDeepWith, cloneWith, compact, curry, debounce, defaults, defaultsDeep, defaultTo, difference, escape, extend, findKey, first, flatten, flattenDeep, flow, get, groupBy, has, hasIn, intersection, invert, invertBy, invoke, kebabCase, last, mapKeys, mapValues, mean, memoize, merge, mergeWith, move, noop, omit, omitBy, orderBy, partition, pick, pickBy, pullAll, result, sample, sampleSize, set, setWith, shuffle, snakeCase, sortBy, startCase, swap, throttle, toPath, toSwapped, truncate, union, uniq, uniqueId, unset, update, updateWith, upperCase, upperFirst, without, xor, zip, };
78
+ export { assign, assignIn, at, camelCase, capitalize, castArray, chain, chunk, clamp, clone, cloneDeep, cloneDeepWith, cloneWith, compact, curry, debounce, defaults, defaultsDeep, defaultTo, difference, escape, extend, findKey, first, flatten, flattenDeep, flow, get, groupBy, has, hasIn, intersection, invert, invertBy, invoke, kebabCase, last, mapKeys, mapValues, mean, memoize, merge, mergeWith, move, noop, omit, omitBy, orderBy, partition, pick, pickBy, pullAll, result, sample, sampleSize, set, setWith, shuffle, snakeCase, sortBy, startCase, swap, throttle, toPath, toSwapped, truncate, union, uniq, uniqBy, uniqueId, unset, update, updateWith, upperCase, upperFirst, without, xor, zip, };
package/utils/lodash.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "lodash/castArray";
4
4
  import t from "lodash/debounce";
@@ -67,15 +67,16 @@ import ue from "lodash/toPath";
67
67
  import de from "lodash/truncate";
68
68
  import fe from "lodash/union";
69
69
  import pe from "lodash/uniq";
70
- import me from "lodash/uniqueId";
71
- import he from "lodash/unset";
72
- import ge from "lodash/update";
73
- import _e from "lodash/updateWith";
74
- import ve from "lodash/upperCase";
75
- import ye from "lodash/upperFirst";
76
- import be from "lodash/without";
77
- import xe from "lodash/xor";
78
- import Se from "lodash/zip";
79
- export { a as assign, o as assignIn, s as at, c as camelCase, l as capitalize, e as castArray, u as chain, d as chunk, f as clamp, p as clone, m as cloneDeep, h as cloneDeepWith, g as cloneWith, _ as compact, v as curry, t as debounce, x as defaultTo, y as defaults, b as defaultsDeep, S as difference, C as escape, w as extend, T as findKey, E as first, D as flatten, O as flattenDeep, k as flow, A as get, j as groupBy, M as has, N as hasIn, P as intersection, F as invert, I as invertBy, L as invoke, R as kebabCase, z as last, B as mapKeys, V as mapValues, H as mean, U as memoize, W as merge, G as mergeWith, n as move, K as noop, q as omit, J as omitBy, Y as orderBy, X as partition, Z as pick, Q as pickBy, $ as pullAll, ee as result, te as sample, ne as sampleSize, re as set, ie as setWith, ae as shuffle, oe as snakeCase, se as sortBy, ce as startCase, r as swap, le as throttle, ue as toPath, i as toSwapped, de as truncate, fe as union, pe as uniq, me as uniqueId, he as unset, ge as update, _e as updateWith, ve as upperCase, ye as upperFirst, be as without, xe as xor, Se as zip };
70
+ import me from "lodash/uniqBy";
71
+ import he from "lodash/uniqueId";
72
+ import ge from "lodash/unset";
73
+ import _e from "lodash/update";
74
+ import ve from "lodash/updateWith";
75
+ import ye from "lodash/upperCase";
76
+ import be from "lodash/upperFirst";
77
+ import xe from "lodash/without";
78
+ import Se from "lodash/xor";
79
+ import Ce from "lodash/zip";
80
+ export { a as assign, o as assignIn, s as at, c as camelCase, l as capitalize, e as castArray, u as chain, d as chunk, f as clamp, p as clone, m as cloneDeep, h as cloneDeepWith, g as cloneWith, _ as compact, v as curry, t as debounce, x as defaultTo, y as defaults, b as defaultsDeep, S as difference, C as escape, w as extend, T as findKey, E as first, D as flatten, O as flattenDeep, k as flow, A as get, j as groupBy, M as has, N as hasIn, P as intersection, F as invert, I as invertBy, L as invoke, R as kebabCase, z as last, B as mapKeys, V as mapValues, H as mean, U as memoize, W as merge, G as mergeWith, n as move, K as noop, q as omit, J as omitBy, Y as orderBy, X as partition, Z as pick, Q as pickBy, $ as pullAll, ee as result, te as sample, ne as sampleSize, re as set, ie as setWith, ae as shuffle, oe as snakeCase, se as sortBy, ce as startCase, r as swap, le as throttle, ue as toPath, i as toSwapped, de as truncate, fe as union, pe as uniq, me as uniqBy, he as uniqueId, ge as unset, _e as update, ve as updateWith, ye as upperCase, be as upperFirst, xe as without, Se as xor, Ce as zip };
80
81
  /* 欲穷千里目,更上一层楼 */
81
82
  /* 独立思考,明辨是非 */
package/utils/math.js CHANGED
@@ -1,6 +1,3 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
2
- /* 世界因你而美丽 */
3
- import e, { div as t, minus as n, plus as r, times as i, default as a } from "@unicom-cloud/utils/math";
4
- export { a as default, t as div, e as math, n as minus, r as plus, i as times };
1
+ export { default, div, default as math, minus, plus, times } from "@unicom-cloud/utils/math";
5
2
  /* 欲穷千里目,更上一层楼 */
6
3
  /* 独立思考,明辨是非 */
@@ -1,10 +1,10 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { isObject as e, isTrue as t } from "@unicom-cloud/utils/is";
4
4
  import n from "lodash/defaults";
5
5
  import r from "lodash/defaultsDeep";
6
6
  import i from "lodash/last";
7
- //#region components/common/utils/mergeProps.ts
7
+ // components/common/utils/mergeProps.ts
8
8
  function a(...a) {
9
9
  a = [].concat(...a);
10
10
  let o = n;
@@ -14,7 +14,6 @@ function a(...a) {
14
14
  }
15
15
  return a = a.filter(e), o({}, ...a);
16
16
  }
17
- //#endregion
18
17
  export { a as default, a as mergeProps };
19
18
  /* 欲穷千里目,更上一层楼 */
20
19
  /* 独立思考,明辨是非 */
@@ -1,9 +1,9 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { get as e, has as t } from "./lodash.js";
4
4
  import n from "react";
5
5
  import { isPlainObject as r, isStringOrNumber as i } from "@unicom-cloud/utils/is";
6
- //#region components/common/utils/mergedToString.ts
6
+ // components/common/utils/mergedToString.ts
7
7
  var a = (e) => i(e);
8
8
  function o(i) {
9
9
  let s = [""];
@@ -12,7 +12,6 @@ function o(i) {
12
12
  a(n) && a(i) ? s[r] = `${i}${n}` : t(n, ["props", "children"]) && s.push(o(e(n, ["props", "children"])));
13
13
  }), s.join("");
14
14
  }
15
- //#endregion
16
15
  export { o as default, o as mergedToString };
17
16
  /* 欲穷千里目,更上一层楼 */
18
17
  /* 独立思考,明辨是非 */
@@ -1,8 +1,8 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { castArray as e, get as t, has as n, set as r, unset as i } from "./lodash.js";
4
4
  import { isObjectAndNotEmpty as a } from "@unicom-cloud/utils/is";
5
- //#region components/common/utils/migrateLegacyProps.ts
5
+ // components/common/utils/migrateLegacyProps.ts
6
6
  function o(o, s) {
7
7
  return a(o) && a(s) && Object.entries(s).forEach(([a, s], c, l) => {
8
8
  let u = n(o, [a]);
@@ -13,7 +13,6 @@ function o(o, s) {
13
13
  });
14
14
  }), o;
15
15
  }
16
- //#endregion
17
16
  export { o as default, o as migrateLegacyProps };
18
17
  /* 欲穷千里目,更上一层楼 */
19
18
  /* 独立思考,明辨是非 */
@@ -1,8 +1,8 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { isExist as e, isFunction as t } from "@unicom-cloud/utils/is";
4
4
  import n from "lodash/throttle";
5
- //#region components/common/utils/mutationObserver.ts
5
+ // components/common/utils/mutationObserver.ts
6
6
  function r(r, i) {
7
7
  let a = [].concat(r).filter(e);
8
8
  if (!(a.length && t(i))) return () => {};
@@ -19,7 +19,6 @@ function r(r, i) {
19
19
  s.disconnect(), o.cancel();
20
20
  };
21
21
  }
22
- //#endregion
23
22
  export { r as default, r as mutationObserver };
24
23
  /* 欲穷千里目,更上一层楼 */
25
24
  /* 独立思考,明辨是非 */
package/utils/names.js CHANGED
@@ -1,105 +1,125 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
- //#region components/common/utils/names.ts
3
+ // components/common/utils/names.ts
4
4
  var e = {
5
5
  zh: "边框流光",
6
6
  en: "BorderBeam",
7
7
  displayName: "BorderBeam",
8
+ descriptions: "边框流光,容器边框持续流动的装饰性高亮效果。",
8
9
  id: "9a264e00-3fbe-4973-b8cb-ad8b761bd0f5"
9
10
  }, t = {
10
11
  zh: "等待开发",
11
12
  en: "Development",
12
13
  displayName: "Development",
14
+ descriptions: "占位组件,表示该功能等待开发。",
13
15
  id: "d125fa3c-84c3-4dfd-89ec-f17150165d9b"
14
16
  }, n = {
15
17
  zh: "空状态",
16
18
  en: "Empty",
17
19
  displayName: "Empty",
20
+ descriptions: "空状态组件,表示当前场景没有对应数据。",
18
21
  id: "8348cf3a-655a-4c87-b7ab-e48b34340d6d"
19
22
  }, r = {
20
23
  zh: "弹性布局",
21
24
  en: "Flex",
22
25
  displayName: "Flex",
26
+ descriptions: "弹性布局组件,方便设置元素间距及水平/垂直对齐方式。",
23
27
  id: "142fe0f1-6d45-4335-830e-89284c93b0f8"
24
28
  }, i = {
25
29
  zh: "弹性布局.垂直",
26
30
  en: "Flex.Vertical",
27
31
  displayName: "FlexVertical",
32
+ descriptions: "垂直方向的弹性布局容器,子元素纵向排列。",
28
33
  id: "0ab4a84d-90a9-4c05-938f-f57e77c9931f"
29
34
  }, a = {
30
35
  zh: "栅格",
31
36
  en: "Grid",
32
37
  displayName: "Grid",
38
+ descriptions: "栅格组件,通过行列划分保证页面一致性与逻辑性。",
33
39
  id: "c25e21c7-4bf2-4aea-a313-da4c595280b6"
34
40
  }, o = {
35
41
  zh: "栅格.项",
36
42
  en: "Grid.Item",
37
43
  displayName: "GridItem",
44
+ descriptions: "栅格系统的单个子项组件,承载具体内容。",
38
45
  id: "2e0c9aa2-0bfa-48fd-ab8f-cc8047330d0b"
39
46
  }, s = {
40
47
  zh: "朗读",
41
48
  en: "SpeechSynthesis",
42
49
  displayName: "SpeechSynthesis",
50
+ descriptions: "朗读组件,将文字通过语音合成朗读出来。",
43
51
  id: "cf39c90b-e3c8-4236-bb36-c82364f7ddf1"
44
52
  }, c = {
45
53
  zh: "文件图标",
46
54
  en: "IconFile",
47
55
  displayName: "IconFile",
56
+ descriptions: "文件图标,根据文件类型展示对应图标。",
48
57
  id: "51ce6209-3c79-475b-80ce-c4c113972c39"
49
58
  }, l = {
50
59
  zh: "进度条",
51
60
  en: "Progress",
52
61
  displayName: "Progress",
62
+ descriptions: "进度条组件,展示任务执行状态。",
53
63
  id: "101d0fec-3fad-4051-9b00-dcecdf09c38a"
54
64
  }, u = {
55
65
  zh: "边界尺寸变化",
56
66
  en: "ResizeObserver",
57
67
  displayName: "ResizeObserver",
68
+ descriptions: "边界尺寸变化监听,用于响应元素尺寸改变。",
58
69
  id: "50b9d18f-322e-4d0d-840b-03d8d4e92a03"
59
70
  }, d = {
60
71
  zh: "间距",
61
72
  en: "Space",
62
73
  displayName: "Space",
74
+ descriptions: "基于 Flex 封装的间距组件,内置统一间距、子元素包裹层及 separator 分隔符,适合快速排列简单元素。",
63
75
  id: "36fad944-cfb8-4da6-a72a-58c48a19fc3f"
64
76
  }, f = {
65
77
  zh: "间距.垂直",
66
78
  en: "SpaceVertical",
67
79
  displayName: "SpaceVertical",
80
+ descriptions: "垂直方向的间距组件,子元素纵向排列并保持统一间距。",
68
81
  id: "06dd5c47-65fe-4d31-afe5-19212a608a9d"
69
82
  }, p = {
70
83
  zh: "加载时显示后备方案",
71
84
  en: "SuspenseFallbackTest",
72
85
  displayName: "SuspenseFallbackTest",
86
+ descriptions: "Suspense 加载时显示后备内容。",
73
87
  id: "99d2b67d-a958-459f-8e70-0e0f327ecc6d"
74
88
  }, m = {
75
89
  zh: "时间",
76
90
  en: "Timer",
77
91
  displayName: "Timer",
92
+ descriptions: "时间工具组件,用于计时与延迟调度。",
78
93
  id: "e533969f-752b-4fc4-95aa-a58e87781916"
79
94
  }, h = {
80
95
  zh: "动画过渡",
81
96
  en: "Transition",
82
97
  displayName: "Transition",
98
+ descriptions: "动画过渡组件,管理元素和元素组的过渡效果。",
83
99
  id: "20512ad9-c54f-4352-8bdb-1d3d753fe993"
84
100
  }, g = {
85
101
  zh: "动画过渡 CSS",
86
102
  en: "Transition.CSS",
87
103
  displayName: "TransitionCSS",
104
+ descriptions: "基于 CSS transition 的轻量动画过渡封装。",
88
105
  id: "7e73317b-fe40-4a36-9070-27607e0b6de7"
89
106
  }, _ = {
90
107
  zh: "动画过渡 Style",
91
108
  en: "Transition.Style",
92
109
  displayName: "TransitionStyle",
110
+ descriptions: "基于 Style 的动画过渡。",
93
111
  id: "522e3883-c266-4ba0-9ad1-34c1d58e9098"
94
112
  }, v = {
95
113
  zh: "动画过渡群组",
96
114
  en: "Transition.Group",
97
115
  displayName: "TransitionGroup",
116
+ descriptions: "元素组的动画过渡,子元素进出列表时自动应用过渡。",
98
117
  id: "899e40ed-fca7-4982-829d-e7cf5383413d"
99
118
  }, y = {
100
119
  zh: "动画",
101
120
  en: "Animation",
102
121
  displayName: "Animation",
122
+ descriptions: "预设动画效果集合,封装常用的入场、出场与循环动效。",
103
123
  id: "f56f66f0-19b2-437f-bb89-8c00cd656961"
104
124
  }, b = {
105
125
  BorderBeam: e,
@@ -124,7 +144,6 @@ var e = {
124
144
  Animation: y
125
145
  };
126
146
  Object.assign(b, {}), Object.freeze(b);
127
- //#endregion
128
147
  export { y as COMPONENT_INFO_ANIMATION, e as COMPONENT_INFO_BORDER_BEAM, t as COMPONENT_INFO_DEVELOPMENT, n as COMPONENT_INFO_EMPTY, r as COMPONENT_INFO_FLEX, i as COMPONENT_INFO_FLEX_VERTICAL, a as COMPONENT_INFO_GRID, o as COMPONENT_INFO_GRID_ITEM, c as COMPONENT_INFO_ICON_FILE, l as COMPONENT_INFO_PROGRESS, u as COMPONENT_INFO_RESIZE_OBSERVER, d as COMPONENT_INFO_SPACE, f as COMPONENT_INFO_SPACE_VERTICAL, s as COMPONENT_INFO_SPEECH_SYNTHESIS, p as COMPONENT_INFO_SUSPENSE_FALLBACK_TEST, m as COMPONENT_INFO_TIMER, h as COMPONENT_INFO_TRANSITION, g as COMPONENT_INFO_TRANSITION_CSS, v as COMPONENT_INFO_TRANSITION_GROUP, _ as COMPONENT_INFO_TRANSITION_STYLE, b as COMPONENT_NAMES, b as default };
129
148
  /* 欲穷千里目,更上一层楼 */
130
149
  /* 独立思考,明辨是非 */
package/utils/object.js CHANGED
@@ -1,12 +1,11 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { __exportAll as e, __reExport as t } from "../.virtual/_rolldown/runtime.js";
4
4
  export * from "@unicom-cloud/utils/object";
5
- //#region components/common/utils/object.ts
5
+ // components/common/utils/object.ts
6
6
  var n = /* @__PURE__ */ e({});
7
7
  import * as r from "@unicom-cloud/utils/object";
8
8
  t(n, r);
9
- //#endregion
10
9
  export { n as object_exports };
11
10
  /* 欲穷千里目,更上一层楼 */
12
11
  /* 独立思考,明辨是非 */
package/utils/omit.js CHANGED
@@ -1,9 +1,8 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { omit as e } from "./lodash.js";
4
- //#region components/common/utils/omit.ts
4
+ // components/common/utils/omit.ts
5
5
  var t = e;
6
- //#endregion
7
6
  export { t as default, e as omit };
8
7
  /* 欲穷千里目,更上一层楼 */
9
8
  /* 独立思考,明辨是非 */
package/utils/pad.js CHANGED
@@ -1,6 +1,6 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
- //#region components/common/utils/pad.ts
3
+ // components/common/utils/pad.ts
4
4
  function e(t, n, r = " ") {
5
5
  let i = String(t);
6
6
  if (!n) return i;
@@ -13,7 +13,6 @@ function t(e, n, r = " ") {
13
13
  let a = i.length < n ? `${i}${r}` : i;
14
14
  return a.length < n ? t(a, n, r) : a;
15
15
  }
16
- //#endregion
17
16
  export { t as padEnd, e as padStart };
18
17
  /* 欲穷千里目,更上一层楼 */
19
18
  /* 独立思考,明辨是非 */
package/utils/pick.js CHANGED
@@ -1,7 +1,7 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { pick as e, pickBy as t } from "./lodash.js";
4
- //#region components/common/utils/pick.ts
4
+ // components/common/utils/pick.ts
5
5
  function n(e, n) {
6
6
  return t(e ?? {}, (e, t) => n.some((e, n, r) => t.startsWith(e)));
7
7
  }
@@ -9,7 +9,6 @@ function r(e) {
9
9
  return n(e, ["data-", "aria-"]);
10
10
  }
11
11
  var i = e;
12
- //#endregion
13
12
  export { i as default, e as pick, n as pickAttributesByPrefixes, r as pickDataAriaAttributes };
14
13
  /* 欲穷千里目,更上一层楼 */
15
14
  /* 独立思考,明辨是非 */
package/utils/pinyin.js CHANGED
@@ -1,7 +1,4 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
2
- /* 世界因你而美丽 */
3
- import e from "@unicom-cloud/utils/pinyin";
1
+ export { default } from "@unicom-cloud/utils/pinyin";
4
2
  export * from "@unicom-cloud/utils/pinyin";
5
- export { e as default };
6
3
  /* 欲穷千里目,更上一层楼 */
7
4
  /* 独立思考,明辨是非 */
@@ -1,9 +1,8 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { setCreateRoot as e } from "./createRoot.js";
4
4
  import { createRoot as t } from "react-dom/client";
5
- //#region components/common/utils/react19Adapter.ts
5
+ // components/common/utils/react19Adapter.ts
6
6
  e(t);
7
- //#endregion
8
7
  /* 欲穷千里目,更上一层楼 */
9
8
  /* 独立思考,明辨是非 */
@@ -1,8 +1,8 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e, { Fragment as t, isValidElement as n } from "react";
4
4
  import { isFunction as r } from "@unicom-cloud/utils/is";
5
- //#region components/common/utils/reactNode.ts
5
+ // components/common/utils/reactNode.ts
6
6
  function i(e) {
7
7
  return e && n(e) && e.type === t;
8
8
  }
@@ -10,7 +10,6 @@ var a = (t, i, a) => n(t) ? e.cloneElement(t, r(a) ? a(t.props || {}) : a) : i;
10
10
  function o(e, t) {
11
11
  return a(e, e, t);
12
12
  }
13
- //#endregion
14
13
  export { o as cloneElement, i as isFragment, a as replaceElement };
15
14
  /* 欲穷千里目,更上一层楼 */
16
15
  /* 独立思考,明辨是非 */
package/utils/ref.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { get as e } from "./lodash.js";
4
4
  import t from "../hooks/use-memo/index.js";
@@ -6,7 +6,7 @@ import { isReact19 as n, isReactComponentAndNotFragment as r } from "./is.js";
6
6
  import { isValidElement as i } from "react";
7
7
  import { isExist as a, isFunction as o, isObjectLike as s } from "@unicom-cloud/utils/is";
8
8
  import { ForwardRef as c, isMemo as l } from "react-is";
9
- //#region components/common/utils/ref.ts
9
+ // components/common/utils/ref.ts
10
10
  var u = (e, t) => {
11
11
  o(e) ? e(t) : s(e) && "current" in e && (e.current = t);
12
12
  }, d = (...e) => {
@@ -28,7 +28,6 @@ function h(t) {
28
28
  return i(t) ? n ? e(t, ["props", "ref"]) : e(t, ["ref"]) : null;
29
29
  }
30
30
  var g = h;
31
- //#endregion
32
31
  export { d as composeRef, u as fillRef, g as getNodeRef, h as getReactElementRef, m as supportNodeRef, p as supportRef, f as useComposeRef };
33
32
  /* 欲穷千里目,更上一层楼 */
34
33
  /* 独立思考,明辨是非 */
@@ -1,9 +1,9 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { noop as e } from "./lodash.js";
4
4
  import { isElement as t, isFunction as n } from "@unicom-cloud/utils/is";
5
5
  import r from "lodash/throttle";
6
- //#region components/common/utils/resizeObserver.ts
6
+ // components/common/utils/resizeObserver.ts
7
7
  function i(i, a) {
8
8
  let o = [].concat(i).filter((e, n, r) => t(e, !0));
9
9
  if (!(o.length && n(a))) return e;
@@ -27,7 +27,6 @@ function i(i, a) {
27
27
  d();
28
28
  };
29
29
  }
30
- //#endregion
31
30
  export { i as default, i as resizeObserver };
32
31
  /* 欲穷千里目,更上一层楼 */
33
32
  /* 独立思考,明辨是非 */
package/utils/saveAs.js CHANGED
@@ -1,6 +1,3 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
2
- /* 世界因你而美丽 */
3
- import e, { saveAs as t } from "@unicom-cloud/utils/file/saveAs";
4
- export { e as default, t as saveAs };
1
+ export { default, saveAs } from "@unicom-cloud/utils/file/saveAs";
5
2
  /* 欲穷千里目,更上一层楼 */
6
3
  /* 独立思考,明辨是非 */
@@ -1,6 +1,3 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
2
- /* 世界因你而美丽 */
3
- import e, { default as t } from "@unicom-cloud/utils/screenfull";
4
- export { t as default, e as screenfull };
1
+ export { default, default as screenfull } from "@unicom-cloud/utils/screenfull";
5
2
  /* 欲穷千里目,更上一层楼 */
6
3
  /* 独立思考,明辨是非 */
@@ -1,10 +1,9 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
- //#region components/common/utils/scrollIntoViewIfNeeded.ts
3
+ // components/common/utils/scrollIntoViewIfNeeded.ts
4
4
  function e(e, t) {
5
5
  e.scrollIntoView(t);
6
6
  }
7
- //#endregion
8
7
  export { e as default, e as scrollIntoViewIfNeeded };
9
8
  /* 欲穷千里目,更上一层楼 */
10
9
  /* 独立思考,明辨是非 */
package/utils/scrollTo.js CHANGED
@@ -1,8 +1,8 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "./getScrollParent.js";
4
4
  import { isHTMLElement as t } from "@unicom-cloud/utils/is";
5
- //#region components/common/utils/scrollTo.ts
5
+ // components/common/utils/scrollTo.ts
6
6
  function n(n) {
7
7
  let { selected: r, scrollParent: i, toLeft: a, toRight: o, toTop: s, toBottom: c, scrollToOptions: l } = n, u = i || e(r);
8
8
  if (t(u)) {
@@ -19,7 +19,6 @@ function n(n) {
19
19
  u.scrollTo(n);
20
20
  }
21
21
  }
22
- //#endregion
23
22
  export { n as default };
24
23
  /* 欲穷千里目,更上一层楼 */
25
24
  /* 独立思考,明辨是非 */
@@ -1,10 +1,10 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { CSS_VARIABLE_ELEMENT as e } from "./constants.js";
4
4
  import { document_exports as t } from "./document.js";
5
5
  import { isElement as n, isString as r } from "@unicom-cloud/utils/is";
6
6
  import { UI_PC_THEME_DARK_CLASS_NAME as i } from "@unicom-cloud/utils/constants/ui";
7
- //#region components/common/utils/setDarkTheme.ts
7
+ // components/common/utils/setDarkTheme.ts
8
8
  var a = "dark";
9
9
  function o(e, i) {
10
10
  n(e, !0) && r(i) && (0, t.startViewTransition)(() => {
@@ -28,7 +28,6 @@ function l(e) {
28
28
  mode: "light"
29
29
  });
30
30
  }
31
- //#endregion
32
31
  export { c as default, c as setDarkTheme, l as removeDarkTheme };
33
32
  /* 欲穷千里目,更上一层楼 */
34
33
  /* 独立思考,明辨是非 */
package/utils/setDir.js CHANGED
@@ -1,15 +1,14 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { CSS_VARIABLE_ELEMENT as e } from "./constants.js";
4
4
  import { isPlainObject as t } from "@unicom-cloud/utils/is";
5
5
  import { UI_PC_PREFIX as n } from "@unicom-cloud/utils/constants/ui";
6
- //#region components/common/utils/setDir.ts
6
+ // components/common/utils/setDir.ts
7
7
  function r(r) {
8
8
  if (!t(r)) return;
9
9
  let { prefix: i = n, dir: a = "ltr" } = r, o = e;
10
10
  o.setAttribute("dir", a), o.classList.remove("ltr"), o.classList.remove("rtl"), o.classList.add(a);
11
11
  }
12
- //#endregion
13
12
  export { r as default, r as setDir };
14
13
  /* 欲穷千里目,更上一层楼 */
15
14
  /* 独立思考,明辨是非 */
@@ -1,10 +1,10 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { CSS_VARIABLE_ELEMENT as e } from "./constants.js";
4
4
  import { UI_PC_PREFIX as t } from "@unicom-cloud/utils/constants/ui";
5
5
  import n from "@unicom-cloud/utils/tinycolor";
6
6
  import * as r from "@unicom-cloud/utils/ui-color";
7
- //#region components/common/utils/setPrimaryColor.ts
7
+ // components/common/utils/setPrimaryColor.ts
8
8
  function i(i) {
9
9
  let { color: a, element: o = e, isDark: s = !1, prefix: c = t } = i ?? {}, l = { color: a }, u = s ? r.generateDark(l) : r.generate(l);
10
10
  n(a).equals(r.primary.value) ? d() : u.forEach((e, t, n) => {
@@ -17,7 +17,6 @@ function i(i) {
17
17
  }
18
18
  return d;
19
19
  }
20
- //#endregion
21
20
  export { i as default, i as setPrimaryColor };
22
21
  /* 欲穷千里目,更上一层楼 */
23
22
  /* 独立思考,明辨是非 */
package/utils/setTheme.js CHANGED
@@ -1,10 +1,10 @@
1
- /* 潘启宝 2026-10-13 11:06:24 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { CSS_VARIABLE_ELEMENT as e } from "./constants.js";
4
4
  import { isPlainObject as t } from "@unicom-cloud/utils/is";
5
5
  import { UI_PC_PREFIX as n } from "@unicom-cloud/utils/constants/ui";
6
6
  import r from "@unicom-cloud/utils/tinycolor";
7
- //#region components/common/utils/setTheme.ts
7
+ // components/common/utils/setTheme.ts
8
8
  function i(i) {
9
9
  if (!t(i)) return;
10
10
  let { prefix: a = n, element: o, ...s } = i, c = {
@@ -46,7 +46,6 @@ function i(i) {
46
46
  p ? d.style.setProperty(n.active, r(p).toRgbArrayString()) : d.style.setProperty(n.active, u.lighten(-7).toRgbArrayString());
47
47
  });
48
48
  }
49
- //#endregion
50
49
  export { i as default, i as setTheme };
51
50
  /* 欲穷千里目,更上一层楼 */
52
51
  /* 独立思考,明辨是非 */