@unicom-cloud/ui-common 0.1.22 → 0.1.24

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 (283) hide show
  1. package/.virtual/_rolldown/runtime.js +1 -1
  2. package/.vite/manifest.json +159 -23
  3. package/border-beam/BorderBeam.d.ts +4 -0
  4. package/border-beam/BorderBeam.js +45 -0
  5. package/border-beam/Effect.d.ts +9 -0
  6. package/border-beam/Effect.js +23 -0
  7. package/border-beam/constants.d.ts +2 -0
  8. package/border-beam/constants.js +131 -0
  9. package/border-beam/hooks/useBorderSize.d.ts +7 -0
  10. package/border-beam/hooks/useBorderSize.js +36 -0
  11. package/border-beam/hooks/useChildDom.d.ts +8 -0
  12. package/border-beam/hooks/useChildDom.js +17 -0
  13. package/border-beam/index.d.ts +6 -0
  14. package/border-beam/index.js +9 -0
  15. package/border-beam/interface.d.ts +31 -0
  16. package/border-beam/utils.d.ts +9 -0
  17. package/border-beam/utils.js +22 -0
  18. package/development/Development.js +20 -19
  19. package/development/index.d.ts +3 -1
  20. package/development/index.js +5 -4
  21. package/empty/Empty.js +18 -17
  22. package/empty/index.d.ts +3 -1
  23. package/empty/index.js +5 -4
  24. package/flex/Flex.js +20 -19
  25. package/flex/index.d.ts +1 -0
  26. package/flex/index.js +9 -5
  27. package/flex/interface.d.ts +2 -2
  28. package/flex/utils.js +1 -1
  29. package/higher-order/index.js +1 -1
  30. package/higher-order/with-speech-synthesis/index.d.ts +3 -1
  31. package/higher-order/with-speech-synthesis/index.js +5 -4
  32. package/higher-order/with-speech-synthesis/withSpeechSynthesis.d.ts +0 -3
  33. package/higher-order/with-speech-synthesis/withSpeechSynthesis.js +22 -22
  34. package/hooks/create-deep-compare-effect/index.js +1 -1
  35. package/hooks/create-update-effect/index.js +1 -1
  36. package/hooks/create-use-storage-state/index.js +1 -1
  37. package/hooks/index.js +1 -1
  38. package/hooks/use-async-effect/index.js +1 -1
  39. package/hooks/use-boolean/index.js +1 -1
  40. package/hooks/use-click-away/index.js +1 -1
  41. package/hooks/use-computed-state/index.js +1 -1
  42. package/hooks/use-controllable-value/index.d.ts +2 -0
  43. package/hooks/use-controllable-value/index.js +30 -15
  44. package/hooks/use-cookie-state/index.js +1 -1
  45. package/hooks/use-count-down/index.js +1 -1
  46. package/hooks/use-counter/index.js +1 -1
  47. package/hooks/use-create/index.js +1 -1
  48. package/hooks/use-creation/index.js +1 -1
  49. package/hooks/use-debounce/index.js +1 -1
  50. package/hooks/use-debounce-effect/index.js +1 -1
  51. package/hooks/use-debounce-fn/index.js +1 -1
  52. package/hooks/use-deep-compare-effect/index.js +1 -1
  53. package/hooks/use-deep-compare-layout-effect/index.js +1 -1
  54. package/hooks/use-document-visibility/index.js +1 -1
  55. package/hooks/use-drag/index.js +1 -1
  56. package/hooks/use-drop/index.js +1 -1
  57. package/hooks/use-effect-event/index.js +1 -1
  58. package/hooks/use-event/index.js +1 -1
  59. package/hooks/use-event-emitter/index.js +1 -1
  60. package/hooks/use-event-listener/index.js +1 -1
  61. package/hooks/use-event-target/index.js +1 -1
  62. package/hooks/use-external/index.js +1 -1
  63. package/hooks/use-favicon/index.js +1 -1
  64. package/hooks/use-focus-within/index.js +1 -1
  65. package/hooks/use-force-update/index.js +1 -1
  66. package/hooks/use-fullscreen/index.js +1 -1
  67. package/hooks/use-get-state/index.js +1 -1
  68. package/hooks/use-history-travel/index.js +1 -1
  69. package/hooks/use-hover/index.js +1 -1
  70. package/hooks/use-id/index.js +1 -1
  71. package/hooks/use-in-viewport/index.js +1 -1
  72. package/hooks/use-infinite-scroll/index.js +1 -1
  73. package/hooks/use-intersection-observer/index.js +1 -1
  74. package/hooks/use-intersection-observers/index.js +1 -1
  75. package/hooks/use-interval/index.js +1 -1
  76. package/hooks/use-is-first-render/index.js +1 -1
  77. package/hooks/use-isomorphic-layout-effect/index.js +1 -1
  78. package/hooks/use-key-press/index.js +1 -1
  79. package/hooks/use-keyboard-event/index.js +1 -1
  80. package/hooks/use-latest/index.js +1 -1
  81. package/hooks/use-listen-window-resize/index.js +1 -1
  82. package/hooks/use-local-storage-state/index.js +1 -1
  83. package/hooks/use-lock-fn/index.js +1 -1
  84. package/hooks/use-long-press/index.js +1 -1
  85. package/hooks/use-map/index.js +1 -1
  86. package/hooks/use-media/index.js +1 -1
  87. package/hooks/use-memo/index.js +1 -1
  88. package/hooks/use-memoized-fn/index.js +1 -1
  89. package/hooks/use-merge-props/index.js +1 -1
  90. package/hooks/use-merge-value/index.js +1 -1
  91. package/hooks/use-mobile/index.js +1 -1
  92. package/hooks/use-mount/index.js +1 -1
  93. package/hooks/use-mouse/index.js +1 -1
  94. package/hooks/use-move/index.js +8 -8
  95. package/hooks/use-mutation-observer/index.js +1 -1
  96. package/hooks/use-mutation-observers/index.js +1 -1
  97. package/hooks/use-network/index.js +16 -19
  98. package/hooks/use-online-status/index.js +1 -1
  99. package/hooks/use-overflow-hidden/index.js +1 -1
  100. package/hooks/use-override-ref/index.js +1 -1
  101. package/hooks/use-pagination/index.js +1 -1
  102. package/hooks/use-paste-image/index.d.ts +3 -1
  103. package/hooks/use-paste-image/index.js +16 -13
  104. package/hooks/use-persist-callback/index.js +1 -1
  105. package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
  106. package/hooks/use-previous/index.js +1 -1
  107. package/hooks/use-raf-interval/index.js +1 -1
  108. package/hooks/use-raf-state/index.js +1 -1
  109. package/hooks/use-raf-timeout/index.js +1 -1
  110. package/hooks/use-reactive/index.js +1 -1
  111. package/hooks/use-ref-latest/index.js +1 -1
  112. package/hooks/use-refs/index.js +1 -1
  113. package/hooks/use-request/index.js +1 -1
  114. package/hooks/use-request/src/Fetch.js +1 -1
  115. package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
  116. package/hooks/use-request/src/plugins/useCachePlugin.js +1 -1
  117. package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
  118. package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +1 -1
  119. package/hooks/use-request/src/plugins/usePollingPlugin.js +1 -1
  120. package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
  121. package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
  122. package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
  123. package/hooks/use-request/src/useRequest.js +1 -1
  124. package/hooks/use-request/src/useRequestImplement.js +1 -1
  125. package/hooks/use-request/src/utils/cache.js +1 -1
  126. package/hooks/use-request/src/utils/cachePromise.js +1 -1
  127. package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
  128. package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
  129. package/hooks/use-request/src/utils/isOnline.js +1 -1
  130. package/hooks/use-request/src/utils/limit.js +1 -1
  131. package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
  132. package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
  133. package/hooks/use-reset-state/index.js +1 -1
  134. package/hooks/use-resize-observer/index.js +1 -1
  135. package/hooks/use-resize-observers/index.js +1 -1
  136. package/hooks/use-responsive/index.js +1 -1
  137. package/hooks/use-safe-state/index.js +1 -1
  138. package/hooks/use-scroll/index.js +1 -1
  139. package/hooks/use-selections/index.js +1 -1
  140. package/hooks/use-session-storage-state/index.js +1 -1
  141. package/hooks/use-set/index.js +1 -1
  142. package/hooks/use-set-state/index.js +1 -1
  143. package/hooks/use-size/index.js +1 -1
  144. package/hooks/use-state-callback/index.js +1 -1
  145. package/hooks/use-state-with-promise/index.js +1 -1
  146. package/hooks/use-sync-state/index.js +1 -1
  147. package/hooks/use-text-selection/index.js +1 -1
  148. package/hooks/use-theme/index.js +10 -10
  149. package/hooks/use-throttle/index.js +1 -1
  150. package/hooks/use-throttle-effect/index.js +1 -1
  151. package/hooks/use-throttle-fn/index.js +1 -1
  152. package/hooks/use-timeout/index.js +1 -1
  153. package/hooks/use-title/index.js +1 -1
  154. package/hooks/use-toggle/index.js +1 -1
  155. package/hooks/use-tracked-effect/index.js +1 -1
  156. package/hooks/use-unmount/index.js +1 -1
  157. package/hooks/use-unmounted-ref/index.js +1 -1
  158. package/hooks/use-update/index.js +1 -1
  159. package/hooks/use-update-effect/index.js +1 -1
  160. package/hooks/use-update-layout-effect/index.js +1 -1
  161. package/hooks/use-url-state/index.js +1 -1
  162. package/hooks/use-virtual-list/index.js +1 -1
  163. package/hooks/use-watch/index.js +1 -1
  164. package/hooks/use-web-socket/index.js +29 -29
  165. package/hooks/use-why-did-you-update/index.js +1 -1
  166. package/hooks/use-window-size/index.js +1 -1
  167. package/hooks/utils/createEffectWithTarget.js +1 -1
  168. package/hooks/utils/depsAreSame.js +1 -1
  169. package/hooks/utils/depsEqual.js +1 -1
  170. package/hooks/utils/domTarget.js +1 -1
  171. package/hooks/utils/getDocumentOrShadow.js +1 -1
  172. package/hooks/utils/index.js +1 -1
  173. package/hooks/utils/isAppleDevice.js +1 -1
  174. package/hooks/utils/isBrowser.js +1 -1
  175. package/hooks/utils/isDev.js +1 -1
  176. package/hooks/utils/rect.js +1 -1
  177. package/hooks/utils/useDeepCompareWithTarget.js +1 -1
  178. package/hooks/utils/useEffectWithTarget.js +1 -1
  179. package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
  180. package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
  181. package/icons/file/IconFile.js +16 -15
  182. package/icons/file/index.d.ts +3 -1
  183. package/icons/file/index.js +5 -4
  184. package/index.js +607 -598
  185. package/package.json +1 -1
  186. package/progress/Progress.js +1 -1
  187. package/progress/index.d.ts +2 -0
  188. package/progress/index.js +5 -4
  189. package/resize-observer/Collection.js +1 -1
  190. package/resize-observer/ResizeObserver.js +11 -10
  191. package/resize-observer/SingleObserver.js +1 -1
  192. package/resize-observer/index.d.ts +2 -0
  193. package/resize-observer/index.js +11 -5
  194. package/resize-observer/observerUtil.js +1 -1
  195. package/space/Space.js +19 -18
  196. package/space/index.d.ts +1 -0
  197. package/space/index.js +8 -4
  198. package/style.css +1 -1
  199. package/suspense-fallback-test/SuspenseFallbackTest.js +10 -9
  200. package/suspense-fallback-test/index.d.ts +3 -1
  201. package/suspense-fallback-test/index.js +5 -4
  202. package/test.js +1 -1
  203. package/timer/Timer.js +16 -15
  204. package/timer/index.d.ts +3 -1
  205. package/timer/index.js +5 -4
  206. package/transition/Transition.js +41 -39
  207. package/transition/TransitionCSS.js +28 -27
  208. package/transition/TransitionGroup.js +31 -30
  209. package/transition/TransitionStyle.js +23 -22
  210. package/transition/constants.js +1 -1
  211. package/transition/context.js +1 -1
  212. package/transition/index.d.ts +5 -2
  213. package/transition/index.js +11 -10
  214. package/transition/utils.js +1 -1
  215. package/utils/callOrReturn.js +1 -1
  216. package/utils/callbackOriginRef.js +1 -1
  217. package/utils/caseName.js +1 -1
  218. package/utils/className.js +1 -1
  219. package/utils/constant.js +1 -1
  220. package/utils/copy.js +1 -1
  221. package/utils/date.js +1 -1
  222. package/utils/dayjs.js +1 -1
  223. package/utils/dom.d.ts +7 -2
  224. package/utils/dom.js +30 -17
  225. package/utils/emitter.js +1 -1
  226. package/utils/file.d.ts +1 -0
  227. package/utils/file.js +4 -0
  228. package/utils/fileRead.js +1 -1
  229. package/utils/fileToDataURL.js +1 -1
  230. package/utils/fillNBSP.js +1 -1
  231. package/utils/findRootElement.js +1 -1
  232. package/utils/findScrollParent.js +1 -1
  233. package/utils/getHighlightText.js +1 -1
  234. package/utils/getHotkeyHandler.js +1 -1
  235. package/utils/getScrollBarHeight.js +1 -1
  236. package/utils/getScrollBarSize.js +1 -1
  237. package/utils/getScrollBarWidth.js +1 -1
  238. package/utils/getStringLength.js +1 -1
  239. package/utils/include.js +1 -1
  240. package/utils/index.d.ts +2 -0
  241. package/utils/index.js +320 -310
  242. package/utils/intersectionObserver.js +1 -1
  243. package/utils/is.d.ts +5 -2
  244. package/utils/is.js +27 -19
  245. package/utils/keyboardCode.js +1 -1
  246. package/utils/lodash.js +1 -1
  247. package/utils/math.js +1 -1
  248. package/utils/mergeProps.js +1 -1
  249. package/utils/mergedToString.js +1 -1
  250. package/utils/mutationObserver.js +1 -1
  251. package/utils/names.d.ts +207 -0
  252. package/utils/names.js +110 -0
  253. package/utils/object.js +1 -1
  254. package/utils/omit.js +1 -1
  255. package/utils/pad.js +1 -1
  256. package/utils/pick.js +1 -1
  257. package/utils/pinyin.js +1 -1
  258. package/utils/react19Adapter.js +1 -1
  259. package/utils/reactNode.d.ts +7 -0
  260. package/utils/reactNode.js +14 -0
  261. package/utils/ref.d.ts +2 -2
  262. package/utils/ref.js +1 -1
  263. package/utils/resizeObserver.js +1 -1
  264. package/utils/saveAs.js +1 -1
  265. package/utils/screenfull.js +1 -1
  266. package/utils/scrollIntoViewIfNeeded.js +1 -1
  267. package/utils/setCreateRoot.js +1 -1
  268. package/utils/setDarkTheme.js +1 -1
  269. package/utils/setDir.js +1 -1
  270. package/utils/setPrimaryColor.js +1 -1
  271. package/utils/setTheme.js +1 -1
  272. package/utils/string.js +1 -1
  273. package/utils/style.js +1 -1
  274. package/utils/throttleByRaf.js +1 -1
  275. package/utils/throttleByRaf2.js +1 -1
  276. package/utils/tinycolor.js +1 -1
  277. package/utils/toArray.js +1 -1
  278. package/utils/tree.js +1 -1
  279. package/utils/tween.js +1 -1
  280. package/utils/uuid.js +1 -1
  281. package/utils/validate.js +1 -1
  282. package/utils/warning.js +1 -1
  283. package/version/index.js +8 -8
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  import { isFunction as e } from "./is.js";
3
3
  import t from "lodash/throttle";
4
4
  //#region components/common/utils/intersectionObserver.ts
package/utils/is.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { is32Bit, isAllChinese, isArguments, isArray, isArrayAndNotEmpty, isArrayBuffer, isArrayEmpty, isArrayLike, isArrayLikeObject, isAscii, isAsyncFunction, isBase64, isBigInt, isBlob, isBoolean, isBuffer, isChinese, isColorValue, isDataURI, isDate, isElement, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyValue, isEqual, isEqualWith, isError, isEventTarget, isExist, isFalse, isFile, isFinite, isFullWidth, isFunction, isHalfWidth, isHash, isHexColor, isHSL, isIdentityCard, isIMEI, isInteger, isIP, isIPRange, isJSON, isJSON_String, isJWT, isLength, isMACAddress, isMap, isMatch, isMatchWith, isMD5, isMimeType, isMobilePhone, isMobilePhoneLocales, isNaN, isNative, isNil, isNonNullable, isNull, isNullOrUndefined, isNumber, isNumberOrString, isObject, isObjectLike, isPlainObject, isPort, isPresent, isPrimitive, isPromise, isReadableStream, isRegExp, isRgbColor, isSafeInteger, isSemVer, isSet, isSlug, isSparseArray, isString, isStringAndExist, isStringOrNumber, isStrongPassword, isSymbol, isThenable, isTrue, isTypedArray, isUndefined, isUndefinedOrNull, isURL, isUUID, isVariableWidth, isWeakMap, isWeakSet, isWindow } from '@unicom-cloud/utils/is';
1
+ import { is32Bit, isAllChinese, isArguments, isArray, isArrayAndNotEmpty, isArrayBuffer, isArrayEmpty, isArrayLike, isArrayLikeObject, isAscii, isAsyncFunction, isBase64, isBigInt, isBlob, isBoolean, isBuffer, isChinese, isColorValue, isColorValue_, isDataURI, isDate, isElement, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyValue, isEqual, isEqualWith, isError, isEventTarget, isExist, isFalse, isFile, isFinite, isFullWidth, isFunction, isHSL, isHalfWidth, isHash, isHexColor, isIMEI, isIP, isIPRange, isIdentityCard, isInteger, isJSON, isJSON_String, isJWT, isLength, isMACAddress, isMD5, isMap, isMatch, isMatchWith, isMimeType, isMobilePhone, isMobilePhoneLocales, isNaN, isNative, isNil, isNonNullable, isNull, isNullOrUndefined, isNumber, isNumberOrString, isObject, isObjectLike, isPlainObject, isPort, isPresent, isPrimitive, isPromise, isReadableStream, isRegExp, isRgbColor, isSafeInteger, isSemVer, isSet, isSlug, isSparseArray, isString, isStringAndExist, isStringOrNumber, isStrongPassword, isSymbol, isThenable, isTrue, isTypedArray, isURL, isUUID, isUndefined, isUndefinedOrNull, isVariableWidth, isWeakMap, isWeakSet, isWindow } from '@unicom-cloud/utils/is';
2
2
  import { isDayjs } from 'dayjs';
3
3
  import React from 'react';
4
4
  declare const isServerRendering: boolean;
@@ -9,5 +9,8 @@ export declare function isReactComponent(element?: React.ReactElement): element
9
9
  export declare function isReactClassComponent(element?: React.ReactElement): element is React.ReactElement;
10
10
  export declare function isElementByInstanceof(element?: unknown): element is Element;
11
11
  export declare function isHTMLElement(element?: unknown): element is HTMLElement;
12
+ export declare function isSVGElement(element?: unknown): element is SVGElement;
13
+ export declare function isDOM(node: unknown): node is HTMLElement | SVGElement;
12
14
  export declare function isScrollElement(element?: unknown): element is HTMLElement;
13
- export { is32Bit, isAllChinese, isArguments, isArray, isArrayAndNotEmpty, isArrayBuffer, isArrayEmpty, isArrayLike, isArrayLikeObject, isAscii, isAsyncFunction, isBase64, isBigInt, isBlob, isBoolean, isBuffer, isChinese, isColorValue, isDataURI, isDate, isDayjs, isElement, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyValue, isEqual, isEqualWith, isError, isEventTarget, isExist, isFalse, isFile, isFinite, isFullWidth, isFunction, isHalfWidth, isHash, isHexColor, isHSL, isIdentityCard, isIMEI, isInteger, isIP, isIPRange, isJSON, isJSON_String, isJWT, isLength, isMACAddress, isMap, isMatch, isMatchWith, isMD5, isMimeType, isMobilePhone, isMobilePhoneLocales, isNaN, isNative, isNil, isNonNullable, isNull, isNullOrUndefined, isNumber, isNumberOrString, isObject, isObjectLike, isPlainObject, isPort, isPresent, isPrimitive, isPromise, isReact18, isReact19, isReadableStream, isRegExp, isRgbColor, isSafeInteger, isSemVer, isServerRendering, isSet, isSlug, isSparseArray, isString, isStringAndExist, isStringOrNumber, isStrongPassword, isSymbol, isThenable, isTrue, isTypedArray, isUndefined, isUndefinedOrNull, isURL, isUUID, isVariableWidth, isWeakMap, isWeakSet, isWindow, };
15
+ export * from '@unicom-cloud/utils/is';
16
+ export { is32Bit, isAllChinese, isArguments, isArray, isArrayAndNotEmpty, isArrayBuffer, isArrayEmpty, isArrayLike, isArrayLikeObject, isAscii, isAsyncFunction, isBase64, isBigInt, isBlob, isBoolean, isBuffer, isChinese, isColorValue, isColorValue_, isDataURI, isDate, isDayjs, isElement, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyValue, isEqual, isEqualWith, isError, isEventTarget, isExist, isFalse, isFile, isFinite, isFullWidth, isFunction, isHSL, isHalfWidth, isHash, isHexColor, isIMEI, isIP, isIPRange, isIdentityCard, isInteger, isJSON, isJSON_String, isJWT, isLength, isMACAddress, isMD5, isMap, isMatch, isMatchWith, isMimeType, isMobilePhone, isMobilePhoneLocales, isNaN, isNative, isNil, isNonNullable, isNull, isNullOrUndefined, isNumber, isNumberOrString, isObject, isObjectLike, isPlainObject, isPort, isPresent, isPrimitive, isPromise, isReact18, isReact19, isReadableStream, isRegExp, isRgbColor, isSafeInteger, isSemVer, isServerRendering, isSet, isSlug, isSparseArray, isString, isStringAndExist, isStringOrNumber, isStrongPassword, isSymbol, isThenable, isTrue, isTypedArray, isURL, isUUID, isUndefined, isUndefinedOrNull, isVariableWidth, isWeakMap, isWeakSet, isWindow, };
package/utils/is.js CHANGED
@@ -1,35 +1,43 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
+ import "../.virtual/_rolldown/runtime.js";
2
3
  import e, { isValidElement as t } from "react";
3
4
  import { isBrowser as n } from "@unicom-cloud/utils/constant/platform";
4
- import { is32Bit as r, isAllChinese as i, isArguments as a, isArray as o, isArrayAndNotEmpty as ee, isArrayBuffer as te, isArrayEmpty as ne, isArrayLike as re, isArrayLikeObject as ie, isAscii as ae, isAsyncFunction as s, isBase64 as c, isBigInt as l, isBlob as u, isBoolean as d, isBuffer as f, isChinese as p, isColorValue as m, isDataURI as h, isDate as g, isElement as _, isEmail as v, isEmpty as y, isEmptyArray as b, isEmptyObject as x, isEmptyValue as S, isEqual as C, isEqualWith as w, isError as T, isEventTarget as E, isExist as D, isFalse as O, isFile as k, isFinite as A, isFullWidth as j, isFunction as M, isHSL as N, isHalfWidth as P, isHash as F, isHexColor as I, isIMEI as L, isIP as R, isIPRange as z, isIdentityCard as B, isInteger as V, isJSON as H, isJSON_String as U, isJWT as W, isLength as G, isMACAddress as K, isMD5 as q, isMap as J, isMatch as oe, isMatchWith as se, isMimeType as ce, isMobilePhone as le, isMobilePhoneLocales as ue, isNaN as de, isNative as fe, isNil as pe, isNonNullable as me, isNull as he, isNullOrUndefined as Y, isNumber as ge, isNumberOrString as _e, isObject as ve, isObjectLike as ye, isPlainObject as be, isPort as xe, isPresent as Se, isPrimitive as Ce, isPromise as we, isReadableStream as Te, isRegExp as Ee, isRgbColor as De, isSafeInteger as Oe, isSemVer as ke, isSet as Ae, isSlug as je, isSparseArray as Me, isString as X, isStringAndExist as Ne, isStringOrNumber as Pe, isStrongPassword as Fe, isSymbol as Ie, isThenable as Le, isTrue as Re, isTypedArray as ze, isURL as Be, isUUID as Ve, isUndefined as He, isUndefinedOrNull as Ue, isVariableWidth as We, isWeakMap as Ge, isWeakSet as Ke, isWindow as qe } from "@unicom-cloud/utils/is";
5
- import { isDayjs as Je } from "dayjs";
6
- import Ye from "react-dom";
7
- import { isFragment as Xe } from "react-is";
5
+ import { is32Bit as r, isAllChinese as i, isArguments as a, isArray as o, isArrayAndNotEmpty as ee, isArrayBuffer as te, isArrayEmpty as ne, isArrayLike as re, isArrayLikeObject as ie, isAscii as ae, isAsyncFunction as oe, isBase64 as s, isBigInt as c, isBlob as l, isBoolean as u, isBuffer as d, isChinese as f, isColorValue as p, isColorValue_ as m, isDataURI as h, isDate as g, isElement as _, isEmail as v, isEmpty as y, isEmptyArray as b, isEmptyObject as x, isEmptyValue as S, isEqual as C, isEqualWith as w, isError as T, isEventTarget as E, isExist as D, isFalse as O, isFile as k, isFinite as A, isFullWidth as j, isFunction as M, isHSL as N, isHalfWidth as P, isHash as F, isHexColor as I, isIMEI as L, isIP as R, isIPRange as z, isIdentityCard as B, isInteger as V, isJSON as H, isJSON_String as U, isJWT as W, isLength as G, isMACAddress as K, isMD5 as q, isMap as se, isMatch as ce, isMatchWith as le, isMimeType as ue, isMobilePhone as de, isMobilePhoneLocales as fe, isNaN as pe, isNative as me, isNil as he, isNonNullable as ge, isNull as _e, isNullOrUndefined as J, isNumber as ve, isNumberOrString as ye, isObject as be, isObjectLike as xe, isPlainObject as Se, isPort as Ce, isPresent as we, isPrimitive as Te, isPromise as Ee, isReadableStream as De, isRegExp as Oe, isRgbColor as ke, isSafeInteger as Ae, isSemVer as je, isSet as Me, isSlug as Ne, isSparseArray as Pe, isString as Y, isStringAndExist as Fe, isStringOrNumber as Ie, isStrongPassword as Le, isSymbol as Re, isThenable as ze, isTrue as Be, isTypedArray as Ve, isURL as He, isUUID as Ue, isUndefined as We, isUndefinedOrNull as Ge, isVariableWidth as Ke, isWeakMap as qe, isWeakSet as Je, isWindow as Ye } from "@unicom-cloud/utils/is";
6
+ import { isDayjs as Xe } from "dayjs";
7
+ import Ze from "react-dom";
8
+ import { isFragment as X } from "react-is";
9
+ export * from "@unicom-cloud/utils/is";
8
10
  //#region components/common/utils/is.ts
9
- var Z = !n, [Ze, Qe] = [18, 19].map((t, n, r) => {
10
- let i = e.version || Ye.version || "", a = /\d+/.exec(i)?.[0] ?? "";
11
+ var Qe = !n, [$e, et] = [18, 19].map((t, n, r) => {
12
+ let i = e.version || Ze.version || "", a = /\d+/.exec(i)?.[0] ?? "";
11
13
  return t <= parseFloat(a);
12
14
  });
13
- function $e(e, t) {
14
- return !!(Y(e) || e === !1 || X(e) && (t ? e.trim() === "" : e === "") || b(e));
15
+ function tt(e, t) {
16
+ return !!(J(e) || e === !1 || Y(e) && (t ? e.trim() === "" : e === "") || b(e));
15
17
  }
16
- function et(e) {
17
- return t(e) && !Xe(e);
18
+ function nt(e) {
19
+ return t(e) && !X(e);
18
20
  }
19
- function Q(e) {
21
+ function Z(e) {
20
22
  return t(e) && M(e.type);
21
23
  }
22
- function tt(e) {
23
- return Q(e) && !!e.type?.prototype?.isReactComponent;
24
+ function rt(e) {
25
+ return Z(e) && !!e.type?.prototype?.isReactComponent;
24
26
  }
25
- function nt(e) {
27
+ function it(e) {
26
28
  return e instanceof Element;
27
29
  }
28
- function $(e) {
30
+ function Q(e) {
29
31
  return e instanceof HTMLElement;
30
32
  }
31
- function rt(e) {
32
- if (!$(e) || [document.documentElement].includes(e)) return !1;
33
+ function $(e) {
34
+ return e instanceof SVGElement;
35
+ }
36
+ function at(e) {
37
+ return Q(e) || $(e);
38
+ }
39
+ function ot(e) {
40
+ if (!Q(e) || [document.documentElement].includes(e)) return !1;
33
41
  let t = window.getComputedStyle(e), n = [
34
42
  "auto",
35
43
  "scroll",
@@ -38,5 +46,5 @@ function rt(e) {
38
46
  return e.scrollHeight > e.offsetHeight && n.includes(t.overflowY) || e.scrollWidth > e.offsetWidth && n.includes(t.overflowX);
39
47
  }
40
48
  //#endregion
41
- export { r as is32Bit, i as isAllChinese, a as isArguments, o as isArray, ee as isArrayAndNotEmpty, te as isArrayBuffer, ne as isArrayEmpty, re as isArrayLike, ie as isArrayLikeObject, ae as isAscii, s as isAsyncFunction, c as isBase64, l as isBigInt, u as isBlob, d as isBoolean, f as isBuffer, p as isChinese, m as isColorValue, h as isDataURI, g as isDate, Je as isDayjs, _ as isElement, nt as isElementByInstanceof, v as isEmail, y as isEmpty, b as isEmptyArray, x as isEmptyObject, $e as isEmptyReactNode, S as isEmptyValue, C as isEqual, w as isEqualWith, T as isError, E as isEventTarget, D as isExist, O as isFalse, k as isFile, A as isFinite, j as isFullWidth, M as isFunction, N as isHSL, $ as isHTMLElement, P as isHalfWidth, F as isHash, I as isHexColor, L as isIMEI, R as isIP, z as isIPRange, B as isIdentityCard, V as isInteger, H as isJSON, U as isJSON_String, W as isJWT, G as isLength, K as isMACAddress, q as isMD5, J as isMap, oe as isMatch, se as isMatchWith, ce as isMimeType, le as isMobilePhone, ue as isMobilePhoneLocales, de as isNaN, fe as isNative, pe as isNil, me as isNonNullable, he as isNull, Y as isNullOrUndefined, ge as isNumber, _e as isNumberOrString, ve as isObject, ye as isObjectLike, be as isPlainObject, xe as isPort, Se as isPresent, Ce as isPrimitive, we as isPromise, Ze as isReact18, Qe as isReact19, tt as isReactClassComponent, Q as isReactComponent, et as isReactComponentAndNotFragment, Te as isReadableStream, Ee as isRegExp, De as isRgbColor, Oe as isSafeInteger, rt as isScrollElement, ke as isSemVer, Z as isServerRendering, Ae as isSet, je as isSlug, Me as isSparseArray, X as isString, Ne as isStringAndExist, Pe as isStringOrNumber, Fe as isStrongPassword, Ie as isSymbol, Le as isThenable, Re as isTrue, ze as isTypedArray, Be as isURL, Ve as isUUID, He as isUndefined, Ue as isUndefinedOrNull, We as isVariableWidth, Ge as isWeakMap, Ke as isWeakSet, qe as isWindow };
49
+ export { r as is32Bit, i as isAllChinese, a as isArguments, o as isArray, ee as isArrayAndNotEmpty, te as isArrayBuffer, ne as isArrayEmpty, re as isArrayLike, ie as isArrayLikeObject, ae as isAscii, oe as isAsyncFunction, s as isBase64, c as isBigInt, l as isBlob, u as isBoolean, d as isBuffer, f as isChinese, p as isColorValue, m as isColorValue_, at as isDOM, h as isDataURI, g as isDate, Xe as isDayjs, _ as isElement, it as isElementByInstanceof, v as isEmail, y as isEmpty, b as isEmptyArray, x as isEmptyObject, tt as isEmptyReactNode, S as isEmptyValue, C as isEqual, w as isEqualWith, T as isError, E as isEventTarget, D as isExist, O as isFalse, k as isFile, A as isFinite, j as isFullWidth, M as isFunction, N as isHSL, Q as isHTMLElement, P as isHalfWidth, F as isHash, I as isHexColor, L as isIMEI, R as isIP, z as isIPRange, B as isIdentityCard, V as isInteger, H as isJSON, U as isJSON_String, W as isJWT, G as isLength, K as isMACAddress, q as isMD5, se as isMap, ce as isMatch, le as isMatchWith, ue as isMimeType, de as isMobilePhone, fe as isMobilePhoneLocales, pe as isNaN, me as isNative, he as isNil, ge as isNonNullable, _e as isNull, J as isNullOrUndefined, ve as isNumber, ye as isNumberOrString, be as isObject, xe as isObjectLike, Se as isPlainObject, Ce as isPort, we as isPresent, Te as isPrimitive, Ee as isPromise, $e as isReact18, et as isReact19, rt as isReactClassComponent, Z as isReactComponent, nt as isReactComponentAndNotFragment, De as isReadableStream, Oe as isRegExp, ke as isRgbColor, $ as isSVGElement, Ae as isSafeInteger, ot as isScrollElement, je as isSemVer, Qe as isServerRendering, Me as isSet, Ne as isSlug, Pe as isSparseArray, Y as isString, Fe as isStringAndExist, Ie as isStringOrNumber, Le as isStrongPassword, Re as isSymbol, ze as isThenable, Be as isTrue, Ve as isTypedArray, He as isURL, Ue as isUUID, We as isUndefined, Ge as isUndefinedOrNull, Ke as isVariableWidth, qe as isWeakMap, Je as isWeakSet, Ye as isWindow };
42
50
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  import * as e from "@unicom-cloud/utils/constant/keyboardCode";
3
3
  export * from "@unicom-cloud/utils/constant/keyboardCode";
4
4
  //#region components/common/utils/keyboardCode.ts
package/utils/lodash.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  import e from "lodash/castArray";
3
3
  import t from "lodash/debounce";
4
4
  import n from "lodash/throttle";
package/utils/math.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  import e, { div as t, minus as n, plus as r, times as i, default as a } from "@unicom-cloud/utils/math";
3
3
  export { a as default, t as div, e as math, n as minus, r as plus, i as times };
4
4
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  import { isArray as e } from "./is.js";
3
3
  import { defaults as t, pick as n } from "./lodash.js";
4
4
  //#region components/common/utils/mergeProps.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  import { isNumber as e, isPlainObject as t, isString as n } from "./is.js";
3
3
  import r from "react";
4
4
  //#region components/common/utils/mergedToString.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  import { isFunction as e } from "./is.js";
3
3
  import t from "lodash/throttle";
4
4
  //#region components/common/utils/mutationObserver.ts
@@ -0,0 +1,207 @@
1
+ export declare const BORDER_BEAM_COMPONENT_INFO: {
2
+ zh: string;
3
+ en: string;
4
+ displayName: string;
5
+ id: string;
6
+ };
7
+ export declare const DEVELOPMENT_COMPONENT_INFO: {
8
+ zh: string;
9
+ en: string;
10
+ displayName: string;
11
+ id: string;
12
+ };
13
+ export declare const EMPTY_COMPONENT_INFO: {
14
+ zh: string;
15
+ en: string;
16
+ displayName: string;
17
+ id: string;
18
+ };
19
+ export declare const FLEX_COMPONENT_INFO: {
20
+ zh: string;
21
+ en: string;
22
+ displayName: string;
23
+ id: string;
24
+ };
25
+ export declare const FLEX_VERTICAL_COMPONENT_INFO: {
26
+ zh: string;
27
+ en: string;
28
+ displayName: string;
29
+ id: string;
30
+ };
31
+ export declare const SPEECH_SYNTHESIS_COMPONENT_INFO: {
32
+ zh: string;
33
+ en: string;
34
+ displayName: string;
35
+ id: string;
36
+ };
37
+ export declare const ICON_FILE_COMPONENT_INFO: {
38
+ zh: string;
39
+ en: string;
40
+ displayName: string;
41
+ id: string;
42
+ };
43
+ export declare const PROGRESS_COMPONENT_INFO: {
44
+ zh: string;
45
+ en: string;
46
+ displayName: string;
47
+ id: string;
48
+ };
49
+ export declare const RESIZE_OBSERVER_COMPONENT_INFO: {
50
+ zh: string;
51
+ en: string;
52
+ displayName: string;
53
+ id: string;
54
+ };
55
+ export declare const SPACE_COMPONENT_INFO: {
56
+ zh: string;
57
+ en: string;
58
+ displayName: string;
59
+ id: string;
60
+ };
61
+ export declare const SPACE_VERTICAL_COMPONENT_INFO: {
62
+ zh: string;
63
+ en: string;
64
+ displayName: string;
65
+ id: string;
66
+ };
67
+ export declare const SUSPENSE_FALLBACK_TEST_COMPONENT_INFO: {
68
+ zh: string;
69
+ en: string;
70
+ displayName: string;
71
+ id: string;
72
+ };
73
+ export declare const TIMER_COMPONENT_INFO: {
74
+ zh: string;
75
+ en: string;
76
+ displayName: string;
77
+ id: string;
78
+ };
79
+ export declare const TRANSITION_COMPONENT_INFO: {
80
+ zh: string;
81
+ en: string;
82
+ displayName: string;
83
+ id: string;
84
+ };
85
+ export declare const TRANSITION_CSS_COMPONENT_INFO: {
86
+ zh: string;
87
+ en: string;
88
+ displayName: string;
89
+ id: string;
90
+ };
91
+ export declare const TRANSITION_STYLE_COMPONENT_INFO: {
92
+ zh: string;
93
+ en: string;
94
+ displayName: string;
95
+ id: string;
96
+ };
97
+ export declare const TRANSITION_GROUP_COMPONENT_INFO: {
98
+ zh: string;
99
+ en: string;
100
+ displayName: string;
101
+ id: string;
102
+ };
103
+ declare const COMPONENT_NAMES: {
104
+ BorderBeam: {
105
+ zh: string;
106
+ en: string;
107
+ displayName: string;
108
+ id: string;
109
+ };
110
+ Development: {
111
+ zh: string;
112
+ en: string;
113
+ displayName: string;
114
+ id: string;
115
+ };
116
+ Empty: {
117
+ zh: string;
118
+ en: string;
119
+ displayName: string;
120
+ id: string;
121
+ };
122
+ Flex: {
123
+ zh: string;
124
+ en: string;
125
+ displayName: string;
126
+ id: string;
127
+ };
128
+ FlexVertical: {
129
+ zh: string;
130
+ en: string;
131
+ displayName: string;
132
+ id: string;
133
+ };
134
+ IconFile: {
135
+ zh: string;
136
+ en: string;
137
+ displayName: string;
138
+ id: string;
139
+ };
140
+ Progress: {
141
+ zh: string;
142
+ en: string;
143
+ displayName: string;
144
+ id: string;
145
+ };
146
+ ResizeObserver: {
147
+ zh: string;
148
+ en: string;
149
+ displayName: string;
150
+ id: string;
151
+ };
152
+ Space: {
153
+ zh: string;
154
+ en: string;
155
+ displayName: string;
156
+ id: string;
157
+ };
158
+ SpaceVertical: {
159
+ zh: string;
160
+ en: string;
161
+ displayName: string;
162
+ id: string;
163
+ };
164
+ SpeechSynthesis: {
165
+ zh: string;
166
+ en: string;
167
+ displayName: string;
168
+ id: string;
169
+ };
170
+ SuspenseFallbackTest: {
171
+ zh: string;
172
+ en: string;
173
+ displayName: string;
174
+ id: string;
175
+ };
176
+ Timer: {
177
+ zh: string;
178
+ en: string;
179
+ displayName: string;
180
+ id: string;
181
+ };
182
+ Transition: {
183
+ zh: string;
184
+ en: string;
185
+ displayName: string;
186
+ id: string;
187
+ };
188
+ TransitionCSS: {
189
+ zh: string;
190
+ en: string;
191
+ displayName: string;
192
+ id: string;
193
+ };
194
+ TransitionStyle: {
195
+ zh: string;
196
+ en: string;
197
+ displayName: string;
198
+ id: string;
199
+ };
200
+ TransitionGroup: {
201
+ zh: string;
202
+ en: string;
203
+ displayName: string;
204
+ id: string;
205
+ };
206
+ };
207
+ export { COMPONENT_NAMES };
package/utils/names.js ADDED
@@ -0,0 +1,110 @@
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
+ //#region components/common/utils/names.ts
3
+ var e = {
4
+ zh: "边框流光",
5
+ en: "BorderBeam",
6
+ displayName: "BorderBeam",
7
+ id: "9a264e00-3fbe-4973-b8cb-ad8b761bd0f5"
8
+ }, t = {
9
+ zh: "等待开发",
10
+ en: "Development",
11
+ displayName: "Development",
12
+ id: "d125fa3c-84c3-4dfd-89ec-f17150165d9b"
13
+ }, n = {
14
+ zh: "空状态",
15
+ en: "Empty",
16
+ displayName: "Empty",
17
+ id: "8348cf3a-655a-4c87-b7ab-e48b34340d6d"
18
+ }, r = {
19
+ zh: "弹性布局",
20
+ en: "Flex",
21
+ displayName: "Flex",
22
+ id: "142fe0f1-6d45-4335-830e-89284c93b0f8"
23
+ }, i = {
24
+ zh: "弹性布局.垂直",
25
+ en: "Flex.Vertical",
26
+ displayName: "FlexVertical",
27
+ id: "0ab4a84d-90a9-4c05-938f-f57e77c9931f"
28
+ }, a = {
29
+ zh: "朗读",
30
+ en: "SpeechSynthesis",
31
+ displayName: "SpeechSynthesis",
32
+ id: "cf39c90b-e3c8-4236-bb36-c82364f7ddf1"
33
+ }, o = {
34
+ zh: "文件图标",
35
+ en: "IconFile",
36
+ displayName: "IconFile",
37
+ id: "51ce6209-3c79-475b-80ce-c4c113972c39"
38
+ }, s = {
39
+ zh: "进度条",
40
+ en: "Progress",
41
+ displayName: "Progress",
42
+ id: "101d0fec-3fad-4051-9b00-dcecdf09c38a"
43
+ }, c = {
44
+ zh: "边界尺寸变化",
45
+ en: "ResizeObserver",
46
+ displayName: "ResizeObserver",
47
+ id: "50b9d18f-322e-4d0d-840b-03d8d4e92a03"
48
+ }, l = {
49
+ zh: "间距",
50
+ en: "Space",
51
+ displayName: "Space",
52
+ id: "36fad944-cfb8-4da6-a72a-58c48a19fc3f"
53
+ }, u = {
54
+ zh: "间距.垂直",
55
+ en: "SpaceVertical",
56
+ displayName: "SpaceVertical",
57
+ id: "06dd5c47-65fe-4d31-afe5-19212a608a9d"
58
+ }, d = {
59
+ zh: "加载时显示后备方案",
60
+ en: "SuspenseFallbackTest",
61
+ displayName: "SuspenseFallbackTest",
62
+ id: "99d2b67d-a958-459f-8e70-0e0f327ecc6d"
63
+ }, f = {
64
+ zh: "时间",
65
+ en: "Timer",
66
+ displayName: "Timer",
67
+ id: "e533969f-752b-4fc4-95aa-a58e87781916"
68
+ }, p = {
69
+ zh: "动画过渡",
70
+ en: "Transition",
71
+ displayName: "Transition",
72
+ id: "20512ad9-c54f-4352-8bdb-1d3d753fe993"
73
+ }, m = {
74
+ zh: "动画过渡CSS",
75
+ en: "Transition.CSS",
76
+ displayName: "TransitionCSS",
77
+ id: "7e73317b-fe40-4a36-9070-27607e0b6de7"
78
+ }, h = {
79
+ zh: "动画过渡style",
80
+ en: "Transition.Style",
81
+ displayName: "TransitionStyle",
82
+ id: "522e3883-c266-4ba0-9ad1-34c1d58e9098"
83
+ }, g = {
84
+ zh: "动画过渡群组",
85
+ en: "Transition.Group",
86
+ displayName: "TransitionGroup",
87
+ id: "899e40ed-fca7-4982-829d-e7cf5383413d"
88
+ }, _ = {
89
+ BorderBeam: e,
90
+ Development: t,
91
+ Empty: n,
92
+ Flex: r,
93
+ FlexVertical: i,
94
+ IconFile: o,
95
+ Progress: s,
96
+ ResizeObserver: c,
97
+ Space: l,
98
+ SpaceVertical: u,
99
+ SpeechSynthesis: a,
100
+ SuspenseFallbackTest: d,
101
+ Timer: f,
102
+ Transition: p,
103
+ TransitionCSS: m,
104
+ TransitionStyle: h,
105
+ TransitionGroup: g
106
+ };
107
+ Object.assign(_, {}), Object.freeze(_);
108
+ //#endregion
109
+ export { e as BORDER_BEAM_COMPONENT_INFO, _ as COMPONENT_NAMES, t as DEVELOPMENT_COMPONENT_INFO, n as EMPTY_COMPONENT_INFO, r as FLEX_COMPONENT_INFO, i as FLEX_VERTICAL_COMPONENT_INFO, o as ICON_FILE_COMPONENT_INFO, s as PROGRESS_COMPONENT_INFO, c as RESIZE_OBSERVER_COMPONENT_INFO, l as SPACE_COMPONENT_INFO, u as SPACE_VERTICAL_COMPONENT_INFO, a as SPEECH_SYNTHESIS_COMPONENT_INFO, d as SUSPENSE_FALLBACK_TEST_COMPONENT_INFO, f as TIMER_COMPONENT_INFO, p as TRANSITION_COMPONENT_INFO, m as TRANSITION_CSS_COMPONENT_INFO, g as TRANSITION_GROUP_COMPONENT_INFO, h as TRANSITION_STYLE_COMPONENT_INFO };
110
+ /* 独立思考,明辨是非 */
package/utils/object.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  import { __exportAll as e, __reExport as t } from "../.virtual/_rolldown/runtime.js";
3
3
  export * from "@unicom-cloud/utils/object";
4
4
  //#region components/common/utils/object.ts
package/utils/omit.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  import { omit as e } from "./lodash.js";
3
3
  //#region components/common/utils/omit.ts
4
4
  var t = e;
package/utils/pad.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  //#region components/common/utils/pad.ts
3
3
  function e(t, n, r = " ") {
4
4
  let i = String(t);
package/utils/pick.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  import { pick as e } from "./lodash.js";
3
3
  //#region components/common/utils/pick.ts
4
4
  function t(e) {
package/utils/pinyin.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  import e, { default as t } from "@unicom-cloud/utils/pinyin";
3
3
  export { t as default, e as pinyin };
4
4
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  import e from "./setCreateRoot.js";
3
3
  import { createRoot as t } from "react-dom/client";
4
4
  //#region components/common/utils/react19Adapter.ts
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ type AnyObject = Record<PropertyKey, unknown>;
3
+ export declare function isFragment(child: unknown): boolean;
4
+ type RenderProps = AnyObject | ((originProps: AnyObject) => AnyObject | undefined);
5
+ export declare const replaceElement: <P>(element: React.ReactNode, replacement: React.ReactNode, props?: RenderProps) => React.ReactNode;
6
+ export declare function cloneElement<P>(element: React.ReactNode, props?: RenderProps): React.ReactElement<P>;
7
+ export {};
@@ -0,0 +1,14 @@
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
+ import { isFunction as e } from "./is.js";
3
+ import t from "react";
4
+ //#region components/common/utils/reactNode.ts
5
+ function n(e) {
6
+ return e && t.isValidElement(e) && e.type === t.Fragment;
7
+ }
8
+ var r = (n, r, i) => t.isValidElement(n) ? t.cloneElement(n, e(i) ? i(n.props || {}) : i) : r;
9
+ function i(e, t) {
10
+ return r(e, e, t);
11
+ }
12
+ //#endregion
13
+ export { i as cloneElement, n as isFragment, r as replaceElement };
14
+ /* 独立思考,明辨是非 */
package/utils/ref.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import React, { RefObject } from 'react';
2
- interface RefAttributes<T> extends React.Attributes {
1
+ import React, { Attributes, RefObject } from 'react';
2
+ interface RefAttributes<T> extends Attributes {
3
3
  ref: React.Ref<T>;
4
4
  }
5
5
  declare const fillRef: <T>(ref: RefObject<T>, node: T) => void;
package/utils/ref.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  import { isFunction as e, isObjectLike as t, isReact19 as n, isReactComponentAndNotFragment as r } from "./is.js";
3
3
  import i from "../hooks/use-memo/index.js";
4
4
  import { isValidElement as a } from "react";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  import { isElementByInstanceof as e, isFunction as t } from "./is.js";
3
3
  import { NOOP as n } from "./constant.js";
4
4
  import r from "lodash/throttle";
package/utils/saveAs.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  import e, { default as t } from "@unicom-cloud/utils/file/saveAs";
3
3
  export { t as default, e as saveAs };
4
4
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  import e, { default as t } from "@unicom-cloud/utils/screenfull";
3
3
  export { t as default, e as screenfull };
4
4
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  //#region components/common/utils/scrollIntoViewIfNeeded.ts
3
3
  function e(e, t) {
4
4
  e.scrollIntoView(t);
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  import { isFunction as e, isObject as t, isReact18 as n } from "./is.js";
3
3
  import "react";
4
4
  import r from "react-dom";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  import { isElementByInstanceof as e } from "./is.js";
3
3
  import { CSS_VARIABLE_ELEMENT as t } from "./constant.js";
4
4
  import { UI_PC_THEME_DARK_CLASS_NAME as n } from "@unicom-cloud/utils/constant/ui";
package/utils/setDir.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  import { isPlainObject as e } from "./is.js";
3
3
  import { CSS_VARIABLE_ELEMENT as t } from "./constant.js";
4
4
  import { UI_PC_PREFIX as n } from "@unicom-cloud/utils/constant/ui.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  import { CSS_VARIABLE_ELEMENT as e } from "./constant.js";
3
3
  import { UI_PC_PREFIX as t } from "@unicom-cloud/utils/constant/ui";
4
4
  import n from "@unicom-cloud/utils/tinycolor";
package/utils/setTheme.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  import { isPlainObject as e } from "./is.js";
3
3
  import { CSS_VARIABLE_ELEMENT as t } from "./constant.js";
4
4
  import { UI_PC_PREFIX as n } from "@unicom-cloud/utils/constant/ui.js";
package/utils/string.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  import { isEmptyReactNode as e } from "./is.js";
3
3
  import { HYPHEN as t } from "@unicom-cloud/utils/constant/string";
4
4
  import { replaceEmptyWithHyphen as n } from "@unicom-cloud/utils/string";
package/utils/style.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  //#region components/common/utils/style.ts
3
3
  var e = [
4
4
  "transform",
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-08 09:02:53 星期五 */
1
+ /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
2
  //#region components/common/utils/throttleByRaf.ts
3
3
  function e(e, t = 1) {
4
4
  let n = null;