@unicom-cloud/ui-common 0.1.18 → 0.1.20

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 (308) hide show
  1. package/.virtual/_rolldown/runtime.js +1 -1
  2. package/.vite/manifest.json +127 -191
  3. package/development/index.js +1 -1
  4. package/empty/index.js +1 -1
  5. package/flex/index.js +1 -1
  6. package/flex/utils.js +1 -1
  7. package/higher-order/index.js +1 -1
  8. package/higher-order/with-speech-synthesis/index.js +1 -1
  9. package/hooks/create-deep-compare-effect/index.js +8 -7
  10. package/hooks/create-update-effect/index.d.ts +1 -1
  11. package/hooks/create-update-effect/index.js +9 -10
  12. package/hooks/create-use-storage-state/index.d.ts +2 -1
  13. package/hooks/create-use-storage-state/index.js +44 -35
  14. package/hooks/index.d.ts +1 -0
  15. package/hooks/index.js +82 -81
  16. package/hooks/use-async-effect/index.js +1 -1
  17. package/hooks/use-boolean/index.js +1 -1
  18. package/hooks/use-click-away/index.d.ts +2 -2
  19. package/hooks/use-click-away/index.js +7 -3
  20. package/hooks/use-computed-state/index.js +1 -1
  21. package/hooks/use-controllable-value/index.js +1 -1
  22. package/hooks/use-cookie-state/index.d.ts +34 -1
  23. package/hooks/use-cookie-state/index.js +16 -16
  24. package/hooks/use-count-down/index.js +1 -1
  25. package/hooks/use-counter/index.js +1 -1
  26. package/hooks/use-create/index.d.ts +4 -1
  27. package/hooks/use-create/index.js +1 -1
  28. package/hooks/use-creation/index.js +1 -1
  29. package/hooks/use-debounce/index.js +1 -1
  30. package/hooks/use-debounce-effect/index.js +1 -1
  31. package/hooks/use-debounce-fn/index.js +1 -1
  32. package/hooks/use-deep-compare-effect/index.js +1 -1
  33. package/hooks/use-deep-compare-layout-effect/index.js +1 -1
  34. package/hooks/use-document-visibility/index.js +1 -1
  35. package/hooks/use-drag/index.js +1 -1
  36. package/hooks/use-drop/index.js +1 -1
  37. package/hooks/use-effect-event/index.js +1 -1
  38. package/hooks/use-event/index.js +1 -1
  39. package/hooks/use-event-emitter/demo/demo1.d.ts +10 -0
  40. package/hooks/use-event-emitter/index.d.ts +8 -0
  41. package/hooks/use-event-emitter/index.js +26 -0
  42. package/hooks/use-event-listener/index.d.ts +3 -2
  43. package/hooks/use-event-listener/index.js +1 -1
  44. package/hooks/use-event-target/index.js +1 -1
  45. package/hooks/use-external/index.js +25 -24
  46. package/hooks/use-favicon/index.js +1 -1
  47. package/hooks/use-focus-within/index.js +1 -1
  48. package/hooks/use-force-update/index.js +1 -1
  49. package/hooks/use-fullscreen/index.js +1 -1
  50. package/hooks/use-get-state/index.js +1 -1
  51. package/hooks/use-history-travel/index.js +1 -1
  52. package/hooks/use-hover/index.js +1 -1
  53. package/hooks/use-id/index.js +1 -1
  54. package/hooks/use-in-view/index.js +1 -1
  55. package/hooks/use-in-viewport/index.js +1 -1
  56. package/hooks/use-infinite-scroll/index.js +1 -1
  57. package/hooks/use-intersection-observer/index.js +1 -1
  58. package/hooks/use-intersection-observers/index.js +25 -25
  59. package/hooks/use-interval/index.js +1 -1
  60. package/hooks/use-is-first-render/index.js +1 -1
  61. package/hooks/use-isomorphic-layout-effect/index.js +1 -1
  62. package/hooks/use-key-press/index.js +1 -1
  63. package/hooks/use-keyboard-event/index.js +3 -3
  64. package/hooks/use-latest/index.js +1 -1
  65. package/hooks/use-listen-window-resize/index.d.ts +1 -1
  66. package/hooks/use-listen-window-resize/index.js +3 -3
  67. package/hooks/use-local-storage-state/index.js +1 -1
  68. package/hooks/use-lock-fn/index.js +1 -1
  69. package/hooks/use-long-press/index.js +1 -1
  70. package/hooks/use-map/index.js +1 -1
  71. package/hooks/use-media/index.js +1 -1
  72. package/hooks/use-memo/index.js +1 -1
  73. package/hooks/use-memoized-fn/index.d.ts +1 -1
  74. package/hooks/use-memoized-fn/index.js +3 -3
  75. package/hooks/use-merge-props/index.js +1 -1
  76. package/hooks/use-merge-value/index.js +1 -1
  77. package/hooks/use-mobile/index.js +1 -1
  78. package/hooks/use-mount/index.js +1 -1
  79. package/hooks/use-mouse/index.js +1 -1
  80. package/hooks/use-move/index.js +1 -1
  81. package/hooks/use-mutation-observer/index.js +1 -1
  82. package/hooks/use-mutation-observers/index.js +24 -24
  83. package/hooks/use-network/index.js +1 -1
  84. package/hooks/use-online-status/index.js +1 -1
  85. package/hooks/use-overflow-hidden/index.js +17 -16
  86. package/hooks/use-override-ref/index.js +1 -1
  87. package/hooks/use-pagination/index.js +1 -1
  88. package/hooks/use-paste-image/index.js +1 -1
  89. package/hooks/use-persist-callback/index.js +1 -1
  90. package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
  91. package/hooks/use-previous/index.js +1 -1
  92. package/hooks/use-raf-interval/index.js +1 -1
  93. package/hooks/use-raf-state/index.js +1 -1
  94. package/hooks/use-raf-timeout/index.js +1 -1
  95. package/hooks/use-reactive/index.js +1 -1
  96. package/hooks/use-ref-latest/index.js +1 -1
  97. package/hooks/use-refs/index.js +13 -12
  98. package/hooks/use-request/index.js +1 -1
  99. package/hooks/use-request/src/Fetch.js +1 -1
  100. package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
  101. package/hooks/use-request/src/plugins/useCachePlugin.js +1 -1
  102. package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
  103. package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +1 -1
  104. package/hooks/use-request/src/plugins/usePollingPlugin.js +1 -1
  105. package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
  106. package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
  107. package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
  108. package/hooks/use-request/src/useRequest.d.ts +6 -2
  109. package/hooks/use-request/src/useRequest.js +1 -1
  110. package/hooks/use-request/src/useRequestImplement.js +1 -1
  111. package/hooks/use-request/src/utils/cache.js +1 -1
  112. package/hooks/use-request/src/utils/cachePromise.js +1 -1
  113. package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
  114. package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
  115. package/hooks/use-request/src/utils/isOnline.js +1 -1
  116. package/hooks/use-request/src/utils/limit.js +1 -1
  117. package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
  118. package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
  119. package/hooks/use-reset-state/index.js +1 -1
  120. package/hooks/use-resize-observer/index.js +1 -1
  121. package/hooks/use-resize-observers/index.js +25 -25
  122. package/hooks/use-responsive/index.js +1 -1
  123. package/hooks/use-safe-state/index.js +1 -1
  124. package/hooks/use-scroll/index.js +1 -1
  125. package/hooks/use-selections/index.js +1 -1
  126. package/hooks/use-session-storage-state/index.js +1 -1
  127. package/hooks/use-set/index.js +1 -1
  128. package/hooks/use-set-state/index.js +1 -1
  129. package/hooks/use-size/index.js +1 -1
  130. package/hooks/use-state-callback/index.js +1 -1
  131. package/hooks/use-state-with-promise/index.d.ts +11 -1
  132. package/hooks/use-state-with-promise/index.js +21 -20
  133. package/hooks/use-sync-state/index.js +1 -1
  134. package/hooks/use-text-selection/index.js +1 -1
  135. package/hooks/use-theme/index.js +1 -1
  136. package/hooks/use-throttle/index.js +1 -1
  137. package/hooks/use-throttle-effect/index.js +1 -1
  138. package/hooks/use-throttle-fn/index.js +1 -1
  139. package/hooks/use-timeout/index.js +1 -1
  140. package/hooks/use-title/index.js +1 -1
  141. package/hooks/use-toggle/index.js +12 -11
  142. package/hooks/use-tracked-effect/index.js +1 -1
  143. package/hooks/use-unmount/index.js +1 -1
  144. package/hooks/use-unmounted-ref/index.js +1 -1
  145. package/hooks/use-update/index.d.ts +3 -1
  146. package/hooks/use-update/index.js +5 -5
  147. package/hooks/use-update-effect/index.js +1 -1
  148. package/hooks/use-update-layout-effect/index.js +1 -1
  149. package/hooks/use-url-state/index.js +1 -1
  150. package/hooks/use-virtual-list/index.js +1 -1
  151. package/hooks/use-watch/index.js +1 -1
  152. package/hooks/use-web-socket/index.js +1 -1
  153. package/hooks/use-why-did-you-update/index.js +1 -1
  154. package/hooks/use-window-size/index.d.ts +1 -1
  155. package/hooks/use-window-size/index.js +1 -1
  156. package/hooks/utils/createEffectWithTarget.js +1 -1
  157. package/hooks/utils/depsAreSame.js +1 -1
  158. package/hooks/utils/depsEqual.js +1 -1
  159. package/hooks/utils/domTarget.js +1 -1
  160. package/hooks/utils/getDocumentOrShadow.js +1 -1
  161. package/hooks/utils/index.js +1 -1
  162. package/hooks/utils/isAppleDevice.js +1 -1
  163. package/hooks/utils/isBrowser.js +1 -1
  164. package/hooks/utils/isDev.js +1 -1
  165. package/hooks/utils/rect.js +1 -1
  166. package/hooks/utils/useDeepCompareWithTarget.js +1 -1
  167. package/hooks/utils/useEffectWithTarget.js +1 -1
  168. package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
  169. package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
  170. package/icons/file/index.js +1 -1
  171. package/index.d.ts +1 -1
  172. package/index.js +574 -537
  173. package/package.json +1 -1
  174. package/progress/index.js +43 -43
  175. package/resize-observer/Collection.d.ts +2 -2
  176. package/resize-observer/Collection.js +1 -1
  177. package/resize-observer/SingleObserver.js +1 -1
  178. package/resize-observer/index.js +2 -2
  179. package/resize-observer/observerUtil.js +1 -1
  180. package/space/index.js +1 -1
  181. package/style/animation.less +16 -4
  182. package/style.css +1 -1
  183. package/suspense-fallback-test/index.js +1 -1
  184. package/test.d.ts +0 -0
  185. package/test.js +5 -0
  186. package/timer/index.js +1 -1
  187. package/transition/Transition.d.ts +11 -0
  188. package/transition/Transition.js +92 -0
  189. package/transition/TransitionCSS.d.ts +11 -0
  190. package/transition/TransitionCSS.js +33 -0
  191. package/transition/TransitionGroup.d.ts +11 -0
  192. package/transition/TransitionGroup.js +62 -0
  193. package/transition/TransitionStyle.d.ts +11 -0
  194. package/transition/TransitionStyle.js +46 -0
  195. package/transition/constants.d.ts +43 -0
  196. package/transition/constants.js +46 -0
  197. package/transition/index.d.ts +12 -0
  198. package/transition/index.js +12 -0
  199. package/transition/interface.d.ts +192 -0
  200. package/transition/utils.d.ts +19 -0
  201. package/transition/utils.js +97 -0
  202. package/utils/callOrReturn.js +1 -1
  203. package/utils/callbackOriginRef.js +1 -1
  204. package/utils/caseName.js +1 -1
  205. package/utils/className.js +1 -1
  206. package/utils/constant.js +1 -1
  207. package/utils/copy.js +1 -1
  208. package/utils/date.js +1 -1
  209. package/utils/dayjs.d.ts +1 -1
  210. package/utils/dayjs.js +19 -13
  211. package/utils/dom.js +15 -15
  212. package/utils/emitter.js +1 -1
  213. package/utils/fileRead.js +1 -1
  214. package/utils/fileToDataURL.js +1 -1
  215. package/utils/fillNBSP.js +1 -1
  216. package/utils/findRootElement.d.ts +6 -4
  217. package/utils/findRootElement.js +2 -2
  218. package/utils/findScrollParent.js +1 -1
  219. package/utils/getHighlightText.js +1 -1
  220. package/utils/getHotkeyHandler.js +1 -1
  221. package/utils/getScrollBarHeight.d.ts +3 -0
  222. package/utils/getScrollBarHeight.js +7 -0
  223. package/utils/getScrollBarSize.d.ts +3 -0
  224. package/utils/getScrollBarSize.js +10 -0
  225. package/utils/getScrollBarWidth.d.ts +3 -0
  226. package/utils/getScrollBarWidth.js +7 -0
  227. package/utils/getStringLength.js +1 -1
  228. package/utils/include.js +1 -1
  229. package/utils/index.d.ts +3 -0
  230. package/utils/index.js +277 -269
  231. package/utils/intersectionObserver.js +1 -1
  232. package/utils/is.d.ts +8 -7
  233. package/utils/is.js +23 -20
  234. package/utils/keyboardCode.js +1 -1
  235. package/utils/lodash.js +1 -1
  236. package/utils/math.js +1 -1
  237. package/utils/mergeProps.js +1 -1
  238. package/utils/mergedToString.js +1 -1
  239. package/utils/mutationObserver.js +1 -1
  240. package/utils/omit.d.ts +5 -1
  241. package/utils/omit.js +4 -8
  242. package/utils/pad.js +1 -1
  243. package/utils/pick.d.ts +4 -1
  244. package/utils/pick.js +5 -10
  245. package/utils/pinyin.js +1 -1
  246. package/utils/react19Adapter.js +1 -1
  247. package/utils/ref.js +2 -2
  248. package/utils/resizeObserver.js +21 -21
  249. package/utils/saveAs.js +1 -1
  250. package/utils/screenfull.js +1 -1
  251. package/utils/scrollIntoViewIfNeeded.js +1 -1
  252. package/utils/setCreateRoot.js +1 -1
  253. package/utils/setDarkTheme.js +1 -1
  254. package/utils/setDir.js +1 -1
  255. package/utils/setPrimaryColor.js +1 -1
  256. package/utils/setTheme.js +1 -1
  257. package/utils/string.js +1 -1
  258. package/utils/style.js +1 -1
  259. package/utils/throttleByRaf.js +1 -1
  260. package/utils/throttleByRaf2.js +1 -1
  261. package/utils/tinycolor.js +1 -1
  262. package/utils/toArray.js +1 -1
  263. package/utils/tree.js +1 -1
  264. package/utils/tween.js +1 -1
  265. package/utils/uuid.js +1 -1
  266. package/utils/validate.js +1 -1
  267. package/utils/warning.js +1 -1
  268. package/version/index.js +11 -14
  269. package/motion/CSSMotion.d.ts +0 -77
  270. package/motion/CSSMotion.js +0 -76
  271. package/motion/CSSMotionList.d.ts +0 -34
  272. package/motion/CSSMotionList.js +0 -82
  273. package/motion/context.d.ts +0 -9
  274. package/motion/context.js +0 -14
  275. package/motion/hooks/useDomMotionEvents.d.ts +0 -3
  276. package/motion/hooks/useDomMotionEvents.js +0 -19
  277. package/motion/hooks/useNextFrame.d.ts +0 -7
  278. package/motion/hooks/useNextFrame.js +0 -22
  279. package/motion/hooks/useStatus.d.ts +0 -5
  280. package/motion/hooks/useStatus.js +0 -92
  281. package/motion/hooks/useStepQueue.d.ts +0 -8
  282. package/motion/hooks/useStepQueue.js +0 -39
  283. package/motion/index.d.ts +0 -9
  284. package/motion/index.js +0 -9
  285. package/motion/interface.d.ts +0 -22
  286. package/motion/interface.js +0 -6
  287. package/motion/util/diff.d.ts +0 -20
  288. package/motion/util/diff.js +0 -50
  289. package/motion/util/motion.d.ts +0 -10
  290. package/motion/util/motion.js +0 -37
  291. package/transition-group/CSSTransition.d.ts +0 -97
  292. package/transition-group/CSSTransition.js +0 -73
  293. package/transition-group/ChildMapping.d.ts +0 -27
  294. package/transition-group/ChildMapping.js +0 -61
  295. package/transition-group/PqbCSSTransition.d.ts +0 -4
  296. package/transition-group/PqbCSSTransition.js +0 -34
  297. package/transition-group/ReplaceTransition.d.ts +0 -23
  298. package/transition-group/ReplaceTransition.js +0 -38
  299. package/transition-group/SwitchTransition.d.ts +0 -88
  300. package/transition-group/SwitchTransition.js +0 -84
  301. package/transition-group/Transition.d.ts +0 -130
  302. package/transition-group/Transition.js +0 -139
  303. package/transition-group/TransitionGroup.d.ts +0 -31
  304. package/transition-group/TransitionGroup.js +0 -54
  305. package/transition-group/TransitionGroupContext.d.ts +0 -3
  306. package/transition-group/TransitionGroupContext.js +0 -7
  307. package/transition-group/index.d.ts +0 -9
  308. package/transition-group/index.js +0 -11
package/utils/is.d.ts CHANGED
@@ -1,12 +1,13 @@
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, 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, isNull, isNullOrUndefined, isNumber, isNumberOrString, isObject, isObjectLike, isPlainObject, isPort, isPromise, isReadableStream, isRegExp, isRgbColor, isSafeInteger, isSemVer, isSet, isSlug, isSparseArray, isString, isStringOrNumber, isStrongPassword, isSymbol, isTypedArray, isUndefined, 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, isDataURI, isDate, isElement, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyValue, isEqual, isEqualWith, isError, isEventTarget, isExist, 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, isNull, isNullOrUndefined, isNumber, isNumberOrString, isObject, isObjectLike, isPlainObject, isPort, isPromise, isReadableStream, isRegExp, isRgbColor, isSafeInteger, isSemVer, isSet, isSlug, isSparseArray, isString, isStringOrNumber, isStrongPassword, isSymbol, isTypedArray, isUndefined, isUndefinedOrNull, isURL, isUUID, 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;
5
5
  declare const isReact18: boolean, isReact19: boolean;
6
- export declare function isEmptyReactNode(element: any, trim?: boolean): boolean;
6
+ export declare function isEmptyReactNode(element: unknown, trim?: boolean): element is null | undefined | false | '' | [];
7
7
  export declare function isReactComponentAndNotFragment(element: React.ReactElement): element is never;
8
- export declare function isReactComponent(element: any): boolean;
9
- export declare function isReactClassComponent(element: any): boolean;
10
- export declare function isElementByInstanceof(element: Element): boolean;
11
- export declare function isScrollElement(element: HTMLElement): boolean;
12
- 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, 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, isNull, isNullOrUndefined, isNumber, isNumberOrString, isObject, isObjectLike, isPlainObject, isPort, isPromise, isReact18, isReact19, isReadableStream, isRegExp, isRgbColor, isSafeInteger, isSemVer, isServerRendering, isSet, isSlug, isSparseArray, isString, isStringOrNumber, isStrongPassword, isSymbol, isTypedArray, isUndefined, isURL, isUUID, isVariableWidth, isWeakMap, isWeakSet, isWindow, };
8
+ export declare function isReactComponent(element?: React.ReactElement): element is React.ReactElement;
9
+ export declare function isReactClassComponent(element?: React.ReactElement): element is React.ReactElement;
10
+ export declare function isElementByInstanceof(element?: unknown): element is Element;
11
+ export declare function isHTMLElement(element?: unknown): element is HTMLElement;
12
+ 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, 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, isNull, isNullOrUndefined, isNumber, isNumberOrString, isObject, isObjectLike, isPlainObject, isPort, isPromise, isReact18, isReact19, isReadableStream, isRegExp, isRgbColor, isSafeInteger, isSemVer, isServerRendering, isSet, isSlug, isSparseArray, isString, isStringOrNumber, isStrongPassword, isSymbol, isTypedArray, isUndefined, isUndefinedOrNull, isURL, isUUID, isVariableWidth, isWeakMap, isWeakSet, isWindow, };
package/utils/is.js CHANGED
@@ -1,32 +1,35 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
2
  import e, { isValidElement as t } from "react";
3
3
  import { isBrowser as n } from "@unicom-cloud/utils/constant/platform";
4
- import { is32Bit as r, isAllChinese as i, isArguments as a, isArray as ee, isArrayAndNotEmpty as te, isArrayBuffer as ne, isArrayEmpty as re, isArrayLike as ie, isArrayLikeObject as o, isAscii as s, isAsyncFunction as c, isBase64 as l, isBigInt as u, isBlob as d, isBoolean as f, isBuffer as p, isChinese as m, isColorValue as h, isDataURI as g, isDate as _, isElement as v, isEmail as y, isEmpty as b, isEmptyArray as x, isEmptyObject as S, isEmptyValue as C, isEqual as w, isEqualWith as T, isError as E, isEventTarget as D, isExist 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 Y, isMatchWith as ae, isMimeType as oe, isMobilePhone as se, isMobilePhoneLocales as ce, isNaN as le, isNative as ue, isNil as de, isNull as fe, isNullOrUndefined as X, isNumber as pe, isNumberOrString as me, isObject as he, isObjectLike as ge, isPlainObject as _e, isPort as ve, isPromise as ye, isReadableStream as be, isRegExp as xe, isRgbColor as Se, isSafeInteger as Ce, isSemVer as we, isSet as Te, isSlug as Ee, isSparseArray as De, isString as Z, isStringOrNumber as Oe, isStrongPassword as ke, isSymbol as Ae, isTypedArray as je, isURL as Me, isUUID as Ne, isUndefined as Pe, isVariableWidth as Fe, isWeakMap as Q, isWeakSet as Ie, isWindow as Le } from "@unicom-cloud/utils/is";
5
- import { isDayjs as Re } from "dayjs";
6
- import ze from "react-dom";
7
- import { isFragment as Be } from "react-is";
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, isFile as O, isFinite as k, isFullWidth as A, isFunction as j, isHSL as M, isHalfWidth as N, isHash as P, isHexColor as F, isIMEI as I, isIP as L, isIPRange as R, isIdentityCard as z, isInteger as B, isJSON as V, isJSON_String as H, isJWT as U, isLength as W, isMACAddress as G, isMD5 as K, isMap as q, isMatch as J, isMatchWith as oe, isMimeType as se, isMobilePhone as ce, isMobilePhoneLocales as le, isNaN as ue, isNative as de, isNil as fe, isNull as pe, isNullOrUndefined as Y, isNumber as me, isNumberOrString as he, isObject as ge, isObjectLike as _e, isPlainObject as ve, isPort as ye, isPromise as be, isReadableStream as xe, isRegExp as Se, isRgbColor as Ce, isSafeInteger as we, isSemVer as Te, isSet as Ee, isSlug as De, isSparseArray as Oe, isString as X, isStringOrNumber as ke, isStrongPassword as Ae, isSymbol as je, isTypedArray as Me, isURL as Ne, isUUID as Pe, isUndefined as Fe, isUndefinedOrNull as Ie, isVariableWidth as Le, isWeakMap as Re, isWeakSet as ze, isWindow as Be } from "@unicom-cloud/utils/is";
5
+ import { isDayjs as Ve } from "dayjs";
6
+ import He from "react-dom";
7
+ import { isFragment as Ue } from "react-is";
8
8
  //#region components/common/utils/is.ts
9
- var Ve = !n, [He, Ue] = [18, 19].map((t, n, r) => {
10
- let i = (e.version || ze.version || "").match(/\d+/).toString();
11
- return t <= parseFloat(i);
9
+ var Z = !n, [We, Ge] = [18, 19].map((t, n, r) => {
10
+ let i = e.version || He.version || "", a = /\d+/.exec(i)?.[0] ?? "";
11
+ return t <= parseFloat(a);
12
12
  });
13
- function We(e, t) {
14
- return !!(X(e) || e === !1 || Z(e) && (t ? e.trim() === "" : e === "") || x(e));
13
+ function Ke(e, t) {
14
+ return !!(Y(e) || e === !1 || X(e) && (t ? e.trim() === "" : e === "") || b(e));
15
15
  }
16
- function Ge(e) {
17
- return t(e) && !Be(e);
16
+ function qe(e) {
17
+ return t(e) && !Ue(e);
18
18
  }
19
- function $(e) {
20
- return t(e) && M(e.type);
19
+ function Q(e) {
20
+ return t(e) && j(e.type);
21
21
  }
22
- function Ke(e) {
23
- return $(e) && !!e.type.prototype?.isReactComponent;
22
+ function Je(e) {
23
+ return Q(e) && !!e.type?.prototype?.isReactComponent;
24
24
  }
25
- function qe(e) {
25
+ function Ye(e) {
26
26
  return e instanceof Element;
27
27
  }
28
- function Je(e) {
29
- if (!(e instanceof HTMLElement) || [document.documentElement].includes(e)) return !1;
28
+ function $(e) {
29
+ return e instanceof HTMLElement;
30
+ }
31
+ function Xe(e) {
32
+ if (!$(e) || [document.documentElement].includes(e)) return !1;
30
33
  let t = window.getComputedStyle(e), n = [
31
34
  "auto",
32
35
  "scroll",
@@ -35,5 +38,5 @@ function Je(e) {
35
38
  return e.scrollHeight > e.offsetHeight && n.includes(t.overflowY) || e.scrollWidth > e.offsetWidth && n.includes(t.overflowX);
36
39
  }
37
40
  //#endregion
38
- export { r as is32Bit, i as isAllChinese, a as isArguments, ee as isArray, te as isArrayAndNotEmpty, ne as isArrayBuffer, re as isArrayEmpty, ie as isArrayLike, o as isArrayLikeObject, s as isAscii, c as isAsyncFunction, l as isBase64, u as isBigInt, d as isBlob, f as isBoolean, p as isBuffer, m as isChinese, h as isColorValue, g as isDataURI, _ as isDate, Re as isDayjs, v as isElement, qe as isElementByInstanceof, y as isEmail, b as isEmpty, x as isEmptyArray, S as isEmptyObject, We as isEmptyReactNode, C as isEmptyValue, w as isEqual, T as isEqualWith, E as isError, D as isEventTarget, O as isExist, k as isFile, A as isFinite, j as isFullWidth, M as isFunction, N as isHSL, 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, Y as isMatch, ae as isMatchWith, oe as isMimeType, se as isMobilePhone, ce as isMobilePhoneLocales, le as isNaN, ue as isNative, de as isNil, fe as isNull, X as isNullOrUndefined, pe as isNumber, me as isNumberOrString, he as isObject, ge as isObjectLike, _e as isPlainObject, ve as isPort, ye as isPromise, He as isReact18, Ue as isReact19, Ke as isReactClassComponent, $ as isReactComponent, Ge as isReactComponentAndNotFragment, be as isReadableStream, xe as isRegExp, Se as isRgbColor, Ce as isSafeInteger, Je as isScrollElement, we as isSemVer, Ve as isServerRendering, Te as isSet, Ee as isSlug, De as isSparseArray, Z as isString, Oe as isStringOrNumber, ke as isStrongPassword, Ae as isSymbol, je as isTypedArray, Me as isURL, Ne as isUUID, Pe as isUndefined, Fe as isVariableWidth, Q as isWeakMap, Ie as isWeakSet, Le as isWindow };
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, Ve as isDayjs, _ as isElement, Ye as isElementByInstanceof, v as isEmail, y as isEmpty, b as isEmptyArray, x as isEmptyObject, Ke as isEmptyReactNode, S as isEmptyValue, C as isEqual, w as isEqualWith, T as isError, E as isEventTarget, D as isExist, O as isFile, k as isFinite, A as isFullWidth, j as isFunction, M as isHSL, $ as isHTMLElement, N as isHalfWidth, P as isHash, F as isHexColor, I as isIMEI, L as isIP, R as isIPRange, z as isIdentityCard, B as isInteger, V as isJSON, H as isJSON_String, U as isJWT, W as isLength, G as isMACAddress, K as isMD5, q as isMap, J as isMatch, oe as isMatchWith, se as isMimeType, ce as isMobilePhone, le as isMobilePhoneLocales, ue as isNaN, de as isNative, fe as isNil, pe as isNull, Y as isNullOrUndefined, me as isNumber, he as isNumberOrString, ge as isObject, _e as isObjectLike, ve as isPlainObject, ye as isPort, be as isPromise, We as isReact18, Ge as isReact19, Je as isReactClassComponent, Q as isReactComponent, qe as isReactComponentAndNotFragment, xe as isReadableStream, Se as isRegExp, Ce as isRgbColor, we as isSafeInteger, Xe as isScrollElement, Te as isSemVer, Z as isServerRendering, Ee as isSet, De as isSlug, Oe as isSparseArray, X as isString, ke as isStringOrNumber, Ae as isStrongPassword, je as isSymbol, Me as isTypedArray, Ne as isURL, Pe as isUUID, Fe as isUndefined, Ie as isUndefinedOrNull, Le as isVariableWidth, Re as isWeakMap, ze as isWeakSet, Be as isWindow };
39
42
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
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-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
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-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
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-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
2
  //#region components/common/utils/mergeProps.ts
3
3
  function e(e, t, n, r) {
4
4
  let i = t || {}, a = n || {}, o = e || {}, s = r ? new Set(r) : new Set(Object.keys(o).concat(Object.keys(i)).concat(Object.keys(a))), c = {};
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
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-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
2
  import { isFunction as e } from "./is.js";
3
3
  import t from "lodash/throttle";
4
4
  //#region components/common/utils/mutationObserver.ts
package/utils/omit.d.ts CHANGED
@@ -1,3 +1,7 @@
1
- declare function omit<T extends object, K extends keyof T>(object: T, keys: Array<K | string>): Omit<T, K>;
1
+ declare const omit: {
2
+ <T extends object, K extends import("lodash").PropertyName[]>(object: T | null | undefined, ...paths: K): Pick<T, Exclude<keyof T, K[number]>>;
3
+ <T extends object, K extends keyof T>(object: T | null | undefined, ...paths: Array<import("lodash").Many<K>>): import("lodash").Omit<T, K>;
4
+ <T extends object>(object: T | null | undefined, ...paths: Array<import("lodash").Many<import("lodash").PropertyName>>): import("lodash").PartialObject<T>;
5
+ };
2
6
  export { omit };
3
7
  export default omit;
package/utils/omit.js CHANGED
@@ -1,11 +1,7 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
+ import e from "lodash/omit";
2
3
  //#region components/common/utils/omit.ts
3
- function e(e, t) {
4
- let n = { ...e };
5
- return t.forEach((e) => {
6
- e in n && delete n[e];
7
- }), n;
8
- }
4
+ var t = e;
9
5
  //#endregion
10
- export { e as default, e as omit };
6
+ export { t as default, t as omit };
11
7
  /* 独立思考,明辨是非 */
package/utils/pad.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
2
  //#region components/common/utils/pad.ts
3
3
  function e(t, n, r = " ") {
4
4
  let i = String(t);
package/utils/pick.d.ts CHANGED
@@ -1,4 +1,7 @@
1
- declare function pick<T extends object, K extends keyof T>(o: T, keys: Array<K | string>): Pick<T, K>;
1
+ declare const pick: {
2
+ <T extends object, U extends keyof T>(object: T, ...props: Array<import("lodash").Many<U>>): Pick<T, U>;
3
+ <T>(object: T | null | undefined, ...props: Array<import("lodash").Many<import("lodash").PropertyPath>>): import("lodash").PartialObject<T>;
4
+ };
2
5
  declare function pickDataAttributes<T extends object, K extends keyof T>(o: T | undefined): {
3
6
  [key in K]: unknown;
4
7
  };
package/utils/pick.js CHANGED
@@ -1,18 +1,13 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
+ import e from "lodash/pick";
2
3
  //#region components/common/utils/pick.ts
3
- function e(e, t) {
4
- let n = {};
5
- return t.forEach((t) => {
6
- let r = t;
7
- t in e && (n[r] = e[r]);
8
- }), n;
9
- }
10
- function t(e) {
4
+ var t = e;
5
+ function n(e) {
11
6
  let t = {};
12
7
  return Object.entries(e ?? {}).forEach(([e, n], r, i) => {
13
8
  e.startsWith("data-") && (t[e] = n), e.startsWith("aria-") && (t[e] = n);
14
9
  }), t;
15
10
  }
16
11
  //#endregion
17
- export { e as default, e as pick, t as pickDataAttributes };
12
+ export { t as default, t as pick, n as pickDataAttributes };
18
13
  /* 独立思考,明辨是非 */
package/utils/pinyin.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
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-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
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
package/utils/ref.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
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";
@@ -17,7 +17,7 @@ var c = (n, r) => {
17
17
  function d(t) {
18
18
  if (!t) return !1;
19
19
  if (r(t) && n) return !0;
20
- let i = s(t) ? t.type.type : t.type;
20
+ let i = s(t) ? t.type?.type : t.type;
21
21
  return !(e(i) && !i.prototype?.render && i.$$typeof !== o || e(t) && !t.prototype?.render && t.$$typeof !== o);
22
22
  }
23
23
  var f = (e) => r(e) && d(e);
@@ -1,31 +1,31 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
2
- import { isFunction as e } from "./is.js";
3
- import { NOOP as t } from "./constant.js";
4
- import n from "lodash/throttle";
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
+ import { isElementByInstanceof as e, isFunction as t } from "./is.js";
3
+ import { NOOP as n } from "./constant.js";
4
+ import r from "lodash/throttle";
5
5
  //#region components/common/utils/resizeObserver.ts
6
- function r(r, i) {
7
- let a = [].concat(r).filter((e, t, n) => e instanceof Element);
8
- if (!(a.length && e(i))) return t;
9
- let o, s = n((...e) => {
10
- l(), o = window.requestAnimationFrame(() => {
11
- i(...e);
6
+ function i(i, a) {
7
+ let o = [].concat(i).filter((t, n, r) => e(t));
8
+ if (!(o.length && t(a))) return n;
9
+ let s, c = r((...e) => {
10
+ u(), s = window.requestAnimationFrame(() => {
11
+ a(...e);
12
12
  });
13
- }, 227), c = new ResizeObserver(s);
14
- a.forEach((e, t, n) => {
15
- c.observe(e);
13
+ }, 227), l = new ResizeObserver(c);
14
+ o.forEach((e, t, n) => {
15
+ l.observe(e);
16
16
  });
17
- function l() {
18
- o && window.cancelAnimationFrame(o);
19
- }
20
17
  function u() {
21
- a.forEach((e, t, n) => {
22
- c.unobserve(e);
23
- }), c.disconnect(), s.cancel(), l();
18
+ s && window.cancelAnimationFrame(s);
19
+ }
20
+ function d() {
21
+ o.forEach((e, t, n) => {
22
+ l.unobserve(e);
23
+ }), l.disconnect(), c.cancel(), u();
24
24
  }
25
25
  return () => {
26
- u();
26
+ d();
27
27
  };
28
28
  }
29
29
  //#endregion
30
- export { r as default, r as resizeObserver };
30
+ export { i as default, i as resizeObserver };
31
31
  /* 独立思考,明辨是非 */
package/utils/saveAs.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
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-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
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-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
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-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
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-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
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-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
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-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
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-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
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-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
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-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
2
  //#region components/common/utils/style.ts
3
3
  var e = [
4
4
  "transform",
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
2
  //#region components/common/utils/throttleByRaf.ts
3
3
  function e(e, t = 1) {
4
4
  let n = null;
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
2
  import e from "./throttleByRaf.js";
3
3
  //#region components/common/utils/throttleByRaf2.ts
4
4
  function t(t) {
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
2
  import "../.virtual/_rolldown/runtime.js";
3
3
  import e, { default as t } from "@unicom-cloud/utils/tinycolor";
4
4
  export * from "@unicom-cloud/utils/tinycolor";
package/utils/toArray.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
2
  import { isArray as e, isNullOrUndefined as t } from "./is.js";
3
3
  import n from "react";
4
4
  import { isFragment as r } from "react-is";
package/utils/tree.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
2
  import e, { findNodeBy as t, getChildWithParentBy as n, getItemBy as r, getItemByID as i, getLabelFromDictionaryByValue as a, searchTree as o, default as s } from "@unicom-cloud/utils/tree";
3
3
  export { s as default, t as findNodeBy, n as getChildWithParentBy, r as getItemBy, i as getItemByID, a as getLabelFromDictionaryByValue, o as searchTree, e as tree };
4
4
  /* 独立思考,明辨是非 */
package/utils/tween.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
2
  import e, { easing as t, default as n } from "@unicom-cloud/utils/tween";
3
3
  export { e as Tween, n as default, t as easing };
4
4
  /* 独立思考,明辨是非 */
package/utils/uuid.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
2
  import { v4 as e, v4 as t, v4 as n } from "uuid";
3
3
  export { t as default, e as uuid, n as uuidv4 };
4
4
  /* 独立思考,明辨是非 */
package/utils/validate.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
2
  import { PqbValidator as e, Validator as t, ValidatorArray as n, ValidatorBase as r, ValidatorBoolean as i, ValidatorCustom as a, ValidatorNumber as o, ValidatorObject as s, ValidatorSchema as c, ValidatorString as l, ValidatorType as u, validatorLocale as d } from "@unicom-cloud/utils/validate";
3
3
  export { e as PqbValidator, t as Validator, n as ValidatorArray, r as ValidatorBase, i as ValidatorBoolean, a as ValidatorCustom, o as ValidatorNumber, s as ValidatorObject, c as ValidatorSchema, l as ValidatorString, u as ValidatorType, d as validatorLocale };
4
4
  /* 独立思考,明辨是非 */
package/utils/warning.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
2
  //#region components/common/utils/warning.ts
3
3
  function e(e, t, ...n) {}
4
4
  //#endregion
package/version/index.js CHANGED
@@ -1,30 +1,27 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
2
  //#region components/common/version/index.ts
3
3
  var e = {
4
4
  name: "潘启宝",
5
- date: "2026-03-24 15:26:24",
5
+ date: "2026-04-14 16:51:31",
6
6
  platform: "darwin",
7
7
  arch: "arm64",
8
8
  hostname: "Mac-mini-2.local",
9
9
  username: "panqibao",
10
10
  cpu: "Apple M4",
11
11
  endianness: "LE",
12
- release: "Darwin25.3.0",
13
- uptime: 96827,
14
- UUID: "18d1342e-ca54-4413-b159-540843f9e73b",
15
- mac: "7e:e5:4c:28:04:53",
12
+ release: "Darwin25.4.0",
13
+ uptime: 114486,
14
+ UUID: "271f3641-f09a-4a68-9467-6ba636d3fd6e",
15
+ mac: "c2:98:65:c4:08:09",
16
16
  version: {
17
- node: "v24.14.0",
17
+ node: "24.14.0",
18
18
  npm: "11.9.0",
19
- vite: "8.0.2",
20
- rolldown: "1.0.0-rc.11",
19
+ vite: "8.0.8",
20
+ rolldown: "1.0.0-rc.15",
21
21
  self: "0.0.0",
22
- react: "19.2.4",
23
- redux: "5.0.1",
24
- reactRedux: "9.2.0",
25
- reactRouter: "7.13.2"
22
+ react: "19.2.5"
26
23
  }
27
- }, t = "2026-03-24 15:26:24", n = "1774337184473", r = "0.1.0";
24
+ }, t = "2026-04-14 16:51:31", n = "1776156691487", r = "0.1.0";
28
25
  //#endregion
29
26
  export { r as VERSION, r as default, t as VERSION_BUILD_DATE, e as VERSION_BUILD_INFO, n as VERSION_BUILD_TIME };
30
27
  /* 独立思考,明辨是非 */
@@ -1,77 +0,0 @@
1
- import React from 'react';
2
- import type { MotionEndEventHandler, MotionEventHandler, MotionPrepareEventHandler, MotionStatus } from './interface';
3
- export interface CSSMotionRef {
4
- nativeElement: HTMLElement;
5
- inMotion: () => boolean;
6
- enableMotion: () => boolean;
7
- }
8
- export type CSSMotionConfig = boolean | {
9
- transitionSupport?: boolean;
10
- };
11
- export type MotionName = string | {
12
- appear?: string;
13
- enter?: string;
14
- leave?: string;
15
- appearActive?: string;
16
- enterActive?: string;
17
- leaveActive?: string;
18
- };
19
- export interface CSSMotionProps {
20
- motionName?: MotionName;
21
- visible?: boolean;
22
- motionAppear?: boolean;
23
- motionEnter?: boolean;
24
- motionLeave?: boolean;
25
- motionLeaveImmediately?: boolean;
26
- motionDeadline?: number;
27
- /**
28
- * Create element in view even the element is invisible.
29
- * Will patch `display: none` style on it.
30
- */
31
- forceRender?: boolean;
32
- /**
33
- * Remove element when motion end. This will not work when `forceRender` is set.
34
- */
35
- removeOnLeave?: boolean;
36
- leavedClassName?: string;
37
- /** @private Used by CSSMotionList. Do not use in your production. */
38
- eventProps?: object;
39
- /** Prepare phase is used for measure element info. It will always trigger even motion is off */
40
- onAppearPrepare?: MotionPrepareEventHandler;
41
- /** Prepare phase is used for measure element info. It will always trigger even motion is off */
42
- onEnterPrepare?: MotionPrepareEventHandler;
43
- /** Prepare phase is used for measure element info. It will always trigger even motion is off */
44
- onLeavePrepare?: MotionPrepareEventHandler;
45
- onAppearStart?: MotionEventHandler;
46
- onEnterStart?: MotionEventHandler;
47
- onLeaveStart?: MotionEventHandler;
48
- onAppearActive?: MotionEventHandler;
49
- onEnterActive?: MotionEventHandler;
50
- onLeaveActive?: MotionEventHandler;
51
- onAppearEnd?: MotionEndEventHandler;
52
- onEnterEnd?: MotionEndEventHandler;
53
- onLeaveEnd?: MotionEndEventHandler;
54
- /** This will always trigger after final visible changed. Even if no motion configured. */
55
- onVisibleChanged?: (visible: boolean) => void;
56
- internalRef?: React.Ref<unknown>;
57
- children?: (props: {
58
- visible?: boolean;
59
- className?: string;
60
- style?: React.CSSProperties;
61
- [key: string]: unknown;
62
- }, ref: React.Ref<unknown>) => React.ReactElement;
63
- }
64
- export interface CSSMotionState {
65
- status?: MotionStatus;
66
- statusActive?: boolean;
67
- newStatus?: boolean;
68
- statusStyle?: React.CSSProperties;
69
- prevProps?: CSSMotionProps;
70
- }
71
- /**
72
- * `transitionSupport` is used for none transition test case.
73
- * Default we use browser transition event support check.
74
- */
75
- export declare function genCSSMotion(config: CSSMotionConfig): React.ForwardRefExoticComponent<CSSMotionProps & React.RefAttributes<CSSMotionRef>>;
76
- declare const _default: React.ForwardRefExoticComponent<CSSMotionProps & React.RefAttributes<CSSMotionRef>>;
77
- export default _default;