@brumaombra/ui-vintage 0.6.7 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -51
- package/module.mjs +75 -0
- package/package.json +81 -264
- 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/src/components/blog/index.ts +13 -0
- 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/src/components/content/index.ts +3 -0
- 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} +26 -4
- package/{dist/i18n/en.json.d.ts → src/i18n/en.json} +26 -4
- package/{dist/i18n/es.json.d.ts → src/i18n/es.json} +26 -4
- package/{dist/i18n/fr.json.d.ts → src/i18n/fr.json} +26 -4
- package/{dist/i18n/it.json.d.ts → src/i18n/it.json} +26 -4
- package/{dist/i18n/ja.json.d.ts → src/i18n/ja.json} +26 -4
- package/{dist/i18n/pt.json.d.ts → src/i18n/pt.json} +26 -4
- package/{dist/i18n/ru.json.d.ts → src/i18n/ru.json} +26 -4
- package/{dist/i18n/zh.json.d.ts → src/i18n/zh.json} +26 -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-_UW48pv7.js +0 -361
- package/dist/BackgroundGrid-BJDDcLzF.js +0 -13
- package/dist/Busy-DRHkNObd.js +0 -55
- package/dist/BusyIndicator-D-4YHN2L.js +0 -4
- package/dist/CalendarPrevButton.vue_vue_type_script_setup_true_lang-D4jkKsDX.js +0 -3800
- package/dist/Card.vue_vue_type_script_setup_true_lang-DwBhZuSq.js +0 -30
- package/dist/CardContent.vue_vue_type_script_setup_true_lang-dBzO0q1t.js +0 -22
- package/dist/CardFooter.vue_vue_type_script_setup_true_lang-B5EqgrgN.js +0 -22
- package/dist/CardText.vue_vue_type_script_setup_true_lang-CJ66un34.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-C_bocxOu.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-B79YbKSf.js +0 -184
- package/dist/DialogTrigger-Cb3rLcid.js +0 -52
- package/dist/EmptyStateCard.vue_vue_type_script_setup_true_lang-B2-mxoaA.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-KQETSF2I.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-BzHEIagR.js +0 -65
- package/dist/LandingContent.vue_vue_type_script_setup_true_lang-Wgtl_yeD.js +0 -21
- package/dist/LandingFooter.vue_vue_type_script_setup_true_lang-Dxc03HyK.js +0 -159
- package/dist/LandingNavbar.vue_vue_type_script_setup_true_lang-DDB1dSjS.js +0 -63
- package/dist/LandingShell.vue_vue_type_script_setup_true_lang-B1PnJ78g.js +0 -49
- package/dist/LoadMoreButton.vue_vue_type_script_setup_true_lang-DkaLgfxc.js +0 -61
- package/dist/LoadingStateCard.vue_vue_type_script_setup_true_lang-BSErG9UN.js +0 -53
- package/dist/MessageDialog-ChS4d2qN.js +0 -4
- package/dist/MessageToast-DBztWhRL.js +0 -79
- package/dist/NativeSelectOption.vue_vue_type_script_setup_true_lang-CNcUI9Yh.js +0 -75
- package/dist/PopoverTrigger.vue_vue_type_script_setup_true_lang-Cf33q_yT.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-BDJfyW-d.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-D9BozdWD.js +0 -29
- package/dist/SheetTitle.vue_vue_type_script_setup_true_lang-Ja7-gmXd.js +0 -167
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-BSbVyZz7.js +0 -20
- package/dist/Slider.vue_vue_type_script_setup_true_lang-CSOSwGGr.js +0 -803
- package/dist/SpanishFlag-Dy-C9kGk.js +0 -28
- package/dist/Switch.vue_vue_type_script_setup_true_lang-C8mqOepU.js +0 -227
- package/dist/Teleport-DTOwRCqx.js +0 -315
- package/dist/TimePicker.vue_vue_type_script_setup_true_lang-CwuwDICo.js +0 -51
- package/dist/TooltipTrigger.vue_vue_type_script_setup_true_lang-BMdZRPa3.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 -33
- 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/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 -562
- package/dist/index-DDJjWaIl.js +0 -363
- package/dist/index-Dw56kNV0.js +0 -251
- package/dist/index-FpH8cK6B.js +0 -44
- package/dist/index.min-CZ9FIOXr.js +0 -23
- 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 -985
- package/dist/lib/utils.d.ts +0 -2
- 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 -5128
- 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 -193
- 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-Bz4m9VPB.js +0 -3192
- package/dist/utils-DbR1EZn-.js +0 -16
- package/dist/utils-hdwtyAF3.js +0 -44
- package/dist/utils.js +0 -4
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { u as useForwardExpose } from "./useForwardExpose-BcX3VRdS.js";
|
|
2
|
-
import { u as useId } from "./useId-CF6wz41D.js";
|
|
3
|
-
import { P as Primitive } from "./Primitive-D3IcFg81.js";
|
|
4
|
-
import { i as injectDialogRootContext } from "./DialogTitle-jKgSCoXM.js";
|
|
5
|
-
import { defineComponent, onMounted, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
|
|
6
|
-
var DialogTrigger_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
7
|
-
__name: "DialogTrigger",
|
|
8
|
-
props: {
|
|
9
|
-
asChild: {
|
|
10
|
-
type: Boolean,
|
|
11
|
-
required: false
|
|
12
|
-
},
|
|
13
|
-
as: {
|
|
14
|
-
type: null,
|
|
15
|
-
required: false,
|
|
16
|
-
default: "button"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
setup(__props) {
|
|
20
|
-
const props = __props;
|
|
21
|
-
const rootContext = injectDialogRootContext();
|
|
22
|
-
const { forwardRef, currentElement } = useForwardExpose();
|
|
23
|
-
rootContext.contentId || (rootContext.contentId = useId(void 0, "reka-dialog-content"));
|
|
24
|
-
onMounted(() => {
|
|
25
|
-
rootContext.triggerElement.value = currentElement.value;
|
|
26
|
-
});
|
|
27
|
-
return (_ctx, _cache) => {
|
|
28
|
-
return openBlock(), createBlock(unref(Primitive), mergeProps(props, {
|
|
29
|
-
ref: unref(forwardRef),
|
|
30
|
-
type: _ctx.as === "button" ? "button" : void 0,
|
|
31
|
-
"aria-haspopup": "dialog",
|
|
32
|
-
"aria-expanded": unref(rootContext).open.value || false,
|
|
33
|
-
"aria-controls": unref(rootContext).open.value ? unref(rootContext).contentId : void 0,
|
|
34
|
-
"data-state": unref(rootContext).open.value ? "open" : "closed",
|
|
35
|
-
onClick: unref(rootContext).onOpenToggle
|
|
36
|
-
}), {
|
|
37
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
38
|
-
_: 3
|
|
39
|
-
}, 16, [
|
|
40
|
-
"type",
|
|
41
|
-
"aria-expanded",
|
|
42
|
-
"aria-controls",
|
|
43
|
-
"data-state",
|
|
44
|
-
"onClick"
|
|
45
|
-
]);
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
var DialogTrigger_default = DialogTrigger_vue_vue_type_script_setup_true_lang_default;
|
|
50
|
-
export {
|
|
51
|
-
DialogTrigger_default as D
|
|
52
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createBlock, unref, withCtx, createVNode, createElementVNode, createElementBlock, toDisplayString, createCommentVNode, renderSlot } from "vue";
|
|
2
|
-
import { useI18n } from "vue-i18n";
|
|
3
|
-
import { u as u7 } from "./index.min-CZ9FIOXr.js";
|
|
4
|
-
import { H as HugeiconsIcon } from "./HugeiconsIcon.vue-By2RXWWz.js";
|
|
5
|
-
import { _ as _sfc_main$1 } from "./Card.vue_vue_type_script_setup_true_lang-DwBhZuSq.js";
|
|
6
|
-
import { _ as _sfc_main$2 } from "./CardContent.vue_vue_type_script_setup_true_lang-dBzO0q1t.js";
|
|
7
|
-
const _hoisted_1 = { class: "flex items-center justify-center text-4xl text-[var(--text-secondary-light)] opacity-40 dark:text-[var(--text-secondary-dark)]" };
|
|
8
|
-
const _hoisted_2 = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "text-sm font-bold text-[var(--text-primary-light)] dark:text-[var(--text-primary-dark)] md:text-lg"
|
|
11
|
-
};
|
|
12
|
-
const _hoisted_3 = {
|
|
13
|
-
key: 1,
|
|
14
|
-
class: "max-w-md text-xs text-[var(--text-secondary-light)] dark:text-[var(--text-secondary-dark)] md:text-sm"
|
|
15
|
-
};
|
|
16
|
-
const _hoisted_4 = { key: 2 };
|
|
17
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
|
-
__name: "EmptyStateCard",
|
|
19
|
-
props: {
|
|
20
|
-
icon: { type: [Object, Array], default: () => u7 },
|
|
21
|
-
title: { type: String, default: "" },
|
|
22
|
-
description: { type: String, default: "" },
|
|
23
|
-
titleKey: { type: String, default: "" },
|
|
24
|
-
descriptionKey: { type: String, default: "" }
|
|
25
|
-
},
|
|
26
|
-
setup(__props) {
|
|
27
|
-
const props = __props;
|
|
28
|
-
const { t } = useI18n();
|
|
29
|
-
const hasCustomCopy = computed(() => Boolean(props.title || props.description || props.titleKey || props.descriptionKey));
|
|
30
|
-
const resolvedTitle = computed(() => props.title || (props.titleKey ? t(props.titleKey) : "") || (!hasCustomCopy.value ? t("uiVintage.common.empty.title") : "") || (!hasCustomCopy.value ? "Nothing here yet" : ""));
|
|
31
|
-
const resolvedDescription = computed(() => props.description || (props.descriptionKey ? t(props.descriptionKey) : "") || (!hasCustomCopy.value ? t("uiVintage.common.empty.description") : "") || (!hasCustomCopy.value ? "There is no content to show right now." : ""));
|
|
32
|
-
return (_ctx, _cache) => {
|
|
33
|
-
return openBlock(), createBlock(unref(_sfc_main$1), { class: "flex flex-col items-center justify-center px-4 py-8 text-center md:py-12" }, {
|
|
34
|
-
default: withCtx(() => [
|
|
35
|
-
createVNode(unref(_sfc_main$2), { class: "flex flex-col items-center justify-center !p-0 text-center" }, {
|
|
36
|
-
default: withCtx(() => [
|
|
37
|
-
createElementVNode("div", _hoisted_1, [
|
|
38
|
-
createVNode(unref(HugeiconsIcon), {
|
|
39
|
-
icon: props.icon,
|
|
40
|
-
class: "size-10"
|
|
41
|
-
}, null, 8, ["icon"])
|
|
42
|
-
]),
|
|
43
|
-
resolvedTitle.value ? (openBlock(), createElementBlock("h3", _hoisted_2, toDisplayString(resolvedTitle.value), 1)) : createCommentVNode("", true),
|
|
44
|
-
resolvedDescription.value ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(resolvedDescription.value), 1)) : createCommentVNode("", true),
|
|
45
|
-
_ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
46
|
-
renderSlot(_ctx.$slots, "action")
|
|
47
|
-
])) : createCommentVNode("", true)
|
|
48
|
-
]),
|
|
49
|
-
_: 3
|
|
50
|
-
})
|
|
51
|
-
]),
|
|
52
|
-
_: 3
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
export {
|
|
58
|
-
_sfc_main as _
|
|
59
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { openBlock, createElementBlock, createStaticVNode } from "vue";
|
|
2
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
|
|
3
|
-
const _sfc_main = {};
|
|
4
|
-
const _hoisted_1 = {
|
|
5
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
-
viewBox: "0 0 640 480",
|
|
7
|
-
"aria-hidden": "true",
|
|
8
|
-
focusable: "false"
|
|
9
|
-
};
|
|
10
|
-
function _sfc_render(_ctx, _cache) {
|
|
11
|
-
return openBlock(), createElementBlock("svg", _hoisted_1, _cache[0] || (_cache[0] = [
|
|
12
|
-
createStaticVNode('<path fill="#012169" d="M0 0h640v480H0z"></path><path fill="#FFF" d="m75 0 244 181L562 0h78v62L400 241l240 178v61h-80L320 301 81 480H0v-60l239-178L0 64V0z"></path><path fill="#C8102E" d="m424 281 216 159v40L369 281zm-184 20 6 35L54 480H0zM640 0v3L391 191l2-44L590 0zM0 0l239 176h-60L0 42z"></path><path fill="#FFF" d="M241 0v480h160V0zM0 160v160h640V160z"></path><path fill="#C8102E" d="M0 193v96h640v-96zM273 0v480h96V0z"></path>', 5)
|
|
13
|
-
]));
|
|
14
|
-
}
|
|
15
|
-
const EnglishFlag = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
16
|
-
export {
|
|
17
|
-
EnglishFlag as default
|
|
18
|
-
};
|
|
@@ -1,448 +0,0 @@
|
|
|
1
|
-
import { i as injectConfigProviderContext } from "./ConfigProvider-DYO65bNW.js";
|
|
2
|
-
import { computed, ref, watch, nextTick, onUnmounted, defineComponent, reactive, watchEffect, openBlock, createBlock, unref, withCtx, renderSlot } from "vue";
|
|
3
|
-
import { c as useEventListener, u as unrefElement } from "./index-Dw56kNV0.js";
|
|
4
|
-
import { h as tryOnBeforeUnmount, j as createSharedComposable, i as isClient, k as isIOS, l as createGlobalState } from "./index-DDJjWaIl.js";
|
|
5
|
-
import { d as defu } from "./Teleport-DTOwRCqx.js";
|
|
6
|
-
import { g as getActiveElement } from "./getActiveElement-Bmy6QsUb.js";
|
|
7
|
-
import { u as useForwardExpose } from "./useForwardExpose-BcX3VRdS.js";
|
|
8
|
-
import { P as Primitive } from "./Primitive-D3IcFg81.js";
|
|
9
|
-
const useBodyLockStackCount = createSharedComposable(() => {
|
|
10
|
-
const map = ref(/* @__PURE__ */ new Map());
|
|
11
|
-
const initialOverflow = ref();
|
|
12
|
-
const locked = computed(() => {
|
|
13
|
-
for (const value of map.value.values()) if (value) return true;
|
|
14
|
-
return false;
|
|
15
|
-
});
|
|
16
|
-
const context = injectConfigProviderContext({ scrollBody: ref(true) });
|
|
17
|
-
let stopTouchMoveListener = null;
|
|
18
|
-
const resetBodyStyle = () => {
|
|
19
|
-
document.body.style.paddingRight = "";
|
|
20
|
-
document.body.style.marginRight = "";
|
|
21
|
-
document.body.style.pointerEvents = "";
|
|
22
|
-
document.documentElement.style.removeProperty("--scrollbar-width");
|
|
23
|
-
document.body.style.overflow = initialOverflow.value ?? "";
|
|
24
|
-
isIOS && (stopTouchMoveListener == null ? void 0 : stopTouchMoveListener());
|
|
25
|
-
initialOverflow.value = void 0;
|
|
26
|
-
};
|
|
27
|
-
watch(locked, (val, oldVal) => {
|
|
28
|
-
var _a;
|
|
29
|
-
if (!isClient) return;
|
|
30
|
-
if (!val) {
|
|
31
|
-
if (oldVal) resetBodyStyle();
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
if (initialOverflow.value === void 0) initialOverflow.value = document.body.style.overflow;
|
|
35
|
-
const verticalScrollbarWidth = window.innerWidth - document.documentElement.clientWidth;
|
|
36
|
-
const defaultConfig = {
|
|
37
|
-
padding: verticalScrollbarWidth,
|
|
38
|
-
margin: 0
|
|
39
|
-
};
|
|
40
|
-
const config = ((_a = context.scrollBody) == null ? void 0 : _a.value) ? typeof context.scrollBody.value === "object" ? defu({
|
|
41
|
-
padding: context.scrollBody.value.padding === true ? verticalScrollbarWidth : context.scrollBody.value.padding,
|
|
42
|
-
margin: context.scrollBody.value.margin === true ? verticalScrollbarWidth : context.scrollBody.value.margin
|
|
43
|
-
}, defaultConfig) : defaultConfig : {
|
|
44
|
-
padding: 0,
|
|
45
|
-
margin: 0
|
|
46
|
-
};
|
|
47
|
-
if (verticalScrollbarWidth > 0) {
|
|
48
|
-
document.body.style.paddingRight = typeof config.padding === "number" ? `${config.padding}px` : String(config.padding);
|
|
49
|
-
document.body.style.marginRight = typeof config.margin === "number" ? `${config.margin}px` : String(config.margin);
|
|
50
|
-
document.documentElement.style.setProperty("--scrollbar-width", `${verticalScrollbarWidth}px`);
|
|
51
|
-
document.body.style.overflow = "hidden";
|
|
52
|
-
}
|
|
53
|
-
if (isIOS) stopTouchMoveListener = useEventListener(document, "touchmove", (e) => preventDefault(e), { passive: false });
|
|
54
|
-
nextTick(() => {
|
|
55
|
-
if (!locked.value) return;
|
|
56
|
-
document.body.style.pointerEvents = "none";
|
|
57
|
-
document.body.style.overflow = "hidden";
|
|
58
|
-
});
|
|
59
|
-
}, {
|
|
60
|
-
immediate: true,
|
|
61
|
-
flush: "sync"
|
|
62
|
-
});
|
|
63
|
-
return map;
|
|
64
|
-
});
|
|
65
|
-
function useBodyScrollLock(initialState) {
|
|
66
|
-
const id = Math.random().toString(36).substring(2, 7);
|
|
67
|
-
const map = useBodyLockStackCount();
|
|
68
|
-
map.value.set(id, initialState ?? false);
|
|
69
|
-
const locked = computed({
|
|
70
|
-
get: () => map.value.get(id) ?? false,
|
|
71
|
-
set: (value) => map.value.set(id, value)
|
|
72
|
-
});
|
|
73
|
-
tryOnBeforeUnmount(() => {
|
|
74
|
-
map.value.delete(id);
|
|
75
|
-
});
|
|
76
|
-
return locked;
|
|
77
|
-
}
|
|
78
|
-
function checkOverflowScroll(ele) {
|
|
79
|
-
const style = window.getComputedStyle(ele);
|
|
80
|
-
if (style.overflowX === "scroll" || style.overflowY === "scroll" || style.overflowX === "auto" && ele.clientWidth < ele.scrollWidth || style.overflowY === "auto" && ele.clientHeight < ele.scrollHeight) return true;
|
|
81
|
-
else {
|
|
82
|
-
const parent = ele.parentNode;
|
|
83
|
-
if (!(parent instanceof Element) || parent.tagName === "BODY") return false;
|
|
84
|
-
return checkOverflowScroll(parent);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
function preventDefault(rawEvent) {
|
|
88
|
-
const e = rawEvent || window.event;
|
|
89
|
-
const _target = e.target;
|
|
90
|
-
if (_target instanceof Element && checkOverflowScroll(_target)) return false;
|
|
91
|
-
if (e.touches.length > 1) return true;
|
|
92
|
-
if (e.preventDefault && e.cancelable) e.preventDefault();
|
|
93
|
-
return false;
|
|
94
|
-
}
|
|
95
|
-
var getDefaultParent = function(originalTarget) {
|
|
96
|
-
if (typeof document === "undefined") {
|
|
97
|
-
return null;
|
|
98
|
-
}
|
|
99
|
-
var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;
|
|
100
|
-
return sampleTarget.ownerDocument.body;
|
|
101
|
-
};
|
|
102
|
-
var counterMap = /* @__PURE__ */ new WeakMap();
|
|
103
|
-
var uncontrolledNodes = /* @__PURE__ */ new WeakMap();
|
|
104
|
-
var markerMap = {};
|
|
105
|
-
var lockCount = 0;
|
|
106
|
-
var unwrapHost = function(node) {
|
|
107
|
-
return node && (node.host || unwrapHost(node.parentNode));
|
|
108
|
-
};
|
|
109
|
-
var correctTargets = function(parent, targets) {
|
|
110
|
-
return targets.map(function(target) {
|
|
111
|
-
if (parent.contains(target)) {
|
|
112
|
-
return target;
|
|
113
|
-
}
|
|
114
|
-
var correctedTarget = unwrapHost(target);
|
|
115
|
-
if (correctedTarget && parent.contains(correctedTarget)) {
|
|
116
|
-
return correctedTarget;
|
|
117
|
-
}
|
|
118
|
-
console.error("aria-hidden", target, "in not contained inside", parent, ". Doing nothing");
|
|
119
|
-
return null;
|
|
120
|
-
}).filter(function(x) {
|
|
121
|
-
return Boolean(x);
|
|
122
|
-
});
|
|
123
|
-
};
|
|
124
|
-
var applyAttributeToOthers = function(originalTarget, parentNode, markerName, controlAttribute) {
|
|
125
|
-
var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
|
|
126
|
-
if (!markerMap[markerName]) {
|
|
127
|
-
markerMap[markerName] = /* @__PURE__ */ new WeakMap();
|
|
128
|
-
}
|
|
129
|
-
var markerCounter = markerMap[markerName];
|
|
130
|
-
var hiddenNodes = [];
|
|
131
|
-
var elementsToKeep = /* @__PURE__ */ new Set();
|
|
132
|
-
var elementsToStop = new Set(targets);
|
|
133
|
-
var keep = function(el) {
|
|
134
|
-
if (!el || elementsToKeep.has(el)) {
|
|
135
|
-
return;
|
|
136
|
-
}
|
|
137
|
-
elementsToKeep.add(el);
|
|
138
|
-
keep(el.parentNode);
|
|
139
|
-
};
|
|
140
|
-
targets.forEach(keep);
|
|
141
|
-
var deep = function(parent) {
|
|
142
|
-
if (!parent || elementsToStop.has(parent)) {
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
|
-
Array.prototype.forEach.call(parent.children, function(node) {
|
|
146
|
-
if (elementsToKeep.has(node)) {
|
|
147
|
-
deep(node);
|
|
148
|
-
} else {
|
|
149
|
-
try {
|
|
150
|
-
var attr = node.getAttribute(controlAttribute);
|
|
151
|
-
var alreadyHidden = attr !== null && attr !== "false";
|
|
152
|
-
var counterValue = (counterMap.get(node) || 0) + 1;
|
|
153
|
-
var markerValue = (markerCounter.get(node) || 0) + 1;
|
|
154
|
-
counterMap.set(node, counterValue);
|
|
155
|
-
markerCounter.set(node, markerValue);
|
|
156
|
-
hiddenNodes.push(node);
|
|
157
|
-
if (counterValue === 1 && alreadyHidden) {
|
|
158
|
-
uncontrolledNodes.set(node, true);
|
|
159
|
-
}
|
|
160
|
-
if (markerValue === 1) {
|
|
161
|
-
node.setAttribute(markerName, "true");
|
|
162
|
-
}
|
|
163
|
-
if (!alreadyHidden) {
|
|
164
|
-
node.setAttribute(controlAttribute, "true");
|
|
165
|
-
}
|
|
166
|
-
} catch (e) {
|
|
167
|
-
console.error("aria-hidden: cannot operate on ", node, e);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
};
|
|
172
|
-
deep(parentNode);
|
|
173
|
-
elementsToKeep.clear();
|
|
174
|
-
lockCount++;
|
|
175
|
-
return function() {
|
|
176
|
-
hiddenNodes.forEach(function(node) {
|
|
177
|
-
var counterValue = counterMap.get(node) - 1;
|
|
178
|
-
var markerValue = markerCounter.get(node) - 1;
|
|
179
|
-
counterMap.set(node, counterValue);
|
|
180
|
-
markerCounter.set(node, markerValue);
|
|
181
|
-
if (!counterValue) {
|
|
182
|
-
if (!uncontrolledNodes.has(node)) {
|
|
183
|
-
node.removeAttribute(controlAttribute);
|
|
184
|
-
}
|
|
185
|
-
uncontrolledNodes.delete(node);
|
|
186
|
-
}
|
|
187
|
-
if (!markerValue) {
|
|
188
|
-
node.removeAttribute(markerName);
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
lockCount--;
|
|
192
|
-
if (!lockCount) {
|
|
193
|
-
counterMap = /* @__PURE__ */ new WeakMap();
|
|
194
|
-
counterMap = /* @__PURE__ */ new WeakMap();
|
|
195
|
-
uncontrolledNodes = /* @__PURE__ */ new WeakMap();
|
|
196
|
-
markerMap = {};
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
var hideOthers = function(originalTarget, parentNode, markerName) {
|
|
201
|
-
if (markerName === void 0) {
|
|
202
|
-
markerName = "data-aria-hidden";
|
|
203
|
-
}
|
|
204
|
-
var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
|
|
205
|
-
var activeParentNode = getDefaultParent(originalTarget);
|
|
206
|
-
if (!activeParentNode) {
|
|
207
|
-
return function() {
|
|
208
|
-
return null;
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll("[aria-live], script")));
|
|
212
|
-
return applyAttributeToOthers(targets, activeParentNode, markerName, "aria-hidden");
|
|
213
|
-
};
|
|
214
|
-
function useHideOthers(target) {
|
|
215
|
-
let undo;
|
|
216
|
-
watch(() => unrefElement(target), (el) => {
|
|
217
|
-
let isInsideClosedPopover = false;
|
|
218
|
-
try {
|
|
219
|
-
isInsideClosedPopover = !!(el == null ? void 0 : el.closest("[popover]:not(:popover-open)"));
|
|
220
|
-
} catch {
|
|
221
|
-
}
|
|
222
|
-
if (el && !isInsideClosedPopover) undo = hideOthers(el);
|
|
223
|
-
else if (undo) undo();
|
|
224
|
-
});
|
|
225
|
-
onUnmounted(() => {
|
|
226
|
-
if (undo) undo();
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
const useFocusStackState = createGlobalState(() => {
|
|
230
|
-
const stack = ref([]);
|
|
231
|
-
return stack;
|
|
232
|
-
});
|
|
233
|
-
function createFocusScopesStack() {
|
|
234
|
-
const stack = useFocusStackState();
|
|
235
|
-
return {
|
|
236
|
-
add(focusScope) {
|
|
237
|
-
const activeFocusScope = stack.value[0];
|
|
238
|
-
if (focusScope !== activeFocusScope) activeFocusScope == null ? void 0 : activeFocusScope.pause();
|
|
239
|
-
stack.value = arrayRemove(stack.value, focusScope);
|
|
240
|
-
stack.value.unshift(focusScope);
|
|
241
|
-
},
|
|
242
|
-
remove(focusScope) {
|
|
243
|
-
var _a;
|
|
244
|
-
stack.value = arrayRemove(stack.value, focusScope);
|
|
245
|
-
(_a = stack.value[0]) == null ? void 0 : _a.resume();
|
|
246
|
-
}
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
function arrayRemove(array, item) {
|
|
250
|
-
const updatedArray = [...array];
|
|
251
|
-
const index = updatedArray.indexOf(item);
|
|
252
|
-
if (index !== -1) updatedArray.splice(index, 1);
|
|
253
|
-
return updatedArray;
|
|
254
|
-
}
|
|
255
|
-
const AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
|
|
256
|
-
const AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
|
|
257
|
-
const EVENT_OPTIONS = {
|
|
258
|
-
bubbles: false,
|
|
259
|
-
cancelable: true
|
|
260
|
-
};
|
|
261
|
-
function focusFirst(candidates, { select = false } = {}) {
|
|
262
|
-
const previouslyFocusedElement = getActiveElement();
|
|
263
|
-
for (const candidate of candidates) {
|
|
264
|
-
focus(candidate, { select });
|
|
265
|
-
if (getActiveElement() !== previouslyFocusedElement) return true;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
function getTabbableEdges(container) {
|
|
269
|
-
const candidates = getTabbableCandidates(container);
|
|
270
|
-
const first = findVisible(candidates, container);
|
|
271
|
-
const last = findVisible(candidates.reverse(), container);
|
|
272
|
-
return [first, last];
|
|
273
|
-
}
|
|
274
|
-
function getTabbableCandidates(container) {
|
|
275
|
-
const nodes = [];
|
|
276
|
-
const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, { acceptNode: (node) => {
|
|
277
|
-
const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
|
|
278
|
-
if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
|
|
279
|
-
return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
280
|
-
} });
|
|
281
|
-
while (walker.nextNode()) nodes.push(walker.currentNode);
|
|
282
|
-
return nodes;
|
|
283
|
-
}
|
|
284
|
-
function findVisible(elements, container) {
|
|
285
|
-
for (const element of elements) if (!isHidden(element, { upTo: container })) return element;
|
|
286
|
-
}
|
|
287
|
-
function isHidden(node, { upTo }) {
|
|
288
|
-
if (getComputedStyle(node).visibility === "hidden") return true;
|
|
289
|
-
while (node) {
|
|
290
|
-
if (upTo !== void 0 && node === upTo) return false;
|
|
291
|
-
if (getComputedStyle(node).display === "none") return true;
|
|
292
|
-
node = node.parentElement;
|
|
293
|
-
}
|
|
294
|
-
return false;
|
|
295
|
-
}
|
|
296
|
-
function isSelectableInput(element) {
|
|
297
|
-
return element instanceof HTMLInputElement && "select" in element;
|
|
298
|
-
}
|
|
299
|
-
function focus(element, { select = false } = {}) {
|
|
300
|
-
if (element && element.focus) {
|
|
301
|
-
const previouslyFocusedElement = getActiveElement();
|
|
302
|
-
element.focus({ preventScroll: true });
|
|
303
|
-
if (element !== previouslyFocusedElement && isSelectableInput(element) && select) element.select();
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
var FocusScope_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
307
|
-
__name: "FocusScope",
|
|
308
|
-
props: {
|
|
309
|
-
loop: {
|
|
310
|
-
type: Boolean,
|
|
311
|
-
required: false,
|
|
312
|
-
default: false
|
|
313
|
-
},
|
|
314
|
-
trapped: {
|
|
315
|
-
type: Boolean,
|
|
316
|
-
required: false,
|
|
317
|
-
default: false
|
|
318
|
-
},
|
|
319
|
-
asChild: {
|
|
320
|
-
type: Boolean,
|
|
321
|
-
required: false
|
|
322
|
-
},
|
|
323
|
-
as: {
|
|
324
|
-
type: null,
|
|
325
|
-
required: false
|
|
326
|
-
}
|
|
327
|
-
},
|
|
328
|
-
emits: ["mountAutoFocus", "unmountAutoFocus"],
|
|
329
|
-
setup(__props, { emit: __emit }) {
|
|
330
|
-
const props = __props;
|
|
331
|
-
const emits = __emit;
|
|
332
|
-
const { currentRef, currentElement } = useForwardExpose();
|
|
333
|
-
const lastFocusedElementRef = ref(null);
|
|
334
|
-
const focusScopesStack = createFocusScopesStack();
|
|
335
|
-
const focusScope = reactive({
|
|
336
|
-
paused: false,
|
|
337
|
-
pause() {
|
|
338
|
-
this.paused = true;
|
|
339
|
-
},
|
|
340
|
-
resume() {
|
|
341
|
-
this.paused = false;
|
|
342
|
-
}
|
|
343
|
-
});
|
|
344
|
-
watchEffect((cleanupFn) => {
|
|
345
|
-
if (!isClient) return;
|
|
346
|
-
const container = currentElement.value;
|
|
347
|
-
if (!props.trapped) return;
|
|
348
|
-
function handleFocusIn(event) {
|
|
349
|
-
if (focusScope.paused || !container) return;
|
|
350
|
-
const target = event.target;
|
|
351
|
-
if (container.contains(target)) lastFocusedElementRef.value = target;
|
|
352
|
-
else focus(lastFocusedElementRef.value, { select: true });
|
|
353
|
-
}
|
|
354
|
-
function handleFocusOut(event) {
|
|
355
|
-
if (focusScope.paused || !container) return;
|
|
356
|
-
const relatedTarget = event.relatedTarget;
|
|
357
|
-
if (relatedTarget === null) return;
|
|
358
|
-
if (!container.contains(relatedTarget)) focus(lastFocusedElementRef.value, { select: true });
|
|
359
|
-
}
|
|
360
|
-
function handleMutations(mutations) {
|
|
361
|
-
const isLastFocusedElementExist = container.contains(lastFocusedElementRef.value);
|
|
362
|
-
if (!isLastFocusedElementExist) focus(container);
|
|
363
|
-
}
|
|
364
|
-
document.addEventListener("focusin", handleFocusIn);
|
|
365
|
-
document.addEventListener("focusout", handleFocusOut);
|
|
366
|
-
const mutationObserver = new MutationObserver(handleMutations);
|
|
367
|
-
if (container) mutationObserver.observe(container, {
|
|
368
|
-
childList: true,
|
|
369
|
-
subtree: true
|
|
370
|
-
});
|
|
371
|
-
cleanupFn(() => {
|
|
372
|
-
document.removeEventListener("focusin", handleFocusIn);
|
|
373
|
-
document.removeEventListener("focusout", handleFocusOut);
|
|
374
|
-
mutationObserver.disconnect();
|
|
375
|
-
});
|
|
376
|
-
});
|
|
377
|
-
watchEffect(async (cleanupFn) => {
|
|
378
|
-
const container = currentElement.value;
|
|
379
|
-
await nextTick();
|
|
380
|
-
if (!container) return;
|
|
381
|
-
focusScopesStack.add(focusScope);
|
|
382
|
-
const previouslyFocusedElement = getActiveElement();
|
|
383
|
-
const hasFocusedCandidate = container.contains(previouslyFocusedElement);
|
|
384
|
-
if (!hasFocusedCandidate) {
|
|
385
|
-
const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS);
|
|
386
|
-
container.addEventListener(AUTOFOCUS_ON_MOUNT, (ev) => emits("mountAutoFocus", ev));
|
|
387
|
-
container.dispatchEvent(mountEvent);
|
|
388
|
-
if (!mountEvent.defaultPrevented) {
|
|
389
|
-
focusFirst(getTabbableCandidates(container), { select: true });
|
|
390
|
-
if (getActiveElement() === previouslyFocusedElement) focus(container);
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
cleanupFn(() => {
|
|
394
|
-
container.removeEventListener(AUTOFOCUS_ON_MOUNT, (ev) => emits("mountAutoFocus", ev));
|
|
395
|
-
const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);
|
|
396
|
-
const unmountEventHandler = (ev) => {
|
|
397
|
-
emits("unmountAutoFocus", ev);
|
|
398
|
-
};
|
|
399
|
-
container.addEventListener(AUTOFOCUS_ON_UNMOUNT, unmountEventHandler);
|
|
400
|
-
container.dispatchEvent(unmountEvent);
|
|
401
|
-
setTimeout(() => {
|
|
402
|
-
if (!unmountEvent.defaultPrevented) focus(previouslyFocusedElement ?? document.body, { select: true });
|
|
403
|
-
container.removeEventListener(AUTOFOCUS_ON_UNMOUNT, unmountEventHandler);
|
|
404
|
-
focusScopesStack.remove(focusScope);
|
|
405
|
-
}, 0);
|
|
406
|
-
});
|
|
407
|
-
});
|
|
408
|
-
function handleKeyDown(event) {
|
|
409
|
-
if (!props.loop && !props.trapped) return;
|
|
410
|
-
if (focusScope.paused) return;
|
|
411
|
-
const isTabKey = event.key === "Tab" && !event.altKey && !event.ctrlKey && !event.metaKey;
|
|
412
|
-
const focusedElement = getActiveElement();
|
|
413
|
-
if (isTabKey && focusedElement) {
|
|
414
|
-
const container = event.currentTarget;
|
|
415
|
-
const [first, last] = getTabbableEdges(container);
|
|
416
|
-
const hasTabbableElementsInside = first && last;
|
|
417
|
-
if (!hasTabbableElementsInside) {
|
|
418
|
-
if (focusedElement === container) event.preventDefault();
|
|
419
|
-
} else if (!event.shiftKey && focusedElement === last) {
|
|
420
|
-
event.preventDefault();
|
|
421
|
-
if (props.loop) focus(first, { select: true });
|
|
422
|
-
} else if (event.shiftKey && focusedElement === first) {
|
|
423
|
-
event.preventDefault();
|
|
424
|
-
if (props.loop) focus(last, { select: true });
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
return (_ctx, _cache) => {
|
|
429
|
-
return openBlock(), createBlock(unref(Primitive), {
|
|
430
|
-
ref_key: "currentRef",
|
|
431
|
-
ref: currentRef,
|
|
432
|
-
tabindex: "-1",
|
|
433
|
-
"as-child": _ctx.asChild,
|
|
434
|
-
as: _ctx.as,
|
|
435
|
-
onKeydown: handleKeyDown
|
|
436
|
-
}, {
|
|
437
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
438
|
-
_: 3
|
|
439
|
-
}, 8, ["as-child", "as"]);
|
|
440
|
-
};
|
|
441
|
-
}
|
|
442
|
-
});
|
|
443
|
-
var FocusScope_default = FocusScope_vue_vue_type_script_setup_true_lang_default;
|
|
444
|
-
export {
|
|
445
|
-
FocusScope_default as F,
|
|
446
|
-
useBodyScrollLock as a,
|
|
447
|
-
useHideOthers as u
|
|
448
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { openBlock, createElementBlock, createElementVNode } from "vue";
|
|
2
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
|
|
3
|
-
const _sfc_main = {};
|
|
4
|
-
const _hoisted_1 = {
|
|
5
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
-
viewBox: "0 0 3 2",
|
|
7
|
-
"aria-hidden": "true",
|
|
8
|
-
focusable: "false"
|
|
9
|
-
};
|
|
10
|
-
function _sfc_render(_ctx, _cache) {
|
|
11
|
-
return openBlock(), createElementBlock("svg", _hoisted_1, _cache[0] || (_cache[0] = [
|
|
12
|
-
createElementVNode("rect", {
|
|
13
|
-
width: "1",
|
|
14
|
-
height: "2",
|
|
15
|
-
x: "0",
|
|
16
|
-
fill: "#002654"
|
|
17
|
-
}, null, -1),
|
|
18
|
-
createElementVNode("rect", {
|
|
19
|
-
width: "1",
|
|
20
|
-
height: "2",
|
|
21
|
-
x: "1",
|
|
22
|
-
fill: "#ffffff"
|
|
23
|
-
}, null, -1),
|
|
24
|
-
createElementVNode("rect", {
|
|
25
|
-
width: "1",
|
|
26
|
-
height: "2",
|
|
27
|
-
x: "2",
|
|
28
|
-
fill: "#ce1126"
|
|
29
|
-
}, null, -1)
|
|
30
|
-
]));
|
|
31
|
-
}
|
|
32
|
-
const FrenchFlag = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
33
|
-
export {
|
|
34
|
-
FrenchFlag as default
|
|
35
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { openBlock, createElementBlock, createElementVNode } from "vue";
|
|
2
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
|
|
3
|
-
const _sfc_main = {};
|
|
4
|
-
const _hoisted_1 = {
|
|
5
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
-
viewBox: "0 0 5 3",
|
|
7
|
-
"aria-hidden": "true",
|
|
8
|
-
focusable: "false"
|
|
9
|
-
};
|
|
10
|
-
function _sfc_render(_ctx, _cache) {
|
|
11
|
-
return openBlock(), createElementBlock("svg", _hoisted_1, _cache[0] || (_cache[0] = [
|
|
12
|
-
createElementVNode("rect", {
|
|
13
|
-
width: "5",
|
|
14
|
-
height: "1",
|
|
15
|
-
y: "0",
|
|
16
|
-
fill: "#000000"
|
|
17
|
-
}, null, -1),
|
|
18
|
-
createElementVNode("rect", {
|
|
19
|
-
width: "5",
|
|
20
|
-
height: "1",
|
|
21
|
-
y: "1",
|
|
22
|
-
fill: "#dd0000"
|
|
23
|
-
}, null, -1),
|
|
24
|
-
createElementVNode("rect", {
|
|
25
|
-
width: "5",
|
|
26
|
-
height: "1",
|
|
27
|
-
y: "2",
|
|
28
|
-
fill: "#ffce00"
|
|
29
|
-
}, null, -1)
|
|
30
|
-
]));
|
|
31
|
-
}
|
|
32
|
-
const GermanFlag = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
33
|
-
export {
|
|
34
|
-
GermanFlag as default
|
|
35
|
-
};
|