@rzl-zone/utils-js 3.2.6-beta.0 → 3.3.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 +14 -16
- package/dist/NumberRangeUnion-B6bhM2s7.d.ts +33 -0
- package/dist/{any-BmdI8UbK.d.ts → any-v4TsK9ES.d.ts} +25 -26
- package/dist/{arrays-normalize-recursive-CnjYJ9xg.d.ts → arrays-normalize-recursive-BqmVuFlD.d.ts} +20 -20
- package/dist/assertions/index.cjs +1 -1
- package/dist/assertions/index.d.ts +96 -70
- package/dist/assertions/index.js +1 -1
- package/dist/chunk-2CQX5CBG.js +1 -0
- package/dist/chunk-2IOOEY45.cjs +1 -0
- package/dist/chunk-3IBQ5MOM.js +1 -0
- package/dist/{chunk-OGPPP2S3.js → chunk-3VA554KW.js} +1 -1
- package/dist/{chunk-FV7SEBKD.cjs → chunk-5757UBXJ.cjs} +1 -1
- package/dist/{chunk-MTUBDVJ2.js → chunk-5IGC6PBH.js} +1 -1
- package/dist/{chunk-O7UT5AN3.cjs → chunk-5KJFVIQT.cjs} +1 -1
- package/dist/chunk-6JFCSH7J.js +1 -0
- package/dist/{chunk-VHAPTHEA.cjs → chunk-6JFZL7YE.cjs} +1 -1
- package/dist/chunk-7ODAAXX5.cjs +1 -0
- package/dist/{chunk-6C3ATUGM.cjs → chunk-CAH33WOQ.cjs} +1 -1
- package/dist/{chunk-ECRNH4FW.js → chunk-CKTLUNWX.js} +1 -1
- package/dist/chunk-CMW2TBOQ.js +1 -0
- package/dist/chunk-D3ENH7H6.cjs +1 -0
- package/dist/{chunk-3YCFMGRB.js → chunk-DEZZUYE2.js} +1 -1
- package/dist/chunk-DWF2R5GD.cjs +1 -0
- package/dist/chunk-E55EQK2U.cjs +1 -0
- package/dist/chunk-E74U6CYP.cjs +1 -0
- package/dist/{chunk-XC3QHAK2.cjs → chunk-EL6A35UR.cjs} +1 -1
- package/dist/chunk-F6IPNNSJ.cjs +1 -0
- package/dist/chunk-FJZGG54N.cjs +1 -0
- package/dist/chunk-FWCKOJZM.js +1 -0
- package/dist/{chunk-IMCLPT5V.cjs → chunk-FWHNWL2P.cjs} +1 -1
- package/dist/chunk-GGEADHZO.js +1 -0
- package/dist/{chunk-IRGE5W7L.js → chunk-GQR4R5WY.js} +1 -1
- package/dist/chunk-H66AC7GK.cjs +1 -0
- package/dist/{chunk-M47QIBXI.cjs → chunk-HQWOFR56.cjs} +1 -1
- package/dist/{chunk-VCFXNV3Q.cjs → chunk-HYRQMTRH.cjs} +1 -1
- package/dist/{chunk-EUANTHVN.js → chunk-IRFL4MAX.js} +1 -1
- package/dist/{chunk-GGWPB23G.cjs → chunk-IVL7CKVH.cjs} +1 -1
- package/dist/chunk-IZPBKKPO.js +1 -0
- package/dist/chunk-JBQMXC5I.cjs +1 -0
- package/dist/chunk-JEQEF5WD.js +1 -0
- package/dist/chunk-JMJQCN74.js +1 -0
- package/dist/chunk-JYQTCICM.js +1 -0
- package/dist/chunk-KVAL5PAG.cjs +1 -0
- package/dist/chunk-LS6U7FAY.cjs +1 -0
- package/dist/chunk-NBZWMBO6.js +1 -0
- package/dist/chunk-NRF6LWBC.cjs +1 -0
- package/dist/chunk-OI5XKNZO.js +1 -0
- package/dist/chunk-OYTYSY7G.js +1 -0
- package/dist/chunk-PET42Z7W.js +1 -0
- package/dist/chunk-PZQ6I4JJ.cjs +1 -0
- package/dist/chunk-QBKAEVYG.js +1 -0
- package/dist/{chunk-YV3K2EKJ.js → chunk-RIPKY4RU.js} +1 -1
- package/dist/chunk-RZW35UN5.cjs +1 -0
- package/dist/chunk-SBFNXGTJ.js +1 -0
- package/dist/{chunk-T4CIAKEK.js → chunk-SBKGWRS5.js} +1 -1
- package/dist/{chunk-5Z2G23WP.js → chunk-SIM77PU4.js} +1 -1
- package/dist/chunk-T2T7K3KR.js +1 -0
- package/dist/chunk-T7PU2V7X.cjs +1 -0
- package/dist/chunk-V45XJKHW.cjs +1 -0
- package/dist/chunk-W2WNBUDE.js +1 -0
- package/dist/chunk-XABCB3Y7.cjs +1 -0
- package/dist/chunk-XEDXFSGI.js +1 -0
- package/dist/chunk-YKPSRP5G.js +1 -0
- package/dist/chunk-YLA3DURS.cjs +1 -0
- package/dist/chunk-ZETAZZLD.cjs +1 -0
- package/dist/conversions/index.cjs +1 -1
- package/dist/conversions/index.d.ts +515 -321
- package/dist/conversions/index.js +1 -1
- package/dist/events/index.cjs +1 -1
- package/dist/events/index.d.ts +25 -20
- package/dist/events/index.js +1 -1
- package/dist/{extends-Bk_SBGdT.d.ts → extends-DtdRjDyU.d.ts} +63 -87
- package/dist/{formatting → formatters}/index.cjs +1 -1
- package/dist/formatters/index.d.ts +2106 -0
- package/dist/formatters/index.js +1 -0
- package/dist/generators/index.cjs +1 -0
- package/dist/{generator → generators}/index.d.ts +57 -59
- package/dist/generators/index.js +1 -0
- package/dist/{if-CvT4R7Kh.d.ts → if-ChM35c_q.d.ts} +6 -5
- package/dist/index.d.ts +14 -0
- package/dist/{is-array--YjXV-Wx.d.ts → is-array-BJeHxPM3.d.ts} +287 -542
- package/dist/{isPlainObject-BVhBAPHX.d.ts → isPlainObject-DGJkcFYw.d.ts} +6 -6
- package/dist/{never-BfayMBF9.d.ts → never-D89PbPh5.d.ts} +10 -19
- package/dist/next/index.cjs +1 -1
- package/dist/next/index.d.ts +15 -12
- package/dist/next/index.js +1 -1
- package/dist/next/server/index.cjs +1 -1
- package/dist/next/server/index.d.ts +1 -1
- package/dist/next/server/index.js +1 -1
- package/dist/{nils-DMz3kU7M.d.ts → nils-CO8zLHSB.d.ts} +39 -65
- package/dist/operations/index.cjs +1 -1
- package/dist/operations/index.d.ts +4 -4
- package/dist/operations/index.js +1 -1
- package/dist/or-C6qzKt2I.d.ts +82 -0
- package/dist/override-CL2olHE5.d.ts +59 -0
- package/dist/parsers/index.cjs +1 -1
- package/dist/parsers/index.js +1 -1
- package/dist/pick-BSMX6Xe2.d.ts +15 -0
- package/dist/predicates/index.cjs +1 -1
- package/dist/predicates/index.d.ts +425 -106
- package/dist/predicates/index.js +1 -1
- package/dist/prettify-3o8_Kw6b.d.ts +564 -0
- package/dist/promises/index.cjs +1 -0
- package/dist/promises/index.d.ts +107 -0
- package/dist/promises/index.js +1 -0
- package/dist/promises-LU7K00H0.d.ts +72 -0
- package/dist/rzl-utils.global.js +1 -1
- package/dist/{string-XA-til3C.d.ts → string-B1jlOnws.d.ts} +82 -121
- package/dist/strings/index.cjs +1 -1
- package/dist/strings/index.d.ts +209 -210
- package/dist/strings/index.js +1 -1
- package/dist/tailwind/index.cjs +1 -1
- package/dist/tailwind/index.d.ts +23 -17
- package/dist/tailwind/index.js +1 -1
- package/dist/types/index.d.ts +899 -1181
- package/dist/urls/index.cjs +1 -1
- package/dist/urls/index.d.ts +113 -108
- package/dist/urls/index.js +1 -1
- package/package.json +33 -40
- package/dist/NumberRangeUnion-DC-C3_Kq.d.ts +0 -26
- package/dist/chunk-2HSNUPEO.cjs +0 -1
- package/dist/chunk-4Z75R3IT.cjs +0 -1
- package/dist/chunk-AJ25PWXX.cjs +0 -1
- package/dist/chunk-BHIBDDQF.js +0 -1
- package/dist/chunk-CE4JI2YB.js +0 -1
- package/dist/chunk-CMJ6UYWW.cjs +0 -1
- package/dist/chunk-D3VSHABU.cjs +0 -1
- package/dist/chunk-DG2GWBTS.cjs +0 -1
- package/dist/chunk-EKS4IZJR.cjs +0 -1
- package/dist/chunk-EOZKYR5S.cjs +0 -1
- package/dist/chunk-EW3I4O7X.js +0 -1
- package/dist/chunk-F3E77L46.js +0 -1
- package/dist/chunk-G5LXIEFO.js +0 -0
- package/dist/chunk-GVWGQNLF.js +0 -1
- package/dist/chunk-H3FXL4DU.cjs +0 -1
- package/dist/chunk-HHPDLSX2.cjs +0 -1
- package/dist/chunk-JARPXKBM.cjs +0 -1
- package/dist/chunk-JFJUPYDT.cjs +0 -1
- package/dist/chunk-JLP56WSM.js +0 -1
- package/dist/chunk-K3MV4AIN.cjs +0 -1
- package/dist/chunk-KOVO72OM.js +0 -1
- package/dist/chunk-LJ4M3VGE.js +0 -1
- package/dist/chunk-LJVGJLP4.js +0 -1
- package/dist/chunk-MISCBZJC.js +0 -1
- package/dist/chunk-MMSYCIJ2.cjs +0 -1
- package/dist/chunk-OLPKAX7F.cjs +0 -1
- package/dist/chunk-ORZFHBEY.js +0 -1
- package/dist/chunk-OWV2P376.js +0 -1
- package/dist/chunk-RV2WK5E6.js +0 -1
- package/dist/chunk-SBF43G3B.cjs +0 -1
- package/dist/chunk-X74TUJSE.cjs +0 -1
- package/dist/chunk-XLDAIZRK.js +0 -1
- package/dist/chunk-XZJ7C4N6.js +0 -1
- package/dist/chunk-ZHV5ZYVN.cjs +0 -1
- package/dist/chunk-ZL7J6GTP.js +0 -1
- package/dist/chunk-ZTCLKKMB.js +0 -1
- package/dist/env/index.cjs +0 -1
- package/dist/env/index.d.ts +0 -16
- package/dist/env/index.js +0 -1
- package/dist/formatting/index.d.ts +0 -950
- package/dist/formatting/index.js +0 -1
- package/dist/generator/index.cjs +0 -1
- package/dist/generator/index.js +0 -1
- package/dist/omit-VvmIsZmX.d.ts +0 -28
- package/dist/prettify-C4xLcYOP.d.ts +0 -353
- package/dist/promise/index.cjs +0 -1
- package/dist/promise/index.d.ts +0 -31
- package/dist/promise/index.js +0 -1
- package/dist/type-data-DDs-u2kq.d.ts +0 -261
- /package/dist/{chunk-5C2SMIGX.cjs → chunk-BAV5T2E3.cjs} +0 -0
- /package/dist/{chunk-MC3LXMCQ.js → chunk-L5RDAVVH.js} +0 -0
- /package/dist/{chunk-J2RGTPGK.cjs → chunk-VJDDGRIK.cjs} +0 -0
- /package/dist/{chunk-FIAAX3UE.js → chunk-YWHHVDT4.js} +0 -0
package/dist/tailwind/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import{ClassValue}from'clsx';import{Config}from'tailwindcss';import{ClassNameVal
|
|
|
12
12
|
* - Create a project-wide helper using
|
|
13
13
|
* {@link twMergeDefaultV3 | `twMergeDefaultV3`} +
|
|
14
14
|
* {@link customCnV3 | `customCnV3`} (see Example 2).
|
|
15
|
-
* @param {ClassesValue} classes - Class values (string
|
|
15
|
+
* @param {ClassesValue} classes - Class values (`string`, `array`, `object`, `etc`).
|
|
16
16
|
* @returns {string} Merged Tailwind class string.
|
|
17
17
|
* @example
|
|
18
18
|
* #### Example 1: ✅ Default usage (Tailwind v3).
|
|
@@ -68,7 +68,7 @@ declare const cnV3:(...classes:ClassesValue)=>string;
|
|
|
68
68
|
* - Create a project-wide helper using
|
|
69
69
|
* {@link twMergeDefaultV4 | `twMergeDefaultV4`} +
|
|
70
70
|
* {@link customCnV4 | `customCnV4`} (see Example 2).
|
|
71
|
-
* @param {ClassesValue} classes - Class values (string
|
|
71
|
+
* @param {ClassesValue} classes - Class values (`string`, `array`, `object`, `etc`).
|
|
72
72
|
* @returns {string} Merged Tailwind class string.
|
|
73
73
|
* @example
|
|
74
74
|
* #### Example 1: ✅ Default usage (Tailwind v4).
|
|
@@ -115,8 +115,9 @@ declare const cnV4:(...classes:ClassesValue)=>string;
|
|
|
115
115
|
type TwMergeConfigExt$1=ConfigExtension<string,string>;
|
|
116
116
|
/** * ***Extra options for customized Tailwind class merge.*** */
|
|
117
117
|
type OptionsConfigMergeTwCn$1={
|
|
118
|
-
/**
|
|
119
|
-
*
|
|
118
|
+
/** ----------------------------------------------------------
|
|
119
|
+
* * ***Optional Tailwind CSS configuration object.***
|
|
120
|
+
* ----------------------------------------------------------
|
|
120
121
|
* - **Pass your project’s `tailwind.config.ts` if you want to:**
|
|
121
122
|
* - Respect custom theme values (`colors`, `fontSize`, `spacing`, `etc`.)
|
|
122
123
|
* - Enable/disable `corePlugins`
|
|
@@ -137,8 +138,9 @@ type OptionsConfigMergeTwCn$1={
|
|
|
137
138
|
* ```
|
|
138
139
|
*/
|
|
139
140
|
config?:TailwindConfig;
|
|
140
|
-
/**
|
|
141
|
-
*
|
|
141
|
+
/** ----------------------------------------------------------
|
|
142
|
+
* * ***Prefix added to Tailwind-generated classes.***
|
|
143
|
+
* ----------------------------------------------------------
|
|
142
144
|
* - **Tailwind v3**:
|
|
143
145
|
* - Use {@link twMergeDefaultV3 | **`twMergeDefaultV3`**} instead.
|
|
144
146
|
* - Reference:
|
|
@@ -212,8 +214,9 @@ type TwMergeDefaultFnV4=(...classLists:ClassNameValue[])=>string;type TailwindCo
|
|
|
212
214
|
type TwMergeConfigExt=ConfigExtension$1<string,string>;
|
|
213
215
|
/** * ***Extra options for customized Tailwind class merge.*** */
|
|
214
216
|
type OptionsConfigMergeTwCn={
|
|
215
|
-
/**
|
|
216
|
-
*
|
|
217
|
+
/** ----------------------------------------------------------
|
|
218
|
+
* * ***Optional Tailwind CSS configuration object.***
|
|
219
|
+
* ----------------------------------------------------------
|
|
217
220
|
* - **Pass your project’s `tailwind.config.ts` if you want to:**
|
|
218
221
|
* - Respect custom theme values (`colors`, `fontSize`, `spacing`, `etc`.)
|
|
219
222
|
* - Enable/disable `corePlugins`
|
|
@@ -234,11 +237,12 @@ type OptionsConfigMergeTwCn={
|
|
|
234
237
|
* ```
|
|
235
238
|
*/
|
|
236
239
|
config?:TailwindConfig;
|
|
237
|
-
/**
|
|
238
|
-
*
|
|
240
|
+
/** ----------------------------------------------------------
|
|
241
|
+
* * ***Prefix added to Tailwind-generated classes.***
|
|
242
|
+
* ----------------------------------------------------------
|
|
239
243
|
* - **Tailwind v3**:
|
|
240
244
|
* - Configure in `tailwind.config.js`, e.g. `prefix: 'tw-'`.
|
|
241
|
-
* - Variants first; negative utilities: `-mt-8`
|
|
245
|
+
* - Variants first; negative utilities: `-mt-8` ➔ `-tw-mt-8`.
|
|
242
246
|
* - Reference:
|
|
243
247
|
* [**`Tailwind v3 using prefix docs`**](https://v3.tailwindcss.com/docs/configuration#prefix).
|
|
244
248
|
* - **Tailwind v4**:
|
|
@@ -348,13 +352,15 @@ declare const customCnV3:(customTwMergeV3:TwMergeDefaultFnV3,...classes:ClassesV
|
|
|
348
352
|
* ```
|
|
349
353
|
*/
|
|
350
354
|
declare const customCnV4:(customTwMergeV4:TwMergeDefaultFnV4,...classes:ClassesValue)=>string;
|
|
351
|
-
/**
|
|
352
|
-
*
|
|
355
|
+
/** ----------------------------------------------------------
|
|
356
|
+
* * ***Converts a union type into an intersection type.***
|
|
357
|
+
* ----------------------------------------------------------
|
|
353
358
|
* @template U - The union type to be converted.
|
|
354
359
|
*/
|
|
355
360
|
type UnionToIntersectionStrict<U>=(U extends never?never:(arg:U)=>never)extends(arg:infer I)=>void?I:never;
|
|
356
|
-
/**
|
|
357
|
-
*
|
|
361
|
+
/** ----------------------------------------------------------
|
|
362
|
+
* * ***Converts a union type into a tuple type.***
|
|
363
|
+
* ----------------------------------------------------------
|
|
358
364
|
* @template T - The union type to be converted.
|
|
359
365
|
*/
|
|
360
366
|
type UnionToTupleStrict<T>=UnionToIntersectionStrict<T extends never?never:(t:T)=>T>extends(_:never)=>infer W?[...UnionToTupleStrict<Exclude<T,W>>,W]:[];
|
|
@@ -401,7 +407,7 @@ declare const shouldForwardProp:<CustomProps>(props:Partial<UnionToTupleStrict<k
|
|
|
401
407
|
* - Override or fine-tune **merge behavior**.
|
|
402
408
|
* - Create a **project-wide `cn` helper** that replaces raw `twMerge`.
|
|
403
409
|
* @param {OptionsMergeTwClsV3} [options={}]
|
|
404
|
-
*
|
|
410
|
+
* ***Merge options:***
|
|
405
411
|
* - `config` – Your Tailwind config (from `tailwind.config.ts`).
|
|
406
412
|
* - `prefix` - Utility prefix (e.g. `tw-` or `tw`).
|
|
407
413
|
* - `extend` – Extra merge rules (classGroups, theme, etc).
|
|
@@ -488,7 +494,7 @@ declare const twMergeDefaultV3:(options?:OptionsMergeTwClsV3)=>TwMergeDefaultFnV
|
|
|
488
494
|
* - Override or fine-tune **merge behavior**.
|
|
489
495
|
* - Create a **project-wide `cn` helper** that replaces raw `twMerge`.
|
|
490
496
|
* @param {OptionsMergeTwClsV4} [options={}]
|
|
491
|
-
* Merge options
|
|
497
|
+
* ***Merge options:***
|
|
492
498
|
* - `config` – Your Tailwind config (from `tailwind.config.ts`).
|
|
493
499
|
* - `prefix` - Utility prefix (e.g. `tw-` or `tw`).
|
|
494
500
|
* - `extend` – Extra merge rules (classGroups, theme, etc).
|
package/dist/tailwind/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{cnV3,cnV4,customCnV3,customCnV4,shouldForwardProp,twMergeDefaultV3,twMergeDefaultV4}from"../chunk-
|
|
1
|
+
export{cnV3,cnV4,customCnV3,customCnV4,shouldForwardProp,twMergeDefaultV3,twMergeDefaultV4}from"../chunk-JYQTCICM.js";import"../chunk-CKTLUNWX.js";import"../chunk-CMW2TBOQ.js";
|