@vuetify/v0 0.0.14 → 0.0.16

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.
@@ -1,2 +1,2 @@
1
- import { a as isSelfClosingTag, c as SUPPORTS_MATCH_MEDIA, d as SUPPORTS_TOUCH, f as __LOGGER_ENABLED__, i as SelfClosingElement, l as SUPPORTS_MUTATION_OBSERVER, n as HTMLElementName, o as IN_BROWSER, p as version, r as SELF_CLOSING_TAGS, s as SUPPORTS_INTERSECTION_OBSERVER, t as COMMON_ELEMENTS, u as SUPPORTS_OBSERVER } from "../index-8AIxAM2d.mjs";
1
+ import { a as isSelfClosingTag, c as SUPPORTS_MATCH_MEDIA, d as SUPPORTS_TOUCH, f as __LOGGER_ENABLED__, i as SelfClosingElement, l as SUPPORTS_MUTATION_OBSERVER, n as HTMLElementName, o as IN_BROWSER, p as version, r as SELF_CLOSING_TAGS, s as SUPPORTS_INTERSECTION_OBSERVER, t as COMMON_ELEMENTS, u as SUPPORTS_OBSERVER } from "../index-B6lIRI3i.mjs";
2
2
  export { COMMON_ELEMENTS, HTMLElementName, IN_BROWSER, SELF_CLOSING_TAGS, SUPPORTS_INTERSECTION_OBSERVER, SUPPORTS_MATCH_MEDIA, SUPPORTS_MUTATION_OBSERVER, SUPPORTS_OBSERVER, SUPPORTS_TOUCH, SelfClosingElement, __LOGGER_ENABLED__, isSelfClosingTag, version };
@@ -1,5 +1,5 @@
1
1
  import { n as SELF_CLOSING_TAGS, r as isSelfClosingTag, t as COMMON_ELEMENTS } from "../htmlElements-BYo-fMlZ.mjs";
2
- import { a as SUPPORTS_OBSERVER, c as version, i as SUPPORTS_MUTATION_OBSERVER, n as SUPPORTS_INTERSECTION_OBSERVER, o as SUPPORTS_TOUCH, r as SUPPORTS_MATCH_MEDIA, s as __LOGGER_ENABLED__, t as IN_BROWSER } from "../globals-D7kNBw5Q.mjs";
3
- import "../constants-Xfszzyok.mjs";
2
+ import { a as SUPPORTS_OBSERVER, c as version, i as SUPPORTS_MUTATION_OBSERVER, n as SUPPORTS_INTERSECTION_OBSERVER, o as SUPPORTS_TOUCH, r as SUPPORTS_MATCH_MEDIA, s as __LOGGER_ENABLED__, t as IN_BROWSER } from "../globals-Rnihe4SF.mjs";
3
+ import "../constants-BWV0uYsM.mjs";
4
4
 
5
5
  export { COMMON_ELEMENTS, IN_BROWSER, SELF_CLOSING_TAGS, SUPPORTS_INTERSECTION_OBSERVER, SUPPORTS_MATCH_MEDIA, SUPPORTS_MUTATION_OBSERVER, SUPPORTS_OBSERVER, SUPPORTS_TOUCH, __LOGGER_ENABLED__, isSelfClosingTag, version };
@@ -5,7 +5,7 @@ const SUPPORTS_MATCH_MEDIA = IN_BROWSER && "matchMedia" in window && typeof wind
5
5
  const SUPPORTS_OBSERVER = IN_BROWSER && "ResizeObserver" in window;
6
6
  const SUPPORTS_INTERSECTION_OBSERVER = IN_BROWSER && "IntersectionObserver" in window;
7
7
  const SUPPORTS_MUTATION_OBSERVER = IN_BROWSER && "MutationObserver" in window;
8
- const version = "0.0.14";
8
+ const version = "0.0.16";
9
9
  const __LOGGER_ENABLED__ = process.env.NODE_ENV !== "production" || process.env.VITE_LOGGER_ENABLED === "true";
10
10
 
11
11
  //#endregion
@@ -0,0 +1,71 @@
1
+ import { n as DeepPartial } from "./index-Bd3J4RNS.mjs";
2
+
3
+ //#region src/utilities/helpers.d.ts
4
+ declare function isFunction(item: unknown): item is Function;
5
+ declare function isString(item: unknown): item is string;
6
+ declare function isNumber(item: unknown): item is number;
7
+ declare function isBoolean(item: unknown): item is boolean;
8
+ declare function isObject(item: unknown): item is Record<string, unknown>;
9
+ declare function isArray(item: unknown): item is unknown[];
10
+ declare function isNull(item: unknown): item is null;
11
+ declare function isNullOrUndefined(item: unknown): item is null | undefined;
12
+ declare function isUndefined(item: unknown): item is undefined;
13
+ declare function isPrimitive(item: unknown): item is string | number | boolean;
14
+ declare function isSymbol(item: unknown): item is symbol;
15
+ declare function isNaN(item: unknown): item is number;
16
+ declare function mergeDeep<T extends object>(target: T, ...sources: DeepPartial<T>[]): T;
17
+ declare function genId(): string;
18
+ /**
19
+ * Clamps a value between a minimum and maximum
20
+ *
21
+ * @param value The value to clamp
22
+ * @param min The minimum value (default: 0)
23
+ * @param max The maximum value (default: 1)
24
+ * @returns The clamped value
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * clamp(5, 0, 10) // 5
29
+ * clamp(-5, 0, 10) // 0
30
+ * clamp(15, 0, 10) // 10
31
+ * ```
32
+ */
33
+ declare function clamp(value: number, min?: number, max?: number): number;
34
+ /**
35
+ * Creates an array of sequential numbers
36
+ *
37
+ * @param length The length of the array to create
38
+ * @param start The starting index (default: 0)
39
+ * @returns An array of sequential numbers
40
+ *
41
+ * @example
42
+ * ```ts
43
+ * range(3) // [0, 1, 2]
44
+ * range(3, 1) // [1, 2, 3]
45
+ * range(5, 10) // [10, 11, 12, 13, 14]
46
+ * range(0) // []
47
+ * ```
48
+ */
49
+ declare function range(length: number, start?: number): number[];
50
+ /**
51
+ * Debounces a function call by the specified delay
52
+ *
53
+ * @param fn The function to debounce
54
+ * @param delay The delay in milliseconds
55
+ * @returns A debounced function with clear and immediate methods
56
+ *
57
+ * @example
58
+ * ```ts
59
+ * const debouncedFn = debounce(() => console.log('called'), 500)
60
+ * debouncedFn() // Will call after 500ms
61
+ * debouncedFn.clear() // Cancel pending call
62
+ * debouncedFn.immediate() // Call immediately
63
+ * ```
64
+ */
65
+ declare function debounce<T extends (...args: any[]) => any>(fn: T, delay: number): {
66
+ (...args: Parameters<T>): void;
67
+ clear(): void;
68
+ immediate(...args: Parameters<T>): void;
69
+ };
70
+ //#endregion
71
+ export { range as _, isBoolean as a, isNull as c, isObject as d, isPrimitive as f, mergeDeep as g, isUndefined as h, isArray as i, isNullOrUndefined as l, isSymbol as m, debounce as n, isFunction as o, isString as p, genId as r, isNaN as s, clamp as t, isNumber as u };