ono-react-element 0.1.3 → 0.1.5

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 (250) hide show
  1. package/dist/es/AutoSliderList-CnR9cnHk.js +1 -0
  2. package/dist/es/AvatarCrop-DHnxRLP9.js +1 -0
  3. package/dist/es/Button-CGyWgrQj.js +1 -0
  4. package/dist/es/Card3D-NqDUZB0c.js +1 -0
  5. package/dist/es/Carousel-Bnrz70Tw.js +1 -0
  6. package/dist/es/Checkbox-DI_pnI6U.js +1 -0
  7. package/dist/es/ContextMenu-Boi1cZFI.js +1 -0
  8. package/dist/es/FileDropZone-DCvpaUuw.js +1 -0
  9. package/dist/es/Input-DnB8zvWy.js +1 -0
  10. package/dist/es/List-ClfyFOXz.js +1 -0
  11. package/dist/es/MenuButton-BZMchW23.js +1 -0
  12. package/dist/es/Message-C8cydGYH.js +1 -0
  13. package/dist/es/Modal-BbixgMNW.js +1 -0
  14. package/dist/es/Pagination-D428PpRD.js +1 -0
  15. package/dist/es/Radio-CYirLPd9.js +1 -0
  16. package/dist/es/ScrollableTabs-yCB3QKsp.js +1 -0
  17. package/dist/es/Select-D5REq6YE.js +1 -0
  18. package/dist/es/SvgImg-DWqVwwgv.js +1 -0
  19. package/dist/es/Switch-uZtwu9mV.js +1 -0
  20. package/dist/es/TemplateDialog-xcIPaUIe.js +1 -0
  21. package/dist/es/Toast-nAp61Kbz.js +1 -0
  22. package/dist/es/Tooltip-Dw-vi5zs.js +1 -0
  23. package/dist/es/VirtualList-DKHTLs7s.js +1 -0
  24. package/dist/es/Waterfall-BVjigHTI.js +1 -0
  25. package/dist/es/dependencies-BY0bokKL.js +1 -0
  26. package/dist/es/index.js +1 -1
  27. package/dist/types/components/AutoSliderList/index.d.ts +0 -1
  28. package/dist/types/components/AutoSliderList/types.d.ts +1 -5
  29. package/dist/types/components/Modal/Modal.d.ts +1 -1
  30. package/dist/types/components/VirtualList/EstimatedVirtualList.d.ts +1 -1
  31. package/dist/types/components/index.d.ts +0 -1
  32. package/dist/types/index.d.ts +5 -91
  33. package/dist/umd/index.umd.cjs +1 -1
  34. package/dist/umd/index.umd.cjs.br +0 -0
  35. package/dist/umd/index.umd.cjs.gz +0 -0
  36. package/package.json +71 -53
  37. package/dist/es/AutoSliderList-drdrxgEX.js +0 -1
  38. package/dist/es/AvatarCrop-Cn9RwTGU.js +0 -1
  39. package/dist/es/Button-CWqApx4k.js +0 -1
  40. package/dist/es/Card3D-C1ddJnYV.js +0 -1
  41. package/dist/es/Carousel-D7JsU-he.js +0 -1
  42. package/dist/es/Checkbox-C6L0UHHG.js +0 -1
  43. package/dist/es/ContextMenu-Cg72hSPN.js +0 -1
  44. package/dist/es/FileDropZone-CQy4SsUO.js +0 -1
  45. package/dist/es/InjunctiveBox-DsNUniss.js +0 -1
  46. package/dist/es/Input-CdxX4nzt.js +0 -1
  47. package/dist/es/List-DXRmDwDo.js +0 -1
  48. package/dist/es/MenuButton-CjudK6uV.js +0 -1
  49. package/dist/es/Message-CXBf5Xji.js +0 -1
  50. package/dist/es/Modal-Cq9ZPw9X.js +0 -1
  51. package/dist/es/Pagination-wxdQuNM4.js +0 -1
  52. package/dist/es/PortalRenderer-CUaab_Kw.js +0 -1
  53. package/dist/es/Radio-pth5zZkE.js +0 -1
  54. package/dist/es/ScrollableTabs-CNuEx01I.js +0 -1
  55. package/dist/es/Select-CprTy0VT.js +0 -1
  56. package/dist/es/SvgImg-D2DeoPaA.js +0 -1
  57. package/dist/es/Switch-CQJGc1NQ.js +0 -1
  58. package/dist/es/TemplateDialog-DAzyCsXv.js +0 -1
  59. package/dist/es/Toast-1MB_CUWF.js +0 -1
  60. package/dist/es/Tooltip-7uWxsj7r.js +0 -1
  61. package/dist/es/VirtualList-DThIEdea.js +0 -1
  62. package/dist/es/Waterfall-CDXm71jP.js +0 -1
  63. package/dist/es/addCommasToNumber.ts-Bc5ZX_HW.js +0 -1
  64. package/dist/es/addEventWithOriginHandler.ts-CBP4faL-.js +0 -1
  65. package/dist/es/adjustColor.ts-D1ttRO_o.js +0 -1
  66. package/dist/es/adjustingColors.ts-CQV_S12M.js +0 -1
  67. package/dist/es/base64ToBlob.ts-BpYnI1_k.js +0 -1
  68. package/dist/es/base64ToFile.ts-B526yxVq.js +0 -1
  69. package/dist/es/blobToBase64.ts-CJROQ7nO.js +0 -1
  70. package/dist/es/blobToFile.ts-CjkxPmEw.js +0 -1
  71. package/dist/es/calculateAspectRatio.ts-DLTMZ6rT.js +0 -1
  72. package/dist/es/chainClassNames.ts-B9vmfsc1.js +0 -1
  73. package/dist/es/changeThemeClipPathCircle.ts-CHY9pNkk.js +0 -1
  74. package/dist/es/checkDeviceIsMobile.ts-D_9fa1Z1.js +0 -1
  75. package/dist/es/checkStatusCode.ts-CeS5vbbx.js +0 -1
  76. package/dist/es/clearAsyncContagion.ts-DseR8G-S.js +0 -1
  77. package/dist/es/controlTheScrollbarScrolling.ts-WYW8laxj.js +0 -1
  78. package/dist/es/convertSecondToOtherTime.ts-BlSK8Hsn.js +0 -1
  79. package/dist/es/copy2Clipboard.ts-D-Ux5BRc.js +0 -1
  80. package/dist/es/createIntersectionObserver.ts-CPwdNz7M.js +0 -1
  81. package/dist/es/dayOfYear.ts-FVQlJIhw.js +0 -1
  82. package/dist/es/debounce.ts-DtQl9QX-.js +0 -1
  83. package/dist/es/deepCopy.ts-DZSM2TJ5.js +0 -1
  84. package/dist/es/dependencies-D-GIrksw.js +0 -15480
  85. package/dist/es/distinguishPlatform.ts-BITl3t1o.js +0 -1
  86. package/dist/es/distinguishPlatformDelay.ts-DupUPv6F.js +0 -1
  87. package/dist/es/downloadFile.ts-C5v3gvXJ.js +0 -1
  88. package/dist/es/elementIsInViewport.ts-DnBd8TjE.js +0 -1
  89. package/dist/es/ellipsisString.ts-CEHck07f.js +0 -1
  90. package/dist/es/event-BIaLzjOy.js +0 -1
  91. package/dist/es/fileToBase64.ts-LDhPtYZ8.js +0 -1
  92. package/dist/es/fileToBlob.ts-C4Y1I82u.js +0 -1
  93. package/dist/es/formatColor.ts-D_Sws4M1.js +0 -1
  94. package/dist/es/formatFileSize.ts-CoUwKtCA.js +0 -1
  95. package/dist/es/formatSecond.ts-Dc436DN-.js +0 -1
  96. package/dist/es/formatTime.ts-BY0hrdXI.js +0 -1
  97. package/dist/es/gcd.ts-BCWGat6T.js +0 -1
  98. package/dist/es/getAllTheNumbers.ts-DaNxVd8a.js +0 -1
  99. package/dist/es/getBrowserInfo.ts-CFS4Oz41.js +0 -1
  100. package/dist/es/getColorType.ts-B5Qax_03.js +0 -1
  101. package/dist/es/getContrastColor.ts-vmwZYf4O.js +0 -1
  102. package/dist/es/getElementCenterPosition.ts-CpWYej6j.js +0 -1
  103. package/dist/es/getFileName.ts-CAdDeTqT.js +0 -1
  104. package/dist/es/getFileSuffix.ts-RBCEexOt.js +0 -1
  105. package/dist/es/getImageSIze.ts-BKCUZEmG.js +0 -1
  106. package/dist/es/getPointDistance.ts-oQIzWYT7.js +0 -1
  107. package/dist/es/getURLSearchParams.ts-CdkTE_NB.js +0 -1
  108. package/dist/es/grayColor.ts-BeAK97Od.js +0 -1
  109. package/dist/es/hex2hsl.ts-fQ072W3P.js +0 -1
  110. package/dist/es/hex2hsv.ts-Bewjcepy.js +0 -1
  111. package/dist/es/hex2rgb.ts-tP-M30oZ.js +0 -1
  112. package/dist/es/hex3To6.ts-epLJiP-G.js +0 -1
  113. package/dist/es/hsl2hex.ts-BILOsbJk.js +0 -1
  114. package/dist/es/hsl2rgb.ts-DCdzknv1.js +0 -1
  115. package/dist/es/hsv2hex.ts-U8Md-VPN.js +0 -1
  116. package/dist/es/hsv2rgb.ts-C4AdDfKf.js +0 -1
  117. package/dist/es/isPureNumber.ts-UvzCfFTt.js +0 -1
  118. package/dist/es/isValidColor.ts-oChVkAT9.js +0 -1
  119. package/dist/es/localFormat.ts-B32R_kV4.js +0 -1
  120. package/dist/es/mediaAutoplayPolicies.ts-h8T8o7DV.js +0 -1
  121. package/dist/es/padZero.ts-BTMKlRWN.js +0 -1
  122. package/dist/es/parseQuery.ts-rxlqkZEE.js +0 -1
  123. package/dist/es/passwordStrength.ts-BSVicol-.js +0 -1
  124. package/dist/es/pick.ts-CVf1DuK1.js +0 -1
  125. package/dist/es/printStr.ts-Nd8JNyzN.js +0 -1
  126. package/dist/es/pureNumber.ts-LjeTI9RC.js +0 -1
  127. package/dist/es/quickSort.ts-CTYjJtIg.js +0 -1
  128. package/dist/es/rafTimeout.ts-atBwwlgC.js +0 -1
  129. package/dist/es/randomColor.ts-BiDP87Yi.js +0 -1
  130. package/dist/es/randomString.ts-DpWnx0Kc.js +0 -1
  131. package/dist/es/removeTag.ts-K8ovHu9Z.js +0 -1
  132. package/dist/es/rgb2hex.ts-itJEWSC0.js +0 -1
  133. package/dist/es/rgb2hsl.ts-BmthoL_h.js +0 -1
  134. package/dist/es/rgb2hsv.ts-o8o8uIwc.js +0 -1
  135. package/dist/es/rgb2rgba.ts-ZXQCbTkT.js +0 -1
  136. package/dist/es/safeCapitalizeWord.ts-CBBsQk5s.js +0 -1
  137. package/dist/es/second2Day.ts-XjEpcvCc.js +0 -1
  138. package/dist/es/singleton.ts-BxAjTJl8.js +0 -1
  139. package/dist/es/throttle.ts-D_EqcNzV.js +0 -1
  140. package/dist/es/urlToBase64.ts-DzO1pwIZ.js +0 -1
  141. package/dist/es/urlToBlob.ts-DmOp0wbt.js +0 -1
  142. package/dist/es/urlToFile.ts-KrTFcI-e.js +0 -1
  143. package/dist/es/useClickOutSide.tsx-Drp6uYap.js +0 -1
  144. package/dist/es/useCountdown.tsx-BHrpYPuf.js +0 -1
  145. package/dist/es/useEventListener.tsx-BDtH_FiI.js +0 -1
  146. package/dist/es/useGetElementSize.tsx-CYGNJaFz.js +0 -1
  147. package/dist/es/useKeyPress.tsx-ClBLUMui.js +0 -1
  148. package/dist/es/useMouseClick.tsx-nz5umn7V.js +0 -1
  149. package/dist/es/useQuery.tsx-FzGWYq50.js +0 -1
  150. package/dist/es/useTheme.tsx-C7aAN-Zj.js +0 -1
  151. package/dist/es/useThemePro.tsx-MwfY4tCX.js +0 -1
  152. package/dist/types/components/InjunctiveBox/index.d.ts +0 -1
  153. package/dist/types/components/PortalRenderer/PortalRenderer.d.ts +0 -2
  154. package/dist/types/components/PortalRenderer/index.d.ts +0 -1
  155. package/dist/types/event/createEventEmitter.d.ts +0 -2
  156. package/dist/types/event/eventEmitter.d.ts +0 -9
  157. package/dist/types/event/index.d.ts +0 -1
  158. package/dist/types/hooks/useClickOutSide.d.ts +0 -4
  159. package/dist/types/hooks/useCountdown.d.ts +0 -1
  160. package/dist/types/hooks/useEventListener.d.ts +0 -5
  161. package/dist/types/hooks/useGetElementSize.d.ts +0 -4
  162. package/dist/types/hooks/useKeyPress.d.ts +0 -9
  163. package/dist/types/hooks/useMouseClick.d.ts +0 -8
  164. package/dist/types/hooks/useQuery.d.ts +0 -3
  165. package/dist/types/hooks/useTheme.d.ts +0 -7
  166. package/dist/types/hooks/useThemePro.d.ts +0 -11
  167. package/dist/types/utils/async2sync/clearAsyncContagion.d.ts +0 -1
  168. package/dist/types/utils/browser/getBrowserInfo.d.ts +0 -2
  169. package/dist/types/utils/color/adjustColor.d.ts +0 -1
  170. package/dist/types/utils/color/adjustingColors.d.ts +0 -1
  171. package/dist/types/utils/color/formatColor.d.ts +0 -1
  172. package/dist/types/utils/color/getColorType.d.ts +0 -1
  173. package/dist/types/utils/color/getContrastColor.d.ts +0 -1
  174. package/dist/types/utils/color/grayColor.d.ts +0 -1
  175. package/dist/types/utils/color/hex2hsl.d.ts +0 -1
  176. package/dist/types/utils/color/hex2hsv.d.ts +0 -1
  177. package/dist/types/utils/color/hex2rgb.d.ts +0 -1
  178. package/dist/types/utils/color/hex3To6.d.ts +0 -1
  179. package/dist/types/utils/color/hsl2hex.d.ts +0 -1
  180. package/dist/types/utils/color/hsl2rgb.d.ts +0 -1
  181. package/dist/types/utils/color/hsv2hex.d.ts +0 -1
  182. package/dist/types/utils/color/hsv2rgb.d.ts +0 -1
  183. package/dist/types/utils/color/isValidColor.d.ts +0 -1
  184. package/dist/types/utils/color/randomColor.d.ts +0 -1
  185. package/dist/types/utils/color/rgb2hex.d.ts +0 -1
  186. package/dist/types/utils/color/rgb2hsl.d.ts +0 -1
  187. package/dist/types/utils/color/rgb2hsv.d.ts +0 -1
  188. package/dist/types/utils/color/rgb2rgba.d.ts +0 -1
  189. package/dist/types/utils/color/systemDropper.d.ts +0 -1
  190. package/dist/types/utils/common/addCommasToNumber.d.ts +0 -1
  191. package/dist/types/utils/common/addEventWithOriginHandler.d.ts +0 -1
  192. package/dist/types/utils/common/calculateAspectRatio.d.ts +0 -1
  193. package/dist/types/utils/common/chainClassNames.d.ts +0 -1
  194. package/dist/types/utils/common/checkDeviceIsMobile.d.ts +0 -1
  195. package/dist/types/utils/common/checkStatusCode.d.ts +0 -4
  196. package/dist/types/utils/common/controlTheScrollbarScrolling.d.ts +0 -7
  197. package/dist/types/utils/common/copy2Clipboard.d.ts +0 -1
  198. package/dist/types/utils/common/debounce.d.ts +0 -7
  199. package/dist/types/utils/common/deepCopy.d.ts +0 -1
  200. package/dist/types/utils/common/ellipsisString.d.ts +0 -1
  201. package/dist/types/utils/common/gcd.d.ts +0 -1
  202. package/dist/types/utils/common/getAllTheNumbers.d.ts +0 -1
  203. package/dist/types/utils/common/getElementCenterPosition.d.ts +0 -4
  204. package/dist/types/utils/common/getImageSIze.d.ts +0 -4
  205. package/dist/types/utils/common/getPointDistance.d.ts +0 -1
  206. package/dist/types/utils/common/getURLSearchParams.d.ts +0 -1
  207. package/dist/types/utils/common/isPureNumber.d.ts +0 -1
  208. package/dist/types/utils/common/mediaAutoplayPolicies.d.ts +0 -1
  209. package/dist/types/utils/common/padZero.d.ts +0 -1
  210. package/dist/types/utils/common/parseQuery.d.ts +0 -1
  211. package/dist/types/utils/common/passwordStrength.d.ts +0 -1
  212. package/dist/types/utils/common/pick.d.ts +0 -3
  213. package/dist/types/utils/common/printStr.d.ts +0 -11
  214. package/dist/types/utils/common/pureNumber.d.ts +0 -1
  215. package/dist/types/utils/common/quickSort.d.ts +0 -1
  216. package/dist/types/utils/common/rafTimeout.d.ts +0 -1
  217. package/dist/types/utils/common/randomString.d.ts +0 -1
  218. package/dist/types/utils/common/removeTag.d.ts +0 -1
  219. package/dist/types/utils/common/safeCapitalizeWord.d.ts +0 -1
  220. package/dist/types/utils/common/singleton.d.ts +0 -1
  221. package/dist/types/utils/common/throttle.d.ts +0 -13
  222. package/dist/types/utils/file/base64ToBlob.d.ts +0 -1
  223. package/dist/types/utils/file/base64ToFile.d.ts +0 -1
  224. package/dist/types/utils/file/blobToBase64.d.ts +0 -1
  225. package/dist/types/utils/file/blobToFile.d.ts +0 -1
  226. package/dist/types/utils/file/downloadFile.d.ts +0 -1
  227. package/dist/types/utils/file/fileToBase64.d.ts +0 -1
  228. package/dist/types/utils/file/fileToBlob.d.ts +0 -1
  229. package/dist/types/utils/file/formatFileSize.d.ts +0 -4
  230. package/dist/types/utils/file/getFileName.d.ts +0 -1
  231. package/dist/types/utils/file/getFileSuffix.d.ts +0 -1
  232. package/dist/types/utils/file/urlToBase64.d.ts +0 -1
  233. package/dist/types/utils/file/urlToBlob.d.ts +0 -1
  234. package/dist/types/utils/file/urlToFile.d.ts +0 -1
  235. package/dist/types/utils/intersectionObserver/createIntersectionObserver.d.ts +0 -1
  236. package/dist/types/utils/intersectionObserver/elementIsInViewport.d.ts +0 -5
  237. package/dist/types/utils/platform/distinguishPlatform.d.ts +0 -1
  238. package/dist/types/utils/platform/distinguishPlatformDelay.d.ts +0 -3
  239. package/dist/types/utils/time/convertSecondToOtherTime.d.ts +0 -1
  240. package/dist/types/utils/time/convertTimestamp.d.ts +0 -1
  241. package/dist/types/utils/time/dateFormat.d.ts +0 -1
  242. package/dist/types/utils/time/dayOfYear.d.ts +0 -1
  243. package/dist/types/utils/time/formatSecond.d.ts +0 -1
  244. package/dist/types/utils/time/formatTime.d.ts +0 -1
  245. package/dist/types/utils/time/localFormat.d.ts +0 -3
  246. package/dist/types/utils/time/monthFormat.d.ts +0 -1
  247. package/dist/types/utils/time/second2Day.d.ts +0 -1
  248. package/dist/types/utils/time/yearFormat.d.ts +0 -1
  249. package/dist/types/utils/viewTransition/changeThemeClipPathCircle.d.ts +0 -6
  250. /package/dist/types/components/{InjunctiveBox → Toast}/InjunctiveBox.d.ts +0 -0
@@ -1 +0,0 @@
1
- import{j as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as d};
@@ -1 +0,0 @@
1
- import{k as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as d};
@@ -1 +0,0 @@
1
- import{m as o}from "./AutoSliderList-drdrxgEX.js";const m=o;export{m as d};
@@ -1 +0,0 @@
1
- import{o}from "./AutoSliderList-drdrxgEX.js";const s=o;export{s as e};
@@ -1 +0,0 @@
1
- const t=(e,a,g=e.length)=>(a<0&&(a=Math.max(0,a+e.length)),g<0&&(g=e.length+g),a>g&&([a,g]=[g,a]),a>=e.length ? e:(a=Math.max(0,Math.min(a,e.length)),(g=Math.max(0,Math.min(g,e.length)))-a>3 ? e.substring(0,a)+"..."+e.substring(g):e));export{t as e};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
1
- import{s as o}from "./AutoSliderList-drdrxgEX.js";const t=o;export{t as f};
@@ -1 +0,0 @@
1
- import{q as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as f};
@@ -1 +0,0 @@
1
- import{u as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as f};
@@ -1 +0,0 @@
1
- import{w as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as f};
@@ -1 +0,0 @@
1
- import{x as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as f};
@@ -1 +0,0 @@
1
- import{y as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as f};
@@ -1 +0,0 @@
1
- const s=(n,t)=>{for(;t!==0;){const o=t;t=n%t,n=o;}return n;};export{s as g};
@@ -1 +0,0 @@
1
- const a=(t)=>t.match(/(\d+\.?\d*)/g);export{a as g};
@@ -1 +0,0 @@
1
- import{z as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as g};
@@ -1 +0,0 @@
1
- import{A as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as g};
@@ -1 +0,0 @@
1
- import{B as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as g};
@@ -1 +0,0 @@
1
- const n=(e)=>{const t=e.getBoundingClientRect();return{x:t.left+t.width/2,y:t.top+t.height/2};};export{n as g};
@@ -1 +0,0 @@
1
- import{C as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as g};
@@ -1 +0,0 @@
1
- import{D as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as g};
@@ -1 +0,0 @@
1
- const h=(e)=>new Promise((o)=>{const t=new Image();t.src=typeof e=="string" ? e:URL.createObjectURL(e),t.onload=()=>o({width:t.width,height:t.height});});export{h as g};
@@ -1 +0,0 @@
1
- const r=(t,s,a,o)=>Math.sqrt((t-a)**2+(s-o)**2);export{r as g};
@@ -1 +0,0 @@
1
- const e=(a)=>new URLSearchParams(window.location.search).get(a);export{e as g};
@@ -1 +0,0 @@
1
- import{E as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as g};
@@ -1 +0,0 @@
1
- import{F as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as h};
@@ -1 +0,0 @@
1
- import{G as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as h};
@@ -1 +0,0 @@
1
- import{H as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as h};
@@ -1 +0,0 @@
1
- import{I as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as h};
@@ -1 +0,0 @@
1
- import{J as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as h};
@@ -1 +0,0 @@
1
- import{K as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as h};
@@ -1 +0,0 @@
1
- import{L as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as h};
@@ -1 +0,0 @@
1
- import{M as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as h};
@@ -1 +0,0 @@
1
- const s=(t)=>/^\d+$/.test(t);export{s as i};
@@ -1 +0,0 @@
1
- import{N as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as i};
@@ -1 +0,0 @@
1
- import{O as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as l};
@@ -1 +0,0 @@
1
- const c=(t,o,s)=>{t.muted=!0,t.play();const u=new AudioContext(),a=u.state==="running";u.close(),a ?(t.muted=!1,o==null||o()):s==null||s();};export{c as m};
@@ -1 +0,0 @@
1
- const s=(p)=>p<10 ? `0${p}`:`${p}`;export{s as p};
@@ -1 +0,0 @@
1
- const o=(r)=>{const e={};return r.replace(/([^?=&]+)=([^&]+)/g,(n,t,c)=>e[t]=c),e;};export{o as p};
@@ -1 +0,0 @@
1
- const a=/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*()_+])[\da-zA-Z]{8,}$/;export{a as p};
@@ -1 +0,0 @@
1
- const s=(e,...t)=>Object.fromEntries(Object.entries(e).filter(([r])=>t.includes(r)));export{s as p};
@@ -1 +0,0 @@
1
- const i=({el:t,str:e="hello world",speed:x=100,isExtendStr:l=!0,onDone:o})=>{let n=0,s=null;t.textContent&&l&&(n=t.textContent.length,e=t.textContent+e);const r=()=>{clearTimeout(s);const c=e.substring(0,n+1);t.textContent=c,n++,n!==e.length ? s=setTimeout(r,x):o==null||o();};r();};export{i as p};
@@ -1 +0,0 @@
1
- const e=(a)=>parseFloat(a.replace(/[^0-9.]/g,""));export{e as p};
@@ -1 +0,0 @@
1
- const l=(e)=>{if(e.length<2)return e;const r=e[0],n=e.slice(1).filter((i)=>i<=r),s=e.slice(1).filter((i)=>i>r);return [...l(n),r,...l(s)];};export{l as q};
@@ -1 +0,0 @@
1
- const s=(r,o)=>{let e=0;const t=(n)=>{e||(e=n),n-e>=o ? r():requestAnimationFrame(t);};requestAnimationFrame(t);};export{s as r};
@@ -1 +0,0 @@
1
- import{P as o}from "./AutoSliderList-drdrxgEX.js";const t=o;export{t as r};
@@ -1 +0,0 @@
1
- const r=(t)=>t<=11 ? Math.random().toString(36).substring(2,2+t).padEnd(t,"0"):r(11)+r(t-11);export{r};
@@ -1 +0,0 @@
1
- const e=(t)=>new DOMParser().parseFromString(t,"text/html").body.textContent||"";export{e as r};
@@ -1 +0,0 @@
1
- import{Q as o}from "./AutoSliderList-drdrxgEX.js";const t=o;export{t as r};
@@ -1 +0,0 @@
1
- import{R as o}from "./AutoSliderList-drdrxgEX.js";const t=o;export{t as r};
@@ -1 +0,0 @@
1
- import{S as o}from "./AutoSliderList-drdrxgEX.js";const t=o;export{t as r};
@@ -1 +0,0 @@
1
- import{T as o}from "./AutoSliderList-drdrxgEX.js";const t=o;export{t as r};
@@ -1 +0,0 @@
1
- const s=(e)=>typeof e!="string"||e.length===0 ? "":e.charAt(0).toUpperCase()+e.slice(1);export{s};
@@ -1 +0,0 @@
1
- import{U as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as s};
@@ -1 +0,0 @@
1
- const n=(o)=>{let t;const c=new Proxy(o,{construct:(r,e)=>(t||(t=Reflect.construct(r,e)),t)});return c.prototype.construct=c,c;};export{n as s};
@@ -1 +0,0 @@
1
- function p(m,o,s={}){let a,n=null,t=null,l=0;const T=s.leading!==!1,e=s.trailing!==!1;function f(){t&&(m.apply(a,t),t=null);}function i(){const u=Date.now();u-l>=o ?(e&&t&&f(),n=null):n=setTimeout(i,o-(u-l));}const r=function(...u){const c=Date.now();t=u,a=this,c-l>=o ? n||(l=c,T ? f():e&&(n=setTimeout(i,o))):!n&&e&&(n=setTimeout(i,o-(c-l)));};return r.cancel=function(){n&&(clearTimeout(n),n=null),l=0,t=null;},r;}export{p as t};
@@ -1 +0,0 @@
1
- import{V as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as u};
@@ -1 +0,0 @@
1
- import{W as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as u};
@@ -1 +0,0 @@
1
- import{X as o}from "./AutoSliderList-drdrxgEX.js";const r=o;export{r as u};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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 +0,0 @@
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 +0,0 @@
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};
@@ -1 +0,0 @@
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 +0,0 @@
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};
@@ -1 +0,0 @@
1
- import{useLocation as a}from "react-router-dom";const c=()=>{const r=a(),o=new URLSearchParams(r.search),e={};for(let [t,s] of o.entries())e[t]=s;return e;};export{c as u};
@@ -1 +0,0 @@
1
- import{useEffect as o}from "react";let a=!1;const h=({theme:r,onDark:s,onLight:n})=>{const e=window.matchMedia("(prefers-color-scheme:dark)"),t=()=>{e.matches ? s():n();};o(()=>{(()=>{switch(a&&(a=!1,e.removeEventListener("change",t)),r){case "light":n();break;case "dark":s();break;default:t(),a=!0,e.addEventListener("change",t);}})();},[r]);};export{h as u};
@@ -1 +0,0 @@
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 +0,0 @@
1
- export { injunctiveBox } from './InjunctiveBox';
@@ -1,2 +0,0 @@
1
- import { JSX } from 'react';
2
- export declare const portalRenderer: <T>(Component: (props: T) => JSX.Element, props: Omit<T, "destroy">, id?: string, rootId?: string) => (onDestroy?: () => void) => void;
@@ -1 +0,0 @@
1
- export { portalRenderer } from './PortalRenderer';
@@ -1,2 +0,0 @@
1
- import { EventEmitter } from './eventEmitter';
2
- export declare const createEventEmitter: <T extends string[]>(eventNames: [...T]) => EventEmitter<T, T[number]>;
@@ -1,9 +0,0 @@
1
- export declare class EventEmitter<T extends string[], K extends T[number]> {
2
- private events;
3
- constructor(eventNames: T);
4
- private createEvent;
5
- emit(eventName: K, ...args: any[]): void;
6
- on(eventName: K, callback: Function, once?: boolean): void;
7
- cancel(eventName: K, callback: Function): void;
8
- clear(eventName?: K): void;
9
- }
@@ -1 +0,0 @@
1
- export { createEventEmitter } from './createEventEmitter';
@@ -1,4 +0,0 @@
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 +0,0 @@
1
- export declare const useCountdown: (initialTime?: number, onFinish?: () => void) => readonly [number, () => void, () => void];
@@ -1,5 +0,0 @@
1
- export declare const useEventListener: (event: string | string[], handler: (e: Event) => void, options?: {
2
- isDeferred?: boolean;
3
- target?: EventTarget;
4
- deps?: import('react').DependencyList;
5
- }) => (() => void) | undefined;
@@ -1,4 +0,0 @@
1
- export declare const useGetElementSize: (target?: HTMLElement | import('react').RefObject<HTMLElement | null> | (() => HTMLElement | import('react').RefObject<HTMLElement | null>) | null) => {
2
- w: number;
3
- h: number;
4
- };
@@ -1,9 +0,0 @@
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[];
4
- target?: Element;
5
- deps?: import('react').DependencyList;
6
- exactMatch?: boolean;
7
- }) => void;
8
- export type KeyType = type1;
9
- export type KeyEvent = type2;
@@ -1,8 +0,0 @@
1
- export declare const useMouseClick: () => {
2
- clientX: number;
3
- clientY: number;
4
- screenX: number;
5
- screenY: number;
6
- pageX: number;
7
- pageY: number;
8
- };
@@ -1,3 +0,0 @@
1
- export declare const useQuery: () => {
2
- [key: string]: string;
3
- };
@@ -1,7 +0,0 @@
1
- import { ThemeType as type } from '@ono-react-element/hooks';
2
- export declare const useTheme: ({ theme, onDark, onLight }: {
3
- theme: type;
4
- onDark: () => void;
5
- onLight: () => void;
6
- }) => void;
7
- export type ThemeType = type;
@@ -1,11 +0,0 @@
1
- import { ThemeType } from './useTheme';
2
- interface useThemeProps {
3
- initTheme?: ThemeType;
4
- themeRules?: (isDark: boolean) => void;
5
- }
6
- export declare const useThemePro: (options?: useThemeProps) => readonly [import('packages/hooks/dist/types').ThemeType, ({ targetTheme, element, onChange }: {
7
- targetTheme: ThemeType;
8
- element?: HTMLElement;
9
- onChange?: () => void;
10
- }) => void];
11
- export {};
@@ -1 +0,0 @@
1
- export declare const clearAsyncContagion: (func: Function) => void;
@@ -1,2 +0,0 @@
1
- import { getBrowserInfo as fn } from '@ono-react-element/utils';
2
- export declare const getBrowserInfo: typeof fn;
@@ -1 +0,0 @@
1
- export declare const adjustColor: (color: string, type: "lighten" | "darken", percent: number) => string;
@@ -1 +0,0 @@
1
- export declare const adjustingColors: (clr: string, type: "light" | "dark", percentage: number) => string;
@@ -1 +0,0 @@
1
- export declare const formatColor: (rgb: string, a?: number, type?: "rgb" | "hsl" | "hex" | "hsv" | "rgba") => string;
@@ -1 +0,0 @@
1
- export declare const getColorType: (clr: string) => "hex" | "rgb" | "unknown";
@@ -1 +0,0 @@
1
- export declare const getContrastColor: (backgroundColor: string) => "#000" | "#fff" | null;
@@ -1 +0,0 @@
1
- export declare const grayColor: (r: number, g: number, b: number) => number;
@@ -1 +0,0 @@
1
- export declare const hex2hsl: (hex: string) => string;
@@ -1 +0,0 @@
1
- export declare const hex2hsv: (hex: string) => string;
@@ -1 +0,0 @@
1
- export declare const hex2rgb: (hex: string) => string;
@@ -1 +0,0 @@
1
- export declare const hex3To6: (hex: string) => string;
@@ -1 +0,0 @@
1
- export declare const hsl2hex: (hsl: string) => string;
@@ -1 +0,0 @@
1
- export declare const hsl2rgb: (hsl: string) => string;
@@ -1 +0,0 @@
1
- export declare const hsv2hex: (hsv: string) => string;
@@ -1 +0,0 @@
1
- export declare const hsv2rgb: (hsv: string) => string;
@@ -1 +0,0 @@
1
- export declare const isValidColor: (clr: string) => boolean;
@@ -1 +0,0 @@
1
- export declare const randomColor: () => string;
@@ -1 +0,0 @@
1
- export declare const rgb2hex: (rgb: string) => string;
@@ -1 +0,0 @@
1
- export declare const rgb2hsl: (rgb: string) => string;
@@ -1 +0,0 @@
1
- export declare const rgb2hsv: (rgb: string) => string;
@@ -1 +0,0 @@
1
- export declare const rgb2rgba: (bg: string, op?: number) => string | undefined;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export declare const addCommasToNumber: (num: number) => string;
@@ -1 +0,0 @@
1
- export declare const addEventWithOriginHandler: (element: HTMLElement, event: "onclick" | "onmousemove", handler: (e: MouseEvent) => void) => void;
@@ -1 +0,0 @@
1
- export declare const calculateAspectRatio: (width: number, height: number) => string;
@@ -1 +0,0 @@
1
- export declare const chainClassNames: (...classNames: (string | undefined)[]) => string;
@@ -1 +0,0 @@
1
- export declare const checkDeviceIsMobile: () => boolean;
@@ -1,4 +0,0 @@
1
- export declare const checkStatusCode: (statusCode: number, options: {
2
- onSuccess?: () => void;
3
- onFail?: () => void;
4
- }) => void;
@@ -1,7 +0,0 @@
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 +0,0 @@
1
- export declare const copy2Clipboard: (text: string) => Promise<void>;
@@ -1,7 +0,0 @@
1
- /**
2
- * 通用防抖函数
3
- * @param func 需要防抖的函数
4
- * @param delay 防抖延迟时间(毫秒)
5
- * @returns 防抖后的函数
6
- */
7
- export declare const debounce: <T extends (...args: any[]) => any>(func: T, delay: number) => ((...args: Parameters<T>) => void);
@@ -1 +0,0 @@
1
- export declare const deepCopy: <T>(value: T) => T;
@@ -1 +0,0 @@
1
- export declare const ellipsisString: (str: string, start: number, end?: number) => string;
@@ -1 +0,0 @@
1
- export declare const gcd: (a: number, b: number) => number;
@@ -1 +0,0 @@
1
- export declare const getAllTheNumbers: (str: string) => RegExpMatchArray;
@@ -1,4 +0,0 @@
1
- export declare const getElementCenterPosition: (el: HTMLElement) => {
2
- x: number;
3
- y: number;
4
- };
@@ -1,4 +0,0 @@
1
- export declare const getImageSIze: (image: string | Blob | File) => Promise<{
2
- width: number;
3
- height: number;
4
- }>;
@@ -1 +0,0 @@
1
- export declare const getPointDistance: (x1: number, y1: number, x2: number, y2: number) => number;
@@ -1 +0,0 @@
1
- export declare const getURLSearchParams: (param: string) => string | null;
@@ -1 +0,0 @@
1
- export declare const isPureNumber: (str: string) => boolean;
@@ -1 +0,0 @@
1
- export declare const mediaAutoplayPolicies: (media: HTMLVideoElement | HTMLAudioElement, onSuccess?: () => void, onFail?: () => void) => void;
@@ -1 +0,0 @@
1
- export declare const padZero: (number: number) => string;
@@ -1 +0,0 @@
1
- export declare const parseQuery: (url: string) => Record<string, string>;
@@ -1 +0,0 @@
1
- export declare const passwordStrength: RegExp;
@@ -1,3 +0,0 @@
1
- export declare const pick: (obj: Record<string, any>, ...props: string[]) => {
2
- [k: string]: any;
3
- };
@@ -1,11 +0,0 @@
1
- /**
2
- *
3
- * @param { el: HTMLElement, str: string, speed?: number, isExtendStr?: boolean }
4
- */
5
- export declare const printStr: ({ el, str, speed, isExtendStr, onDone }: {
6
- el: HTMLElement;
7
- str: string;
8
- speed?: number;
9
- isExtendStr?: boolean;
10
- onDone?: () => void;
11
- }) => void;
@@ -1 +0,0 @@
1
- export declare const pureNumber: (str: string) => number;
@@ -1 +0,0 @@
1
- export declare const quickSort: (arr: number[]) => number[];
@@ -1 +0,0 @@
1
- export declare const rafTimeout: (callback: () => void, delay: number) => void;
@@ -1 +0,0 @@
1
- export declare const randomString: (len: number) => string;
@@ -1 +0,0 @@
1
- export declare const removeTag: (fragment: string) => string;
@@ -1 +0,0 @@
1
- export declare const safeCapitalizeWord: (str: string) => string;
@@ -1 +0,0 @@
1
- export declare const singleton: <T extends new (...args: any[]) => any>(className: T) => T;
@@ -1,13 +0,0 @@
1
- /**
2
- * 通用节流函数
3
- * @param func 需要节流的函数
4
- * @param delay 节流延迟时间(毫秒)
5
- * @param options 配置选项
6
- * @returns 节流后的函数
7
- */
8
- export declare function throttle<T extends (...args: any[]) => any>(func: T, delay: number, options?: {
9
- leading?: boolean;
10
- trailing?: boolean;
11
- }): T & {
12
- cancel: () => void;
13
- };
@@ -1 +0,0 @@
1
- export declare const base64ToBlob: (data: string) => Blob;
@@ -1 +0,0 @@
1
- export declare const base64ToFile: (base64: string, filename: string) => File;