From a407663ad92190773dae2560885747d4772fb279 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 21 Dec 2021 17:38:43 +0100 Subject: [PATCH] chore: update components --- docs/app.vue | 1 + docs/pages/components/[component].vue | 25 +++++++++++++++++++ docs/pages/migration.vue | 4 ++- src/components/elements/Button.vue | 17 +++++-------- src/components/elements/Dropdown.vue | 6 +++-- src/components/elements/Link.vue | 22 +++++++++++++--- .../navigation/VerticalNavigation.vue | 7 +++--- 7 files changed, 61 insertions(+), 21 deletions(-) diff --git a/docs/app.vue b/docs/app.vue index e281d9ac..6be4422f 100644 --- a/docs/app.vue +++ b/docs/app.vue @@ -65,6 +65,7 @@ const sections = [ { 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: 'Textarea', to: '/components/Textarea' }, { label: 'Toggle', to: '/components/Toggle' }] }, { label: 'Layout', links: [{ label: 'Card', to: '/components/Card' }, { label: 'Container', to: '/components/Container' }] }, // { label: 'Navigation', links: [{ label: 'Pills', to: '/components/Pills' }, { label: 'Tabs', to: '/components/Tabs' }, { label: 'VerticalNavigation', to: '/components/VerticalNavigation' }] }, + { label: 'Navigation', links: [{ label: 'VerticalNavigation', to: '/components/VerticalNavigation' }] }, { label: 'Overlays', links: [{ label: 'Modal', to: '/components/Modal' }, { label: 'Notification', to: '/components/Notification' }, { label: 'Popover', to: '/components/Popover' }, { label: 'Tooltip', to: '/components/Tooltip' }] } ] diff --git a/docs/pages/components/[component].vue b/docs/pages/components/[component].vue index b70c0c75..6db2e6e8 100644 --- a/docs/pages/components/[component].vue +++ b/docs/pages/components/[component].vue @@ -141,6 +141,31 @@ const defaultProps = { }] ] }, + VerticalNavigation: { + links: [ + { + label: 'Home', + icon: 'heroicons-outline:home', + to: '/' + }, + { + label: 'Examples', + icon: 'heroicons-outline:book-open', + to: '/examples' + }, + { + label: 'Migration', + icon: 'heroicons-outline:refresh', + to: '/migration' + }, + { + label: 'External link', + icon: 'heroicons-outline:external-link', + to: 'https://google.fr', + target: '_blank' + } + ] + }, Icon: { name: 'heroicons-outline:bell' }, diff --git a/docs/pages/migration.vue b/docs/pages/migration.vue index 20f6d04d..f9137374 100644 --- a/docs/pages/migration.vue +++ b/docs/pages/migration.vue @@ -101,7 +101,9 @@ const components = [ }, { label: 'Link', - to: '/components/Link' + to: '/components/Link', + nuxt3: true, + capi: true }, { label: 'Toggle', diff --git a/src/components/elements/Button.vue b/src/components/elements/Button.vue index 02c50d4b..bb2baf56 100644 --- a/src/components/elements/Button.vue +++ b/src/components/elements/Button.vue @@ -14,13 +14,15 @@