ono-react-element 0.0.22 → 0.0.24
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/index.js +1 -1
- package/dist/es/useQuery.tsx-FzGWYq50.js +1 -0
- package/dist/types/hooks/useKeyPress.d.ts +2 -2
- package/dist/types/hooks/useQuery.d.ts +4 -0
- package/dist/types/index.d.ts +5 -4
- 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 +1 -1
package/dist/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as o}from "./useClickOutSide.tsx-C6XuLZzd.js";import{u as
|
|
1
|
+
import{u as o}from "./useClickOutSide.tsx-C6XuLZzd.js";import{u as s}from "./useCountdown.tsx-DWqs6wNp.js";import{u as m}from "./useEventListener.tsx-C8V9Qip6.js";import{u as p}from "./useGetElementSize.tsx-DML7z5Xp.js";import{u as f}from "./useKeyPress.tsx-hgs6v_Jt.js";import{u as n}from "./useMouseClick.tsx-BmzbuM6X.js";import{u as c}from "./useQuery.tsx-FzGWYq50.js";import{u as S}from "./useTheme.tsx-C-GCpzAS.js";import{u as b}from "./useThemePro.tsx-BIU8EPPB.js";import{a as C,c as h}from "./colorUtils.ts-Cxx4mvOB.js";import{a as y,b as B,c as D,d as O,e as v,f as A,h as E,i as P,j as k,k as I,l as L,m as M,n as w,o as R,q as z,g as N,r as W,s as G,u as j,v as q,w as H,x as Q,y as U,z as K,A as V,B as Y,C as Z,D as J,p as X,E as _,F as $,G as ee,H as ae,I as oe,t as re}from "./common.ts-OTJMJPHg.js";import{b as te,a as me,c as ie,d as pe,f as le,e as fe,u as ue,g as ne,h as xe}from "./fileFormatConversion.ts-3AQHtta9.js";import{c as de,f as Se,l as Te,s as be}from "./formatTimeUtils.ts-ng_eAUID.js";import{c as Ce}from "./event-B2tGdMqN.js";import{A as Fe,D as ye}from "./AutoSliderList-DD7w6KlD.js";import{A as De}from "./AvatarCrop-CSkrjAcy.js";import{A as ve,L as Ae}from "./List-DXRmDwDo.js";import{B as Pe}from "./Button-DXWGWvF-.js";import{C as Ie}from "./Card3D-DrfpLxw2.js";import{C as Me}from "./Checkbox-jOOMkqbP.js";import{c as Re}from "./ContextMenu-BL414VF5.js";import{E as Ne,c as We}from "./VirtualList-YXDe-9GK.js";import{F as je}from "./FileDropZone-Czdv3XF4.js";import{M as He}from "./MenuButton-C22ekETH.js";import{m as Ue}from "./Message-AC7MOJ5X.js";import{M as Ve}from "./Modal-e1dQi2y3.js";import{O as Ze,a as Je}from "./Input-UCScuMXP.js";import{O as _e}from "./Select-D5zgLQ8n.js";import{P as ea}from "./Pagination-L17GYQVO.js";import{p as oa}from "./PortalRenderer-izu9LyVc.js";import{R as sa,a as ta}from "./Radio-m9BOKzf5.js";import{S as ia}from "./ScrollableTabs-DgcrSjsb.js";import{S as la}from "./SvgImg-HkuwJQ4_.js";import{S as ua}from "./Switch-DoiR9_x4.js";import{T as xa}from "./TemplateDialog-D4D6YS2U.js";import{t as da}from "./Toast-CERLQ4i7.js";import{T as Ta}from "./Tooltip-DDUtx7BP.js";import{W as ga}from "./Waterfall-D8AExUDu.js";export{Fe as AutoSliderList,De as AvatarCrop,ve as AwaitList,Pe as Button,Ie as Card3D,Me as Checkbox,ye as Direction,Ne as EstimatedVirtualList,je as FileDropZone,Ae as List,He as MenuButton,Ve as Modal,Ze as OnoInput,_e as OnoSelect,Je as OnoTextarea,ea as Pagination,sa as Radio,ta as RadioGroup,ia as ScrollableTabs,la as SvgImg,ua as Switch,xa as TemplateDialog,Ta as Tooltip,ga as Waterfall,y as addCommasToNumber,B as addEventWithOriginHandler,C as adjustingColors,te as base64ToBlob,me as base64ToFile,ie as blobToBase64,pe as blobToFile,D as calculateAspectRatio,O as checkDeviceIsMobile,v as checkStatusCode,h as colorUtils,A as common,Re as contextMenu,de as convertSecondToOtherTime,E as copy2Clipboard,We as createDataSource,Ce as createEventEmitter,P as createIntersectionObserver,k as dayOfYear,I as debounce,L as deepCopy,M as downloadFile,w as ellipsisString,le as fileToBase64,fe as fileToBlob,R as formatFileSize,z as formatSecondes,Se as formatTime,N as getElementCenterPosition,W as getFileName,G as getFileSuffix,j as getImageSIze,q as getPointDistance,H as getURLSearchParams,Q as grayColor,U as isPureNumber,Te as localFormat,K as mediaAutoplayPolicies,Ue as message,V as parseQuery,Y as passwordStrength,Z as pick,oa as portalRenderer,J as printStr,X as pureNumber,_ as quickSort,$ as rafTimeout,ee as randomString,ae as safeCapitalizeWord,be as second2Day,oe as singleton,re as throttle,da as toast,ue as urlToBase64,ne as urlToBlob,xe as urlToFile,o as useClickOutSide,s as useCountdown,m as useEventListener,p as useGetElementSize,f as useKeyPress,n as useMouseClick,c as useQuery,S as useTheme,b as useThemePro};
|
|
@@ -0,0 +1 @@
|
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import { DependencyList } from 'react';
|
|
2
|
-
type KeyType = number | string | FunctionKey;
|
|
3
|
-
type KeyEvent = 'keydown' | 'keyup';
|
|
2
|
+
export type KeyType = number | string | FunctionKey;
|
|
3
|
+
export type KeyEvent = 'keydown' | 'keyup';
|
|
4
4
|
type Options = {
|
|
5
5
|
events?: KeyEvent | KeyEvent[];
|
|
6
6
|
target?: Element;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { AutoSliderList, AvatarCrop, AwaitList, Button, Card3D, Checkbox, contextMenu, createDataSource, Direction, EstimatedVirtualList, FileDropZone, List, MenuButton, message, Modal, OnoInput, OnoSelect, OnoTextarea, Pagination, portalRenderer, Radio, RadioGroup, ScrollableTabs, SvgImg, Switch, TemplateDialog, toast, Tooltip, Waterfall, ImageItem } from './components';
|
|
1
|
+
import { AutoSliderList, AvatarCrop, AwaitList, Button, Card3D, Checkbox, contextMenu, createDataSource, Direction, EstimatedVirtualList, FileDropZone, List, MenuButton, message, Modal, OnoInput, OnoSelect, OnoTextarea, Pagination, portalRenderer, Radio, RadioGroup, ScrollableTabs, SvgImg, Switch, TemplateDialog, toast, Tooltip, Waterfall, ImageItem, OFileType } from './components';
|
|
2
2
|
import { createEventEmitter } from './event';
|
|
3
3
|
import { default as useClickOutSide } from './hooks/useClickOutSide';
|
|
4
4
|
import { default as useCountdown } from './hooks/useCountdown';
|
|
5
5
|
import { default as useEventListener } from './hooks/useEventListener';
|
|
6
6
|
import { default as useGetElementSize } from './hooks/useGetElementSize';
|
|
7
|
-
import { default as useKeyPress } from './hooks/useKeyPress';
|
|
7
|
+
import { default as useKeyPress, KeyEvent, KeyType } from './hooks/useKeyPress';
|
|
8
8
|
import { default as useMouseClick } from './hooks/useMouseClick';
|
|
9
|
+
import { default as useQuery } from './hooks/useQuery';
|
|
9
10
|
import { default as useTheme, ThemeType } from './hooks/useTheme';
|
|
10
11
|
import { default as useThemePro } from './hooks/useThemePro';
|
|
11
12
|
import { default as colorUtils, adjustingColors } from './utils/colorUtils';
|
|
12
13
|
import { default as common, addCommasToNumber, addEventWithOriginHandler, calculateAspectRatio, checkDeviceIsMobile, checkStatusCode, copy2Clipboard, createIntersectionObserver, dayOfYear, debounce, deepCopy, downloadFile, ellipsisString, formatFileSize, formatSecondes, getElementCenterPosition, getFileName, getFileSuffix, getImageSIze, getPointDistance, getURLSearchParams, grayColor, isPureNumber, mediaAutoplayPolicies, parseQuery, passwordStrength, pick, printStr, pureNumber, quickSort, rafTimeout, randomString, safeCapitalizeWord, singleton, throttle } from './utils/common';
|
|
13
14
|
import { base64ToBlob, base64ToFile, blobToBase64, blobToFile, fileToBase64, fileToBlob, urlToBase64, urlToBlob, urlToFile } from './utils/fileFormatConversion';
|
|
14
15
|
import { convertSecondToOtherTime, formatTime, localFormat, second2Day } from './utils/formatTimeUtils';
|
|
15
|
-
export { addCommasToNumber, addEventWithOriginHandler, adjustingColors, AutoSliderList, AvatarCrop, AwaitList, base64ToBlob, base64ToFile, blobToBase64, blobToFile, Button, calculateAspectRatio, Card3D, Checkbox, checkDeviceIsMobile, checkStatusCode, colorUtils, common, contextMenu, convertSecondToOtherTime, copy2Clipboard, createDataSource, createEventEmitter, createIntersectionObserver, dayOfYear, debounce, deepCopy, Direction, downloadFile, ellipsisString, EstimatedVirtualList, FileDropZone, fileToBase64, fileToBlob, formatFileSize, formatSecondes, formatTime, getElementCenterPosition, getFileName, getFileSuffix, getImageSIze, getPointDistance, getURLSearchParams, grayColor, isPureNumber, List, localFormat, mediaAutoplayPolicies, MenuButton, message, Modal, OnoInput, OnoSelect, OnoTextarea, Pagination, parseQuery, passwordStrength, pick, portalRenderer, printStr, pureNumber, quickSort, Radio, RadioGroup, rafTimeout, randomString, safeCapitalizeWord, ScrollableTabs, second2Day, singleton, SvgImg, Switch, TemplateDialog, throttle, toast, Tooltip, urlToBase64, urlToBlob, urlToFile, useClickOutSide, useCountdown, useEventListener, useGetElementSize, useKeyPress, useMouseClick, useTheme, useThemePro, Waterfall };
|
|
16
|
-
export type { ImageItem, ThemeType };
|
|
16
|
+
export { addCommasToNumber, addEventWithOriginHandler, adjustingColors, AutoSliderList, AvatarCrop, AwaitList, base64ToBlob, base64ToFile, blobToBase64, blobToFile, Button, calculateAspectRatio, Card3D, Checkbox, checkDeviceIsMobile, checkStatusCode, colorUtils, common, contextMenu, convertSecondToOtherTime, copy2Clipboard, createDataSource, createEventEmitter, createIntersectionObserver, dayOfYear, debounce, deepCopy, Direction, downloadFile, ellipsisString, EstimatedVirtualList, FileDropZone, fileToBase64, fileToBlob, formatFileSize, formatSecondes, formatTime, getElementCenterPosition, getFileName, getFileSuffix, getImageSIze, getPointDistance, getURLSearchParams, grayColor, isPureNumber, List, localFormat, mediaAutoplayPolicies, MenuButton, message, Modal, OnoInput, OnoSelect, OnoTextarea, Pagination, parseQuery, passwordStrength, pick, portalRenderer, printStr, pureNumber, quickSort, Radio, RadioGroup, rafTimeout, randomString, safeCapitalizeWord, ScrollableTabs, second2Day, singleton, SvgImg, Switch, TemplateDialog, throttle, toast, Tooltip, urlToBase64, urlToBlob, urlToFile, useClickOutSide, useCountdown, useEventListener, useGetElementSize, useKeyPress, useMouseClick, useQuery, useTheme, useThemePro, Waterfall };
|
|
17
|
+
export type { ImageItem, KeyEvent, KeyType, OFileType, ThemeType };
|