From e92be71749ded96334b4753e6b4368e51325f161 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 30 Jan 2024 11:24:02 +0100 Subject: [PATCH] docs: new structure (#1282) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sébastien Chopin --- docs/app.vue | 55 +- docs/components/BranchSelect.vue | 44 +- docs/components/Footer.vue | 38 +- docs/components/Header.vue | 8 +- docs/components/ads/AdsPro.vue | 6 +- .../examples/AccordionExampleBasic.vue | 2 +- .../examples/AccordionExampleDefaultSlot.vue | 2 +- .../examples/AccordionExampleItemSlot.vue | 2 +- .../examples/BreadcrumbExampleBasic.vue | 2 +- .../examples/BreadcrumbExampleDefaultSlot.vue | 2 +- .../examples/BreadcrumbExampleDividerSlot.vue | 2 +- .../examples/BreadcrumbExampleIconSlot.vue | 2 +- .../content/examples/CheckboxExample.vue | 2 +- .../content/examples/ChipExampleShow.vue | 2 +- .../examples/CommandPaletteExampleAsync.vue | 4 +- .../examples/CommandPaletteExampleBasic.vue | 2 +- .../examples/CommandPaletteExampleFilter.vue | 2 +- .../examples/CommandPaletteExampleGroups.vue | 2 +- .../examples/CommandPaletteExampleModal.vue | 2 +- .../CommandPaletteExampleThemeAlgolia.vue | 13 +- .../CommandPaletteExampleThemeRaycast.vue | 2 +- .../content/examples/ContextMenuExample.vue | 2 +- .../examples/ContextMenuExampleArrow.vue | 2 +- .../examples/ContextMenuExampleOffset.vue | 2 +- .../examples/ContextMenuExamplePlacement.vue | 2 +- .../content/examples/DatePickerExample.vue | 11 +- .../examples/DatePickerRangeExample.vue | 48 ++ .../examples/DividerExampleOrientation.vue | 2 +- .../content/examples/DropdownExampleArrow.vue | 2 +- .../content/examples/DropdownExampleBasic.vue | 2 +- .../content/examples/DropdownExampleMode.vue | 2 +- .../examples/DropdownExampleOffset.vue | 2 +- .../content/examples/DropdownExampleOpen.vue | 2 +- .../examples/DropdownExamplePlacement.vue | 2 +- .../content/examples/DropdownExampleSlot.vue | 2 +- .../FormGroupEagerValidationExample.vue | 2 +- .../examples/HorizontalNavigationExample.vue | 4 +- ...HorizontalNavigationExampleDefaultSlot.vue | 6 +- .../HorizontalNavigationExampleSections.vue | 4 +- .../content/examples/InputExample.vue | 2 +- .../examples/InputMenuExampleBasic.vue | 2 +- .../examples/InputMenuExampleEmptySlot.vue | 2 +- .../examples/InputMenuExampleObjects.vue | 8 +- .../InputMenuExampleObjectsValueAttribute.vue | 2 +- .../InputMenuExampleOptionEmptySlot.vue | 2 +- .../examples/InputMenuExampleOptionSlot.vue | 2 +- .../examples/InputMenuExamplePopperArrow.vue | 2 +- .../examples/InputMenuExamplePopperOffset.vue | 2 +- .../InputMenuExamplePopperPlacement.vue | 2 +- .../examples/InputMenuExampleSearchAsync.vue | 6 +- .../InputMenuExampleSearchAttributes.vue | 2 +- .../examples/InputMenuExampleSearchQuery.vue | 2 +- .../content/examples/KbdExample.vue | 2 +- .../examples/MeterSlotIndicatorExample.vue | 2 +- .../examples/MeterSlotLabelExample.vue | 2 +- .../content/examples/ModalExampleBasic.vue | 2 +- .../content/examples/ModalExampleCard.vue | 2 +- .../examples/ModalExampleDisableOverlay.vue | 2 +- .../ModalExampleDisableTransition.vue | 2 +- .../examples/ModalExampleFullscreen.vue | 2 +- .../examples/ModalExamplePreventClose.vue | 2 +- .../examples/NotificationExampleActions.vue | 2 +- .../examples/NotificationExampleBasic.vue | 2 +- .../examples/NotificationExampleCallback.vue | 2 +- .../examples/NotificationExampleClick.vue | 2 +- .../examples/NotificationExampleHtml.vue | 2 +- .../examples/PaginationExampleBasic.vue | 2 +- .../PaginationExampleFirstLastSlots.vue | 2 +- .../PaginationExamplePrevNextSlots.vue | 2 +- .../content/examples/PaginationExampleRTL.vue | 68 -- .../PaginationExampleThemeRounded.vue | 21 - .../content/examples/PopoverExampleOpen.vue | 2 +- .../examples/ProgressExampleSlotIndicator.vue | 2 +- .../examples/ProgressExampleSlotStep.vue | 2 +- .../content/examples/RadioExample.vue | 2 +- .../content/examples/RadioGroupExample.vue | 2 +- .../examples/RadioGroupLabelExample.vue | 2 +- .../content/examples/RangeExample.vue | 2 +- .../content/examples/SelectExample.vue | 2 +- .../content/examples/SelectExampleObjects.vue | 2 +- .../examples/SelectMenuExampleArrow.vue | 2 +- .../examples/SelectMenuExampleBasic.vue | 2 +- .../examples/SelectMenuExampleButton.vue | 2 +- .../examples/SelectMenuExampleCreatable.vue | 2 +- .../SelectMenuExampleCreatableAlways.vue | 2 +- .../examples/SelectMenuExampleEmptySlot.vue | 2 +- .../examples/SelectMenuExampleMultiple.vue | 2 +- .../SelectMenuExampleMultipleSlot.vue | 2 +- .../examples/SelectMenuExampleObjects.vue | 8 +- ...SelectMenuExampleObjectsValueAttribute.vue | 2 +- .../examples/SelectMenuExampleOffset.vue | 2 +- .../SelectMenuExampleOptionEmptySlot.vue | 2 +- .../examples/SelectMenuExampleOptionSlot.vue | 2 +- .../examples/SelectMenuExamplePlacement.vue | 2 +- .../examples/SelectMenuExampleSearchAsync.vue | 6 +- .../SelectMenuExampleSearchAttributes.vue | 2 +- .../examples/SelectMenuExampleSearchQuery.vue | 2 +- .../examples/SlideoverExampleBasic.vue | 2 +- .../content/examples/SlideoverExampleCard.vue | 2 +- .../SlideoverExampleDisableOverlay.vue | 2 +- .../SlideoverExampleDisableTransition.vue | 2 +- .../examples/SlideoverExamplePreventClose.vue | 2 +- .../content/examples/TableExampleBasic.vue | 2 +- .../examples/TableExampleClickable.vue | 2 +- .../content/examples/TableExampleColumns.vue | 2 +- .../TableExampleColumnsSelectable.vue | 2 +- .../examples/TableExampleColumnsSortable.vue | 4 +- .../examples/TableExampleEmptySlot.vue | 2 +- .../examples/TableExampleLoadingSlot.vue | 2 +- .../examples/TableExamplePaginable.vue | 2 +- .../examples/TableExampleReactiveSorting.vue | 6 +- .../examples/TableExampleSearchable.vue | 2 +- .../examples/TableExampleSelectable.vue | 2 +- .../content/examples/TableExampleSlots.vue | 2 +- .../content/examples/TableExampleStyle.vue | 2 +- .../content/examples/TabsExampleBasic.vue | 2 +- .../content/examples/TabsExampleChange.vue | 2 +- .../examples/TabsExampleDefaultSlot.vue | 2 +- .../content/examples/TabsExampleIndex.vue | 2 +- .../examples/TabsExampleItemCustomSlot.vue | 2 +- .../content/examples/TabsExampleItemSlot.vue | 2 +- .../content/examples/TabsExampleVModel.vue | 2 +- .../content/examples/TabsExampleVertical.vue | 2 +- .../content/examples/TextareaExample.vue | 2 +- .../content/examples/ToggleExample.vue | 2 +- .../examples/VerticalNavigationExample.vue | 6 +- .../VerticalNavigationExampleAvatarSlot.vue | 2 +- .../VerticalNavigationExampleBadgeSlot.vue | 2 +- .../VerticalNavigationExampleDefaultSlot.vue | 8 +- .../VerticalNavigationExampleIconSlot.vue | 4 +- .../VerticalNavigationExampleSections.vue | 6 +- ...VerticalNavigationExampleThemeTailwind.vue | 5 +- docs/components/date-picker/DatePicker.vue | 41 +- docs/components/home/HomeProDemo.vue | 31 + docs/components/home/HomeProDemoBlock.vue | 59 ++ docs/composables/useContentSource.ts | 63 +- docs/content/1.getting-started/1.index.md | 6 +- .../1.getting-started/2.installation.md | 7 +- docs/content/1.getting-started/3.theming.md | 48 +- docs/content/1.getting-started/4.shortcuts.md | 6 +- docs/content/1.getting-started/5.examples.md | 182 ----- .../1.getting-started/6.contributing.md | 3 +- .../accordion.md} | 4 +- .../2.alert.md => 2.components/alert.md} | 6 +- .../3.avatar.md => 2.components/avatar.md} | 0 .../4.badge.md => 2.components/badge.md} | 0 .../breadcrumb.md} | 0 .../5.button.md => 2.components/button.md} | 2 +- .../1.card.md => 2.components/card.md} | 0 .../carousel.md} | 0 .../checkbox.md} | 0 .../12.chip.md => 2.components/chip.md} | 0 .../command-palette.md} | 38 +- .../container.md} | 0 .../context-menu.md} | 0 docs/content/2.components/date-picker.md | 112 +++ .../4.divider.md => 2.components/divider.md} | 2 +- .../dropdown.md} | 2 +- .../form-group.md} | 4 +- .../10.form.md => 2.components/form.md} | 2 +- .../horizontal-navigation.md} | 4 +- .../7.icon.md => 2.components/icon.md} | 0 .../input-menu.md} | 6 +- .../1.input.md => 2.components/input.md} | 4 +- .../8.kbd.md => 2.components/kbd.md} | 0 .../9.link.md => 2.components/link.md} | 4 +- .../11.meter.md => 2.components/meter.md} | 2 +- .../1.modal.md => 2.components/modal.md} | 2 +- .../notification.md} | 6 +- .../pagination.md} | 0 .../3.popover.md => 2.components/popover.md} | 0 .../progress.md} | 2 +- .../radio-group.md} | 0 .../8.range.md => 2.components/range.md} | 0 .../select-menu.md} | 4 +- .../3.select.md => 2.components/select.md} | 2 +- .../skeleton.md} | 0 .../slideover.md} | 2 +- .../1.table.md => 2.components/table.md} | 52 +- .../4.tabs.md => 2.components/tabs.md} | 0 .../textarea.md} | 0 .../7.toggle.md => 2.components/toggle.md} | 0 .../4.tooltip.md => 2.components/tooltip.md} | 0 .../vertical-navigation.md} | 14 +- docs/content/index.yml | 174 +++-- docs/error.vue | 52 +- docs/nuxt.config.ts | 4 + docs/pages/[...slug].vue | 40 +- docs/pages/index.vue | 685 ++++++++++++++++-- docs/public/illustrations/data-dark.svg | 95 --- docs/public/illustrations/data-light.svg | 90 --- docs/public/illustrations/elements-dark.svg | 66 -- docs/public/illustrations/elements-light.svg | 76 -- docs/public/illustrations/forms-dark.svg | 40 - docs/public/illustrations/forms-light.svg | 37 - docs/public/illustrations/layout-dark.svg | 76 -- docs/public/illustrations/layout-light.svg | 71 -- docs/public/illustrations/navigation-dark.svg | 65 -- .../public/illustrations/navigation-light.svg | 65 -- docs/public/illustrations/overlays-dark.svg | 33 - docs/public/illustrations/overlays-light.svg | 33 - docs/public/illustrations/pro-dark.svg | 207 +----- docs/public/illustrations/pro-light.svg | 169 +---- docs/types/index.d.ts | 12 + docs/vercel.json | 152 ++++ pnpm-lock.yaml | 1 + 206 files changed, 1725 insertions(+), 1851 deletions(-) create mode 100644 docs/components/content/examples/DatePickerRangeExample.vue delete mode 100644 docs/components/content/examples/PaginationExampleRTL.vue delete mode 100644 docs/components/content/examples/PaginationExampleThemeRounded.vue create mode 100644 docs/components/home/HomeProDemo.vue create mode 100644 docs/components/home/HomeProDemoBlock.vue delete mode 100644 docs/content/1.getting-started/5.examples.md rename docs/content/{2.elements/1.accordion.md => 2.components/accordion.md} (94%) rename docs/content/{2.elements/2.alert.md => 2.components/alert.md} (87%) rename docs/content/{2.elements/3.avatar.md => 2.components/avatar.md} (100%) rename docs/content/{2.elements/4.badge.md => 2.components/badge.md} (100%) rename docs/content/{5.navigation/5.breadcrumb.md => 2.components/breadcrumb.md} (100%) rename docs/content/{2.elements/5.button.md => 2.components/button.md} (98%) rename docs/content/{7.layout/1.card.md => 2.components/card.md} (100%) rename docs/content/{2.elements/13.carousel.md => 2.components/carousel.md} (100%) rename docs/content/{3.forms/5.checkbox.md => 2.components/checkbox.md} (100%) rename docs/content/{2.elements/12.chip.md => 2.components/chip.md} (100%) rename docs/content/{5.navigation/2.command-palette.md => 2.components/command-palette.md} (86%) rename docs/content/{7.layout/2.container.md => 2.components/container.md} (100%) rename docs/content/{6.overlays/5.context-menu.md => 2.components/context-menu.md} (100%) create mode 100644 docs/content/2.components/date-picker.md rename docs/content/{7.layout/4.divider.md => 2.components/divider.md} (94%) rename docs/content/{2.elements/6.dropdown.md => 2.components/dropdown.md} (97%) rename docs/content/{3.forms/9.form-group.md => 2.components/form-group.md} (94%) rename docs/content/{3.forms/10.form.md => 2.components/form.md} (97%) rename docs/content/{5.navigation/6.horizontal-navigation.md => 2.components/horizontal-navigation.md} (95%) rename docs/content/{2.elements/7.icon.md => 2.components/icon.md} (100%) rename docs/content/{3.forms/2.input-menu.md => 2.components/input-menu.md} (90%) rename docs/content/{3.forms/1.input.md => 2.components/input.md} (96%) rename docs/content/{2.elements/8.kbd.md => 2.components/kbd.md} (100%) rename docs/content/{2.elements/9.link.md => 2.components/link.md} (89%) rename docs/content/{2.elements/11.meter.md => 2.components/meter.md} (98%) rename docs/content/{6.overlays/1.modal.md => 2.components/modal.md} (91%) rename docs/content/{6.overlays/6.notification.md => 2.components/notification.md} (93%) rename docs/content/{5.navigation/3.pagination.md => 2.components/pagination.md} (100%) rename docs/content/{6.overlays/3.popover.md => 2.components/popover.md} (100%) rename docs/content/{2.elements/10.progress.md => 2.components/progress.md} (97%) rename docs/content/{3.forms/6.radio-group.md => 2.components/radio-group.md} (100%) rename docs/content/{3.forms/8.range.md => 2.components/range.md} (100%) rename docs/content/{3.forms/4.select-menu.md => 2.components/select-menu.md} (92%) rename docs/content/{3.forms/3.select.md => 2.components/select.md} (98%) rename docs/content/{7.layout/3.skeleton.md => 2.components/skeleton.md} (100%) rename docs/content/{6.overlays/2.slideover.md => 2.components/slideover.md} (91%) rename docs/content/{4.data/1.table.md => 2.components/table.md} (91%) rename docs/content/{5.navigation/4.tabs.md => 2.components/tabs.md} (100%) rename docs/content/{3.forms/2.textarea.md => 2.components/textarea.md} (100%) rename docs/content/{3.forms/7.toggle.md => 2.components/toggle.md} (100%) rename docs/content/{6.overlays/4.tooltip.md => 2.components/tooltip.md} (100%) rename docs/content/{5.navigation/1.vertical-navigation.md => 2.components/vertical-navigation.md} (86%) delete mode 100644 docs/public/illustrations/data-dark.svg delete mode 100644 docs/public/illustrations/data-light.svg delete mode 100644 docs/public/illustrations/elements-dark.svg delete mode 100644 docs/public/illustrations/elements-light.svg delete mode 100644 docs/public/illustrations/forms-dark.svg delete mode 100644 docs/public/illustrations/forms-light.svg delete mode 100644 docs/public/illustrations/layout-dark.svg delete mode 100644 docs/public/illustrations/layout-light.svg delete mode 100644 docs/public/illustrations/navigation-dark.svg delete mode 100644 docs/public/illustrations/navigation-light.svg delete mode 100644 docs/public/illustrations/overlays-dark.svg delete mode 100644 docs/public/illustrations/overlays-light.svg create mode 100644 docs/types/index.d.ts create mode 100644 docs/vercel.json diff --git a/docs/app.vue b/docs/app.vue index c47a6e21..85aa057e 100644 --- a/docs/app.vue +++ b/docs/app.vue @@ -1,6 +1,8 @@