create-vuetify 2.8.0 → 3.0.1

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 (115) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +30 -59
  3. package/dist/index.mjs +31156 -2465
  4. package/dist/nypm-D0-jh4wA.mjs +4 -0
  5. package/dist/nypm-DFp9HL5N.mjs +681 -0
  6. package/dist/rolldown-runtime-DA-mFLXi.mjs +15 -0
  7. package/dist/tar-CuErG4Sg.mjs +2941 -0
  8. package/package.json +39 -54
  9. package/bin/index.js +0 -3
  10. package/template/javascript/base/eslint.config.js +0 -3
  11. package/template/javascript/base/package.json +0 -13
  12. package/template/javascript/base/src/App.vue +0 -11
  13. package/template/javascript/base/src/components/HelloWorld.vue +0 -90
  14. package/template/javascript/base/src/pages/README.md +0 -5
  15. package/template/javascript/base/src/pages/index.vue +0 -7
  16. package/template/javascript/base/src/plugins/index.js +0 -15
  17. package/template/javascript/base/src/router/index.js +0 -35
  18. package/template/javascript/base/src/styles/README.md +0 -3
  19. package/template/javascript/base/src/styles/settings.scss +0 -10
  20. package/template/javascript/base/vite.config.mjs +0 -66
  21. package/template/javascript/default/.vscode/extensions.json +0 -3
  22. package/template/javascript/default/.vscode/settings.json +0 -3
  23. package/template/javascript/default/README.md +0 -79
  24. package/template/javascript/default/_browserslistrc +0 -4
  25. package/template/javascript/default/_editorconfig +0 -5
  26. package/template/javascript/default/_gitignore +0 -22
  27. package/template/javascript/default/index.html +0 -13
  28. package/template/javascript/default/jsconfig.json +0 -20
  29. package/template/javascript/default/package.json +0 -24
  30. package/template/javascript/default/public/favicon.ico +0 -0
  31. package/template/javascript/default/src/App.vue +0 -13
  32. package/template/javascript/default/src/assets/logo.png +0 -0
  33. package/template/javascript/default/src/assets/logo.svg +0 -6
  34. package/template/javascript/default/src/components/AppFooter.vue +0 -82
  35. package/template/javascript/default/src/components/HelloWorld.vue +0 -90
  36. package/template/javascript/default/src/components/README.md +0 -35
  37. package/template/javascript/default/src/main.js +0 -23
  38. package/template/javascript/default/src/plugins/README.md +0 -3
  39. package/template/javascript/default/src/plugins/index.js +0 -12
  40. package/template/javascript/default/src/plugins/vuetify.js +0 -19
  41. package/template/javascript/default/vite.config.mjs +0 -53
  42. package/template/javascript/essentials/_eslintrc-auto-import.json +0 -82
  43. package/template/javascript/essentials/package.json +0 -9
  44. package/template/javascript/essentials/src/App.vue +0 -9
  45. package/template/javascript/essentials/src/layouts/README.md +0 -5
  46. package/template/javascript/essentials/src/layouts/default.vue +0 -11
  47. package/template/javascript/essentials/src/plugins/index.js +0 -17
  48. package/template/javascript/essentials/src/router/index.js +0 -36
  49. package/template/javascript/essentials/src/stores/README.md +0 -5
  50. package/template/javascript/essentials/src/stores/app.js +0 -8
  51. package/template/javascript/essentials/src/stores/index.js +0 -4
  52. package/template/javascript/essentials/vite.config.mjs +0 -80
  53. package/template/typescript/base/env.d.ts +0 -2
  54. package/template/typescript/base/eslint.config.js +0 -3
  55. package/template/typescript/base/package.json +0 -13
  56. package/template/typescript/base/src/App.vue +0 -11
  57. package/template/typescript/base/src/components/HelloWorld.vue +0 -90
  58. package/template/typescript/base/src/pages/README.md +0 -5
  59. package/template/typescript/base/src/pages/index.vue +0 -7
  60. package/template/typescript/base/src/plugins/index.ts +0 -18
  61. package/template/typescript/base/src/router/index.ts +0 -35
  62. package/template/typescript/base/src/styles/README.md +0 -3
  63. package/template/typescript/base/src/styles/settings.scss +0 -10
  64. package/template/typescript/base/vite.config.mts +0 -70
  65. package/template/typescript/default/.vscode/extensions.json +0 -3
  66. package/template/typescript/default/.vscode/settings.json +0 -3
  67. package/template/typescript/default/README.md +0 -81
  68. package/template/typescript/default/_browserslistrc +0 -4
  69. package/template/typescript/default/_editorconfig +0 -6
  70. package/template/typescript/default/_gitignore +0 -22
  71. package/template/typescript/default/env.d.ts +0 -1
  72. package/template/typescript/default/index.html +0 -13
  73. package/template/typescript/default/package.json +0 -32
  74. package/template/typescript/default/public/favicon.ico +0 -0
  75. package/template/typescript/default/src/App.vue +0 -11
  76. package/template/typescript/default/src/assets/logo.png +0 -0
  77. package/template/typescript/default/src/assets/logo.svg +0 -6
  78. package/template/typescript/default/src/components/HelloWorld.vue +0 -90
  79. package/template/typescript/default/src/components/README.md +0 -35
  80. package/template/typescript/default/src/main.ts +0 -23
  81. package/template/typescript/default/src/plugins/README.md +0 -3
  82. package/template/typescript/default/src/plugins/index.ts +0 -15
  83. package/template/typescript/default/src/plugins/vuetify.ts +0 -19
  84. package/template/typescript/default/tsconfig.app.json +0 -14
  85. package/template/typescript/default/tsconfig.json +0 -11
  86. package/template/typescript/default/tsconfig.node.json +0 -19
  87. package/template/typescript/default/vite.config.mts +0 -53
  88. package/template/typescript/essentials/_eslintrc-auto-import.json +0 -82
  89. package/template/typescript/essentials/env.d.ts +0 -3
  90. package/template/typescript/essentials/package.json +0 -9
  91. package/template/typescript/essentials/src/App.vue +0 -9
  92. package/template/typescript/essentials/src/auto-imports.d.ts +0 -147
  93. package/template/typescript/essentials/src/components/AppFooter.vue +0 -82
  94. package/template/typescript/essentials/src/components.d.ts +0 -14
  95. package/template/typescript/essentials/src/layouts/README.md +0 -5
  96. package/template/typescript/essentials/src/layouts/default.vue +0 -11
  97. package/template/typescript/essentials/src/plugins/index.ts +0 -20
  98. package/template/typescript/essentials/src/router/index.ts +0 -36
  99. package/template/typescript/essentials/src/stores/README.md +0 -5
  100. package/template/typescript/essentials/src/stores/app.ts +0 -8
  101. package/template/typescript/essentials/src/stores/index.ts +0 -4
  102. package/template/typescript/essentials/src/typed-router.d.ts +0 -23
  103. package/template/typescript/essentials/vite.config.mts +0 -88
  104. package/template/typescript/nuxt/app-layout.vue +0 -5
  105. package/template/typescript/nuxt/app.vue +0 -9
  106. package/template/typescript/nuxt/assets/logo.png +0 -0
  107. package/template/typescript/nuxt/assets/logo.svg +0 -6
  108. package/template/typescript/nuxt/components/AppFooter.vue +0 -82
  109. package/template/typescript/nuxt/components/HelloWorld.vue +0 -90
  110. package/template/typescript/nuxt/layouts/default.vue +0 -9
  111. package/template/typescript/nuxt/modules/vuetify.ts +0 -137
  112. package/template/typescript/nuxt/pages/index.vue +0 -7
  113. package/template/typescript/nuxt/plugins/vuetify-nuxt.ts +0 -8
  114. package/template/typescript/nuxt/plugins/vuetify.ts +0 -14
  115. package/template/typescript/nuxt/vuetify.config.ts +0 -8
@@ -1,9 +0,0 @@
1
- <template>
2
- <v-app>
3
- <v-main>
4
- <NuxtPage />
5
- </v-main>
6
-
7
- <AppFooter />
8
- </v-app>
9
- </template>
@@ -1,6 +0,0 @@
1
- <svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M261.126 140.65L164.624 307.732L256.001 466L377.028 256.5L498.001 47H315.192L261.126 140.65Z" fill="#1697F6"/>
3
- <path d="M135.027 256.5L141.365 267.518L231.64 111.178L268.731 47H256H14L135.027 256.5Z" fill="#AEDDFF"/>
4
- <path d="M315.191 47C360.935 197.446 256 466 256 466L164.624 307.732L315.191 47Z" fill="#1867C0"/>
5
- <path d="M268.731 47C76.0026 47 141.366 267.518 141.366 267.518L268.731 47Z" fill="#7BC6FF"/>
6
- </svg>
@@ -1,82 +0,0 @@
1
- <script setup lang="ts">
2
- const items = shallowRef([
3
- {
4
- title: 'Vuetify Documentation',
5
- icon: `$vuetify`,
6
- href: 'https://vuetifyjs.com/',
7
- },
8
- {
9
- title: 'Vuetify Support',
10
- icon: 'mdi-shield-star-outline',
11
- href: 'https://support.vuetifyjs.com/',
12
- },
13
- {
14
- title: 'Vuetify X',
15
- icon: ['M2.04875 3.00002L9.77052 13.3248L1.99998 21.7192H3.74882L10.5519 14.3697L16.0486 21.7192H22L13.8437 10.8137L21.0765 3.00002H19.3277L13.0624 9.76874L8.0001 3.00002H2.04875ZM4.62054 4.28821H7.35461L19.4278 20.4308H16.6937L4.62054 4.28821Z'],
16
- href: 'https://x.com/vuetifyjs',
17
- },
18
- {
19
- title: 'Vuetify GitHub',
20
- icon: `mdi-github`,
21
- href: 'https://github.com/vuetifyjs/vuetify',
22
- },
23
- {
24
- title: 'Vuetify Discord',
25
- icon: ['M22,24L16.75,19L17.38,21H4.5A2.5,2.5 0 0,1 2,18.5V3.5A2.5,2.5 0 0,1 4.5,1H19.5A2.5,2.5 0 0,1 22,3.5V24M12,6.8C9.32,6.8 7.44,7.95 7.44,7.95C8.47,7.03 10.27,6.5 10.27,6.5L10.1,6.33C8.41,6.36 6.88,7.53 6.88,7.53C5.16,11.12 5.27,14.22 5.27,14.22C6.67,16.03 8.75,15.9 8.75,15.9L9.46,15C8.21,14.73 7.42,13.62 7.42,13.62C7.42,13.62 9.3,14.9 12,14.9C14.7,14.9 16.58,13.62 16.58,13.62C16.58,13.62 15.79,14.73 14.54,15L15.25,15.9C15.25,15.9 17.33,16.03 18.73,14.22C18.73,14.22 18.84,11.12 17.12,7.53C17.12,7.53 15.59,6.36 13.9,6.33L13.73,6.5C13.73,6.5 15.53,7.03 16.56,7.95C16.56,7.95 14.68,6.8 12,6.8M9.93,10.59C10.58,10.59 11.11,11.16 11.1,11.86C11.1,12.55 10.58,13.13 9.93,13.13C9.29,13.13 8.77,12.55 8.77,11.86C8.77,11.16 9.28,10.59 9.93,10.59M14.1,10.59C14.75,10.59 15.27,11.16 15.27,11.86C15.27,12.55 14.75,13.13 14.1,13.13C13.46,13.13 12.94,12.55 12.94,11.86C12.94,11.16 13.45,10.59 14.1,10.59Z'],
26
- href: 'https://community.vuetifyjs.com/',
27
- },
28
- {
29
- title: 'Vuetify Reddit',
30
- icon: `mdi-reddit`,
31
- href: 'https://reddit.com/r/vuetifyjs',
32
- },
33
- ])
34
- </script>
35
-
36
- <template>
37
- <v-footer
38
- app
39
- height="40"
40
- >
41
- <NuxtLink
42
- v-for="item in items"
43
- :key="item.title"
44
- class="d-inline-block mx-2 social-link"
45
- :href="item.href"
46
- rel="noopener noreferrer"
47
- target="_blank"
48
- :title="item.title"
49
- >
50
- <v-icon
51
- :icon="item.icon"
52
- :size="item.icon === '$vuetify' ? 24 : 16"
53
- />
54
- </NuxtLink>
55
-
56
- <div
57
- class="text-caption text-disabled"
58
- style="position: absolute; right: 16px;"
59
- >
60
- &copy; 2016-{{ (new Date()).getFullYear() }} <span class="d-none d-sm-inline-block">Vuetify, LLC</span>
61
-
62
- <NuxtLink
63
- class="text-decoration-none on-surface"
64
- href="https://vuetifyjs.com/about/licensing/"
65
- rel="noopener noreferrer"
66
- target="_blank"
67
- >
68
- MIT License
69
- </NuxtLink>
70
- </div>
71
- </v-footer>
72
- </template>
73
-
74
- <style scoped lang="sass">
75
- .social-link :deep(.v-icon)
76
- color: rgba(var(--v-theme-on-background), var(--v-disabled-opacity))
77
- text-decoration: none
78
- transition: .2s ease-in-out
79
-
80
- &:hover
81
- color: rgba(25, 118, 210, 1)
82
- </style>
@@ -1,90 +0,0 @@
1
- <template>
2
- <v-container class="fill-height d-flex align-center" max-width="900">
3
- <div>
4
- <v-img
5
- class="mb-4"
6
- height="150"
7
- src="~/assets/logo.png"
8
- />
9
-
10
- <div class="mb-8 text-center">
11
- <div class="text-body-2 font-weight-light mb-n1">Welcome to</div>
12
- <h1 class="text-h2 my-0 font-weight-bold">Vuetify</h1>
13
- </div>
14
-
15
- <v-row>
16
- <v-col cols="12">
17
- <v-card
18
- class="py-4"
19
- color="surface-variant"
20
- image="https://cdn.vuetifyjs.com/docs/images/one/create/feature.png"
21
- prepend-icon="mdi-rocket-launch-outline"
22
- rounded="lg"
23
- variant="tonal"
24
- >
25
- <template #image>
26
- <v-img position="top right" />
27
- </template>
28
-
29
- <template #title>
30
- <h2 class="text-h5 font-weight-bold">
31
- Get started
32
- </h2>
33
- </template>
34
-
35
- <template #subtitle>
36
- <div class="text-subtitle-1">
37
- Change this page by updating <v-kbd>{{ `<HelloWorld />` }}</v-kbd> in <v-kbd>components/HelloWorld.vue</v-kbd>.
38
- </div>
39
- </template>
40
- </v-card>
41
- </v-col>
42
-
43
- <v-col v-for="link in links" :key="link.href" cols="6">
44
- <v-card
45
- append-icon="mdi-open-in-new"
46
- class="py-4"
47
- color="surface-variant"
48
- :href="link.href"
49
- :prepend-icon="link.icon"
50
- rel="noopener noreferrer"
51
- rounded="lg"
52
- :subtitle="link.subtitle"
53
- target="_blank"
54
- :title="link.title"
55
- variant="tonal"
56
- />
57
- </v-col>
58
- </v-row>
59
- </div>
60
- </v-container>
61
- </template>
62
-
63
- <script setup>
64
- const links = [
65
- {
66
- href: 'https://vuetifyjs.com/',
67
- icon: 'mdi-text-box-outline',
68
- subtitle: 'Learn about all things Vuetify in our documentation.',
69
- title: 'Documentation',
70
- },
71
- {
72
- href: 'https://vuetifyjs.com/introduction/why-vuetify/#feature-guides',
73
- icon: 'mdi-star-circle-outline',
74
- subtitle: 'Explore available framework Features.',
75
- title: 'Features',
76
- },
77
- {
78
- href: 'https://vuetifyjs.com/components/all',
79
- icon: 'mdi-widgets-outline',
80
- subtitle: 'Discover components in the API Explorer.',
81
- title: 'Components',
82
- },
83
- {
84
- href: 'https://discord.vuetifyjs.com',
85
- icon: 'mdi-account-group-outline',
86
- subtitle: 'Connect with Vuetify developers.',
87
- title: 'Community',
88
- },
89
- ]
90
- </script>
@@ -1,9 +0,0 @@
1
- <template>
2
- <v-app>
3
- <v-main>
4
- <slot />
5
- </v-main>
6
-
7
- <AppFooter />
8
- </v-app>
9
- </template>
@@ -1,137 +0,0 @@
1
- import { defineNuxtModule } from '@nuxt/kit'
2
- import type { Options as ModuleOptions } from '@vuetify/loader-shared'
3
- import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
4
- import path from 'upath'
5
- import { isObject, resolveVuetifyBase } from '@vuetify/loader-shared'
6
- import { pathToFileURL } from 'node:url'
7
- import fs from 'node:fs'
8
- import fsp from 'node:fs/promises'
9
-
10
- // WARNING: Remove the file from modules directory if you install vuetify-nuxt-module
11
- export default defineNuxtModule<ModuleOptions>({
12
- meta: {
13
- name: 'vuetify-module',
14
- configKey: 'vuetify',
15
- },
16
- defaults: () => ({ styles: true }),
17
- setup (options, nuxt) {
18
- let configFile: string | undefined
19
- const vuetifyBase = resolveVuetifyBase()
20
- const noneFiles = new Set<string>()
21
- let isNone = false
22
- let sassVariables = false
23
- const PREFIX = 'vuetify-styles/'
24
- const SSR_PREFIX = `/@${PREFIX}`
25
- const resolveCss = resolveCssFactory()
26
-
27
- nuxt.hook('vite:extendConfig', viteInlineConfig => {
28
- // add vuetify transformAssetUrls
29
- viteInlineConfig.vue ??= {}
30
- viteInlineConfig.vue.template ??= {}
31
- viteInlineConfig.vue.template.transformAssetUrls = transformAssetUrls
32
-
33
- viteInlineConfig.plugins = viteInlineConfig.plugins ?? []
34
- viteInlineConfig.plugins.push(vuetify({
35
- autoImport: options.autoImport,
36
- styles: true,
37
- }), {
38
- name: 'vuetify:nuxt:styles',
39
- enforce: 'pre',
40
- async configResolved (config) {
41
- if (isObject(options.styles)) {
42
- sassVariables = true
43
- configFile = path.isAbsolute(options.styles.configFile) ? path.resolve(options.styles.configFile) : path.resolve(path.join(config.root || process.cwd(), options.styles.configFile))
44
- configFile = pathToFileURL(configFile).href
45
- } else {
46
- isNone = options.styles === 'none'
47
- }
48
- },
49
- async resolveId (source, importer, { custom, ssr }) {
50
- if (source.startsWith(PREFIX) || source.startsWith(SSR_PREFIX)) {
51
- if (/\.s[ca]ss$/.test(source)) {
52
- return source
53
- }
54
-
55
- const idx = source.indexOf('?')
56
- return idx === -1 ? source : source.slice(0, idx)
57
- }
58
- if (
59
- source === 'vuetify/styles' || (
60
- importer
61
- && source.endsWith('.css')
62
- && isSubdir(vuetifyBase, path.isAbsolute(source) ? source : importer)
63
- )
64
- ) {
65
- if (options.styles === 'sass') {
66
- return this.resolve(await resolveCss(source), importer, { skipSelf: true, custom })
67
- }
68
-
69
- const resolution = await this.resolve(source, importer, { skipSelf: true, custom })
70
-
71
- if (!resolution) {
72
- return undefined
73
- }
74
-
75
- const target = await resolveCss(resolution.id)
76
- if (isNone) {
77
- noneFiles.add(target)
78
- return target
79
- }
80
-
81
- return `${ssr ? SSR_PREFIX : PREFIX}${path.relative(vuetifyBase, target)}`
82
- }
83
-
84
- return undefined
85
- },
86
- load (id) {
87
- if (sassVariables) {
88
- const target = id.startsWith(PREFIX)
89
- ? path.resolve(vuetifyBase, id.slice(PREFIX.length))
90
- : (id.startsWith(SSR_PREFIX)
91
- ? path.resolve(vuetifyBase, id.slice(SSR_PREFIX.length))
92
- : undefined)
93
-
94
- if (target) {
95
- const suffix = /\.scss/.test(target) ? ';\n' : '\n'
96
- return {
97
- code: `@use "${configFile}"${suffix}@use "${pathToFileURL(target).href}"${suffix}`,
98
- map: {
99
- mappings: '',
100
- },
101
- }
102
- }
103
- }
104
-
105
- return isNone && noneFiles.has(id) ? '' : undefined
106
- },
107
- })
108
- })
109
- },
110
- })
111
-
112
- function resolveCssFactory () {
113
- const mappings = new Map<string, string>()
114
- return async (source: string) => {
115
- let mapping = mappings.get(source)
116
- if (!mapping) {
117
- try {
118
- mapping = source.replace(/\.css$/, '.sass')
119
- await fsp.access(mapping, fs.constants.R_OK)
120
- } catch (error) {
121
- if (!(error instanceof Error && 'code' in error && error.code === 'ENOENT')) {
122
- throw error
123
- }
124
- mapping = source.replace(/\.css$/, '.scss')
125
- }
126
- mappings.set(source, mapping)
127
- }
128
- return mapping
129
- }
130
- }
131
-
132
- function isSubdir (root: string, test: string) {
133
- const relative = path.relative(root, test)
134
- return relative && !relative.startsWith('..') && !path.isAbsolute(relative)
135
- }
136
-
137
- export { type Options as ModuleOptions } from '@vuetify/loader-shared'
@@ -1,7 +0,0 @@
1
- <script lang="ts" setup>
2
- //
3
- </script>
4
-
5
- <template>
6
- <HelloWorld />
7
- </template>
@@ -1,8 +0,0 @@
1
- export default defineNuxtPlugin(nuxtApp => {
2
- // check https://vuetify-nuxt-module.netlify.app/guide/nuxt-runtime-hooks.html
3
- nuxtApp.hook('vuetify:before-create', options => {
4
- if (import.meta.client) {
5
- console.log('vuetify:before-create', options)
6
- }
7
- })
8
- })
@@ -1,14 +0,0 @@
1
- import { createVuetify } from 'vuetify'
2
-
3
- export default defineNuxtPlugin(nuxtApp => {
4
- const vuetify = createVuetify({
5
- // WARNING: when switching ssr option in nuxt.config.ts file you need to manually change it here
6
- ssr: true,
7
- // your Vuetify options here
8
- theme: {
9
- defaultTheme: 'dark',
10
- },
11
- })
12
-
13
- nuxtApp.vueApp.use(vuetify)
14
- })
@@ -1,8 +0,0 @@
1
- import { defineVuetifyConfiguration } from 'vuetify-nuxt-module/custom-configuration'
2
-
3
- export default defineVuetifyConfiguration({
4
- // your Vuetify options here
5
- theme: {
6
- defaultTheme: 'dark',
7
- },
8
- })