vuetify-nuxt-module 0.2.1 → 0.2.2
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 +19 -13
- package/dist/module.d.ts +4 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/plugins/config.d.ts +1 -22
- package/dist/runtime/plugins/config.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
<
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<picture>
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/userquin/vuetify-nuxt-module/raw/main/hero-dark.svg" />
|
|
4
|
+
<img alt="vuetify-nuxt-module - Zero-config Nuxt module for Vuetify" src='https://github.com/userquin/vuetify-nuxt-module/raw/main/hero.svg' alt="vuetify-nuxt-module - Zero-config Nuxt module for Vuetify"><br>
|
|
5
|
+
</picture>
|
|
6
|
+
<p>Zero-config Nuxt module for Vuetify</p>
|
|
7
|
+
</div>
|
|
5
8
|
|
|
6
9
|
<p align='center'>
|
|
7
10
|
<a href='https://www.npmjs.com/package/vuetify-nuxt-module' target="__blank">
|
|
@@ -33,10 +36,11 @@ Zero-config Nuxt module for Vuetify
|
|
|
33
36
|
- ✨ **Configurable Styles**: configure your variables using [Vuetify SASS Variables](https://vuetifyjs.com/en/features/sass-variables/)
|
|
34
37
|
- 💥 **SSR**: automatic SSR detection and configuration
|
|
35
38
|
- 😃 **Icon Fonts**: configure the [icon font](https://vuetifyjs.com/en/features/icon-fonts/) you want to use, the module will automatically import it for you using CDN or local dependencies
|
|
36
|
-
-
|
|
39
|
+
- 🎭 **SVG Icons**: ready to use [@mdi/js](https://www.npmjs.com/package/@mdi/js) and [@fortawesome/vue-fontawesome](https://www.npmjs.com/package/@fortawesome/vue-fontawesome) SVG icons packs
|
|
37
40
|
- 📦 **Multiple Icon Sets**: register [multiple icon sets](https://vuetifyjs.com/en/features/icon-fonts/#multiple-icon-sets)
|
|
38
41
|
- 🌍 **I18n Ready**: install [@nuxtjs/i18n](https://v8.i18n.nuxtjs.org/) Nuxt module, and you're ready to use Vuetify [internationalization](https://vuetifyjs.com/en/features/internationalization/) features
|
|
39
42
|
- 📆 **Date Components**: use Vuetify components [that require date functionality](https://vuetifyjs.com/en/features/dates/) installing and configuring one of the [@date-io](https://github.com/dmtrKovalenko/date-io#projects) adapters
|
|
43
|
+
- 🎨 **Vuetify Blueprints (WIP)**: use [Vuetify Blueprints](https://vuetifyjs.com/en/features/blueprints/) to quickly scaffold components
|
|
40
44
|
- 🦾 **Type Strong**: written in [TypeScript](https://www.typescriptlang.org/)
|
|
41
45
|
|
|
42
46
|
## 📦 Install
|
|
@@ -128,7 +132,7 @@ vuetify: {
|
|
|
128
132
|
}
|
|
129
133
|
```
|
|
130
134
|
|
|
131
|
-
##
|
|
135
|
+
## 🎭 SVG Icons
|
|
132
136
|
|
|
133
137
|
This module supports the following SVG icon libraries:
|
|
134
138
|
- [@mdi/js](https://www.npmjs.com/package/@mdi/js)
|
|
@@ -155,7 +159,9 @@ vuetify: {
|
|
|
155
159
|
defaultSet: 'mdi-svg',
|
|
156
160
|
svg: {
|
|
157
161
|
mdi: {
|
|
158
|
-
|
|
162
|
+
aliases: {
|
|
163
|
+
account: 'mdiAccount'
|
|
164
|
+
}
|
|
159
165
|
}
|
|
160
166
|
}
|
|
161
167
|
}
|
|
@@ -240,15 +246,15 @@ If you want to use a custom date adapter, you can configure it using `vuetifyOpt
|
|
|
240
246
|
|
|
241
247
|
Check out [vuetify-date](./src/runtime/plugins/vuetify-date.mts) plugin for an example of a custom date adapter and how to access to the configuration.
|
|
242
248
|
|
|
243
|
-
##
|
|
249
|
+
## 🎨 Vuetify Blueprints
|
|
244
250
|
|
|
245
251
|
**WIP**
|
|
246
|
-
<!--
|
|
247
|
-
Check out the type declaration [src/types.ts](./src/types.ts) and the following links for more details.
|
|
248
252
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
253
|
+
## 👀 Full config
|
|
254
|
+
|
|
255
|
+
Check out the type declaration [src/types.ts](./src/types.ts).
|
|
256
|
+
|
|
257
|
+
The virtual modules can be found in [configuration.d.ts](./configuration.d.ts) file.
|
|
252
258
|
|
|
253
259
|
## 📄 License
|
|
254
260
|
|
package/dist/module.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
+
import * as vuetify from 'vuetify';
|
|
2
3
|
import { VuetifyOptions } from 'vuetify';
|
|
3
4
|
|
|
4
5
|
type BooleanOrArrayString = boolean | string[];
|
|
@@ -128,6 +129,9 @@ interface ModuleOptions {
|
|
|
128
129
|
vuetifyOptions?: VOptions;
|
|
129
130
|
}
|
|
130
131
|
declare module '#app' {
|
|
132
|
+
interface NuxtApp {
|
|
133
|
+
$vuetify: ReturnType<typeof vuetify['createVuetify']>;
|
|
134
|
+
}
|
|
131
135
|
interface RuntimeNuxtHooks {
|
|
132
136
|
'vuetify:configuration': (options: {
|
|
133
137
|
isDev: boolean;
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { resolveVuetifyBase, normalizePath, writeStyles, cacheDir } from '@vueti
|
|
|
6
6
|
import { isAbsolute, join, relative } from 'pathe';
|
|
7
7
|
import { normalizePath as normalizePath$1 } from 'vite';
|
|
8
8
|
|
|
9
|
-
const version = "0.2.
|
|
9
|
+
const version = "0.2.2";
|
|
10
10
|
|
|
11
11
|
function isSubdir(root, test) {
|
|
12
12
|
const relative$1 = relative(root, test);
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
export declare function configureVuetify(): Promise<
|
|
2
|
-
install: (app: import("vue").App<any>) => void;
|
|
3
|
-
defaults: import("vue").Ref<import("vuetify/lib/framework.mjs").DefaultsInstance>;
|
|
4
|
-
display: import("vuetify/lib/framework.mjs").DisplayInstance;
|
|
5
|
-
theme: import("vuetify/lib/framework.mjs").ThemeInstance & {
|
|
6
|
-
install: (app: import("vue").App<any>) => void;
|
|
7
|
-
};
|
|
8
|
-
icons: Record<string, any>;
|
|
9
|
-
locale: {
|
|
10
|
-
isRtl: import("vue").Ref<boolean>;
|
|
11
|
-
rtl: import("vue").Ref<Record<string, boolean>>;
|
|
12
|
-
rtlClasses: import("vue").Ref<string>;
|
|
13
|
-
name: string;
|
|
14
|
-
messages: import("vue").Ref<import("vuetify/lib/framework.mjs").LocaleMessages>;
|
|
15
|
-
current: import("vue").Ref<string>;
|
|
16
|
-
fallback: import("vue").Ref<string>;
|
|
17
|
-
t: (key: string, ...params: unknown[]) => string;
|
|
18
|
-
n: (value: number) => string;
|
|
19
|
-
provide: (props: import("vuetify/lib/framework.mjs").LocaleOptions) => import("vuetify/lib/framework.mjs").LocaleInstance;
|
|
20
|
-
};
|
|
21
|
-
date: Record<string, any>;
|
|
22
|
-
}>;
|
|
1
|
+
export declare function configureVuetify(): Promise<void>;
|
|
@@ -7,8 +7,8 @@ export async function configureVuetify() {
|
|
|
7
7
|
await nuxtApp.hooks.callHook("vuetify:configuration", { isDev, vuetifyOptions });
|
|
8
8
|
const vuetify = createVuetify(vuetifyOptions);
|
|
9
9
|
nuxtApp.vueApp.use(vuetify);
|
|
10
|
+
nuxtApp.provide("vuetify", vuetify);
|
|
10
11
|
if (process.client) {
|
|
11
12
|
isDev && console.log("Vuetify 3 initialized", vuetify);
|
|
12
13
|
}
|
|
13
|
-
return vuetify;
|
|
14
14
|
}
|