ono-react-element 0.0.18 → 0.0.19

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 (73) hide show
  1. package/dist/es/AutoSliderList-tkaOmfnx.js +1 -0
  2. package/dist/es/AvatarCrop-DrA-SARP.js +1 -65
  3. package/dist/es/Button-QIC7QPK9.js +1 -0
  4. package/dist/es/Card3D-DMvCSUhe.js +1 -18
  5. package/dist/es/Checkbox-daBabj14.js +1 -19
  6. package/dist/es/InjunctiveBox-DUNoNHCO.js +1 -11
  7. package/dist/es/Input-DLOeg2pz.js +1 -80
  8. package/dist/es/List-UAKCMuGC.js +1 -19
  9. package/dist/es/MenuButton-DHkU5Bq7.js +1 -17
  10. package/dist/es/Message-BGDILiLc.js +1 -105
  11. package/dist/es/Modal-D2289ZPX.js +1 -0
  12. package/dist/es/Pagination-m71H2tfS.js +1 -17
  13. package/dist/es/PortalRenderer-CDAzQJgm.js +1 -19
  14. package/dist/es/Radio-D_GKVoOC.js +1 -25
  15. package/dist/es/ScrollableTabs--449B73p.js +1 -34
  16. package/dist/es/Select-B11NvK-I.js +1 -34
  17. package/dist/es/SvgImg-CZwq2D7J.js +1 -14
  18. package/dist/es/Switch-C61q7rR5.js +1 -0
  19. package/dist/es/TemplateDialog-CAimG5cv.js +1 -0
  20. package/dist/es/Toast-CQEsbqUJ.js +1 -42
  21. package/dist/es/Tooltip-CgttMIcX.js +1 -29
  22. package/dist/es/VirtualList-BAiIymCF.js +1 -0
  23. package/dist/es/Waterfall-C7SWCxJ1.js +1 -0
  24. package/dist/es/colorUtils.ts-DYuRvCXZ.js +1 -145
  25. package/dist/es/common.ts-BbDnZ7vC.js +1 -0
  26. package/dist/es/dependencies-CbQbPZZ-.js +1 -15524
  27. package/dist/es/event-CtX9rswE.js +1 -28
  28. package/dist/es/fileFormatConversion.ts-tUlewYon.js +1 -38
  29. package/dist/es/formatTimeUtils.ts-CkdWJ_Sl.js +1 -32
  30. package/dist/es/index.js +1 -123
  31. package/dist/es/useClickOutSide.tsx-CMvd2uTW.js +1 -15
  32. package/dist/es/useCountdown.tsx-Btzj-keH.js +1 -16
  33. package/dist/es/useEventListener.tsx-BBGVcI5T.js +1 -12
  34. package/dist/es/useGetElementSize.tsx-Dtshth0Y.js +1 -22
  35. package/dist/es/useKeyPress.tsx-Db44HXXz.js +1 -18
  36. package/dist/es/useMouseClick.tsx-C7uAH4n4.js +1 -12
  37. package/dist/es/useTheme.tsx-C5b7BRYz.js +1 -24
  38. package/dist/es/useThemePro.tsx-DQuSI8J7.js +1 -20
  39. package/dist/es/viewTransitionUtils.ts-CHa9uBpi.js +1 -19
  40. package/dist/style/AutoSliderList.css +1 -1
  41. package/dist/style/AvatarCrop.css +1 -1
  42. package/dist/style/Button.css +1 -1
  43. package/dist/style/Card3D.css +1 -1
  44. package/dist/style/Checkbox.css +1 -1
  45. package/dist/style/Input.css +1 -1
  46. package/dist/style/MenuButton.css +1 -1
  47. package/dist/style/Message.css +1 -1
  48. package/dist/style/Modal.css +1 -1
  49. package/dist/style/Pagination.css +1 -1
  50. package/dist/style/Radio.css +1 -1
  51. package/dist/style/ScrollableTabs.css +1 -1
  52. package/dist/style/Select.css +1 -1
  53. package/dist/style/SvgImg.css +1 -1
  54. package/dist/style/Switch.css +1 -1
  55. package/dist/style/TemplateDialog.css +1 -1
  56. package/dist/style/Toast.css +1 -1
  57. package/dist/style/Tooltip.css +1 -1
  58. package/dist/style/Waterfall.css +1 -1
  59. package/dist/style/index.css +1 -1
  60. package/dist/types/index.d.ts +2 -2
  61. package/dist/types/utils/common.d.ts +4 -0
  62. package/dist/umd/index.umd.cjs +1 -1
  63. package/dist/umd/index.umd.cjs.br +0 -0
  64. package/dist/umd/index.umd.cjs.gz +0 -0
  65. package/package.json +1 -1
  66. package/dist/es/AutoSliderList-eb1CVc8b.js +0 -30
  67. package/dist/es/Button-BsWI818a.js +0 -29
  68. package/dist/es/Modal-BsI-8rap.js +0 -37
  69. package/dist/es/Switch-BBHMaxoZ.js +0 -34
  70. package/dist/es/TemplateDialog-PQxjmAJa.js +0 -45
  71. package/dist/es/VirtualList-CdhqyHFQ.js +0 -60
  72. package/dist/es/Waterfall-CY3QkL5m.js +0 -50
  73. package/dist/es/common.ts-vX9A6Rye.js +0 -154
@@ -1 +1 @@
1
- .ono-waterfall-container{height:100%;width:100%}.ono-waterfall-content{height:100%;overflow-y:scroll;width:100%}.ono-waterfall-wrapper{position:relative;width:100%}.ono-waterfall-item{left:0;position:absolute;top:0;transform-origin:top left;transition:transform .3s ease-in-out}.ono-waterfall-loading{align-items:center;background:rgba(0,0,0,.502);bottom:0;color:#fff;display:flex;height:100%;justify-content:center;left:0;position:absolute;width:100%;z-index:10}
1
+ .ono-waterfall-container{height:100%;width:100%}.ono-waterfall-content{height:100%;overflow-y:scroll;width:100%}.ono-waterfall-wrapper{position:relative;width:100%}.ono-waterfall-item{left:0;position:absolute;top:0;transform-origin:top left;transition:transform .3s ease-in-out}.ono-waterfall-loading{align-items:center;background:#00000080;bottom:0;color:#fff;display:flex;height:100%;justify-content:center;left:0;position:absolute;width:100%;z-index:10}
@@ -1 +1 @@
1
- :root{--bg-color:pink}@keyframes ono-loading{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
1
+ :root{--bg-color:pink}@keyframes ono-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}
@@ -9,8 +9,8 @@ import { default as useMouseClick } from './hooks/useMouseClick';
9
9
  import { default as useTheme, ThemeType } from './hooks/useTheme';
10
10
  import { default as useThemePro } from './hooks/useThemePro';
11
11
  import { default as colorUtils, adjustingColors } from './utils/colorUtils';
12
- import { default as common, addCommasToNumber, addEventWithOriginHandler, calculateAspectRatio, checkDeviceIsMobile, checkStatusCode, copy2Clipboard, createIntersectionObserver, dayOfYear, debounce, deepCopy, downloadFile, formatFileSize, formatSecondes, getElementCenterPosition, getFileName, getFileSuffix, getImageSIze, getPointDistance, getURLSearchParams, grayColor, mediaAutoplayPolicies, parseQuery, passwordStrength, pick, printStr, pureNumber, quickSort, rafTimeout, randomString, safeCapitalizeWord, singleton, throttle } from './utils/common';
12
+ 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
13
  import { base64ToBlob, base64ToFile, blobToBase64, blobToFile, fileToBase64, fileToBlob, urlToBase64, urlToBlob, urlToFile } from './utils/fileFormatConversion';
14
14
  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, convertSecondToOtherTime, copy2Clipboard, createDataSource, createEventEmitter, createIntersectionObserver, dayOfYear, debounce, deepCopy, Direction, downloadFile, EstimatedVirtualList, fileToBase64, fileToBlob, formatFileSize, formatSecondes, formatTime, getElementCenterPosition, getFileName, getFileSuffix, getImageSIze, getPointDistance, getURLSearchParams, grayColor, injunctiveBox, 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 };
15
+ export { addCommasToNumber, addEventWithOriginHandler, adjustingColors, AutoSliderList, AvatarCrop, AwaitList, base64ToBlob, base64ToFile, blobToBase64, blobToFile, Button, calculateAspectRatio, Card3D, Checkbox, checkDeviceIsMobile, checkStatusCode, colorUtils, common, convertSecondToOtherTime, copy2Clipboard, createDataSource, createEventEmitter, createIntersectionObserver, dayOfYear, debounce, deepCopy, Direction, downloadFile, ellipsisString, EstimatedVirtualList, fileToBase64, fileToBlob, formatFileSize, formatSecondes, formatTime, getElementCenterPosition, getFileName, getFileSuffix, getImageSIze, getPointDistance, getURLSearchParams, grayColor, injunctiveBox, 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
16
  export type { ImageItem, ThemeType };
@@ -1,3 +1,5 @@
1
+ export declare const ellipsisString: (s: string, start: number, end?: number) => string;
2
+ export declare const isPureNumber: (s: string) => boolean;
1
3
  export declare const passwordStrength: RegExp;
2
4
  export declare const randomString: (len: number) => string;
3
5
  /**
@@ -130,5 +132,7 @@ declare const _default: {
130
132
  singleton: <T extends new (...args: any[]) => any>(className: T) => T;
131
133
  throttle: typeof throttle;
132
134
  debounce: <T extends (...args: any[]) => any>(func: T, delay: number) => ((...args: Parameters<T>) => void);
135
+ ellipsisString: (s: string, start: number, end?: number) => string;
136
+ isPureNumber: (s: string) => boolean;
133
137
  };
134
138
  export default _default;