@rzl-zone/utils-js 3.4.0 → 3.5.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.
Files changed (118) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +94 -45
  3. package/dist/assertions/index.cjs +41 -1
  4. package/dist/assertions/index.d.ts +11 -2
  5. package/dist/assertions/index.js +14 -1
  6. package/dist/chunk-2CQX5CBG.js +262 -1
  7. package/dist/chunk-2IOOEY45.cjs +30 -1
  8. package/dist/chunk-2WA36TC5.cjs +189 -0
  9. package/dist/chunk-3IBQ5MOM.js +16 -1
  10. package/dist/chunk-3VA554KW.js +34 -1
  11. package/dist/chunk-5757UBXJ.cjs +157 -1
  12. package/dist/chunk-5IGC6PBH.js +33 -1
  13. package/dist/chunk-5KJFVIQT.cjs +65 -1
  14. package/dist/chunk-6JFCSH7J.js +35 -1
  15. package/dist/chunk-6JFZL7YE.cjs +24 -1
  16. package/dist/chunk-7ODAAXX5.cjs +397 -1
  17. package/dist/chunk-BAV5T2E3.cjs +15 -1
  18. package/dist/chunk-CAH33WOQ.cjs +36 -1
  19. package/dist/chunk-CDCERIZ2.js +177 -0
  20. package/dist/chunk-CKTLUNWX.js +22 -1
  21. package/dist/chunk-CMW2TBOQ.js +567 -1
  22. package/dist/chunk-D3ENH7H6.cjs +101 -1
  23. package/dist/chunk-DEZZUYE2.js +152 -1
  24. package/dist/chunk-DVMHRLKP.cjs +16 -1
  25. package/dist/chunk-DWF2R5GD.cjs +225 -1
  26. package/dist/chunk-E55EQK2U.cjs +18 -1
  27. package/dist/chunk-E74U6CYP.cjs +18 -1
  28. package/dist/chunk-EL6A35UR.cjs +64 -1
  29. package/dist/chunk-F6IPNNSJ.cjs +554 -1
  30. package/dist/chunk-FJZGG54N.cjs +267 -1
  31. package/dist/chunk-FWCKOJZM.js +542 -1
  32. package/dist/chunk-FWHNWL2P.cjs +419 -1
  33. package/dist/chunk-GGEADHZO.js +90 -1
  34. package/dist/chunk-GQR4R5WY.js +31 -1
  35. package/dist/chunk-H66AC7GK.cjs +93 -1
  36. package/dist/chunk-HQWOFR56.cjs +33 -1
  37. package/dist/chunk-HYRQMTRH.cjs +24 -1
  38. package/dist/chunk-IRFL4MAX.js +63 -1
  39. package/dist/chunk-IVL7CKVH.cjs +37 -1
  40. package/dist/chunk-IZPBKKPO.js +16 -1
  41. package/dist/chunk-JBQMXC5I.cjs +106 -1
  42. package/dist/chunk-JEQEF5WD.js +95 -1
  43. package/dist/chunk-JMJQCN74.js +370 -1
  44. package/dist/chunk-KHO2SBNA.cjs +16 -1
  45. package/dist/chunk-KVAL5PAG.cjs +26 -1
  46. package/dist/chunk-L5RDAVVH.js +14 -1
  47. package/dist/chunk-LS6U7FAY.cjs +110 -1
  48. package/dist/chunk-NBZWMBO6.js +101 -1
  49. package/dist/chunk-NRF6LWBC.cjs +56 -1
  50. package/dist/chunk-OI5XKNZO.js +53 -1
  51. package/dist/chunk-ONZFBJVW.js +14 -1
  52. package/dist/chunk-OYTYSY7G.js +106 -1
  53. package/dist/chunk-PET42Z7W.js +119 -1
  54. package/dist/chunk-PZQ6I4JJ.cjs +605 -1
  55. package/dist/chunk-QBKAEVYG.js +113 -1
  56. package/dist/chunk-QNKGP5DY.js +14 -1
  57. package/dist/chunk-RIPKY4RU.js +417 -1
  58. package/dist/chunk-RZW35UN5.cjs +116 -1
  59. package/dist/chunk-SBFNXGTJ.js +220 -1
  60. package/dist/chunk-SBKGWRS5.js +22 -1
  61. package/dist/chunk-SIM77PU4.js +59 -1
  62. package/dist/chunk-T2T7K3KR.js +28 -1
  63. package/dist/chunk-T7PU2V7X.cjs +123 -1
  64. package/dist/chunk-UDA26MCU.cjs +16 -1
  65. package/dist/chunk-V45XJKHW.cjs +18 -1
  66. package/dist/chunk-VJDDGRIK.cjs +16 -1
  67. package/dist/chunk-W2WNBUDE.js +16 -1
  68. package/dist/chunk-WVSPXFTY.js +14 -1
  69. package/dist/chunk-XABCB3Y7.cjs +582 -1
  70. package/dist/chunk-XEDXFSGI.js +24 -1
  71. package/dist/chunk-YKPSRP5G.js +571 -1
  72. package/dist/chunk-YWHHVDT4.js +13 -1
  73. package/dist/chunk-ZETAZZLD.cjs +38 -1
  74. package/dist/conversions/index.cjs +104 -1
  75. package/dist/conversions/index.d.ts +10 -1
  76. package/dist/conversions/index.js +25 -1
  77. package/dist/events/index.cjs +32 -1
  78. package/dist/events/index.d.ts +10 -1
  79. package/dist/events/index.js +13 -1
  80. package/dist/formatters/index.cjs +62 -1
  81. package/dist/formatters/index.d.ts +10 -1
  82. package/dist/formatters/index.js +19 -1
  83. package/dist/generators/index.cjs +38 -1
  84. package/dist/generators/index.d.ts +10 -1
  85. package/dist/generators/index.js +15 -1
  86. package/dist/index.d.ts +39 -12
  87. package/dist/{isPlainObject-CEPWPiXh.d.ts → isPlainObject-FWmcJF6k.d.ts} +13 -4
  88. package/dist/next/index.cjs +218 -1
  89. package/dist/next/index.d.ts +10 -1
  90. package/dist/next/index.js +213 -1
  91. package/dist/next/server/index.cjs +43 -1
  92. package/dist/next/server/index.d.ts +10 -1
  93. package/dist/next/server/index.js +41 -1
  94. package/dist/operations/index.cjs +33 -1
  95. package/dist/operations/index.d.ts +10 -1
  96. package/dist/operations/index.js +18 -1
  97. package/dist/parsers/index.cjs +18 -1
  98. package/dist/parsers/index.d.ts +10 -1
  99. package/dist/parsers/index.js +11 -1
  100. package/dist/predicates/index.cjs +299 -1
  101. package/dist/predicates/index.d.ts +13 -4
  102. package/dist/predicates/index.js +24 -1
  103. package/dist/promises/index.cjs +25 -1
  104. package/dist/promises/index.d.ts +10 -1
  105. package/dist/promises/index.js +14 -1
  106. package/dist/rzl-utils.global.js +25 -1
  107. package/dist/strings/index.cjs +82 -1
  108. package/dist/strings/index.d.ts +10 -1
  109. package/dist/strings/index.js +15 -1
  110. package/dist/tailwind/index.cjs +43 -1
  111. package/dist/tailwind/index.d.ts +10 -1
  112. package/dist/tailwind/index.js +12 -1
  113. package/dist/urls/index.cjs +51 -1
  114. package/dist/urls/index.d.ts +10 -1
  115. package/dist/urls/index.js +24 -1
  116. package/package.json +60 -179
  117. package/dist/chunk-JYQTCICM.js +0 -1
  118. package/dist/chunk-YLA3DURS.cjs +0 -1
@@ -1 +1,82 @@
1
- "use strict";var e=require("../chunk-D3ENH7H6.cjs"),t=require("../chunk-E74U6CYP.cjs"),r=require("../chunk-2IOOEY45.cjs"),n=require("../chunk-KVAL5PAG.cjs");require("../chunk-E55EQK2U.cjs");var o=require("../chunk-PZQ6I4JJ.cjs");Object.defineProperty(exports,"capitalizeFirst",{enumerable:!0,get:function(){return e.capitalizeFirst}}),Object.defineProperty(exports,"capitalizeWords",{enumerable:!0,get:function(){return e.capitalizeWords}}),Object.defineProperty(exports,"getInitialsName",{enumerable:!0,get:function(){return e.getInitialsName}}),Object.defineProperty(exports,"replaceAt",{enumerable:!0,get:function(){return e.replaceAt}}),Object.defineProperty(exports,"stripHtmlTags",{enumerable:!0,get:function(){return e.stripHtmlTags}}),Object.defineProperty(exports,"normalizeString",{enumerable:!0,get:function(){return t.normalizeString}}),Object.defineProperty(exports,"normalizeSpaces",{enumerable:!0,get:function(){return r.normalizeSpaces}}),Object.defineProperty(exports,"removeSpaces",{enumerable:!0,get:function(){return n.removeSpaces}}),Object.defineProperty(exports,"slugify",{enumerable:!0,get:function(){return o.slugify}}),Object.defineProperty(exports,"toCamelCase",{enumerable:!0,get:function(){return o.toCamelCase}}),Object.defineProperty(exports,"toDotCase",{enumerable:!0,get:function(){return o.toDotCase}}),Object.defineProperty(exports,"toKebabCase",{enumerable:!0,get:function(){return o.toKebabCase}}),Object.defineProperty(exports,"toLowerCase",{enumerable:!0,get:function(){return o.toLowerCase}}),Object.defineProperty(exports,"toPascalCase",{enumerable:!0,get:function(){return o.toPascalCase}}),Object.defineProperty(exports,"toPascalCaseSpace",{enumerable:!0,get:function(){return o.toPascalCaseSpace}}),Object.defineProperty(exports,"toSnakeCase",{enumerable:!0,get:function(){return o.toSnakeCase}});
1
+ /*!
2
+ * ====================================================
3
+ * Rzl Utils-JS.
4
+ * ----------------------------------------------------
5
+ * Version: 3.5.1.
6
+ * Author: Rizalvin Dwiky.
7
+ * Repository: https://github.com/rzl-zone/utils-js.
8
+ * ====================================================
9
+ */
10
+ 'use strict';
11
+
12
+ var chunkD3ENH7H6_cjs = require('../chunk-D3ENH7H6.cjs');
13
+ var chunkE74U6CYP_cjs = require('../chunk-E74U6CYP.cjs');
14
+ var chunk2IOOEY45_cjs = require('../chunk-2IOOEY45.cjs');
15
+ var chunkKVAL5PAG_cjs = require('../chunk-KVAL5PAG.cjs');
16
+ require('../chunk-E55EQK2U.cjs');
17
+ var chunkPZQ6I4JJ_cjs = require('../chunk-PZQ6I4JJ.cjs');
18
+
19
+ Object.defineProperty(exports, "capitalizeFirst", {
20
+ enumerable: true,
21
+ get: function () { return chunkD3ENH7H6_cjs.capitalizeFirst; }
22
+ });
23
+ Object.defineProperty(exports, "capitalizeWords", {
24
+ enumerable: true,
25
+ get: function () { return chunkD3ENH7H6_cjs.capitalizeWords; }
26
+ });
27
+ Object.defineProperty(exports, "getInitialsName", {
28
+ enumerable: true,
29
+ get: function () { return chunkD3ENH7H6_cjs.getInitialsName; }
30
+ });
31
+ Object.defineProperty(exports, "replaceAt", {
32
+ enumerable: true,
33
+ get: function () { return chunkD3ENH7H6_cjs.replaceAt; }
34
+ });
35
+ Object.defineProperty(exports, "stripHtmlTags", {
36
+ enumerable: true,
37
+ get: function () { return chunkD3ENH7H6_cjs.stripHtmlTags; }
38
+ });
39
+ Object.defineProperty(exports, "normalizeString", {
40
+ enumerable: true,
41
+ get: function () { return chunkE74U6CYP_cjs.normalizeString; }
42
+ });
43
+ Object.defineProperty(exports, "normalizeSpaces", {
44
+ enumerable: true,
45
+ get: function () { return chunk2IOOEY45_cjs.normalizeSpaces; }
46
+ });
47
+ Object.defineProperty(exports, "removeSpaces", {
48
+ enumerable: true,
49
+ get: function () { return chunkKVAL5PAG_cjs.removeSpaces; }
50
+ });
51
+ Object.defineProperty(exports, "slugify", {
52
+ enumerable: true,
53
+ get: function () { return chunkPZQ6I4JJ_cjs.slugify; }
54
+ });
55
+ Object.defineProperty(exports, "toCamelCase", {
56
+ enumerable: true,
57
+ get: function () { return chunkPZQ6I4JJ_cjs.toCamelCase; }
58
+ });
59
+ Object.defineProperty(exports, "toDotCase", {
60
+ enumerable: true,
61
+ get: function () { return chunkPZQ6I4JJ_cjs.toDotCase; }
62
+ });
63
+ Object.defineProperty(exports, "toKebabCase", {
64
+ enumerable: true,
65
+ get: function () { return chunkPZQ6I4JJ_cjs.toKebabCase; }
66
+ });
67
+ Object.defineProperty(exports, "toLowerCase", {
68
+ enumerable: true,
69
+ get: function () { return chunkPZQ6I4JJ_cjs.toLowerCase; }
70
+ });
71
+ Object.defineProperty(exports, "toPascalCase", {
72
+ enumerable: true,
73
+ get: function () { return chunkPZQ6I4JJ_cjs.toPascalCase; }
74
+ });
75
+ Object.defineProperty(exports, "toPascalCaseSpace", {
76
+ enumerable: true,
77
+ get: function () { return chunkPZQ6I4JJ_cjs.toPascalCaseSpace; }
78
+ });
79
+ Object.defineProperty(exports, "toSnakeCase", {
80
+ enumerable: true,
81
+ get: function () { return chunkPZQ6I4JJ_cjs.toSnakeCase; }
82
+ });
@@ -1,3 +1,12 @@
1
+ /*!
2
+ * ====================================================
3
+ * Rzl Utils-JS.
4
+ * ----------------------------------------------------
5
+ * Version: 3.5.1.
6
+ * Author: Rizalvin Dwiky.
7
+ * Repository: https://github.com/rzl-zone/utils-js.
8
+ * ====================================================
9
+ */
1
10
  import{Nilable,Extends}from'@rzl-zone/ts-types-plus';type CapitalizeFirstOptions={
2
11
  /** If true **(default)**, the rest of the string will be converted to lowercase after capitalizing the first letter.
3
12
  *
@@ -737,4 +746,4 @@ declare const getInitialsName:(name:string|null|undefined)=>string;
737
746
  * replaceAt(2, null, "X");
738
747
  * // ➔ ❌ TypeError: First parameter `index` must be of type `number`, second parameter `originalString` and third parameter `replaceTo` must be of type `string`, but received: "['index': `string`,...]."
739
748
  */
740
- declare const replaceAt:(index:number,originalString:string,replaceTo:string)=>string;export{capitalizeFirst,capitalizeWords,getInitialsName,normalizeSpaces,normalizeString,removeSpaces,replaceAt,slugify,stripHtmlTags,toCamelCase,toDotCase,toKebabCase,toLowerCase,toPascalCase,toPascalCaseSpace,toSnakeCase};
749
+ declare const replaceAt:(index:number,originalString:string,replaceTo:string)=>string;export{capitalizeFirst,capitalizeWords,getInitialsName,normalizeSpaces,normalizeString,removeSpaces,replaceAt,slugify,stripHtmlTags,toCamelCase,toDotCase,toKebabCase,toLowerCase,toPascalCase,toPascalCaseSpace,toSnakeCase};
@@ -1 +1,15 @@
1
- export{capitalizeFirst,capitalizeWords,getInitialsName,replaceAt,stripHtmlTags}from"../chunk-JEQEF5WD.js";export{normalizeString}from"../chunk-IZPBKKPO.js";export{normalizeSpaces}from"../chunk-T2T7K3KR.js";export{removeSpaces}from"../chunk-XEDXFSGI.js";import"../chunk-W2WNBUDE.js";export{slugify,toCamelCase,toDotCase,toKebabCase,toLowerCase,toPascalCase,toPascalCaseSpace,toSnakeCase}from"../chunk-CMW2TBOQ.js";
1
+ /*!
2
+ * ====================================================
3
+ * Rzl Utils-JS.
4
+ * ----------------------------------------------------
5
+ * Version: 3.5.1.
6
+ * Author: Rizalvin Dwiky.
7
+ * Repository: https://github.com/rzl-zone/utils-js.
8
+ * ====================================================
9
+ */
10
+ export { capitalizeFirst, capitalizeWords, getInitialsName, replaceAt, stripHtmlTags } from '../chunk-JEQEF5WD.js';
11
+ export { normalizeString } from '../chunk-IZPBKKPO.js';
12
+ export { normalizeSpaces } from '../chunk-T2T7K3KR.js';
13
+ export { removeSpaces } from '../chunk-XEDXFSGI.js';
14
+ import '../chunk-W2WNBUDE.js';
15
+ export { slugify, toCamelCase, toDotCase, toKebabCase, toLowerCase, toPascalCase, toPascalCaseSpace, toSnakeCase } from '../chunk-CMW2TBOQ.js';
@@ -1 +1,43 @@
1
- "use strict";var e=require("../chunk-YLA3DURS.cjs");require("../chunk-6JFZL7YE.cjs"),require("../chunk-PZQ6I4JJ.cjs"),Object.defineProperty(exports,"cnV3",{enumerable:!0,get:function(){return e.cnV3}}),Object.defineProperty(exports,"cnV4",{enumerable:!0,get:function(){return e.cnV4}}),Object.defineProperty(exports,"customCnV3",{enumerable:!0,get:function(){return e.customCnV3}}),Object.defineProperty(exports,"customCnV4",{enumerable:!0,get:function(){return e.customCnV4}}),Object.defineProperty(exports,"shouldForwardProp",{enumerable:!0,get:function(){return e.shouldForwardProp}}),Object.defineProperty(exports,"twMergeDefaultV3",{enumerable:!0,get:function(){return e.twMergeDefaultV3}}),Object.defineProperty(exports,"twMergeDefaultV4",{enumerable:!0,get:function(){return e.twMergeDefaultV4}});
1
+ /*!
2
+ * ====================================================
3
+ * Rzl Utils-JS.
4
+ * ----------------------------------------------------
5
+ * Version: 3.5.1.
6
+ * Author: Rizalvin Dwiky.
7
+ * Repository: https://github.com/rzl-zone/utils-js.
8
+ * ====================================================
9
+ */
10
+ 'use strict';
11
+
12
+ var chunk2WA36TC5_cjs = require('../chunk-2WA36TC5.cjs');
13
+ require('../chunk-6JFZL7YE.cjs');
14
+ require('../chunk-PZQ6I4JJ.cjs');
15
+
16
+ Object.defineProperty(exports, "cnV3", {
17
+ enumerable: true,
18
+ get: function () { return chunk2WA36TC5_cjs.cnV3; }
19
+ });
20
+ Object.defineProperty(exports, "cnV4", {
21
+ enumerable: true,
22
+ get: function () { return chunk2WA36TC5_cjs.cnV4; }
23
+ });
24
+ Object.defineProperty(exports, "customCnV3", {
25
+ enumerable: true,
26
+ get: function () { return chunk2WA36TC5_cjs.customCnV3; }
27
+ });
28
+ Object.defineProperty(exports, "customCnV4", {
29
+ enumerable: true,
30
+ get: function () { return chunk2WA36TC5_cjs.customCnV4; }
31
+ });
32
+ Object.defineProperty(exports, "shouldForwardProp", {
33
+ enumerable: true,
34
+ get: function () { return chunk2WA36TC5_cjs.shouldForwardProp; }
35
+ });
36
+ Object.defineProperty(exports, "twMergeDefaultV3", {
37
+ enumerable: true,
38
+ get: function () { return chunk2WA36TC5_cjs.twMergeDefaultV3; }
39
+ });
40
+ Object.defineProperty(exports, "twMergeDefaultV4", {
41
+ enumerable: true,
42
+ get: function () { return chunk2WA36TC5_cjs.twMergeDefaultV4; }
43
+ });
@@ -1,3 +1,12 @@
1
+ /*!
2
+ * ====================================================
3
+ * Rzl Utils-JS.
4
+ * ----------------------------------------------------
5
+ * Version: 3.5.1.
6
+ * Author: Rizalvin Dwiky.
7
+ * Repository: https://github.com/rzl-zone/utils-js.
8
+ * ====================================================
9
+ */
1
10
  import{ClassValue}from'clsx';import{Config}from'tailwindcss';import{ClassNameValue as ClassNameValue$1,ConfigExtension as ConfigExtension$1}from'tailwind-merge-v3';import{ClassNameValue,ConfigExtension}from'tailwind-merge-v4';type ClassesValue=ClassValue[];
2
11
  /** -------------------------------------------------------------
3
12
  * * ***Default `cnV3` utility (Tailwind v3).***
@@ -568,4 +577,4 @@ declare const twMergeDefaultV3:(options?:OptionsMergeTwClsV3)=>TwMergeDefaultFnV
568
577
  * // ➔ "text-xxs" (✅ respects config)
569
578
  * ```
570
579
  */
571
- declare const twMergeDefaultV4:(options?:OptionsMergeTwClsV4)=>TwMergeDefaultFnV4;export{type ClassesValue,cnV3,cnV4,customCnV3,customCnV4,shouldForwardProp,twMergeDefaultV3,twMergeDefaultV4};
580
+ declare const twMergeDefaultV4:(options?:OptionsMergeTwClsV4)=>TwMergeDefaultFnV4;export{type ClassesValue,cnV3,cnV4,customCnV3,customCnV4,shouldForwardProp,twMergeDefaultV3,twMergeDefaultV4};
@@ -1 +1,12 @@
1
- export{cnV3,cnV4,customCnV3,customCnV4,shouldForwardProp,twMergeDefaultV3,twMergeDefaultV4}from"../chunk-JYQTCICM.js";import"../chunk-CKTLUNWX.js";import"../chunk-CMW2TBOQ.js";
1
+ /*!
2
+ * ====================================================
3
+ * Rzl Utils-JS.
4
+ * ----------------------------------------------------
5
+ * Version: 3.5.1.
6
+ * Author: Rizalvin Dwiky.
7
+ * Repository: https://github.com/rzl-zone/utils-js.
8
+ * ====================================================
9
+ */
10
+ export { cnV3, cnV4, customCnV3, customCnV4, shouldForwardProp, twMergeDefaultV3, twMergeDefaultV4 } from '../chunk-CDCERIZ2.js';
11
+ import '../chunk-CKTLUNWX.js';
12
+ import '../chunk-CMW2TBOQ.js';
@@ -1 +1,51 @@
1
- "use strict";var e=require("../chunk-DWF2R5GD.cjs");require("../chunk-KHO2SBNA.cjs"),require("../chunk-E74U6CYP.cjs"),require("../chunk-NRF6LWBC.cjs"),require("../chunk-HQWOFR56.cjs"),require("../chunk-V45XJKHW.cjs"),require("../chunk-DVMHRLKP.cjs");var r=require("../chunk-H66AC7GK.cjs");require("../chunk-KVAL5PAG.cjs"),require("../chunk-E55EQK2U.cjs"),require("../chunk-ZETAZZLD.cjs"),require("../chunk-6JFZL7YE.cjs"),require("../chunk-T7PU2V7X.cjs"),require("../chunk-UDA26MCU.cjs"),require("../chunk-PZQ6I4JJ.cjs"),Object.defineProperty(exports,"constructURL",{enumerable:!0,get:function(){return e.constructURL}}),Object.defineProperty(exports,"extractURLs",{enumerable:!0,get:function(){return e.extractURLs}}),Object.defineProperty(exports,"getFirstPrefixPathname",{enumerable:!0,get:function(){return e.getFirstPrefixPathname}}),Object.defineProperty(exports,"getPrefixPathname",{enumerable:!0,get:function(){return e.getPrefixPathname}}),Object.defineProperty(exports,"formatEnvPort",{enumerable:!0,get:function(){return r.formatEnvPort}}),Object.defineProperty(exports,"normalizePathname",{enumerable:!0,get:function(){return r.normalizePathname}});
1
+ /*!
2
+ * ====================================================
3
+ * Rzl Utils-JS.
4
+ * ----------------------------------------------------
5
+ * Version: 3.5.1.
6
+ * Author: Rizalvin Dwiky.
7
+ * Repository: https://github.com/rzl-zone/utils-js.
8
+ * ====================================================
9
+ */
10
+ 'use strict';
11
+
12
+ var chunkDWF2R5GD_cjs = require('../chunk-DWF2R5GD.cjs');
13
+ require('../chunk-KHO2SBNA.cjs');
14
+ require('../chunk-E74U6CYP.cjs');
15
+ require('../chunk-NRF6LWBC.cjs');
16
+ require('../chunk-HQWOFR56.cjs');
17
+ require('../chunk-V45XJKHW.cjs');
18
+ require('../chunk-DVMHRLKP.cjs');
19
+ var chunkH66AC7GK_cjs = require('../chunk-H66AC7GK.cjs');
20
+ require('../chunk-KVAL5PAG.cjs');
21
+ require('../chunk-E55EQK2U.cjs');
22
+ require('../chunk-ZETAZZLD.cjs');
23
+ require('../chunk-6JFZL7YE.cjs');
24
+ require('../chunk-T7PU2V7X.cjs');
25
+ require('../chunk-UDA26MCU.cjs');
26
+ require('../chunk-PZQ6I4JJ.cjs');
27
+
28
+ Object.defineProperty(exports, "constructURL", {
29
+ enumerable: true,
30
+ get: function () { return chunkDWF2R5GD_cjs.constructURL; }
31
+ });
32
+ Object.defineProperty(exports, "extractURLs", {
33
+ enumerable: true,
34
+ get: function () { return chunkDWF2R5GD_cjs.extractURLs; }
35
+ });
36
+ Object.defineProperty(exports, "getFirstPrefixPathname", {
37
+ enumerable: true,
38
+ get: function () { return chunkDWF2R5GD_cjs.getFirstPrefixPathname; }
39
+ });
40
+ Object.defineProperty(exports, "getPrefixPathname", {
41
+ enumerable: true,
42
+ get: function () { return chunkDWF2R5GD_cjs.getPrefixPathname; }
43
+ });
44
+ Object.defineProperty(exports, "formatEnvPort", {
45
+ enumerable: true,
46
+ get: function () { return chunkH66AC7GK_cjs.formatEnvPort; }
47
+ });
48
+ Object.defineProperty(exports, "normalizePathname", {
49
+ enumerable: true,
50
+ get: function () { return chunkH66AC7GK_cjs.normalizePathname; }
51
+ });
@@ -1,3 +1,12 @@
1
+ /*!
2
+ * ====================================================
3
+ * Rzl Utils-JS.
4
+ * ----------------------------------------------------
5
+ * Version: 3.5.1.
6
+ * Author: Rizalvin Dwiky.
7
+ * Repository: https://github.com/rzl-zone/utils-js.
8
+ * ====================================================
9
+ */
1
10
  /** ----------------------------------------------------------
2
11
  * * ***Type-Utility: `QueryParamPairs`.***
3
12
  * ----------------------------------------------------------
@@ -395,4 +404,4 @@ prefixColon?:boolean;};
395
404
  * formatEnvPort("port:8080", { prefixColon: true });
396
405
  * // ➔ ":8080"
397
406
  */
398
- declare const formatEnvPort:(envVar:string|null|undefined,options?:FormatEnvPortOptions)=>string;export{type QueryParamPairs,constructURL,extractURLs,formatEnvPort,getFirstPrefixPathname,getPrefixPathname,normalizePathname};
407
+ declare const formatEnvPort:(envVar:string|null|undefined,options?:FormatEnvPortOptions)=>string;export{type QueryParamPairs,constructURL,extractURLs,formatEnvPort,getFirstPrefixPathname,getPrefixPathname,normalizePathname};
@@ -1 +1,24 @@
1
- export{constructURL,extractURLs,getFirstPrefixPathname,getPrefixPathname}from"../chunk-SBFNXGTJ.js";import"../chunk-ONZFBJVW.js";import"../chunk-IZPBKKPO.js";import"../chunk-OI5XKNZO.js";import"../chunk-GQR4R5WY.js";import"../chunk-3IBQ5MOM.js";import"../chunk-WVSPXFTY.js";export{formatEnvPort,normalizePathname}from"../chunk-GGEADHZO.js";import"../chunk-XEDXFSGI.js";import"../chunk-W2WNBUDE.js";import"../chunk-6JFCSH7J.js";import"../chunk-CKTLUNWX.js";import"../chunk-PET42Z7W.js";import"../chunk-QNKGP5DY.js";import"../chunk-CMW2TBOQ.js";
1
+ /*!
2
+ * ====================================================
3
+ * Rzl Utils-JS.
4
+ * ----------------------------------------------------
5
+ * Version: 3.5.1.
6
+ * Author: Rizalvin Dwiky.
7
+ * Repository: https://github.com/rzl-zone/utils-js.
8
+ * ====================================================
9
+ */
10
+ export { constructURL, extractURLs, getFirstPrefixPathname, getPrefixPathname } from '../chunk-SBFNXGTJ.js';
11
+ import '../chunk-ONZFBJVW.js';
12
+ import '../chunk-IZPBKKPO.js';
13
+ import '../chunk-OI5XKNZO.js';
14
+ import '../chunk-GQR4R5WY.js';
15
+ import '../chunk-3IBQ5MOM.js';
16
+ import '../chunk-WVSPXFTY.js';
17
+ export { formatEnvPort, normalizePathname } from '../chunk-GGEADHZO.js';
18
+ import '../chunk-XEDXFSGI.js';
19
+ import '../chunk-W2WNBUDE.js';
20
+ import '../chunk-6JFCSH7J.js';
21
+ import '../chunk-CKTLUNWX.js';
22
+ import '../chunk-PET42Z7W.js';
23
+ import '../chunk-QNKGP5DY.js';
24
+ import '../chunk-CMW2TBOQ.js';
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@rzl-zone/utils-js",
3
- "version": "3.4.0",
4
- "type": "module",
3
+ "version": "3.5.1",
5
4
  "sideEffects": false,
6
5
  "engineStrict": true,
7
6
  "license": "MIT",
7
+ "type": "module",
8
8
  "unpkg": "./dist/rzl-utils.global.js",
9
9
  "jsdelivr": "./dist/rzl-utils.global.js",
10
10
  "types": "./dist/index.d.ts",
@@ -19,6 +19,7 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@rzl-zone/ts-types-plus": "latest",
22
+ "clsx": "^2.1.1",
22
23
  "date-fns": "^4.1.0",
23
24
  "libphonenumber-js": "^1.12.17",
24
25
  "server-only": "^0.0.1",
@@ -31,19 +32,18 @@
31
32
  "@types/rollup": "^0.51.4",
32
33
  "@vitest/coverage-v8": "^3.2.4",
33
34
  "barrelsby": "^2.8.1",
34
- "clsx": "latest",
35
35
  "del-cli": "^6.0.0",
36
36
  "dts-bundle-generator": "^9.5.1",
37
37
  "eslint": "^9.31.0",
38
38
  "globals": "^16.3.0",
39
39
  "jsdom": "^26.1.0",
40
- "next": "^15.5.2",
41
- "release-please": "^17.1.1",
40
+ "next": "^15.5.3",
42
41
  "tailwindcss": "^4.1.13",
43
42
  "terser": "^5.44.0",
44
43
  "tsc-alias": "^1.8.16",
45
44
  "tsup": "^8.5.0",
46
45
  "tsx": "^4.20.3",
46
+ "type-fest": "^5.0.1",
47
47
  "typescript": "^5.9.2",
48
48
  "typescript-eslint": "^8.41.0",
49
49
  "vitest": "^3.2.4"
@@ -64,193 +64,74 @@
64
64
  "types": "./dist/index.d.ts"
65
65
  },
66
66
  "./assertions": {
67
- "import": {
68
- "types": "./dist/assertions/index.d.ts",
69
- "default": "./dist/assertions/index.js"
70
- },
71
- "require": {
72
- "types": "./dist/assertions/index.d.ts",
73
- "default": "./dist/assertions/index.cjs"
74
- }
67
+ "types": "./dist/assertions/index.d.ts",
68
+ "import": "./dist/assertions/index.js",
69
+ "require": "./dist/assertions/index.cjs"
75
70
  },
76
71
  "./conversions": {
77
- "import": {
78
- "types": "./dist/conversions/index.d.ts",
79
- "default": "./dist/conversions/index.js"
80
- },
81
- "require": {
82
- "types": "./dist/conversions/index.d.ts",
83
- "default": "./dist/conversions/index.cjs"
84
- }
72
+ "types": "./dist/conversions/index.d.ts",
73
+ "import": "./dist/conversions/index.js",
74
+ "require": "./dist/conversions/index.cjs"
85
75
  },
86
76
  "./events": {
87
- "import": {
88
- "types": "./dist/events/index.d.ts",
89
- "default": "./dist/events/index.js"
90
- },
91
- "require": {
92
- "types": "./dist/events/index.d.ts",
93
- "default": "./dist/events/index.cjs"
94
- }
77
+ "types": "./dist/events/index.d.ts",
78
+ "import": "./dist/events/index.js",
79
+ "require": "./dist/events/index.cjs"
95
80
  },
96
81
  "./formatters": {
97
- "import": {
98
- "types": "./dist/formatters/index.d.ts",
99
- "default": "./dist/formatters/index.js"
100
- },
101
- "require": {
102
- "types": "./dist/formatters/index.d.ts",
103
- "default": "./dist/formatters/index.cjs"
104
- }
82
+ "types": "./dist/formatters/index.d.ts",
83
+ "import": "./dist/formatters/index.js",
84
+ "require": "./dist/formatters/index.cjs"
105
85
  },
106
86
  "./generators": {
107
- "import": {
108
- "types": "./dist/generators/index.d.ts",
109
- "default": "./dist/generators/index.js"
110
- },
111
- "require": {
112
- "types": "./dist/generators/index.d.ts",
113
- "default": "./dist/generators/index.cjs"
114
- }
87
+ "types": "./dist/generators/index.d.ts",
88
+ "import": "./dist/generators/index.js",
89
+ "require": "./dist/generators/index.cjs"
115
90
  },
116
91
  "./next": {
117
- "import": {
118
- "types": "./dist/next/index.d.ts",
119
- "default": "./dist/next/index.js"
120
- },
121
- "require": {
122
- "types": "./dist/next/index.d.ts",
123
- "default": "./dist/next/index.cjs"
124
- }
92
+ "types": "./dist/next/index.d.ts",
93
+ "import": "./dist/next/index.js",
94
+ "require": "./dist/next/index.cjs"
125
95
  },
126
96
  "./next/server": {
127
- "import": {
128
- "types": "./dist/next/server/index.d.ts",
129
- "default": "./dist/next/server/index.js"
130
- },
131
- "require": {
132
- "types": "./dist/next/server/index.d.ts",
133
- "default": "./dist/next/server/index.cjs"
134
- }
97
+ "types": "./dist/next/server/index.d.ts",
98
+ "import": "./dist/next/server/index.js",
99
+ "require": "./dist/next/server/index.cjs"
135
100
  },
136
101
  "./operations": {
137
- "import": {
138
- "types": "./dist/operations/index.d.ts",
139
- "default": "./dist/operations/index.js"
140
- },
141
- "require": {
142
- "types": "./dist/operations/index.d.ts",
143
- "default": "./dist/operations/index.cjs"
144
- }
102
+ "types": "./dist/operations/index.d.ts",
103
+ "import": "./dist/operations/index.js",
104
+ "require": "./dist/operations/index.cjs"
145
105
  },
146
106
  "./parsers": {
147
- "import": {
148
- "types": "./dist/parsers/index.d.ts",
149
- "default": "./dist/parsers/index.js"
150
- },
151
- "require": {
152
- "types": "./dist/parsers/index.d.ts",
153
- "default": "./dist/parsers/index.cjs"
154
- }
107
+ "types": "./dist/parsers/index.d.ts",
108
+ "import": "./dist/parsers/index.js",
109
+ "require": "./dist/parsers/index.cjs"
155
110
  },
156
111
  "./predicates": {
157
- "import": {
158
- "types": "./dist/predicates/index.d.ts",
159
- "default": "./dist/predicates/index.js"
160
- },
161
- "require": {
162
- "types": "./dist/predicates/index.d.ts",
163
- "default": "./dist/predicates/index.cjs"
164
- }
112
+ "types": "./dist/predicates/index.d.ts",
113
+ "import": "./dist/predicates/index.js",
114
+ "require": "./dist/predicates/index.cjs"
165
115
  },
166
116
  "./promises": {
167
- "import": {
168
- "types": "./dist/promises/index.d.ts",
169
- "default": "./dist/promises/index.js"
170
- },
171
- "require": {
172
- "types": "./dist/promises/index.d.ts",
173
- "default": "./dist/promises/index.cjs"
174
- }
117
+ "types": "./dist/promises/index.d.ts",
118
+ "import": "./dist/promises/index.js",
119
+ "require": "./dist/promises/index.cjs"
175
120
  },
176
121
  "./strings": {
177
- "import": {
178
- "types": "./dist/strings/index.d.ts",
179
- "default": "./dist/strings/index.js"
180
- },
181
- "require": {
182
- "types": "./dist/strings/index.d.ts",
183
- "default": "./dist/strings/index.cjs"
184
- }
122
+ "types": "./dist/strings/index.d.ts",
123
+ "import": "./dist/strings/index.js",
124
+ "require": "./dist/strings/index.cjs"
185
125
  },
186
126
  "./tailwind": {
187
- "import": {
188
- "types": "./dist/tailwind/index.d.ts",
189
- "default": "./dist/tailwind/index.js"
190
- },
191
- "require": {
192
- "types": "./dist/tailwind/index.d.ts",
193
- "default": "./dist/tailwind/index.cjs"
194
- }
127
+ "types": "./dist/tailwind/index.d.ts",
128
+ "import": "./dist/tailwind/index.js",
129
+ "require": "./dist/tailwind/index.cjs"
195
130
  },
196
131
  "./urls": {
197
- "import": {
198
- "types": "./dist/urls/index.d.ts",
199
- "default": "./dist/urls/index.js"
200
- },
201
- "require": {
202
- "types": "./dist/urls/index.d.ts",
203
- "default": "./dist/urls/index.cjs"
204
- }
205
- }
206
- },
207
- "typesVersions": {
208
- "*": {
209
- ".": [
210
- "./dist/index.d.ts"
211
- ],
212
- "assertions": [
213
- "dist/assertions/index.d.ts"
214
- ],
215
- "conversions": [
216
- "dist/conversions/index.d.ts"
217
- ],
218
- "events": [
219
- "dist/events/index.d.ts"
220
- ],
221
- "formatters": [
222
- "dist/formatters/index.d.ts"
223
- ],
224
- "generators": [
225
- "dist/generators/index.d.ts"
226
- ],
227
- "next": [
228
- "dist/next/index.d.ts"
229
- ],
230
- "next/server": [
231
- "dist/next/server/index.d.ts"
232
- ],
233
- "operations": [
234
- "dist/operations/index.d.ts"
235
- ],
236
- "parsers": [
237
- "dist/parsers/index.d.ts"
238
- ],
239
- "predicates": [
240
- "dist/predicates/index.d.ts"
241
- ],
242
- "promises": [
243
- "dist/promises/index.d.ts"
244
- ],
245
- "strings": [
246
- "dist/strings/index.d.ts"
247
- ],
248
- "tailwind": [
249
- "dist/tailwind/index.d.ts"
250
- ],
251
- "urls": [
252
- "dist/urls/index.d.ts"
253
- ]
132
+ "types": "./dist/urls/index.d.ts",
133
+ "import": "./dist/urls/index.js",
134
+ "require": "./dist/urls/index.cjs"
254
135
  }
255
136
  },
256
137
  "files": [
@@ -281,25 +162,25 @@
281
162
  "url": "git+https://github.com/rzl-zone/utils-js.git"
282
163
  },
283
164
  "scripts": {
284
- "generate:reference": "tsx scripts/generate-reference.ts",
285
- "clean": "del-cli \"dist/*\"",
286
- "prepublish": "npm run clean",
287
- "prepare": "npm run build",
288
- "prepublishOnly": "npm run barrel",
289
- "check-publish": "npm pack --dry-run",
290
- "delete-dist:index": "del-cli \"dist/index.{js,js.map,cjs,cjs.map}\" \"dist/index.d.{ts,cts}\"",
291
- "postbuild": "del-cli \"dist/**/*.d.cts\" && npm run delete-dist:index && npm run generate:reference",
292
165
  "barrel:generate": "npx barrelsby --config barrelsby.config.json",
293
- "barrel": "npm run barrel:generate && npm run barrel:generate && npx tsx scripts/removeBarrelsbyComment.ts ",
294
166
  "barrel:remove-comment-dist": "tsx scripts/removeBarrelsbyComment.ts",
295
- "build": "npm run clean && npm run barrel && tsup && npm run minify-dist && npm run postbuild",
296
- "build:dts": "tsc -p tsconfig.build.json && tsc-alias",
167
+ "barrel": "npm run barrel:generate && npm run barrel:generate && npm run barrel:remove-comment-dist",
168
+ "inject:banner": "tsx scripts/injectBanner",
169
+ "normalize:new-lines": "tsx scripts/normalizeNewLineDistFiles",
170
+ "clean-dist": "del-cli \"dist/*\"",
171
+ "clean-dist:types-cts": "del-cli \"dist/**/*.d.{cts,mts}\"",
172
+ "clean-dist:js-comments": "tsx scripts/cleanDistJsComments.ts",
173
+ "delete-dist:index-runtime": "del-cli \"dist/index.{js,js.map,cjs,cjs.map}\" \"dist/index.d.{ts,cts,mts,esm}\"",
174
+ "minify:dts-dist": "tsx scripts/minifyDtsDist.ts",
297
175
  "build:types-dts": "dts-bundle-generator --config dts-config.cjs --silent --external-imports next",
298
- "coverage": "vitest run --coverage",
176
+ "generate:reference-index": "tsx scripts/generateReferenceIndex.ts",
177
+ "postbuild": "",
178
+ "build": "npm run clean-dist && npm run barrel && tsup && npm run minify:dts-dist && npm run clean-dist:js-comments && npm run normalize:new-lines && npm run clean-dist:types-cts && npm run delete-dist:index-runtime && npm run generate:reference-index && npm run inject:banner",
299
179
  "format": "prettier --check .",
300
180
  "lint": "eslint . --ext .ts,.js",
301
181
  "lint:fix": "eslint . --ext .ts,.js --fix",
302
- "minify-dist": "tsx scripts/minify-dist.ts",
182
+ "prepublishOnly": "npm run build",
183
+ "check-publish": "npm run build && npm pack --dry-run",
303
184
  "release-patch": "npm version patch && git push && git push --tags && npm publish"
304
185
  }
305
186
  }
@@ -1 +0,0 @@
1
- import{assertIsArray as e}from"./chunk-CKTLUNWX.js";import{isPlainObject as i,isNumber as r,isNonEmptyString as s,isFunction as o,hasOwnProp as t,isNonEmptyArray as n,getPreciseType as a}from"./chunk-CMW2TBOQ.js";import{getDefaultConfig as c,extendTailwindMerge as f}from"tailwind-merge-v3";import{getDefaultConfig as l,extendTailwindMerge as p}from"tailwind-merge-v4";function d(e){var i,r,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(i=0;i<o;i++)e[i]&&(r=d(e[i]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}var m=function(){for(var e,i,r=0,s="",o=arguments.length;r<o;r++)(e=arguments[r])&&(i=d(e))&&(s&&(s+=" "),s+=i);return s},u=e=>{i(e)||(e={});let{config:a,prefix:c,extend:f,override:l,cacheSize:p,experimentalParseClassName:d}=e;i(a)||(a={}),i(f)||(f={}),i(l)||(l={}),r(p)||(p=void 0),s(c)||(c=void 0),o(d)||(d=void 0);return{config:a,override:l,cacheSize:p,prefix:c,experimentalParseClassName:d,theme:t(f,"theme")?f.theme:{},classGroups:t(f,"classGroups")?f.classGroups:{},conflictingClassGroupModifiers:t(f,"conflictingClassGroupModifiers")?f.conflictingClassGroupModifiers:{},conflictingClassGroups:t(f,"conflictingClassGroups")?f.conflictingClassGroups:{},orderSensitiveModifiers:t(f,"orderSensitiveModifiers")&&n(f.orderSensitiveModifiers)?f.orderSensitiveModifiers:[]}},g=c(),x=(e={})=>{i(e)||(e={});const{cacheSize:r,classGroups:s,config:o,conflictingClassGroupModifiers:t,conflictingClassGroups:n,override:a,prefix:c,theme:l,experimentalParseClassName:p}=u(e);return f({prefix:c??o.prefix,cacheSize:r||g.cacheSize,experimentalParseClassName:p,override:a,extend:{conflictingClassGroupModifiers:{...g.conflictingClassGroupModifiers,...t},theme:{...g.theme,...l},conflictingClassGroups:{...g.conflictingClassGroups,...n},classGroups:{...g.classGroups,...s,"text-shadow":["","-sm","-md","-lg","-xl","-xxl","-none","-default"].map(e=>`text-shadow${e}`),"font-size":Object.keys({...o.theme?.fontSize||{},...o.theme?.extend?.fontSize||{}}).map(e=>`text-${e}`)}}})},h=l(),C=(e={})=>{i(e)||(e={});const{cacheSize:r,classGroups:s,config:o,conflictingClassGroupModifiers:t,conflictingClassGroups:n,orderSensitiveModifiers:a,override:c,prefix:f,theme:l,experimentalParseClassName:d}=u(e);return p({prefix:f||o.prefix,cacheSize:r||h.cacheSize,experimentalParseClassName:d,override:c,extend:{conflictingClassGroupModifiers:{...h.conflictingClassGroupModifiers,...t},theme:{...h.theme,...l},conflictingClassGroups:{...h.conflictingClassGroups,...n},orderSensitiveModifiers:[...h.orderSensitiveModifiers,...a],classGroups:{...h.classGroups,...s,"text-shadow":["","-sm","-md","-lg","-xl","-xxl","-none","-default"].map(e=>`text-shadow${e}`),"font-size":Object.keys({...o.theme?.fontSize||{},...o.theme?.extend?.fontSize||{}}).map(e=>`text-${e}`)}}})},G=x(),v=C(),S=(...e)=>G(m(...e)),M=(...e)=>v(m(...e)),y=(e,...i)=>{if(!o(e))throw new TypeError(`first Parameter (\`customTwMergeV3\`) must be of type \`function\`, but received: \`${a(e)}\`.`);return e(m(...i))},z=(e,...i)=>{if(!o(e))throw new TypeError(`first Parameter (\`customTwMergeV4\`) must be of type \`function\`, but received: \`${a(e)}\`.`);return e(m(...i))},w=i=>(e(i,{message:({currentType:e,validType:i})=>`First parameter (\`props\`) must be of type \`${i}\`, but received: \`${e}\`.`}),e=>!i.map(e=>e.toString()).includes(e.toString()));export{S as cnV3,M as cnV4,y as customCnV3,z as customCnV4,w as shouldForwardProp,x as twMergeDefaultV3,C as twMergeDefaultV4};
@@ -1 +0,0 @@
1
- "use strict";var e=require("./chunk-6JFZL7YE.cjs"),i=require("./chunk-PZQ6I4JJ.cjs"),r=require("tailwind-merge-v3"),s=require("tailwind-merge-v4");function t(e){var i,r,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(i=0;i<o;i++)e[i]&&(r=t(e[i]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}var o=function(){for(var e,i,r=0,s="",o=arguments.length;r<o;r++)(e=arguments[r])&&(i=t(e))&&(s&&(s+=" "),s+=i);return s},n=e=>{i.isPlainObject(e)||(e={});let{config:r,prefix:s,extend:t,override:o,cacheSize:n,experimentalParseClassName:a}=e;i.isPlainObject(r)||(r={}),i.isPlainObject(t)||(t={}),i.isPlainObject(o)||(o={}),i.isNumber(n)||(n=void 0),i.isNonEmptyString(s)||(s=void 0),i.isFunction(a)||(a=void 0);return{config:r,override:o,cacheSize:n,prefix:s,experimentalParseClassName:a,theme:i.hasOwnProp(t,"theme")?t.theme:{},classGroups:i.hasOwnProp(t,"classGroups")?t.classGroups:{},conflictingClassGroupModifiers:i.hasOwnProp(t,"conflictingClassGroupModifiers")?t.conflictingClassGroupModifiers:{},conflictingClassGroups:i.hasOwnProp(t,"conflictingClassGroups")?t.conflictingClassGroups:{},orderSensitiveModifiers:i.hasOwnProp(t,"orderSensitiveModifiers")&&i.isNonEmptyArray(t.orderSensitiveModifiers)?t.orderSensitiveModifiers:[]}},a=r.getDefaultConfig(),c=(e={})=>{i.isPlainObject(e)||(e={});const{cacheSize:s,classGroups:t,config:o,conflictingClassGroupModifiers:c,conflictingClassGroups:l,override:f,prefix:p,theme:u,experimentalParseClassName:d}=n(e);return r.extendTailwindMerge({prefix:p??o.prefix,cacheSize:s||a.cacheSize,experimentalParseClassName:d,override:f,extend:{conflictingClassGroupModifiers:{...a.conflictingClassGroupModifiers,...c},theme:{...a.theme,...u},conflictingClassGroups:{...a.conflictingClassGroups,...l},classGroups:{...a.classGroups,...t,"text-shadow":["","-sm","-md","-lg","-xl","-xxl","-none","-default"].map(e=>`text-shadow${e}`),"font-size":Object.keys({...o.theme?.fontSize||{},...o.theme?.extend?.fontSize||{}}).map(e=>`text-${e}`)}}})},l=s.getDefaultConfig(),f=(e={})=>{i.isPlainObject(e)||(e={});const{cacheSize:r,classGroups:t,config:o,conflictingClassGroupModifiers:a,conflictingClassGroups:c,orderSensitiveModifiers:f,override:p,prefix:u,theme:d,experimentalParseClassName:m}=n(e);return s.extendTailwindMerge({prefix:u||o.prefix,cacheSize:r||l.cacheSize,experimentalParseClassName:m,override:p,extend:{conflictingClassGroupModifiers:{...l.conflictingClassGroupModifiers,...a},theme:{...l.theme,...d},conflictingClassGroups:{...l.conflictingClassGroups,...c},orderSensitiveModifiers:[...l.orderSensitiveModifiers,...f],classGroups:{...l.classGroups,...t,"text-shadow":["","-sm","-md","-lg","-xl","-xxl","-none","-default"].map(e=>`text-shadow${e}`),"font-size":Object.keys({...o.theme?.fontSize||{},...o.theme?.extend?.fontSize||{}}).map(e=>`text-${e}`)}}})},p=c(),u=f();exports.cnV3=(...e)=>p(o(...e)),exports.cnV4=(...e)=>u(o(...e)),exports.customCnV3=(e,...r)=>{if(!i.isFunction(e))throw new TypeError(`first Parameter (\`customTwMergeV3\`) must be of type \`function\`, but received: \`${i.getPreciseType(e)}\`.`);return e(o(...r))},exports.customCnV4=(e,...r)=>{if(!i.isFunction(e))throw new TypeError(`first Parameter (\`customTwMergeV4\`) must be of type \`function\`, but received: \`${i.getPreciseType(e)}\`.`);return e(o(...r))},exports.shouldForwardProp=i=>(e.assertIsArray(i,{message:({currentType:e,validType:i})=>`First parameter (\`props\`) must be of type \`${i}\`, but received: \`${e}\`.`}),e=>!i.map(e=>e.toString()).includes(e.toString())),exports.twMergeDefaultV3=c,exports.twMergeDefaultV4=f;