@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/index-DDJjWaIl.js
DELETED
|
@@ -1,363 +0,0 @@
|
|
|
1
|
-
import { computed, watch, shallowRef, shallowReadonly, customRef, toValue, isRef, reactive, unref, getCurrentInstance, getCurrentScope, hasInjectionContext, inject, onScopeDispose, onBeforeUnmount, watchEffect, readonly, effectScope, toRefs } from "vue";
|
|
2
|
-
function computedEager(fn, options) {
|
|
3
|
-
var _options$flush;
|
|
4
|
-
const result = shallowRef();
|
|
5
|
-
watchEffect(() => {
|
|
6
|
-
result.value = fn();
|
|
7
|
-
}, {
|
|
8
|
-
...options,
|
|
9
|
-
flush: (_options$flush = options === null || options === void 0 ? void 0 : options.flush) !== null && _options$flush !== void 0 ? _options$flush : "sync"
|
|
10
|
-
});
|
|
11
|
-
return readonly(result);
|
|
12
|
-
}
|
|
13
|
-
function computedWithControl(source, fn, options = {}) {
|
|
14
|
-
let v = void 0;
|
|
15
|
-
let track;
|
|
16
|
-
let trigger;
|
|
17
|
-
let dirty = true;
|
|
18
|
-
const update = () => {
|
|
19
|
-
dirty = true;
|
|
20
|
-
trigger();
|
|
21
|
-
};
|
|
22
|
-
watch(source, update, {
|
|
23
|
-
flush: "sync",
|
|
24
|
-
...options
|
|
25
|
-
});
|
|
26
|
-
const get$1 = typeof fn === "function" ? fn : fn.get;
|
|
27
|
-
const set$1 = typeof fn === "function" ? void 0 : fn.set;
|
|
28
|
-
const result = customRef((_track, _trigger) => {
|
|
29
|
-
track = _track;
|
|
30
|
-
trigger = _trigger;
|
|
31
|
-
return {
|
|
32
|
-
get() {
|
|
33
|
-
if (dirty) {
|
|
34
|
-
v = get$1(v);
|
|
35
|
-
dirty = false;
|
|
36
|
-
}
|
|
37
|
-
track();
|
|
38
|
-
return v;
|
|
39
|
-
},
|
|
40
|
-
set(v$1) {
|
|
41
|
-
set$1 === null || set$1 === void 0 || set$1(v$1);
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
});
|
|
45
|
-
result.trigger = update;
|
|
46
|
-
return result;
|
|
47
|
-
}
|
|
48
|
-
function tryOnScopeDispose(fn, failSilently) {
|
|
49
|
-
if (getCurrentScope()) {
|
|
50
|
-
onScopeDispose(fn, failSilently);
|
|
51
|
-
return true;
|
|
52
|
-
}
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
// @__NO_SIDE_EFFECTS__
|
|
56
|
-
function createEventHook() {
|
|
57
|
-
const fns = /* @__PURE__ */ new Set();
|
|
58
|
-
const off = (fn) => {
|
|
59
|
-
fns.delete(fn);
|
|
60
|
-
};
|
|
61
|
-
const clear = () => {
|
|
62
|
-
fns.clear();
|
|
63
|
-
};
|
|
64
|
-
const on = (fn) => {
|
|
65
|
-
fns.add(fn);
|
|
66
|
-
const offFn = () => off(fn);
|
|
67
|
-
tryOnScopeDispose(offFn);
|
|
68
|
-
return { off: offFn };
|
|
69
|
-
};
|
|
70
|
-
const trigger = (...args) => {
|
|
71
|
-
return Promise.all(Array.from(fns).map((fn) => fn(...args)));
|
|
72
|
-
};
|
|
73
|
-
return {
|
|
74
|
-
on,
|
|
75
|
-
off,
|
|
76
|
-
trigger,
|
|
77
|
-
clear
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
// @__NO_SIDE_EFFECTS__
|
|
81
|
-
function createGlobalState(stateFactory) {
|
|
82
|
-
let initialized = false;
|
|
83
|
-
let state;
|
|
84
|
-
const scope = effectScope(true);
|
|
85
|
-
return (...args) => {
|
|
86
|
-
if (!initialized) {
|
|
87
|
-
state = scope.run(() => stateFactory(...args));
|
|
88
|
-
initialized = true;
|
|
89
|
-
}
|
|
90
|
-
return state;
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
const localProvidedStateMap = /* @__PURE__ */ new WeakMap();
|
|
94
|
-
const injectLocal = /* @__NO_SIDE_EFFECTS__ */ (...args) => {
|
|
95
|
-
var _getCurrentInstance;
|
|
96
|
-
const key = args[0];
|
|
97
|
-
const instance = (_getCurrentInstance = getCurrentInstance()) === null || _getCurrentInstance === void 0 ? void 0 : _getCurrentInstance.proxy;
|
|
98
|
-
const owner = instance !== null && instance !== void 0 ? instance : getCurrentScope();
|
|
99
|
-
if (owner == null && !hasInjectionContext()) throw new Error("injectLocal must be called in setup");
|
|
100
|
-
if (owner && localProvidedStateMap.has(owner) && key in localProvidedStateMap.get(owner)) return localProvidedStateMap.get(owner)[key];
|
|
101
|
-
return inject(...args);
|
|
102
|
-
};
|
|
103
|
-
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
104
|
-
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
105
|
-
const isDef = (val) => typeof val !== "undefined";
|
|
106
|
-
const toString = Object.prototype.toString;
|
|
107
|
-
const isObject = (val) => toString.call(val) === "[object Object]";
|
|
108
|
-
const noop = () => {
|
|
109
|
-
};
|
|
110
|
-
const isIOS = /* @__PURE__ */ getIsIOS();
|
|
111
|
-
function getIsIOS() {
|
|
112
|
-
var _window, _window2, _window3;
|
|
113
|
-
return isClient && !!((_window = window) === null || _window === void 0 || (_window = _window.navigator) === null || _window === void 0 ? void 0 : _window.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.navigator) === null || _window2 === void 0 ? void 0 : _window2.maxTouchPoints) > 2 && /iPad|Macintosh/.test((_window3 = window) === null || _window3 === void 0 ? void 0 : _window3.navigator.userAgent));
|
|
114
|
-
}
|
|
115
|
-
function createFilterWrapper(filter, fn) {
|
|
116
|
-
function wrapper(...args) {
|
|
117
|
-
return new Promise((resolve, reject) => {
|
|
118
|
-
Promise.resolve(filter(() => fn.apply(this, args), {
|
|
119
|
-
fn,
|
|
120
|
-
thisArg: this,
|
|
121
|
-
args
|
|
122
|
-
})).then(resolve).catch(reject);
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
return wrapper;
|
|
126
|
-
}
|
|
127
|
-
function debounceFilter(ms, options = {}) {
|
|
128
|
-
let timer;
|
|
129
|
-
let maxTimer;
|
|
130
|
-
let lastRejector = noop;
|
|
131
|
-
const _clearTimeout = (timer$1) => {
|
|
132
|
-
clearTimeout(timer$1);
|
|
133
|
-
lastRejector();
|
|
134
|
-
lastRejector = noop;
|
|
135
|
-
};
|
|
136
|
-
let lastInvoker;
|
|
137
|
-
const filter = (invoke$1) => {
|
|
138
|
-
const duration = toValue(ms);
|
|
139
|
-
const maxDuration = toValue(options.maxWait);
|
|
140
|
-
if (timer) _clearTimeout(timer);
|
|
141
|
-
if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
|
|
142
|
-
if (maxTimer) {
|
|
143
|
-
_clearTimeout(maxTimer);
|
|
144
|
-
maxTimer = void 0;
|
|
145
|
-
}
|
|
146
|
-
return Promise.resolve(invoke$1());
|
|
147
|
-
}
|
|
148
|
-
return new Promise((resolve, reject) => {
|
|
149
|
-
lastRejector = options.rejectOnCancel ? reject : resolve;
|
|
150
|
-
lastInvoker = invoke$1;
|
|
151
|
-
if (maxDuration && !maxTimer) maxTimer = setTimeout(() => {
|
|
152
|
-
if (timer) _clearTimeout(timer);
|
|
153
|
-
maxTimer = void 0;
|
|
154
|
-
resolve(lastInvoker());
|
|
155
|
-
}, maxDuration);
|
|
156
|
-
timer = setTimeout(() => {
|
|
157
|
-
if (maxTimer) _clearTimeout(maxTimer);
|
|
158
|
-
maxTimer = void 0;
|
|
159
|
-
resolve(invoke$1());
|
|
160
|
-
}, duration);
|
|
161
|
-
});
|
|
162
|
-
};
|
|
163
|
-
return filter;
|
|
164
|
-
}
|
|
165
|
-
function pxValue(px) {
|
|
166
|
-
return px.endsWith("rem") ? Number.parseFloat(px) * 16 : Number.parseFloat(px);
|
|
167
|
-
}
|
|
168
|
-
function toArray(value) {
|
|
169
|
-
return Array.isArray(value) ? value : [value];
|
|
170
|
-
}
|
|
171
|
-
function cacheStringFunction(fn) {
|
|
172
|
-
const cache = /* @__PURE__ */ Object.create(null);
|
|
173
|
-
return (str) => {
|
|
174
|
-
return cache[str] || (cache[str] = fn(str));
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
const camelizeRE = /-(\w)/g;
|
|
178
|
-
const camelize = cacheStringFunction((str) => {
|
|
179
|
-
return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
|
|
180
|
-
});
|
|
181
|
-
function getLifeCycleTarget(target) {
|
|
182
|
-
return getCurrentInstance();
|
|
183
|
-
}
|
|
184
|
-
// @__NO_SIDE_EFFECTS__
|
|
185
|
-
function createSharedComposable(composable) {
|
|
186
|
-
if (!isClient) return composable;
|
|
187
|
-
let subscribers = 0;
|
|
188
|
-
let state;
|
|
189
|
-
let scope;
|
|
190
|
-
const dispose = () => {
|
|
191
|
-
subscribers -= 1;
|
|
192
|
-
if (scope && subscribers <= 0) {
|
|
193
|
-
scope.stop();
|
|
194
|
-
state = void 0;
|
|
195
|
-
scope = void 0;
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
return (...args) => {
|
|
199
|
-
subscribers += 1;
|
|
200
|
-
if (!scope) {
|
|
201
|
-
scope = effectScope(true);
|
|
202
|
-
state = scope.run(() => composable(...args));
|
|
203
|
-
}
|
|
204
|
-
tryOnScopeDispose(dispose);
|
|
205
|
-
return state;
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
// @__NO_SIDE_EFFECTS__
|
|
209
|
-
function makeDestructurable(obj, arr) {
|
|
210
|
-
if (typeof Symbol !== "undefined") {
|
|
211
|
-
const clone = { ...obj };
|
|
212
|
-
Object.defineProperty(clone, Symbol.iterator, {
|
|
213
|
-
enumerable: false,
|
|
214
|
-
value() {
|
|
215
|
-
let index = 0;
|
|
216
|
-
return { next: () => ({
|
|
217
|
-
value: arr[index++],
|
|
218
|
-
done: index > arr.length
|
|
219
|
-
}) };
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
|
-
return clone;
|
|
223
|
-
} else return Object.assign([...arr], obj);
|
|
224
|
-
}
|
|
225
|
-
function toReactive(objectRef) {
|
|
226
|
-
if (!isRef(objectRef)) return reactive(objectRef);
|
|
227
|
-
return reactive(new Proxy({}, {
|
|
228
|
-
get(_, p, receiver) {
|
|
229
|
-
return unref(Reflect.get(objectRef.value, p, receiver));
|
|
230
|
-
},
|
|
231
|
-
set(_, p, value) {
|
|
232
|
-
if (isRef(objectRef.value[p]) && !isRef(value)) objectRef.value[p].value = value;
|
|
233
|
-
else objectRef.value[p] = value;
|
|
234
|
-
return true;
|
|
235
|
-
},
|
|
236
|
-
deleteProperty(_, p) {
|
|
237
|
-
return Reflect.deleteProperty(objectRef.value, p);
|
|
238
|
-
},
|
|
239
|
-
has(_, p) {
|
|
240
|
-
return Reflect.has(objectRef.value, p);
|
|
241
|
-
},
|
|
242
|
-
ownKeys() {
|
|
243
|
-
return Object.keys(objectRef.value);
|
|
244
|
-
},
|
|
245
|
-
getOwnPropertyDescriptor() {
|
|
246
|
-
return {
|
|
247
|
-
enumerable: true,
|
|
248
|
-
configurable: true
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
}));
|
|
252
|
-
}
|
|
253
|
-
function reactiveComputed(fn) {
|
|
254
|
-
return toReactive(computed(fn));
|
|
255
|
-
}
|
|
256
|
-
function reactiveOmit(obj, ...keys) {
|
|
257
|
-
const flatKeys = keys.flat();
|
|
258
|
-
const predicate = flatKeys[0];
|
|
259
|
-
return reactiveComputed(() => typeof predicate === "function" ? Object.fromEntries(Object.entries(toRefs(obj)).filter(([k, v]) => !predicate(toValue(v), k))) : Object.fromEntries(Object.entries(toRefs(obj)).filter((e) => !flatKeys.includes(e[0]))));
|
|
260
|
-
}
|
|
261
|
-
function refAutoReset(defaultValue, afterMs = 1e4) {
|
|
262
|
-
return customRef((track, trigger) => {
|
|
263
|
-
let value = toValue(defaultValue);
|
|
264
|
-
let timer;
|
|
265
|
-
const resetAfter = () => setTimeout(() => {
|
|
266
|
-
value = toValue(defaultValue);
|
|
267
|
-
trigger();
|
|
268
|
-
}, toValue(afterMs));
|
|
269
|
-
tryOnScopeDispose(() => {
|
|
270
|
-
clearTimeout(timer);
|
|
271
|
-
});
|
|
272
|
-
return {
|
|
273
|
-
get() {
|
|
274
|
-
track();
|
|
275
|
-
return value;
|
|
276
|
-
},
|
|
277
|
-
set(newValue) {
|
|
278
|
-
value = newValue;
|
|
279
|
-
trigger();
|
|
280
|
-
clearTimeout(timer);
|
|
281
|
-
timer = resetAfter();
|
|
282
|
-
}
|
|
283
|
-
};
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
// @__NO_SIDE_EFFECTS__
|
|
287
|
-
function useDebounceFn(fn, ms = 200, options = {}) {
|
|
288
|
-
return createFilterWrapper(debounceFilter(ms, options), fn);
|
|
289
|
-
}
|
|
290
|
-
function tryOnBeforeUnmount(fn, target) {
|
|
291
|
-
if (getLifeCycleTarget()) onBeforeUnmount(fn, target);
|
|
292
|
-
}
|
|
293
|
-
function useTimeoutFn(cb, interval, options = {}) {
|
|
294
|
-
const { immediate = true, immediateCallback = false } = options;
|
|
295
|
-
const isPending = shallowRef(false);
|
|
296
|
-
let timer;
|
|
297
|
-
function clear() {
|
|
298
|
-
if (timer) {
|
|
299
|
-
clearTimeout(timer);
|
|
300
|
-
timer = void 0;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
function stop() {
|
|
304
|
-
isPending.value = false;
|
|
305
|
-
clear();
|
|
306
|
-
}
|
|
307
|
-
function start(...args) {
|
|
308
|
-
if (immediateCallback) cb();
|
|
309
|
-
clear();
|
|
310
|
-
isPending.value = true;
|
|
311
|
-
timer = setTimeout(() => {
|
|
312
|
-
isPending.value = false;
|
|
313
|
-
timer = void 0;
|
|
314
|
-
cb(...args);
|
|
315
|
-
}, toValue(interval));
|
|
316
|
-
}
|
|
317
|
-
if (immediate) {
|
|
318
|
-
isPending.value = true;
|
|
319
|
-
if (isClient) start();
|
|
320
|
-
}
|
|
321
|
-
tryOnScopeDispose(stop);
|
|
322
|
-
return {
|
|
323
|
-
isPending: shallowReadonly(isPending),
|
|
324
|
-
start,
|
|
325
|
-
stop
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
function watchImmediate(source, cb, options) {
|
|
329
|
-
return watch(source, cb, {
|
|
330
|
-
...options,
|
|
331
|
-
immediate: true
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
function watchOnce(source, cb, options) {
|
|
335
|
-
return watch(source, cb, {
|
|
336
|
-
...options,
|
|
337
|
-
once: true
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
export {
|
|
341
|
-
injectLocal as a,
|
|
342
|
-
isDef as b,
|
|
343
|
-
computedWithControl as c,
|
|
344
|
-
camelize as d,
|
|
345
|
-
tryOnScopeDispose as e,
|
|
346
|
-
isObject as f,
|
|
347
|
-
refAutoReset as g,
|
|
348
|
-
tryOnBeforeUnmount as h,
|
|
349
|
-
isClient as i,
|
|
350
|
-
createSharedComposable as j,
|
|
351
|
-
isIOS as k,
|
|
352
|
-
createGlobalState as l,
|
|
353
|
-
makeDestructurable as m,
|
|
354
|
-
computedEager as n,
|
|
355
|
-
createEventHook as o,
|
|
356
|
-
pxValue as p,
|
|
357
|
-
useDebounceFn as q,
|
|
358
|
-
reactiveOmit as r,
|
|
359
|
-
watchOnce as s,
|
|
360
|
-
toArray as t,
|
|
361
|
-
useTimeoutFn as u,
|
|
362
|
-
watchImmediate as w
|
|
363
|
-
};
|
package/dist/index-DDurQzrB.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { a as clsx } from "./utils-DbYZ4xaD.js";
|
|
2
|
-
const falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
|
|
3
|
-
const cx = clsx;
|
|
4
|
-
const cva = (base, config) => (props) => {
|
|
5
|
-
var _config_compoundVariants;
|
|
6
|
-
if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
7
|
-
const { variants, defaultVariants } = config;
|
|
8
|
-
const getVariantClassNames = Object.keys(variants).map((variant) => {
|
|
9
|
-
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
|
10
|
-
const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
|
|
11
|
-
if (variantProp === null) return null;
|
|
12
|
-
const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
|
|
13
|
-
return variants[variant][variantKey];
|
|
14
|
-
});
|
|
15
|
-
const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
|
|
16
|
-
let [key, value] = param;
|
|
17
|
-
if (value === void 0) {
|
|
18
|
-
return acc;
|
|
19
|
-
}
|
|
20
|
-
acc[key] = value;
|
|
21
|
-
return acc;
|
|
22
|
-
}, {});
|
|
23
|
-
const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
|
|
24
|
-
let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
|
|
25
|
-
return Object.entries(compoundVariantOptions).every((param2) => {
|
|
26
|
-
let [key, value] = param2;
|
|
27
|
-
return Array.isArray(value) ? value.includes({
|
|
28
|
-
...defaultVariants,
|
|
29
|
-
...propsWithoutUndefined
|
|
30
|
-
}[key]) : {
|
|
31
|
-
...defaultVariants,
|
|
32
|
-
...propsWithoutUndefined
|
|
33
|
-
}[key] === value;
|
|
34
|
-
}) ? [
|
|
35
|
-
...acc,
|
|
36
|
-
cvClass,
|
|
37
|
-
cvClassName
|
|
38
|
-
] : acc;
|
|
39
|
-
}, []);
|
|
40
|
-
return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
41
|
-
};
|
|
42
|
-
export {
|
|
43
|
-
cva as c
|
|
44
|
-
};
|
package/dist/index-Dw56kNV0.js
DELETED
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
import { p as pxValue, t as toArray, w as watchImmediate, i as isClient, c as computedWithControl, m as makeDestructurable, a as injectLocal, b as isDef, d as camelize, e as tryOnScopeDispose, f as isObject } from "./index-DDJjWaIl.js";
|
|
2
|
-
import { shallowRef, watchEffect, toValue, computed, getCurrentInstance, ref, watch, nextTick, onUpdated, onMounted, defineComponent, hasInjectionContext, unref } from "vue";
|
|
3
|
-
// @__NO_SIDE_EFFECTS__
|
|
4
|
-
function createReusableTemplate(options = {}) {
|
|
5
|
-
const { inheritAttrs = true } = options;
|
|
6
|
-
const render = shallowRef();
|
|
7
|
-
const define = defineComponent({ setup(_, { slots }) {
|
|
8
|
-
return () => {
|
|
9
|
-
render.value = slots.default;
|
|
10
|
-
};
|
|
11
|
-
} });
|
|
12
|
-
const reuse = defineComponent({
|
|
13
|
-
inheritAttrs,
|
|
14
|
-
props: options.props,
|
|
15
|
-
setup(props, { attrs, slots }) {
|
|
16
|
-
return () => {
|
|
17
|
-
var _render$value;
|
|
18
|
-
if (!render.value && true) throw new Error("[VueUse] Failed to find the definition of reusable template");
|
|
19
|
-
const vnode = (_render$value = render.value) === null || _render$value === void 0 ? void 0 : _render$value.call(render, {
|
|
20
|
-
...options.props == null ? keysToCamelKebabCase(attrs) : props,
|
|
21
|
-
$slots: slots
|
|
22
|
-
});
|
|
23
|
-
return inheritAttrs && (vnode === null || vnode === void 0 ? void 0 : vnode.length) === 1 ? vnode[0] : vnode;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
return makeDestructurable({
|
|
28
|
-
define,
|
|
29
|
-
reuse
|
|
30
|
-
}, [define, reuse]);
|
|
31
|
-
}
|
|
32
|
-
function keysToCamelKebabCase(obj) {
|
|
33
|
-
const newObj = {};
|
|
34
|
-
for (const key in obj) newObj[camelize(key)] = obj[key];
|
|
35
|
-
return newObj;
|
|
36
|
-
}
|
|
37
|
-
const defaultWindow = isClient ? window : void 0;
|
|
38
|
-
const defaultDocument = isClient ? window.document : void 0;
|
|
39
|
-
function unrefElement(elRef) {
|
|
40
|
-
var _$el;
|
|
41
|
-
const plain = toValue(elRef);
|
|
42
|
-
return (_$el = plain === null || plain === void 0 ? void 0 : plain.$el) !== null && _$el !== void 0 ? _$el : plain;
|
|
43
|
-
}
|
|
44
|
-
function useEventListener(...args) {
|
|
45
|
-
const register = (el, event, listener, options) => {
|
|
46
|
-
el.addEventListener(event, listener, options);
|
|
47
|
-
return () => el.removeEventListener(event, listener, options);
|
|
48
|
-
};
|
|
49
|
-
const firstParamTargets = computed(() => {
|
|
50
|
-
const test = toArray(toValue(args[0])).filter((e) => e != null);
|
|
51
|
-
return test.every((e) => typeof e !== "string") ? test : void 0;
|
|
52
|
-
});
|
|
53
|
-
return watchImmediate(() => {
|
|
54
|
-
var _firstParamTargets$va, _firstParamTargets$va2;
|
|
55
|
-
return [
|
|
56
|
-
(_firstParamTargets$va = (_firstParamTargets$va2 = firstParamTargets.value) === null || _firstParamTargets$va2 === void 0 ? void 0 : _firstParamTargets$va2.map((e) => unrefElement(e))) !== null && _firstParamTargets$va !== void 0 ? _firstParamTargets$va : [defaultWindow].filter((e) => e != null),
|
|
57
|
-
toArray(toValue(firstParamTargets.value ? args[1] : args[0])),
|
|
58
|
-
toArray(unref(firstParamTargets.value ? args[2] : args[1])),
|
|
59
|
-
toValue(firstParamTargets.value ? args[3] : args[2])
|
|
60
|
-
];
|
|
61
|
-
}, ([raw_targets, raw_events, raw_listeners, raw_options], _, onCleanup) => {
|
|
62
|
-
if (!(raw_targets === null || raw_targets === void 0 ? void 0 : raw_targets.length) || !(raw_events === null || raw_events === void 0 ? void 0 : raw_events.length) || !(raw_listeners === null || raw_listeners === void 0 ? void 0 : raw_listeners.length)) return;
|
|
63
|
-
const optionsClone = isObject(raw_options) ? { ...raw_options } : raw_options;
|
|
64
|
-
const cleanups = raw_targets.flatMap((el) => raw_events.flatMap((event) => raw_listeners.map((listener) => register(el, event, listener, optionsClone))));
|
|
65
|
-
onCleanup(() => {
|
|
66
|
-
cleanups.forEach((fn) => fn());
|
|
67
|
-
});
|
|
68
|
-
}, { flush: "post" });
|
|
69
|
-
}
|
|
70
|
-
// @__NO_SIDE_EFFECTS__
|
|
71
|
-
function useMounted() {
|
|
72
|
-
const isMounted = shallowRef(false);
|
|
73
|
-
const instance = getCurrentInstance();
|
|
74
|
-
if (instance) onMounted(() => {
|
|
75
|
-
isMounted.value = true;
|
|
76
|
-
}, instance);
|
|
77
|
-
return isMounted;
|
|
78
|
-
}
|
|
79
|
-
// @__NO_SIDE_EFFECTS__
|
|
80
|
-
function useSupported(callback) {
|
|
81
|
-
const isMounted = /* @__PURE__ */ useMounted();
|
|
82
|
-
return computed(() => {
|
|
83
|
-
isMounted.value;
|
|
84
|
-
return Boolean(callback());
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
function createKeyPredicate(keyFilter) {
|
|
88
|
-
if (typeof keyFilter === "function") return keyFilter;
|
|
89
|
-
else if (typeof keyFilter === "string") return (event) => event.key === keyFilter;
|
|
90
|
-
else if (Array.isArray(keyFilter)) return (event) => keyFilter.includes(event.key);
|
|
91
|
-
return () => true;
|
|
92
|
-
}
|
|
93
|
-
function onKeyStroke(...args) {
|
|
94
|
-
let key;
|
|
95
|
-
let handler;
|
|
96
|
-
let options = {};
|
|
97
|
-
if (args.length === 3) {
|
|
98
|
-
key = args[0];
|
|
99
|
-
handler = args[1];
|
|
100
|
-
options = args[2];
|
|
101
|
-
} else if (args.length === 2) if (typeof args[1] === "object") {
|
|
102
|
-
key = true;
|
|
103
|
-
handler = args[0];
|
|
104
|
-
options = args[1];
|
|
105
|
-
} else {
|
|
106
|
-
key = args[0];
|
|
107
|
-
handler = args[1];
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
key = true;
|
|
111
|
-
handler = args[0];
|
|
112
|
-
}
|
|
113
|
-
const { target = defaultWindow, eventName = "keydown", passive = false, dedupe = false } = options;
|
|
114
|
-
const predicate = createKeyPredicate(key);
|
|
115
|
-
const listener = (e) => {
|
|
116
|
-
if (e.repeat && toValue(dedupe)) return;
|
|
117
|
-
if (predicate(e)) handler(e);
|
|
118
|
-
};
|
|
119
|
-
return useEventListener(target, eventName, listener, passive);
|
|
120
|
-
}
|
|
121
|
-
const ssrWidthSymbol = Symbol("vueuse-ssr-width");
|
|
122
|
-
// @__NO_SIDE_EFFECTS__
|
|
123
|
-
function useSSRWidth() {
|
|
124
|
-
const ssrWidth = hasInjectionContext() ? injectLocal(ssrWidthSymbol, null) : null;
|
|
125
|
-
return typeof ssrWidth === "number" ? ssrWidth : void 0;
|
|
126
|
-
}
|
|
127
|
-
function useMediaQuery(query, options = {}) {
|
|
128
|
-
const { window: window$1 = defaultWindow, ssrWidth = /* @__PURE__ */ useSSRWidth() } = options;
|
|
129
|
-
const isSupported = /* @__PURE__ */ useSupported(() => window$1 && "matchMedia" in window$1 && typeof window$1.matchMedia === "function");
|
|
130
|
-
const ssrSupport = shallowRef(typeof ssrWidth === "number");
|
|
131
|
-
const mediaQuery = shallowRef();
|
|
132
|
-
const matches = shallowRef(false);
|
|
133
|
-
const handler = (event) => {
|
|
134
|
-
matches.value = event.matches;
|
|
135
|
-
};
|
|
136
|
-
watchEffect(() => {
|
|
137
|
-
if (ssrSupport.value) {
|
|
138
|
-
ssrSupport.value = !isSupported.value;
|
|
139
|
-
matches.value = toValue(query).split(",").some((queryString) => {
|
|
140
|
-
const not = queryString.includes("not all");
|
|
141
|
-
const minWidth = queryString.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
142
|
-
const maxWidth = queryString.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
143
|
-
let res = Boolean(minWidth || maxWidth);
|
|
144
|
-
if (minWidth && res) res = ssrWidth >= pxValue(minWidth[1]);
|
|
145
|
-
if (maxWidth && res) res = ssrWidth <= pxValue(maxWidth[1]);
|
|
146
|
-
return not ? !res : res;
|
|
147
|
-
});
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
if (!isSupported.value) return;
|
|
151
|
-
mediaQuery.value = window$1.matchMedia(toValue(query));
|
|
152
|
-
matches.value = mediaQuery.value.matches;
|
|
153
|
-
});
|
|
154
|
-
useEventListener(mediaQuery, "change", handler, { passive: true });
|
|
155
|
-
return computed(() => matches.value);
|
|
156
|
-
}
|
|
157
|
-
function cloneFnJSON(source) {
|
|
158
|
-
return JSON.parse(JSON.stringify(source));
|
|
159
|
-
}
|
|
160
|
-
function useCurrentElement(rootComponent) {
|
|
161
|
-
const vm = getCurrentInstance();
|
|
162
|
-
const currentElement = computedWithControl(() => null, () => rootComponent ? unrefElement(rootComponent) : vm.proxy.$el);
|
|
163
|
-
onUpdated(currentElement.trigger);
|
|
164
|
-
onMounted(currentElement.trigger);
|
|
165
|
-
return currentElement;
|
|
166
|
-
}
|
|
167
|
-
function useResizeObserver(target, callback, options = {}) {
|
|
168
|
-
const { window: window$1 = defaultWindow, ...observerOptions } = options;
|
|
169
|
-
let observer;
|
|
170
|
-
const isSupported = /* @__PURE__ */ useSupported(() => window$1 && "ResizeObserver" in window$1);
|
|
171
|
-
const cleanup = () => {
|
|
172
|
-
if (observer) {
|
|
173
|
-
observer.disconnect();
|
|
174
|
-
observer = void 0;
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
const stopWatch = watch(computed(() => {
|
|
178
|
-
const _targets = toValue(target);
|
|
179
|
-
return Array.isArray(_targets) ? _targets.map((el) => unrefElement(el)) : [unrefElement(_targets)];
|
|
180
|
-
}), (els) => {
|
|
181
|
-
cleanup();
|
|
182
|
-
if (isSupported.value && window$1) {
|
|
183
|
-
observer = new ResizeObserver(callback);
|
|
184
|
-
for (const _el of els) if (_el) observer.observe(_el, observerOptions);
|
|
185
|
-
}
|
|
186
|
-
}, {
|
|
187
|
-
immediate: true,
|
|
188
|
-
flush: "post"
|
|
189
|
-
});
|
|
190
|
-
const stop = () => {
|
|
191
|
-
cleanup();
|
|
192
|
-
stopWatch();
|
|
193
|
-
};
|
|
194
|
-
tryOnScopeDispose(stop);
|
|
195
|
-
return {
|
|
196
|
-
isSupported,
|
|
197
|
-
stop
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
// @__NO_SIDE_EFFECTS__
|
|
201
|
-
function useVModel(props, key, emit, options = {}) {
|
|
202
|
-
var _vm$$emit, _vm$proxy;
|
|
203
|
-
const { clone = false, passive = false, eventName, deep = false, defaultValue, shouldEmit } = options;
|
|
204
|
-
const vm = getCurrentInstance();
|
|
205
|
-
const _emit = emit || (vm === null || vm === void 0 ? void 0 : vm.emit) || (vm === null || vm === void 0 || (_vm$$emit = vm.$emit) === null || _vm$$emit === void 0 ? void 0 : _vm$$emit.bind(vm)) || (vm === null || vm === void 0 || (_vm$proxy = vm.proxy) === null || _vm$proxy === void 0 || (_vm$proxy = _vm$proxy.$emit) === null || _vm$proxy === void 0 ? void 0 : _vm$proxy.bind(vm === null || vm === void 0 ? void 0 : vm.proxy));
|
|
206
|
-
let event = eventName;
|
|
207
|
-
if (!key) key = "modelValue";
|
|
208
|
-
event = event || `update:${key.toString()}`;
|
|
209
|
-
const cloneFn = (val) => !clone ? val : typeof clone === "function" ? clone(val) : cloneFnJSON(val);
|
|
210
|
-
const getValue$1 = () => isDef(props[key]) ? cloneFn(props[key]) : defaultValue;
|
|
211
|
-
const triggerEmit = (value) => {
|
|
212
|
-
if (shouldEmit) {
|
|
213
|
-
if (shouldEmit(value)) _emit(event, value);
|
|
214
|
-
} else _emit(event, value);
|
|
215
|
-
};
|
|
216
|
-
if (passive) {
|
|
217
|
-
const proxy = ref(getValue$1());
|
|
218
|
-
let isUpdating = false;
|
|
219
|
-
watch(() => props[key], (v) => {
|
|
220
|
-
if (!isUpdating) {
|
|
221
|
-
isUpdating = true;
|
|
222
|
-
proxy.value = cloneFn(v);
|
|
223
|
-
nextTick(() => isUpdating = false);
|
|
224
|
-
}
|
|
225
|
-
});
|
|
226
|
-
watch(proxy, (v) => {
|
|
227
|
-
if (!isUpdating && (v !== props[key] || deep)) triggerEmit(v);
|
|
228
|
-
}, { deep });
|
|
229
|
-
return proxy;
|
|
230
|
-
} else return computed({
|
|
231
|
-
get() {
|
|
232
|
-
return getValue$1();
|
|
233
|
-
},
|
|
234
|
-
set(value) {
|
|
235
|
-
triggerEmit(value);
|
|
236
|
-
}
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
export {
|
|
240
|
-
useVModel as a,
|
|
241
|
-
useMounted as b,
|
|
242
|
-
useEventListener as c,
|
|
243
|
-
defaultWindow as d,
|
|
244
|
-
useResizeObserver as e,
|
|
245
|
-
useCurrentElement as f,
|
|
246
|
-
useMediaQuery as g,
|
|
247
|
-
defaultDocument as h,
|
|
248
|
-
createReusableTemplate as i,
|
|
249
|
-
onKeyStroke as o,
|
|
250
|
-
unrefElement as u
|
|
251
|
-
};
|