@vuetify/v0 0.0.18 → 0.0.21

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,5 +1,5 @@
1
1
  import { n as SELF_CLOSING_TAGS, r as isSelfClosingTag, t as COMMON_ELEMENTS } from "../htmlElements-CXObxj0V.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-BGVqrlN7.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-C3JrEDXZ.mjs";
3
3
  import "../constants-DypzAkYp.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,8 @@ 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.18";
8
+ const version = "0.0.21";
9
+ /* v8 ignore next -- build-time constant, __DEV__ short-circuits in tests */
9
10
  const __LOGGER_ENABLED__ = process.env.NODE_ENV !== "production" || process.env.VITE_LOGGER_ENABLED === "true";
10
11
 
11
12
  //#endregion
@@ -0,0 +1,73 @@
1
+ import { h } from "vue";
2
+
3
+ //#region src/types/index.d.ts
4
+
5
+ /**
6
+ * Valid element types for Vue's `h()` render function
7
+ *
8
+ * @remarks
9
+ * Includes HTML tag names, component definitions, and functional components.
10
+ * Used by the `Atom` component for polymorphic rendering.
11
+ */
12
+ type DOMElement = Parameters<typeof h>[0];
13
+ /**
14
+ * Generic object with string keys and any values
15
+ *
16
+ * @remarks
17
+ * Use sparingly - prefer `UnknownObject` for better type safety.
18
+ */
19
+ type GenericObject = Record<string, any>;
20
+ /**
21
+ * Object with string keys and unknown values
22
+ *
23
+ * @remarks
24
+ * Safer alternative to `GenericObject` that requires type narrowing.
25
+ */
26
+ type UnknownObject = Record<string, unknown>;
27
+ /**
28
+ * Identifier type used throughout the registry system
29
+ *
30
+ * @remarks
31
+ * All tickets, items, and registrable entities use this type for their `id` property.
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const id: ID = 'item-1' // string
36
+ * const id: ID = 42 // number
37
+ * ```
38
+ */
39
+ type ID = string | number;
40
+ /**
41
+ * Recursively makes all properties of T optional
42
+ *
43
+ * @template T The object type to make deeply partial
44
+ *
45
+ * @remarks
46
+ * Used by `mergeDeep` to type partial source objects.
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * type User = { name: string; address: { city: string } }
51
+ * type PartialUser = DeepPartial<User>
52
+ * // { name?: string; address?: { city?: string } }
53
+ * ```
54
+ */
55
+ type DeepPartial<T> = T extends object ? { [P in keyof T]?: DeepPartial<T[P]> } : T;
56
+ /**
57
+ * Union type that accepts either a single value or an array
58
+ *
59
+ * @template T The base type
60
+ *
61
+ * @remarks
62
+ * Used for APIs that accept both single items and arrays.
63
+ *
64
+ * @example
65
+ * ```ts
66
+ * function process(input: MaybeArray<string>) { ... }
67
+ * process('single') // OK
68
+ * process(['a', 'b', 'c']) // OK
69
+ * ```
70
+ */
71
+ type MaybeArray<T> = T | T[];
72
+ //#endregion
73
+ export { MaybeArray as a, ID as i, DeepPartial as n, UnknownObject as o, GenericObject as r, DOMElement as t };