diff --git a/docs/app.vue b/docs/app.vue index 2f3615c8bf..cecf0b6ea9 100644 --- a/docs/app.vue +++ b/docs/app.vue @@ -79,7 +79,7 @@ const toggleDark = () => { const sections = [ { label: 'Getting Started', links: [{ label: 'Usage', to: '/' }, { label: 'Examples', to: '/examples' }, { label: 'Migration', to: '/migration' }, { label: 'Dark mode', to: '/dark' }] }, - { label: 'Elements', links: [{ label: 'Avatar', to: '/components/Avatar' }, { label: 'AvatarGroup', to: '/components/AvatarGroup' }, { label: 'Badge', to: '/components/Badge' }, { label: 'Button', to: '/components/Button' }, { label: 'Dropdown', to: '/components/Dropdown' }, { label: 'Icon', to: '/components/Icon' }] }, + { label: 'Elements', links: [{ label: 'Avatar', to: '/components/Avatar' }, { label: 'AvatarGroup', to: '/components/AvatarGroup' }, { label: 'Badge', to: '/components/Badge' }, { label: 'Button', to: '/components/Button' }, { label: 'Dropdown', to: '/components/Dropdown' }] }, { label: 'Feedback', links: [{ label: 'Alert', to: '/components/Alert' }, { label: 'AlertDialog', to: '/components/AlertDialog' }] }, { label: 'Forms', links: [{ label: 'Checkbox', to: '/components/Checkbox' }, { label: 'Input', to: '/components/Input' }, { label: 'FormGroup', to: '/components/FormGroup' }, { label: 'Radio', to: '/components/Radio' }, { label: 'Select', to: '/components/Select' }, { label: 'SelectCustom', to: '/components/SelectCustom' }, { label: 'Textarea', to: '/components/Textarea' }, { label: 'Toggle', to: '/components/Toggle' }] }, { label: 'Layout', links: [{ label: 'Card', to: '/components/Card' }, { label: 'Container', to: '/components/Container' }] }, diff --git a/docs/pages/examples.vue b/docs/pages/examples.vue index a3fe8a165e..1ea9105412 100644 --- a/docs/pages/examples.vue +++ b/docs/pages/examples.vue @@ -43,7 +43,7 @@
-

@@ -117,7 +117,7 @@

- +
diff --git a/docs/pages/migration.vue b/docs/pages/migration.vue index b46b81d728..02288ae0b7 100644 --- a/docs/pages/migration.vue +++ b/docs/pages/migration.vue @@ -105,13 +105,6 @@ const components = [ preset: true, typescript: true }, - { - label: 'Icon', - to: '/components/Icon', - nuxt3: true, - capi: true, - typescript: true - }, { label: 'Link', to: '/components/Link', diff --git a/package.json b/package.json index 221a7ef551..9b88b53ddb 100644 --- a/package.json +++ b/package.json @@ -25,11 +25,11 @@ "release": "yarn lint && standard-version && git push --follow-tags" }, "dependencies": { - "@headlessui/vue": "1.7.9", + "@headlessui/vue": "^1.7.10", "@iconify/vue": "^4.1.0", - "@nuxt/kit": "^3.1.2", + "@nuxt/kit": "^3.2.0", "@nuxtjs/color-mode": "^3.2.0", - "@nuxtjs/tailwindcss": "^6.3.1", + "@nuxtjs/tailwindcss": "^6.4.0", "@popperjs/core": "^2.11.6", "@tailwindcss/aspect-ratio": "^0.4.2", "@tailwindcss/forms": "^0.5.3", @@ -40,18 +40,19 @@ "defu": "^6.1.2", "fuse.js": "^6.6.2", "lodash-es": "^4.17.21", - "tailwindcss": "^3.2.4" + "nuxt-icon": "^0.3.1", + "tailwindcss": "^3.2.6" }, "devDependencies": { "@nuxt/module-builder": "^0.2.1", "@nuxtjs/eslint-config-typescript": "^12.0.0", "@types/lodash-es": "^4.17.6", - "@types/node": "^18.11.18", - "eslint": "^8.33.0", - "nuxt": "^3.1.2", + "@types/node": "^18.13.0", + "eslint": "^8.34.0", + "nuxt": "^3.2.0", "standard-version": "^9.5.0", "unbuild": "^1.1.1", - "vue-tsc": "^1.0.24" + "vue-tsc": "^1.1.0" }, "build": { "externals": [ diff --git a/src/module.ts b/src/module.ts index 3797290c9e..cae86894ac 100644 --- a/src/module.ts +++ b/src/module.ts @@ -121,6 +121,9 @@ export default defineNuxtModule({ }) }) + nuxt.options.appConfig.nuxtIcon = defu(nuxt.options.appConfig.nuxtIcon, { size: false }) + + await installModule('nuxt-icon') await installModule('@nuxtjs/color-mode', { classSuffix: '' }) await installModule('@nuxtjs/tailwindcss', { viewer: false, diff --git a/src/runtime/components/elements/Button.vue b/src/runtime/components/elements/Button.vue index df65f2809d..a21c4d87e3 100644 --- a/src/runtime/components/elements/Button.vue +++ b/src/runtime/components/elements/Button.vue @@ -6,14 +6,14 @@ :aria-label="ariaLabel" v-bind="buttonProps" > -