toolbox-x 1.1.2 → 1.2.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.
- package/README.md +1 -1
- package/dist/{Color-C_KH9aj6.d.mts → Color-DCfoQk_-.d.mts} +2 -7
- package/dist/{Color-G-pOkVp7.d.cts → Color-Dsut0Bex.d.cts} +2 -7
- package/dist/{Stylog-D4g1SdeP.d.cts → Stylog-DXZtHAbp.d.mts} +1 -1
- package/dist/{Stylog-D7Y2WHkI.d.mts → Stylog-TyLCTRtT.d.cts} +1 -1
- package/dist/{area-Cav_1uPb.d.cts → area-CcRQ6TfR.d.cts} +6 -4
- package/dist/{area-DTOvByQG.d.mts → area-CvSC96va.d.mts} +6 -4
- package/dist/{array-CUFCqgSq.d.cts → array-B6jWzJ4F.d.mts} +1 -1
- package/dist/{array-DcOUzJQy.d.mts → array-CqDu610k.d.cts} +1 -1
- package/dist/{basics-DI2qHvp4.d.mts → basics-KobRNhV-.d.cts} +1 -1
- package/dist/{basics-yBwg_DfG.d.cts → basics-V5M2oltn.d.mts} +1 -1
- package/dist/{case-B3Sjlcjo.d.cts → case--Vjea9DS.d.cts} +1 -1
- package/dist/{case-Cpq94CEY.d.mts → case-KdrBKjjK.d.mts} +1 -1
- package/dist/change-case.d.cts +1 -1
- package/dist/change-case.d.mts +1 -1
- package/dist/colors.cjs +0 -12
- package/dist/colors.d.cts +3 -12
- package/dist/colors.d.mts +3 -12
- package/dist/colors.mjs +1 -12
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.mts +1 -1
- package/dist/converter.d.cts +2 -2
- package/dist/converter.d.mts +2 -2
- package/dist/date.cjs +2 -2
- package/dist/date.d.cts +1 -1
- package/dist/date.d.mts +1 -1
- package/dist/date.mjs +2 -2
- package/dist/dom.cjs +3 -3
- package/dist/dom.d.cts +3 -3
- package/dist/dom.d.mts +3 -3
- package/dist/dom.mjs +3 -3
- package/dist/{form-CY3RefN-.d.cts → form-DoQGMTOc.d.mts} +2 -2
- package/dist/{form-zhtuXugI.d.mts → form-mP-nl8EC.d.cts} +2 -2
- package/dist/{guards-Cp6KAkVI.mjs → guards-C0smSAKC.mjs} +1 -1
- package/dist/{guards-DP5k4_Mm.cjs → guards-ClGDJrQp.cjs} +1 -1
- package/dist/guards.cjs +1 -2
- package/dist/guards.d.cts +4 -4
- package/dist/guards.d.mts +4 -4
- package/dist/guards.mjs +2 -2
- package/dist/{hash-BK2nQJct.d.cts → hash-BcoFHSu1.d.cts} +13 -8
- package/dist/{hash-CqmKYZqL.d.mts → hash-GYRx2ee_.d.mts} +13 -8
- package/dist/hash.cjs +4 -4
- package/dist/hash.d.cts +4 -4
- package/dist/hash.d.mts +4 -4
- package/dist/hash.mjs +4 -4
- package/dist/{http-status-D8AT3mEI.d.cts → http-status-C0DOpCDf.d.cts} +1 -1
- package/dist/{http-status-Dsj58sVl.d.mts → http-status-xrlR-LlB.d.mts} +1 -1
- package/dist/http-status.d.cts +2 -2
- package/dist/http-status.d.mts +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +5 -5
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +2 -2
- package/dist/{object-D70hzkoY.d.cts → object-ChFVh95z.d.cts} +9 -5
- package/dist/{object-D70hzkoY.d.mts → object-ChFVh95z.d.mts} +9 -5
- package/dist/{objectify-CfXtS_E0.mjs → objectify-DEnFpPt1.mjs} +2 -2
- package/dist/{objectify-CZJr9hwg.cjs → objectify-DewBSJP_.cjs} +2 -2
- package/dist/paginator.d.cts +1 -1
- package/dist/paginator.d.mts +1 -1
- package/dist/{parse-rcJRAOJl.mjs → parse-BhZ6-tKg.mjs} +4 -4
- package/dist/{parse-BpUlILVi.cjs → parse-DovagZFA.cjs} +3 -3
- package/dist/{pluralizer-B2oIrpwo.d.cts → pluralizer-CdG-VJ6t.d.cts} +1 -1
- package/dist/{pluralizer-BVMdlDZq.d.mts → pluralizer-D2Lh8CdU.d.mts} +1 -1
- package/dist/pluralizer.d.cts +1 -1
- package/dist/pluralizer.d.mts +1 -1
- package/dist/{string-DXiOVFK6.d.mts → string-CkwTVFeL.d.mts} +10 -6
- package/dist/{string-Drwam5NL.d.cts → string-Dq2b8rcN.d.cts} +10 -6
- package/dist/stylog.d.cts +2 -2
- package/dist/stylog.d.mts +2 -2
- package/dist/types/array.d.cts +1 -1
- package/dist/types/array.d.mts +1 -1
- package/dist/types/colors.d.cts +2 -2
- package/dist/types/colors.d.mts +2 -2
- package/dist/types/converter.d.cts +1 -1
- package/dist/types/converter.d.mts +1 -1
- package/dist/types/date.d.cts +1 -1
- package/dist/types/date.d.mts +1 -1
- package/dist/types/form.d.cts +1 -1
- package/dist/types/form.d.mts +1 -1
- package/dist/types/hash.d.cts +1 -1
- package/dist/types/hash.d.mts +1 -1
- package/dist/types/http-status.d.cts +1 -1
- package/dist/types/http-status.d.mts +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/number.d.cts +1 -1
- package/dist/types/number.d.mts +1 -1
- package/dist/types/object.d.cts +1 -1
- package/dist/types/object.d.mts +1 -1
- package/dist/types/pluralizer.d.cts +1 -1
- package/dist/types/pluralizer.d.mts +1 -1
- package/dist/types/string.d.cts +1 -1
- package/dist/types/string.d.mts +1 -1
- package/dist/types/stylog.d.cts +1 -1
- package/dist/types/stylog.d.mts +1 -1
- package/dist/types/utils.d.cts +1 -1
- package/dist/types/utils.d.mts +1 -1
- package/dist/{utils-CFyEFj2Y.cjs → utils-BxguWSoa.cjs} +1 -1
- package/dist/{utils-CN3ocK98.mjs → utils-DXovsTKs.mjs} +1 -1
- package/dist/{uuid-B5JYv6ao.d.cts → uuid-DgTBxcVu.d.cts} +1 -1
- package/dist/{uuid-DU64TmIe.d.mts → uuid-Yc3Uu8qr.d.mts} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -353,7 +353,7 @@ throttleAction(updateScrollPosition, 100);
|
|
|
353
353
|
debounceAction(fetchResults, 300);
|
|
354
354
|
```
|
|
355
355
|
|
|
356
|
-
[
|
|
356
|
+
[Documentation →](https://toolbox-x.nazmul-nhb.dev/docs/utilities/misc/debounceAction)
|
|
357
357
|
|
|
358
358
|
> These utilities represent just a portion of the comprehensive `toolbox-x`. Each is designed with production-grade reliability and developer experience in mind. Explore more in the [full documentation](https://toolbox-x.nazmul-nhb.dev). All the utilities and classes are categorized.
|
|
359
359
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { $ as Maybe, Jn as Percent, V as Branded } from "./object-
|
|
17
|
+
import { $ as Maybe, Jn as Percent, V as Branded } from "./object-ChFVh95z.mjs";
|
|
18
18
|
import { t as CSS_COLORS } from "./css-colors-Dqz6Bfnp.mjs";
|
|
19
19
|
|
|
20
20
|
//#region src/types/colors.d.ts
|
|
@@ -65,11 +65,6 @@ type RGBA = `rgba(${number}, ${number}, ${number}, ${number})` | `rgba(${number}
|
|
|
65
65
|
* * Format: `hsla(H, S%, L%, A)`
|
|
66
66
|
*/
|
|
67
67
|
type HSLA = `hsla(${number}, ${number}%, ${number}%, ${number})` | `hsla(${number},${number}%,${number}%,${number})`;
|
|
68
|
-
/** Represents an object with `hex` (`hex6`) and `rgb` color */
|
|
69
|
-
type RandomHexRGB = {
|
|
70
|
-
/** Represents a hexadecimal color code. */hex: Hex6; /** Represents an RGB color string. */
|
|
71
|
-
rgb: RGB;
|
|
72
|
-
};
|
|
73
68
|
/** Basic color type: `hex`, `rgb` or `hsl`. */
|
|
74
69
|
type $ColorType = 'hex' | 'rgb' | 'hsl';
|
|
75
70
|
/** Options for random color generation. */
|
|
@@ -483,4 +478,4 @@ declare class Color {
|
|
|
483
478
|
static isCSSColor(color: string): color is CSSColor;
|
|
484
479
|
}
|
|
485
480
|
//#endregion
|
|
486
|
-
export { RandomColorOptions as C,
|
|
481
|
+
export { RandomColorOptions as C, Triad as D, Tetrad as E, RandomColor as S, SolidValues as T, Hex as _, AlphaValues as a, RGB as b, ColorInput as c, ColorTypeAlpha as d, ColorTypeSolid as f, HSLA as g, HSL as h, AlphaValue as i, ColorInputArray as l, ConvertedColors as m, $ColorType as n, Analogous as o, Colors as p, AlphaColors as r, CSSColor as s, Color as t, ColorType as u, Hex6 as v, SolidColors as w, RGBA as x, Hex8 as y };
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { $ as Maybe, Jn as Percent, V as Branded } from "./object-
|
|
17
|
+
import { $ as Maybe, Jn as Percent, V as Branded } from "./object-ChFVh95z.cjs";
|
|
18
18
|
import { t as CSS_COLORS } from "./css-colors-Dqz6Bfnp.cjs";
|
|
19
19
|
|
|
20
20
|
//#region src/types/colors.d.ts
|
|
@@ -65,11 +65,6 @@ type RGBA = `rgba(${number}, ${number}, ${number}, ${number})` | `rgba(${number}
|
|
|
65
65
|
* * Format: `hsla(H, S%, L%, A)`
|
|
66
66
|
*/
|
|
67
67
|
type HSLA = `hsla(${number}, ${number}%, ${number}%, ${number})` | `hsla(${number},${number}%,${number}%,${number})`;
|
|
68
|
-
/** Represents an object with `hex` (`hex6`) and `rgb` color */
|
|
69
|
-
type RandomHexRGB = {
|
|
70
|
-
/** Represents a hexadecimal color code. */hex: Hex6; /** Represents an RGB color string. */
|
|
71
|
-
rgb: RGB;
|
|
72
|
-
};
|
|
73
68
|
/** Basic color type: `hex`, `rgb` or `hsl`. */
|
|
74
69
|
type $ColorType = 'hex' | 'rgb' | 'hsl';
|
|
75
70
|
/** Options for random color generation. */
|
|
@@ -483,4 +478,4 @@ declare class Color {
|
|
|
483
478
|
static isCSSColor(color: string): color is CSSColor;
|
|
484
479
|
}
|
|
485
480
|
//#endregion
|
|
486
|
-
export { RandomColorOptions as C,
|
|
481
|
+
export { RandomColorOptions as C, Triad as D, Tetrad as E, RandomColor as S, SolidValues as T, Hex as _, AlphaValues as a, RGB as b, ColorInput as c, ColorTypeAlpha as d, ColorTypeSolid as f, HSLA as g, HSL as h, AlphaValue as i, ColorInputArray as l, ConvertedColors as m, $ColorType as n, Analogous as o, Colors as p, AlphaColors as r, CSSColor as s, Color as t, ColorType as u, Hex6 as v, SolidColors as w, RGBA as x, Hex8 as y };
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { Ar as LooseLiteral, Nr as Mutable, i as $Record, it as Numeric } from "./object-
|
|
17
|
+
import { Ar as LooseLiteral, Nr as Mutable, i as $Record, it as Numeric } from "./object-ChFVh95z.cjs";
|
|
18
18
|
import { t as UNITS } from "./constants-D8RzBjsL.cjs";
|
|
19
19
|
|
|
20
20
|
//#region src/converter/data.d.ts
|
|
@@ -229,10 +229,12 @@ type CategoryUnits<Cat extends Category> = UnitMap[Cat];
|
|
|
229
229
|
/** * Type for the returned converter instance based on the provided unit `U`. */
|
|
230
230
|
type Converted<U extends $Unit> = InferCategory<U> extends never ? $BaseConverter<U> : InferCategory<U> extends 'area' ? $Area : InferCategory<U> extends 'time' ? $Time : InferCategory<U> extends 'length' ? $Length : InferCategory<U> extends 'mass' ? $Mass : InferCategory<U> extends 'data' ? $Data : InferCategory<U> extends 'temp' ? $Temperature : InferCategory<U> extends 'volume' ? $Volume : $BaseConverter<U>;
|
|
231
231
|
/** * Options for formatting converted values for unit converter method(s). */
|
|
232
|
-
|
|
233
|
-
/** Style of formatting. Default is `'plural'`. */
|
|
232
|
+
interface FormatToOptions {
|
|
233
|
+
/** Style of formatting. Default is `'plural'`. */
|
|
234
|
+
style?: 'compact' | 'scientific' | 'plural';
|
|
235
|
+
/** Number of decimal places to include. Default is `2`. */
|
|
234
236
|
decimals?: number;
|
|
235
|
-
}
|
|
237
|
+
}
|
|
236
238
|
/** Union type for all the area units */
|
|
237
239
|
type $AreaUnit = UnitMap['area'];
|
|
238
240
|
/** Union type for all the data units */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { Ar as LooseLiteral, Nr as Mutable, i as $Record, it as Numeric } from "./object-
|
|
17
|
+
import { Ar as LooseLiteral, Nr as Mutable, i as $Record, it as Numeric } from "./object-ChFVh95z.mjs";
|
|
18
18
|
import { t as UNITS } from "./constants-D8RzBjsL.mjs";
|
|
19
19
|
|
|
20
20
|
//#region src/converter/data.d.ts
|
|
@@ -229,10 +229,12 @@ type CategoryUnits<Cat extends Category> = UnitMap[Cat];
|
|
|
229
229
|
/** * Type for the returned converter instance based on the provided unit `U`. */
|
|
230
230
|
type Converted<U extends $Unit> = InferCategory<U> extends never ? $BaseConverter<U> : InferCategory<U> extends 'area' ? $Area : InferCategory<U> extends 'time' ? $Time : InferCategory<U> extends 'length' ? $Length : InferCategory<U> extends 'mass' ? $Mass : InferCategory<U> extends 'data' ? $Data : InferCategory<U> extends 'temp' ? $Temperature : InferCategory<U> extends 'volume' ? $Volume : $BaseConverter<U>;
|
|
231
231
|
/** * Options for formatting converted values for unit converter method(s). */
|
|
232
|
-
|
|
233
|
-
/** Style of formatting. Default is `'plural'`. */
|
|
232
|
+
interface FormatToOptions {
|
|
233
|
+
/** Style of formatting. Default is `'plural'`. */
|
|
234
|
+
style?: 'compact' | 'scientific' | 'plural';
|
|
235
|
+
/** Number of decimal places to include. Default is `2`. */
|
|
234
236
|
decimals?: number;
|
|
235
|
-
}
|
|
237
|
+
}
|
|
236
238
|
/** Union type for all the area units */
|
|
237
239
|
type $AreaUnit = UnitMap['area'];
|
|
238
240
|
/** Union type for all the data units */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { E as NestedPrimitiveKey, nt as NormalPrimitiveKey, y as GenericObject } from "./object-
|
|
17
|
+
import { E as NestedPrimitiveKey, nt as NormalPrimitiveKey, y as GenericObject } from "./object-ChFVh95z.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/types/array.d.ts
|
|
20
20
|
/** * Flatten Array or Wrap in Array */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { E as NestedPrimitiveKey, nt as NormalPrimitiveKey, y as GenericObject } from "./object-
|
|
17
|
+
import { E as NestedPrimitiveKey, nt as NormalPrimitiveKey, y as GenericObject } from "./object-ChFVh95z.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/types/array.d.ts
|
|
20
20
|
/** * Flatten Array or Wrap in Array */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { B as TitleCase, I as SentenceCase, L as SnakeCase, M as PascalSnakeCase, N as PathCase, T as DotCase, V as TrainCase, f as CamelCase, g as ConstantCase, j as PascalCase, k as KebabCase, m as CaseFormat, p as CapitalizeOptions, z as StringCaseOptions } from "./string-
|
|
17
|
+
import { B as TitleCase, I as SentenceCase, L as SnakeCase, M as PascalSnakeCase, N as PathCase, T as DotCase, V as TrainCase, f as CamelCase, g as ConstantCase, j as PascalCase, k as KebabCase, m as CaseFormat, p as CapitalizeOptions, z as StringCaseOptions } from "./string-Dq2b8rcN.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/string/case.d.ts
|
|
20
20
|
/**
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { B as TitleCase, I as SentenceCase, L as SnakeCase, M as PascalSnakeCase, N as PathCase, T as DotCase, V as TrainCase, f as CamelCase, g as ConstantCase, j as PascalCase, k as KebabCase, m as CaseFormat, p as CapitalizeOptions, z as StringCaseOptions } from "./string-
|
|
17
|
+
import { B as TitleCase, I as SentenceCase, L as SnakeCase, M as PascalSnakeCase, N as PathCase, T as DotCase, V as TrainCase, f as CamelCase, g as ConstantCase, j as PascalCase, k as KebabCase, m as CaseFormat, p as CapitalizeOptions, z as StringCaseOptions } from "./string-CkwTVFeL.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/string/case.d.ts
|
|
20
20
|
/**
|
package/dist/change-case.d.cts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { a as toDotCase, c as toPascalSnakeCase, d as toSnakeCase, f as toTitleCase, i as toConstantCase, l as toPathCase, n as convertStringCase, o as toKebabCase, p as toTrainCase, r as toCamelCase, s as toPascalCase, t as capitalizeString, u as toSentenceCase } from "./case
|
|
17
|
+
import { a as toDotCase, c as toPascalSnakeCase, d as toSnakeCase, f as toTitleCase, i as toConstantCase, l as toPathCase, n as convertStringCase, o as toKebabCase, p as toTrainCase, r as toCamelCase, s as toPascalCase, t as capitalizeString, u as toSentenceCase } from "./case--Vjea9DS.cjs";
|
|
18
18
|
export { capitalizeString, convertStringCase, toCamelCase, toConstantCase, toDotCase, toKebabCase, toPascalCase, toPascalSnakeCase, toPathCase, toSentenceCase, toSnakeCase, toTitleCase, toTrainCase };
|
package/dist/change-case.d.mts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { a as toDotCase, c as toPascalSnakeCase, d as toSnakeCase, f as toTitleCase, i as toConstantCase, l as toPathCase, n as convertStringCase, o as toKebabCase, p as toTrainCase, r as toCamelCase, s as toPascalCase, t as capitalizeString, u as toSentenceCase } from "./case-
|
|
17
|
+
import { a as toDotCase, c as toPascalSnakeCase, d as toSnakeCase, f as toTitleCase, i as toConstantCase, l as toPathCase, n as convertStringCase, o as toKebabCase, p as toTrainCase, r as toCamelCase, s as toPascalCase, t as capitalizeString, u as toSentenceCase } from "./case-KdrBKjjK.mjs";
|
|
18
18
|
export { capitalizeString, convertStringCase, toCamelCase, toConstantCase, toDotCase, toKebabCase, toPascalCase, toPascalSnakeCase, toPathCase, toSentenceCase, toSnakeCase, toTitleCase, toTrainCase };
|
package/dist/colors.cjs
CHANGED
|
@@ -43,17 +43,6 @@ const generateRandomHSLColor = (maxColors = 16) => {
|
|
|
43
43
|
return color;
|
|
44
44
|
};
|
|
45
45
|
/**
|
|
46
|
-
* @deprecated For optimized performance and more flexibility, please consider using {@link generateRandomColor}.
|
|
47
|
-
*
|
|
48
|
-
* * Utility to generate a unique random color in `Hex6` and `RGB` format.
|
|
49
|
-
*
|
|
50
|
-
* @param maxColors - The maximum number of recent colors to store in memory. Default is `16`.
|
|
51
|
-
* @returns An object of generated unique random color in both `Hex` and `RGB` formats.
|
|
52
|
-
*/
|
|
53
|
-
const generateRandomColorInHexRGB = (maxColors = 16) => {
|
|
54
|
-
return require_convert.convertColorCode(generateRandomHSLColor(maxColors));
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
46
|
* * Generates a random unique color in one of three formats: `Hex6`, `RGB`, or `HSL`.
|
|
58
47
|
*
|
|
59
48
|
* @remarks
|
|
@@ -565,7 +554,6 @@ exports.convertRgbaToHsla = require_convert.convertRgbaToHsla;
|
|
|
565
554
|
exports.extractAlphaColorValues = require_convert.extractAlphaColorValues;
|
|
566
555
|
exports.extractSolidColorValues = require_convert.extractSolidColorValues;
|
|
567
556
|
exports.generateRandomColor = generateRandomColor;
|
|
568
|
-
exports.generateRandomColorInHexRGB = generateRandomColorInHexRGB;
|
|
569
557
|
exports.generateRandomHSL = generateRandomHSLColor;
|
|
570
558
|
exports.generateRandomHSLColor = generateRandomHSLColor;
|
|
571
559
|
exports.getColorForInitial = getColorForInitial;
|
package/dist/colors.d.cts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { Jn as Percent } from "./object-
|
|
18
|
-
import { C as RandomColorOptions,
|
|
17
|
+
import { Jn as Percent } from "./object-ChFVh95z.cjs";
|
|
18
|
+
import { C as RandomColorOptions, S as RandomColor, T as SolidValues, _ as Hex, a as AlphaValues, b as RGB, g as HSLA, h as HSL, l as ColorInputArray, n as $ColorType, t as Color, v as Hex6, x as RGBA, y as Hex8 } from "./Color-Dsut0Bex.cjs";
|
|
19
19
|
|
|
20
20
|
//#region src/colors/convert.d.ts
|
|
21
21
|
/**
|
|
@@ -234,15 +234,6 @@ declare function getColorForInitial(input: ColorInputArray, opacity?: Percent):
|
|
|
234
234
|
* @returns Generated unique random color in `HSL` format.
|
|
235
235
|
*/
|
|
236
236
|
declare const generateRandomHSLColor: (maxColors?: number) => HSL;
|
|
237
|
-
/**
|
|
238
|
-
* @deprecated For optimized performance and more flexibility, please consider using {@link generateRandomColor}.
|
|
239
|
-
*
|
|
240
|
-
* * Utility to generate a unique random color in `Hex6` and `RGB` format.
|
|
241
|
-
*
|
|
242
|
-
* @param maxColors - The maximum number of recent colors to store in memory. Default is `16`.
|
|
243
|
-
* @returns An object of generated unique random color in both `Hex` and `RGB` formats.
|
|
244
|
-
*/
|
|
245
|
-
declare const generateRandomColorInHexRGB: (maxColors?: number) => RandomHexRGB;
|
|
246
237
|
/**
|
|
247
238
|
* * Generates a random unique color in one of three formats: `Hex6`, `RGB`, or `HSL`.
|
|
248
239
|
*
|
|
@@ -352,4 +343,4 @@ declare function applyOpacityToHex(color: Hex, opacity: Percent): Hex8;
|
|
|
352
343
|
*/
|
|
353
344
|
declare function applyOpacityToHex(color: Hex, opacity: string): Hex8;
|
|
354
345
|
//#endregion
|
|
355
|
-
export { Color, Color as Colour, applyOpacityToHex, convertColorCode, convertHex8ToHsla, convertHex8ToRgba, convertHexToHsl, convertHexToRgb, convertHslToHex, convertHslToRgb, convertHslaToHex8, convertHslaToRgba, convertRgbToHex, convertRgbToHsl, convertRgbToRgba, convertRgbaToHex8, convertRgbaToHsla, extractAlphaColorValues, extractSolidColorValues, generateRandomColor, generateRandomColor as getRandomColor,
|
|
346
|
+
export { Color, Color as Colour, applyOpacityToHex, convertColorCode, convertHex8ToHsla, convertHex8ToRgba, convertHexToHsl, convertHexToRgb, convertHslToHex, convertHslToRgb, convertHslaToHex8, convertHslaToRgba, convertRgbToHex, convertRgbToHsl, convertRgbToRgba, convertRgbaToHex8, convertRgbaToHsla, extractAlphaColorValues, extractSolidColorValues, generateRandomColor, generateRandomColor as getRandomColor, generateRandomHSLColor as generateRandomHSL, generateRandomHSLColor, generateRandomHSLColor as getRandomHSL, getColorForInitial, percentToHex };
|
package/dist/colors.d.mts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { Jn as Percent } from "./object-
|
|
18
|
-
import { C as RandomColorOptions,
|
|
17
|
+
import { Jn as Percent } from "./object-ChFVh95z.mjs";
|
|
18
|
+
import { C as RandomColorOptions, S as RandomColor, T as SolidValues, _ as Hex, a as AlphaValues, b as RGB, g as HSLA, h as HSL, l as ColorInputArray, n as $ColorType, t as Color, v as Hex6, x as RGBA, y as Hex8 } from "./Color-DCfoQk_-.mjs";
|
|
19
19
|
|
|
20
20
|
//#region src/colors/convert.d.ts
|
|
21
21
|
/**
|
|
@@ -234,15 +234,6 @@ declare function getColorForInitial(input: ColorInputArray, opacity?: Percent):
|
|
|
234
234
|
* @returns Generated unique random color in `HSL` format.
|
|
235
235
|
*/
|
|
236
236
|
declare const generateRandomHSLColor: (maxColors?: number) => HSL;
|
|
237
|
-
/**
|
|
238
|
-
* @deprecated For optimized performance and more flexibility, please consider using {@link generateRandomColor}.
|
|
239
|
-
*
|
|
240
|
-
* * Utility to generate a unique random color in `Hex6` and `RGB` format.
|
|
241
|
-
*
|
|
242
|
-
* @param maxColors - The maximum number of recent colors to store in memory. Default is `16`.
|
|
243
|
-
* @returns An object of generated unique random color in both `Hex` and `RGB` formats.
|
|
244
|
-
*/
|
|
245
|
-
declare const generateRandomColorInHexRGB: (maxColors?: number) => RandomHexRGB;
|
|
246
237
|
/**
|
|
247
238
|
* * Generates a random unique color in one of three formats: `Hex6`, `RGB`, or `HSL`.
|
|
248
239
|
*
|
|
@@ -352,4 +343,4 @@ declare function applyOpacityToHex(color: Hex, opacity: Percent): Hex8;
|
|
|
352
343
|
*/
|
|
353
344
|
declare function applyOpacityToHex(color: Hex, opacity: string): Hex8;
|
|
354
345
|
//#endregion
|
|
355
|
-
export { Color, Color as Colour, applyOpacityToHex, convertColorCode, convertHex8ToHsla, convertHex8ToRgba, convertHexToHsl, convertHexToRgb, convertHslToHex, convertHslToRgb, convertHslaToHex8, convertHslaToRgba, convertRgbToHex, convertRgbToHsl, convertRgbToRgba, convertRgbaToHex8, convertRgbaToHsla, extractAlphaColorValues, extractSolidColorValues, generateRandomColor, generateRandomColor as getRandomColor,
|
|
346
|
+
export { Color, Color as Colour, applyOpacityToHex, convertColorCode, convertHex8ToHsla, convertHex8ToRgba, convertHexToHsl, convertHexToRgb, convertHslToHex, convertHslToRgb, convertHslaToHex8, convertHslaToRgba, convertRgbToHex, convertRgbToHsl, convertRgbToRgba, convertRgbaToHex8, convertRgbaToHsla, extractAlphaColorValues, extractSolidColorValues, generateRandomColor, generateRandomColor as getRandomColor, generateRandomHSLColor as generateRandomHSL, generateRandomHSLColor, generateRandomHSLColor as getRandomHSL, getColorForInitial, percentToHex };
|
package/dist/colors.mjs
CHANGED
|
@@ -42,17 +42,6 @@ const generateRandomHSLColor = (maxColors = 16) => {
|
|
|
42
42
|
return color;
|
|
43
43
|
};
|
|
44
44
|
/**
|
|
45
|
-
* @deprecated For optimized performance and more flexibility, please consider using {@link generateRandomColor}.
|
|
46
|
-
*
|
|
47
|
-
* * Utility to generate a unique random color in `Hex6` and `RGB` format.
|
|
48
|
-
*
|
|
49
|
-
* @param maxColors - The maximum number of recent colors to store in memory. Default is `16`.
|
|
50
|
-
* @returns An object of generated unique random color in both `Hex` and `RGB` formats.
|
|
51
|
-
*/
|
|
52
|
-
const generateRandomColorInHexRGB = (maxColors = 16) => {
|
|
53
|
-
return convertColorCode(generateRandomHSLColor(maxColors));
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
45
|
* * Generates a random unique color in one of three formats: `Hex6`, `RGB`, or `HSL`.
|
|
57
46
|
*
|
|
58
47
|
* @remarks
|
|
@@ -544,4 +533,4 @@ function getColorForInitial(input = "", opacity = 100) {
|
|
|
544
533
|
}
|
|
545
534
|
|
|
546
535
|
//#endregion
|
|
547
|
-
export { Color, Color as Colour, applyOpacityToHex, convertColorCode, convertHex8ToHsla, convertHex8ToRgba, convertHexToHsl, convertHexToRgb, convertHslToHex, convertHslToRgb, convertHslaToHex8, convertHslaToRgba, convertRgbToHex, convertRgbToHsl, convertRgbToRgba, convertRgbaToHex8, convertRgbaToHsla, extractAlphaColorValues, extractSolidColorValues, generateRandomColor, generateRandomColor as getRandomColor,
|
|
536
|
+
export { Color, Color as Colour, applyOpacityToHex, convertColorCode, convertHex8ToHsla, convertHex8ToRgba, convertHexToHsl, convertHexToRgb, convertHslToHex, convertHslToRgb, convertHslaToHex8, convertHslaToRgba, convertRgbToHex, convertRgbToHsl, convertRgbToRgba, convertRgbaToHex8, convertRgbaToHsla, extractAlphaColorValues, extractSolidColorValues, generateRandomColor, generateRandomColor as getRandomColor, generateRandomHSLColor as generateRandomHSL, generateRandomHSLColor, generateRandomHSLColor as getRandomHSL, getColorForInitial, percentToHex };
|
package/dist/constants.d.cts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { t as LOWERCASE } from "./constants-C7wERz5m.cjs";
|
|
18
|
-
import { Ci as COUNTRIES, Si as WESTERN_ZODIAC_SIGNS, _i as TIME_ZONE_IDS, bi as MONTHS, ci as CURRENCY_CODES, di as LOCALE_CODES, fi as UNITS$1, gi as TIME_ZONES_NATIVE, hi as TIME_ZONES, li as CURRENCY_LOCALES, mi as NATIVE_TZ_IDS, pi as IANA_TZ_IDS, ui as FRANKFURTER_CURRENCIES, vi as TIME_ZONE_LABELS, xi as VEDIC_ZODIAC_SIGNS, yi as DAYS } from "./object-
|
|
18
|
+
import { Ci as COUNTRIES, Si as WESTERN_ZODIAC_SIGNS, _i as TIME_ZONE_IDS, bi as MONTHS, ci as CURRENCY_CODES, di as LOCALE_CODES, fi as UNITS$1, gi as TIME_ZONES_NATIVE, hi as TIME_ZONES, li as CURRENCY_LOCALES, mi as NATIVE_TZ_IDS, pi as IANA_TZ_IDS, ui as FRANKFURTER_CURRENCIES, vi as TIME_ZONE_LABELS, xi as VEDIC_ZODIAC_SIGNS, yi as DAYS } from "./object-ChFVh95z.cjs";
|
|
19
19
|
import { t as CSS_COLORS } from "./css-colors-Dqz6Bfnp.cjs";
|
|
20
20
|
import { t as UNITS } from "./constants-D8RzBjsL.cjs";
|
|
21
21
|
import { t as HTTP_STATUS_CODES } from "./constants-DNIXgBkz.cjs";
|
package/dist/constants.d.mts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { t as LOWERCASE } from "./constants-C7wERz5m.mjs";
|
|
18
|
-
import { Ci as COUNTRIES, Si as WESTERN_ZODIAC_SIGNS, _i as TIME_ZONE_IDS, bi as MONTHS, ci as CURRENCY_CODES, di as LOCALE_CODES, fi as UNITS$1, gi as TIME_ZONES_NATIVE, hi as TIME_ZONES, li as CURRENCY_LOCALES, mi as NATIVE_TZ_IDS, pi as IANA_TZ_IDS, ui as FRANKFURTER_CURRENCIES, vi as TIME_ZONE_LABELS, xi as VEDIC_ZODIAC_SIGNS, yi as DAYS } from "./object-
|
|
18
|
+
import { Ci as COUNTRIES, Si as WESTERN_ZODIAC_SIGNS, _i as TIME_ZONE_IDS, bi as MONTHS, ci as CURRENCY_CODES, di as LOCALE_CODES, fi as UNITS$1, gi as TIME_ZONES_NATIVE, hi as TIME_ZONES, li as CURRENCY_LOCALES, mi as NATIVE_TZ_IDS, pi as IANA_TZ_IDS, ui as FRANKFURTER_CURRENCIES, vi as TIME_ZONE_LABELS, xi as VEDIC_ZODIAC_SIGNS, yi as DAYS } from "./object-ChFVh95z.mjs";
|
|
19
19
|
import { t as CSS_COLORS } from "./css-colors-Dqz6Bfnp.mjs";
|
|
20
20
|
import { t as UNITS } from "./constants-D8RzBjsL.mjs";
|
|
21
21
|
import { t as HTTP_STATUS_CODES } from "./constants-DNIXgBkz.mjs";
|
package/dist/converter.d.cts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { it as Numeric } from "./object-
|
|
18
|
-
import { C as $Length, S as $Mass, b as $Time, c as $Unit, f as Converted, t as $Area, w as $Data, x as $Temperature, y as $Volume } from "./area-
|
|
17
|
+
import { it as Numeric } from "./object-ChFVh95z.cjs";
|
|
18
|
+
import { C as $Length, S as $Mass, b as $Time, c as $Unit, f as Converted, t as $Area, w as $Data, x as $Temperature, y as $Volume } from "./area-CcRQ6TfR.cjs";
|
|
19
19
|
|
|
20
20
|
//#region src/converter/Converter.d.ts
|
|
21
21
|
/**
|
package/dist/converter.d.mts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { it as Numeric } from "./object-
|
|
18
|
-
import { C as $Length, S as $Mass, b as $Time, c as $Unit, f as Converted, t as $Area, w as $Data, x as $Temperature, y as $Volume } from "./area-
|
|
17
|
+
import { it as Numeric } from "./object-ChFVh95z.mjs";
|
|
18
|
+
import { C as $Length, S as $Mass, b as $Time, c as $Unit, f as Converted, t as $Area, w as $Data, x as $Temperature, y as $Volume } from "./area-CvSC96va.mjs";
|
|
19
19
|
|
|
20
20
|
//#region src/converter/Converter.d.ts
|
|
21
21
|
/**
|
package/dist/date.cjs
CHANGED
|
@@ -19,8 +19,8 @@ const require_primitives = require('./primitives-CBGICrDR.cjs');
|
|
|
19
19
|
const require_timezone = require('./timezone-CSz7R0L6.cjs');
|
|
20
20
|
const require_specials = require('./specials-BM6cx43o.cjs');
|
|
21
21
|
const require_utilities = require('./utilities-CzyXCRHM.cjs');
|
|
22
|
-
const require_guards = require('./guards-
|
|
23
|
-
const require_parse = require('./parse-
|
|
22
|
+
const require_guards = require('./guards-ClGDJrQp.cjs');
|
|
23
|
+
const require_parse = require('./parse-DovagZFA.cjs');
|
|
24
24
|
|
|
25
25
|
//#region src/date/utils.ts
|
|
26
26
|
/**
|
package/dist/date.d.cts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { $ as Maybe, Dt as ClockTime, Gt as ISODateTimeString, Ht as HourMinutes, Ot as DateArgs, Sn as UTCOffset, Vt as GreetingConfigs, Wt as ISODateFormat, an as SafeFormat, bn as TimestampOptions, bt as $TimeZoneIdentifier, cn as TimeOnlyFormat, fn as TimeWithUnit, gn as TimeZoneIdNative, it as Numeric, kt as DateFormatOptions, mn as TimeZoneDetails } from "./object-
|
|
17
|
+
import { $ as Maybe, Dt as ClockTime, Gt as ISODateTimeString, Ht as HourMinutes, Ot as DateArgs, Sn as UTCOffset, Vt as GreetingConfigs, Wt as ISODateFormat, an as SafeFormat, bn as TimestampOptions, bt as $TimeZoneIdentifier, cn as TimeOnlyFormat, fn as TimeWithUnit, gn as TimeZoneIdNative, it as Numeric, kt as DateFormatOptions, mn as TimeZoneDetails } from "./object-ChFVh95z.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/date/greet.d.ts
|
|
20
20
|
/**
|
package/dist/date.d.mts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { $ as Maybe, Dt as ClockTime, Gt as ISODateTimeString, Ht as HourMinutes, Ot as DateArgs, Sn as UTCOffset, Vt as GreetingConfigs, Wt as ISODateFormat, an as SafeFormat, bn as TimestampOptions, bt as $TimeZoneIdentifier, cn as TimeOnlyFormat, fn as TimeWithUnit, gn as TimeZoneIdNative, it as Numeric, kt as DateFormatOptions, mn as TimeZoneDetails } from "./object-
|
|
17
|
+
import { $ as Maybe, Dt as ClockTime, Gt as ISODateTimeString, Ht as HourMinutes, Ot as DateArgs, Sn as UTCOffset, Vt as GreetingConfigs, Wt as ISODateFormat, an as SafeFormat, bn as TimestampOptions, bt as $TimeZoneIdentifier, cn as TimeOnlyFormat, fn as TimeWithUnit, gn as TimeZoneIdNative, it as Numeric, kt as DateFormatOptions, mn as TimeZoneDetails } from "./object-ChFVh95z.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/date/greet.d.ts
|
|
20
20
|
/**
|
package/dist/date.mjs
CHANGED
|
@@ -18,8 +18,8 @@ import { m as isUndefined } from "./primitives-Djsevc69.mjs";
|
|
|
18
18
|
import { n as NATIVE_TZ_IDS } from "./timezone-avZ4TvDx.mjs";
|
|
19
19
|
import { T as isObject } from "./specials-Cye93-uo.mjs";
|
|
20
20
|
import { a as normalizeNumber } from "./utilities-B9axOvOX.mjs";
|
|
21
|
-
import { a as isValidTime, s as isValidUTCOffset } from "./guards-
|
|
22
|
-
import { a as _normalizeOffset, i as _gmtToUtcOffset, n as _dateArgsToDate, o as _resolveNativeTzName, r as _formatDate, t as parseMSec } from "./parse-
|
|
21
|
+
import { a as isValidTime, s as isValidUTCOffset } from "./guards-C0smSAKC.mjs";
|
|
22
|
+
import { a as _normalizeOffset, i as _gmtToUtcOffset, n as _dateArgsToDate, o as _resolveNativeTzName, r as _formatDate, t as parseMSec } from "./parse-BhZ6-tKg.mjs";
|
|
23
23
|
|
|
24
24
|
//#region src/date/utils.ts
|
|
25
25
|
/**
|
package/dist/dom.cjs
CHANGED
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
18
18
|
const require_primitives = require('./primitives-CBGICrDR.cjs');
|
|
19
19
|
const require_specials = require('./specials-BM6cx43o.cjs');
|
|
20
|
-
const require_guards = require('./guards-
|
|
20
|
+
const require_guards = require('./guards-ClGDJrQp.cjs');
|
|
21
21
|
const require_basics = require('./basics-K8BDSYD6.cjs');
|
|
22
|
-
const require_objectify = require('./objectify-
|
|
23
|
-
const require_utils = require('./utils-
|
|
22
|
+
const require_objectify = require('./objectify-DewBSJP_.cjs');
|
|
23
|
+
const require_utils = require('./utils-BxguWSoa.cjs');
|
|
24
24
|
|
|
25
25
|
//#region src/dom/query.ts
|
|
26
26
|
/**
|
package/dist/dom.d.cts
CHANGED
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { A as ParsedQuery, G as Deserializer, M as QueryObject, ct as Serializer, j as ParsedQueryGeneric, y as GenericObject } from "./object-
|
|
18
|
-
import { P as QueryString } from "./string-
|
|
19
|
-
import { a as OriginFileObj, i as FormDataConfigs, o as ParsedFormData, r as FileUpload, s as SerializedForm, t as CustomFile } from "./form-
|
|
17
|
+
import { A as ParsedQuery, G as Deserializer, M as QueryObject, ct as Serializer, j as ParsedQueryGeneric, y as GenericObject } from "./object-ChFVh95z.cjs";
|
|
18
|
+
import { P as QueryString } from "./string-Dq2b8rcN.cjs";
|
|
19
|
+
import { a as OriginFileObj, i as FormDataConfigs, o as ParsedFormData, r as FileUpload, s as SerializedForm, t as CustomFile } from "./form-mP-nl8EC.cjs";
|
|
20
20
|
|
|
21
21
|
//#region src/dom/query.d.ts
|
|
22
22
|
/**
|
package/dist/dom.d.mts
CHANGED
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { A as ParsedQuery, G as Deserializer, M as QueryObject, ct as Serializer, j as ParsedQueryGeneric, y as GenericObject } from "./object-
|
|
18
|
-
import { P as QueryString } from "./string-
|
|
19
|
-
import { a as OriginFileObj, i as FormDataConfigs, o as ParsedFormData, r as FileUpload, s as SerializedForm, t as CustomFile } from "./form-
|
|
17
|
+
import { A as ParsedQuery, G as Deserializer, M as QueryObject, ct as Serializer, j as ParsedQueryGeneric, y as GenericObject } from "./object-ChFVh95z.mjs";
|
|
18
|
+
import { P as QueryString } from "./string-CkwTVFeL.mjs";
|
|
19
|
+
import { a as OriginFileObj, i as FormDataConfigs, o as ParsedFormData, r as FileUpload, s as SerializedForm, t as CustomFile } from "./form-DoQGMTOc.mjs";
|
|
20
20
|
|
|
21
21
|
//#region src/dom/query.d.ts
|
|
22
22
|
/**
|
package/dist/dom.mjs
CHANGED
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
|
|
17
17
|
import { a as isNonEmptyString, d as isString } from "./primitives-Djsevc69.mjs";
|
|
18
18
|
import { j as isValidArray, v as isEmptyObject, w as isNotEmptyObject } from "./specials-Cye93-uo.mjs";
|
|
19
|
-
import { t as isDateLike } from "./guards-
|
|
19
|
+
import { t as isDateLike } from "./guards-C0smSAKC.mjs";
|
|
20
20
|
import { n as trimString } from "./basics-1_M7UvCn.mjs";
|
|
21
|
-
import { _ as isOriginFileObj, a as flattenObjectKeyValue, d as isCustomFile, f as isCustomFileArray, g as isFileUpload, h as isFileOrBlob, l as parseObjectValues, m as isFileList, p as isFileArray, v as isValidFormData } from "./objectify-
|
|
22
|
-
import { a as deepParsePrimitives } from "./utils-
|
|
21
|
+
import { _ as isOriginFileObj, a as flattenObjectKeyValue, d as isCustomFile, f as isCustomFileArray, g as isFileUpload, h as isFileOrBlob, l as parseObjectValues, m as isFileList, p as isFileArray, v as isValidFormData } from "./objectify-DEnFpPt1.mjs";
|
|
22
|
+
import { a as deepParsePrimitives } from "./utils-DXovsTKs.mjs";
|
|
23
23
|
|
|
24
24
|
//#region src/dom/query.ts
|
|
25
25
|
/**
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { $r as RequireExactly, S as KeyForObject, T as NestedKeyString, u as DotNotationKey, x as KeyForArray } from "./object-
|
|
18
|
-
import { P as QueryString } from "./string-
|
|
17
|
+
import { $r as RequireExactly, S as KeyForObject, T as NestedKeyString, u as DotNotationKey, x as KeyForArray } from "./object-ChFVh95z.mjs";
|
|
18
|
+
import { P as QueryString } from "./string-CkwTVFeL.mjs";
|
|
19
19
|
|
|
20
20
|
//#region src/types/form.d.ts
|
|
21
21
|
/** - Configuration options to control FormData generation behavior. */
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { $r as RequireExactly, S as KeyForObject, T as NestedKeyString, u as DotNotationKey, x as KeyForArray } from "./object-
|
|
18
|
-
import { P as QueryString } from "./string-
|
|
17
|
+
import { $r as RequireExactly, S as KeyForObject, T as NestedKeyString, u as DotNotationKey, x as KeyForArray } from "./object-ChFVh95z.cjs";
|
|
18
|
+
import { P as QueryString } from "./string-Dq2b8rcN.cjs";
|
|
19
19
|
|
|
20
20
|
//#region src/types/form.d.ts
|
|
21
21
|
/** - Configuration options to control FormData generation behavior. */
|
|
@@ -41,7 +41,7 @@ function isValidTime(value) {
|
|
|
41
41
|
* @returns `true` if the value is a valid utc offset, `false` otherwise.
|
|
42
42
|
*/
|
|
43
43
|
function isValidUTCOffset(value) {
|
|
44
|
-
return isString(value) ? /^UTC[+-]
|
|
44
|
+
return isString(value) ? /^UTC[+-]?(?:0[0-9]|1[0-4]):(?:00|15|30|45)$/.test(value) : false;
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* * Validates whether the provided value is a recognized IANA time zone identifier (excluding `"Factory"`), based on the {@link https://en.wikipedia.org/wiki/List_of_tz_database_time_zones IANA TZ Database}.
|
|
@@ -41,7 +41,7 @@ function isValidTime(value) {
|
|
|
41
41
|
* @returns `true` if the value is a valid utc offset, `false` otherwise.
|
|
42
42
|
*/
|
|
43
43
|
function isValidUTCOffset(value) {
|
|
44
|
-
return require_primitives.isString(value) ? /^UTC[+-]
|
|
44
|
+
return require_primitives.isString(value) ? /^UTC[+-]?(?:0[0-9]|1[0-4]):(?:00|15|30|45)$/.test(value) : false;
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* * Validates whether the provided value is a recognized IANA time zone identifier (excluding `"Factory"`), based on the {@link https://en.wikipedia.org/wiki/List_of_tz_database_time_zones IANA TZ Database}.
|
package/dist/guards.cjs
CHANGED
|
@@ -18,7 +18,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
18
18
|
const require_primitives = require('./primitives-CBGICrDR.cjs');
|
|
19
19
|
const require_guards = require('./guards-DGN95D2h.cjs');
|
|
20
20
|
const require_specials = require('./specials-BM6cx43o.cjs');
|
|
21
|
-
const require_guards$1 = require('./guards-
|
|
21
|
+
const require_guards$1 = require('./guards-ClGDJrQp.cjs');
|
|
22
22
|
const require_basics = require('./basics-K8BDSYD6.cjs');
|
|
23
23
|
const require_guards$2 = require('./guards-0VjySrPM.cjs');
|
|
24
24
|
|
|
@@ -125,5 +125,4 @@ exports.isValidTimeString = require_guards$1.isValidTime;
|
|
|
125
125
|
exports.isValidTimeZoneId = require_guards$1.isValidTimeZoneId;
|
|
126
126
|
exports.isValidURL = require_specials.isURL;
|
|
127
127
|
exports.isValidUTC = require_guards$1.isValidUTCOffset;
|
|
128
|
-
exports.isValidUTCOffSet = require_guards$1.isValidUTCOffset;
|
|
129
128
|
exports.isValidUTCOffset = require_guards$1.isValidUTCOffset;
|
package/dist/guards.d.cts
CHANGED
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { $ as Maybe, Dt as ClockTime, J as FalsyPrimitive, Sn as UTCOffset, X as GenericFn, bt as $TimeZoneIdentifier, fn as TimeWithUnit, gn as TimeZoneIdNative, it as Numeric, jt as DateLike, lt as ValidArray, st as Primitive, tt as NormalPrimitive, y as GenericObject, z as AsyncFunction } from "./object-
|
|
18
|
-
import { b as RGB, g as HSLA, h as HSL, s as CSSColor, v as Hex6, x as RGBA, y as Hex8 } from "./Color-
|
|
19
|
-
import { C as isURL, S as isPhoneNumber, _ as isEnvironment, a as isUUIDv4, b as isNode, c as isUUIDv7, d as isBase64, f as isBinaryString, g as isEmailArray, h as isEmail, i as isUUIDv3, l as isUUIDv8, m as isDateString, n as isUUIDv1, o as isUUIDv5, p as isBrowser, r as isUUIDv2, s as isUUIDv6, v as isHexString, w as isUUID, x as isNumericString, y as isIPAddress } from "./uuid-
|
|
17
|
+
import { $ as Maybe, Dt as ClockTime, J as FalsyPrimitive, Sn as UTCOffset, X as GenericFn, bt as $TimeZoneIdentifier, fn as TimeWithUnit, gn as TimeZoneIdNative, it as Numeric, jt as DateLike, lt as ValidArray, st as Primitive, tt as NormalPrimitive, y as GenericObject, z as AsyncFunction } from "./object-ChFVh95z.cjs";
|
|
18
|
+
import { b as RGB, g as HSLA, h as HSL, s as CSSColor, v as Hex6, x as RGBA, y as Hex8 } from "./Color-Dsut0Bex.cjs";
|
|
19
|
+
import { C as isURL, S as isPhoneNumber, _ as isEnvironment, a as isUUIDv4, b as isNode, c as isUUIDv7, d as isBase64, f as isBinaryString, g as isEmailArray, h as isEmail, i as isUUIDv3, l as isUUIDv8, m as isDateString, n as isUUIDv1, o as isUUIDv5, p as isBrowser, r as isUUIDv2, s as isUUIDv6, v as isHexString, w as isUUID, x as isNumericString, y as isIPAddress } from "./uuid-DgTBxcVu.cjs";
|
|
20
20
|
|
|
21
21
|
//#region src/colors/guards.d.ts
|
|
22
22
|
/**
|
|
@@ -396,4 +396,4 @@ declare function isKebabCase(str: string): boolean;
|
|
|
396
396
|
*/
|
|
397
397
|
declare function isEmojiOnly(str: string): boolean;
|
|
398
398
|
//#endregion
|
|
399
|
-
export { areInvalidNumbers, areInvalidNumbers as areNumbersInvalid, areInvalidNumbers as isInvalidNumber, areInvalidNumbers as isNumberInvalid, isReturningPromise as doesReturnPromise, isReturningPromise, isArray, isArrayOfType, isValidArray as isArrayWithLength, isValidArray, isBase64, isBigInt, isBinaryString, isBoolean, isBrowser, isCSSColor, isCamelCase, isDate, isDateLike, isDateString, isEmail, isEmail as isValidEmail, isEmailArray, isEmojiOnly, isEmptyObject, isEmptyObject as isEmptyObjectGuard, isEmptyObject as isObjectEmpty, isEnvironment, isEnvironment as isExpectedNodeENV, isEnvironment as isNodeENV, isEnvironment as isNodeEnvironment, isError, isEven, isEven as isEvenNumber, isFalsy, isFibonacci, isFibonacci as isPartOfFibonacci, isFibonacci as isPartOfFibonacciSeries, isFunction, isHSL, isHSLA, isHex6, isHex8, isHexString, isIPAddress, isInteger, isJSON, isJSON as isJSONObject, isJSON as isValidJSON, isKebabCase, isLeapYear, isMap, isMap as isValidMap, isMethodDescriptor as isMethod, isMethodDescriptor, isMultiple, isNativeTimeZoneId, isNode, isNonEmptyString, isNormalPrimitive, isNotEmptyObject, isNotEmptyObject as isValidObject, isNull, isNumber, isNumericString, isObject, isObjectWithKeys, isOdd, isOdd as isOddNumber, isPalindrome, isPascalCase, isPerfectSquare, isPhoneNumber, isPositiveInteger, isPrimitive, isPromise, isRGB, isRGBA, isRegExp, isRegExp as isRegularExpression, isSet, isSet as isValidSet, isSnakeCase, isString, isSymbol, isTimeWithUnit, isTruthy, isURL, isURL as isValidURL, isUUID, isUUIDv1, isUUIDv2, isUUIDv3, isUUIDv4, isUUIDv5, isUUIDv6, isUUIDv7, isUUIDv8, isUndefined, isValidTime, isValidTime as isValidTimeString, isValidTimeZoneId, isValidUTCOffset as isValidUTC, isValidUTCOffset
|
|
399
|
+
export { areInvalidNumbers, areInvalidNumbers as areNumbersInvalid, areInvalidNumbers as isInvalidNumber, areInvalidNumbers as isNumberInvalid, isReturningPromise as doesReturnPromise, isReturningPromise, isArray, isArrayOfType, isValidArray as isArrayWithLength, isValidArray, isBase64, isBigInt, isBinaryString, isBoolean, isBrowser, isCSSColor, isCamelCase, isDate, isDateLike, isDateString, isEmail, isEmail as isValidEmail, isEmailArray, isEmojiOnly, isEmptyObject, isEmptyObject as isEmptyObjectGuard, isEmptyObject as isObjectEmpty, isEnvironment, isEnvironment as isExpectedNodeENV, isEnvironment as isNodeENV, isEnvironment as isNodeEnvironment, isError, isEven, isEven as isEvenNumber, isFalsy, isFibonacci, isFibonacci as isPartOfFibonacci, isFibonacci as isPartOfFibonacciSeries, isFunction, isHSL, isHSLA, isHex6, isHex8, isHexString, isIPAddress, isInteger, isJSON, isJSON as isJSONObject, isJSON as isValidJSON, isKebabCase, isLeapYear, isMap, isMap as isValidMap, isMethodDescriptor as isMethod, isMethodDescriptor, isMultiple, isNativeTimeZoneId, isNode, isNonEmptyString, isNormalPrimitive, isNotEmptyObject, isNotEmptyObject as isValidObject, isNull, isNumber, isNumericString, isObject, isObjectWithKeys, isOdd, isOdd as isOddNumber, isPalindrome, isPascalCase, isPerfectSquare, isPhoneNumber, isPositiveInteger, isPrimitive, isPromise, isRGB, isRGBA, isRegExp, isRegExp as isRegularExpression, isSet, isSet as isValidSet, isSnakeCase, isString, isSymbol, isTimeWithUnit, isTruthy, isURL, isURL as isValidURL, isUUID, isUUIDv1, isUUIDv2, isUUIDv3, isUUIDv4, isUUIDv5, isUUIDv6, isUUIDv7, isUUIDv8, isUndefined, isValidTime, isValidTime as isValidTimeString, isValidTimeZoneId, isValidUTCOffset as isValidUTC, isValidUTCOffset };
|
package/dist/guards.d.mts
CHANGED
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { $ as Maybe, Dt as ClockTime, J as FalsyPrimitive, Sn as UTCOffset, X as GenericFn, bt as $TimeZoneIdentifier, fn as TimeWithUnit, gn as TimeZoneIdNative, it as Numeric, jt as DateLike, lt as ValidArray, st as Primitive, tt as NormalPrimitive, y as GenericObject, z as AsyncFunction } from "./object-
|
|
18
|
-
import { b as RGB, g as HSLA, h as HSL, s as CSSColor, v as Hex6, x as RGBA, y as Hex8 } from "./Color-
|
|
19
|
-
import { C as isURL, S as isPhoneNumber, _ as isEnvironment, a as isUUIDv4, b as isNode, c as isUUIDv7, d as isBase64, f as isBinaryString, g as isEmailArray, h as isEmail, i as isUUIDv3, l as isUUIDv8, m as isDateString, n as isUUIDv1, o as isUUIDv5, p as isBrowser, r as isUUIDv2, s as isUUIDv6, v as isHexString, w as isUUID, x as isNumericString, y as isIPAddress } from "./uuid-
|
|
17
|
+
import { $ as Maybe, Dt as ClockTime, J as FalsyPrimitive, Sn as UTCOffset, X as GenericFn, bt as $TimeZoneIdentifier, fn as TimeWithUnit, gn as TimeZoneIdNative, it as Numeric, jt as DateLike, lt as ValidArray, st as Primitive, tt as NormalPrimitive, y as GenericObject, z as AsyncFunction } from "./object-ChFVh95z.mjs";
|
|
18
|
+
import { b as RGB, g as HSLA, h as HSL, s as CSSColor, v as Hex6, x as RGBA, y as Hex8 } from "./Color-DCfoQk_-.mjs";
|
|
19
|
+
import { C as isURL, S as isPhoneNumber, _ as isEnvironment, a as isUUIDv4, b as isNode, c as isUUIDv7, d as isBase64, f as isBinaryString, g as isEmailArray, h as isEmail, i as isUUIDv3, l as isUUIDv8, m as isDateString, n as isUUIDv1, o as isUUIDv5, p as isBrowser, r as isUUIDv2, s as isUUIDv6, v as isHexString, w as isUUID, x as isNumericString, y as isIPAddress } from "./uuid-Yc3Uu8qr.mjs";
|
|
20
20
|
|
|
21
21
|
//#region src/colors/guards.d.ts
|
|
22
22
|
/**
|
|
@@ -396,4 +396,4 @@ declare function isKebabCase(str: string): boolean;
|
|
|
396
396
|
*/
|
|
397
397
|
declare function isEmojiOnly(str: string): boolean;
|
|
398
398
|
//#endregion
|
|
399
|
-
export { areInvalidNumbers, areInvalidNumbers as areNumbersInvalid, areInvalidNumbers as isInvalidNumber, areInvalidNumbers as isNumberInvalid, isReturningPromise as doesReturnPromise, isReturningPromise, isArray, isArrayOfType, isValidArray as isArrayWithLength, isValidArray, isBase64, isBigInt, isBinaryString, isBoolean, isBrowser, isCSSColor, isCamelCase, isDate, isDateLike, isDateString, isEmail, isEmail as isValidEmail, isEmailArray, isEmojiOnly, isEmptyObject, isEmptyObject as isEmptyObjectGuard, isEmptyObject as isObjectEmpty, isEnvironment, isEnvironment as isExpectedNodeENV, isEnvironment as isNodeENV, isEnvironment as isNodeEnvironment, isError, isEven, isEven as isEvenNumber, isFalsy, isFibonacci, isFibonacci as isPartOfFibonacci, isFibonacci as isPartOfFibonacciSeries, isFunction, isHSL, isHSLA, isHex6, isHex8, isHexString, isIPAddress, isInteger, isJSON, isJSON as isJSONObject, isJSON as isValidJSON, isKebabCase, isLeapYear, isMap, isMap as isValidMap, isMethodDescriptor as isMethod, isMethodDescriptor, isMultiple, isNativeTimeZoneId, isNode, isNonEmptyString, isNormalPrimitive, isNotEmptyObject, isNotEmptyObject as isValidObject, isNull, isNumber, isNumericString, isObject, isObjectWithKeys, isOdd, isOdd as isOddNumber, isPalindrome, isPascalCase, isPerfectSquare, isPhoneNumber, isPositiveInteger, isPrimitive, isPromise, isRGB, isRGBA, isRegExp, isRegExp as isRegularExpression, isSet, isSet as isValidSet, isSnakeCase, isString, isSymbol, isTimeWithUnit, isTruthy, isURL, isURL as isValidURL, isUUID, isUUIDv1, isUUIDv2, isUUIDv3, isUUIDv4, isUUIDv5, isUUIDv6, isUUIDv7, isUUIDv8, isUndefined, isValidTime, isValidTime as isValidTimeString, isValidTimeZoneId, isValidUTCOffset as isValidUTC, isValidUTCOffset
|
|
399
|
+
export { areInvalidNumbers, areInvalidNumbers as areNumbersInvalid, areInvalidNumbers as isInvalidNumber, areInvalidNumbers as isNumberInvalid, isReturningPromise as doesReturnPromise, isReturningPromise, isArray, isArrayOfType, isValidArray as isArrayWithLength, isValidArray, isBase64, isBigInt, isBinaryString, isBoolean, isBrowser, isCSSColor, isCamelCase, isDate, isDateLike, isDateString, isEmail, isEmail as isValidEmail, isEmailArray, isEmojiOnly, isEmptyObject, isEmptyObject as isEmptyObjectGuard, isEmptyObject as isObjectEmpty, isEnvironment, isEnvironment as isExpectedNodeENV, isEnvironment as isNodeENV, isEnvironment as isNodeEnvironment, isError, isEven, isEven as isEvenNumber, isFalsy, isFibonacci, isFibonacci as isPartOfFibonacci, isFibonacci as isPartOfFibonacciSeries, isFunction, isHSL, isHSLA, isHex6, isHex8, isHexString, isIPAddress, isInteger, isJSON, isJSON as isJSONObject, isJSON as isValidJSON, isKebabCase, isLeapYear, isMap, isMap as isValidMap, isMethodDescriptor as isMethod, isMethodDescriptor, isMultiple, isNativeTimeZoneId, isNode, isNonEmptyString, isNormalPrimitive, isNotEmptyObject, isNotEmptyObject as isValidObject, isNull, isNumber, isNumericString, isObject, isObjectWithKeys, isOdd, isOdd as isOddNumber, isPalindrome, isPascalCase, isPerfectSquare, isPhoneNumber, isPositiveInteger, isPrimitive, isPromise, isRGB, isRGBA, isRegExp, isRegExp as isRegularExpression, isSet, isSet as isValidSet, isSnakeCase, isString, isSymbol, isTimeWithUnit, isTruthy, isURL, isURL as isValidURL, isUUID, isUUIDv1, isUUIDv2, isUUIDv3, isUUIDv4, isUUIDv5, isUUIDv6, isUUIDv7, isUUIDv8, isUndefined, isValidTime, isValidTime as isValidTimeString, isValidTimeZoneId, isValidUTCOffset as isValidUTC, isValidUTCOffset };
|