ono-react-element 0.1.2 → 0.1.4
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 → AutoSliderList--SL_oEfg.js} +1 -1
- package/dist/es/{Button-CWqApx4k.js → Button-Ww8paqpP.js} +1 -1
- package/dist/es/{Carousel-D7JsU-he.js → Carousel-DAPM8l2d.js} +1 -1
- package/dist/es/{Checkbox-C6L0UHHG.js → Checkbox-2f_qQAAE.js} +1 -1
- package/dist/es/{FileDropZone-CQy4SsUO.js → FileDropZone-DPzUXNHN.js} +1 -1
- package/dist/es/{Input-CdxX4nzt.js → Input-Lfly8fwg.js} +1 -1
- package/dist/es/{Message-CXBf5Xji.js → Message-6KjMhLsG.js} +1 -1
- package/dist/es/{Modal-Cq9ZPw9X.js → Modal-Dzx7VIf6.js} +1 -1
- package/dist/es/{Radio-pth5zZkE.js → Radio-DFtmibv5.js} +1 -1
- package/dist/es/{ScrollableTabs-CNuEx01I.js → ScrollableTabs-DsCJkwtZ.js} +1 -1
- package/dist/es/{Select-CprTy0VT.js → Select-DWcJ3Sf1.js} +1 -1
- package/dist/es/{SvgImg-D2DeoPaA.js → SvgImg-CkN55qh2.js} +1 -1
- package/dist/es/{Switch-CQJGc1NQ.js → Switch-CPz1hY1h.js} +1 -1
- package/dist/es/{TemplateDialog-DAzyCsXv.js → TemplateDialog-Cy-6QlpM.js} +1 -1
- package/dist/es/{Toast-1MB_CUWF.js → Toast-CjG2Cgyp.js} +1 -1
- package/dist/es/{Tooltip-7uWxsj7r.js → Tooltip-Yo5OZNNj.js} +1 -1
- package/dist/es/{VirtualList-DThIEdea.js → VirtualList-BBCuLhOc.js} +1 -1
- package/dist/es/{Waterfall-CDXm71jP.js → Waterfall-BHPFqTAO.js} +1 -1
- package/dist/es/adjustColor.ts-RdHWIDs_.js +1 -0
- package/dist/es/adjustingColors.ts-CgCL0dMg.js +1 -0
- package/dist/es/base64ToBlob.ts-CF0wBJyp.js +1 -0
- package/dist/es/base64ToFile.ts-Daqun0sU.js +1 -0
- package/dist/es/blobToBase64.ts-B-6obJyK.js +1 -0
- package/dist/es/blobToFile.ts-ZodOYdw-.js +1 -0
- package/dist/es/changeThemeClipPathCircle.ts-Bepp2se4.js +1 -0
- package/dist/es/clearAsyncContagion.ts-C5RtaQtB.js +1 -0
- package/dist/es/convertSecondToOtherTime.ts-DDWSDWkF.js +1 -0
- package/dist/es/createIntersectionObserver.ts-0I7tNY-A.js +1 -0
- package/dist/es/dayOfYear.ts-Gj_5gYE_.js +1 -0
- package/dist/es/distinguishPlatform.ts-DP8ZPRLS.js +1 -0
- package/dist/es/distinguishPlatformDelay.ts-oaDbLqyJ.js +1 -0
- package/dist/es/downloadFile.ts-E4QokesH.js +1 -0
- package/dist/es/elementIsInViewport.ts-D_FBxt2q.js +1 -0
- package/dist/es/fileToBase64.ts-BMOtq7qU.js +1 -0
- package/dist/es/fileToBlob.ts-DWiC0bt4.js +1 -0
- package/dist/es/formatColor.ts-B5grfLA3.js +1 -0
- package/dist/es/formatFileSize.ts-BHfL9GuD.js +1 -0
- package/dist/es/formatSecond.ts-CM3Ty-dm.js +1 -0
- package/dist/es/formatTime.ts-9JMGu1FJ.js +1 -0
- package/dist/es/getBrowserInfo.ts-z5Y7w67A.js +1 -0
- package/dist/es/getColorType.ts-B-2Uap5K.js +1 -0
- package/dist/es/getContrastColor.ts-Ct6Kv-sI.js +1 -0
- package/dist/es/getFileName.ts-DUP4QnNt.js +1 -0
- package/dist/es/getFileSuffix.ts-CGUkEhiZ.js +1 -0
- package/dist/es/grayColor.ts-C7tFTKo4.js +1 -0
- package/dist/es/hex2hsl.ts-IU35ETD2.js +1 -0
- package/dist/es/hex2hsv.ts-BQSsQK0_.js +1 -0
- package/dist/es/hex2rgb.ts-DdITaQdt.js +1 -0
- package/dist/es/hex3To6.ts-Cz-CX7ue.js +1 -0
- package/dist/es/hsl2hex.ts-CPGKR1VZ.js +1 -0
- package/dist/es/hsl2rgb.ts-CQa0lPW3.js +1 -0
- package/dist/es/hsv2hex.ts-ARrE34Sl.js +1 -0
- package/dist/es/hsv2rgb.ts-qoTWU7ht.js +1 -0
- package/dist/es/index.js +1 -1
- package/dist/es/isValidColor.ts-C_zDBBYB.js +1 -0
- package/dist/es/localFormat.ts-FmVutwBm.js +1 -0
- package/dist/es/randomColor.ts-BDCW5gBU.js +1 -0
- package/dist/es/rgb2hex.ts-D9CRyHvX.js +1 -0
- package/dist/es/rgb2hsl.ts-Bx8ZfRhL.js +1 -0
- package/dist/es/rgb2hsv.ts-D9tvqqmg.js +1 -0
- package/dist/es/rgb2rgba.ts-BvtPu5yC.js +1 -0
- package/dist/es/second2Day.ts-1c4x2gUB.js +1 -0
- package/dist/es/urlToBase64.ts-DYdep26Q.js +1 -0
- package/dist/es/urlToBlob.ts-D0mqaqdf.js +1 -0
- package/dist/es/urlToFile.ts-BZxNYz0P.js +1 -0
- package/dist/es/{useThemePro.tsx-MwfY4tCX.js → useThemePro.tsx-CcwWckIi.js} +1 -1
- package/dist/types/hooks/useKeyPress.d.ts +1 -1
- package/dist/types/hooks/useTheme.d.ts +1 -1
- package/dist/types/utils/browser/getBrowserInfo.d.ts +1 -1
- package/dist/types/utils/time/localFormat.d.ts +1 -1
- 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 +53 -53
- package/dist/es/adjustColor.ts-D1ttRO_o.js +0 -1
- package/dist/es/adjustingColors.ts-CQV_S12M.js +0 -1
- package/dist/es/base64ToBlob.ts-BpYnI1_k.js +0 -1
- package/dist/es/base64ToFile.ts-B526yxVq.js +0 -1
- package/dist/es/blobToBase64.ts-CJROQ7nO.js +0 -1
- package/dist/es/blobToFile.ts-CjkxPmEw.js +0 -1
- package/dist/es/changeThemeClipPathCircle.ts-CHY9pNkk.js +0 -1
- package/dist/es/clearAsyncContagion.ts-DseR8G-S.js +0 -1
- package/dist/es/convertSecondToOtherTime.ts-BlSK8Hsn.js +0 -1
- package/dist/es/createIntersectionObserver.ts-CPwdNz7M.js +0 -1
- package/dist/es/dayOfYear.ts-FVQlJIhw.js +0 -1
- package/dist/es/distinguishPlatform.ts-BITl3t1o.js +0 -1
- package/dist/es/distinguishPlatformDelay.ts-DupUPv6F.js +0 -1
- package/dist/es/downloadFile.ts-C5v3gvXJ.js +0 -1
- package/dist/es/elementIsInViewport.ts-DnBd8TjE.js +0 -1
- package/dist/es/fileToBase64.ts-LDhPtYZ8.js +0 -1
- package/dist/es/fileToBlob.ts-C4Y1I82u.js +0 -1
- package/dist/es/formatColor.ts-D_Sws4M1.js +0 -1
- package/dist/es/formatFileSize.ts-CoUwKtCA.js +0 -1
- package/dist/es/formatSecond.ts-Dc436DN-.js +0 -1
- package/dist/es/formatTime.ts-BY0hrdXI.js +0 -1
- package/dist/es/getBrowserInfo.ts-CFS4Oz41.js +0 -1
- package/dist/es/getColorType.ts-B5Qax_03.js +0 -1
- package/dist/es/getContrastColor.ts-vmwZYf4O.js +0 -1
- package/dist/es/getFileName.ts-CAdDeTqT.js +0 -1
- package/dist/es/getFileSuffix.ts-RBCEexOt.js +0 -1
- package/dist/es/grayColor.ts-BeAK97Od.js +0 -1
- package/dist/es/hex2hsl.ts-fQ072W3P.js +0 -1
- package/dist/es/hex2hsv.ts-Bewjcepy.js +0 -1
- package/dist/es/hex2rgb.ts-tP-M30oZ.js +0 -1
- package/dist/es/hex3To6.ts-epLJiP-G.js +0 -1
- package/dist/es/hsl2hex.ts-BILOsbJk.js +0 -1
- package/dist/es/hsl2rgb.ts-DCdzknv1.js +0 -1
- package/dist/es/hsv2hex.ts-U8Md-VPN.js +0 -1
- package/dist/es/hsv2rgb.ts-C4AdDfKf.js +0 -1
- package/dist/es/isValidColor.ts-oChVkAT9.js +0 -1
- package/dist/es/localFormat.ts-B32R_kV4.js +0 -1
- package/dist/es/randomColor.ts-BiDP87Yi.js +0 -1
- package/dist/es/rgb2hex.ts-itJEWSC0.js +0 -1
- package/dist/es/rgb2hsl.ts-BmthoL_h.js +0 -1
- package/dist/es/rgb2hsv.ts-o8o8uIwc.js +0 -1
- package/dist/es/rgb2rgba.ts-ZXQCbTkT.js +0 -1
- package/dist/es/second2Day.ts-XjEpcvCc.js +0 -1
- package/dist/es/urlToBase64.ts-DzO1pwIZ.js +0 -1
- package/dist/es/urlToBlob.ts-DmOp0wbt.js +0 -1
- package/dist/es/urlToFile.ts-KrTFcI-e.js +0 -1
package/dist/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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-
|
|
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-CcwWckIi.js";import{c as T}from "./clearAsyncContagion.ts-C5RtaQtB.js";import{g as v}from "./getBrowserInfo.ts-z5Y7w67A.js";import{a as P}from "./adjustColor.ts-RdHWIDs_.js";import{a as F}from "./adjustingColors.ts-CgCL0dMg.js";import{f as A}from "./formatColor.ts-B5grfLA3.js";import{g as I}from "./getColorType.ts-B-2Uap5K.js";import{g as k}from "./getContrastColor.ts-Ct6Kv-sI.js";import{g as L}from "./grayColor.ts-C7tFTKo4.js";import{h as N}from "./hex2hsl.ts-IU35ETD2.js";import{h as z}from "./hex2hsv.ts-BQSsQK0_.js";import{h as V}from "./hex2rgb.ts-DdITaQdt.js";import{h as j}from "./hex3To6.ts-Cz-CX7ue.js";import{h as G}from "./hsl2hex.ts-CPGKR1VZ.js";import{h as Y}from "./hsl2rgb.ts-CQa0lPW3.js";import{h as K}from "./hsv2hex.ts-ARrE34Sl.js";import{h as J}from "./hsv2rgb.ts-qoTWU7ht.js";import{i as _}from "./isValidColor.ts-C_zDBBYB.js";import{r as oo}from "./randomColor.ts-BDCW5gBU.js";import{r as eo}from "./rgb2hex.ts-D9CRyHvX.js";import{r as ao}from "./rgb2hsl.ts-Bx8ZfRhL.js";import{r as mo}from "./rgb2hsv.ts-D9tvqqmg.js";import{r as fo}from "./rgb2rgba.ts-BvtPu5yC.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-CF0wBJyp.js";import{b as yr}from "./base64ToFile.ts-Daqun0sU.js";import{b as Br}from "./blobToBase64.ts-B-6obJyK.js";import{b as Or}from "./blobToFile.ts-ZodOYdw-.js";import{d as Dr}from "./downloadFile.ts-E4QokesH.js";import{f as Er}from "./fileToBase64.ts-BMOtq7qU.js";import{f as wr}from "./fileToBlob.ts-DWiC0bt4.js";import{f as Mr}from "./formatFileSize.ts-BHfL9GuD.js";import{g as Rr}from "./getFileName.ts-DUP4QnNt.js";import{g as Wr}from "./getFileSuffix.ts-CGUkEhiZ.js";import{u as Zr}from "./urlToBase64.ts-DYdep26Q.js";import{u as qr}from "./urlToBlob.ts-D0mqaqdf.js";import{u as Qr}from "./urlToFile.ts-BZxNYz0P.js";import{c as Hr}from "./createIntersectionObserver.ts-0I7tNY-A.js";import{e as Ur}from "./elementIsInViewport.ts-D_FBxt2q.js";import{d as Xr}from "./distinguishPlatform.ts-DP8ZPRLS.js";import{d as $r}from "./distinguishPlatformDelay.ts-oaDbLqyJ.js";import{c as re}from "./convertSecondToOtherTime.ts-DDWSDWkF.js";import{d as te}from "./dayOfYear.ts-Gj_5gYE_.js";import{f as se}from "./formatSecond.ts-CM3Ty-dm.js";import{f as pe}from "./formatTime.ts-9JMGu1FJ.js";import{l as xe}from "./localFormat.ts-FmVutwBm.js";import{s as le}from "./second2Day.ts-1c4x2gUB.js";import{c as ue}from "./changeThemeClipPathCircle.ts-Bepp2se4.js";import{c as ge}from "./event-BIaLzjOy.js";import{Y as he,Z as be}from "./AutoSliderList--SL_oEfg.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-Ww8paqpP.js";import{C as Oe}from "./Card3D-C1ddJnYV.js";import{C as De}from "./Carousel-DAPM8l2d.js";import{C as Ee}from "./Checkbox-2f_qQAAE.js";import{c as we}from "./ContextMenu-Cg72hSPN.js";import{E as Me,c as Ne}from "./VirtualList-BBCuLhOc.js";import{F as ze}from "./FileDropZone-DPzUXNHN.js";import{M as Ve}from "./MenuButton-CjudK6uV.js";import{m as je}from "./Message-6KjMhLsG.js";import{M as Ge}from "./Modal-Dzx7VIf6.js";import{O as Ye,a as He}from "./Input-Lfly8fwg.js";import{O as Ue}from "./Select-DWcJ3Sf1.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-DFtmibv5.js";import{S as at}from "./ScrollableTabs-DsCJkwtZ.js";import{S as mt}from "./SvgImg-CkN55qh2.js";import{S as ft}from "./Switch-CPz1hY1h.js";import{T as it}from "./TemplateDialog-Cy-6QlpM.js";import{t as nt}from "./Toast-CjG2Cgyp.js";import{T as ct}from "./Tooltip-Yo5OZNNj.js";import{W as dt}from "./Waterfall-BHPFqTAO.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--SL_oEfg.js";const r=o;export{r as i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{O as o}from "./AutoSliderList--SL_oEfg.js";const r=o;export{r as l};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{P as o}from "./AutoSliderList--SL_oEfg.js";const t=o;export{t as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Q as o}from "./AutoSliderList--SL_oEfg.js";const t=o;export{t as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{R as o}from "./AutoSliderList--SL_oEfg.js";const t=o;export{t as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{S as o}from "./AutoSliderList--SL_oEfg.js";const t=o;export{t as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{T as o}from "./AutoSliderList--SL_oEfg.js";const t=o;export{t as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{U as o}from "./AutoSliderList--SL_oEfg.js";const r=o;export{r as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{V as o}from "./AutoSliderList--SL_oEfg.js";const r=o;export{r as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{W as o}from "./AutoSliderList--SL_oEfg.js";const r=o;export{r as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{X as o}from "./AutoSliderList--SL_oEfg.js";const r=o;export{r as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useState as l,useRef as h}from "react";import{v as o}from "./AutoSliderList
|
|
1
|
+
import{useState as l,useRef as h}from "react";import{v as o}from "./AutoSliderList--SL_oEfg.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,4 +1,4 @@
|
|
|
1
|
-
import { KeyType as type1, KeyEvent as type2 } from '@
|
|
1
|
+
import { KeyType as type1, KeyEvent as type2 } from '@onoxm/react-hooks';
|
|
2
2
|
export declare const useKeyPress: (keyFilter: type1 | type1[], eventHandler: (event: KeyboardEvent, key: type1) => void, options?: {
|
|
3
3
|
events?: type2 | type2[];
|
|
4
4
|
target?: Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { getBrowserInfo as fn } from '@
|
|
1
|
+
import { getBrowserInfo as fn } from '@onoxm/utils';
|
|
2
2
|
export declare const getBrowserInfo: typeof fn;
|