@rzl-zone/utils-js 3.0.2-beta.2 → 3.1.0

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 (198) hide show
  1. package/README.md +56 -27
  2. package/dist/NumberRangeUnion-DC-C3_Kq.d.ts +23 -23
  3. package/dist/any-BmdI8UbK.d.ts +56 -56
  4. package/dist/arrays-normalize-recursive-CnjYJ9xg.d.ts +66 -66
  5. package/dist/assertions/index.cjs +1 -1
  6. package/dist/assertions/index.d.ts +398 -418
  7. package/dist/assertions/index.js +1 -1
  8. package/dist/chunk-26XIKDJI.cjs +1 -0
  9. package/dist/chunk-2NWHDDM5.js +1 -0
  10. package/dist/chunk-2UIRWYE3.js +1 -0
  11. package/dist/chunk-3KBHD3BS.cjs +1 -0
  12. package/dist/chunk-4HD2O5A4.js +1 -0
  13. package/dist/chunk-5C2SMIGX.cjs +1 -0
  14. package/dist/chunk-5I2B5DOG.js +1 -0
  15. package/dist/chunk-6HQDHIOD.js +1 -0
  16. package/dist/chunk-735HJXBT.cjs +1 -0
  17. package/dist/chunk-7BXIZM57.cjs +1 -0
  18. package/dist/chunk-7KJBDGEP.js +1 -0
  19. package/dist/chunk-7U44T63D.cjs +1 -0
  20. package/dist/chunk-AJ65QFV2.js +1 -0
  21. package/dist/chunk-APHDUCVQ.js +1 -0
  22. package/dist/chunk-BSVZRN7C.js +1 -0
  23. package/dist/chunk-C6JFHUR2.cjs +1 -0
  24. package/dist/chunk-CPLBRGST.js +1 -0
  25. package/dist/chunk-CTBRLEOG.js +1 -0
  26. package/dist/chunk-DUK2K4FB.js +1 -0
  27. package/dist/chunk-DVMHRLKP.cjs +1 -0
  28. package/dist/chunk-E63WVPZE.cjs +1 -0
  29. package/dist/chunk-EBMHQW7X.cjs +1 -0
  30. package/dist/chunk-EGNZCW4K.js +1 -0
  31. package/dist/chunk-FEKDB32T.js +1 -0
  32. package/dist/chunk-FIAAX3UE.js +1 -0
  33. package/dist/chunk-FUS3DVLB.cjs +1 -0
  34. package/dist/chunk-GGRMHIFJ.cjs +1 -0
  35. package/dist/chunk-HQ5GQTEE.js +1 -0
  36. package/dist/chunk-I5X5IN4H.js +1 -0
  37. package/dist/chunk-I7YGXQPI.cjs +1 -0
  38. package/dist/chunk-INUFZJLX.cjs +1 -0
  39. package/dist/chunk-IREHUBF7.js +1 -0
  40. package/dist/chunk-J2RGTPGK.cjs +1 -0
  41. package/dist/chunk-KHO2SBNA.cjs +1 -0
  42. package/dist/chunk-KXIXXSWX.cjs +1 -0
  43. package/dist/chunk-LBMEEJWA.js +1 -0
  44. package/dist/chunk-MC3LXMCQ.js +1 -0
  45. package/dist/chunk-MMSYCIJ2.cjs +1 -1
  46. package/dist/chunk-NU3N4WHD.cjs +1 -0
  47. package/dist/chunk-ODZQXH7E.cjs +1 -0
  48. package/dist/chunk-ONZFBJVW.js +1 -0
  49. package/dist/chunk-PXDRHFIE.js +1 -0
  50. package/dist/chunk-Q6NHYWVX.js +1 -0
  51. package/dist/chunk-QNKGP5DY.js +1 -0
  52. package/dist/chunk-S6Z6I2EG.cjs +1 -0
  53. package/dist/chunk-SMADKXZE.js +1 -0
  54. package/dist/chunk-TSLYDPBJ.js +1 -0
  55. package/dist/chunk-TVXADXCC.cjs +1 -0
  56. package/dist/chunk-UDA26MCU.cjs +1 -0
  57. package/dist/chunk-UET567YM.cjs +1 -0
  58. package/dist/chunk-VEYMQ3UA.js +1 -0
  59. package/dist/chunk-W2W3L2M5.js +1 -0
  60. package/dist/chunk-WBWTXKMC.cjs +1 -0
  61. package/dist/chunk-WVSPXFTY.js +1 -0
  62. package/dist/chunk-XC2PYCT4.cjs +1 -0
  63. package/dist/chunk-XIXA5KDF.cjs +1 -0
  64. package/dist/chunk-Y4O5KZF6.cjs +1 -0
  65. package/dist/chunk-YRM7IJLX.js +1 -0
  66. package/dist/chunk-YT3MSZKK.cjs +1 -0
  67. package/dist/chunk-YXHCULSO.cjs +1 -0
  68. package/dist/chunk-YZR5OGJA.cjs +1 -0
  69. package/dist/chunk-Z4DXK7A6.cjs +1 -0
  70. package/dist/chunk-ZXIWDFEQ.js +1 -0
  71. package/dist/conversions/index.cjs +1 -1
  72. package/dist/conversions/index.d.ts +1368 -1515
  73. package/dist/conversions/index.js +1 -1
  74. package/dist/env/index.cjs +1 -1
  75. package/dist/env/index.d.ts +14 -17
  76. package/dist/env/index.js +1 -1
  77. package/dist/events/index.cjs +1 -1
  78. package/dist/events/index.d.ts +111 -108
  79. package/dist/events/index.js +1 -1
  80. package/dist/extends-Bk_SBGdT.d.ts +367 -0
  81. package/dist/formatting/index.cjs +1 -1
  82. package/dist/formatting/index.d.ts +878 -840
  83. package/dist/formatting/index.js +1 -1
  84. package/dist/generator/index.cjs +1 -1
  85. package/dist/generator/index.d.ts +173 -150
  86. package/dist/generator/index.js +1 -1
  87. package/dist/if-CvT4R7Kh.d.ts +16 -16
  88. package/dist/is-array-Cymwrsmm.d.ts +1119 -0
  89. package/dist/isPlainObject-BVhBAPHX.d.ts +169 -0
  90. package/dist/never-BfayMBF9.d.ts +64 -64
  91. package/dist/next/index.cjs +1 -8
  92. package/dist/next/index.d.ts +196 -176
  93. package/dist/next/index.js +1 -8
  94. package/dist/next/server/index.cjs +1 -2
  95. package/dist/next/server/index.d.ts +26 -40
  96. package/dist/next/server/index.js +1 -2
  97. package/dist/nils-DMz3kU7M.d.ts +155 -155
  98. package/dist/omit-VvmIsZmX.d.ts +25 -25
  99. package/dist/operations/index.cjs +1 -1
  100. package/dist/operations/index.d.ts +121 -176
  101. package/dist/operations/index.js +1 -1
  102. package/dist/or-DyZCRvaU.d.ts +89 -0
  103. package/dist/parsers/index.cjs +1 -1
  104. package/dist/parsers/index.d.ts +35 -36
  105. package/dist/parsers/index.js +1 -1
  106. package/dist/predicates/index.cjs +1 -1
  107. package/dist/predicates/index.d.ts +1797 -1677
  108. package/dist/predicates/index.js +1 -1
  109. package/dist/prettify-C4xLcYOP.d.ts +328 -328
  110. package/dist/promise/index.cjs +1 -1
  111. package/dist/promise/index.d.ts +29 -38
  112. package/dist/promise/index.js +1 -1
  113. package/dist/rzl-utils.global.js +1 -4
  114. package/dist/string-XA-til3C.d.ts +351 -0
  115. package/dist/strings/index.cjs +1 -1
  116. package/dist/strings/index.d.ts +712 -787
  117. package/dist/strings/index.js +1 -1
  118. package/dist/tailwind/index.cjs +1 -0
  119. package/dist/tailwind/index.d.ts +565 -0
  120. package/dist/tailwind/index.js +1 -0
  121. package/dist/type-data-DDs-u2kq.d.ts +241 -241
  122. package/dist/types/index.d.ts +3266 -3266
  123. package/dist/urls/index.cjs +1 -1
  124. package/dist/urls/index.d.ts +384 -409
  125. package/dist/urls/index.js +1 -1
  126. package/package.json +61 -18
  127. package/dist/array-CIZRbqTF.d.ts +0 -223
  128. package/dist/chunk-2TRAPBZ7.cjs +0 -1
  129. package/dist/chunk-3D74QO5D.cjs +0 -1
  130. package/dist/chunk-4DK3RCC4.js +0 -2
  131. package/dist/chunk-4JOQ45HL.js +0 -1
  132. package/dist/chunk-55CZALRS.js +0 -1
  133. package/dist/chunk-56QBKKRE.js +0 -1
  134. package/dist/chunk-5JFV3GDE.cjs +0 -4
  135. package/dist/chunk-5SZUSNGZ.js +0 -1
  136. package/dist/chunk-62HX5Z45.cjs +0 -1
  137. package/dist/chunk-7NA6DUHR.cjs +0 -2
  138. package/dist/chunk-7YWAQOA4.cjs +0 -1
  139. package/dist/chunk-BVPMMWDL.cjs +0 -1
  140. package/dist/chunk-BYZAD3XN.cjs +0 -1
  141. package/dist/chunk-CEFYHEM4.cjs +0 -1
  142. package/dist/chunk-CN53M4QZ.cjs +0 -1
  143. package/dist/chunk-D47MHBSD.cjs +0 -1
  144. package/dist/chunk-DGH75GJD.js +0 -1
  145. package/dist/chunk-E5NUI7PN.js +0 -1
  146. package/dist/chunk-ELDDNERR.js +0 -1
  147. package/dist/chunk-EXZ47NOW.js +0 -1
  148. package/dist/chunk-FDITZ5C6.cjs +0 -1
  149. package/dist/chunk-FF76ISQ2.js +0 -1
  150. package/dist/chunk-FIEZKTAZ.cjs +0 -1
  151. package/dist/chunk-FSSV24W7.cjs +0 -1
  152. package/dist/chunk-GCGU2WB7.js +0 -1
  153. package/dist/chunk-GECI2YBP.js +0 -1
  154. package/dist/chunk-GQE4OVHC.cjs +0 -1
  155. package/dist/chunk-GRVZXQXL.cjs +0 -1
  156. package/dist/chunk-I4AVNHPA.cjs +0 -1
  157. package/dist/chunk-JFRL7NKU.js +0 -4
  158. package/dist/chunk-JWHM3WZQ.cjs +0 -1
  159. package/dist/chunk-KCQDDZJE.cjs +0 -1
  160. package/dist/chunk-L54ZPSYJ.js +0 -1
  161. package/dist/chunk-LVKAYEZ4.js +0 -1
  162. package/dist/chunk-MBDWTK54.cjs +0 -1
  163. package/dist/chunk-MNGGDB2G.js +0 -1
  164. package/dist/chunk-MY7BA4GI.cjs +0 -1
  165. package/dist/chunk-N2IJPIND.cjs +0 -1
  166. package/dist/chunk-NIMNTEGV.js +0 -1
  167. package/dist/chunk-NNM7QCNB.js +0 -1
  168. package/dist/chunk-PUQXRLZH.cjs +0 -1
  169. package/dist/chunk-PVJF2JHM.js +0 -1
  170. package/dist/chunk-QCFXEUKL.js +0 -1
  171. package/dist/chunk-QFCGBBSY.js +0 -1
  172. package/dist/chunk-QQYAUPSK.cjs +0 -1
  173. package/dist/chunk-RN3TP3S3.js +0 -1
  174. package/dist/chunk-RV2VULM7.cjs +0 -1
  175. package/dist/chunk-SW6HYEW7.cjs +0 -1
  176. package/dist/chunk-SYJC7UAW.js +0 -1
  177. package/dist/chunk-TC4VBE4Y.cjs +0 -1
  178. package/dist/chunk-TUXDINHF.cjs +0 -1
  179. package/dist/chunk-U5Y2FXMN.cjs +0 -1
  180. package/dist/chunk-UUPQI6ND.cjs +0 -1
  181. package/dist/chunk-VYCGZ2S6.js +0 -1
  182. package/dist/chunk-W5EDKJK3.js +0 -1
  183. package/dist/chunk-WHAVUFEU.js +0 -1
  184. package/dist/chunk-XCFIOTCV.js +0 -1
  185. package/dist/chunk-XE27XPJR.js +0 -1
  186. package/dist/chunk-XH6MCRLP.js +0 -1
  187. package/dist/chunk-XVB3ZZEB.js +0 -1
  188. package/dist/chunk-ZBSIGJFO.cjs +0 -1
  189. package/dist/chunk-ZYAML74V.js +0 -1
  190. package/dist/extends-Mp81Hq9-.d.ts +0 -145
  191. package/dist/index.cjs +0 -1
  192. package/dist/index.d.ts +0 -1
  193. package/dist/index.js +0 -1
  194. package/dist/is-array-Ckm_47hw.d.ts +0 -1557
  195. package/dist/isPlainObject-BKYaI6a8.d.ts +0 -182
  196. package/dist/stylings/index.cjs +0 -1
  197. package/dist/stylings/index.d.ts +0 -49
  198. package/dist/stylings/index.js +0 -1
@@ -1 +1 @@
1
- export{f as convertType,g as removeObjectPaths,b as toBooleanContent,c as toBooleanContentDeep,d as toBooleanExplicit,e as toBooleanLoose,a as toNumberArrayUnRecursive,h as toNumberDeep,i as toStringDeep}from'../chunk-VYCGZ2S6.js';export{b as cleanParsedData,a as extractDigits,c as parseCustomDate,d as safeJsonParse}from'../chunk-PVJF2JHM.js';import'../chunk-DGH75GJD.js';export{d as dedupeArray,b as filterNilArray,c as filterNullArray,e as toStringArrayUnRecursive,a as toStringDeepForce}from'../chunk-WHAVUFEU.js';import'../chunk-ZYAML74V.js';import'../chunk-W5EDKJK3.js';import'../chunk-QFCGBBSY.js';export{a as parseCurrencyString}from'../chunk-XH6MCRLP.js';import'../chunk-4JOQ45HL.js';import'../chunk-SYJC7UAW.js';import'../chunk-NIMNTEGV.js';import'../chunk-XVB3ZZEB.js';export{c as safeStableStringify}from'../chunk-MNGGDB2G.js';import'../chunk-5SZUSNGZ.js';import'../chunk-XCFIOTCV.js';
1
+ export{convertType,removeObjectPaths,toBooleanContent,toBooleanContentDeep,toBooleanExplicit,toBooleanLoose,toNumberArrayUnRecursive,toNumberDeep,toStringDeep}from"../chunk-EGNZCW4K.js";export{cleanParsedData,extractDigits,parseCustomDate,safeJsonParse}from"../chunk-LBMEEJWA.js";import"../chunk-HQ5GQTEE.js";export{dedupeArray,filterNilArray,toStringArrayUnRecursive,toStringDeepForce}from"../chunk-CTBRLEOG.js";import"../chunk-FEKDB32T.js";import"../chunk-BSVZRN7C.js";import"../chunk-ZXIWDFEQ.js";export{parseCurrencyString}from"../chunk-VEYMQ3UA.js";import"../chunk-DUK2K4FB.js";import"../chunk-FIAAX3UE.js";import"../chunk-TSLYDPBJ.js";import"../chunk-W2W3L2M5.js";export{safeStableStringify}from"../chunk-AJ65QFV2.js";import"../chunk-QNKGP5DY.js";import"../chunk-2UIRWYE3.js";
@@ -1 +1 @@
1
- 'use strict';require('../chunk-MMSYCIJ2.cjs');var chunkSW6HYEW7_cjs=require('../chunk-SW6HYEW7.cjs');Object.defineProperty(exports,"isServer",{enumerable:true,get:function(){return chunkSW6HYEW7_cjs.a}});
1
+ "use strict";require("../chunk-MMSYCIJ2.cjs");var e=require("../chunk-J2RGTPGK.cjs");Object.defineProperty(exports,"isServer",{enumerable:!0,get:function(){return e.isServer}});
@@ -1,19 +1,16 @@
1
1
  /** ----------------------------------------
2
- * * ***Detects if the current environment is server-side (Node.js) or client-side (browser).***
3
- * ----------------------------------------
4
- *
5
- * Determines whether the code is running in a Node.js environment (server)
6
- * or in a browser environment (client).
7
- *
8
- * @returns {boolean}
9
- * - `true` → running on the **server-side** (Node.js).
10
- * - `false` → running on the **client-side** (browser).
11
- *
12
- * @example
13
- * if (isServer()) {
14
- * console.log("Running on Node.js");
15
- * } else {
16
- * console.log("Running in the browser");
17
- * }
18
- */
2
+ * * ***Utility: `isServer`.***
3
+ * ----------------------------------------
4
+ * **Checks if the current execution environment is at **server-side** (Node.js)
5
+ * or **client-side** (browser).**
6
+ * @returns {boolean}
7
+ * - `true` ➔ running on the **server-side** (Node.js).
8
+ * - `false` ➔ running on the **client-side** (browser).
9
+ * @example
10
+ * if (isServer()) {
11
+ * console.log("Running on Node.js");
12
+ * } else {
13
+ * console.log("Running in the browser");
14
+ * }
15
+ */
19
16
  declare const isServer:()=>boolean;export{isServer};
package/dist/env/index.js CHANGED
@@ -1 +1 @@
1
- import'../chunk-G5LXIEFO.js';export{a as isServer}from'../chunk-56QBKKRE.js';
1
+ import"../chunk-G5LXIEFO.js";export{isServer}from"../chunk-MC3LXMCQ.js";
@@ -1 +1 @@
1
- 'use strict';var chunkGQE4OVHC_cjs=require('../chunk-GQE4OVHC.cjs');require('../chunk-SW6HYEW7.cjs'),require('../chunk-BVPMMWDL.cjs'),require('../chunk-CN53M4QZ.cjs');Object.defineProperty(exports,"disableUserInteraction",{enumerable:true,get:function(){return chunkGQE4OVHC_cjs.a}});Object.defineProperty(exports,"enableUserInteraction",{enumerable:true,get:function(){return chunkGQE4OVHC_cjs.b}});Object.defineProperty(exports,"removeElementFocus",{enumerable:true,get:function(){return chunkGQE4OVHC_cjs.c}});Object.defineProperty(exports,"scrollToTop",{enumerable:true,get:function(){return chunkGQE4OVHC_cjs.d}});
1
+ "use strict";var e=require("../chunk-KXIXXSWX.cjs");require("../chunk-J2RGTPGK.cjs"),require("../chunk-Y4O5KZF6.cjs"),require("../chunk-INUFZJLX.cjs"),Object.defineProperty(exports,"disableUserInteraction",{enumerable:!0,get:function(){return e.disableUserInteraction}}),Object.defineProperty(exports,"enableUserInteraction",{enumerable:!0,get:function(){return e.enableUserInteraction}}),Object.defineProperty(exports,"removeElementFocus",{enumerable:!0,get:function(){return e.removeElementFocus}}),Object.defineProperty(exports,"scrollToTop",{enumerable:!0,get:function(){return e.scrollToTop}});
@@ -1,119 +1,122 @@
1
1
  type ScrollToTopOptions={
2
- /** `"auto" | "instant" | "smooth"` defaults value `"smooth"` */
2
+ /** Scroll animation type.
3
+ *
4
+ * - Valid values: `"auto"`, `"instant"`, `"smooth"`.
5
+ * - Default force to `"smooth"` if missing or invalid.
6
+ *
7
+ * @default "smooth"
8
+ */
3
9
  behavior?:ScrollBehavior|undefined;
4
- /** `number | undefined` defaults value `1` as `ms` */
10
+ /** Delay before scrolling (in milliseconds).
11
+ *
12
+ * - Default value is `1`.
13
+ * - Valid values: any number `≥` `1`.
14
+ * - Non-integer number are truncated to an integer.
15
+ * - Force to `2147483647` if number is larger than `2147483647`.
16
+ * - Default force to `1` if `missing`, `NaN`, `invalid-type`, or `less-than` `1`.
17
+ *
18
+ * @default 1
19
+ */
5
20
  timeout?:number|undefined;};
6
21
  /** ----------------------------------------------------------
7
- * * ***Disables user interaction by adding a CSS class to the `<html>` element.***
8
- * ----------------------------------------------------------
9
- *
10
- * Key points:
11
- * - Works **only in browser environments**.
12
- * - Safely adds the specified CSS class to `<html>`.
13
- * - Prevents multiple additions of the same class.
14
- * - Useful to indicate that a process is ongoing
15
- * (e.g., loading or processing state).
16
- *
17
- * **Using custom CSS classes:**
18
- * - You can pass any class name that exists in your CSS.
19
- * - Example: if you have `.loading` in your styles, passing `"loading"`
20
- * will add it and disable interactions accordingly.
21
- *
22
- * **Validation:**
23
- * - Throws `TypeError` if the `className` parameter is not a string.
24
- *
25
- * @param {string} [className="on_processing"] - The CSS class to add. Defaults to `"on_processing"`.
26
- *
27
- * @returns {void} Does not return anything.
28
- *
29
- * @throws {TypeError} If `className` is not a string.
30
- *
31
- * @example
32
- * disableUserInteraction(); // Adds "on_processing" class
33
- * disableUserInteraction("loading"); // Adds "loading" class
34
- * // ❌ Invalid value:
35
- * disableUserInteraction(123); // Throws TypeError
36
- */
22
+ * * ***Utility: `disableUserInteraction`.***
23
+ * ----------------------------------------------------------
24
+ * **Disables user interaction by adding a CSS class to the `<html>` element.**
25
+ * - **Key points**:
26
+ * - Works **only in browser environments**.
27
+ * - Safely adds the specified CSS class to `<html>`.
28
+ * - Prevents multiple additions of the same class.
29
+ * - Useful to indicate that a process is ongoing
30
+ * (e.g., loading or processing state).
31
+ * - **Using custom CSS classes:**
32
+ * - You can pass any class name that exists in your CSS.
33
+ * - Example: if you have `.loading` in your styles, passing `"loading"`
34
+ * will add it and disable interactions accordingly.
35
+ * - **Validation:**
36
+ * - Throws `TypeError` if the `className` parameter is not a string.
37
+ * @param {string} [className="on_processing"] - The CSS class to add, defaults to `"on_processing"`.
38
+ * @returns {void} Does not return anything.
39
+ * @throws {TypeError} If `className` is not a string.
40
+ * @example
41
+ * disableUserInteraction(); // ➔ Adds "on_processing" class
42
+ * disableUserInteraction("loading"); // Adds "loading" class
43
+ * // ❌ Invalid value:
44
+ * disableUserInteraction(123); // Throws TypeError
45
+ */
37
46
  declare const disableUserInteraction:(className?:string)=>void;
38
47
  /** ----------------------------------------------------------
39
- * * ***Enables user interaction by removing a CSS class from the `<html>` element.***
40
- * ----------------------------------------------------------
41
- *
42
- * Key points:
43
- * - Works **only in browser environments**.
44
- * - Safely removes the specified CSS class from `<html>`.
45
- * - Does nothing if the class is not present.
46
- * - Useful to re-enable user interactions after a process
47
- * (e.g., loading or processing) completes.
48
- *
49
- * **Using custom CSS classes:**
50
- * - You can pass any class name that exists in your CSS.
51
- * - Example: if you have `.loading` in your styles, passing `"loading"`
52
- * will remove it and re-enable interactions.
53
- *
54
- * **Validation:**
55
- * - Throws `TypeError` if the `className` parameter is not a string.
56
- *
57
- * @param {string} [className="on_processing"] - The CSS class to remove. Defaults to `"on_processing"`.
58
- *
59
- * @returns {void} Does not return anything.
60
- *
61
- * @throws {TypeError} If `className` is not a string.
62
- *
63
- * @example
64
- * enableUserInteraction(); // ➔ Removes "on_processing" class
65
- * enableUserInteraction("loading"); // ➔ Removes "loading" class
66
- * // ➔ ❌ Invalid value:
67
- * enableUserInteraction(123); // ➔ Throws TypeError
68
- */
48
+ * * ***Utility: `enableUserInteraction`.***
49
+ * ----------------------------------------------------------
50
+ * **Enables user interaction by removing a CSS class from the `<html>` element.**
51
+ * - **Key points**:
52
+ * - Works **only in browser environments**.
53
+ * - Safely removes the specified CSS class from `<html>`.
54
+ * - Does nothing if the class is not present.
55
+ * - Useful to re-enable user interactions after a process
56
+ * (e.g., loading or processing) completes.
57
+ * - **Using custom CSS classes:**
58
+ * - You can pass any class name that exists in your CSS.
59
+ * - Example: if you have `.loading` in your styles, passing `"loading"`
60
+ * will remove it and re-enable interactions.
61
+ * - **Validation:**
62
+ * - Throws `TypeError` if the `className` parameter is not a string.
63
+ * @param {string} [className="on_processing"] - The CSS class to remove, defaults to `"on_processing"`.
64
+ * @returns {void} Does not return anything.
65
+ * @throws {TypeError} If `className` is not a string.
66
+ * @example
67
+ * enableUserInteraction(); // ➔ Removes "on_processing" class
68
+ * enableUserInteraction("loading"); // Removes "loading" class
69
+ * // ❌ Invalid value:
70
+ * enableUserInteraction(123); // Throws TypeError
71
+ */
69
72
  declare const enableUserInteraction:(className?:string)=>void;
70
73
  /** ----------------------------------------------------------
71
- * * ***Removes focus from the currently active element in the document.***
72
- * ----------------------------------------------------------
73
- *
74
- * - This function works **only in browser environments**.
75
- * - If an element is focused, it will lose focus by calling `blur()`.
76
- * - If no element is focused or the active element is not an `HTMLElement`, nothing happens.
77
- *
78
- * @returns {void} Does not return anything.
79
- *
80
- * @example
81
- * removeElementFocus(); // Removes focus from the currently active element
82
- */
74
+ * * ***Utility: `removeElementFocus`.***
75
+ * ----------------------------------------------------------
76
+ * **Removes focus from the currently active element in the document.**
77
+ * - **Features**:
78
+ * - This function works **only in browser environments**.
79
+ * - If an element is focused, it will lose focus by calling `blur()`.
80
+ * - If no element is focused or the active element is not an `HTMLElement`, nothing happens.
81
+ * @returns {void} Does not return anything.
82
+ * @example
83
+ * removeElementFocus(); // ➔ Removes focus from the currently active element
84
+ */
83
85
  declare const removeElementFocus:()=>void;
84
86
  /** ----------------------------------------------------------
85
- * * ***Scrolls the page to the top with optional smooth animation and delay.***
86
- * ----------------------------------------------------------
87
- *
88
- * - This function works **only in browser environments** (no effect on server-side).
89
- * - It leverages the native `window.scrollTo()` API with support for smooth scrolling
90
- * and an optional timeout delay before executing the scroll.
91
- *
92
- * Each option has strict valid values. If an invalid value is provided, the function
93
- * **automatically falls back to its default**.
94
- *
95
- * @param {ScrollToTopOptions} [options] - Optional settings for scroll behavior.
96
- * @param {ScrollBehavior} [options.behavior="smooth"] - Scroll animation type.
97
- * - Valid values: `"auto"`, `"instant"`, `"smooth"`.
98
- * - Default: `"smooth"` if missing or invalid.
99
- * @param {number} [options.timeout=1] - Delay before scrolling (in milliseconds).
100
- * - Valid values: any number >= 1.
101
- * - Default: `1` if missing, invalid, or less than 1.
102
- *
103
- * @returns {void} Does not return anything.
104
- *
105
- * @example
106
- * // Scroll smoothly to the top after 1ms delay
107
- * scrollToTop();
108
- *
109
- * // Jump instantly to the top
110
- * scrollToTop({ behavior: "instant" });
111
- *
112
- * // Scroll smoothly to the top after 500ms
113
- * scrollToTop({ timeout: 500 });
114
- *
115
- * // Invalid options value:
116
- * scrollToTop({ behavior: "fly", timeout: -100 });
117
- * // Fallback: behavior="smooth", timeout=1
118
- */
87
+ * * ***Utility: `scrollToTop`.***
88
+ * ----------------------------------------------------------
89
+ * **Scrolls the page to the top with optional smooth animation and delay.**
90
+ * - **Features**:
91
+ * - This function works **only in browser environments** (no effect on server-side).
92
+ * - It leverages the native `window.scrollTo()` API with support for smooth scrolling
93
+ * and an optional timeout delay before executing the scroll.
94
+ * - Each option has strict valid values.
95
+ * - If an invalid value is provided, the function **automatically falls back to its default**.
96
+ * @param {ScrollToTopOptions} [options] - Optional settings for scroll behavior.
97
+ * @param {ScrollToTopOptions["behavior"]} [options.behavior="smooth"] - Scroll animation type.
98
+ * - Valid values: `"auto"`, `"instant"`, `"smooth"`.
99
+ * - Default force to `"smooth"` if missing or invalid.
100
+ * @param {ScrollToTopOptions["timeout"]} [options.timeout=1] - Delay before scrolling (in milliseconds).
101
+ * - Default value is `1`.
102
+ * - Valid values: any number `≥` `1`.
103
+ * - Non-integer number are truncated to an integer.
104
+ * - Force to `2147483647` if number is larger than `2147483647`.
105
+ * - Default force to `1` if `missing`, `NaN`, `invalid`, or `less-than` `1`.
106
+ * @returns {void} Does not return anything, only scrolling to top.
107
+ * @example
108
+ * // Valid options value:
109
+ * scrollToTop();
110
+ * // ➔ Scroll smoothly to the top after 1ms delay
111
+ * scrollToTop({ behavior: "instant" });
112
+ * // Jump instantly to the top
113
+ * scrollToTop({ timeout: 500 });
114
+ * // Scroll smoothly to the top after 500ms
115
+ *
116
+ * // ❌ Invalid options value:
117
+ * scrollToTop({ behavior: "fly", timeout: -100 });
118
+ * // ➔ Fallback: behavior="smooth", timeout=1
119
+ * scrollToTop({ behavior: "fly", timeout: 123.55 });
120
+ * // ➔ Fallback: behavior="smooth", timeout=123
121
+ */
119
122
  declare const scrollToTop:(options?:ScrollToTopOptions)=>void;export{disableUserInteraction,enableUserInteraction,removeElementFocus,scrollToTop};
@@ -1 +1 @@
1
- export{a as disableUserInteraction,b as enableUserInteraction,c as removeElementFocus,d as scrollToTop}from'../chunk-RN3TP3S3.js';import'../chunk-56QBKKRE.js';import'../chunk-XVB3ZZEB.js';import'../chunk-XCFIOTCV.js';
1
+ export{disableUserInteraction,enableUserInteraction,removeElementFocus,scrollToTop}from"../chunk-5I2B5DOG.js";import"../chunk-MC3LXMCQ.js";import"../chunk-W2W3L2M5.js";import"../chunk-2UIRWYE3.js";