ono-react-element 0.0.30 → 0.1.1
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.
- package/dist/es/AutoSliderList-drdrxgEX.js +1 -0
- package/dist/es/{AvatarCrop-CSkrjAcy.js → AvatarCrop-Cn9RwTGU.js} +1 -1
- package/dist/es/Button-CWqApx4k.js +1 -0
- package/dist/es/{Card3D-DrfpLxw2.js → Card3D-C1ddJnYV.js} +1 -1
- package/dist/es/Carousel-D7JsU-he.js +1 -0
- package/dist/es/Checkbox-C6L0UHHG.js +1 -0
- package/dist/es/ContextMenu-Cg72hSPN.js +1 -0
- package/dist/es/FileDropZone-CQy4SsUO.js +1 -0
- package/dist/es/{InjunctiveBox-vLlRm8LB.js → InjunctiveBox-DsNUniss.js} +1 -1
- package/dist/es/Input-CdxX4nzt.js +1 -0
- package/dist/es/{MenuButton-M93IpBnN.js → MenuButton-CjudK6uV.js} +1 -1
- package/dist/es/Message-CXBf5Xji.js +1 -0
- package/dist/es/Modal-Cq9ZPw9X.js +1 -0
- package/dist/es/{Pagination-L17GYQVO.js → Pagination-wxdQuNM4.js} +1 -1
- package/dist/es/{PortalRenderer-izu9LyVc.js → PortalRenderer-CUaab_Kw.js} +1 -1
- package/dist/es/Radio-pth5zZkE.js +1 -0
- package/dist/es/ScrollableTabs-CNuEx01I.js +1 -0
- package/dist/es/Select-CprTy0VT.js +1 -0
- package/dist/es/SvgImg-D2DeoPaA.js +1 -0
- package/dist/es/Switch-CQJGc1NQ.js +1 -0
- package/dist/es/TemplateDialog-DAzyCsXv.js +1 -0
- package/dist/es/Toast-1MB_CUWF.js +1 -0
- package/dist/es/Tooltip-7uWxsj7r.js +1 -0
- package/dist/es/VirtualList-DThIEdea.js +1 -0
- package/dist/es/Waterfall-CDXm71jP.js +1 -0
- package/dist/es/adjustColor.ts-D1ttRO_o.js +1 -0
- package/dist/es/adjustingColors.ts-CQV_S12M.js +1 -0
- package/dist/es/base64ToBlob.ts-BpYnI1_k.js +1 -0
- package/dist/es/base64ToFile.ts-B526yxVq.js +1 -0
- package/dist/es/blobToBase64.ts-CJROQ7nO.js +1 -0
- package/dist/es/blobToFile.ts-CjkxPmEw.js +1 -0
- package/dist/es/changeThemeClipPathCircle.ts-CHY9pNkk.js +1 -0
- package/dist/es/clearAsyncContagion.ts-DseR8G-S.js +1 -0
- package/dist/es/controlTheScrollbarScrolling.ts-WYW8laxj.js +1 -0
- package/dist/es/convertSecondToOtherTime.ts-BlSK8Hsn.js +1 -0
- package/dist/es/createIntersectionObserver.ts-CPwdNz7M.js +1 -0
- package/dist/es/dayOfYear.ts-FVQlJIhw.js +1 -0
- package/dist/es/dependencies-D-GIrksw.js +15480 -0
- package/dist/es/distinguishPlatform.ts-BITl3t1o.js +1 -0
- package/dist/es/distinguishPlatformDelay.ts-DupUPv6F.js +1 -0
- package/dist/es/downloadFile.ts-C5v3gvXJ.js +1 -0
- package/dist/es/elementIsInViewport.ts-DnBd8TjE.js +1 -0
- package/dist/es/event-BIaLzjOy.js +1 -0
- package/dist/es/fileToBase64.ts-LDhPtYZ8.js +1 -0
- package/dist/es/fileToBlob.ts-C4Y1I82u.js +1 -0
- package/dist/es/formatColor.ts-D_Sws4M1.js +1 -0
- package/dist/es/formatFileSize.ts-CoUwKtCA.js +1 -0
- package/dist/es/formatSecond.ts-Dc436DN-.js +1 -0
- package/dist/es/formatTime.ts-BY0hrdXI.js +1 -0
- package/dist/es/getBrowserInfo.ts-CFS4Oz41.js +1 -0
- package/dist/es/getColorType.ts-B5Qax_03.js +1 -0
- package/dist/es/getContrastColor.ts-vmwZYf4O.js +1 -0
- package/dist/es/getFileName.ts-CAdDeTqT.js +1 -0
- package/dist/es/getFileSuffix.ts-RBCEexOt.js +1 -0
- package/dist/es/grayColor.ts-BeAK97Od.js +1 -0
- package/dist/es/hex2hsl.ts-fQ072W3P.js +1 -0
- package/dist/es/hex2hsv.ts-Bewjcepy.js +1 -0
- package/dist/es/hex2rgb.ts-tP-M30oZ.js +1 -0
- package/dist/es/hex3To6.ts-epLJiP-G.js +1 -0
- package/dist/es/hsl2hex.ts-BILOsbJk.js +1 -0
- package/dist/es/hsl2rgb.ts-DCdzknv1.js +1 -0
- package/dist/es/hsv2hex.ts-U8Md-VPN.js +1 -0
- package/dist/es/hsv2rgb.ts-C4AdDfKf.js +1 -0
- package/dist/es/index.js +1 -1
- package/dist/es/isValidColor.ts-oChVkAT9.js +1 -0
- package/dist/es/localFormat.ts-B32R_kV4.js +1 -0
- package/dist/es/randomColor.ts-BiDP87Yi.js +1 -0
- package/dist/es/rgb2hex.ts-itJEWSC0.js +1 -0
- package/dist/es/rgb2hsl.ts-BmthoL_h.js +1 -0
- package/dist/es/rgb2hsv.ts-o8o8uIwc.js +1 -0
- package/dist/es/rgb2rgba.ts-ZXQCbTkT.js +1 -0
- package/dist/es/second2Day.ts-XjEpcvCc.js +1 -0
- package/dist/es/urlToBase64.ts-DzO1pwIZ.js +1 -0
- package/dist/es/urlToBlob.ts-DmOp0wbt.js +1 -0
- package/dist/es/urlToFile.ts-KrTFcI-e.js +1 -0
- package/dist/es/useClickOutSide.tsx-Drp6uYap.js +1 -0
- package/dist/es/useCountdown.tsx-BHrpYPuf.js +1 -0
- package/dist/es/{useEventListener.tsx-C8V9Qip6.js → useEventListener.tsx-BDtH_FiI.js} +1 -1
- package/dist/es/{useGetElementSize.tsx-DML7z5Xp.js → useGetElementSize.tsx-CYGNJaFz.js} +1 -1
- package/dist/es/useKeyPress.tsx-ClBLUMui.js +1 -0
- package/dist/es/{useMouseClick.tsx-BmzbuM6X.js → useMouseClick.tsx-nz5umn7V.js} +1 -1
- package/dist/es/useThemePro.tsx-MwfY4tCX.js +1 -0
- package/dist/types/event/eventEmitter.d.ts +3 -1
- package/dist/types/hooks/useClickOutSide.d.ts +4 -9
- package/dist/types/hooks/useEventListener.d.ts +3 -6
- package/dist/types/hooks/useGetElementSize.d.ts +1 -2
- package/dist/types/hooks/useKeyPress.d.ts +7 -10
- package/dist/types/hooks/useTheme.d.ts +5 -6
- package/dist/types/hooks/useThemePro.d.ts +1 -1
- package/dist/types/index.d.ts +7 -4
- package/dist/types/utils/async2sync/clearAsyncContagion.d.ts +1 -0
- package/dist/types/utils/browser/getBrowserInfo.d.ts +2 -0
- package/dist/types/utils/color/adjustingColors.d.ts +0 -7
- package/dist/types/utils/color/formatColor.d.ts +1 -3
- package/dist/types/utils/color/getColorType.d.ts +1 -1
- package/dist/types/utils/common/controlTheScrollbarScrolling.d.ts +7 -0
- package/dist/types/utils/file/downloadFile.d.ts +0 -5
- package/dist/types/utils/intersectionObserver/createIntersectionObserver.d.ts +1 -0
- package/dist/types/utils/intersectionObserver/elementIsInViewport.d.ts +5 -0
- package/dist/types/utils/platform/distinguishPlatform.d.ts +1 -6
- package/dist/types/utils/platform/distinguishPlatformDelay.d.ts +1 -2
- package/dist/types/utils/time/convertTimestamp.d.ts +1 -1
- package/dist/types/utils/time/dateFormat.d.ts +1 -2
- package/dist/types/utils/time/localFormat.d.ts +3 -2
- package/dist/types/utils/time/monthFormat.d.ts +1 -2
- package/dist/types/utils/time/yearFormat.d.ts +1 -2
- package/dist/types/utils/viewTransition/changeThemeClipPathCircle.d.ts +6 -0
- package/dist/umd/index.umd.cjs +1 -1
- package/dist/umd/index.umd.cjs.br +0 -0
- package/dist/umd/index.umd.cjs.gz +0 -0
- package/package.json +3 -7
- package/dist/es/AutoSliderList-CVDZG5cu.js +0 -1
- package/dist/es/Button-P2AG5fc6.js +0 -1
- package/dist/es/Carousel-DOesUSmW.js +0 -1
- package/dist/es/Checkbox-DJYMF9I4.js +0 -1
- package/dist/es/ContextMenu-DlhlsQrA.js +0 -1
- package/dist/es/FileDropZone-BSLGVa4n.js +0 -1
- package/dist/es/Input-Hy30rZ_v.js +0 -1
- package/dist/es/Message-COQA0S8d.js +0 -1
- package/dist/es/Modal-CJrgmTMc.js +0 -1
- package/dist/es/Radio-CEooiIll.js +0 -1
- package/dist/es/ScrollableTabs-okdQWyZ9.js +0 -1
- package/dist/es/Select-bhQ7DjXD.js +0 -1
- package/dist/es/SvgImg-D_jzo9p9.js +0 -1
- package/dist/es/Switch-DZ-GXwol.js +0 -1
- package/dist/es/TemplateDialog-iy7z7joV.js +0 -1
- package/dist/es/Toast-CZw9LQzq.js +0 -1
- package/dist/es/Tooltip-DvUB7xZH.js +0 -1
- package/dist/es/VirtualList-CoQKjvuB.js +0 -1
- package/dist/es/Waterfall-B9EXJfxK.js +0 -1
- package/dist/es/adjustColor.ts-Bcmtt429.js +0 -1
- package/dist/es/adjustingColors.ts-CpC0GUUO.js +0 -1
- package/dist/es/async2syncUtils.ts-DkF1iSK4.js +0 -1
- package/dist/es/base64ToBlob.ts-TfYiqeZD.js +0 -1
- package/dist/es/base64ToFile.ts-DMMwTaBr.js +0 -1
- package/dist/es/blobToBase64.ts-CPZTWtAM.js +0 -1
- package/dist/es/blobToFile.ts-BXmUv6W-.js +0 -1
- package/dist/es/browserUtils.ts-DSM1TN_g.js +0 -1
- package/dist/es/convertSecondToOtherTime.ts-BJegkJhl.js +0 -1
- package/dist/es/convertTimestamp.ts-DOHA1Ix6.js +0 -1
- package/dist/es/dateFormat.ts-DXskLY1N.js +0 -1
- package/dist/es/dayOfYear.ts-DdscYtyU.js +0 -1
- package/dist/es/dependencies-B7YNjh_z.js +0 -15719
- package/dist/es/distinguishPlatform.ts-D2huTxC3.js +0 -1
- package/dist/es/downloadFile.ts-1nf2IAw4.js +0 -1
- package/dist/es/event-B2tGdMqN.js +0 -1
- package/dist/es/fileToBase64.ts-Dx4eMf1P.js +0 -1
- package/dist/es/fileToBlob.ts-t5-IVXI8.js +0 -1
- package/dist/es/formatColor.ts-BpkK5FYe.js +0 -1
- package/dist/es/formatFileSize.ts-DmkABYUs.js +0 -1
- package/dist/es/formatSecond.ts-CI2ihnKf.js +0 -1
- package/dist/es/formatTime.ts-DNtDsT9L.js +0 -1
- package/dist/es/getColorType.ts-B-_g2UQs.js +0 -1
- package/dist/es/getContrastColor.ts-5KaKa1G7.js +0 -1
- package/dist/es/getFileName.ts-BeGee0uD.js +0 -1
- package/dist/es/getFileSuffix.ts-BNoXbi6l.js +0 -1
- package/dist/es/grayColor.ts-bqVfONY0.js +0 -1
- package/dist/es/hex2hsl.ts-BLU_9tQG.js +0 -1
- package/dist/es/hex2hsv.ts-CNUNM2bM.js +0 -1
- package/dist/es/hex2rgb.ts-BQpml6Tb.js +0 -1
- package/dist/es/hex3To6.ts-BNOY-YJ2.js +0 -1
- package/dist/es/hsl2hex.ts-D9xS0UDg.js +0 -1
- package/dist/es/hsl2rgb.ts-B6-BIsnP.js +0 -1
- package/dist/es/hsv2hex.ts-BNkK519v.js +0 -1
- package/dist/es/hsv2rgb.ts-Bvoa3lA1.js +0 -1
- package/dist/es/intersectionObserverUtils.ts-BdWvnE4X.js +0 -1
- package/dist/es/isValidColor.ts-CpkuoTf9.js +0 -1
- package/dist/es/localFormat.ts-vxgGt_Za.js +0 -1
- package/dist/es/monthFormat.ts-B_s3ZbNy.js +0 -1
- package/dist/es/randomColor.ts-Cf-bUfCt.js +0 -1
- package/dist/es/rgb2hex.ts-Dkw9FDV4.js +0 -1
- package/dist/es/rgb2hsl.ts-BPiSggZg.js +0 -1
- package/dist/es/rgb2hsv.ts-CxNRFDKF.js +0 -1
- package/dist/es/rgb2rgba.ts-Dx8-1nZt.js +0 -1
- package/dist/es/second2Day.ts-DHntMxxp.js +0 -1
- package/dist/es/urlToBase64.ts-t7glJoIV.js +0 -1
- package/dist/es/urlToBlob.ts-DDhIhkMn.js +0 -1
- package/dist/es/urlToFile.ts-Dp1k4tJm.js +0 -1
- package/dist/es/useClickOutSide.tsx-C6XuLZzd.js +0 -1
- package/dist/es/useCountdown.tsx-DWqs6wNp.js +0 -1
- package/dist/es/useKeyPress.tsx-hgs6v_Jt.js +0 -1
- package/dist/es/useThemePro.tsx-B4A9l0LS.js +0 -1
- package/dist/es/viewTransitionUtils.ts-C-QehXbC.js +0 -1
- package/dist/es/yearFormat.ts-DxbWP43R.js +0 -1
- package/dist/types/utils/async2syncUtils.d.ts +0 -5
- package/dist/types/utils/browserUtils.d.ts +0 -10
- package/dist/types/utils/intersectionObserverUtils.d.ts +0 -15
- package/dist/types/utils/viewTransitionUtils.d.ts +0 -9
- /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
|
|
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
|
|
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
|
|
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{
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 {
|
|
2
|
-
export
|
|
3
|
-
|
|
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
|
|
11
|
-
export
|
|
12
|
-
export {};
|
|
7
|
+
}) => void;
|
|
8
|
+
export type KeyType = type1;
|
|
9
|
+
export type KeyEvent = type2;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
theme:
|
|
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
|
|
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;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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 {
|
|
13
|
-
import {
|
|
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 {
|
|
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
|
-
|
|
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;
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
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) => "
|
|
1
|
+
export declare const getColorType: (clr: string) => "hex" | "rgb" | "unknown";
|
|
@@ -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
|
|
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/src/platform/distinguishPlatform').DistinguishPlatformType) => "Unknown" | "Android" | "iOS";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const distinguishPlatformDelay: ({ onAndroid, onIOS, onUnknown, timeout }: DistinguishPlatformType & {
|
|
1
|
+
export declare const distinguishPlatformDelay: ({ onAndroid, onIOS, onUnknown, timeout }: import('packages/utils/dist/types/src/platform/distinguishPlatform').DistinguishPlatformType & {
|
|
3
2
|
timeout?: number;
|
|
4
3
|
}) => () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const dateFormat: (date: string, language: LanguageType) => string;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const localFormat: (number: number, format?: string, language?:
|
|
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
|
-
|
|
2
|
-
export declare const monthFormat: (month: string, language: LanguageType) => string;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const yearFormat: (year: string, language: LanguageType) => string;
|
|
1
|
+
export {};
|