@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.
- package/README.md +128 -47
- package/dist/browser/index.js +1645 -1128
- package/dist/components/index.d.mts +3 -3
- package/dist/components/index.mjs +4 -4
- package/dist/{components-DRdenC8b.mjs → components-BomyjmT3.mjs} +24 -3
- package/dist/composables/index.d.mts +4 -4
- package/dist/composables/index.mjs +5 -5
- package/dist/{composables-DG1MHp-R.mjs → composables-CbAPZabd.mjs} +276 -29
- package/dist/constants/index.mjs +1 -1
- package/dist/{globals-BGVqrlN7.mjs → globals-C3JrEDXZ.mjs} +2 -1
- package/dist/index-4jSy8KIt.d.mts +73 -0
- package/dist/{index-oQuVnpOj.d.mts → index-B0QJdwz9.d.mts} +254 -208
- package/dist/index-CxeZr8jO.d.mts +270 -0
- package/dist/{index-DaX9-kmY.d.mts → index-MLb3LH9a.d.mts} +9 -7
- package/dist/{index-CH7DpIK8.d.mts → index-OU0IRbIS.d.mts} +127 -10
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +6 -6
- package/dist/types/index.d.mts +1 -1
- package/dist/{useStep-DC_JvZpy.mjs → useStep-CfgBbrJB.mjs} +1088 -1070
- package/dist/utilities/index.d.mts +2 -2
- package/dist/utilities/index.mjs +1 -1
- package/dist/utilities-CjDz-Xvn.mjs +369 -0
- package/package.json +3 -21
- package/dist/index-B-jVvwsm.d.mts +0 -71
- package/dist/index-C5LQZd3v.d.mts +0 -11
- package/dist/utilities-JxCe-nF2.mjs +0 -139
package/dist/constants/index.mjs
CHANGED
|
@@ -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-
|
|
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.
|
|
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 };
|