@rzl-zone/utils-js 3.7.1 → 3.9.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.
- package/README.md +28 -1
- package/dist/assertions/index.cjs +11 -11
- package/dist/assertions/index.d.ts +169 -58
- package/dist/assertions/index.js +5 -5
- package/dist/{chunk-EK7FSI7F.cjs → chunk-2XGQQZ6A.cjs} +3 -3
- package/dist/{chunk-YS27V6LS.js → chunk-3LE6NX57.js} +5 -176
- package/dist/{chunk-PZQC3FZY.js → chunk-44X74C26.js} +4 -4
- package/dist/{chunk-4ACKNPL5.js → chunk-5KDVIEVO.js} +2 -2
- package/dist/{chunk-JY4HLZ4W.js → chunk-5O66AUEC.js} +2 -2
- package/dist/chunk-5Y6JL47L.js +302 -0
- package/dist/{chunk-KIYALQQF.cjs → chunk-62FS7WMB.cjs} +35 -35
- package/dist/{chunk-VJVCXEH7.cjs → chunk-6AMDHVS2.cjs} +9 -181
- package/dist/{chunk-6PKW4WCT.js → chunk-6WVOUVWD.js} +27 -15
- package/dist/{chunk-BYUT376O.cjs → chunk-76ATVDCR.cjs} +3 -3
- package/dist/{chunk-F3WBQKRI.cjs → chunk-7C7TQC5J.cjs} +29 -7
- package/dist/{chunk-QUITZ3GP.js → chunk-7EIFPHV3.js} +32 -16
- package/dist/{chunk-6RFNZ2ZZ.cjs → chunk-7NXFGJJE.cjs} +14 -14
- package/dist/{chunk-TFDXRT6D.cjs → chunk-ALRISPTL.cjs} +3 -3
- package/dist/chunk-BAV5T2E3.cjs +1 -1
- package/dist/{chunk-4ZOXSUXB.js → chunk-C7GC2PFX.js} +3 -3
- package/dist/chunk-DVMHRLKP.cjs +1 -1
- package/dist/{chunk-XFTUHS4Y.js → chunk-DXPM4NOU.js} +10 -8
- package/dist/{chunk-DPLL67OT.js → chunk-EJV5AF4L.js} +2 -2
- package/dist/{chunk-NREACG6M.cjs → chunk-FWWPEL7J.cjs} +3 -3
- package/dist/{chunk-LEX4TQW2.js → chunk-GHU356XQ.js} +4 -6
- package/dist/chunk-GKDSBOYE.js +209 -0
- package/dist/{chunk-YC7AK3KX.cjs → chunk-H44QVAZL.cjs} +31 -31
- package/dist/{chunk-AKKM6MOX.cjs → chunk-I33PB44Q.cjs} +15 -15
- package/dist/{chunk-LIU4S3JA.cjs → chunk-IX6PF5ZP.cjs} +4 -4
- package/dist/{chunk-3KTD3QDI.js → chunk-J4TT33ZX.js} +29 -7
- package/dist/{chunk-SZJ7OI4S.js → chunk-J6VLFVIL.js} +3 -3
- package/dist/{chunk-KTQLDIIT.cjs → chunk-JI57K7D4.cjs} +173 -163
- package/dist/{chunk-OFBFGFVH.js → chunk-JYOCB6OV.js} +2 -2
- package/dist/chunk-KHO2SBNA.cjs +1 -1
- package/dist/{chunk-66WLOZOD.cjs → chunk-KUVRZ2JW.cjs} +53 -51
- package/dist/chunk-L5RDAVVH.js +1 -1
- package/dist/{chunk-VCVND6CH.js → chunk-M5QB2GM5.js} +2 -2
- package/dist/{chunk-3LEWQV3R.js → chunk-MBFVTGYS.js} +8 -8
- package/dist/{chunk-UKAUXY2U.cjs → chunk-MMRHKYT6.cjs} +12 -12
- package/dist/{chunk-U5VR4TJN.js → chunk-MS2KSKD7.js} +9 -9
- package/dist/{chunk-7ZNEUWYP.js → chunk-MZ3T6L7Z.js} +2 -2
- package/dist/{chunk-ATLFMKAF.cjs → chunk-NAOVH4OH.cjs} +7 -7
- package/dist/chunk-NJ24M6ZH.cjs +308 -0
- package/dist/chunk-OCTHWEZK.cjs +249 -0
- package/dist/chunk-ONZFBJVW.js +1 -1
- package/dist/{chunk-FI76UZRF.js → chunk-OSSFLQDD.js} +3 -4
- package/dist/{chunk-7WBMA2VE.cjs → chunk-OYFUBKEG.cjs} +4 -5
- package/dist/{chunk-B4SDEBN7.cjs → chunk-PWKOFPAH.cjs} +3 -3
- package/dist/{chunk-2CQI36UD.cjs → chunk-QGTFQ7RO.cjs} +8 -6
- package/dist/chunk-QNKGP5DY.js +1 -1
- package/dist/chunk-QXTJVDWE.js +676 -0
- package/dist/{chunk-B6UIKBHR.cjs → chunk-QZI5PVCI.cjs} +4 -4
- package/dist/{chunk-WNO3EPYT.js → chunk-R2DR7SPJ.js} +102 -26
- package/dist/{chunk-TDYGYHSH.js → chunk-SN5HAK3Y.js} +4 -4
- package/dist/{chunk-D53CE4BT.js → chunk-SRWL4YCP.js} +11 -8
- package/dist/{chunk-7QQV66RX.cjs → chunk-TJ5OY6MC.cjs} +10 -10
- package/dist/{chunk-6WMB5AJR.js → chunk-TXOVQZPU.js} +3 -4
- package/dist/chunk-UDA26MCU.cjs +1 -1
- package/dist/{chunk-R3PBF6F7.cjs → chunk-UFYMRRJH.cjs} +73 -61
- package/dist/{chunk-5NN4ZDE2.cjs → chunk-UV5BKAYW.cjs} +6 -8
- package/dist/{chunk-GAJBF6DR.js → chunk-UXT4XSUK.js} +2 -2
- package/dist/{chunk-TDPYR5JY.js → chunk-VBSLIIDB.js} +24 -14
- package/dist/chunk-VCYXNIZ2.cjs +678 -0
- package/dist/chunk-VJDDGRIK.cjs +1 -1
- package/dist/{chunk-VNADVWSJ.js → chunk-WB3FT62A.js} +6 -4
- package/dist/{chunk-K63WO3XA.cjs → chunk-WKM6UVMG.cjs} +4 -5
- package/dist/{chunk-OS5OT5JA.cjs → chunk-WLEZ2KSG.cjs} +142 -126
- package/dist/{chunk-ZN53RM3R.js → chunk-WRGN6UBK.js} +2 -2
- package/dist/chunk-WVSPXFTY.js +1 -1
- package/dist/{chunk-2VO2CBTU.js → chunk-X6ULJZ3X.js} +2 -2
- package/dist/{chunk-CKUEZF4R.cjs → chunk-XYWC4EQ3.cjs} +71 -71
- package/dist/{chunk-A3YI6Y2P.js → chunk-YHFRCVTN.js} +3 -3
- package/dist/{chunk-RMJC3B5P.cjs → chunk-YQHJB7KR.cjs} +30 -27
- package/dist/{chunk-YGB2BQPB.cjs → chunk-YVRUY4EW.cjs} +8 -8
- package/dist/chunk-YWHHVDT4.js +1 -1
- package/dist/chunk-ZTHJQJ5F.cjs +211 -0
- package/dist/conversions/index.cjs +34 -34
- package/dist/conversions/index.d.ts +10 -12
- package/dist/conversions/index.js +15 -15
- package/dist/events/index.cjs +8 -8
- package/dist/events/index.d.ts +9 -9
- package/dist/events/index.js +4 -4
- package/dist/formatters/index.cjs +19 -19
- package/dist/formatters/index.d.ts +19 -24
- package/dist/formatters/index.js +9 -9
- package/dist/generators/index.cjs +12 -8
- package/dist/generators/index.d.ts +155 -26
- package/dist/generators/index.js +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/{isPlainObject-FWmcJF6k.d.ts → isPlainObject-BTPjv6zB.d.ts} +2 -2
- package/dist/next/index.cjs +39 -36
- package/dist/next/index.d.ts +11 -11
- package/dist/next/index.js +12 -9
- package/dist/next/server/index.cjs +4 -4
- package/dist/next/server/index.d.ts +4 -4
- package/dist/next/server/index.js +2 -2
- package/dist/operations/index.cjs +11 -11
- package/dist/operations/index.d.ts +8 -9
- package/dist/operations/index.js +8 -8
- package/dist/parsers/index.cjs +6 -4
- package/dist/parsers/index.d.ts +224 -32
- package/dist/parsers/index.js +5 -3
- package/dist/predicates/index.cjs +77 -76
- package/dist/predicates/index.d.ts +15 -28
- package/dist/predicates/index.js +14 -13
- package/dist/promises/index.cjs +6 -6
- package/dist/promises/index.d.ts +5 -7
- package/dist/promises/index.js +4 -4
- package/dist/rzl-utils.global.js +2 -2
- package/dist/strings/index.cjs +23 -23
- package/dist/strings/index.d.ts +1 -1
- package/dist/strings/index.js +7 -7
- package/dist/tailwind/index.cjs +13 -13
- package/dist/tailwind/index.d.ts +18 -18
- package/dist/tailwind/index.js +5 -5
- package/dist/urls/index.cjs +23 -21
- package/dist/urls/index.d.ts +188 -121
- package/dist/urls/index.js +16 -14
- package/package.json +1 -1
- package/dist/chunk-ABA2ZSBQ.js +0 -152
- package/dist/chunk-BG3AS5BU.cjs +0 -173
- package/dist/chunk-K3SONK25.cjs +0 -157
- package/dist/chunk-KPCDDYTZ.js +0 -417
- package/dist/chunk-QAPYHLHC.cjs +0 -419
package/dist/strings/index.cjs
CHANGED
|
@@ -2,81 +2,81 @@
|
|
|
2
2
|
* ====================================================
|
|
3
3
|
* Rzl Utils-JS.
|
|
4
4
|
* ----------------------------------------------------
|
|
5
|
-
* Version: 3.
|
|
5
|
+
* Version: 3.9.0.
|
|
6
6
|
* Author: Rizalvin Dwiky.
|
|
7
7
|
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
8
|
* ====================================================
|
|
9
9
|
*/
|
|
10
10
|
'use strict';
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
require('../chunk-
|
|
17
|
-
var
|
|
12
|
+
var chunk7NXFGJJE_cjs = require('../chunk-7NXFGJJE.cjs');
|
|
13
|
+
var chunk76ATVDCR_cjs = require('../chunk-76ATVDCR.cjs');
|
|
14
|
+
var chunkQZI5PVCI_cjs = require('../chunk-QZI5PVCI.cjs');
|
|
15
|
+
var chunkIX6PF5ZP_cjs = require('../chunk-IX6PF5ZP.cjs');
|
|
16
|
+
require('../chunk-FWWPEL7J.cjs');
|
|
17
|
+
var chunk7C7TQC5J_cjs = require('../chunk-7C7TQC5J.cjs');
|
|
18
18
|
|
|
19
19
|
Object.defineProperty(exports, "capitalizeFirst", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk7NXFGJJE_cjs.capitalizeFirst; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "capitalizeWords", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk7NXFGJJE_cjs.capitalizeWords; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "getInitialsName", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk7NXFGJJE_cjs.getInitialsName; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "replaceAt", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk7NXFGJJE_cjs.replaceAt; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "stripHtmlTags", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk7NXFGJJE_cjs.stripHtmlTags; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "normalizeString", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk76ATVDCR_cjs.normalizeString; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "normalizeSpaces", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkQZI5PVCI_cjs.normalizeSpaces; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "removeSpaces", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkIX6PF5ZP_cjs.removeSpaces; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "slugify", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk7C7TQC5J_cjs.slugify; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "toCamelCase", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk7C7TQC5J_cjs.toCamelCase; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "toDotCase", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk7C7TQC5J_cjs.toDotCase; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "toKebabCase", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk7C7TQC5J_cjs.toKebabCase; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "toLowerCase", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunk7C7TQC5J_cjs.toLowerCase; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "toPascalCase", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunk7C7TQC5J_cjs.toPascalCase; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "toPascalCaseSpace", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunk7C7TQC5J_cjs.toPascalCaseSpace; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "toSnakeCase", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunk7C7TQC5J_cjs.toSnakeCase; }
|
|
82
82
|
});
|
package/dist/strings/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* ====================================================
|
|
3
3
|
* Rzl Utils-JS.
|
|
4
4
|
* ----------------------------------------------------
|
|
5
|
-
* Version: 3.
|
|
5
|
+
* Version: 3.9.0.
|
|
6
6
|
* Author: Rizalvin Dwiky.
|
|
7
7
|
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
8
|
* ====================================================
|
package/dist/strings/index.js
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* ====================================================
|
|
3
3
|
* Rzl Utils-JS.
|
|
4
4
|
* ----------------------------------------------------
|
|
5
|
-
* Version: 3.
|
|
5
|
+
* Version: 3.9.0.
|
|
6
6
|
* Author: Rizalvin Dwiky.
|
|
7
7
|
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
8
|
* ====================================================
|
|
9
9
|
*/
|
|
10
|
-
export { capitalizeFirst, capitalizeWords, getInitialsName, replaceAt, stripHtmlTags } from '../chunk-
|
|
11
|
-
export { normalizeString } from '../chunk-
|
|
12
|
-
export { normalizeSpaces } from '../chunk-
|
|
13
|
-
export { removeSpaces } from '../chunk-
|
|
14
|
-
import '../chunk-
|
|
15
|
-
export { slugify, toCamelCase, toDotCase, toKebabCase, toLowerCase, toPascalCase, toPascalCaseSpace, toSnakeCase } from '../chunk-
|
|
10
|
+
export { capitalizeFirst, capitalizeWords, getInitialsName, replaceAt, stripHtmlTags } from '../chunk-YHFRCVTN.js';
|
|
11
|
+
export { normalizeString } from '../chunk-UXT4XSUK.js';
|
|
12
|
+
export { normalizeSpaces } from '../chunk-JYOCB6OV.js';
|
|
13
|
+
export { removeSpaces } from '../chunk-5KDVIEVO.js';
|
|
14
|
+
import '../chunk-5O66AUEC.js';
|
|
15
|
+
export { slugify, toCamelCase, toDotCase, toKebabCase, toLowerCase, toPascalCase, toPascalCaseSpace, toSnakeCase } from '../chunk-J4TT33ZX.js';
|
package/dist/tailwind/index.cjs
CHANGED
|
@@ -2,47 +2,47 @@
|
|
|
2
2
|
* ====================================================
|
|
3
3
|
* Rzl Utils-JS.
|
|
4
4
|
* ----------------------------------------------------
|
|
5
|
-
* Version: 3.
|
|
5
|
+
* Version: 3.9.0.
|
|
6
6
|
* Author: Rizalvin Dwiky.
|
|
7
7
|
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
8
|
* ====================================================
|
|
9
9
|
*/
|
|
10
10
|
'use strict';
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
require('../chunk-
|
|
14
|
-
require('../chunk-
|
|
15
|
-
require('../chunk-
|
|
12
|
+
var chunk62FS7WMB_cjs = require('../chunk-62FS7WMB.cjs');
|
|
13
|
+
require('../chunk-FWWPEL7J.cjs');
|
|
14
|
+
require('../chunk-OYFUBKEG.cjs');
|
|
15
|
+
require('../chunk-7C7TQC5J.cjs');
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, "cnV3", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunk62FS7WMB_cjs.cnV3; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "cnV4", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunk62FS7WMB_cjs.cnV4; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "customCnV3", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunk62FS7WMB_cjs.customCnV3; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "customCnV4", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunk62FS7WMB_cjs.customCnV4; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "cx", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunk62FS7WMB_cjs.cx; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "shouldForwardProp", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunk62FS7WMB_cjs.shouldForwardProp; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "twMergeDefaultV3", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunk62FS7WMB_cjs.twMergeDefaultV3; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "twMergeDefaultV4", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunk62FS7WMB_cjs.twMergeDefaultV4; }
|
|
48
48
|
});
|
package/dist/tailwind/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* ====================================================
|
|
3
3
|
* Rzl Utils-JS.
|
|
4
4
|
* ----------------------------------------------------
|
|
5
|
-
* Version: 3.
|
|
5
|
+
* Version: 3.9.0.
|
|
6
6
|
* Author: Rizalvin Dwiky.
|
|
7
7
|
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
8
|
* ====================================================
|
|
@@ -20,7 +20,7 @@ import{Config}from'tailwindcss';import{ClassNameValue as ClassNameValue$1,Config
|
|
|
20
20
|
* - `null | undefined` → ignored
|
|
21
21
|
* - `ClassObject` → objects where **keys with truthy values** are included
|
|
22
22
|
* - `ClassValues` → arrays recursively flattened
|
|
23
|
-
* - Used internally by
|
|
23
|
+
* - Used internally by ***`cx` utility function*** to process mixed input values.
|
|
24
24
|
* @example
|
|
25
25
|
* ```ts
|
|
26
26
|
* const val1: ClassValue = "button"; // ➔ string
|
|
@@ -63,7 +63,15 @@ type ClassValues=ClassValue[];
|
|
|
63
63
|
* * ***Utility: `cx`.***
|
|
64
64
|
* ----------------------------------------------------------
|
|
65
65
|
* **Merge multiple class values into a single, space-separated string suitable for CSS usage.**
|
|
66
|
-
* @
|
|
66
|
+
* @description
|
|
67
|
+
* - Supports **nested combinations** of arrays and objects, recursively.
|
|
68
|
+
* - **Falsy values** are skipped:
|
|
69
|
+
* - `false`, `null`, `undefined`, empty strings `""` are ignored anywhere.
|
|
70
|
+
* - Numbers `0` are ignored inside nested arrays/objects.
|
|
71
|
+
* - **Boxed primitives** are correctly unwrapped to their primitive value.
|
|
72
|
+
* - **Inherited object keys** are included in the final class string.
|
|
73
|
+
* - Optimized for **CSS class merging** where conditional inclusion is common.
|
|
74
|
+
* @param {ClassValues} values
|
|
67
75
|
* A list of mixed class values, which can include:
|
|
68
76
|
* - **Strings** → literal class names.
|
|
69
77
|
* - **Numbers** → numeric class names.
|
|
@@ -74,14 +82,6 @@ type ClassValues=ClassValue[];
|
|
|
74
82
|
* - **Falsy values** (`false`, `null`, `undefined`, `""`, `0`) are ignored according to original behavior.
|
|
75
83
|
* @returns {string}
|
|
76
84
|
* A single space-separated string containing all valid class names.
|
|
77
|
-
* @description
|
|
78
|
-
* - Supports **nested combinations** of arrays and objects, recursively.
|
|
79
|
-
* - **Falsy values** are skipped:
|
|
80
|
-
* - `false`, `null`, `undefined`, empty strings `""` are ignored anywhere.
|
|
81
|
-
* - Numbers `0` are ignored inside nested arrays/objects.
|
|
82
|
-
* - **Boxed primitives** are correctly unwrapped to their primitive value.
|
|
83
|
-
* - **Inherited object keys** are included in the final class string.
|
|
84
|
-
* - Optimized for **CSS class merging** where conditional inclusion is common.
|
|
85
85
|
* @example
|
|
86
86
|
* ```ts
|
|
87
87
|
* // Basic string merge
|
|
@@ -112,7 +112,7 @@ type ClassValues=ClassValue[];
|
|
|
112
112
|
* // ➔ "own inherited"
|
|
113
113
|
* ```
|
|
114
114
|
*/
|
|
115
|
-
declare function cx(...
|
|
115
|
+
declare function cx(...values:ClassValues):string;
|
|
116
116
|
/** -------------------------------------------------------------
|
|
117
117
|
* * ***Default `cnV3` utility (Tailwind v3).***
|
|
118
118
|
* -------------------------------------------------------------
|
|
@@ -497,8 +497,8 @@ declare const customCnV4:(customTwMergeV4:TwMergeDefaultFnV4,...classes:ClassVal
|
|
|
497
497
|
* - `true` ➔ the prop **will** be forwarded to the DOM.
|
|
498
498
|
* - `false` ➔ the prop **will not** be forwarded.
|
|
499
499
|
*
|
|
500
|
-
* @throws {TypeError}
|
|
501
|
-
*
|
|
500
|
+
* @throws **{@link TypeError | `TypeError`}**
|
|
501
|
+
* when:
|
|
502
502
|
* - `props` is not an array, or
|
|
503
503
|
* - any item is not a non-empty string.
|
|
504
504
|
*
|
|
@@ -523,8 +523,8 @@ declare const shouldForwardProp:<CustomProps extends Record<string,unknown>>(pro
|
|
|
523
523
|
/** -------------------------------------------------------------
|
|
524
524
|
* * ***Customized Tailwind class merger Version 3 with extended rules.***
|
|
525
525
|
* -------------------------------------------------------------
|
|
526
|
-
* **Wraps
|
|
527
|
-
* (
|
|
526
|
+
* **Wraps ***`extendTailwindMerge` from tailwind-merge-v3*** with Tailwind’s default
|
|
527
|
+
* config (_*`getDefaultConfig()` from tailwind-merge-v3*_) to create a **project-ready `twMerge`**.**
|
|
528
528
|
* - 🔑 **When to use it?**
|
|
529
529
|
* - Your project uses **Tailwind v3**.
|
|
530
530
|
* - Extend **class groups** (e.g. add `text-shadow`).
|
|
@@ -610,8 +610,8 @@ declare const twMergeDefaultV3:(options?:OptionsMergeTwClsV3)=>TwMergeDefaultFnV
|
|
|
610
610
|
/** -------------------------------------------------------------
|
|
611
611
|
* * ***Customized Tailwind class merger Version 4 with extended rules.***
|
|
612
612
|
* -------------------------------------------------------------
|
|
613
|
-
* **Wraps
|
|
614
|
-
* (
|
|
613
|
+
* **Wraps ***`extendTailwindMerge` from tailwind-merge-v4*** with Tailwind’s default
|
|
614
|
+
* config (_*`getDefaultConfig()` from tailwind-merge-v4*_) to create a **project-ready `twMerge`**.**
|
|
615
615
|
* - 🔑 **When to use it?**
|
|
616
616
|
* - Your project uses **Tailwind v4**.
|
|
617
617
|
* - Extend **class groups** (e.g. add `text-shadow`).
|
package/dist/tailwind/index.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* ====================================================
|
|
3
3
|
* Rzl Utils-JS.
|
|
4
4
|
* ----------------------------------------------------
|
|
5
|
-
* Version: 3.
|
|
5
|
+
* Version: 3.9.0.
|
|
6
6
|
* Author: Rizalvin Dwiky.
|
|
7
7
|
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
8
|
* ====================================================
|
|
9
9
|
*/
|
|
10
|
-
export { cnV3, cnV4, customCnV3, customCnV4, cx, shouldForwardProp, twMergeDefaultV3, twMergeDefaultV4 } from '../chunk-
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
10
|
+
export { cnV3, cnV4, customCnV3, customCnV4, cx, shouldForwardProp, twMergeDefaultV3, twMergeDefaultV4 } from '../chunk-MBFVTGYS.js';
|
|
11
|
+
import '../chunk-5O66AUEC.js';
|
|
12
|
+
import '../chunk-TXOVQZPU.js';
|
|
13
|
+
import '../chunk-J4TT33ZX.js';
|
package/dist/urls/index.cjs
CHANGED
|
@@ -2,55 +2,57 @@
|
|
|
2
2
|
* ====================================================
|
|
3
3
|
* Rzl Utils-JS.
|
|
4
4
|
* ----------------------------------------------------
|
|
5
|
-
* Version: 3.
|
|
5
|
+
* Version: 3.9.0.
|
|
6
6
|
* Author: Rizalvin Dwiky.
|
|
7
7
|
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
8
|
* ====================================================
|
|
9
9
|
*/
|
|
10
10
|
'use strict';
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var chunkUFYMRRJH_cjs = require('../chunk-UFYMRRJH.cjs');
|
|
13
13
|
require('../chunk-KHO2SBNA.cjs');
|
|
14
|
-
require('../chunk-
|
|
15
|
-
require('../chunk-
|
|
16
|
-
require('../chunk-
|
|
17
|
-
require('../chunk-
|
|
14
|
+
require('../chunk-76ATVDCR.cjs');
|
|
15
|
+
require('../chunk-I33PB44Q.cjs');
|
|
16
|
+
require('../chunk-MMRHKYT6.cjs');
|
|
17
|
+
require('../chunk-PWKOFPAH.cjs');
|
|
18
18
|
require('../chunk-DVMHRLKP.cjs');
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
require('../chunk-
|
|
22
|
-
require('../chunk-
|
|
23
|
-
require('../chunk-
|
|
24
|
-
require('../chunk-
|
|
25
|
-
require('../chunk-
|
|
19
|
+
var chunkOCTHWEZK_cjs = require('../chunk-OCTHWEZK.cjs');
|
|
20
|
+
require('../chunk-6AMDHVS2.cjs');
|
|
21
|
+
var chunkZTHJQJ5F_cjs = require('../chunk-ZTHJQJ5F.cjs');
|
|
22
|
+
require('../chunk-IX6PF5ZP.cjs');
|
|
23
|
+
require('../chunk-FWWPEL7J.cjs');
|
|
24
|
+
require('../chunk-WKM6UVMG.cjs');
|
|
25
|
+
require('../chunk-NAOVH4OH.cjs');
|
|
26
|
+
require('../chunk-OYFUBKEG.cjs');
|
|
27
|
+
require('../chunk-H44QVAZL.cjs');
|
|
26
28
|
require('../chunk-UDA26MCU.cjs');
|
|
27
|
-
require('../chunk-
|
|
29
|
+
require('../chunk-7C7TQC5J.cjs');
|
|
28
30
|
|
|
29
31
|
Object.defineProperty(exports, "constructURL", {
|
|
30
32
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkUFYMRRJH_cjs.constructURL; }
|
|
32
34
|
});
|
|
33
35
|
Object.defineProperty(exports, "extractURLs", {
|
|
34
36
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkUFYMRRJH_cjs.extractURLs; }
|
|
36
38
|
});
|
|
37
39
|
Object.defineProperty(exports, "getFirstPrefixPathname", {
|
|
38
40
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkUFYMRRJH_cjs.getFirstPrefixPathname; }
|
|
40
42
|
});
|
|
41
43
|
Object.defineProperty(exports, "getPrefixPathname", {
|
|
42
44
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkUFYMRRJH_cjs.getPrefixPathname; }
|
|
44
46
|
});
|
|
45
47
|
Object.defineProperty(exports, "formatEnvPort", {
|
|
46
48
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkOCTHWEZK_cjs.formatEnvPort; }
|
|
48
50
|
});
|
|
49
51
|
Object.defineProperty(exports, "normalizePathname", {
|
|
50
52
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkOCTHWEZK_cjs.normalizePathname; }
|
|
52
54
|
});
|
|
53
55
|
Object.defineProperty(exports, "punycodeUtilsJS", {
|
|
54
56
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkZTHJQJ5F_cjs.punycodeUtilsJS; }
|
|
56
58
|
});
|