ono-react-element 0.0.30 → 0.1.0

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 (189) hide show
  1. package/dist/es/AutoSliderList-drdrxgEX.js +1 -0
  2. package/dist/es/{AvatarCrop-CSkrjAcy.js → AvatarCrop-Cn9RwTGU.js} +1 -1
  3. package/dist/es/Button-CWqApx4k.js +1 -0
  4. package/dist/es/{Card3D-DrfpLxw2.js → Card3D-C1ddJnYV.js} +1 -1
  5. package/dist/es/Carousel-D7JsU-he.js +1 -0
  6. package/dist/es/Checkbox-C6L0UHHG.js +1 -0
  7. package/dist/es/ContextMenu-Cg72hSPN.js +1 -0
  8. package/dist/es/FileDropZone-CQy4SsUO.js +1 -0
  9. package/dist/es/{InjunctiveBox-vLlRm8LB.js → InjunctiveBox-DsNUniss.js} +1 -1
  10. package/dist/es/Input-CdxX4nzt.js +1 -0
  11. package/dist/es/{MenuButton-M93IpBnN.js → MenuButton-CjudK6uV.js} +1 -1
  12. package/dist/es/Message-CXBf5Xji.js +1 -0
  13. package/dist/es/Modal-Cq9ZPw9X.js +1 -0
  14. package/dist/es/{Pagination-L17GYQVO.js → Pagination-wxdQuNM4.js} +1 -1
  15. package/dist/es/{PortalRenderer-izu9LyVc.js → PortalRenderer-CUaab_Kw.js} +1 -1
  16. package/dist/es/Radio-pth5zZkE.js +1 -0
  17. package/dist/es/ScrollableTabs-CNuEx01I.js +1 -0
  18. package/dist/es/Select-CprTy0VT.js +1 -0
  19. package/dist/es/SvgImg-D2DeoPaA.js +1 -0
  20. package/dist/es/Switch-CQJGc1NQ.js +1 -0
  21. package/dist/es/TemplateDialog-DAzyCsXv.js +1 -0
  22. package/dist/es/Toast-1MB_CUWF.js +1 -0
  23. package/dist/es/Tooltip-7uWxsj7r.js +1 -0
  24. package/dist/es/VirtualList-DThIEdea.js +1 -0
  25. package/dist/es/Waterfall-CDXm71jP.js +1 -0
  26. package/dist/es/adjustColor.ts-D1ttRO_o.js +1 -0
  27. package/dist/es/adjustingColors.ts-CQV_S12M.js +1 -0
  28. package/dist/es/base64ToBlob.ts-BpYnI1_k.js +1 -0
  29. package/dist/es/base64ToFile.ts-B526yxVq.js +1 -0
  30. package/dist/es/blobToBase64.ts-CJROQ7nO.js +1 -0
  31. package/dist/es/blobToFile.ts-CjkxPmEw.js +1 -0
  32. package/dist/es/changeThemeClipPathCircle.ts-CHY9pNkk.js +1 -0
  33. package/dist/es/clearAsyncContagion.ts-DseR8G-S.js +1 -0
  34. package/dist/es/controlTheScrollbarScrolling.ts-WYW8laxj.js +1 -0
  35. package/dist/es/convertSecondToOtherTime.ts-BlSK8Hsn.js +1 -0
  36. package/dist/es/createIntersectionObserver.ts-CPwdNz7M.js +1 -0
  37. package/dist/es/dayOfYear.ts-FVQlJIhw.js +1 -0
  38. package/dist/es/dependencies-D-GIrksw.js +15480 -0
  39. package/dist/es/distinguishPlatform.ts-BITl3t1o.js +1 -0
  40. package/dist/es/distinguishPlatformDelay.ts-DupUPv6F.js +1 -0
  41. package/dist/es/downloadFile.ts-C5v3gvXJ.js +1 -0
  42. package/dist/es/elementIsInViewport.ts-DnBd8TjE.js +1 -0
  43. package/dist/es/event-BIaLzjOy.js +1 -0
  44. package/dist/es/fileToBase64.ts-LDhPtYZ8.js +1 -0
  45. package/dist/es/fileToBlob.ts-C4Y1I82u.js +1 -0
  46. package/dist/es/formatColor.ts-D_Sws4M1.js +1 -0
  47. package/dist/es/formatFileSize.ts-CoUwKtCA.js +1 -0
  48. package/dist/es/formatSecond.ts-Dc436DN-.js +1 -0
  49. package/dist/es/formatTime.ts-BY0hrdXI.js +1 -0
  50. package/dist/es/getBrowserInfo.ts-CFS4Oz41.js +1 -0
  51. package/dist/es/getColorType.ts-B5Qax_03.js +1 -0
  52. package/dist/es/getContrastColor.ts-vmwZYf4O.js +1 -0
  53. package/dist/es/getFileName.ts-CAdDeTqT.js +1 -0
  54. package/dist/es/getFileSuffix.ts-RBCEexOt.js +1 -0
  55. package/dist/es/grayColor.ts-BeAK97Od.js +1 -0
  56. package/dist/es/hex2hsl.ts-fQ072W3P.js +1 -0
  57. package/dist/es/hex2hsv.ts-Bewjcepy.js +1 -0
  58. package/dist/es/hex2rgb.ts-tP-M30oZ.js +1 -0
  59. package/dist/es/hex3To6.ts-epLJiP-G.js +1 -0
  60. package/dist/es/hsl2hex.ts-BILOsbJk.js +1 -0
  61. package/dist/es/hsl2rgb.ts-DCdzknv1.js +1 -0
  62. package/dist/es/hsv2hex.ts-U8Md-VPN.js +1 -0
  63. package/dist/es/hsv2rgb.ts-C4AdDfKf.js +1 -0
  64. package/dist/es/index.js +1 -1
  65. package/dist/es/isValidColor.ts-oChVkAT9.js +1 -0
  66. package/dist/es/localFormat.ts-B32R_kV4.js +1 -0
  67. package/dist/es/randomColor.ts-BiDP87Yi.js +1 -0
  68. package/dist/es/rgb2hex.ts-itJEWSC0.js +1 -0
  69. package/dist/es/rgb2hsl.ts-BmthoL_h.js +1 -0
  70. package/dist/es/rgb2hsv.ts-o8o8uIwc.js +1 -0
  71. package/dist/es/rgb2rgba.ts-ZXQCbTkT.js +1 -0
  72. package/dist/es/second2Day.ts-XjEpcvCc.js +1 -0
  73. package/dist/es/urlToBase64.ts-DzO1pwIZ.js +1 -0
  74. package/dist/es/urlToBlob.ts-DmOp0wbt.js +1 -0
  75. package/dist/es/urlToFile.ts-KrTFcI-e.js +1 -0
  76. package/dist/es/useClickOutSide.tsx-Drp6uYap.js +1 -0
  77. package/dist/es/useCountdown.tsx-BHrpYPuf.js +1 -0
  78. package/dist/es/{useEventListener.tsx-C8V9Qip6.js → useEventListener.tsx-BDtH_FiI.js} +1 -1
  79. package/dist/es/{useGetElementSize.tsx-DML7z5Xp.js → useGetElementSize.tsx-CYGNJaFz.js} +1 -1
  80. package/dist/es/useKeyPress.tsx-ClBLUMui.js +1 -0
  81. package/dist/es/{useMouseClick.tsx-BmzbuM6X.js → useMouseClick.tsx-nz5umn7V.js} +1 -1
  82. package/dist/es/useThemePro.tsx-MwfY4tCX.js +1 -0
  83. package/dist/types/event/eventEmitter.d.ts +3 -1
  84. package/dist/types/hooks/useClickOutSide.d.ts +4 -9
  85. package/dist/types/hooks/useEventListener.d.ts +3 -6
  86. package/dist/types/hooks/useGetElementSize.d.ts +1 -2
  87. package/dist/types/hooks/useKeyPress.d.ts +7 -10
  88. package/dist/types/hooks/useTheme.d.ts +5 -6
  89. package/dist/types/hooks/useThemePro.d.ts +1 -1
  90. package/dist/types/index.d.ts +7 -4
  91. package/dist/types/utils/async2sync/clearAsyncContagion.d.ts +1 -0
  92. package/dist/types/utils/browser/getBrowserInfo.d.ts +2 -0
  93. package/dist/types/utils/color/adjustingColors.d.ts +0 -7
  94. package/dist/types/utils/color/formatColor.d.ts +1 -3
  95. package/dist/types/utils/color/getColorType.d.ts +1 -1
  96. package/dist/types/utils/common/controlTheScrollbarScrolling.d.ts +7 -0
  97. package/dist/types/utils/file/downloadFile.d.ts +0 -5
  98. package/dist/types/utils/intersectionObserver/createIntersectionObserver.d.ts +1 -0
  99. package/dist/types/utils/intersectionObserver/elementIsInViewport.d.ts +5 -0
  100. package/dist/types/utils/platform/distinguishPlatform.d.ts +1 -6
  101. package/dist/types/utils/platform/distinguishPlatformDelay.d.ts +1 -2
  102. package/dist/types/utils/time/convertTimestamp.d.ts +1 -1
  103. package/dist/types/utils/time/dateFormat.d.ts +1 -2
  104. package/dist/types/utils/time/localFormat.d.ts +3 -2
  105. package/dist/types/utils/time/monthFormat.d.ts +1 -2
  106. package/dist/types/utils/time/yearFormat.d.ts +1 -2
  107. package/dist/types/utils/viewTransition/changeThemeClipPathCircle.d.ts +6 -0
  108. package/dist/umd/index.umd.cjs +1 -1
  109. package/dist/umd/index.umd.cjs.br +0 -0
  110. package/dist/umd/index.umd.cjs.gz +0 -0
  111. package/package.json +3 -7
  112. package/dist/es/AutoSliderList-CVDZG5cu.js +0 -1
  113. package/dist/es/Button-P2AG5fc6.js +0 -1
  114. package/dist/es/Carousel-DOesUSmW.js +0 -1
  115. package/dist/es/Checkbox-DJYMF9I4.js +0 -1
  116. package/dist/es/ContextMenu-DlhlsQrA.js +0 -1
  117. package/dist/es/FileDropZone-BSLGVa4n.js +0 -1
  118. package/dist/es/Input-Hy30rZ_v.js +0 -1
  119. package/dist/es/Message-COQA0S8d.js +0 -1
  120. package/dist/es/Modal-CJrgmTMc.js +0 -1
  121. package/dist/es/Radio-CEooiIll.js +0 -1
  122. package/dist/es/ScrollableTabs-okdQWyZ9.js +0 -1
  123. package/dist/es/Select-bhQ7DjXD.js +0 -1
  124. package/dist/es/SvgImg-D_jzo9p9.js +0 -1
  125. package/dist/es/Switch-DZ-GXwol.js +0 -1
  126. package/dist/es/TemplateDialog-iy7z7joV.js +0 -1
  127. package/dist/es/Toast-CZw9LQzq.js +0 -1
  128. package/dist/es/Tooltip-DvUB7xZH.js +0 -1
  129. package/dist/es/VirtualList-CoQKjvuB.js +0 -1
  130. package/dist/es/Waterfall-B9EXJfxK.js +0 -1
  131. package/dist/es/adjustColor.ts-Bcmtt429.js +0 -1
  132. package/dist/es/adjustingColors.ts-CpC0GUUO.js +0 -1
  133. package/dist/es/async2syncUtils.ts-DkF1iSK4.js +0 -1
  134. package/dist/es/base64ToBlob.ts-TfYiqeZD.js +0 -1
  135. package/dist/es/base64ToFile.ts-DMMwTaBr.js +0 -1
  136. package/dist/es/blobToBase64.ts-CPZTWtAM.js +0 -1
  137. package/dist/es/blobToFile.ts-BXmUv6W-.js +0 -1
  138. package/dist/es/browserUtils.ts-DSM1TN_g.js +0 -1
  139. package/dist/es/convertSecondToOtherTime.ts-BJegkJhl.js +0 -1
  140. package/dist/es/convertTimestamp.ts-DOHA1Ix6.js +0 -1
  141. package/dist/es/dateFormat.ts-DXskLY1N.js +0 -1
  142. package/dist/es/dayOfYear.ts-DdscYtyU.js +0 -1
  143. package/dist/es/dependencies-B7YNjh_z.js +0 -15719
  144. package/dist/es/distinguishPlatform.ts-D2huTxC3.js +0 -1
  145. package/dist/es/downloadFile.ts-1nf2IAw4.js +0 -1
  146. package/dist/es/event-B2tGdMqN.js +0 -1
  147. package/dist/es/fileToBase64.ts-Dx4eMf1P.js +0 -1
  148. package/dist/es/fileToBlob.ts-t5-IVXI8.js +0 -1
  149. package/dist/es/formatColor.ts-BpkK5FYe.js +0 -1
  150. package/dist/es/formatFileSize.ts-DmkABYUs.js +0 -1
  151. package/dist/es/formatSecond.ts-CI2ihnKf.js +0 -1
  152. package/dist/es/formatTime.ts-DNtDsT9L.js +0 -1
  153. package/dist/es/getColorType.ts-B-_g2UQs.js +0 -1
  154. package/dist/es/getContrastColor.ts-5KaKa1G7.js +0 -1
  155. package/dist/es/getFileName.ts-BeGee0uD.js +0 -1
  156. package/dist/es/getFileSuffix.ts-BNoXbi6l.js +0 -1
  157. package/dist/es/grayColor.ts-bqVfONY0.js +0 -1
  158. package/dist/es/hex2hsl.ts-BLU_9tQG.js +0 -1
  159. package/dist/es/hex2hsv.ts-CNUNM2bM.js +0 -1
  160. package/dist/es/hex2rgb.ts-BQpml6Tb.js +0 -1
  161. package/dist/es/hex3To6.ts-BNOY-YJ2.js +0 -1
  162. package/dist/es/hsl2hex.ts-D9xS0UDg.js +0 -1
  163. package/dist/es/hsl2rgb.ts-B6-BIsnP.js +0 -1
  164. package/dist/es/hsv2hex.ts-BNkK519v.js +0 -1
  165. package/dist/es/hsv2rgb.ts-Bvoa3lA1.js +0 -1
  166. package/dist/es/intersectionObserverUtils.ts-BdWvnE4X.js +0 -1
  167. package/dist/es/isValidColor.ts-CpkuoTf9.js +0 -1
  168. package/dist/es/localFormat.ts-vxgGt_Za.js +0 -1
  169. package/dist/es/monthFormat.ts-B_s3ZbNy.js +0 -1
  170. package/dist/es/randomColor.ts-Cf-bUfCt.js +0 -1
  171. package/dist/es/rgb2hex.ts-Dkw9FDV4.js +0 -1
  172. package/dist/es/rgb2hsl.ts-BPiSggZg.js +0 -1
  173. package/dist/es/rgb2hsv.ts-CxNRFDKF.js +0 -1
  174. package/dist/es/rgb2rgba.ts-Dx8-1nZt.js +0 -1
  175. package/dist/es/second2Day.ts-DHntMxxp.js +0 -1
  176. package/dist/es/urlToBase64.ts-t7glJoIV.js +0 -1
  177. package/dist/es/urlToBlob.ts-DDhIhkMn.js +0 -1
  178. package/dist/es/urlToFile.ts-Dp1k4tJm.js +0 -1
  179. package/dist/es/useClickOutSide.tsx-C6XuLZzd.js +0 -1
  180. package/dist/es/useCountdown.tsx-DWqs6wNp.js +0 -1
  181. package/dist/es/useKeyPress.tsx-hgs6v_Jt.js +0 -1
  182. package/dist/es/useThemePro.tsx-B4A9l0LS.js +0 -1
  183. package/dist/es/viewTransitionUtils.ts-C-QehXbC.js +0 -1
  184. package/dist/es/yearFormat.ts-DxbWP43R.js +0 -1
  185. package/dist/types/utils/async2syncUtils.d.ts +0 -5
  186. package/dist/types/utils/browserUtils.d.ts +0 -10
  187. package/dist/types/utils/intersectionObserverUtils.d.ts +0 -15
  188. package/dist/types/utils/viewTransitionUtils.d.ts +0 -9
  189. /package/dist/es/{useTheme.tsx-C-GCpzAS.js → useTheme.tsx-C7aAN-Zj.js} +0 -0
@@ -0,0 +1 @@
1
+ import{j as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as d};
@@ -0,0 +1 @@
1
+ import{k as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as d};
@@ -0,0 +1 @@
1
+ import{m as o}from "./AutoSliderList-drdrxgEX.js";const m=o;export{m as d};
@@ -0,0 +1 @@
1
+ import{o}from "./AutoSliderList-drdrxgEX.js";const s=o;export{s as e};
@@ -0,0 +1 @@
1
+ var i=Object.defineProperty;var r=(s,e,t)=>e in s ? i(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var h=(s,e,t)=>r(s,typeof e!="symbol" ? e+"":e,t);class v{constructor(e){h(this,"events",{});e.forEach((t)=>{this.events[t]=new Set();});}createEvent(e,t=!1){this.events[e]&&!t||(this.events[e]=new Set());}emit(e,...t){if(!this.events[e])throw new Error(`Event ${e}does not exist`);this.events[e].forEach((n)=>{n(...t);});}on(e,t,n=!1){this.createEvent(e,n),this.events[e].add(t);}cancel(e,t){this.events[e]&&this.events[e].delete(t);}clear(e){e ? this.createEvent(e,!0):Object.keys(this.events).forEach((t)=>{this.createEvent(t,!0);});}}let c=null;const o=(s)=>(c||(c=new v(s)),c);export{o as c};
@@ -0,0 +1 @@
1
+ import{s as o}from "./AutoSliderList-drdrxgEX.js";const t=o;export{t as f};
@@ -0,0 +1 @@
1
+ import{q as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as f};
@@ -0,0 +1 @@
1
+ import{u as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as f};
@@ -0,0 +1 @@
1
+ import{w as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as f};
@@ -0,0 +1 @@
1
+ import{x as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as f};
@@ -0,0 +1 @@
1
+ import{y as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as f};
@@ -0,0 +1 @@
1
+ import{z as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as g};
@@ -0,0 +1 @@
1
+ import{A as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as g};
@@ -0,0 +1 @@
1
+ import{B as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as g};
@@ -0,0 +1 @@
1
+ import{C as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as g};
@@ -0,0 +1 @@
1
+ import{D as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as g};
@@ -0,0 +1 @@
1
+ import{E as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as g};
@@ -0,0 +1 @@
1
+ import{F as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as h};
@@ -0,0 +1 @@
1
+ import{G as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as h};
@@ -0,0 +1 @@
1
+ import{H as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as h};
@@ -0,0 +1 @@
1
+ import{I as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as h};
@@ -0,0 +1 @@
1
+ import{J as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as h};
@@ -0,0 +1 @@
1
+ import{K as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as h};
@@ -0,0 +1 @@
1
+ import{L as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as h};
@@ -0,0 +1 @@
1
+ import{M as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as h};
package/dist/es/index.js CHANGED
@@ -1 +1 @@
1
- import{u as x}from "./useClickOutSide.tsx-C6XuLZzd.js";import{u as l}from "./useCountdown.tsx-DWqs6wNp.js";import{u}from "./useEventListener.tsx-C8V9Qip6.js";import{u as g}from "./useGetElementSize.tsx-DML7z5Xp.js";import{u as h}from "./useKeyPress.tsx-hgs6v_Jt.js";import{u as C}from "./useMouseClick.tsx-BmzbuM6X.js";import{u as S}from "./useQuery.tsx-FzGWYq50.js";import{u as y}from "./useTheme.tsx-C-GCpzAS.js";import{u as A}from "./useThemePro.tsx-B4A9l0LS.js";import{a as P,c as w}from "./async2syncUtils.ts-DkF1iSK4.js";import{b as D,g as F}from "./browserUtils.ts-DSM1TN_g.js";import{a as E}from "./adjustColor.ts-Bcmtt429.js";import{a as M}from "./adjustingColors.ts-CpC0GUUO.js";import{f as R}from "./formatColor.ts-BpkK5FYe.js";import{g as z}from "./getColorType.ts-B-_g2UQs.js";import{g as V}from "./getContrastColor.ts-5KaKa1G7.js";import{g as q}from "./grayColor.ts-bqVfONY0.js";import{h as Q}from "./hex2hsl.ts-BLU_9tQG.js";import{h as H}from "./hex2hsv.ts-CNUNM2bM.js";import{h as Y}from "./hex2rgb.ts-BQpml6Tb.js";import{h as X}from "./hex3To6.ts-BNOY-YJ2.js";import{h as $}from "./hsl2hex.ts-D9xS0UDg.js";import{h as ro}from "./hsl2rgb.ts-B6-BIsnP.js";import{h as to}from "./hsv2hex.ts-BNkK519v.js";import{h as so}from "./hsv2rgb.ts-Bvoa3lA1.js";import{i as po}from "./isValidColor.ts-CpkuoTf9.js";import{r as xo}from "./randomColor.ts-Cf-bUfCt.js";import{r as lo}from "./rgb2hex.ts-Dkw9FDV4.js";import{r as uo}from "./rgb2hsl.ts-BPiSggZg.js";import{r as go}from "./rgb2hsv.ts-CxNRFDKF.js";import{r as bo}from "./rgb2rgba.ts-Dx8-1nZt.js";import{a as To}from "./addCommasToNumber.ts-Bc5ZX_HW.js";import{a as vo}from "./addEventWithOriginHandler.ts-CBP4faL-.js";import{c as Oo}from "./calculateAspectRatio.ts-DLTMZ6rT.js";import{c as Io}from "./chainClassNames.ts-B9vmfsc1.js";import{c as wo}from "./checkDeviceIsMobile.ts-D_9fa1Z1.js";import{c as Do}from "./checkStatusCode.ts-CeS5vbbx.js";import{c as ko}from "./copy2Clipboard.ts-D-Ux5BRc.js";import{d as Lo}from "./debounce.ts-DtQl9QX-.js";import{d as No}from "./deepCopy.ts-DZSM2TJ5.js";import{e as Uo}from "./ellipsisString.ts-CEHck07f.js";import{g as Wo}from "./gcd.ts-BCWGat6T.js";import{g as jo}from "./getAllTheNumbers.ts-DaNxVd8a.js";import{g as Go}from "./getElementCenterPosition.ts-CpWYej6j.js";import{g as Zo}from "./getImageSIze.ts-BKCUZEmG.js";import{g as Ko}from "./getPointDistance.ts-oQIzWYT7.js";import{g as Jo}from "./getURLSearchParams.ts-CdkTE_NB.js";import{i as _o}from "./isPureNumber.ts-UvzCfFTt.js";import{m as or}from "./mediaAutoplayPolicies.ts-h8T8o7DV.js";import{p as er}from "./padZero.ts-BTMKlRWN.js";import{p as ar}from "./parseQuery.ts-rxlqkZEE.js";import{p as mr}from "./passwordStrength.ts-BSVicol-.js";import{p as fr}from "./pick.ts-CVf1DuK1.js";import{p as ir}from "./printStr.ts-Nd8JNyzN.js";import{p as nr}from "./pureNumber.ts-LjeTI9RC.js";import{q as cr}from "./quickSort.ts-CTYjJtIg.js";import{r as dr}from "./rafTimeout.ts-atBwwlgC.js";import{r as br}from "./randomString.ts-DpWnx0Kc.js";import{r as Tr}from "./removeTag.ts-K8ovHu9Z.js";import{s as vr}from "./safeCapitalizeWord.ts-CBBsQk5s.js";import{s as Or}from "./singleton.ts-BxAjTJl8.js";import{t as Ir}from "./throttle.ts-D_EqcNzV.js";import{b as wr}from "./base64ToBlob.ts-TfYiqeZD.js";import{b as Dr}from "./base64ToFile.ts-DMMwTaBr.js";import{b as kr}from "./blobToBase64.ts-CPZTWtAM.js";import{b as Lr}from "./blobToFile.ts-BXmUv6W-.js";import{d as Nr}from "./downloadFile.ts-1nf2IAw4.js";import{f as Ur}from "./fileToBase64.ts-Dx4eMf1P.js";import{f as Wr}from "./fileToBlob.ts-t5-IVXI8.js";import{f as jr}from "./formatFileSize.ts-DmkABYUs.js";import{g as Gr}from "./getFileName.ts-BeGee0uD.js";import{g as Zr}from "./getFileSuffix.ts-BNoXbi6l.js";import{u as Kr}from "./urlToBase64.ts-t7glJoIV.js";import{u as Jr}from "./urlToBlob.ts-DDhIhkMn.js";import{u as _r}from "./urlToFile.ts-Dp1k4tJm.js";import{c as oe,e as re,i as ee}from "./intersectionObserverUtils.ts-BdWvnE4X.js";import{d as a}from "./distinguishPlatform.ts-D2huTxC3.js";import{c as ae}from "./convertSecondToOtherTime.ts-BJegkJhl.js";import{d as me}from "./dayOfYear.ts-DdscYtyU.js";import{f as fe}from "./formatSecond.ts-CI2ihnKf.js";import{f as ie}from "./formatTime.ts-DNtDsT9L.js";import{l as ne}from "./localFormat.ts-vxgGt_Za.js";import{s as ce}from "./second2Day.ts-DHntMxxp.js";import{c as de}from "./event-B2tGdMqN.js";import{A as be,D as Ce}from "./AutoSliderList-CVDZG5cu.js";import{A as Se}from "./AvatarCrop-CSkrjAcy.js";import{A as ye,L as Oe}from "./List-DXRmDwDo.js";import{B as Ie}from "./Button-P2AG5fc6.js";import{C as we}from "./Card3D-DrfpLxw2.js";import{C as De}from "./Carousel-DOesUSmW.js";import{C as ke}from "./Checkbox-DJYMF9I4.js";import{c as Le}from "./ContextMenu-DlhlsQrA.js";import{E as Ne,c as Re}from "./VirtualList-CoQKjvuB.js";import{F as ze}from "./FileDropZone-BSLGVa4n.js";import{M as Ve}from "./MenuButton-M93IpBnN.js";import{m as qe}from "./Message-COQA0S8d.js";import{M as Qe}from "./Modal-CJrgmTMc.js";import{O as He,a as Ke}from "./Input-Hy30rZ_v.js";import{O as Je}from "./Select-bhQ7DjXD.js";import{P as _e}from "./Pagination-L17GYQVO.js";import{p as ot}from "./PortalRenderer-izu9LyVc.js";import{R as et,a as tt}from "./Radio-CEooiIll.js";import{S as st}from "./ScrollableTabs-okdQWyZ9.js";import{S as pt}from "./SvgImg-D_jzo9p9.js";import{S as xt}from "./Switch-DZ-GXwol.js";import{T as lt}from "./TemplateDialog-iy7z7joV.js";import{t as ut}from "./Toast-CZw9LQzq.js";import{T as gt}from "./Tooltip-DvUB7xZH.js";import{W as ht}from "./Waterfall-B9EXJfxK.js";const m=({onAndroid:o,onIOS:r,onUnknown:e,timeout:t=500})=>()=>{setTimeout(()=>a({onAndroid:o,onIOS:r,onUnknown:e}),t);};export{be as AutoSliderList,Se as AvatarCrop,ye as AwaitList,Ie as Button,we as Card3D,De as Carousel,ke as Checkbox,Ce as Direction,Ne as EstimatedVirtualList,ze as FileDropZone,Oe as List,Ve as MenuButton,Qe as Modal,He as OnoInput,Je as OnoSelect,Ke as OnoTextarea,_e as Pagination,et as Radio,tt as RadioGroup,st as ScrollableTabs,pt as SvgImg,xt as Switch,lt as TemplateDialog,gt as Tooltip,ht as Waterfall,To as addCommasToNumber,vo as addEventWithOriginHandler,E as adjustColor,M as adjustingColors,P as async2syncUtils,wr as base64ToBlob,Dr as base64ToFile,kr as blobToBase64,Lr as blobToFile,D as browserUtils,Oo as calculateAspectRatio,Io as chainClassNames,wo as checkDeviceIsMobile,Do as checkStatusCode,w as clearAsyncContagion,Le as contextMenu,ae as convertSecondToOtherTime,ko as copy2Clipboard,Re as createDataSource,de as createEventEmitter,oe as createIntersectionObserver,me as dayOfYear,Lo as debounce,No as deepCopy,a as distinguishPlatform,m as distinguishPlatformDelay,Nr as downloadFile,re as elementIsInViewport,Uo as ellipsisString,Ur as fileToBase64,Wr as fileToBlob,R as formatColor,jr as formatFileSize,fe as formatSecond,ie as formatTime,Wo as gcd,jo as getAllTheNumbers,F as getBrowserInfo,z as getColorType,V as getContrastColor,Go as getElementCenterPosition,Gr as getFileName,Zr as getFileSuffix,Zo as getImageSIze,Ko as getPointDistance,Jo as getURLSearchParams,q as grayColor,Q as hex2hsl,H as hex2hsv,Y as hex2rgb,X as hex3To6,$ as hsl2hex,ro as hsl2rgb,to as hsv2hex,so as hsv2rgb,ee as intersectionObserverUtils,_o as isPureNumber,po as isValidColor,ne as localFormat,or as mediaAutoplayPolicies,qe as message,er as padZero,ar as parseQuery,mr as passwordStrength,fr as pick,ot as portalRenderer,ir as printStr,nr as pureNumber,cr as quickSort,dr as rafTimeout,xo as randomColor,br as randomString,Tr as removeTag,lo as rgb2hex,uo as rgb2hsl,go as rgb2hsv,bo as rgb2rgba,vr as safeCapitalizeWord,ce as second2Day,Or as singleton,Ir as throttle,ut as toast,Kr as urlToBase64,Jr as urlToBlob,_r as urlToFile,x as useClickOutSide,l as useCountdown,u as useEventListener,g as useGetElementSize,h as useKeyPress,C as useMouseClick,S as useQuery,y as useTheme,A as useThemePro};
1
+ import{u as e}from "./useClickOutSide.tsx-Drp6uYap.js";import{u as a}from "./useCountdown.tsx-BHrpYPuf.js";import{u as m}from "./useEventListener.tsx-BDtH_FiI.js";import{u as f}from "./useGetElementSize.tsx-CYGNJaFz.js";import{u as i}from "./useKeyPress.tsx-ClBLUMui.js";import{u as n}from "./useMouseClick.tsx-nz5umn7V.js";import{u as c}from "./useQuery.tsx-FzGWYq50.js";import{u as d}from "./useTheme.tsx-C7aAN-Zj.js";import{u as b}from "./useThemePro.tsx-MwfY4tCX.js";import{c as T}from "./clearAsyncContagion.ts-DseR8G-S.js";import{g as v}from "./getBrowserInfo.ts-CFS4Oz41.js";import{a as P}from "./adjustColor.ts-D1ttRO_o.js";import{a as F}from "./adjustingColors.ts-CQV_S12M.js";import{f as A}from "./formatColor.ts-D_Sws4M1.js";import{g as I}from "./getColorType.ts-B5Qax_03.js";import{g as k}from "./getContrastColor.ts-vmwZYf4O.js";import{g as L}from "./grayColor.ts-BeAK97Od.js";import{h as N}from "./hex2hsl.ts-fQ072W3P.js";import{h as z}from "./hex2hsv.ts-Bewjcepy.js";import{h as V}from "./hex2rgb.ts-tP-M30oZ.js";import{h as j}from "./hex3To6.ts-epLJiP-G.js";import{h as G}from "./hsl2hex.ts-BILOsbJk.js";import{h as Y}from "./hsl2rgb.ts-DCdzknv1.js";import{h as K}from "./hsv2hex.ts-U8Md-VPN.js";import{h as J}from "./hsv2rgb.ts-C4AdDfKf.js";import{i as _}from "./isValidColor.ts-oChVkAT9.js";import{r as oo}from "./randomColor.ts-BiDP87Yi.js";import{r as eo}from "./rgb2hex.ts-itJEWSC0.js";import{r as ao}from "./rgb2hsl.ts-BmthoL_h.js";import{r as mo}from "./rgb2hsv.ts-o8o8uIwc.js";import{r as fo}from "./rgb2rgba.ts-ZXQCbTkT.js";import{a as io}from "./addCommasToNumber.ts-Bc5ZX_HW.js";import{a as no}from "./addEventWithOriginHandler.ts-CBP4faL-.js";import{c as co}from "./calculateAspectRatio.ts-DLTMZ6rT.js";import{c as ho}from "./chainClassNames.ts-B9vmfsc1.js";import{c as Co}from "./checkDeviceIsMobile.ts-D_9fa1Z1.js";import{c as So}from "./checkStatusCode.ts-CeS5vbbx.js";import{c as yo}from "./controlTheScrollbarScrolling.ts-WYW8laxj.js";import{c as Bo}from "./copy2Clipboard.ts-D-Ux5BRc.js";import{d as Oo}from "./debounce.ts-DtQl9QX-.js";import{d as Do}from "./deepCopy.ts-DZSM2TJ5.js";import{e as Eo}from "./ellipsisString.ts-CEHck07f.js";import{g as wo}from "./gcd.ts-BCWGat6T.js";import{g as Mo}from "./getAllTheNumbers.ts-DaNxVd8a.js";import{g as Ro}from "./getElementCenterPosition.ts-CpWYej6j.js";import{g as Wo}from "./getImageSIze.ts-BKCUZEmG.js";import{g as Zo}from "./getPointDistance.ts-oQIzWYT7.js";import{g as qo}from "./getURLSearchParams.ts-CdkTE_NB.js";import{i as Qo}from "./isPureNumber.ts-UvzCfFTt.js";import{m as Ho}from "./mediaAutoplayPolicies.ts-h8T8o7DV.js";import{p as Uo}from "./padZero.ts-BTMKlRWN.js";import{p as Xo}from "./parseQuery.ts-rxlqkZEE.js";import{p as $o}from "./passwordStrength.ts-BSVicol-.js";import{p as rr}from "./pick.ts-CVf1DuK1.js";import{p as tr}from "./printStr.ts-Nd8JNyzN.js";import{p as sr}from "./pureNumber.ts-LjeTI9RC.js";import{q as pr}from "./quickSort.ts-CTYjJtIg.js";import{r as xr}from "./rafTimeout.ts-atBwwlgC.js";import{r as lr}from "./randomString.ts-DpWnx0Kc.js";import{r as ur}from "./removeTag.ts-K8ovHu9Z.js";import{s as gr}from "./safeCapitalizeWord.ts-CBBsQk5s.js";import{s as hr}from "./singleton.ts-BxAjTJl8.js";import{t as Cr}from "./throttle.ts-D_EqcNzV.js";import{b as Sr}from "./base64ToBlob.ts-BpYnI1_k.js";import{b as yr}from "./base64ToFile.ts-B526yxVq.js";import{b as Br}from "./blobToBase64.ts-CJROQ7nO.js";import{b as Or}from "./blobToFile.ts-CjkxPmEw.js";import{d as Dr}from "./downloadFile.ts-C5v3gvXJ.js";import{f as Er}from "./fileToBase64.ts-LDhPtYZ8.js";import{f as wr}from "./fileToBlob.ts-C4Y1I82u.js";import{f as Mr}from "./formatFileSize.ts-CoUwKtCA.js";import{g as Rr}from "./getFileName.ts-CAdDeTqT.js";import{g as Wr}from "./getFileSuffix.ts-RBCEexOt.js";import{u as Zr}from "./urlToBase64.ts-DzO1pwIZ.js";import{u as qr}from "./urlToBlob.ts-DmOp0wbt.js";import{u as Qr}from "./urlToFile.ts-KrTFcI-e.js";import{c as Hr}from "./createIntersectionObserver.ts-CPwdNz7M.js";import{e as Ur}from "./elementIsInViewport.ts-DnBd8TjE.js";import{d as Xr}from "./distinguishPlatform.ts-BITl3t1o.js";import{d as $r}from "./distinguishPlatformDelay.ts-DupUPv6F.js";import{c as re}from "./convertSecondToOtherTime.ts-BlSK8Hsn.js";import{d as te}from "./dayOfYear.ts-FVQlJIhw.js";import{f as se}from "./formatSecond.ts-Dc436DN-.js";import{f as pe}from "./formatTime.ts-BY0hrdXI.js";import{l as xe}from "./localFormat.ts-B32R_kV4.js";import{s as le}from "./second2Day.ts-XjEpcvCc.js";import{c as ue}from "./changeThemeClipPathCircle.ts-CHY9pNkk.js";import{c as ge}from "./event-BIaLzjOy.js";import{Y as he,Z as be}from "./AutoSliderList-drdrxgEX.js";import{A as Te}from "./AvatarCrop-Cn9RwTGU.js";import{A as ve,L as ye}from "./List-DXRmDwDo.js";import{B as Be}from "./Button-CWqApx4k.js";import{C as Oe}from "./Card3D-C1ddJnYV.js";import{C as De}from "./Carousel-D7JsU-he.js";import{C as Ee}from "./Checkbox-C6L0UHHG.js";import{c as we}from "./ContextMenu-Cg72hSPN.js";import{E as Me,c as Ne}from "./VirtualList-DThIEdea.js";import{F as ze}from "./FileDropZone-CQy4SsUO.js";import{M as Ve}from "./MenuButton-CjudK6uV.js";import{m as je}from "./Message-CXBf5Xji.js";import{M as Ge}from "./Modal-Cq9ZPw9X.js";import{O as Ye,a as He}from "./Input-CdxX4nzt.js";import{O as Ue}from "./Select-CprTy0VT.js";import{P as Xe}from "./Pagination-wxdQuNM4.js";import{p as $e}from "./PortalRenderer-CUaab_Kw.js";import{R as rt,a as et}from "./Radio-pth5zZkE.js";import{S as at}from "./ScrollableTabs-CNuEx01I.js";import{S as mt}from "./SvgImg-D2DeoPaA.js";import{S as ft}from "./Switch-CQJGc1NQ.js";import{T as it}from "./TemplateDialog-DAzyCsXv.js";import{t as nt}from "./Toast-1MB_CUWF.js";import{T as ct}from "./Tooltip-7uWxsj7r.js";import{W as dt}from "./Waterfall-CDXm71jP.js";export{he as AutoSliderList,Te as AvatarCrop,ve as AwaitList,Be as Button,Oe as Card3D,De as Carousel,Ee as Checkbox,be as Direction,Me as EstimatedVirtualList,ze as FileDropZone,ye as List,Ve as MenuButton,Ge as Modal,Ye as OnoInput,Ue as OnoSelect,He as OnoTextarea,Xe as Pagination,rt as Radio,et as RadioGroup,at as ScrollableTabs,mt as SvgImg,ft as Switch,it as TemplateDialog,ct as Tooltip,dt as Waterfall,io as addCommasToNumber,no as addEventWithOriginHandler,P as adjustColor,F as adjustingColors,Sr as base64ToBlob,yr as base64ToFile,Br as blobToBase64,Or as blobToFile,co as calculateAspectRatio,ho as chainClassNames,ue as changeThemeClipPathCircle,Co as checkDeviceIsMobile,So as checkStatusCode,T as clearAsyncContagion,we as contextMenu,yo as controlTheScrollbarScrolling,re as convertSecondToOtherTime,Bo as copy2Clipboard,Ne as createDataSource,ge as createEventEmitter,Hr as createIntersectionObserver,te as dayOfYear,Oo as debounce,Do as deepCopy,Xr as distinguishPlatform,$r as distinguishPlatformDelay,Dr as downloadFile,Ur as elementIsInViewport,Eo as ellipsisString,Er as fileToBase64,wr as fileToBlob,A as formatColor,Mr as formatFileSize,se as formatSecond,pe as formatTime,wo as gcd,Mo as getAllTheNumbers,v as getBrowserInfo,I as getColorType,k as getContrastColor,Ro as getElementCenterPosition,Rr as getFileName,Wr as getFileSuffix,Wo as getImageSIze,Zo as getPointDistance,qo as getURLSearchParams,L as grayColor,N as hex2hsl,z as hex2hsv,V as hex2rgb,j as hex3To6,G as hsl2hex,Y as hsl2rgb,K as hsv2hex,J as hsv2rgb,Qo as isPureNumber,_ as isValidColor,xe as localFormat,Ho as mediaAutoplayPolicies,je as message,Uo as padZero,Xo as parseQuery,$o as passwordStrength,rr as pick,$e as portalRenderer,tr as printStr,sr as pureNumber,pr as quickSort,xr as rafTimeout,oo as randomColor,lr as randomString,ur as removeTag,eo as rgb2hex,ao as rgb2hsl,mo as rgb2hsv,fo as rgb2rgba,gr as safeCapitalizeWord,le as second2Day,hr as singleton,Cr as throttle,nt as toast,Zr as urlToBase64,qr as urlToBlob,Qr as urlToFile,e as useClickOutSide,a as useCountdown,m as useEventListener,f as useGetElementSize,i as useKeyPress,n as useMouseClick,c as useQuery,d as useTheme,b as useThemePro};
@@ -0,0 +1 @@
1
+ import{N as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as i};
@@ -0,0 +1 @@
1
+ import{O as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as l};
@@ -0,0 +1 @@
1
+ import{P as o}from "./AutoSliderList-drdrxgEX.js";const t=o;export{t as r};
@@ -0,0 +1 @@
1
+ import{Q as o}from "./AutoSliderList-drdrxgEX.js";const t=o;export{t as r};
@@ -0,0 +1 @@
1
+ import{R as o}from "./AutoSliderList-drdrxgEX.js";const t=o;export{t as r};
@@ -0,0 +1 @@
1
+ import{S as o}from "./AutoSliderList-drdrxgEX.js";const t=o;export{t as r};
@@ -0,0 +1 @@
1
+ import{T as o}from "./AutoSliderList-drdrxgEX.js";const t=o;export{t as r};
@@ -0,0 +1 @@
1
+ import{U as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as s};
@@ -0,0 +1 @@
1
+ import{V as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as u};
@@ -0,0 +1 @@
1
+ import{W as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as u};
@@ -0,0 +1 @@
1
+ import{X as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as u};
@@ -0,0 +1 @@
1
+ import{f as o}from "./useEventListener.tsx-BDtH_FiI.js";const i=(t,s,r)=>o(((n)=>{const e=typeof n=="string" ? [n]:n;if(new Set(e).size!==e.length)throw new Error("there are duplicates in the event type");return e;})((r==null ? void 0:r.event)||"click"),(n)=>{if(t)if(t instanceof Array)t.map((e)=>e instanceof HTMLElement ? e:e.current).some((e)=>!!e&&e.contains(n.target))||s(n);else{const e=t instanceof HTMLElement ? t:t.current;e&&!e.contains(n.target)&&s(n);}},{deps:[t,...(r==null ? void 0:r.deps)||[]]}),c=i;export{i as c,c as u};
@@ -0,0 +1 @@
1
+ import{useState as c,useRef as f,useCallback as o,useEffect as T}from "react";const b=(r=60,u)=>{const [t,l]=c(r),[s,a]=c(!1),e=f(null),i=o(()=>a(!0),[]),n=o(()=>{a(!1),l(r),e.current&&(clearTimeout(e.current),e.current=null),u==null||u();},[r,u]);return T(()=>{if(s)return t>0 ? e.current=setTimeout(()=>{l((m)=>m-1);},1e3):n(),()=>{e.current&&(clearTimeout(e.current),e.current=null);};},[s,t,n]),[t,i,n];};export{b as u};
@@ -1 +1 @@
1
- import{useEffect as w}from "react";const f=(e,t,d)=>{const{target:n,deps:s,isDeferred:i}=d||{},o=(r)=>t(r);return w(()=>(typeof e=="string" ?!i&&(n||window).addEventListener(e,o):e.forEach((r)=>!i&&(n||window).addEventListener(r,o)),()=>{typeof e=="string" ?(n||window).removeEventListener(e,o):e.forEach((r)=>(n||window).removeEventListener(r,o));}),[n,...s||[]]),i ?()=>{typeof e=="string" ?(n||window).addEventListener(e,o):e.forEach((r)=>(n||window).addEventListener(r,o));}:void 0;};export{f as u};
1
+ import{useEffect as w}from "react";const a=(e,t,d)=>{const{target:n,deps:s,isDeferred:i}=d||{},o=(r)=>t(r);return w(()=>(typeof e=="string" ?!i&&(n||window).addEventListener(e,o):e.forEach((r)=>!i&&(n||window).addEventListener(r,o)),()=>{typeof e=="string" ?(n||window).removeEventListener(e,o):e.forEach((r)=>(n||window).removeEventListener(r,o));}),[n,...s||[]]),i ?()=>{typeof e=="string" ?(n||window).addEventListener(e,o):e.forEach((r)=>(n||window).addEventListener(r,o));}:void 0;},E=a;export{a as f,E as u};
@@ -1 +1 @@
1
- import{useState as o,useEffect as c}from "react";const w=(e)=>{const [f,r]=o({w:0,h:0}),t=new ResizeObserver((n)=>{for(const s of n)r({w:s.borderBoxSize[0].inlineSize,h:s.borderBoxSize[0].blockSize});}),i=()=>{if(e&&typeof e!="function")t.observe(e instanceof HTMLElement ? e:e.current);else if(e&&typeof e=="function"){const n=e();t.observe(n instanceof HTMLElement ? n:n.current);}else r({w:window.innerWidth,h:window.innerHeight});};return c(()=>(i(),window.addEventListener("resize",i),()=>{if(window.removeEventListener("resize",i),e&&typeof e!="function")t.unobserve(e instanceof HTMLElement ? e:e.current);else if(e&&typeof e=="function"){const n=e();t.unobserve(n instanceof HTMLElement ? n:n.current);}}),[e]),f;};export{w as u};
1
+ import{useState as o,useEffect as c}from "react";const u=(e)=>{const [f,r]=o({w:0,h:0}),t=new ResizeObserver((n)=>{for(const s of n)r({w:s.borderBoxSize[0].inlineSize,h:s.borderBoxSize[0].blockSize});}),i=()=>{if(e&&typeof e!="function")t.observe(e instanceof HTMLElement ? e:e.current);else if(e&&typeof e=="function"){const n=e();t.observe(n instanceof HTMLElement ? n:n.current);}else r({w:window.innerWidth,h:window.innerHeight});};return c(()=>(i(),window.addEventListener("resize",i),()=>{if(window.removeEventListener("resize",i),e&&typeof e!="function")t.unobserve(e instanceof HTMLElement ? e:e.current);else if(e&&typeof e=="function"){const n=e();t.unobserve(n instanceof HTMLElement ? n:n.current);}}),[e]),f;},a=u;export{a as u,u as w};
@@ -0,0 +1 @@
1
+ import{f as m}from "./useEventListener.tsx-BDtH_FiI.js";const y=(n)=>n.toString().toLocaleLowerCase(),g=(n,d,t)=>{const f=(u)=>m(u,(K)=>{return h=n instanceof Array ? n.map((l)=>y(l)):[y(n)],e=K,v=(t==null ? void 0:t.exactMatch)||!1,void h.forEach((l)=>{if(l.includes("+")&&l.length>1){const s=l.split("+"),a=e.ctrlKey&&s.includes("ctrl"),i=e.shiftKey&&s.includes("shift"),r=e.altKey&&s.includes("alt"),c=e.metaKey&&s.includes("meta"),o=(e.ctrlKey||e.metaKey)&&s.includes("commandorcontrol");s.length===2 ?(a||i||r||c||o)&&e.key.toLocaleLowerCase()===s[s.length-1]&&d(e,l):s.length===3&&(a&&i||a&&r||a&&c||a&&o||i&&r||i&&c||i&&o||r&&c||r&&o||c&&o)&&e.key.toLocaleLowerCase()===s[s.length-1]&&d(e,l);}else if(l.includes(y(e.key))){if(v)l===y(e.key)&&d(e,l);else if(!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey))return d(e,l);}});var h,e,v;},{deps:[t==null ? void 0:t.target,...(t==null ? void 0:t.deps)||[]]});(t==null ? void 0:t.events)instanceof Array ? t.events.forEach((u)=>f(u)):f((t==null ? void 0:t.events)||"keydown");},p=g;export{g as k,p as u};
@@ -1 +1 @@
1
- import{useState as X}from "react";import{u as Y}from "./useEventListener.tsx-C8V9Qip6.js";const g=()=>{const [c,n]=X({clientX:0,clientY:0,screenX:0,screenY:0,pageX:0,pageY:0});return Y("click",(e)=>{const t=e.clientX,r=e.clientY,s=e.screenX,a=e.screenY,i=e.pageX,p=e.pageY;n({clientX:t,clientY:r,screenX:s,screenY:a,pageX:i,pageY:p});}),c;};export{g as u};
1
+ import{useState as X}from "react";import{f as Y}from "./useEventListener.tsx-BDtH_FiI.js";const g=()=>{const [c,n]=X({clientX:0,clientY:0,screenX:0,screenY:0,pageX:0,pageY:0});return Y("click",(e)=>{const t=e.clientX,r=e.clientY,s=e.screenX,a=e.screenY,i=e.pageX,p=e.pageY;n({clientX:t,clientY:r,screenX:s,screenY:a,pageX:i,pageY:p});}),c;};export{g as u};
@@ -0,0 +1 @@
1
+ import{useState as l,useRef as h}from "react";import{v as o}from "./AutoSliderList-drdrxgEX.js";import{u as i}from "./useTheme.tsx-C7aAN-Zj.js";const p=(s)=>{const{initTheme:a="light",themeRules:t=(n)=>{n ? document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark");}}=s||Object.assign({}),[m,u]=l(a),e=h(null);return i({theme:m,onDark:()=>{e.current ? o({element:e.current,onChangeTheme:()=>t(!0)}):t(!0);},onLight:()=>{e.current ? o({element:e.current,onChangeTheme:()=>t(!1)}):t(!1);}}),[m,({targetTheme:n,element:c,onChange:r})=>{e.current=c||null,r==null||r(),u(n);}];};export{p as u};
@@ -1,7 +1,9 @@
1
1
  export declare class EventEmitter<T extends string[], K extends T[number]> {
2
2
  private events;
3
3
  constructor(eventNames: T);
4
+ private createEvent;
4
5
  emit(eventName: K, ...args: any[]): void;
5
- on(eventName: K, callback: Function): void;
6
+ on(eventName: K, callback: Function, once?: boolean): void;
6
7
  cancel(eventName: K, callback: Function): void;
8
+ clear(eventName?: K): void;
7
9
  }
@@ -1,9 +1,4 @@
1
- import { DependencyList, RefObject } from 'react';
2
- type OutsideElementTypes = RefObject<HTMLElement | null> | HTMLElement | (RefObject<HTMLElement | null> | HTMLElement)[] | null;
3
- type ClickEventTypes = 'click' | 'contextmenu' | 'mousedown' | 'mouseup' | 'mousemove' | 'touchstart' | 'touchend';
4
- type OutsideOptions = {
5
- event?: ClickEventTypes | ClickEventTypes[];
6
- deps?: DependencyList;
7
- };
8
- export declare const useClickOutSide: (outsideElement: OutsideElementTypes, handler: (e: MouseEvent) => void, options?: OutsideOptions) => (() => void) | undefined;
9
- export {};
1
+ export declare const useClickOutSide: (outsideElement: HTMLElement | import('react').RefObject<HTMLElement | null> | (HTMLElement | import('react').RefObject<HTMLElement | null>)[] | null, handler: (e: MouseEvent) => void, options?: {
2
+ event?: ("click" | "contextmenu" | "mousedown" | "mouseup" | "mousemove" | "touchstart" | "touchend") | ("click" | "contextmenu" | "mousedown" | "mouseup" | "mousemove" | "touchstart" | "touchend")[];
3
+ deps?: import('react').DependencyList;
4
+ }) => (() => void) | undefined;
@@ -1,8 +1,5 @@
1
- import { DependencyList } from 'react';
2
- type EventListenerOptions = {
1
+ export declare const useEventListener: (event: string | string[], handler: (e: Event) => void, options?: {
3
2
  isDeferred?: boolean;
4
3
  target?: EventTarget;
5
- deps?: DependencyList;
6
- };
7
- export declare const useEventListener: (event: string | string[], handler: (e: Event) => void, options?: EventListenerOptions) => (() => void) | undefined;
8
- export {};
4
+ deps?: import('react').DependencyList;
5
+ }) => (() => void) | undefined;
@@ -1,5 +1,4 @@
1
- import { RefObject } from 'react';
2
- export declare const useGetElementSize: (target?: HTMLElement | RefObject<HTMLElement | null> | (() => HTMLElement | RefObject<HTMLElement | null>) | null) => {
1
+ export declare const useGetElementSize: (target?: HTMLElement | import('react').RefObject<HTMLElement | null> | (() => HTMLElement | import('react').RefObject<HTMLElement | null>) | null) => {
3
2
  w: number;
4
3
  h: number;
5
4
  };
@@ -1,12 +1,9 @@
1
- import { DependencyList } from 'react';
2
- export type KeyType = number | string | FunctionKey;
3
- export type KeyEvent = 'keydown' | 'keyup';
4
- type Options = {
5
- events?: KeyEvent | KeyEvent[];
1
+ import { KeyType as type1, KeyEvent as type2 } from '@ono-react-element/hooks';
2
+ export declare const useKeyPress: (keyFilter: type1 | type1[], eventHandler: (event: KeyboardEvent, key: type1) => void, options?: {
3
+ events?: type2 | type2[];
6
4
  target?: Element;
7
- deps?: DependencyList;
5
+ deps?: import('react').DependencyList;
8
6
  exactMatch?: boolean;
9
- };
10
- type FunctionKey = 'Ctrl' | 'Shift' | 'Alt' | 'Meta' | 'CommandOrControl';
11
- export declare const useKeyPress: (keyFilter: KeyType | KeyType[], eventHandler: (event: KeyboardEvent, key: KeyType) => void, options?: Options) => void;
12
- export {};
7
+ }) => void;
8
+ export type KeyType = type1;
9
+ export type KeyEvent = type2;
@@ -1,8 +1,7 @@
1
- export type ThemeType = 'light' | 'dark' | 'system';
2
- type useThemeProps = {
3
- theme: ThemeType;
1
+ import { ThemeType as type } from '@ono-react-element/hooks';
2
+ export declare const useTheme: ({ theme, onDark, onLight }: {
3
+ theme: type;
4
4
  onDark: () => void;
5
5
  onLight: () => void;
6
- };
7
- export declare const useTheme: ({ theme, onDark, onLight }: useThemeProps) => void;
8
- export {};
6
+ }) => void;
7
+ export type ThemeType = type;
@@ -3,7 +3,7 @@ interface useThemeProps {
3
3
  initTheme?: ThemeType;
4
4
  themeRules?: (isDark: boolean) => void;
5
5
  }
6
- export declare const useThemePro: (options?: useThemeProps) => readonly [ThemeType, ({ targetTheme, element, onChange }: {
6
+ export declare const useThemePro: (options?: useThemeProps) => readonly [import('packages/hooks/dist/types').ThemeType, ({ targetTheme, element, onChange }: {
7
7
  targetTheme: ThemeType;
8
8
  element?: HTMLElement;
9
9
  onChange?: () => void;
@@ -9,8 +9,8 @@ import { useMouseClick } from './hooks/useMouseClick';
9
9
  import { useQuery } from './hooks/useQuery';
10
10
  import { useTheme, ThemeType } from './hooks/useTheme';
11
11
  import { useThemePro } from './hooks/useThemePro';
12
- import { default as async2syncUtils, clearAsyncContagion } from './utils/async2syncUtils';
13
- import { default as browserUtils, getBrowserInfo } from './utils/browserUtils';
12
+ import { clearAsyncContagion } from './utils/async2sync/clearAsyncContagion';
13
+ import { getBrowserInfo } from './utils/browser/getBrowserInfo';
14
14
  import { adjustColor } from './utils/color/adjustColor';
15
15
  import { adjustingColors } from './utils/color/adjustingColors';
16
16
  import { formatColor } from './utils/color/formatColor';
@@ -37,6 +37,7 @@ import { calculateAspectRatio } from './utils/common/calculateAspectRatio';
37
37
  import { chainClassNames } from './utils/common/chainClassNames';
38
38
  import { checkDeviceIsMobile } from './utils/common/checkDeviceIsMobile';
39
39
  import { checkStatusCode } from './utils/common/checkStatusCode';
40
+ import { controlTheScrollbarScrolling } from './utils/common/controlTheScrollbarScrolling';
40
41
  import { copy2Clipboard } from './utils/common/copy2Clipboard';
41
42
  import { debounce } from './utils/common/debounce';
42
43
  import { deepCopy } from './utils/common/deepCopy';
@@ -75,7 +76,8 @@ import { getFileSuffix } from './utils/file/getFileSuffix';
75
76
  import { urlToBase64 } from './utils/file/urlToBase64';
76
77
  import { urlToBlob } from './utils/file/urlToBlob';
77
78
  import { urlToFile } from './utils/file/urlToFile';
78
- import { default as intersectionObserverUtils, createIntersectionObserver, elementIsInViewport } from './utils/intersectionObserverUtils';
79
+ import { createIntersectionObserver } from './utils/intersectionObserver/createIntersectionObserver';
80
+ import { elementIsInViewport } from './utils/intersectionObserver/elementIsInViewport';
79
81
  import { distinguishPlatform } from './utils/platform/distinguishPlatform';
80
82
  import { distinguishPlatformDelay } from './utils/platform/distinguishPlatformDelay';
81
83
  import { convertSecondToOtherTime } from './utils/time/convertSecondToOtherTime';
@@ -84,5 +86,6 @@ import { formatSecond } from './utils/time/formatSecond';
84
86
  import { formatTime } from './utils/time/formatTime';
85
87
  import { localFormat, LanguageType } from './utils/time/localFormat';
86
88
  import { second2Day } from './utils/time/second2Day';
87
- export { addCommasToNumber, addEventWithOriginHandler, adjustColor, adjustingColors, async2syncUtils, AutoSliderList, AvatarCrop, AwaitList, base64ToBlob, base64ToFile, blobToBase64, blobToFile, browserUtils, Button, calculateAspectRatio, Card3D, Carousel, chainClassNames, Checkbox, checkDeviceIsMobile, checkStatusCode, clearAsyncContagion, contextMenu, convertSecondToOtherTime, copy2Clipboard, createDataSource, createEventEmitter, createIntersectionObserver, dayOfYear, debounce, deepCopy, Direction, distinguishPlatform, distinguishPlatformDelay, downloadFile, elementIsInViewport, ellipsisString, EstimatedVirtualList, FileDropZone, fileToBase64, fileToBlob, formatColor, formatFileSize, formatSecond, formatTime, gcd, getAllTheNumbers, getBrowserInfo, getColorType, getContrastColor, getElementCenterPosition, getFileName, getFileSuffix, getImageSIze, getPointDistance, getURLSearchParams, grayColor, hex2hsl, hex2hsv, hex2rgb, hex3To6, hsl2hex, hsl2rgb, hsv2hex, hsv2rgb, intersectionObserverUtils, isPureNumber, isValidColor, List, localFormat, mediaAutoplayPolicies, MenuButton, message, Modal, OnoInput, OnoSelect, OnoTextarea, padZero, Pagination, parseQuery, passwordStrength, pick, portalRenderer, printStr, pureNumber, quickSort, Radio, RadioGroup, rafTimeout, randomColor, randomString, removeTag, rgb2hex, rgb2hsl, rgb2hsv, rgb2rgba, safeCapitalizeWord, ScrollableTabs, second2Day, singleton, SvgImg, Switch, TemplateDialog, throttle, toast, Tooltip, urlToBase64, urlToBlob, urlToFile, useClickOutSide, useCountdown, useEventListener, useGetElementSize, useKeyPress, useMouseClick, useQuery, useTheme, useThemePro, Waterfall };
89
+ import { changeThemeClipPathCircle } from './utils/viewTransition/changeThemeClipPathCircle';
90
+ export { addCommasToNumber, addEventWithOriginHandler, adjustColor, adjustingColors, AutoSliderList, AvatarCrop, AwaitList, base64ToBlob, base64ToFile, blobToBase64, blobToFile, Button, calculateAspectRatio, Card3D, Carousel, chainClassNames, Checkbox, checkDeviceIsMobile, checkStatusCode, clearAsyncContagion, contextMenu, controlTheScrollbarScrolling, convertSecondToOtherTime, copy2Clipboard, createDataSource, createEventEmitter, createIntersectionObserver, dayOfYear, debounce, deepCopy, Direction, distinguishPlatform, distinguishPlatformDelay, downloadFile, elementIsInViewport, ellipsisString, EstimatedVirtualList, FileDropZone, fileToBase64, fileToBlob, formatColor, formatFileSize, formatSecond, formatTime, gcd, getAllTheNumbers, getBrowserInfo, getColorType, getContrastColor, getElementCenterPosition, getFileName, getFileSuffix, getImageSIze, getPointDistance, getURLSearchParams, grayColor, hex2hsl, hex2hsv, hex2rgb, hex3To6, hsl2hex, hsl2rgb, hsv2hex, hsv2rgb, isPureNumber, isValidColor, List, localFormat, mediaAutoplayPolicies, MenuButton, message, Modal, OnoInput, OnoSelect, OnoTextarea, padZero, Pagination, parseQuery, passwordStrength, pick, portalRenderer, printStr, pureNumber, quickSort, Radio, RadioGroup, rafTimeout, randomColor, randomString, removeTag, rgb2hex, rgb2hsl, rgb2hsv, rgb2rgba, safeCapitalizeWord, ScrollableTabs, second2Day, singleton, SvgImg, Switch, TemplateDialog, throttle, toast, Tooltip, urlToBase64, urlToBlob, urlToFile, useClickOutSide, useCountdown, useEventListener, useGetElementSize, useKeyPress, useMouseClick, useQuery, useTheme, useThemePro, changeThemeClipPathCircle, Waterfall };
88
91
  export type { ImageItem, KeyEvent, KeyType, LanguageType, OFileType, ThemeType };
@@ -0,0 +1 @@
1
+ export declare const clearAsyncContagion: (func: Function) => void;
@@ -0,0 +1,2 @@
1
+ import { getBrowserInfo as fn } from '@ono-react-element/utils';
2
+ export declare const getBrowserInfo: typeof fn;
@@ -1,8 +1 @@
1
- /**
2
- *
3
- * @param clr 颜色值 16进制 / rgb / hsl
4
- * @param type 类型(light / dark)
5
- * @param percentage 百分比值(0 - 100)
6
- * @returns 颜色值 16进制
7
- */
8
1
  export declare const adjustingColors: (clr: string, type: "light" | "dark", percentage: number) => string;
@@ -1,3 +1 @@
1
- type ColorType = 'rgb' | 'hsl' | 'hex' | 'hsv' | 'rgba';
2
- export declare const formatColor: (rgb: string, a?: number, type?: ColorType) => string;
3
- export {};
1
+ export declare const formatColor: (rgb: string, a?: number, type?: "rgb" | "hsl" | "hex" | "hsv" | "rgba") => string;
@@ -1 +1 @@
1
- export declare const getColorType: (clr: string) => "rgb" | "hex" | "unknown";
1
+ export declare const getColorType: (clr: string) => "hex" | "rgb" | "unknown";
@@ -0,0 +1,7 @@
1
+ export declare const controlTheScrollbarScrolling: ({ currentIndex, itemHeight, total, showMaxNumber, element }: {
2
+ currentIndex: number;
3
+ itemHeight: number;
4
+ total: number;
5
+ showMaxNumber: number;
6
+ element: HTMLElement;
7
+ }) => void;
@@ -1,6 +1 @@
1
- /**
2
- * 下载文件工具函数,兼容夸克及其他主流浏览器
3
- * @param file 文件路径(URL)或 Blob 对象
4
- * @param fileName 下载时使用的文件名
5
- */
6
1
  export declare const downloadFile: (file: string | Blob, fileName: string) => Promise<void>;
@@ -0,0 +1 @@
1
+ export declare const createIntersectionObserver: (observingEls: HTMLElement | HTMLElement[], callBack: (entries: IntersectionObserverEntry[], observer: IntersectionObserver) => void, options?: IntersectionObserverInit) => void;
@@ -0,0 +1,5 @@
1
+ export declare const elementIsInViewport: (elements: HTMLElement[], onIntersecting: (entry: IntersectionObserverEntry) => void, onUnIntersecting: (entry: IntersectionObserverEntry) => void, options?: {
2
+ root?: Element | Document | null;
3
+ rootMargin?: string;
4
+ threshold?: number | number[];
5
+ }) => void;
@@ -1,6 +1 @@
1
- export interface DistinguishPlatformType {
2
- onAndroid: () => void;
3
- onIOS: () => void;
4
- onUnknown?: () => void;
5
- }
6
- export declare const distinguishPlatform: ({ onAndroid, onIOS, onUnknown }: DistinguishPlatformType) => "Unknown" | "Android" | "iOS";
1
+ export declare const distinguishPlatform: ({ onAndroid, onIOS, onUnknown }: import('packages/utils/dist/types/utils/platform/distinguishPlatform').DistinguishPlatformType) => "Unknown" | "Android" | "iOS";
@@ -1,4 +1,3 @@
1
- import { DistinguishPlatformType } from './distinguishPlatform';
2
- export declare const distinguishPlatformDelay: ({ onAndroid, onIOS, onUnknown, timeout }: DistinguishPlatformType & {
1
+ export declare const distinguishPlatformDelay: ({ onAndroid, onIOS, onUnknown, timeout }: import('packages/utils/dist/types/utils/platform/distinguishPlatform').DistinguishPlatformType & {
3
2
  timeout?: number;
4
3
  }) => () => void;
@@ -1 +1 @@
1
- export declare const convertTimestamp: (timestamp: number) => Date;
1
+ export {};
@@ -1,2 +1 @@
1
- import { LanguageType } from './localFormat';
2
- export declare const dateFormat: (date: string, language: LanguageType) => string;
1
+ export {};
@@ -1,2 +1,3 @@
1
- export type LanguageType = 'en' | 'cn';
2
- export declare const localFormat: (number: number, format?: string, language?: LanguageType) => string;
1
+ import { LanguageType as type } from '@ono-react-element/utils';
2
+ export declare const localFormat: (number: number, format?: string, language?: type) => string;
3
+ export type LanguageType = type;
@@ -1,2 +1 @@
1
- import { LanguageType } from './localFormat';
2
- export declare const monthFormat: (month: string, language: LanguageType) => string;
1
+ export {};
@@ -1,2 +1 @@
1
- import { LanguageType } from './localFormat';
2
- export declare const yearFormat: (year: string, language: LanguageType) => string;
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export declare const changeThemeClipPathCircle: (options: {
2
+ element: HTMLElement;
3
+ duration?: number;
4
+ themeRules?: () => "light" | "dark";
5
+ onChangeTheme: (theme: "light" | "dark") => void;
6
+ }) => void;