@vuetify/v0 0.0.3 → 0.0.7

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.
Files changed (35) hide show
  1. package/dist/browser/index.js +2718 -1496
  2. package/dist/components/index.d.ts +4 -7
  3. package/dist/components/index.js +6 -7
  4. package/dist/{components-DVuB4lnH.js → components-ClYPFhaF.js} +164 -8
  5. package/dist/composables/index.d.ts +3 -7
  6. package/dist/composables/index.js +4 -7
  7. package/dist/composables-DkRocfS_.js +3753 -0
  8. package/dist/constants/index.d.ts +1 -1
  9. package/dist/constants/index.js +3 -3
  10. package/dist/{globals-DZvNEOB4.js → globals-BQnaatWT.js} +2 -2
  11. package/dist/{htmlElements-SjqYu0am.js → htmlElements-lF7PGahL.js} +1 -1
  12. package/dist/{index-DVKeyWc5.d.ts → index-BKc0YiL1.d.ts} +2 -2
  13. package/dist/index-BVouO8cc.d.ts +410 -0
  14. package/dist/index-BoDCUSPn.d.ts +2765 -0
  15. package/dist/{index-LBy5OPMu.d.ts → index-C_lAPFXS.d.ts} +1 -1
  16. package/dist/{index-BozA2pze.d.ts → index-DIX3zaZG.d.ts} +3 -10
  17. package/dist/index.d.ts +6 -7
  18. package/dist/index.js +7 -10
  19. package/dist/types/index.d.ts +1 -1
  20. package/dist/utilities/index.d.ts +3 -3
  21. package/dist/utilities/index.js +2 -2
  22. package/dist/{utilities-D9rWEgQK.js → utilities-rsKHgU2m.js} +5 -32
  23. package/package.json +1 -3
  24. package/dist/composables-yeVk-ULz.js +0 -1270
  25. package/dist/factories/index.d.ts +0 -2
  26. package/dist/factories/index.js +0 -3
  27. package/dist/factories-BEpawPUw.js +0 -96
  28. package/dist/index-Ckt12ON6.d.ts +0 -75
  29. package/dist/index-D0L_ydyW.d.ts +0 -1396
  30. package/dist/index-tUyghL98.d.ts +0 -19
  31. package/dist/transformers/index.d.ts +0 -2
  32. package/dist/transformers/index.js +0 -4
  33. package/dist/transformers-CWrxLIkw.js +0 -122
  34. package/dist/useTheme-DCXkw_kv.js +0 -1208
  35. /package/dist/{constants-DiTCgvMU.js → constants-De5c3_aB.js} +0 -0
@@ -1,2 +0,0 @@
1
- import { ContextKey, ContextTrinity, Plugin, PluginOptions, createContext, createPlugin, createTrinity, provideContext, useContext } from "../index-Ckt12ON6.js";
2
- export { ContextKey, ContextTrinity, Plugin, PluginOptions, createContext, createPlugin, createTrinity, provideContext, useContext };
@@ -1,3 +0,0 @@
1
- import { createContext, createPlugin, createTrinity, provideContext, useContext } from "../factories-BEpawPUw.js";
2
-
3
- export { createContext, createPlugin, createTrinity, provideContext, useContext };
@@ -1,96 +0,0 @@
1
- import { inject, provide } from "vue";
2
-
3
- //#region src/factories/createContext/index.ts
4
- /**
5
- * A simple wrapper for tapping into a v0 namespace
6
- * @param key The provided string or InjectionKey
7
- * @template Z The type values for the context.
8
- * @returns The injected context
9
- * @throws Error if namespace is not found.
10
- *
11
- * @see https://vuejs.org/api/composition-api-dependency-injection.html#inject
12
- * @see https://0.vuetifyjs.com/composables/foundation/create-context
13
- */
14
- function useContext(key) {
15
- const context = inject(key, void 0);
16
- if (context === void 0) throw new Error(`Context "${String(key)}" not found. Ensure it's provided by an ancestor.`);
17
- return context;
18
- }
19
- /**
20
- * A simple wrapper for providing Vue context.
21
- *
22
- * @param key The provided string or InjectionKey
23
- * @param context The context value to provide
24
- * @param app Optional Vue app instance for global provide
25
- * @returns The provided context
26
- *
27
- * @see https://vuejs.org/api/composition-api-dependency-injection.html#provide
28
- * @see https://0.vuetifyjs.com/composables/foundation/create-context
29
- */
30
- function provideContext(key, context, app) {
31
- app?.provide(key, context) ?? provide(key, context);
32
- return context;
33
- }
34
- /**
35
- * A simple wrapper for Vues provide & inject systems
36
- *
37
- * @param key The provided string or InjectionKey
38
- * @template Z The type values for the context.
39
- * @returns A tuple containing provide/inject
40
- *
41
- * @see https://vuejs.org/api/composition-api-dependency-injection.html#provide
42
- * @see https://0.vuetifyjs.com/composables/foundation/create-context
43
- */
44
- function createContext(_key) {
45
- function _provideContext(context, app) {
46
- return provideContext(_key, context, app);
47
- }
48
- function _useContext(key = _key) {
49
- return useContext(key);
50
- }
51
- return [_useContext, _provideContext];
52
- }
53
-
54
- //#endregion
55
- //#region src/factories/createPlugin/index.ts
56
- /**
57
- * A universal plugin factory to reduce boilerplate code for Vue plugin creation
58
- * @param options Configurable object with namespace and provide/setup methods
59
- * @returns A Vue plugin object with install method that runs app w/ context
60
- *
61
- * @see https://vuejs.org/guide/reusability/plugins
62
- * @see https://vuejs.org/api/application.html#app-runwithcontext
63
- * @see https://0.vuetifyjs.com/factories/create-plugin
64
- */
65
- function createPlugin(options) {
66
- return { install(app) {
67
- app.runWithContext(() => {
68
- options.provide(app);
69
- options.setup?.(app);
70
- });
71
- } };
72
- }
73
-
74
- //#endregion
75
- //#region src/factories/createTrinity/index.ts
76
- /**
77
- * A tuple containing Vue's provide/inject and a context object
78
- * @param createContext The function that creates the context
79
- * @param provideContext The function that provides context
80
- * @param context The underlying context object singleton
81
- * @template Z The type parameter for the context value
82
- * @template E The vmodel type for the context state.
83
- * @returns [createContext, provideContext, context]
84
- *
85
- * @see https://0.vuetifyjs.com/composables/foundation/create-trinity
86
- */
87
- function createTrinity(createContext$1, provideContext$1, context) {
88
- return [
89
- createContext$1,
90
- (_context = context, app) => provideContext$1(_context, app),
91
- context
92
- ];
93
- }
94
-
95
- //#endregion
96
- export { createContext, createPlugin, createTrinity, provideContext, useContext };
@@ -1,75 +0,0 @@
1
- import { App, InjectionKey } from "vue";
2
-
3
- //#region src/factories/createContext/index.d.ts
4
- type ContextKey<Z> = InjectionKey<Z> | string;
5
- /**
6
- * A simple wrapper for tapping into a v0 namespace
7
- * @param key The provided string or InjectionKey
8
- * @template Z The type values for the context.
9
- * @returns The injected context
10
- * @throws Error if namespace is not found.
11
- *
12
- * @see https://vuejs.org/api/composition-api-dependency-injection.html#inject
13
- * @see https://0.vuetifyjs.com/composables/foundation/create-context
14
- */
15
- declare function useContext<Z>(key: ContextKey<Z>): Z & ({} | null);
16
- /**
17
- * A simple wrapper for providing Vue context.
18
- *
19
- * @param key The provided string or InjectionKey
20
- * @param context The context value to provide
21
- * @param app Optional Vue app instance for global provide
22
- * @returns The provided context
23
- *
24
- * @see https://vuejs.org/api/composition-api-dependency-injection.html#provide
25
- * @see https://0.vuetifyjs.com/composables/foundation/create-context
26
- */
27
- declare function provideContext<Z>(key: ContextKey<Z>, context: Z, app?: App): Z;
28
- /**
29
- * A simple wrapper for Vues provide & inject systems
30
- *
31
- * @param key The provided string or InjectionKey
32
- * @template Z The type values for the context.
33
- * @returns A tuple containing provide/inject
34
- *
35
- * @see https://vuejs.org/api/composition-api-dependency-injection.html#provide
36
- * @see https://0.vuetifyjs.com/composables/foundation/create-context
37
- */
38
- declare function createContext<Z>(_key: ContextKey<Z>): readonly [(key?: ContextKey<Z>) => Z & ({} | null), (context: Z, app?: App) => Z];
39
- //#endregion
40
- //#region src/factories/createPlugin/index.d.ts
41
- interface PluginOptions {
42
- namespace: string;
43
- provide: (app: App) => void;
44
- setup?: (app: App) => void;
45
- }
46
- interface Plugin {
47
- install: (app: App, ...options: any[]) => void;
48
- }
49
- /**
50
- * A universal plugin factory to reduce boilerplate code for Vue plugin creation
51
- * @param options Configurable object with namespace and provide/setup methods
52
- * @returns A Vue plugin object with install method that runs app w/ context
53
- *
54
- * @see https://vuejs.org/guide/reusability/plugins
55
- * @see https://vuejs.org/api/application.html#app-runwithcontext
56
- * @see https://0.vuetifyjs.com/factories/create-plugin
57
- */
58
- declare function createPlugin<Z extends Plugin = Plugin>(options: PluginOptions): Z;
59
- //#endregion
60
- //#region src/factories/createTrinity/index.d.ts
61
- type ContextTrinity<Z = unknown> = readonly [() => Z, (context?: Z, app?: App) => Z, Z];
62
- /**
63
- * A tuple containing Vue's provide/inject and a context object
64
- * @param createContext The function that creates the context
65
- * @param provideContext The function that provides context
66
- * @param context The underlying context object singleton
67
- * @template Z The type parameter for the context value
68
- * @template E The vmodel type for the context state.
69
- * @returns [createContext, provideContext, context]
70
- *
71
- * @see https://0.vuetifyjs.com/composables/foundation/create-trinity
72
- */
73
- declare function createTrinity<Z = unknown>(createContext: () => Z, provideContext: (_context?: Z, app?: App) => Z, context: Z): ContextTrinity<Z>;
74
- //#endregion
75
- export { ContextKey, ContextTrinity, Plugin, PluginOptions, createContext, createPlugin, createTrinity, provideContext, useContext };