@brumaombra/ui-vintage 0.6.8 → 0.7.3
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 +61 -51
- package/module.mjs +75 -0
- package/package.json +82 -272
- package/src/components/background-grid/BackgroundGrid.vue +5 -0
- package/src/components/background-grid/index.ts +2 -0
- package/src/components/blog/AllPostsSection.vue +46 -0
- package/src/components/blog/BlogFAQSection.vue +71 -0
- package/src/components/blog/BlogHeaderSection.vue +35 -0
- package/src/components/blog/BlogInfoSection.vue +70 -0
- package/src/components/blog/BlogSectionTitle.vue +12 -0
- package/src/components/blog/CategoriesList.vue +17 -0
- package/src/components/blog/CategoriesSection.vue +14 -0
- package/src/components/blog/CategoryCard.vue +34 -0
- package/src/components/blog/HeaderCarousel.vue +194 -0
- package/src/components/blog/PostCard.vue +56 -0
- package/src/components/blog/PostsList.vue +16 -0
- package/src/components/blog/SocialShareSidebar.vue +94 -0
- package/src/components/blog/TableOfContents.vue +114 -0
- package/{dist/components/blog/index.d.ts → src/components/blog/index.ts} +1 -1
- package/src/components/busy-indicator/BusyIndicator.vue +14 -0
- package/src/components/busy-indicator/busy-indicator-state.ts +88 -0
- package/src/components/busy-indicator/index.ts +3 -0
- package/src/components/card-grid/CardGrid.vue +47 -0
- package/src/components/card-grid/index.ts +2 -0
- package/src/components/chip/Chip.vue +40 -0
- package/src/components/chip/index.ts +2 -0
- package/src/components/confirm-dialog/ConfirmDialog.vue +60 -0
- package/src/components/confirm-dialog/confirm-dialog-state.ts +200 -0
- package/src/components/confirm-dialog/index.ts +12 -0
- package/src/components/content/BlogList.vue +60 -0
- package/src/components/content/BlogTable.vue +56 -0
- package/src/components/content/ProseHr.vue +26 -0
- package/{dist/components/content/index.d.ts → src/components/content/index.ts} +1 -1
- package/src/components/dashboard-shell/DashboardShell.vue +205 -0
- package/src/components/dashboard-shell/index.ts +2 -0
- package/src/components/data-list/DataList.vue +19 -0
- package/src/components/data-list/DataListItem.vue +17 -0
- package/src/components/data-list/DataListLabel.vue +17 -0
- package/src/components/data-list/DataListText.vue +17 -0
- package/src/components/data-list/DataListValue.vue +17 -0
- package/src/components/data-list/index.ts +5 -0
- package/src/components/empty-state-card/EmptyStateCard.vue +54 -0
- package/{dist/components/empty-state-card/index.d.ts → src/components/empty-state-card/index.ts} +1 -1
- package/src/components/error-page/ErrorPage.vue +118 -0
- package/src/components/error-page/index.ts +2 -0
- package/src/components/info-card/InfoCard.vue +42 -0
- package/src/components/info-card/index.ts +2 -0
- package/src/components/landing/index.ts +6 -0
- package/src/components/landing/landing-content/LandingContent.vue +17 -0
- package/src/components/landing/landing-content/index.ts +2 -0
- package/src/components/landing/landing-footer/LandingFooter.vue +151 -0
- package/src/components/landing/landing-footer/index.ts +3 -0
- package/src/components/landing/landing-navbar/LandingNavbar.vue +48 -0
- package/src/components/landing/landing-navbar/index.ts +2 -0
- package/src/components/landing/landing-shell/LandingShell.vue +58 -0
- package/src/components/landing/landing-shell/index.ts +2 -0
- package/src/components/language-flag/LanguageFlag.vue +54 -0
- package/src/components/language-flag/flags/ChineseFlag.vue +10 -0
- package/src/components/language-flag/flags/EnglishFlag.vue +9 -0
- package/src/components/language-flag/flags/FrenchFlag.vue +7 -0
- package/src/components/language-flag/flags/GermanFlag.vue +7 -0
- package/src/components/language-flag/flags/ItalianFlag.vue +9 -0
- package/src/components/language-flag/flags/JapaneseFlag.vue +6 -0
- package/src/components/language-flag/flags/PortugueseFlag.vue +59 -0
- package/src/components/language-flag/flags/RussianFlag.vue +7 -0
- package/src/components/language-flag/flags/SpanishFlag.vue +6 -0
- package/{dist/components/language-flag/index.d.ts → src/components/language-flag/index.ts} +1 -1
- package/src/components/language-selector/LanguageSelector.vue +154 -0
- package/{dist/components/language-selector/index.d.ts → src/components/language-selector/index.ts} +1 -1
- package/src/components/load-more-button/LoadMoreButton.vue +44 -0
- package/{dist/components/load-more-button/index.d.ts → src/components/load-more-button/index.ts} +1 -1
- package/src/components/loading-state-card/LoadingStateCard.vue +43 -0
- package/{dist/components/loading-state-card/index.d.ts → src/components/loading-state-card/index.ts} +1 -1
- package/src/components/message-dialog/MessageDialog.vue +101 -0
- package/src/components/message-dialog/index.ts +11 -0
- package/src/components/message-dialog/message-dialog-state.ts +168 -0
- package/src/components/message-toast/MessageToast.vue +75 -0
- package/src/components/message-toast/index.ts +9 -0
- package/src/components/message-toast/message-toast-state.ts +167 -0
- package/src/components/page-header/PageHeader.vue +52 -0
- package/src/components/page-header/index.ts +2 -0
- package/src/components/progress-component/ProgressComponent.vue +45 -0
- package/{dist/components/progress-component/index.d.ts → src/components/progress-component/index.ts} +1 -1
- package/src/components/single-value-card/SingleValueCard.vue +51 -0
- package/{dist/components/single-value-card/index.d.ts → src/components/single-value-card/index.ts} +1 -1
- package/src/components/slider-form-component/SliderFormComponent.vue +71 -0
- package/src/components/slider-form-component/index.ts +2 -0
- package/src/components/switch-form-component/SwitchFormComponent.vue +39 -0
- package/src/components/switch-form-component/index.ts +2 -0
- package/src/components/text-link/TextLink.vue +33 -0
- package/src/components/text-link/index.ts +2 -0
- package/src/components/theme-selector/ThemeSelector.vue +129 -0
- package/src/components/theme-selector/index.ts +2 -0
- package/src/components/ui/alert/Alert.vue +17 -0
- package/src/components/ui/alert/AlertDescription.vue +14 -0
- package/src/components/ui/alert/AlertTitle.vue +14 -0
- package/src/components/ui/alert/index.ts +15 -0
- package/src/components/ui/alert-dialog/AlertDialog.vue +15 -0
- package/src/components/ui/alert-dialog/AlertDialogAction.vue +18 -0
- package/src/components/ui/alert-dialog/AlertDialogCancel.vue +22 -0
- package/src/components/ui/alert-dialog/AlertDialogContent.vue +36 -0
- package/src/components/ui/alert-dialog/AlertDialogDescription.vue +19 -0
- package/src/components/ui/alert-dialog/AlertDialogFooter.vue +18 -0
- package/src/components/ui/alert-dialog/AlertDialogHeader.vue +14 -0
- package/src/components/ui/alert-dialog/AlertDialogTitle.vue +17 -0
- package/src/components/ui/alert-dialog/AlertDialogTrigger.vue +12 -0
- package/src/components/ui/alert-dialog/index.ts +9 -0
- package/src/components/ui/badge/Badge.vue +26 -0
- package/src/components/ui/badge/index.ts +1 -0
- package/src/components/ui/breadcrumb/Breadcrumb.vue +17 -0
- package/src/components/ui/breadcrumb/BreadcrumbEllipsis.vue +24 -0
- package/src/components/ui/breadcrumb/BreadcrumbItem.vue +17 -0
- package/src/components/ui/breadcrumb/BreadcrumbLink.vue +21 -0
- package/src/components/ui/breadcrumb/BreadcrumbList.vue +17 -0
- package/src/components/ui/breadcrumb/BreadcrumbPage.vue +20 -0
- package/src/components/ui/breadcrumb/BreadcrumbSeparator.vue +23 -0
- package/src/components/ui/breadcrumb/index.ts +7 -0
- package/src/components/ui/busy/Busy.vue +45 -0
- package/src/components/ui/busy/index.ts +1 -0
- package/src/components/ui/button/Button.vue +24 -0
- package/src/components/ui/button/index.ts +41 -0
- package/src/components/ui/calendar/Calendar.vue +139 -0
- package/src/components/ui/calendar/CalendarCell.vue +23 -0
- package/src/components/ui/calendar/CalendarCellTrigger.vue +39 -0
- package/src/components/ui/calendar/CalendarGrid.vue +23 -0
- package/src/components/ui/calendar/CalendarGridBody.vue +15 -0
- package/src/components/ui/calendar/CalendarGridHead.vue +16 -0
- package/src/components/ui/calendar/CalendarGridRow.vue +22 -0
- package/src/components/ui/calendar/CalendarHeadCell.vue +23 -0
- package/src/components/ui/calendar/CalendarHeader.vue +23 -0
- package/src/components/ui/calendar/CalendarHeading.vue +30 -0
- package/src/components/ui/calendar/CalendarNextButton.vue +32 -0
- package/src/components/ui/calendar/CalendarPrevButton.vue +32 -0
- package/src/components/ui/calendar/index.ts +14 -0
- package/src/components/ui/card/Card.vue +31 -0
- package/src/components/ui/card/CardAction.vue +14 -0
- package/src/components/ui/card/CardContent.vue +14 -0
- package/src/components/ui/card/CardDescription.vue +14 -0
- package/src/components/ui/card/CardFooter.vue +14 -0
- package/src/components/ui/card/CardHeader.vue +14 -0
- package/src/components/ui/card/CardText.vue +14 -0
- package/src/components/ui/card/CardTitle.vue +14 -0
- package/src/components/ui/card/index.ts +8 -0
- package/src/components/ui/command/Command.vue +83 -0
- package/src/components/ui/command/CommandDialog.vue +31 -0
- package/src/components/ui/command/CommandEmpty.vue +27 -0
- package/src/components/ui/command/CommandGroup.vue +47 -0
- package/src/components/ui/command/CommandInput.vue +31 -0
- package/src/components/ui/command/CommandItem.vue +76 -0
- package/src/components/ui/command/CommandList.vue +25 -0
- package/src/components/ui/command/CommandSeparator.vue +17 -0
- package/src/components/ui/command/CommandShortcut.vue +14 -0
- package/src/components/ui/command/index.ts +25 -0
- package/src/components/ui/date-picker/DatePicker.vue +67 -0
- package/src/components/ui/date-picker/index.ts +2 -0
- package/src/components/ui/date-time-picker/DateTimePicker.vue +170 -0
- package/{dist/components/ui/date-time-picker/index.d.ts → src/components/ui/date-time-picker/index.ts} +2 -2
- package/src/components/ui/dialog/Dialog.vue +15 -0
- package/src/components/ui/dialog/DialogClose.vue +15 -0
- package/src/components/ui/dialog/DialogContent.vue +54 -0
- package/src/components/ui/dialog/DialogDescription.vue +19 -0
- package/src/components/ui/dialog/DialogFooter.vue +18 -0
- package/src/components/ui/dialog/DialogHeader.vue +14 -0
- package/src/components/ui/dialog/DialogOverlay.vue +17 -0
- package/src/components/ui/dialog/DialogScrollContent.vue +57 -0
- package/src/components/ui/dialog/DialogTitle.vue +19 -0
- package/src/components/ui/dialog/DialogTrigger.vue +12 -0
- package/src/components/ui/dialog/index.ts +10 -0
- package/src/components/ui/field/Field.vue +20 -0
- package/src/components/ui/field/FieldContent.vue +17 -0
- package/src/components/ui/field/FieldDescription.vue +19 -0
- package/src/components/ui/field/FieldError.vue +48 -0
- package/src/components/ui/field/FieldGroup.vue +17 -0
- package/src/components/ui/field/FieldLabel.vue +20 -0
- package/src/components/ui/field/FieldLegend.vue +20 -0
- package/src/components/ui/field/FieldSeparator.vue +21 -0
- package/src/components/ui/field/FieldSet.vue +18 -0
- package/src/components/ui/field/FieldTitle.vue +17 -0
- package/src/components/ui/field/index.ts +41 -0
- package/src/components/ui/input/Input.vue +29 -0
- package/src/components/ui/input/index.ts +1 -0
- package/src/components/ui/label/Label.vue +21 -0
- package/src/components/ui/label/index.ts +1 -0
- package/src/components/ui/native-select/NativeSelect.vue +52 -0
- package/src/components/ui/native-select/NativeSelectOptGroup.vue +12 -0
- package/src/components/ui/native-select/NativeSelectOption.vue +12 -0
- package/src/components/ui/native-select/index.ts +3 -0
- package/src/components/ui/popover/Popover.vue +15 -0
- package/src/components/ui/popover/PopoverAnchor.vue +12 -0
- package/src/components/ui/popover/PopoverContent.vue +40 -0
- package/src/components/ui/popover/PopoverTrigger.vue +12 -0
- package/src/components/ui/popover/index.ts +4 -0
- package/src/components/ui/progress/Progress.vue +38 -0
- package/src/components/ui/progress/index.ts +1 -0
- package/src/components/ui/scroll-area/ScrollArea.vue +33 -0
- package/src/components/ui/scroll-area/ScrollBar.vue +32 -0
- package/src/components/ui/scroll-area/index.ts +2 -0
- package/src/components/ui/select/Select.vue +15 -0
- package/src/components/ui/select/SelectContent.vue +50 -0
- package/src/components/ui/select/SelectGroup.vue +12 -0
- package/src/components/ui/select/SelectItem.vue +50 -0
- package/src/components/ui/select/SelectItemContent.vue +40 -0
- package/src/components/ui/select/SelectItemText.vue +12 -0
- package/src/components/ui/select/SelectLabel.vue +14 -0
- package/src/components/ui/select/SelectScrollDownButton.vue +23 -0
- package/src/components/ui/select/SelectScrollUpButton.vue +23 -0
- package/src/components/ui/select/SelectSeparator.vue +15 -0
- package/src/components/ui/select/SelectTrigger.vue +31 -0
- package/src/components/ui/select/SelectValue.vue +12 -0
- package/src/components/ui/select/SelectValueContent.vue +44 -0
- package/src/components/ui/select/index.ts +13 -0
- package/src/components/ui/separator/Separator.vue +24 -0
- package/src/components/ui/separator/index.ts +1 -0
- package/src/components/ui/sheet/Sheet.vue +15 -0
- package/src/components/ui/sheet/SheetClose.vue +12 -0
- package/src/components/ui/sheet/SheetContent.vue +49 -0
- package/src/components/ui/sheet/SheetDescription.vue +17 -0
- package/src/components/ui/sheet/SheetFooter.vue +12 -0
- package/src/components/ui/sheet/SheetHeader.vue +12 -0
- package/src/components/ui/sheet/SheetOverlay.vue +17 -0
- package/src/components/ui/sheet/SheetTitle.vue +17 -0
- package/src/components/ui/sheet/SheetTrigger.vue +12 -0
- package/src/components/ui/sheet/index.ts +8 -0
- package/src/components/ui/sidebar/Sidebar.vue +77 -0
- package/src/components/ui/sidebar/SidebarContent.vue +14 -0
- package/src/components/ui/sidebar/SidebarFooter.vue +14 -0
- package/src/components/ui/sidebar/SidebarGroup.vue +14 -0
- package/src/components/ui/sidebar/SidebarGroupAction.vue +21 -0
- package/src/components/ui/sidebar/SidebarGroupContent.vue +14 -0
- package/src/components/ui/sidebar/SidebarGroupLabel.vue +19 -0
- package/src/components/ui/sidebar/SidebarHeader.vue +14 -0
- package/src/components/ui/sidebar/SidebarInput.vue +18 -0
- package/src/components/ui/sidebar/SidebarInset.vue +18 -0
- package/src/components/ui/sidebar/SidebarMenu.vue +14 -0
- package/src/components/ui/sidebar/SidebarMenuAction.vue +30 -0
- package/src/components/ui/sidebar/SidebarMenuBadge.vue +23 -0
- package/src/components/ui/sidebar/SidebarMenuButton.vue +44 -0
- package/src/components/ui/sidebar/SidebarMenuButtonChild.vue +27 -0
- package/src/components/ui/sidebar/SidebarMenuItem.vue +14 -0
- package/src/components/ui/sidebar/SidebarMenuSkeleton.vue +20 -0
- package/src/components/ui/sidebar/SidebarMenuSub.vue +18 -0
- package/src/components/ui/sidebar/SidebarMenuSubButton.vue +28 -0
- package/src/components/ui/sidebar/SidebarMenuSubItem.vue +14 -0
- package/src/components/ui/sidebar/SidebarProvider.vue +79 -0
- package/src/components/ui/sidebar/SidebarRail.vue +25 -0
- package/src/components/ui/sidebar/SidebarSeparator.vue +15 -0
- package/src/components/ui/sidebar/SidebarTrigger.vue +21 -0
- package/src/components/ui/sidebar/index.ts +64 -0
- package/src/components/ui/sidebar/utils.ts +19 -0
- package/src/components/ui/skeleton/Skeleton.vue +14 -0
- package/src/components/ui/skeleton/index.ts +1 -0
- package/src/components/ui/slider/Slider.vue +27 -0
- package/src/components/ui/slider/index.ts +1 -0
- package/src/components/ui/switch/Switch.vue +30 -0
- package/src/components/ui/switch/index.ts +1 -0
- package/src/components/ui/table/Table.vue +16 -0
- package/src/components/ui/table/TableBody.vue +17 -0
- package/src/components/ui/table/TableCaption.vue +17 -0
- package/src/components/ui/table/TableCell.vue +22 -0
- package/src/components/ui/table/TableEmpty.vue +34 -0
- package/src/components/ui/table/TableFooter.vue +17 -0
- package/src/components/ui/table/TableHead.vue +17 -0
- package/src/components/ui/table/TableHeader.vue +17 -0
- package/src/components/ui/table/TableRow.vue +17 -0
- package/src/components/ui/table/index.ts +9 -0
- package/src/components/ui/tabs/Tabs.vue +24 -0
- package/src/components/ui/tabs/TabsContent.vue +21 -0
- package/src/components/ui/tabs/TabsList.vue +24 -0
- package/src/components/ui/tabs/TabsTrigger.vue +26 -0
- package/src/components/ui/tabs/index.ts +4 -0
- package/src/components/ui/textarea/Textarea.vue +29 -0
- package/src/components/ui/textarea/index.ts +1 -0
- package/src/components/ui/time-picker/TimePicker.vue +56 -0
- package/src/components/ui/time-picker/index.ts +2 -0
- package/src/components/ui/tooltip/Tooltip.vue +15 -0
- package/src/components/ui/tooltip/TooltipContent.vue +30 -0
- package/src/components/ui/tooltip/TooltipProvider.vue +14 -0
- package/src/components/ui/tooltip/TooltipTrigger.vue +12 -0
- package/src/components/ui/tooltip/index.ts +4 -0
- package/{dist/i18n/de.json.d.ts → src/i18n/de.json} +2 -4
- package/{dist/i18n/en.json.d.ts → src/i18n/en.json} +2 -4
- package/{dist/i18n/es.json.d.ts → src/i18n/es.json} +2 -4
- package/{dist/i18n/fr.json.d.ts → src/i18n/fr.json} +2 -4
- package/{dist/i18n/it.json.d.ts → src/i18n/it.json} +2 -4
- package/{dist/i18n/ja.json.d.ts → src/i18n/ja.json} +2 -4
- package/{dist/i18n/pt.json.d.ts → src/i18n/pt.json} +2 -4
- package/{dist/i18n/ru.json.d.ts → src/i18n/ru.json} +2 -4
- package/{dist/i18n/zh.json.d.ts → src/i18n/zh.json} +2 -4
- package/src/lib/color-tokens.ts +51 -0
- package/src/lib/i18n.ts +85 -0
- package/src/lib/utils.ts +29 -0
- package/src/nuxt-components.d.ts +5 -0
- package/src/runtime/ui-vintage-i18n-plugin.js +48 -0
- package/src/shims-vue.d.ts +5 -0
- package/src/styles.css +224 -0
- package/dist/AlertDialogTitle.vue_vue_type_script_setup_true_lang-DhRDOi2d.js +0 -361
- package/dist/BackgroundGrid-BJDDcLzF.js +0 -13
- package/dist/Badge.vue_vue_type_script_setup_true_lang-DH_klSVA.js +0 -33
- package/dist/Busy-BOXgYrox.js +0 -55
- package/dist/BusyIndicator-D-4YHN2L.js +0 -4
- package/dist/CalendarPrevButton.vue_vue_type_script_setup_true_lang-C6OtvF0h.js +0 -3800
- package/dist/Card.vue_vue_type_script_setup_true_lang-CZhFtxSD.js +0 -30
- package/dist/CardContent.vue_vue_type_script_setup_true_lang-BxI0-dse.js +0 -22
- package/dist/CardFooter.vue_vue_type_script_setup_true_lang-LFjBZHcl.js +0 -22
- package/dist/CardText.vue_vue_type_script_setup_true_lang-zUPNe9HY.js +0 -22
- package/dist/ChineseFlag-CVrOCbRz.js +0 -18
- package/dist/Collection-4P3HQ4uU.js +0 -76
- package/dist/ConfigProvider-DYO65bNW.js +0 -6
- package/dist/ConfirmDialog-Zu4m9TY-.js +0 -4
- package/dist/DatePicker.vue_vue_type_script_setup_true_lang-CzMhKnrj.js +0 -88
- package/dist/DialogClose-DxCTEp0d.js +0 -36
- package/dist/DialogPortal-BiMJAKLg.js +0 -36
- package/dist/DialogTitle-jKgSCoXM.js +0 -526
- package/dist/DialogTitle.vue_vue_type_script_setup_true_lang-D0Ephm9c.js +0 -184
- package/dist/DialogTrigger-Cb3rLcid.js +0 -52
- package/dist/EmptyStateCard.vue_vue_type_script_setup_true_lang-CH3ODMDF.js +0 -59
- package/dist/EnglishFlag-BrpG8XMW.js +0 -18
- package/dist/FocusScope-mzbqk6Y_.js +0 -448
- package/dist/FrenchFlag-CUdQacS3.js +0 -35
- package/dist/GermanFlag-Bc1CeEHw.js +0 -35
- package/dist/HugeiconsIcon.vue-By2RXWWz.js +0 -111
- package/dist/Input.vue_vue_type_script_setup_true_lang-BGGOqKHs.js +0 -37
- package/dist/ItalianFlag-BAdg13z7.js +0 -34
- package/dist/JapaneseFlag-Dnd2ITzZ.js +0 -27
- package/dist/Label.vue_vue_type_script_setup_true_lang-BzD7wUHQ.js +0 -65
- package/dist/LandingContent.vue_vue_type_script_setup_true_lang-BySDoKff.js +0 -21
- package/dist/LandingFooter.vue_vue_type_script_setup_true_lang-D1_ZjIFj.js +0 -159
- package/dist/LandingNavbar.vue_vue_type_script_setup_true_lang-Cu_ksJtE.js +0 -63
- package/dist/LandingShell.vue_vue_type_script_setup_true_lang-D6n-hLum.js +0 -49
- package/dist/LoadMoreButton.vue_vue_type_script_setup_true_lang-Be0obsa3.js +0 -61
- package/dist/LoadingStateCard.vue_vue_type_script_setup_true_lang-CwCrRir_.js +0 -53
- package/dist/MessageDialog-ChS4d2qN.js +0 -4
- package/dist/MessageToast-CMvpwf2m.js +0 -79
- package/dist/NativeSelectOption.vue_vue_type_script_setup_true_lang-CcnlTqUN.js +0 -75
- package/dist/PopoverTrigger.vue_vue_type_script_setup_true_lang-Bu5YDhSO.js +0 -801
- package/dist/PopperContent-DUJ8a4i0.js +0 -2144
- package/dist/PortugueseFlag-DU2jEbaQ.js +0 -19
- package/dist/Presence-CTmUEdMR.js +0 -168
- package/dist/Primitive-D3IcFg81.js +0 -61
- package/dist/Progress.vue_vue_type_script_setup_true_lang-ZKUFAYop.js +0 -188
- package/dist/RussianFlag-Cnc4PHmq.js +0 -29
- package/dist/Separator-CFm_M4pb.js +0 -87
- package/dist/Separator.vue_vue_type_script_setup_true_lang-BDH2gelV.js +0 -29
- package/dist/SheetTitle.vue_vue_type_script_setup_true_lang-DZ-80X9J.js +0 -167
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CK-Q0Oxk.js +0 -20
- package/dist/Slider.vue_vue_type_script_setup_true_lang-Cz1oQX11.js +0 -803
- package/dist/SpanishFlag-Dy-C9kGk.js +0 -28
- package/dist/Switch.vue_vue_type_script_setup_true_lang-BzUQzI2p.js +0 -227
- package/dist/TableHeader.vue_vue_type_script_setup_true_lang-BMHYThM4.js +0 -123
- package/dist/Teleport-DTOwRCqx.js +0 -315
- package/dist/TimePicker.vue_vue_type_script_setup_true_lang-C3Ww9XT5.js +0 -51
- package/dist/TooltipTrigger.vue_vue_type_script_setup_true_lang-CIBac9lA.js +0 -1120
- package/dist/VisuallyHidden-udQT2Fmo.js +0 -60
- package/dist/VisuallyHiddenInput-D5eipDQU.js +0 -142
- package/dist/_plugin-vue_export-helper-1tPrXgE0.js +0 -10
- package/dist/alert-dialog.js +0 -165
- package/dist/alert.js +0 -66
- package/dist/background-grid.js +0 -5
- package/dist/badge.js +0 -4
- package/dist/blog.js +0 -938
- package/dist/breadcrumb.js +0 -159
- package/dist/busy-indicator.js +0 -66
- package/dist/busy.js +0 -4
- package/dist/button.js +0 -67
- package/dist/calendar.js +0 -15
- package/dist/card-grid.js +0 -58
- package/dist/card.js +0 -84
- package/dist/chip.js +0 -47
- package/dist/clamp-D5Ye0kJT.js +0 -6
- package/dist/color-tokens-D9BviGPK.js +0 -40
- package/dist/command.js +0 -1099
- package/dist/components/background-grid/BackgroundGrid.vue.d.ts +0 -2
- package/dist/components/background-grid/index.d.ts +0 -2
- package/dist/components/busy-indicator/BusyIndicator.vue.d.ts +0 -2
- package/dist/components/busy-indicator/busy-indicator-state.d.ts +0 -15
- package/dist/components/busy-indicator/index.d.ts +0 -3
- package/dist/components/card-grid/CardGrid.vue.d.ts +0 -88
- package/dist/components/card-grid/index.d.ts +0 -2
- package/dist/components/chip/Chip.vue.d.ts +0 -17
- package/dist/components/chip/index.d.ts +0 -2
- package/dist/components/confirm-dialog/ConfirmDialog.vue.d.ts +0 -2
- package/dist/components/confirm-dialog/confirm-dialog-state.d.ts +0 -40
- package/dist/components/confirm-dialog/index.d.ts +0 -3
- package/dist/components/dashboard-shell/DashboardShell.vue.d.ts +0 -67
- package/dist/components/dashboard-shell/index.d.ts +0 -2
- package/dist/components/data-list/DataList.vue.d.ts +0 -21
- package/dist/components/data-list/DataListItem.vue.d.ts +0 -21
- package/dist/components/data-list/DataListLabel.vue.d.ts +0 -21
- package/dist/components/data-list/DataListText.vue.d.ts +0 -21
- package/dist/components/data-list/DataListValue.vue.d.ts +0 -21
- package/dist/components/data-list/index.d.ts +0 -5
- package/dist/components/empty-state-card/EmptyStateCard.vue.d.ts +0 -73
- package/dist/components/error-page/ErrorPage.vue.d.ts +0 -51
- package/dist/components/error-page/index.d.ts +0 -2
- package/dist/components/info-card/InfoCard.vue.d.ts +0 -46
- package/dist/components/info-card/index.d.ts +0 -2
- package/dist/components/landing/index.d.ts +0 -6
- package/dist/components/landing/landing-content/LandingContent.vue.d.ts +0 -21
- package/dist/components/landing/landing-content/index.d.ts +0 -2
- package/dist/components/landing/landing-footer/LandingFooter.vue.d.ts +0 -39
- package/dist/components/landing/landing-footer/index.d.ts +0 -3
- package/dist/components/landing/landing-navbar/LandingNavbar.vue.d.ts +0 -32
- package/dist/components/landing/landing-navbar/index.d.ts +0 -2
- package/dist/components/landing/landing-shell/LandingShell.vue.d.ts +0 -31
- package/dist/components/landing/landing-shell/index.d.ts +0 -2
- package/dist/components/language-flag/LanguageFlag.vue.d.ts +0 -14
- package/dist/components/language-flag/flags/ChineseFlag.vue.d.ts +0 -2
- package/dist/components/language-flag/flags/EnglishFlag.vue.d.ts +0 -2
- package/dist/components/language-flag/flags/FrenchFlag.vue.d.ts +0 -2
- package/dist/components/language-flag/flags/GermanFlag.vue.d.ts +0 -2
- package/dist/components/language-flag/flags/ItalianFlag.vue.d.ts +0 -2
- package/dist/components/language-flag/flags/JapaneseFlag.vue.d.ts +0 -2
- package/dist/components/language-flag/flags/PortugueseFlag.vue.d.ts +0 -2
- package/dist/components/language-flag/flags/RussianFlag.vue.d.ts +0 -2
- package/dist/components/language-flag/flags/SpanishFlag.vue.d.ts +0 -2
- package/dist/components/language-selector/LanguageSelector.vue.d.ts +0 -31
- package/dist/components/load-more-button/LoadMoreButton.vue.d.ts +0 -36
- package/dist/components/loading-state-card/LoadingStateCard.vue.d.ts +0 -55
- package/dist/components/message-dialog/MessageDialog.vue.d.ts +0 -2
- package/dist/components/message-dialog/index.d.ts +0 -3
- package/dist/components/message-dialog/message-dialog-state.d.ts +0 -30
- package/dist/components/message-toast/MessageToast.vue.d.ts +0 -2
- package/dist/components/message-toast/index.d.ts +0 -2
- package/dist/components/message-toast/message-toast-state.d.ts +0 -18
- package/dist/components/page-header/PageHeader.vue.d.ts +0 -48
- package/dist/components/page-header/index.d.ts +0 -2
- package/dist/components/progress-component/ProgressComponent.vue.d.ts +0 -47
- package/dist/components/single-value-card/SingleValueCard.vue.d.ts +0 -40
- package/dist/components/slider-form-component/SliderFormComponent.vue.d.ts +0 -23
- package/dist/components/slider-form-component/index.d.ts +0 -2
- package/dist/components/switch-form-component/SwitchFormComponent.vue.d.ts +0 -12
- package/dist/components/switch-form-component/index.d.ts +0 -2
- package/dist/components/text-link/TextLink.vue.d.ts +0 -35
- package/dist/components/text-link/index.d.ts +0 -2
- package/dist/components/theme-selector/ThemeSelector.vue.d.ts +0 -2
- package/dist/components/theme-selector/index.d.ts +0 -2
- package/dist/components/ui/alert/Alert.vue.d.ts +0 -23
- package/dist/components/ui/alert/AlertDescription.vue.d.ts +0 -21
- package/dist/components/ui/alert/AlertTitle.vue.d.ts +0 -21
- package/dist/components/ui/alert/index.d.ts +0 -9
- package/dist/components/ui/alert-dialog/AlertDialog.vue.d.ts +0 -25
- package/dist/components/ui/alert-dialog/AlertDialogAction.vue.d.ts +0 -22
- package/dist/components/ui/alert-dialog/AlertDialogCancel.vue.d.ts +0 -22
- package/dist/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +0 -36
- package/dist/components/ui/alert-dialog/AlertDialogDescription.vue.d.ts +0 -22
- package/dist/components/ui/alert-dialog/AlertDialogFooter.vue.d.ts +0 -21
- package/dist/components/ui/alert-dialog/AlertDialogHeader.vue.d.ts +0 -21
- package/dist/components/ui/alert-dialog/AlertDialogTitle.vue.d.ts +0 -22
- package/dist/components/ui/alert-dialog/AlertDialogTrigger.vue.d.ts +0 -18
- package/dist/components/ui/alert-dialog/index.d.ts +0 -9
- package/dist/components/ui/badge/Badge.vue.d.ts +0 -16
- package/dist/components/ui/badge/index.d.ts +0 -1
- package/dist/components/ui/breadcrumb/Breadcrumb.vue.d.ts +0 -21
- package/dist/components/ui/breadcrumb/BreadcrumbEllipsis.vue.d.ts +0 -21
- package/dist/components/ui/breadcrumb/BreadcrumbItem.vue.d.ts +0 -21
- package/dist/components/ui/breadcrumb/BreadcrumbLink.vue.d.ts +0 -24
- package/dist/components/ui/breadcrumb/BreadcrumbList.vue.d.ts +0 -21
- package/dist/components/ui/breadcrumb/BreadcrumbPage.vue.d.ts +0 -21
- package/dist/components/ui/breadcrumb/BreadcrumbSeparator.vue.d.ts +0 -21
- package/dist/components/ui/breadcrumb/index.d.ts +0 -7
- package/dist/components/ui/busy/Busy.vue.d.ts +0 -27
- package/dist/components/ui/busy/index.d.ts +0 -1
- package/dist/components/ui/button/Button.vue.d.ts +0 -27
- package/dist/components/ui/button/index.d.ts +0 -7
- package/dist/components/ui/calendar/Calendar.vue.d.ts +0 -44
- package/dist/components/ui/calendar/CalendarCell.vue.d.ts +0 -22
- package/dist/components/ui/calendar/CalendarCellTrigger.vue.d.ts +0 -24
- package/dist/components/ui/calendar/CalendarGrid.vue.d.ts +0 -22
- package/dist/components/ui/calendar/CalendarGridBody.vue.d.ts +0 -18
- package/dist/components/ui/calendar/CalendarGridHead.vue.d.ts +0 -22
- package/dist/components/ui/calendar/CalendarGridRow.vue.d.ts +0 -22
- package/dist/components/ui/calendar/CalendarHeadCell.vue.d.ts +0 -22
- package/dist/components/ui/calendar/CalendarHeader.vue.d.ts +0 -22
- package/dist/components/ui/calendar/CalendarHeading.vue.d.ts +0 -28
- package/dist/components/ui/calendar/CalendarNextButton.vue.d.ts +0 -22
- package/dist/components/ui/calendar/CalendarPrevButton.vue.d.ts +0 -22
- package/dist/components/ui/calendar/index.d.ts +0 -13
- package/dist/components/ui/card/Card.vue.d.ts +0 -24
- package/dist/components/ui/card/CardAction.vue.d.ts +0 -21
- package/dist/components/ui/card/CardContent.vue.d.ts +0 -21
- package/dist/components/ui/card/CardDescription.vue.d.ts +0 -21
- package/dist/components/ui/card/CardFooter.vue.d.ts +0 -21
- package/dist/components/ui/card/CardHeader.vue.d.ts +0 -21
- package/dist/components/ui/card/CardText.vue.d.ts +0 -21
- package/dist/components/ui/card/CardTitle.vue.d.ts +0 -21
- package/dist/components/ui/card/index.d.ts +0 -8
- package/dist/components/ui/command/Command.vue.d.ts +0 -40
- package/dist/components/ui/command/CommandDialog.vue.d.ts +0 -32
- package/dist/components/ui/command/CommandEmpty.vue.d.ts +0 -22
- package/dist/components/ui/command/CommandGroup.vue.d.ts +0 -23
- package/dist/components/ui/command/CommandInput.vue.d.ts +0 -7
- package/dist/components/ui/command/CommandItem.vue.d.ts +0 -30
- package/dist/components/ui/command/CommandList.vue.d.ts +0 -22
- package/dist/components/ui/command/CommandSeparator.vue.d.ts +0 -22
- package/dist/components/ui/command/CommandShortcut.vue.d.ts +0 -21
- package/dist/components/ui/command/index.d.ts +0 -90
- package/dist/components/ui/date-picker/DatePicker.vue.d.ts +0 -21
- package/dist/components/ui/date-picker/index.d.ts +0 -2
- package/dist/components/ui/date-time-picker/DateTimePicker.vue.d.ts +0 -27
- package/dist/components/ui/dialog/Dialog.vue.d.ts +0 -25
- package/dist/components/ui/dialog/DialogClose.vue.d.ts +0 -18
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +0 -39
- package/dist/components/ui/dialog/DialogDescription.vue.d.ts +0 -22
- package/dist/components/ui/dialog/DialogFooter.vue.d.ts +0 -21
- package/dist/components/ui/dialog/DialogHeader.vue.d.ts +0 -21
- package/dist/components/ui/dialog/DialogOverlay.vue.d.ts +0 -22
- package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +0 -39
- package/dist/components/ui/dialog/DialogTitle.vue.d.ts +0 -22
- package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +0 -18
- package/dist/components/ui/dialog/index.d.ts +0 -10
- package/dist/components/ui/field/Field.vue.d.ts +0 -23
- package/dist/components/ui/field/FieldContent.vue.d.ts +0 -21
- package/dist/components/ui/field/FieldDescription.vue.d.ts +0 -21
- package/dist/components/ui/field/FieldError.vue.d.ts +0 -24
- package/dist/components/ui/field/FieldGroup.vue.d.ts +0 -21
- package/dist/components/ui/field/FieldLabel.vue.d.ts +0 -21
- package/dist/components/ui/field/FieldLegend.vue.d.ts +0 -22
- package/dist/components/ui/field/FieldSeparator.vue.d.ts +0 -21
- package/dist/components/ui/field/FieldSet.vue.d.ts +0 -21
- package/dist/components/ui/field/FieldTitle.vue.d.ts +0 -21
- package/dist/components/ui/field/index.d.ts +0 -15
- package/dist/components/ui/input/Input.vue.d.ts +0 -12
- package/dist/components/ui/input/index.d.ts +0 -1
- package/dist/components/ui/label/Label.vue.d.ts +0 -22
- package/dist/components/ui/label/index.d.ts +0 -1
- package/dist/components/ui/native-select/NativeSelect.vue.d.ts +0 -27
- package/dist/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +0 -21
- package/dist/components/ui/native-select/NativeSelectOption.vue.d.ts +0 -21
- package/dist/components/ui/native-select/index.d.ts +0 -3
- package/dist/components/ui/popover/Popover.vue.d.ts +0 -25
- package/dist/components/ui/popover/PopoverAnchor.vue.d.ts +0 -18
- package/dist/components/ui/popover/PopoverContent.vue.d.ts +0 -39
- package/dist/components/ui/popover/PopoverTrigger.vue.d.ts +0 -18
- package/dist/components/ui/popover/index.d.ts +0 -4
- package/dist/components/ui/progress/Progress.vue.d.ts +0 -9
- package/dist/components/ui/progress/index.d.ts +0 -1
- package/dist/components/ui/scroll-area/ScrollArea.vue.d.ts +0 -22
- package/dist/components/ui/scroll-area/ScrollBar.vue.d.ts +0 -9
- package/dist/components/ui/scroll-area/index.d.ts +0 -2
- package/dist/components/ui/select/Select.vue.d.ts +0 -28
- package/dist/components/ui/select/SelectContent.vue.d.ts +0 -35
- package/dist/components/ui/select/SelectGroup.vue.d.ts +0 -18
- package/dist/components/ui/select/SelectItem.vue.d.ts +0 -24
- package/dist/components/ui/select/SelectItemContent.vue.d.ts +0 -15
- package/dist/components/ui/select/SelectItemText.vue.d.ts +0 -18
- package/dist/components/ui/select/SelectLabel.vue.d.ts +0 -22
- package/dist/components/ui/select/SelectScrollDownButton.vue.d.ts +0 -22
- package/dist/components/ui/select/SelectScrollUpButton.vue.d.ts +0 -22
- package/dist/components/ui/select/SelectSeparator.vue.d.ts +0 -7
- package/dist/components/ui/select/SelectTrigger.vue.d.ts +0 -25
- package/dist/components/ui/select/SelectValue.vue.d.ts +0 -18
- package/dist/components/ui/select/SelectValueContent.vue.d.ts +0 -16
- package/dist/components/ui/select/index.d.ts +0 -13
- package/dist/components/ui/separator/Separator.vue.d.ts +0 -10
- package/dist/components/ui/separator/index.d.ts +0 -1
- package/dist/components/ui/sheet/Sheet.vue.d.ts +0 -25
- package/dist/components/ui/sheet/SheetClose.vue.d.ts +0 -18
- package/dist/components/ui/sheet/SheetContent.vue.d.ts +0 -39
- package/dist/components/ui/sheet/SheetDescription.vue.d.ts +0 -22
- package/dist/components/ui/sheet/SheetFooter.vue.d.ts +0 -21
- package/dist/components/ui/sheet/SheetHeader.vue.d.ts +0 -21
- package/dist/components/ui/sheet/SheetOverlay.vue.d.ts +0 -22
- package/dist/components/ui/sheet/SheetTitle.vue.d.ts +0 -22
- package/dist/components/ui/sheet/SheetTrigger.vue.d.ts +0 -18
- package/dist/components/ui/sheet/index.d.ts +0 -8
- package/dist/components/ui/sidebar/Sidebar.vue.d.ts +0 -25
- package/dist/components/ui/sidebar/SidebarContent.vue.d.ts +0 -21
- package/dist/components/ui/sidebar/SidebarFooter.vue.d.ts +0 -21
- package/dist/components/ui/sidebar/SidebarGroup.vue.d.ts +0 -21
- package/dist/components/ui/sidebar/SidebarGroupAction.vue.d.ts +0 -22
- package/dist/components/ui/sidebar/SidebarGroupContent.vue.d.ts +0 -21
- package/dist/components/ui/sidebar/SidebarGroupLabel.vue.d.ts +0 -22
- package/dist/components/ui/sidebar/SidebarHeader.vue.d.ts +0 -21
- package/dist/components/ui/sidebar/SidebarInput.vue.d.ts +0 -21
- package/dist/components/ui/sidebar/SidebarInset.vue.d.ts +0 -21
- package/dist/components/ui/sidebar/SidebarMenu.vue.d.ts +0 -21
- package/dist/components/ui/sidebar/SidebarMenuAction.vue.d.ts +0 -25
- package/dist/components/ui/sidebar/SidebarMenuBadge.vue.d.ts +0 -21
- package/dist/components/ui/sidebar/SidebarMenuButton.vue.d.ts +0 -27
- package/dist/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +0 -30
- package/dist/components/ui/sidebar/SidebarMenuItem.vue.d.ts +0 -21
- package/dist/components/ui/sidebar/SidebarMenuSkeleton.vue.d.ts +0 -7
- package/dist/components/ui/sidebar/SidebarMenuSub.vue.d.ts +0 -21
- package/dist/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +0 -27
- package/dist/components/ui/sidebar/SidebarMenuSubItem.vue.d.ts +0 -21
- package/dist/components/ui/sidebar/SidebarProvider.vue.d.ts +0 -32
- package/dist/components/ui/sidebar/SidebarRail.vue.d.ts +0 -21
- package/dist/components/ui/sidebar/SidebarSeparator.vue.d.ts +0 -21
- package/dist/components/ui/sidebar/SidebarTrigger.vue.d.ts +0 -6
- package/dist/components/ui/sidebar/index.d.ts +0 -38
- package/dist/components/ui/sidebar/utils.d.ts +0 -56
- package/dist/components/ui/skeleton/Skeleton.vue.d.ts +0 -6
- package/dist/components/ui/skeleton/index.d.ts +0 -1
- package/dist/components/ui/slider/Slider.vue.d.ts +0 -13
- package/dist/components/ui/slider/index.d.ts +0 -1
- package/dist/components/ui/switch/Switch.vue.d.ts +0 -29
- package/dist/components/ui/switch/index.d.ts +0 -1
- package/dist/components/ui/table/Table.vue.d.ts +0 -21
- package/dist/components/ui/table/TableBody.vue.d.ts +0 -21
- package/dist/components/ui/table/TableCaption.vue.d.ts +0 -21
- package/dist/components/ui/table/TableCell.vue.d.ts +0 -21
- package/dist/components/ui/table/TableEmpty.vue.d.ts +0 -24
- package/dist/components/ui/table/TableFooter.vue.d.ts +0 -21
- package/dist/components/ui/table/TableHead.vue.d.ts +0 -21
- package/dist/components/ui/table/TableHeader.vue.d.ts +0 -21
- package/dist/components/ui/table/TableRow.vue.d.ts +0 -21
- package/dist/components/ui/table/index.d.ts +0 -9
- package/dist/components/ui/tabs/Tabs.vue.d.ts +0 -28
- package/dist/components/ui/tabs/TabsContent.vue.d.ts +0 -22
- package/dist/components/ui/tabs/TabsList.vue.d.ts +0 -22
- package/dist/components/ui/tabs/TabsTrigger.vue.d.ts +0 -22
- package/dist/components/ui/tabs/index.d.ts +0 -4
- package/dist/components/ui/textarea/Textarea.vue.d.ts +0 -12
- package/dist/components/ui/textarea/index.d.ts +0 -1
- package/dist/components/ui/time-picker/TimePicker.vue.d.ts +0 -21
- package/dist/components/ui/time-picker/index.d.ts +0 -2
- package/dist/components/ui/tooltip/Tooltip.vue.d.ts +0 -24
- package/dist/components/ui/tooltip/TooltipContent.vue.d.ts +0 -30
- package/dist/components/ui/tooltip/TooltipProvider.vue.d.ts +0 -20
- package/dist/components/ui/tooltip/TooltipTrigger.vue.d.ts +0 -18
- package/dist/components/ui/tooltip/index.d.ts +0 -4
- package/dist/confirm-dialog.js +0 -228
- package/dist/content.js +0 -210
- package/dist/createContext-BabAT1K8.js +0 -19
- package/dist/dashboard-shell.js +0 -231
- package/dist/data-list.js +0 -97
- package/dist/date-picker.js +0 -5
- package/dist/date-time-picker.js +0 -140
- package/dist/dialog.js +0 -147
- package/dist/empty-state-card.js +0 -5
- package/dist/error-page.js +0 -115
- package/dist/field.js +0 -294
- package/dist/getActiveElement-Bmy6QsUb.js +0 -9
- package/dist/i18n.js +0 -778
- package/dist/index-DDJjWaIl.js +0 -363
- package/dist/index-DDurQzrB.js +0 -44
- package/dist/index-Dw56kNV0.js +0 -251
- package/dist/index.min-CUZWqaEQ.js +0 -32
- package/dist/info-card.js +0 -65
- package/dist/input.js +0 -4
- package/dist/label.js +0 -4
- package/dist/landing-content.js +0 -5
- package/dist/landing-footer.js +0 -5
- package/dist/landing-navbar.js +0 -5
- package/dist/landing-shell.js +0 -5
- package/dist/landing.js +0 -11
- package/dist/language-flag.js +0 -61
- package/dist/language-selector.js +0 -169
- package/dist/lib/color-tokens.d.ts +0 -6
- package/dist/lib/i18n.d.ts +0 -1417
- package/dist/lib/utils.d.ts +0 -3
- package/dist/load-more-button.js +0 -5
- package/dist/loading-state-card.js +0 -5
- package/dist/message-dialog.js +0 -226
- package/dist/message-toast.js +0 -103
- package/dist/native-select.js +0 -25
- package/dist/nullish-D3tMkl6i.js +0 -6
- package/dist/page-header.js +0 -57
- package/dist/popover.js +0 -65
- package/dist/progress-component.js +0 -51
- package/dist/progress.js +0 -4
- package/dist/scroll-area.js +0 -1080
- package/dist/select.js +0 -2222
- package/dist/separator.js +0 -4
- package/dist/sheet.js +0 -68
- package/dist/sidebar.js +0 -807
- package/dist/single-value-card.js +0 -64
- package/dist/skeleton.js +0 -4
- package/dist/slider-form-component.js +0 -60
- package/dist/slider.js +0 -4
- package/dist/style.css +0 -5705
- package/dist/style.d.ts +0 -0
- package/dist/style.js +0 -1
- package/dist/switch-form-component.js +0 -40
- package/dist/switch.js +0 -4
- package/dist/table.js +0 -82
- package/dist/tabs.js +0 -658
- package/dist/text-link.js +0 -39
- package/dist/textarea.js +0 -37
- package/dist/theme-selector.js +0 -159
- package/dist/time-picker.js +0 -5
- package/dist/tooltip.js +0 -32
- package/dist/useDirection-B2bMgzzV.js +0 -12
- package/dist/useFocusGuards-2C1jyYW5.js +0 -29
- package/dist/useFormControl-DZ4LnB9F.js +0 -11
- package/dist/useForwardExpose-BcX3VRdS.js +0 -58
- package/dist/useForwardPropsEmits-GlUGKcIz.js +0 -47
- package/dist/useId-CF6wz41D.js +0 -16
- package/dist/useKbd-JjFOu4f7.js +0 -41
- package/dist/useNonce-CWj1JlPB.js +0 -12
- package/dist/usePrimitiveElement-BCpwlakH.js +0 -16
- package/dist/useSize-DUgGY9t1.js +0 -51
- package/dist/useTypeahead-4RK0Emcv.js +0 -159
- package/dist/utils-DbR1EZn-.js +0 -16
- package/dist/utils-DbYZ4xaD.js +0 -3204
- package/dist/utils-hdwtyAF3.js +0 -44
- package/dist/utils.js +0 -5
package/dist/blog.js
DELETED
|
@@ -1,938 +0,0 @@
|
|
|
1
|
-
import { resolveComponent, openBlock, createBlock, unref, withCtx, createVNode, createElementBlock, createCommentVNode, createElementVNode, toDisplayString, createTextVNode, Fragment, renderList, computed, ref, normalizeClass, onMounted, onUnmounted, TransitionGroup, withDirectives, vShow, normalizeStyle } from "vue";
|
|
2
|
-
import { useI18n } from "vue-i18n";
|
|
3
|
-
import { _ as _sfc_main$h } from "./LoadMoreButton.vue_vue_type_script_setup_true_lang-Be0obsa3.js";
|
|
4
|
-
import { N as Nn, a as dn, m as mn, Z as ZB, t as t9, M as MSr, n as nK, o as oyr, i as Nsr, j as Au } from "./index.min-CUZWqaEQ.js";
|
|
5
|
-
import { H as HugeiconsIcon } from "./HugeiconsIcon.vue-By2RXWWz.js";
|
|
6
|
-
import { _ as _sfc_main$f } from "./Badge.vue_vue_type_script_setup_true_lang-DH_klSVA.js";
|
|
7
|
-
import { Button as _sfc_main$g } from "./button.js";
|
|
8
|
-
import { _ as _sfc_main$d } from "./Card.vue_vue_type_script_setup_true_lang-CZhFtxSD.js";
|
|
9
|
-
import { _ as _sfc_main$e } from "./CardContent.vue_vue_type_script_setup_true_lang-BxI0-dse.js";
|
|
10
|
-
import { f as formatDateLongItalyTimezone } from "./utils-DbYZ4xaD.js";
|
|
11
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
|
|
12
|
-
const _hoisted_1$a = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "relative w-full h-48 overflow-hidden"
|
|
15
|
-
};
|
|
16
|
-
const _hoisted_2$7 = { class: "p-6 flex flex-col flex-grow" };
|
|
17
|
-
const _hoisted_3$6 = {
|
|
18
|
-
key: 0,
|
|
19
|
-
class: "mb-3"
|
|
20
|
-
};
|
|
21
|
-
const _hoisted_4$5 = { class: "text-base font-bold text-[var(--text-primary-light)] dark:text-[var(--text-primary-dark)] mb-2 line-clamp-2" };
|
|
22
|
-
const _hoisted_5$3 = { class: "text-xs md:text-sm text-[var(--text-secondary-light)] dark:text-[var(--text-secondary-dark)] leading-relaxed mb-4 line-clamp-3 flex-grow" };
|
|
23
|
-
const _hoisted_6$3 = { class: "mt-auto" };
|
|
24
|
-
const _sfc_main$c = {
|
|
25
|
-
__name: "PostCard",
|
|
26
|
-
props: {
|
|
27
|
-
image: { type: String, default: "" },
|
|
28
|
-
category: { type: String, default: "" },
|
|
29
|
-
title: { type: String, default: "" },
|
|
30
|
-
description: { type: String, default: "" }
|
|
31
|
-
},
|
|
32
|
-
setup(__props) {
|
|
33
|
-
const { t } = useI18n();
|
|
34
|
-
const props = __props;
|
|
35
|
-
return (_ctx, _cache) => {
|
|
36
|
-
const _component_NuxtImg = resolveComponent("NuxtImg");
|
|
37
|
-
return openBlock(), createBlock(unref(_sfc_main$d), { class: "!p-0 overflow-hidden group cursor-pointer transition-transform duration-300 ease-out hover:-translate-y-1 motion-reduce:transition-none motion-reduce:hover:translate-y-0" }, {
|
|
38
|
-
default: withCtx(() => [
|
|
39
|
-
createVNode(unref(_sfc_main$e), { class: "h-full gap-0 !p-0" }, {
|
|
40
|
-
default: withCtx(() => [
|
|
41
|
-
props.image ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
42
|
-
createVNode(_component_NuxtImg, {
|
|
43
|
-
src: props.image,
|
|
44
|
-
alt: props.title,
|
|
45
|
-
height: "225",
|
|
46
|
-
width: "400",
|
|
47
|
-
format: "avif",
|
|
48
|
-
quality: "35",
|
|
49
|
-
sizes: { 480: "480px", 1280: "400px" },
|
|
50
|
-
loading: "lazy",
|
|
51
|
-
decoding: "async",
|
|
52
|
-
class: "w-full h-full object-cover transition-transform duration-500 group-hover:scale-110"
|
|
53
|
-
}, null, 8, ["src", "alt"])
|
|
54
|
-
])) : createCommentVNode("", true),
|
|
55
|
-
createElementVNode("div", _hoisted_2$7, [
|
|
56
|
-
props.category ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
|
|
57
|
-
createVNode(unref(_sfc_main$f), {
|
|
58
|
-
color: "gray",
|
|
59
|
-
text: props.category
|
|
60
|
-
}, null, 8, ["text"])
|
|
61
|
-
])) : createCommentVNode("", true),
|
|
62
|
-
createElementVNode("h2", _hoisted_4$5, toDisplayString(props.title), 1),
|
|
63
|
-
createElementVNode("p", _hoisted_5$3, toDisplayString(props.description), 1),
|
|
64
|
-
createElementVNode("div", _hoisted_6$3, [
|
|
65
|
-
createVNode(unref(_sfc_main$g), {
|
|
66
|
-
variant: "primary",
|
|
67
|
-
class: "w-full sm:w-auto"
|
|
68
|
-
}, {
|
|
69
|
-
default: withCtx(() => [
|
|
70
|
-
createVNode(unref(HugeiconsIcon), {
|
|
71
|
-
icon: unref(Nn),
|
|
72
|
-
class: "size-4"
|
|
73
|
-
}, null, 8, ["icon"]),
|
|
74
|
-
createTextVNode(" " + toDisplayString(unref(t)("uiVintage.blog.readMore")), 1)
|
|
75
|
-
]),
|
|
76
|
-
_: 1
|
|
77
|
-
})
|
|
78
|
-
])
|
|
79
|
-
])
|
|
80
|
-
]),
|
|
81
|
-
_: 1
|
|
82
|
-
})
|
|
83
|
-
]),
|
|
84
|
-
_: 1
|
|
85
|
-
});
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
const _hoisted_1$9 = { class: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6" };
|
|
90
|
-
const _sfc_main$b = {
|
|
91
|
-
__name: "PostsList",
|
|
92
|
-
props: {
|
|
93
|
-
posts: { type: Array, default: () => [] }
|
|
94
|
-
},
|
|
95
|
-
setup(__props) {
|
|
96
|
-
const props = __props;
|
|
97
|
-
return (_ctx, _cache) => {
|
|
98
|
-
const _component_NuxtLinkLocale = resolveComponent("NuxtLinkLocale");
|
|
99
|
-
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
100
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(props.posts, (post, index) => {
|
|
101
|
-
return openBlock(), createBlock(_component_NuxtLinkLocale, {
|
|
102
|
-
key: post.path,
|
|
103
|
-
to: post.path,
|
|
104
|
-
class: "block h-full",
|
|
105
|
-
"data-aos": "fade-up",
|
|
106
|
-
"data-aos-delay": index % 3 * 200
|
|
107
|
-
}, {
|
|
108
|
-
default: withCtx(() => [
|
|
109
|
-
createVNode(_sfc_main$c, {
|
|
110
|
-
class: "h-full",
|
|
111
|
-
image: post.image,
|
|
112
|
-
category: post.categoryText,
|
|
113
|
-
title: post.title,
|
|
114
|
-
description: post.description
|
|
115
|
-
}, null, 8, ["image", "category", "title", "description"])
|
|
116
|
-
]),
|
|
117
|
-
_: 2
|
|
118
|
-
}, 1032, ["to", "data-aos-delay"]);
|
|
119
|
-
}), 128))
|
|
120
|
-
]);
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
const _sfc_main$a = {
|
|
125
|
-
__name: "AllPostsSection",
|
|
126
|
-
props: {
|
|
127
|
-
posts: { type: Array, default: () => [] },
|
|
128
|
-
currentPage: { type: Number, default: 1 },
|
|
129
|
-
postsPerPage: { type: Number, default: 9 },
|
|
130
|
-
totalPosts: { type: Number, default: 0 },
|
|
131
|
-
hasMorePosts: { type: Boolean, default: false },
|
|
132
|
-
isLoading: { type: Boolean, default: false }
|
|
133
|
-
},
|
|
134
|
-
emits: ["load-more"],
|
|
135
|
-
setup(__props, { emit: __emit }) {
|
|
136
|
-
const { t } = useI18n();
|
|
137
|
-
const props = __props;
|
|
138
|
-
const emits = __emit;
|
|
139
|
-
const handleLoadMorePosts = () => {
|
|
140
|
-
if (!props.isLoading) {
|
|
141
|
-
emits("load-more");
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
const visiblePostsCount = computed(() => Math.min(props.posts.length, props.totalPosts));
|
|
145
|
-
return (_ctx, _cache) => {
|
|
146
|
-
return openBlock(), createElementBlock("div", null, [
|
|
147
|
-
createVNode(_sfc_main$b, {
|
|
148
|
-
posts: props.posts
|
|
149
|
-
}, null, 8, ["posts"]),
|
|
150
|
-
props.hasMorePosts ? (openBlock(), createBlock(unref(_sfc_main$h), {
|
|
151
|
-
key: 0,
|
|
152
|
-
busy: props.isLoading,
|
|
153
|
-
text: unref(t)("uiVintage.blog.loadMoreWithNumbers", { current: visiblePostsCount.value, total: props.totalPosts }),
|
|
154
|
-
onLoadMore: handleLoadMorePosts,
|
|
155
|
-
class: "mt-8",
|
|
156
|
-
"data-aos": "fade-up"
|
|
157
|
-
}, null, 8, ["busy", "text"])) : createCommentVNode("", true)
|
|
158
|
-
]);
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
};
|
|
162
|
-
const _hoisted_1$8 = { class: "text-xl md:text-2xl font-bold text-[var(--text-primary-light)] dark:text-[var(--text-primary-dark)] mb-5" };
|
|
163
|
-
const _sfc_main$9 = {
|
|
164
|
-
__name: "BlogSectionTitle",
|
|
165
|
-
props: {
|
|
166
|
-
title: { type: String, required: true }
|
|
167
|
-
},
|
|
168
|
-
setup(__props) {
|
|
169
|
-
const props = __props;
|
|
170
|
-
return (_ctx, _cache) => {
|
|
171
|
-
return openBlock(), createElementBlock("h2", _hoisted_1$8, toDisplayString(props.title), 1);
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
};
|
|
175
|
-
const _hoisted_1$7 = {
|
|
176
|
-
key: 0,
|
|
177
|
-
class: "mt-12 lg:mt-16"
|
|
178
|
-
};
|
|
179
|
-
const _hoisted_2$6 = { class: "text-base md:text-lg text-[var(--text-secondary-light)] dark:text-[var(--text-secondary-dark)] mb-8" };
|
|
180
|
-
const _hoisted_3$5 = { class: "space-y-4" };
|
|
181
|
-
const _hoisted_4$4 = { class: "flex items-center justify-between p-5 gap-4" };
|
|
182
|
-
const _hoisted_5$2 = { class: "text-sm md:!text-base font-semibold text-[var(--text-primary-light)] dark:text-[var(--text-primary-dark)] text-left" };
|
|
183
|
-
const _hoisted_6$2 = { class: "px-5 pb-5 text-xs md:text-sm text-[var(--text-secondary-light)] dark:text-[var(--text-secondary-dark)] leading-relaxed" };
|
|
184
|
-
const _sfc_main$8 = {
|
|
185
|
-
__name: "BlogFAQSection",
|
|
186
|
-
props: {
|
|
187
|
-
faqs: { type: Array, default: () => [] }
|
|
188
|
-
},
|
|
189
|
-
setup(__props) {
|
|
190
|
-
const props = __props;
|
|
191
|
-
const { t } = useI18n();
|
|
192
|
-
const expandedItems = ref({});
|
|
193
|
-
const hasValidFAQs = computed(() => props.faqs && props.faqs.length > 0);
|
|
194
|
-
const toggleItem = (index) => {
|
|
195
|
-
expandedItems.value[index] = !expandedItems.value[index];
|
|
196
|
-
};
|
|
197
|
-
const isExpanded = (index) => {
|
|
198
|
-
return expandedItems.value[index] || false;
|
|
199
|
-
};
|
|
200
|
-
if (hasValidFAQs.value) {
|
|
201
|
-
expandedItems.value[0] = true;
|
|
202
|
-
}
|
|
203
|
-
return (_ctx, _cache) => {
|
|
204
|
-
return hasValidFAQs.value ? (openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
205
|
-
createVNode(_sfc_main$9, {
|
|
206
|
-
title: unref(t)("uiVintage.blog.faq.title")
|
|
207
|
-
}, null, 8, ["title"]),
|
|
208
|
-
createElementVNode("p", _hoisted_2$6, toDisplayString(unref(t)("uiVintage.blog.faq.description")), 1),
|
|
209
|
-
createElementVNode("div", _hoisted_3$5, [
|
|
210
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(props.faqs, (faq, index) => {
|
|
211
|
-
return openBlock(), createBlock(unref(_sfc_main$d), {
|
|
212
|
-
key: index,
|
|
213
|
-
class: "!p-0 cursor-pointer",
|
|
214
|
-
onClick: ($event) => toggleItem(index)
|
|
215
|
-
}, {
|
|
216
|
-
default: withCtx(() => [
|
|
217
|
-
createVNode(unref(_sfc_main$e), { class: "!p-0 gap-0" }, {
|
|
218
|
-
default: withCtx(() => [
|
|
219
|
-
createElementVNode("div", _hoisted_4$4, [
|
|
220
|
-
createElementVNode("h3", _hoisted_5$2, toDisplayString(faq.question), 1),
|
|
221
|
-
createElementVNode("div", {
|
|
222
|
-
class: normalizeClass(["flex-shrink-0 w-8 h-8 flex items-center justify-center rounded bg-[var(--bg-card-light)] dark:bg-[var(--bg-card-dark)] border border-[var(--border-light)] dark:border-[var(--border-dark)] transition-transform duration-300", { "rotate-180": isExpanded(index) }])
|
|
223
|
-
}, [
|
|
224
|
-
createVNode(unref(HugeiconsIcon), {
|
|
225
|
-
icon: unref(dn),
|
|
226
|
-
class: "size-4 text-[var(--text-secondary-light)] dark:text-[var(--text-secondary-dark)]"
|
|
227
|
-
}, null, 8, ["icon"])
|
|
228
|
-
], 2)
|
|
229
|
-
]),
|
|
230
|
-
createElementVNode("div", {
|
|
231
|
-
class: normalizeClass(["overflow-hidden transition-all duration-300 ease-in-out", isExpanded(index) ? "max-h-96 opacity-100" : "max-h-0 opacity-0"])
|
|
232
|
-
}, [
|
|
233
|
-
createElementVNode("p", _hoisted_6$2, toDisplayString(faq.answer), 1)
|
|
234
|
-
], 2)
|
|
235
|
-
]),
|
|
236
|
-
_: 2
|
|
237
|
-
}, 1024)
|
|
238
|
-
]),
|
|
239
|
-
_: 2
|
|
240
|
-
}, 1032, ["onClick"]);
|
|
241
|
-
}), 128))
|
|
242
|
-
])
|
|
243
|
-
])) : createCommentVNode("", true);
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
};
|
|
247
|
-
const _hoisted_1$6 = { class: "flex flex-col sm:flex-row sm:items-center sm:justify-between" };
|
|
248
|
-
const _hoisted_2$5 = { class: "flex items-center mb-4 sm:mb-0" };
|
|
249
|
-
const _hoisted_3$4 = { class: "flex items-center" };
|
|
250
|
-
const _hoisted_4$3 = { class: "text-sm text-[var(--text-secondary-light)] dark:text-[var(--text-secondary-dark)]" };
|
|
251
|
-
const _hoisted_5$1 = { class: "font-bold text-[var(--text-primary-light)] dark:text-[var(--text-primary-dark)]" };
|
|
252
|
-
const _hoisted_6$1 = { class: "flex flex-col sm:items-end text-xs md:text-sm text-[var(--text-secondary-light)] dark:text-[var(--text-secondary-dark)]" };
|
|
253
|
-
const _hoisted_7$1 = {
|
|
254
|
-
key: 0,
|
|
255
|
-
class: "mb-1"
|
|
256
|
-
};
|
|
257
|
-
const _hoisted_8$1 = { class: "font-semibold" };
|
|
258
|
-
const _hoisted_9$1 = ["datetime"];
|
|
259
|
-
const _hoisted_10$1 = {
|
|
260
|
-
key: 1,
|
|
261
|
-
class: "text-xs"
|
|
262
|
-
};
|
|
263
|
-
const _hoisted_11$1 = { class: "font-semibold" };
|
|
264
|
-
const _hoisted_12 = ["datetime"];
|
|
265
|
-
const _sfc_main$7 = {
|
|
266
|
-
__name: "BlogInfoSection",
|
|
267
|
-
props: {
|
|
268
|
-
author: { type: String, required: true },
|
|
269
|
-
authorUrl: { type: String, required: true },
|
|
270
|
-
authorImageUrl: { type: String, required: true },
|
|
271
|
-
datePublished: { type: String, required: true },
|
|
272
|
-
dateModified: { type: String, default: null }
|
|
273
|
-
},
|
|
274
|
-
setup(__props) {
|
|
275
|
-
const props = __props;
|
|
276
|
-
const { t, locale } = useI18n();
|
|
277
|
-
const formattedPublishedDate = computed(() => formatDateLongItalyTimezone(props.datePublished, locale.value));
|
|
278
|
-
const formattedModifiedDate = computed(() => formatDateLongItalyTimezone(props.dateModified, locale.value));
|
|
279
|
-
return (_ctx, _cache) => {
|
|
280
|
-
const _component_NuxtImg = resolveComponent("NuxtImg");
|
|
281
|
-
const _component_NuxtLink = resolveComponent("NuxtLink");
|
|
282
|
-
return openBlock(), createBlock(unref(_sfc_main$d), { "data-aos": "fade-up" }, {
|
|
283
|
-
default: withCtx(() => [
|
|
284
|
-
createVNode(unref(_sfc_main$e), null, {
|
|
285
|
-
default: withCtx(() => [
|
|
286
|
-
createElementVNode("div", _hoisted_1$6, [
|
|
287
|
-
createElementVNode("div", _hoisted_2$5, [
|
|
288
|
-
createElementVNode("div", _hoisted_3$4, [
|
|
289
|
-
createVNode(_component_NuxtLink, {
|
|
290
|
-
to: props.authorUrl,
|
|
291
|
-
target: "_blank",
|
|
292
|
-
rel: "noopener noreferrer",
|
|
293
|
-
class: "rounded me-3 transition-transform duration-300 ease-out hover:scale-105 motion-reduce:transition-none motion-reduce:hover:scale-100"
|
|
294
|
-
}, {
|
|
295
|
-
default: withCtx(() => [
|
|
296
|
-
createVNode(_component_NuxtImg, {
|
|
297
|
-
src: props.authorImageUrl,
|
|
298
|
-
alt: props.author,
|
|
299
|
-
height: "50",
|
|
300
|
-
width: "50",
|
|
301
|
-
format: "avif",
|
|
302
|
-
quality: "40",
|
|
303
|
-
sizes: { 480: "50px", 1280: "50px" },
|
|
304
|
-
loading: "lazy",
|
|
305
|
-
decoding: "async",
|
|
306
|
-
class: "object-cover rounded"
|
|
307
|
-
}, null, 8, ["src", "alt"])
|
|
308
|
-
]),
|
|
309
|
-
_: 1
|
|
310
|
-
}, 8, ["to"]),
|
|
311
|
-
createElementVNode("div", null, [
|
|
312
|
-
createElementVNode("p", _hoisted_4$3, toDisplayString(unref(t)("uiVintage.blog.author")), 1),
|
|
313
|
-
createElementVNode("p", _hoisted_5$1, [
|
|
314
|
-
createVNode(_component_NuxtLink, {
|
|
315
|
-
to: props.authorUrl,
|
|
316
|
-
target: "_blank",
|
|
317
|
-
rel: "noopener noreferrer",
|
|
318
|
-
class: "hover:text-[var(--text-secondary-light)] dark:hover:text-[var(--text-secondary-dark)] transition-colors"
|
|
319
|
-
}, {
|
|
320
|
-
default: withCtx(() => [
|
|
321
|
-
createTextVNode(toDisplayString(props.author), 1)
|
|
322
|
-
]),
|
|
323
|
-
_: 1
|
|
324
|
-
}, 8, ["to"])
|
|
325
|
-
])
|
|
326
|
-
])
|
|
327
|
-
])
|
|
328
|
-
]),
|
|
329
|
-
createElementVNode("div", _hoisted_6$1, [
|
|
330
|
-
props.datePublished ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
|
|
331
|
-
createElementVNode("span", _hoisted_8$1, toDisplayString(unref(t)("uiVintage.blog.publishedDate")) + ":", 1),
|
|
332
|
-
createElementVNode("time", {
|
|
333
|
-
datetime: props.datePublished,
|
|
334
|
-
class: "ml-1"
|
|
335
|
-
}, toDisplayString(formattedPublishedDate.value), 9, _hoisted_9$1)
|
|
336
|
-
])) : createCommentVNode("", true),
|
|
337
|
-
props.dateModified ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
|
|
338
|
-
createElementVNode("span", _hoisted_11$1, toDisplayString(unref(t)("uiVintage.blog.lastUpdatedDate")) + ":", 1),
|
|
339
|
-
createElementVNode("time", {
|
|
340
|
-
datetime: props.dateModified,
|
|
341
|
-
class: "ml-1"
|
|
342
|
-
}, toDisplayString(formattedModifiedDate.value), 9, _hoisted_12)
|
|
343
|
-
])) : createCommentVNode("", true)
|
|
344
|
-
])
|
|
345
|
-
])
|
|
346
|
-
]),
|
|
347
|
-
_: 1
|
|
348
|
-
})
|
|
349
|
-
]),
|
|
350
|
-
_: 1
|
|
351
|
-
});
|
|
352
|
-
};
|
|
353
|
-
}
|
|
354
|
-
};
|
|
355
|
-
const _hoisted_1$5 = { class: "flex flex-col space-y-6 md:!space-y-8" };
|
|
356
|
-
const _hoisted_2$4 = {
|
|
357
|
-
key: 0,
|
|
358
|
-
class: "flex flex-wrap gap-3 mb-6 md:mb-8"
|
|
359
|
-
};
|
|
360
|
-
const _hoisted_3$3 = { class: "text-3xl md:text-6xl font-bold text-[var(--text-primary-light)] dark:text-[var(--text-primary-dark)] leading-tight" };
|
|
361
|
-
const _hoisted_4$2 = { class: "text-sm md:text-xl text-[var(--text-secondary-light)] dark:text-[var(--text-secondary-dark)] leading-relaxed" };
|
|
362
|
-
const _sfc_main$6 = {
|
|
363
|
-
__name: "BlogHeaderSection",
|
|
364
|
-
props: {
|
|
365
|
-
badges: {
|
|
366
|
-
type: Array,
|
|
367
|
-
default: () => []
|
|
368
|
-
},
|
|
369
|
-
title: { type: String, required: true },
|
|
370
|
-
description: { type: String, required: true }
|
|
371
|
-
},
|
|
372
|
-
setup(__props) {
|
|
373
|
-
const props = __props;
|
|
374
|
-
return (_ctx, _cache) => {
|
|
375
|
-
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
376
|
-
props.badges.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_2$4, [
|
|
377
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(props.badges, (badge) => {
|
|
378
|
-
return openBlock(), createBlock(unref(_sfc_main$f), {
|
|
379
|
-
key: `${badge.color}-${badge.text}`,
|
|
380
|
-
color: badge.color,
|
|
381
|
-
text: badge.text
|
|
382
|
-
}, null, 8, ["color", "text"]);
|
|
383
|
-
}), 128))
|
|
384
|
-
])) : createCommentVNode("", true),
|
|
385
|
-
createElementVNode("h1", _hoisted_3$3, toDisplayString(props.title), 1),
|
|
386
|
-
createElementVNode("p", _hoisted_4$2, toDisplayString(props.description), 1)
|
|
387
|
-
]);
|
|
388
|
-
};
|
|
389
|
-
}
|
|
390
|
-
};
|
|
391
|
-
const _hoisted_1$4 = {
|
|
392
|
-
key: 0,
|
|
393
|
-
class: "relative w-full h-36 overflow-hidden"
|
|
394
|
-
};
|
|
395
|
-
const _hoisted_2$3 = { class: "p-4 flex items-center justify-between" };
|
|
396
|
-
const _hoisted_3$2 = { class: "text-sm font-bold text-[var(--text-primary-light)] dark:text-[var(--text-primary-dark)] truncate mr-3" };
|
|
397
|
-
const _sfc_main$5 = {
|
|
398
|
-
__name: "CategoryCard",
|
|
399
|
-
props: {
|
|
400
|
-
name: { type: String, required: true },
|
|
401
|
-
image: { type: String, default: "" },
|
|
402
|
-
count: { type: Number, required: true }
|
|
403
|
-
},
|
|
404
|
-
setup(__props) {
|
|
405
|
-
const props = __props;
|
|
406
|
-
return (_ctx, _cache) => {
|
|
407
|
-
const _component_NuxtImg = resolveComponent("NuxtImg");
|
|
408
|
-
return openBlock(), createBlock(unref(_sfc_main$d), { class: "!p-0 overflow-hidden group cursor-pointer transition-transform duration-300 ease-out hover:-translate-y-1 motion-reduce:transition-none motion-reduce:hover:translate-y-0" }, {
|
|
409
|
-
default: withCtx(() => [
|
|
410
|
-
createVNode(unref(_sfc_main$e), { class: "gap-0 !p-0" }, {
|
|
411
|
-
default: withCtx(() => [
|
|
412
|
-
props.image ? (openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
413
|
-
createVNode(_component_NuxtImg, {
|
|
414
|
-
src: props.image,
|
|
415
|
-
alt: props.name,
|
|
416
|
-
height: "225",
|
|
417
|
-
width: "400",
|
|
418
|
-
format: "avif",
|
|
419
|
-
quality: "35",
|
|
420
|
-
sizes: { 480: "480px", 1280: "400px" },
|
|
421
|
-
loading: "lazy",
|
|
422
|
-
decoding: "async",
|
|
423
|
-
class: "w-full h-full object-cover transition-transform duration-500 group-hover:scale-110"
|
|
424
|
-
}, null, 8, ["src", "alt"])
|
|
425
|
-
])) : createCommentVNode("", true),
|
|
426
|
-
createElementVNode("div", _hoisted_2$3, [
|
|
427
|
-
createElementVNode("span", _hoisted_3$2, toDisplayString(props.name), 1),
|
|
428
|
-
createVNode(unref(_sfc_main$f), {
|
|
429
|
-
color: "gray",
|
|
430
|
-
text: String(props.count)
|
|
431
|
-
}, null, 8, ["text"])
|
|
432
|
-
])
|
|
433
|
-
]),
|
|
434
|
-
_: 1
|
|
435
|
-
})
|
|
436
|
-
]),
|
|
437
|
-
_: 1
|
|
438
|
-
});
|
|
439
|
-
};
|
|
440
|
-
}
|
|
441
|
-
};
|
|
442
|
-
const _hoisted_1$3 = { class: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-5 md:gap-6" };
|
|
443
|
-
const _sfc_main$4 = {
|
|
444
|
-
__name: "CategoriesList",
|
|
445
|
-
props: {
|
|
446
|
-
categories: { type: Array, default: () => [] }
|
|
447
|
-
},
|
|
448
|
-
setup(__props) {
|
|
449
|
-
const props = __props;
|
|
450
|
-
return (_ctx, _cache) => {
|
|
451
|
-
const _component_NuxtLinkLocale = resolveComponent("NuxtLinkLocale");
|
|
452
|
-
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
453
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(props.categories, (category, i) => {
|
|
454
|
-
return openBlock(), createBlock(_component_NuxtLinkLocale, {
|
|
455
|
-
key: category.slug,
|
|
456
|
-
to: `/blog/categories/${category.slug}`,
|
|
457
|
-
class: "block h-full",
|
|
458
|
-
"data-aos": "fade-up",
|
|
459
|
-
"data-aos-delay": i % 4 * 200
|
|
460
|
-
}, {
|
|
461
|
-
default: withCtx(() => [
|
|
462
|
-
createVNode(_sfc_main$5, {
|
|
463
|
-
name: category.name,
|
|
464
|
-
image: category.image,
|
|
465
|
-
count: category.count
|
|
466
|
-
}, null, 8, ["name", "image", "count"])
|
|
467
|
-
]),
|
|
468
|
-
_: 2
|
|
469
|
-
}, 1032, ["to", "data-aos-delay"]);
|
|
470
|
-
}), 128))
|
|
471
|
-
]);
|
|
472
|
-
};
|
|
473
|
-
}
|
|
474
|
-
};
|
|
475
|
-
const _sfc_main$3 = {
|
|
476
|
-
__name: "CategoriesSection",
|
|
477
|
-
props: {
|
|
478
|
-
categories: { type: Array, default: () => [] }
|
|
479
|
-
},
|
|
480
|
-
setup(__props) {
|
|
481
|
-
const props = __props;
|
|
482
|
-
return (_ctx, _cache) => {
|
|
483
|
-
return openBlock(), createElementBlock("div", null, [
|
|
484
|
-
createVNode(_sfc_main$4, {
|
|
485
|
-
categories: props.categories
|
|
486
|
-
}, null, 8, ["categories"])
|
|
487
|
-
]);
|
|
488
|
-
};
|
|
489
|
-
}
|
|
490
|
-
};
|
|
491
|
-
const _hoisted_1$2 = { class: "relative overflow-hidden rounded" };
|
|
492
|
-
const _hoisted_2$2 = ["id", "data-direction"];
|
|
493
|
-
const _hoisted_3$1 = { class: "relative w-full h-56 md:h-80 overflow-hidden" };
|
|
494
|
-
const _hoisted_4$1 = { class: "p-6 md:p-8" };
|
|
495
|
-
const _hoisted_5 = { class: "text-base md:text-3xl font-bold text-[var(--text-primary-light)] dark:text-[var(--text-primary-dark)] mb-3 line-clamp-2 hover:opacity-75 transition-opacity duration-200" };
|
|
496
|
-
const _hoisted_6 = { class: "text-xs md:!text-base text-[var(--text-secondary-light)] dark:text-[var(--text-secondary-dark)] mb-6 line-clamp-2 leading-relaxed" };
|
|
497
|
-
const _hoisted_7 = { class: "flex flex-col gap-6 sm:flex-row sm:items-center sm:justify-between" };
|
|
498
|
-
const _hoisted_8 = ["aria-label"];
|
|
499
|
-
const _hoisted_9 = ["onClick", "aria-label", "aria-current", "aria-controls"];
|
|
500
|
-
const _hoisted_10 = ["aria-label"];
|
|
501
|
-
const _hoisted_11 = ["aria-label"];
|
|
502
|
-
const _sfc_main$2 = {
|
|
503
|
-
__name: "HeaderCarousel",
|
|
504
|
-
props: {
|
|
505
|
-
featuredPosts: { type: Array, default: () => [] }
|
|
506
|
-
},
|
|
507
|
-
setup(__props) {
|
|
508
|
-
const { t } = useI18n();
|
|
509
|
-
const props = __props;
|
|
510
|
-
const currentSlide = ref(0);
|
|
511
|
-
const slideCount = computed(() => props.featuredPosts.length || 0);
|
|
512
|
-
const intervalId = ref(null);
|
|
513
|
-
const direction = ref("forward");
|
|
514
|
-
const startAutoPlay = () => {
|
|
515
|
-
intervalId.value = setInterval(nextSlide, 5e3);
|
|
516
|
-
};
|
|
517
|
-
const stopAutoPlay = () => {
|
|
518
|
-
if (intervalId.value) clearInterval(intervalId.value);
|
|
519
|
-
};
|
|
520
|
-
const nextSlide = () => {
|
|
521
|
-
direction.value = "forward";
|
|
522
|
-
currentSlide.value = (currentSlide.value + 1) % slideCount.value;
|
|
523
|
-
};
|
|
524
|
-
const prevSlide = () => {
|
|
525
|
-
direction.value = "backward";
|
|
526
|
-
currentSlide.value = (currentSlide.value - 1 + slideCount.value) % slideCount.value;
|
|
527
|
-
};
|
|
528
|
-
const goToSlide = (index) => {
|
|
529
|
-
if (index > currentSlide.value) {
|
|
530
|
-
direction.value = "forward";
|
|
531
|
-
} else {
|
|
532
|
-
direction.value = "backward";
|
|
533
|
-
}
|
|
534
|
-
currentSlide.value = index;
|
|
535
|
-
};
|
|
536
|
-
onMounted(() => {
|
|
537
|
-
startAutoPlay();
|
|
538
|
-
});
|
|
539
|
-
onUnmounted(() => {
|
|
540
|
-
stopAutoPlay();
|
|
541
|
-
});
|
|
542
|
-
return (_ctx, _cache) => {
|
|
543
|
-
const _component_NuxtImg = resolveComponent("NuxtImg");
|
|
544
|
-
const _component_NuxtLinkLocale = resolveComponent("NuxtLinkLocale");
|
|
545
|
-
return props.featuredPosts.length > 0 ? (openBlock(), createElementBlock("div", {
|
|
546
|
-
key: 0,
|
|
547
|
-
class: "relative",
|
|
548
|
-
onMouseenter: stopAutoPlay,
|
|
549
|
-
onMouseleave: startAutoPlay
|
|
550
|
-
}, [
|
|
551
|
-
createElementVNode("div", _hoisted_1$2, [
|
|
552
|
-
createVNode(TransitionGroup, { name: "slide" }, {
|
|
553
|
-
default: withCtx(() => [
|
|
554
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(props.featuredPosts, (post, index) => {
|
|
555
|
-
return withDirectives((openBlock(), createElementBlock("div", {
|
|
556
|
-
id: `carousel-slide-${index}`,
|
|
557
|
-
key: post.path || post.title || index,
|
|
558
|
-
class: "w-full",
|
|
559
|
-
"data-direction": direction.value
|
|
560
|
-
}, [
|
|
561
|
-
createVNode(unref(_sfc_main$d), { class: "!p-0 overflow-hidden cursor-pointer" }, {
|
|
562
|
-
default: withCtx(() => [
|
|
563
|
-
createVNode(unref(_sfc_main$e), { class: "gap-0 !p-0" }, {
|
|
564
|
-
default: withCtx(() => [
|
|
565
|
-
createVNode(_component_NuxtLinkLocale, {
|
|
566
|
-
to: post.path
|
|
567
|
-
}, {
|
|
568
|
-
default: withCtx(() => [
|
|
569
|
-
createElementVNode("div", _hoisted_3$1, [
|
|
570
|
-
createVNode(_component_NuxtImg, {
|
|
571
|
-
src: post.image,
|
|
572
|
-
alt: post.title,
|
|
573
|
-
width: "560",
|
|
574
|
-
height: "315",
|
|
575
|
-
format: "avif",
|
|
576
|
-
quality: "35",
|
|
577
|
-
sizes: { 480: "480px", 1536: "1086px" },
|
|
578
|
-
loading: index === 0 ? "eager" : "lazy",
|
|
579
|
-
fetchpriority: index === 0 ? "high" : "auto",
|
|
580
|
-
preload: index === 0,
|
|
581
|
-
class: "w-full h-full object-cover transition-transform duration-500 hover:scale-105"
|
|
582
|
-
}, null, 8, ["src", "alt", "loading", "fetchpriority", "preload"])
|
|
583
|
-
])
|
|
584
|
-
]),
|
|
585
|
-
_: 2
|
|
586
|
-
}, 1032, ["to"]),
|
|
587
|
-
createElementVNode("div", _hoisted_4$1, [
|
|
588
|
-
post.categoryText ? (openBlock(), createBlock(_component_NuxtLinkLocale, {
|
|
589
|
-
key: 0,
|
|
590
|
-
to: `/blog/categories/${post.categorySlug}`,
|
|
591
|
-
class: "inline-block mb-3"
|
|
592
|
-
}, {
|
|
593
|
-
default: withCtx(() => [
|
|
594
|
-
createVNode(unref(_sfc_main$f), {
|
|
595
|
-
color: "gray",
|
|
596
|
-
text: post.categoryText
|
|
597
|
-
}, null, 8, ["text"])
|
|
598
|
-
]),
|
|
599
|
-
_: 2
|
|
600
|
-
}, 1032, ["to"])) : createCommentVNode("", true),
|
|
601
|
-
createVNode(_component_NuxtLinkLocale, {
|
|
602
|
-
to: post.path
|
|
603
|
-
}, {
|
|
604
|
-
default: withCtx(() => [
|
|
605
|
-
createElementVNode("h3", _hoisted_5, toDisplayString(post.title), 1)
|
|
606
|
-
]),
|
|
607
|
-
_: 2
|
|
608
|
-
}, 1032, ["to"]),
|
|
609
|
-
createElementVNode("p", _hoisted_6, toDisplayString(post.description), 1),
|
|
610
|
-
createElementVNode("div", _hoisted_7, [
|
|
611
|
-
createVNode(_component_NuxtLinkLocale, {
|
|
612
|
-
to: post.path
|
|
613
|
-
}, {
|
|
614
|
-
default: withCtx(() => [
|
|
615
|
-
createVNode(unref(_sfc_main$g), {
|
|
616
|
-
variant: "primary",
|
|
617
|
-
class: "w-full sm:w-auto"
|
|
618
|
-
}, {
|
|
619
|
-
default: withCtx(() => [
|
|
620
|
-
createVNode(unref(HugeiconsIcon), {
|
|
621
|
-
icon: unref(Nn),
|
|
622
|
-
class: "size-4"
|
|
623
|
-
}, null, 8, ["icon"]),
|
|
624
|
-
createTextVNode(" " + toDisplayString(unref(t)("uiVintage.blog.goToPost")), 1)
|
|
625
|
-
]),
|
|
626
|
-
_: 1
|
|
627
|
-
})
|
|
628
|
-
]),
|
|
629
|
-
_: 2
|
|
630
|
-
}, 1032, ["to"]),
|
|
631
|
-
props.featuredPosts.length > 1 ? (openBlock(), createElementBlock("div", {
|
|
632
|
-
key: 0,
|
|
633
|
-
class: "flex w-full justify-center gap-3 sm:w-auto",
|
|
634
|
-
role: "tablist",
|
|
635
|
-
"aria-label": unref(t)("uiVintage.blog.carouselNavigation")
|
|
636
|
-
}, [
|
|
637
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(props.featuredPosts, (_, idx) => {
|
|
638
|
-
return openBlock(), createElementBlock("button", {
|
|
639
|
-
key: idx,
|
|
640
|
-
onClick: ($event) => goToSlide(idx),
|
|
641
|
-
class: normalizeClass(["h-5 w-5 sm:!h-4 sm:!w-4 shrink-0 rounded-[2px] transition-all duration-300 cursor-pointer bg-[var(--border-light)] dark:bg-[var(--border-dark)]", currentSlide.value === idx ? "!w-8 sm:!w-7 !bg-[var(--text-primary-light)] dark:!bg-[var(--text-primary-dark)]" : ""]),
|
|
642
|
-
"aria-label": unref(t)("uiVintage.blog.goToSlide", { index: idx + 1 }),
|
|
643
|
-
"aria-current": currentSlide.value === idx,
|
|
644
|
-
role: "tab",
|
|
645
|
-
"aria-controls": `carousel-slide-${idx}`
|
|
646
|
-
}, null, 10, _hoisted_9);
|
|
647
|
-
}), 128))
|
|
648
|
-
], 8, _hoisted_8)) : createCommentVNode("", true)
|
|
649
|
-
])
|
|
650
|
-
])
|
|
651
|
-
]),
|
|
652
|
-
_: 2
|
|
653
|
-
}, 1024)
|
|
654
|
-
]),
|
|
655
|
-
_: 2
|
|
656
|
-
}, 1024)
|
|
657
|
-
], 8, _hoisted_2$2)), [
|
|
658
|
-
[vShow, currentSlide.value === index]
|
|
659
|
-
]);
|
|
660
|
-
}), 128))
|
|
661
|
-
]),
|
|
662
|
-
_: 1
|
|
663
|
-
})
|
|
664
|
-
]),
|
|
665
|
-
props.featuredPosts.length > 1 ? (openBlock(), createElementBlock("button", {
|
|
666
|
-
key: 0,
|
|
667
|
-
onClick: prevSlide,
|
|
668
|
-
"aria-label": unref(t)("uiVintage.blog.previousSlide"),
|
|
669
|
-
class: "absolute left-2 top-[calc(50%-4rem)] -translate-y-1/2 z-10 border border-[var(--border-light)] dark:border-[var(--border-dark)] bg-[var(--bg-card-light)] dark:bg-[var(--bg-card-dark)] px-3 py-3 rounded-none transition-colors duration-200 hover:border-[var(--border-hover-light)] dark:hover:border-[var(--border-hover-dark)] cursor-pointer"
|
|
670
|
-
}, [
|
|
671
|
-
createVNode(unref(HugeiconsIcon), {
|
|
672
|
-
icon: unref(mn),
|
|
673
|
-
class: "size-4 text-[var(--text-secondary-light)] dark:text-[var(--text-secondary-dark)]"
|
|
674
|
-
}, null, 8, ["icon"])
|
|
675
|
-
], 8, _hoisted_10)) : createCommentVNode("", true),
|
|
676
|
-
props.featuredPosts.length > 1 ? (openBlock(), createElementBlock("button", {
|
|
677
|
-
key: 1,
|
|
678
|
-
onClick: nextSlide,
|
|
679
|
-
"aria-label": unref(t)("uiVintage.blog.nextSlide"),
|
|
680
|
-
class: "absolute right-2 top-[calc(50%-4rem)] -translate-y-1/2 z-10 border border-[var(--border-light)] dark:border-[var(--border-dark)] bg-[var(--bg-card-light)] dark:bg-[var(--bg-card-dark)] px-3 py-3 rounded-none transition-colors duration-200 hover:border-[var(--border-hover-light)] dark:hover:border-[var(--border-hover-dark)] cursor-pointer"
|
|
681
|
-
}, [
|
|
682
|
-
createVNode(unref(HugeiconsIcon), {
|
|
683
|
-
icon: unref(Nn),
|
|
684
|
-
class: "size-4 text-[var(--text-secondary-light)] dark:text-[var(--text-secondary-dark)]"
|
|
685
|
-
}, null, 8, ["icon"])
|
|
686
|
-
], 8, _hoisted_11)) : createCommentVNode("", true)
|
|
687
|
-
], 32)) : createCommentVNode("", true);
|
|
688
|
-
};
|
|
689
|
-
}
|
|
690
|
-
};
|
|
691
|
-
const HeaderCarousel = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-dac6f921"]]);
|
|
692
|
-
const _hoisted_1$1 = { class: "fixed right-[calc(50%-600px)] top-[140px] z-10 hidden xl:!block" };
|
|
693
|
-
const _hoisted_2$1 = { class: "fixed bottom-4 left-1/2 z-10 -translate-x-1/2 xl:hidden" };
|
|
694
|
-
const _sfc_main$1 = {
|
|
695
|
-
__name: "SocialShareSidebar",
|
|
696
|
-
props: {
|
|
697
|
-
title: { type: String, required: true },
|
|
698
|
-
url: { type: String, required: true }
|
|
699
|
-
},
|
|
700
|
-
setup(__props) {
|
|
701
|
-
const props = __props;
|
|
702
|
-
const { t } = useI18n();
|
|
703
|
-
const socialPlatforms = computed(() => {
|
|
704
|
-
const encodedUrl = encodeURIComponent(props.url);
|
|
705
|
-
const encodedTitle = encodeURIComponent(props.title);
|
|
706
|
-
return [{
|
|
707
|
-
name: "facebook",
|
|
708
|
-
url: `https://www.facebook.com/sharer/sharer.php?u=${encodedUrl}`,
|
|
709
|
-
icon: ZB,
|
|
710
|
-
color: "bg-blue-700 hover:bg-blue-800",
|
|
711
|
-
label: t("uiVintage.blog.share.facebook")
|
|
712
|
-
}, {
|
|
713
|
-
name: "twitter",
|
|
714
|
-
url: `https://twitter.com/intent/tweet?url=${encodedUrl}&text=${encodedTitle}`,
|
|
715
|
-
icon: t9,
|
|
716
|
-
color: "bg-black hover:bg-gray-800",
|
|
717
|
-
label: t("uiVintage.blog.share.x")
|
|
718
|
-
}, {
|
|
719
|
-
name: "whatsapp",
|
|
720
|
-
url: `https://api.whatsapp.com/send?text=${encodedTitle}%20${encodedUrl}`,
|
|
721
|
-
icon: MSr,
|
|
722
|
-
color: "bg-green-500 hover:bg-green-600",
|
|
723
|
-
label: t("uiVintage.blog.share.whatsapp")
|
|
724
|
-
}, {
|
|
725
|
-
name: "linkedin",
|
|
726
|
-
url: `https://www.linkedin.com/sharing/share-offsite/?url=${encodedUrl}`,
|
|
727
|
-
icon: nK,
|
|
728
|
-
color: "bg-blue-700 hover:bg-blue-800",
|
|
729
|
-
label: t("uiVintage.blog.share.linkedin")
|
|
730
|
-
}, {
|
|
731
|
-
name: "telegram",
|
|
732
|
-
url: `https://t.me/share/url?url=${encodedUrl}&text=${encodedTitle}`,
|
|
733
|
-
icon: oyr,
|
|
734
|
-
color: "bg-blue-400 hover:bg-blue-500",
|
|
735
|
-
label: t("uiVintage.blog.share.telegram")
|
|
736
|
-
}];
|
|
737
|
-
});
|
|
738
|
-
return (_ctx, _cache) => {
|
|
739
|
-
const _component_NuxtLink = resolveComponent("NuxtLink");
|
|
740
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
741
|
-
createElementVNode("div", _hoisted_1$1, [
|
|
742
|
-
createVNode(unref(_sfc_main$d), { class: "!p-5 flex flex-col space-y-4 items-center" }, {
|
|
743
|
-
default: withCtx(() => [
|
|
744
|
-
createVNode(unref(_sfc_main$e), { class: "!p-0 gap-4 items-center" }, {
|
|
745
|
-
default: withCtx(() => [
|
|
746
|
-
createVNode(unref(HugeiconsIcon), {
|
|
747
|
-
icon: unref(Nsr),
|
|
748
|
-
class: "size-5 text-[var(--text-secondary-light)] dark:text-[var(--text-secondary-dark)] mb-2"
|
|
749
|
-
}, null, 8, ["icon"]),
|
|
750
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(socialPlatforms.value, (platform) => {
|
|
751
|
-
return openBlock(), createBlock(_component_NuxtLink, {
|
|
752
|
-
key: platform.name,
|
|
753
|
-
to: platform.url,
|
|
754
|
-
target: "_blank",
|
|
755
|
-
rel: "noopener noreferrer",
|
|
756
|
-
"aria-label": platform.label,
|
|
757
|
-
class: normalizeClass(["w-10 h-10 rounded flex items-center justify-center text-white transition-all duration-200 hover:opacity-80 hover:scale-105", platform.color])
|
|
758
|
-
}, {
|
|
759
|
-
default: withCtx(() => [
|
|
760
|
-
createVNode(unref(HugeiconsIcon), {
|
|
761
|
-
icon: platform.icon,
|
|
762
|
-
class: "size-4"
|
|
763
|
-
}, null, 8, ["icon"])
|
|
764
|
-
]),
|
|
765
|
-
_: 2
|
|
766
|
-
}, 1032, ["to", "aria-label", "class"]);
|
|
767
|
-
}), 128))
|
|
768
|
-
]),
|
|
769
|
-
_: 1
|
|
770
|
-
})
|
|
771
|
-
]),
|
|
772
|
-
_: 1
|
|
773
|
-
})
|
|
774
|
-
]),
|
|
775
|
-
createElementVNode("div", _hoisted_2$1, [
|
|
776
|
-
createVNode(unref(_sfc_main$d), { class: "!p-3 w-fit" }, {
|
|
777
|
-
default: withCtx(() => [
|
|
778
|
-
createVNode(unref(_sfc_main$e), { class: "!flex-row !p-0 items-center justify-center gap-3" }, {
|
|
779
|
-
default: withCtx(() => [
|
|
780
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(socialPlatforms.value, (platform) => {
|
|
781
|
-
return openBlock(), createBlock(_component_NuxtLink, {
|
|
782
|
-
key: platform.name,
|
|
783
|
-
to: platform.url,
|
|
784
|
-
target: "_blank",
|
|
785
|
-
rel: "noopener noreferrer",
|
|
786
|
-
"aria-label": platform.label,
|
|
787
|
-
class: normalizeClass(["w-10 h-10 rounded flex items-center justify-center text-white transition-all duration-200 hover:opacity-80 hover:scale-105", platform.color])
|
|
788
|
-
}, {
|
|
789
|
-
default: withCtx(() => [
|
|
790
|
-
createVNode(unref(HugeiconsIcon), {
|
|
791
|
-
icon: platform.icon,
|
|
792
|
-
class: "size-4"
|
|
793
|
-
}, null, 8, ["icon"])
|
|
794
|
-
]),
|
|
795
|
-
_: 2
|
|
796
|
-
}, 1032, ["to", "aria-label", "class"]);
|
|
797
|
-
}), 128))
|
|
798
|
-
]),
|
|
799
|
-
_: 1
|
|
800
|
-
})
|
|
801
|
-
]),
|
|
802
|
-
_: 1
|
|
803
|
-
})
|
|
804
|
-
])
|
|
805
|
-
], 64);
|
|
806
|
-
};
|
|
807
|
-
}
|
|
808
|
-
};
|
|
809
|
-
const _hoisted_1 = { class: "flex items-center gap-3 min-w-0" };
|
|
810
|
-
const _hoisted_2 = { class: "flex items-center justify-center w-8 h-8 md:!w-10 md:!h-10 bg-[var(--bg-card-light)] dark:bg-[var(--bg-card-dark)] border border-[var(--border-light)] dark:border-[var(--border-dark)] rounded-none flex-shrink-0" };
|
|
811
|
-
const _hoisted_3 = { class: "text-sm md:!text-base font-semibold text-[var(--text-primary-light)] dark:text-[var(--text-primary-dark)]" };
|
|
812
|
-
const _hoisted_4 = ["onClick"];
|
|
813
|
-
const _sfc_main = {
|
|
814
|
-
__name: "TableOfContents",
|
|
815
|
-
props: {
|
|
816
|
-
content: { type: Object, required: true }
|
|
817
|
-
},
|
|
818
|
-
setup(__props) {
|
|
819
|
-
const props = __props;
|
|
820
|
-
const { t } = useI18n();
|
|
821
|
-
const isExpanded = ref(false);
|
|
822
|
-
const contentBodyRef = ref(null);
|
|
823
|
-
const headings = computed(() => {
|
|
824
|
-
var _a, _b, _c, _d, _e;
|
|
825
|
-
const tocLinks = ((_c = (_b = (_a = props.content) == null ? void 0 : _a.body) == null ? void 0 : _b.toc) == null ? void 0 : _c.links) || ((_e = (_d = props.content) == null ? void 0 : _d.toc) == null ? void 0 : _e.links) || [];
|
|
826
|
-
const flattenLinks = (links) => {
|
|
827
|
-
return links.flatMap((link) => {
|
|
828
|
-
var _a2;
|
|
829
|
-
const currentHeading = {
|
|
830
|
-
id: link.id,
|
|
831
|
-
text: link.text,
|
|
832
|
-
level: link.depth
|
|
833
|
-
};
|
|
834
|
-
const children = ((_a2 = link.children) == null ? void 0 : _a2.length) ? flattenLinks(link.children) : [];
|
|
835
|
-
return [currentHeading, ...children];
|
|
836
|
-
});
|
|
837
|
-
};
|
|
838
|
-
return flattenLinks(tocLinks).filter((heading) => heading.id && heading.text && heading.level >= 2 && heading.level <= 3);
|
|
839
|
-
});
|
|
840
|
-
const scrollToHeading = (id) => {
|
|
841
|
-
const element = document.getElementById(id);
|
|
842
|
-
if (element) {
|
|
843
|
-
element.scrollIntoView({
|
|
844
|
-
behavior: "smooth",
|
|
845
|
-
block: "start",
|
|
846
|
-
inline: "nearest"
|
|
847
|
-
});
|
|
848
|
-
}
|
|
849
|
-
};
|
|
850
|
-
const toggleExpanded = () => {
|
|
851
|
-
isExpanded.value = !isExpanded.value;
|
|
852
|
-
};
|
|
853
|
-
const contentHeight = computed(() => {
|
|
854
|
-
var _a;
|
|
855
|
-
return ((_a = contentBodyRef.value) == null ? void 0 : _a.scrollHeight) ?? 0;
|
|
856
|
-
});
|
|
857
|
-
const getHeadingButtonClasses = (heading) => {
|
|
858
|
-
const baseClasses = "block w-full text-left px-0 py-2 md:px-3 md:py-2 rounded transition-all duration-200 hover:bg-[var(--bg-selected-light)] dark:hover:bg-[var(--bg-selected-dark)] cursor-pointer";
|
|
859
|
-
let levelClasses = "";
|
|
860
|
-
if (heading.level === 2) {
|
|
861
|
-
levelClasses = "text-[var(--text-primary-light)] dark:text-[var(--text-primary-dark)] font-semibold text-xs md:text-sm";
|
|
862
|
-
} else {
|
|
863
|
-
levelClasses = "text-[var(--text-secondary-light)] dark:text-[var(--text-secondary-dark)] !pl-6 text-xs md:text-sm";
|
|
864
|
-
}
|
|
865
|
-
return [baseClasses, levelClasses];
|
|
866
|
-
};
|
|
867
|
-
return (_ctx, _cache) => {
|
|
868
|
-
return headings.value.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$d), {
|
|
869
|
-
key: 0,
|
|
870
|
-
class: "!p-0 overflow-hidden"
|
|
871
|
-
}, {
|
|
872
|
-
default: withCtx(() => [
|
|
873
|
-
createVNode(unref(_sfc_main$e), { class: "!p-0 gap-0" }, {
|
|
874
|
-
default: withCtx(() => [
|
|
875
|
-
createElementVNode("button", {
|
|
876
|
-
onClick: toggleExpanded,
|
|
877
|
-
class: "flex items-center justify-between w-full p-5 gap-4 text-left cursor-pointer"
|
|
878
|
-
}, [
|
|
879
|
-
createElementVNode("div", _hoisted_1, [
|
|
880
|
-
createElementVNode("div", _hoisted_2, [
|
|
881
|
-
createVNode(unref(HugeiconsIcon), {
|
|
882
|
-
icon: unref(Au),
|
|
883
|
-
class: "size-4 text-[var(--text-secondary-light)] dark:text-[var(--text-secondary-dark)]"
|
|
884
|
-
}, null, 8, ["icon"])
|
|
885
|
-
]),
|
|
886
|
-
createElementVNode("span", _hoisted_3, toDisplayString(unref(t)("uiVintage.blog.tableOfContents")), 1)
|
|
887
|
-
]),
|
|
888
|
-
createElementVNode("div", {
|
|
889
|
-
class: normalizeClass(["flex-shrink-0 w-8 h-8 flex items-center justify-center rounded bg-[var(--bg-card-light)] dark:bg-[var(--bg-card-dark)] border border-[var(--border-light)] dark:border-[var(--border-dark)] transition-transform duration-300", { "rotate-180": isExpanded.value }])
|
|
890
|
-
}, [
|
|
891
|
-
createVNode(unref(HugeiconsIcon), {
|
|
892
|
-
icon: unref(dn),
|
|
893
|
-
class: "size-4 text-[var(--text-secondary-light)] dark:text-[var(--text-secondary-dark)]"
|
|
894
|
-
}, null, 8, ["icon"])
|
|
895
|
-
], 2)
|
|
896
|
-
]),
|
|
897
|
-
createElementVNode("div", {
|
|
898
|
-
class: normalizeClass(["overflow-hidden transition-[height,opacity] duration-300 ease-in-out", isExpanded.value ? "opacity-100" : "opacity-0"]),
|
|
899
|
-
style: normalizeStyle({ height: isExpanded.value ? `${contentHeight.value}px` : "0px" })
|
|
900
|
-
}, [
|
|
901
|
-
createElementVNode("nav", {
|
|
902
|
-
ref_key: "contentBodyRef",
|
|
903
|
-
ref: contentBodyRef,
|
|
904
|
-
class: "px-5 pb-5 space-y-1"
|
|
905
|
-
}, [
|
|
906
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(headings.value, (heading) => {
|
|
907
|
-
return openBlock(), createElementBlock("button", {
|
|
908
|
-
key: heading.id,
|
|
909
|
-
onClick: ($event) => scrollToHeading(heading.id),
|
|
910
|
-
class: normalizeClass(getHeadingButtonClasses(heading))
|
|
911
|
-
}, toDisplayString(heading.text), 11, _hoisted_4);
|
|
912
|
-
}), 128))
|
|
913
|
-
], 512)
|
|
914
|
-
], 6)
|
|
915
|
-
]),
|
|
916
|
-
_: 1
|
|
917
|
-
})
|
|
918
|
-
]),
|
|
919
|
-
_: 1
|
|
920
|
-
})) : createCommentVNode("", true);
|
|
921
|
-
};
|
|
922
|
-
}
|
|
923
|
-
};
|
|
924
|
-
export {
|
|
925
|
-
_sfc_main$a as AllPostsSection,
|
|
926
|
-
_sfc_main$8 as BlogFAQSection,
|
|
927
|
-
_sfc_main$6 as BlogHeaderSection,
|
|
928
|
-
_sfc_main$7 as BlogInfoSection,
|
|
929
|
-
_sfc_main$9 as BlogSectionTitle,
|
|
930
|
-
_sfc_main$4 as CategoriesList,
|
|
931
|
-
_sfc_main$3 as CategoriesSection,
|
|
932
|
-
_sfc_main$5 as CategoryCard,
|
|
933
|
-
HeaderCarousel,
|
|
934
|
-
_sfc_main$c as PostCard,
|
|
935
|
-
_sfc_main$b as PostsList,
|
|
936
|
-
_sfc_main$1 as SocialShareSidebar,
|
|
937
|
-
_sfc_main as TableOfContents
|
|
938
|
-
};
|